Skip to content

Commit 1ecb606

Browse files
First release
1 parent 4796111 commit 1ecb606

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

android/app/build.gradle

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ apply plugin: 'com.android.application'
2525
apply plugin: 'kotlin-android'
2626
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2727

28+
def keystoreProperties = new Properties()
29+
def keystorePropertiesFile = rootProject.file('key.properties')
30+
if (keystorePropertiesFile.exists()) {
31+
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
32+
}
33+
2834
android {
2935
compileSdkVersion 28
3036

@@ -39,16 +45,25 @@ android {
3945
defaultConfig {
4046
applicationId "it.albertomosconi.talpasplat3"
4147
minSdkVersion 16
42-
targetSdkVersion 28
48+
targetSdkVersion 29
4349
versionCode flutterVersionCode.toInteger()
4450
versionName flutterVersionName
4551
}
4652

53+
signingConfigs {
54+
release {
55+
keyAlias keystoreProperties['keyAlias']
56+
keyPassword keystoreProperties['keyPassword']
57+
storeFile file(keystoreProperties['storeFile'])
58+
storePassword keystoreProperties['storePassword']
59+
}
60+
}
61+
4762
buildTypes {
4863
release {
4964
// TODO: Add your own signing config for the release build.
5065
// Signing with the debug keys for now, so `flutter run --release` works.
51-
signingConfig signingConfigs.debug
66+
signingConfig signingConfigs.release
5267
}
5368
}
5469
}

banner.png

532 KB
Loading

logo.png

99.6 KB
Loading

0 commit comments

Comments
 (0)