Skip to content

Commit 13e3a67

Browse files
Demos: use Android minSdkVersion of Flutter, is 21 for 3.24 #127
1 parent 8a75897 commit 13e3a67

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ android {
5050
applicationId "com.example.objectbox_demo"
5151
// You can update the following values to match your application needs.
5252
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
53-
// minSdkVersion flutter.minSdkVersion
54-
minSdkVersion 21 // ObjectBox Android requires Android 5.0 (API level 21)
53+
minSdkVersion flutter.minSdkVersion
5554
targetSdkVersion flutter.targetSdkVersion
5655
versionCode flutterVersionCode.toInteger()
5756
versionName flutterVersionName

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ android {
5050
applicationId "com.example.objectbox_demo_relations"
5151
// You can update the following values to match your application needs.
5252
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
53-
// minSdkVersion flutter.minSdkVersion
54-
minSdkVersion 21 // ObjectBox Android requires Android 5.0 (API level 21)
53+
minSdkVersion flutter.minSdkVersion
5554
targetSdkVersion flutter.targetSdkVersion
5655
versionCode flutterVersionCode.toInteger()
5756
versionName flutterVersionName

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ android {
5050
applicationId "com.example.objectbox_demo_sync"
5151
// You can update the following values to match your application needs.
5252
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
53-
// ObjectBox Sync: when using Flutter 3.19 or older increase to at least API level 21 (Android 5.0)
54-
// minSdkVersion flutter.minSdkVersion
55-
minSdkVersion 21
53+
minSdkVersion flutter.minSdkVersion
5654
targetSdkVersion flutter.targetSdkVersion
5755
versionCode flutterVersionCode.toInteger()
5856
versionName flutterVersionName

0 commit comments

Comments
 (0)