|
|
|
@ -21,6 +21,12 @@ if (flutterVersionName == null) {
|
|
|
|
|
flutterVersionName = '1.0' |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
def keystoreProperties = new Properties() |
|
|
|
|
def keystorePropertiesFile = rootProject.file('key.properties') |
|
|
|
|
if (keystorePropertiesFile.exists()) { |
|
|
|
|
keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
apply plugin: 'com.android.application' |
|
|
|
|
apply plugin: 'kotlin-android' |
|
|
|
|
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" |
|
|
|
@ -53,11 +59,18 @@ android {
|
|
|
|
|
versionName flutterVersionName |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
signingConfigs { |
|
|
|
|
release { |
|
|
|
|
keyAlias keystoreProperties['keyAlias'] |
|
|
|
|
keyPassword keystoreProperties['keyPassword'] |
|
|
|
|
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null |
|
|
|
|
storePassword keystoreProperties['storePassword'] |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
buildTypes { |
|
|
|
|
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 |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|