Skip to content

Commit 2ca9119

Browse files
authored
chore: adjust configuration for google play console (#4231)
1 parent 462b67d commit 2ca9119

File tree

2 files changed

+19
-10
lines changed

2 files changed

+19
-10
lines changed

frontend/appflowy_flutter/android/app/build.gradle

Lines changed: 17 additions & 8 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 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

frontend/appflowy_flutter/packages/appflowy_backend/example/android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ android {
3535
defaultConfig {
3636
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
3737
applicationId "com.plugin.flowy_sdk_example"
38-
minSdkVersion 16
39-
targetSdkVersion 31
38+
minSdkVersion 33
39+
targetSdkVersion 33
4040
versionCode flutterVersionCode.toInteger()
4141
versionName flutterVersionName
4242
}

0 commit comments

Comments
 (0)