From e484e464b5f3d80d371025ccd6f04a9e43e34549 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sun, 11 Aug 2024 18:16:26 +0200 Subject: [PATCH] Don't hardcode minSdk/compileSdk/targetSdk --- example/android/app/build.gradle | 6 +++--- unifiedpush_android/android/build.gradle | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 4a7ac85..d6fa923 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -30,7 +30,7 @@ kotlin { } android { - compileSdk 34 + compileSdk flutter.compileSdkVersion sourceSets { main.java.srcDirs += 'src/main/kotlin' @@ -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 diff --git a/unifiedpush_android/android/build.gradle b/unifiedpush_android/android/build.gradle index 159a052..5cf6a08 100644 --- a/unifiedpush_android/android/build.gradle +++ b/unifiedpush_android/android/build.gradle @@ -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' }