Skip to content

Commit 599a99b

Browse files
committed
nit
1 parent 4ecc805 commit 599a99b

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

android/app/build.gradle

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,18 @@ def appName = "Application Name"
1111
// On staging it will add .staging and on development it will add .development as suffix.
1212
def applicationId = "com.example.flutter_template"
1313

14+
ext {
15+
androidMinSdkVersion = 21
16+
androidCompileSdkVersion = 34
17+
androidTargetSdkVersion = 34
18+
androidNdkVersion = "23.1.7779620"
19+
}
20+
1421

1522
android {
1623
namespace = "$applicationId"
17-
compileSdk = flutter.compileSdkVersion
18-
ndkVersion = flutter.ndkVersion
24+
compileSdk = androidCompileSdkVersion
25+
ndkVersion = "23.1.7779620"
1926

2027
compileOptions {
2128
sourceCompatibility = JavaVersion.VERSION_1_8
@@ -30,8 +37,8 @@ android {
3037
applicationId = "$applicationId"
3138
// You can update the following values to match your application needs.
3239
// For more information, see: https://flutter.dev/to/review-gradle-config.
33-
minSdk = flutter.minSdkVersion
34-
targetSdk = flutter.targetSdkVersion
40+
minSdk = androidMinSdkVersion
41+
targetSdk = androidTargetSdkVersion
3542
versionCode = flutter.versionCode
3643
versionName = flutter.versionName
3744
}

0 commit comments

Comments
 (0)