From b8b58ea484d705921cdf63f7a7470a9ff27ac7de Mon Sep 17 00:00:00 2001 From: Mirzamehdi Karimov <32781662+mirzemehdi@users.noreply.github.com> Date: Fri, 16 Feb 2024 20:25:22 +0100 Subject: [PATCH] Android and iOS setting min sdk (android minSdk 21, ios deploymentTarget 14.1) (#11) * Setting minimum android sdk version 21 * Ios setting mindeployment target 14.1 * Adding min sdk versions for android and ios to README.md --- README.md | 6 ++++++ gradle/libs.versions.toml | 2 +- iosApp/iosApp.xcodeproj/project.pbxproj | 4 ++-- kmpnotifier/build.gradle.kts | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2afdf74..b320a2d 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,12 @@ You can check out [Documentation](https://mirzemehdi.github.io/KMPNotifier) for ## Installation Before starting you need to setup basic setup using Firebase official guideline (like initializing project in Firebase, adding `google-services.json` to android, `GoogleService-Info.plist` to iOS). +## Minimum Requirements + +- **Android:** `minSdkVersion 21` +- **iOS:** `iOS 14.1` + + ### Gradle Setup KMPNotifier is available on Maven Central. In your root project `build.gradle.kts` file (or `settings.gradle` file) add `mavenCentral()` to repositories, and add `google-services` plugin to plugins. diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index bcc95d8..4685863 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -3,7 +3,7 @@ compose = "1.5.4" compose-plugin = "1.5.11" compose-compiler = "1.5.4" agp = "8.1.3" -android-minSdk = "24" +android-minSdk = "21" android-compileSdk = "34" android-targetSdk = "34" androidx-activityCompose = "1.8.0" diff --git a/iosApp/iosApp.xcodeproj/project.pbxproj b/iosApp/iosApp.xcodeproj/project.pbxproj index 2ff1300..00ed97f 100644 --- a/iosApp/iosApp.xcodeproj/project.pbxproj +++ b/iosApp/iosApp.xcodeproj/project.pbxproj @@ -337,7 +337,7 @@ "$(SRCROOT)/../sample/build/xcode-frameworks/$(CONFIGURATION)/$(SDK_NAME)", ); INFOPLIST_FILE = iosApp/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; + IPHONEOS_DEPLOYMENT_TARGET = 14.1; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -368,7 +368,7 @@ "$(SRCROOT)/../sample/build/xcode-frameworks/$(CONFIGURATION)/$(SDK_NAME)", ); INFOPLIST_FILE = iosApp/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 16.0; + IPHONEOS_DEPLOYMENT_TARGET = 14.1; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", diff --git a/kmpnotifier/build.gradle.kts b/kmpnotifier/build.gradle.kts index f42a208..52f9275 100644 --- a/kmpnotifier/build.gradle.kts +++ b/kmpnotifier/build.gradle.kts @@ -23,7 +23,7 @@ kotlin { cocoapods { - ios.deploymentTarget = "11.0" + ios.deploymentTarget = "14.1" framework { baseName = "KMPNotifier" isStatic = true