Skip to content

Commit

Permalink
Don't hardcode minSdk/compileSdk/targetSdk
Browse files Browse the repository at this point in the history
  • Loading branch information
emersion committed Aug 11, 2024
1 parent 09a36b0 commit e484e46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ kotlin {
}

android {
compileSdk 34
compileSdk flutter.compileSdkVersion

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
Expand All @@ -39,8 +39,8 @@ android {

defaultConfig {
applicationId "org.unifiedpush.flutter.example"
minSdk 16
targetSdk 34
minSdk flutter.minSdkVersion
targetSdk flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
// Required when setting minSdkVersion to 20 or lower
Expand Down
4 changes: 2 additions & 2 deletions unifiedpush_android/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ kotlin {
}

android {
compileSdk 34
compileSdk flutter.compileSdkVersion

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}

defaultConfig {
minSdk 16
minSdk flutter.minSdkVersion
}
namespace 'org.unifiedpush.flutter.connector'
}
Expand Down

0 comments on commit e484e46

Please sign in to comment.