2020-05-28 21:50:32 +06:30
|
|
|
def localProperties = new Properties()
|
|
|
|
|
def localPropertiesFile = rootProject.file('local.properties')
|
|
|
|
|
if (localPropertiesFile.exists()) {
|
|
|
|
|
localPropertiesFile.withReader('UTF-8') { reader ->
|
|
|
|
|
localProperties.load(reader)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
def flutterRoot = localProperties.getProperty('flutter.sdk')
|
|
|
|
|
if (flutterRoot == null) {
|
|
|
|
|
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
|
|
|
|
|
if (flutterVersionCode == null) {
|
|
|
|
|
flutterVersionCode = '1'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
def flutterVersionName = localProperties.getProperty('flutter.versionName')
|
|
|
|
|
if (flutterVersionName == null) {
|
|
|
|
|
flutterVersionName = '1.0'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
|
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
|
|
|
|
|
|
2021-09-11 16:56:20 +06:30
|
|
|
def keystoreProperties = new Properties()
|
|
|
|
|
def keystorePropertiesFile = rootProject.file('key.properties')
|
|
|
|
|
if (keystorePropertiesFile.exists()) {
|
|
|
|
|
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
|
|
|
|
}
|
|
|
|
|
|
2020-05-28 21:50:32 +06:30
|
|
|
android {
|
2021-09-11 08:27:27 +06:30
|
|
|
compileSdkVersion 30
|
2020-05-28 21:50:32 +06:30
|
|
|
|
|
|
|
|
defaultConfig {
|
2020-05-29 07:45:27 +06:30
|
|
|
minSdkVersion 21
|
2021-09-11 08:27:27 +06:30
|
|
|
targetSdkVersion 30
|
2020-05-28 21:50:32 +06:30
|
|
|
versionCode flutterVersionCode.toInteger()
|
|
|
|
|
versionName flutterVersionName
|
2020-08-26 16:01:13 +06:30
|
|
|
multiDexEnabled true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
flavorDimensions "app"
|
|
|
|
|
productFlavors {
|
|
|
|
|
prod {
|
|
|
|
|
dimension "app"
|
|
|
|
|
applicationId "com.mokkon.fcs"
|
|
|
|
|
versionCode flutterVersionCode.toInteger()
|
|
|
|
|
versionName flutterVersionName
|
|
|
|
|
}
|
|
|
|
|
dev {
|
|
|
|
|
dimension "app"
|
|
|
|
|
applicationId "com.mokkon.fcs.dev"
|
|
|
|
|
versionCode flutterVersionCode.toInteger()
|
|
|
|
|
versionName flutterVersionName
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
signingConfigs {
|
|
|
|
|
release {
|
|
|
|
|
keyAlias keystoreProperties['keyAlias']
|
|
|
|
|
keyPassword keystoreProperties['keyPassword']
|
|
|
|
|
storeFile file(keystoreProperties['storeFile'])
|
|
|
|
|
storePassword keystoreProperties['storePassword']
|
|
|
|
|
}
|
2020-05-28 21:50:32 +06:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
|
release {
|
2020-08-26 16:01:13 +06:30
|
|
|
signingConfig signingConfigs.release
|
|
|
|
|
|
|
|
|
|
minifyEnabled true
|
|
|
|
|
useProguard false
|
|
|
|
|
|
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
2020-05-28 21:50:32 +06:30
|
|
|
}
|
2020-08-26 16:01:13 +06:30
|
|
|
debug {
|
|
|
|
|
debuggable true
|
|
|
|
|
}
|
|
|
|
|
|
2020-05-28 21:50:32 +06:30
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
flutter {
|
|
|
|
|
source '../..'
|
|
|
|
|
}
|
2020-06-25 15:03:12 +06:30
|
|
|
|
|
|
|
|
dependencies {
|
2021-09-11 08:27:27 +06:30
|
|
|
implementation 'com.android.support:multidex:1.0.3'
|
2020-08-26 16:01:13 +06:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
apply plugin: 'com.google.gms.google-services'
|