|
@@ -25,6 +25,12 @@ apply plugin: 'com.android.application'
|
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'kotlin-android'
|
|
|
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
|
|
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
|
|
|
|
|
|
|
|
|
|
+def keystoreProperties = new Properties()
|
|
|
|
|
+def keystorePropertiesFile = rootProject.file('key.properties')
|
|
|
|
|
+if (keystorePropertiesFile.exists()) {
|
|
|
|
|
+ keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
android {
|
|
android {
|
|
|
compileSdkVersion 29
|
|
compileSdkVersion 29
|
|
|
|
|
|
|
@@ -37,19 +43,25 @@ android {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
defaultConfig {
|
|
defaultConfig {
|
|
|
- // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
|
|
|
|
- applicationId "com.example.gmus_mobile"
|
|
|
|
|
|
|
+ applicationId "space.fela.gmus"
|
|
|
minSdkVersion 16
|
|
minSdkVersion 16
|
|
|
targetSdkVersion 29
|
|
targetSdkVersion 29
|
|
|
versionCode flutterVersionCode.toInteger()
|
|
versionCode flutterVersionCode.toInteger()
|
|
|
versionName flutterVersionName
|
|
versionName flutterVersionName
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ signingConfigs {
|
|
|
|
|
+ release {
|
|
|
|
|
+ keyAlias keystoreProperties['keyAlias']
|
|
|
|
|
+ keyPassword keystoreProperties['keyPassword']
|
|
|
|
|
+ storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
|
|
|
|
|
+ storePassword keystoreProperties['storePassword']
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
buildTypes {
|
|
buildTypes {
|
|
|
release {
|
|
release {
|
|
|
- // TODO: Add your own signing config for the release build.
|
|
|
|
|
- // Signing with the debug keys for now, so `flutter run --release` works.
|
|
|
|
|
- signingConfig signingConfigs.debug
|
|
|
|
|
|
|
+ signingConfig signingConfigs.release
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|