Skip to content

Commit 31bb076

Browse files
author
Your Name
committed
created two build api levels
1 parent 7f4356b commit 31bb076

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

android/app/build.gradle

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,25 @@ android {
3737
}
3838

3939
defaultConfig {
40-
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
4140
applicationId "org.fossasia.badgemagic"
42-
// You can update the following values to match your application needs.
43-
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
44-
minSdkVersion 21
45-
targetSdkVersion flutter.targetSdkVersion
4641
versionCode flutterVersionCode.toInteger()
4742
versionName flutterVersionName
4843
}
4944

45+
flavorDimensions "api"
46+
productFlavors {
47+
preApi30 {
48+
dimension "api"
49+
minSdkVersion 21
50+
targetSdkVersion 29
51+
}
52+
postApi30 {
53+
dimension "api"
54+
minSdkVersion 30
55+
targetSdkVersion 34
56+
}
57+
}
58+
5059
signingConfigs {
5160
if (GITHUB_BUILD) {
5261
release {

0 commit comments

Comments
 (0)