feat: Refactor code structure and optimize performance across multiple modules
This commit is contained in:
76
mobile-apps/client-app/android/app/build.gradle
Normal file
76
mobile-apps/client-app/android/app/build.gradle
Normal file
@@ -0,0 +1,76 @@
|
||||
plugins {
|
||||
id "com.android.application"
|
||||
id 'com.google.gms.google-services'
|
||||
id "kotlin-android"
|
||||
id "dev.flutter.flutter-gradle-plugin"
|
||||
}
|
||||
|
||||
def keystoreProperties = new Properties()
|
||||
def keystorePropertiesFile = rootProject.file('key.properties')
|
||||
if (keystorePropertiesFile.exists()) {
|
||||
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.krow.app.business"
|
||||
compileSdk = flutter.compileSdkVersion
|
||||
ndkVersion = flutter.ndkVersion
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
||||
kotlinOptions {
|
||||
jvmTarget = JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
||||
defaultConfig {
|
||||
applicationId = "com.krow.app.business"
|
||||
minSdk = 24
|
||||
targetSdk = flutter.targetSdkVersion
|
||||
versionCode = flutter.versionCode
|
||||
versionName = flutter.versionName
|
||||
}
|
||||
|
||||
flavorDimensions "release-type"
|
||||
|
||||
productFlavors {
|
||||
dev {
|
||||
dimension "release-type"
|
||||
applicationIdSuffix ".dev"
|
||||
versionNameSuffix "-dev"
|
||||
manifestPlaceholders = [
|
||||
appLabel: "Business dev",
|
||||
appIcon: "@mipmap/ic_launcher_dev"
|
||||
]
|
||||
}
|
||||
|
||||
prod {
|
||||
dimension "release-type"
|
||||
manifestPlaceholders = [
|
||||
appLabel: "Krow Business",
|
||||
appIcon: "@mipmap/ic_launcher"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
signingConfigs {
|
||||
release {
|
||||
keyAlias = keystoreProperties['keyAliasClient']
|
||||
keyPassword = keystoreProperties['keyPassword']
|
||||
storeFile = keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
|
||||
storePassword = keystoreProperties['storePassword']
|
||||
}
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
signingConfig = signingConfigs.release
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
flutter {
|
||||
source = "../.."
|
||||
}
|
||||
Reference in New Issue
Block a user