|
@@ -12,6 +12,15 @@ if (localPropertiesFile.exists()) {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+def keystoreProperties = new Properties()
|
|
|
|
|
+def keystorePropertiesFile = rootProject.file('key.properties')
|
|
|
|
|
+if (keystorePropertiesFile.exists()) {
|
|
|
|
|
+ keystorePropertiesFile.withReader('UTF-8') { reader ->
|
|
|
|
|
+ keystoreProperties.load(reader)
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
|
|
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
|
|
|
if (flutterVersionCode == null) {
|
|
if (flutterVersionCode == null) {
|
|
|
flutterVersionCode = '1'
|
|
flutterVersionCode = '1'
|
|
@@ -22,6 +31,7 @@ if (flutterVersionName == null) {
|
|
|
flutterVersionName = '1.0'
|
|
flutterVersionName = '1.0'
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
android {
|
|
android {
|
|
|
namespace "com.colormaprun.orienteering.app_business.app_business"
|
|
namespace "com.colormaprun.orienteering.app_business.app_business"
|
|
|
compileSdkVersion flutter.compileSdkVersion
|
|
compileSdkVersion flutter.compileSdkVersion
|
|
@@ -41,21 +51,30 @@ android {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
defaultConfig {
|
|
defaultConfig {
|
|
|
- // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
|
|
|
|
- applicationId "com.colormaprun.orienteering.app_business.app_business"
|
|
|
|
|
- // You can update the following values to match your application needs.
|
|
|
|
|
- // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
|
|
|
|
|
|
|
+ applicationId "com.colormaprun.orienteering.app_business"
|
|
|
minSdkVersion flutter.minSdkVersion
|
|
minSdkVersion flutter.minSdkVersion
|
|
|
targetSdkVersion flutter.targetSdkVersion
|
|
targetSdkVersion flutter.targetSdkVersion
|
|
|
versionCode flutterVersionCode.toInteger()
|
|
versionCode flutterVersionCode.toInteger()
|
|
|
versionName flutterVersionName
|
|
versionName flutterVersionName
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ buildFeatures {
|
|
|
|
|
+ buildConfig = true
|
|
|
|
|
+ }
|
|
|
|
|
+ signingConfigs {
|
|
|
|
|
+
|
|
|
|
|
+ release {
|
|
|
|
|
+ keyAlias keystoreProperties['keyAlias']
|
|
|
|
|
+ keyPassword keystoreProperties['keyPassword']
|
|
|
|
|
+ storeFile file(keystoreProperties['storeFile'])
|
|
|
|
|
+ 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
|
|
|
|
|
|
|
+ minifyEnabled true
|
|
|
|
|
+ shrinkResources true
|
|
|
|
|
+ signingConfig signingConfigs.release
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|