Skip to content

Commit 3f62939

Browse files
fix: update android build configuration
- Update compile_sdk_version and build_tools_version to 35 - Remove target_sdk_version from ext - Update compileSdkVersion and targetSdkVersion in app/build.gradle to 35
1 parent dd6ea73 commit 3f62939

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

android/build.gradle

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,9 @@ rootProject.allprojects {
2424

2525

2626
ext {
27-
compile_sdk_version = 36
28-
build_tools_version = "36.0.0"
27+
compile_sdk_version = 35
28+
build_tools_version = "35.0.0"
2929
min_sdk_version = 21
30-
target_sdk_version = 36
3130
}
3231

3332
android {
@@ -41,7 +40,6 @@ android {
4140

4241
defaultConfig {
4342
minSdkVersion min_sdk_version
44-
targetSdkVersion target_sdk_version
4543
versionCode 1
4644
versionName version_name
4745
buildConfigField "String", "CLIENT_VERSION", "\"$version_name\""

example/android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ if (flutterVersionName == null) {
2525

2626
android {
2727
namespace "com.optimizely.optimizely_flutter_sdk_example"
28-
compileSdkVersion 36
28+
compileSdkVersion 35
2929

3030
compileOptions {
3131
sourceCompatibility JavaVersion.VERSION_1_8
@@ -38,7 +38,7 @@ android {
3838
// You can update the following values to match your application needs.
3939
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
4040
minSdkVersion flutter.minSdkVersion
41-
targetSdkVersion 36
41+
targetSdkVersion 35
4242
versionCode flutterVersionCode.toInteger()
4343
versionName flutterVersionName
4444
}

0 commit comments

Comments
 (0)