From fe5962eee8cbc1e6d5550e3586e2a4186be8ef20 Mon Sep 17 00:00:00 2001 From: Mirzamehdi Date: Fri, 16 Feb 2024 19:57:31 +0100 Subject: [PATCH 1/3] Setting minimum android sdk version 21 --- gradle/libs.versions.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" From 1cd641fb9e4275bbe1ec7bc226571e6ca6a90191 Mon Sep 17 00:00:00 2001 From: Mirzamehdi Date: Fri, 16 Feb 2024 20:19:51 +0100 Subject: [PATCH 2/3] Ios setting mindeployment target 14.1 --- iosApp/iosApp.xcodeproj/project.pbxproj | 4 ++-- kmpnotifier/build.gradle.kts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 From cfeed228defdbfc5f5a91a73dce4f7a3aade1e00 Mon Sep 17 00:00:00 2001 From: Mirzamehdi Date: Fri, 16 Feb 2024 20:21:15 +0100 Subject: [PATCH 3/3] Adding min sdk versions for android and ios to README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) 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.