Skip to content

Commit 3f2c336

Browse files
Examples: revert to fixed SDK versions in Android build files.
1 parent b9c3029 commit 3f2c336

File tree

3 files changed

+25
-11
lines changed

3 files changed

+25
-11
lines changed

objectbox/example/flutter/objectbox_demo/android/app/build.gradle

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ apply plugin: 'kotlin-android'
2626
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2727

2828
android {
29-
compileSdkVersion flutter.compileSdkVersion
30-
ndkVersion flutter.ndkVersion
29+
// Using explicit versions to build with Flutter 2.2.0 in CI.
30+
// compileSdkVersion flutter.compileSdkVersion
31+
// ndkVersion flutter.ndkVersion
32+
compileSdkVersion 31
3133

3234
compileOptions {
3335
sourceCompatibility JavaVersion.VERSION_1_8
@@ -46,8 +48,11 @@ android {
4648
applicationId "com.example.objectbox_demo"
4749
// You can update the following values to match your application needs.
4850
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
49-
minSdkVersion flutter.minSdkVersion
50-
targetSdkVersion flutter.targetSdkVersion
51+
// minSdkVersion flutter.minSdkVersion
52+
// targetSdkVersion flutter.targetSdkVersion
53+
// Using explicit versions to build with Flutter 2.2.0 in CI.
54+
minSdkVersion 16
55+
targetSdkVersion 29
5156
versionCode flutterVersionCode.toInteger()
5257
versionName flutterVersionName
5358
}

objectbox/example/flutter/objectbox_demo_relations/android/app/build.gradle

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ apply plugin: 'kotlin-android'
2626
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2727

2828
android {
29-
compileSdkVersion flutter.compileSdkVersion
30-
ndkVersion flutter.ndkVersion
29+
// Using explicit versions to build with Flutter 2.2.0 in CI.
30+
// compileSdkVersion flutter.compileSdkVersion
31+
// ndkVersion flutter.ndkVersion
32+
compileSdkVersion 31
3133

3234
compileOptions {
3335
sourceCompatibility JavaVersion.VERSION_1_8
@@ -46,8 +48,11 @@ android {
4648
applicationId "com.example.objectbox_demo_relations"
4749
// You can update the following values to match your application needs.
4850
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
49-
minSdkVersion flutter.minSdkVersion
50-
targetSdkVersion flutter.targetSdkVersion
51+
// minSdkVersion flutter.minSdkVersion
52+
// targetSdkVersion flutter.targetSdkVersion
53+
// Using explicit versions to build with Flutter 2.2.0 in CI.
54+
minSdkVersion 16
55+
targetSdkVersion 29
5156
versionCode flutterVersionCode.toInteger()
5257
versionName flutterVersionName
5358
}

objectbox/example/flutter/objectbox_demo_sync/android/app/build.gradle

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ apply plugin: 'kotlin-android'
2626
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2727

2828
android {
29-
compileSdkVersion flutter.compileSdkVersion
30-
ndkVersion flutter.ndkVersion
29+
// Using explicit versions to build with Flutter 2.2.0 in CI.
30+
// compileSdkVersion flutter.compileSdkVersion
31+
// ndkVersion flutter.ndkVersion
32+
compileSdkVersion 31
3133

3234
compileOptions {
3335
sourceCompatibility JavaVersion.VERSION_1_8
@@ -47,7 +49,9 @@ android {
4749
// You can update the following values to match your application needs.
4850
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
4951
minSdkVersion 21 // ObjectBox Sync requires at least SDK 21 (Android 5.0)
50-
targetSdkVersion flutter.targetSdkVersion
52+
// targetSdkVersion flutter.targetSdkVersion
53+
// Using explicit version to build with Flutter 2.2.0 in CI.
54+
targetSdkVersion 29
5155
versionCode flutterVersionCode.toInteger()
5256
versionName flutterVersionName
5357
}

0 commit comments

Comments
 (0)