Skip to content

Commit

Permalink
Document required minSdkVersion 21
Browse files Browse the repository at this point in the history
  • Loading branch information
christocracy committed Feb 29, 2024
1 parent 44f10a8 commit 702df09
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ android {
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.transistorsoft.flutterbackgroundgeolocationexample"
minSdkVersion 22
multiDexEnabled false
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
Expand All @@ -102,7 +101,7 @@ android {
release {
signingConfig signingConfigs.release
minifyEnabled true
shrinkResources true
shrinkResources false
proguardFiles "proguard-rules.pro"
proguardFiles "${background_geolocation.projectDir}/proguard-rules.pro"
}
Expand Down
2 changes: 1 addition & 1 deletion example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ext {
kotlin_version = '1.7.10'
compileSdkVersion = 34
targetSdkVersion = 34
minSdkVersion = 19
minSdkVersion = 21
appCompatVersion = "1.4.2"
playServicesLocationVersion = "21.1.0"
hmsLocationVersion = "6.12.0.300" //<-- this version invokes StrictMode crash "Explicit termination method 'end' not called" from its own okhttp requests!!
Expand Down
4 changes: 2 additions & 2 deletions help/INSTALL-ANDROID.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ allprojects { // <-- IMPORTANT: allprojects
+ext {
+ compileSdkVersion = 33 // or higher / as desired
+ targetSdkVersion = 33 // or higher / as desired
+ minSdkVersion = 19 // Required minimum
+ minSdkVersion = 21 // Required minimum
+ appCompatVersion = "1.4.2" // or higher / as desired
+ playServicesLocationVersion = "21.0.1" // or higher / as desired
+}
Expand All @@ -68,7 +68,7 @@ buildscript {
+ ext {
+ compileSdkVersion = 33 // or higher / as desired
+ targetSdkVersion = 33 // or higher / as desired
+ minSdkVersion = 19 // Required minimum
+ minSdkVersion = 21 // Required minimum
+ appCompatVersion = "1.4.2" // or higher / as desired
+ playServicesLocationVersion = "21.0.1" // or higher / as desired
+ }
Expand Down

0 comments on commit 702df09

Please sign in to comment.