Skip to content

Commit d9c5bad

Browse files
committed
feat: tag v3.0.1+11
1 parent 46cafc8 commit d9c5bad

File tree

1 file changed

+37
-6
lines changed

1 file changed

+37
-6
lines changed

android/app/build.gradle

Lines changed: 37 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,57 @@ android {
3333
targetCompatibility = JavaVersion.VERSION_1_8
3434
}
3535

36+
splits {
37+
abi {
38+
enable true
39+
reset()
40+
include 'x86', 'x86_64', 'armeabi', 'armeabi-v7a', 'mips', 'mips64', 'arm64-v8a'
41+
universalApk true
42+
}
43+
}
44+
3645
defaultConfig {
37-
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
38-
applicationId = "com.gmail.leetao94cn.rssaid"
46+
applicationId = "com.gmail.cn.leetao94.rssaid"
3947
// You can update the following values to match your application needs.
4048
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
4149
minSdk = flutter.minSdkVersion
4250
targetSdk = flutter.targetSdkVersion
4351
versionCode = flutterVersionCode.toInteger()
4452
versionName = flutterVersionName
53+
multiDexEnabled true
54+
}
55+
56+
signingConfigs {
57+
release {
58+
storeFile file(System.getenv("KEYSTORE") ?:"keystore.jks")
59+
storePassword System.getenv("KEYSTORE_PASSWORD")
60+
keyAlias System.getenv("KEY_ALIAS")
61+
keyPassword System.getenv("KEY_PASSWORD")
62+
}
4563
}
4664

4765
buildTypes {
4866
release {
49-
// TODO: Add your own signing config for the release build.
50-
// Signing with the debug keys for now, so `flutter run --release` works.
51-
signingConfig = signingConfigs.debug
67+
signingConfig signingConfigs.release
68+
}
69+
debug {
70+
}
71+
}
72+
73+
flavorDimensions "deploy"
74+
75+
productFlavors {
76+
github {
77+
dimension "deploy"
78+
signingConfig signingConfigs.release
79+
}
80+
fdroid {
81+
dimension "deploy"
82+
signingConfig signingConfigs.debug
5283
}
5384
}
5485
}
5586

5687
flutter {
5788
source = "../.."
58-
}
89+
}

0 commit comments

Comments
 (0)