@@ -25,6 +25,12 @@ apply plugin: 'com.android.application'
2525apply plugin : ' kotlin-android'
2626apply 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+
2834android {
2935 compileSdkVersion 34
3036 ndkVersion " 24.0.8215888"
@@ -46,8 +52,8 @@ android {
4652 defaultConfig {
4753 // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
4854 applicationId " io.appflowy.appflowy"
49- minSdkVersion 23
50- targetSdkVersion 31
55+ minSdkVersion 33
56+ targetSdkVersion 33
5157 versionCode flutterVersionCode. toInteger()
5258 versionName flutterVersionName
5359 multiDexEnabled true
@@ -58,14 +64,17 @@ android {
5864 }
5965 }
6066
67+ signingConfigs {
68+ release {
69+ keyAlias keystoreProperties[' keyAlias' ]
70+ keyPassword keystoreProperties[' keyPassword' ]
71+ storeFile keystoreProperties[' storeFile' ] ? file(keystoreProperties[' storeFile' ]) : null
72+ storePassword keystoreProperties[' storePassword' ]
73+ }
74+ }
6175 buildTypes {
6276 release {
63- // TODO: Add your own signing config for the release build.
64- // Signing with the debug keys for now, so `flutter run --release` works.
65- minifyEnabled true
66- shrinkResources true
67-
68- signingConfig signingConfigs. debug
77+ signingConfig signingConfigs. release
6978 }
7079 }
7180
0 commit comments