Skip to content

Commit c30353a

Browse files
fix: remove conditional expressions for compileSdkVersion and targetSdkVersion
- Simplify specifying compileSdkVersion and targetSdkVersion directly from flutter configuration
1 parent a8f4662 commit c30353a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

example/android/app/build.gradle

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ if (flutterVersionName == null) {
2626
android {
2727
namespace "com.optimizely.optimizely_flutter_sdk_example"
2828

29-
compileSdkVersion rootProject.hasProperty('flutter.compileSdkVersion')
30-
? rootProject.flutter.compileSdkVersion.toInteger()
31-
: 35
29+
compileSdkVersion flutter.compileSdkVersion
3230

3331
compileOptions {
3432
sourceCompatibility JavaVersion.VERSION_1_8
@@ -41,9 +39,7 @@ android {
4139
// You can update the following values to match your application needs.
4240
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
4341
minSdkVersion flutter.minSdkVersion
44-
targetSdkVersion rootProject.hasProperty('flutter.targetSdkVersion')
45-
? rootProject.flutter.targetSdkVersion.toInteger()
46-
: 35
42+
targetSdkVersion flutter.targetSdkVersion
4743

4844
versionCode flutterVersionCode.toInteger()
4945
versionName flutterVersionName

0 commit comments

Comments
 (0)