File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -25,14 +25,14 @@ rootProject.allprojects {
25
25
26
26
ext {
27
27
compile_sdk_version = 35
28
- build_tools_version = " 35.0.0"
29
28
min_sdk_version = 21
30
29
}
31
30
32
31
android {
33
32
namespace ' com.optimizely.optimizely_flutter_sdk'
34
- compileSdkVersion compile_sdk_version
35
- buildToolsVersion build_tools_version
33
+ compileSdkVersion rootProject. hasProperty(' flutter.compileSdkVersion' )
34
+ ? rootProject. flutter. compileSdkVersion. toInteger()
35
+ : compile_sdk_version
36
36
37
37
buildFeatures {
38
38
buildConfig true
Original file line number Diff line number Diff line change @@ -25,7 +25,10 @@ if (flutterVersionName == null) {
25
25
26
26
android {
27
27
namespace " com.optimizely.optimizely_flutter_sdk_example"
28
- compileSdkVersion 35
28
+
29
+ compileSdkVersion rootProject. hasProperty(' flutter.compileSdkVersion' )
30
+ ? rootProject. flutter. compileSdkVersion. toInteger()
31
+ : 35
29
32
30
33
compileOptions {
31
34
sourceCompatibility JavaVersion . VERSION_1_8
@@ -38,7 +41,10 @@ android {
38
41
// You can update the following values to match your application needs.
39
42
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
40
43
minSdkVersion flutter. minSdkVersion
41
- targetSdkVersion 35
44
+ targetSdkVersion rootProject. hasProperty(' flutter.targetSdkVersion' )
45
+ ? rootProject. flutter. targetSdkVersion. toInteger()
46
+ : 35
47
+
42
48
versionCode flutterVersionCode. toInteger()
43
49
versionName flutterVersionName
44
50
}
You can’t perform that action at this time.
0 commit comments