From d0418a9db2dcd1e2851aad8f3751a2c836243847 Mon Sep 17 00:00:00 2001 From: Rick Clephas Date: Sat, 18 Nov 2023 09:27:55 +0100 Subject: [PATCH 1/3] Bump version to 1.0.0-ALPHA-21 --- KMPNativeCoroutinesAsync.podspec | 2 +- KMPNativeCoroutinesCombine.podspec | 2 +- KMPNativeCoroutinesCore.podspec | 2 +- KMPNativeCoroutinesRxSwift.podspec | 2 +- README.md | 10 +++++----- build.gradle.kts | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/KMPNativeCoroutinesAsync.podspec b/KMPNativeCoroutinesAsync.podspec index 1b2d517c..60b137c1 100644 --- a/KMPNativeCoroutinesAsync.podspec +++ b/KMPNativeCoroutinesAsync.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'KMPNativeCoroutinesAsync' - s.version = '1.0.0-ALPHA-20' + s.version = '1.0.0-ALPHA-21' s.summary = 'Swift library for Kotlin Coroutines with Swift Async/Await' s.homepage = 'https://github.com/rickclephas/KMP-NativeCoroutines' diff --git a/KMPNativeCoroutinesCombine.podspec b/KMPNativeCoroutinesCombine.podspec index 0f2a02c4..f07052de 100644 --- a/KMPNativeCoroutinesCombine.podspec +++ b/KMPNativeCoroutinesCombine.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'KMPNativeCoroutinesCombine' - s.version = '1.0.0-ALPHA-20' + s.version = '1.0.0-ALPHA-21' s.summary = 'Swift library for Kotlin Coroutines with Combine' s.homepage = 'https://github.com/rickclephas/KMP-NativeCoroutines' diff --git a/KMPNativeCoroutinesCore.podspec b/KMPNativeCoroutinesCore.podspec index 2fe8efd7..aa71bceb 100644 --- a/KMPNativeCoroutinesCore.podspec +++ b/KMPNativeCoroutinesCore.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'KMPNativeCoroutinesCore' - s.version = '1.0.0-ALPHA-20' + s.version = '1.0.0-ALPHA-21' s.summary = 'Swift library for Kotlin Coroutines' s.homepage = 'https://github.com/rickclephas/KMP-NativeCoroutines' diff --git a/KMPNativeCoroutinesRxSwift.podspec b/KMPNativeCoroutinesRxSwift.podspec index 1a1cd8cc..694e73ef 100644 --- a/KMPNativeCoroutinesRxSwift.podspec +++ b/KMPNativeCoroutinesRxSwift.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'KMPNativeCoroutinesRxSwift' - s.version = '1.0.0-ALPHA-20' + s.version = '1.0.0-ALPHA-21' s.summary = 'Swift library for Kotlin Coroutines with RxSwift' s.homepage = 'https://github.com/rickclephas/KMP-NativeCoroutines' diff --git a/README.md b/README.md index 42eb435f..341817ba 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ For Kotlin just add the plugin to your `build.gradle.kts`: ```kotlin plugins { id("com.google.devtools.ksp") version "1.9.20-1.0.14" - id("com.rickclephas.kmp.nativecoroutines") version "1.0.0-ALPHA-20" + id("com.rickclephas.kmp.nativecoroutines") version "1.0.0-ALPHA-21" } ``` and make sure to opt in to the experimental `@ObjCName` annotation: @@ -80,7 +80,7 @@ The Swift implementations are available via the Swift Package Manager. Just add it to your `Package.swift` file: ```swift dependencies: [ - .package(url: "https://github.com/rickclephas/KMP-NativeCoroutines.git", from: "1.0.0-ALPHA-20") + .package(url: "https://github.com/rickclephas/KMP-NativeCoroutines.git", from: "1.0.0-ALPHA-21") ] ``` @@ -99,9 +99,9 @@ Or add it in Xcode by going to `File` > `Add Packages...` and providing the URL: If you use CocoaPods add one or more of the following libraries to your `Podfile`: ```ruby -pod 'KMPNativeCoroutinesAsync', '1.0.0-ALPHA-20' # Swift Concurrency implementation -pod 'KMPNativeCoroutinesCombine', '1.0.0-ALPHA-20' # Combine implementation -pod 'KMPNativeCoroutinesRxSwift', '1.0.0-ALPHA-20' # RxSwift implementation +pod 'KMPNativeCoroutinesAsync', '1.0.0-ALPHA-21' # Swift Concurrency implementation +pod 'KMPNativeCoroutinesCombine', '1.0.0-ALPHA-21' # Combine implementation +pod 'KMPNativeCoroutinesRxSwift', '1.0.0-ALPHA-21' # RxSwift implementation ``` > [!NOTE] > The version for CocoaPods should not contain the Kotlin version suffix (e.g. `-new-mm` or `-kotlin-1.6.0`). diff --git a/build.gradle.kts b/build.gradle.kts index 1c5aa3aa..fa300ea4 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -12,7 +12,7 @@ buildscript { allprojects { group = "com.rickclephas.kmp" - version = "1.0.0-ALPHA-20" + version = "1.0.0-ALPHA-21" repositories { mavenCentral() From 368fb28f51981518995295e797cf927c080ca5e2 Mon Sep 17 00:00:00 2001 From: Rick Clephas Date: Sat, 18 Nov 2023 09:41:57 +0100 Subject: [PATCH 2/3] Update SPM code snippet --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 341817ba..8b0520b2 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,20 @@ The Swift implementations are available via the Swift Package Manager. Just add it to your `Package.swift` file: ```swift dependencies: [ - .package(url: "https://github.com/rickclephas/KMP-NativeCoroutines.git", from: "1.0.0-ALPHA-21") + .package(url: "https://github.com/rickclephas/KMP-NativeCoroutines.git", exact: "1.0.0-ALPHA-21") +], +targets: [ + .target( + name: "MyTargetName", + dependencies: [ + // Swift Concurrency implementation + .product(name: "KMPNativeCoroutinesAsync", package: "KMP-NativeCoroutines"), + // Combine implementation + .product(name: "KMPNativeCoroutinesCombine", package: "KMP-NativeCoroutines"), + // RxSwift implementation + .product(name: "KMPNativeCoroutinesRxSwift", package: "KMP-NativeCoroutines") + ] + ) ] ``` From 22d82453f0b836d7b1a729f34bc9cf49515cd522 Mon Sep 17 00:00:00 2001 From: Rick Clephas Date: Sat, 18 Nov 2023 09:43:36 +0100 Subject: [PATCH 3/3] Update compatibility info --- README.md | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 8b0520b2..88fba41b 100644 --- a/README.md +++ b/README.md @@ -29,17 +29,18 @@ This library solves both of these limitations 😄. The latest version of the library uses Kotlin version `1.9.20`. Compatibility versions for older and/or preview Kotlin versions are also available: -| Version | Version suffix | Kotlin | KSP | Coroutines | -|----------------|----------------------|:----------:|:----------:|:----------:| -| **_latest_** | **_no suffix_** | **1.9.20** | **1.0.14** | **1.7.3** | -| 1.0.0-ALPHA-19 | _no suffix_ | 1.9.20 | 1.0.13 | 1.7.3 | -| 1.0.0-ALPHA-18 | _no suffix_ | 1.9.10 | 1.0.13 | 1.7.3 | -| 1.0.0-ALPHA-17 | _no suffix_ | 1.9.0 | 1.0.12 | 1.7.3 | -| 1.0.0-ALPHA-13 | _no suffix_ | 1.9.0 | 1.0.11 | 1.7.2 | -| 1.0.0-ALPHA-12 | _no suffix_ | 1.8.22 | 1.0.11 | 1.7.2 | -| 1.0.0-ALPHA-10 | _no suffix_ | 1.8.21 | 1.0.11 | 1.7.1 | -| 1.0.0-ALPHA-8 | _no suffix_ | 1.8.21 | 1.0.11 | 1.6.4 | -| 1.0.0-ALPHA-7 | _no suffix_ | 1.8.20 | 1.0.10 | 1.6.4 | +| Version | Version suffix | Kotlin | KSP | Coroutines | +|----------------|---------------------|:-----------:|:----------:|:----------:| +| _latest_ | -kotlin-2.0.0-Beta1 | 2.0.0-Beta1 | 1.0.14 | 1.7.3 | +| **_latest_** | **_no suffix_** | **1.9.20** | **1.0.14** | **1.7.3** | +| 1.0.0-ALPHA-19 | _no suffix_ | 1.9.20 | 1.0.13 | 1.7.3 | +| 1.0.0-ALPHA-18 | _no suffix_ | 1.9.10 | 1.0.13 | 1.7.3 | +| 1.0.0-ALPHA-17 | _no suffix_ | 1.9.0 | 1.0.12 | 1.7.3 | +| 1.0.0-ALPHA-13 | _no suffix_ | 1.9.0 | 1.0.11 | 1.7.2 | +| 1.0.0-ALPHA-12 | _no suffix_ | 1.8.22 | 1.0.11 | 1.7.2 | +| 1.0.0-ALPHA-10 | _no suffix_ | 1.8.21 | 1.0.11 | 1.7.1 | +| 1.0.0-ALPHA-8 | _no suffix_ | 1.8.21 | 1.0.11 | 1.6.4 | +| 1.0.0-ALPHA-7 | _no suffix_ | 1.8.20 | 1.0.10 | 1.6.4 | You can choose from a couple of Swift implementations. Depending on the implementation you can support as low as iOS 9, macOS 10.9, tvOS 9 and watchOS 3: