Skip to content

Commit 42596ca

Browse files
authored
Merge pull request #4 from GuilhE/feature/swift-export
Swift Export - Kotlin 2.3.0
2 parents c430f6a + 5437c15 commit 42596ca

File tree

16 files changed

+84
-50
lines changed

16 files changed

+84
-50
lines changed

.idea/kotlinc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Changelog
22

3+
## [2.3.0-Beta2-1.10.0-alpha03]
4+
5+
- Kotlin 2.3.0-Beta2
6+
7+
---
8+
9+
## [2.3.0-Beta2-91-1.10.0-alpha03]
10+
11+
- Kotlin 2.3.0-Beta2-91
12+
- CMP 1.10.0-alpha03
13+
- KSP 2.3.0
14+
15+
---
16+
317
## [2.2.21-1.9.1]
418

519
- Kotlin 2.0.21
@@ -8,6 +22,12 @@
822

923
---
1024

25+
## [2.3.0-Beta1-1.9.0]
26+
27+
- Kotlin 2.3.0-Beta1
28+
29+
---
30+
1131
## [2.2.20-1.9.0]
1232

1333
- CMP 1.9.0

CHANGELOG_PLUGIN.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,35 @@
11
# Changelog
22

3+
## [2.3.0-Beta2-1.10.0-alpha03]
4+
5+
- Compatible with 2.3.0-Beta2-1.10.0-alpha03
6+
7+
---
8+
9+
## [2.3.0-Beta2-91-1.10.0-alpha03]
10+
11+
- Compatible with 2.3.0-Beta2-91-1.10.0-alpha03
12+
13+
---
14+
315
## [2.2.21-1.9.1]
416

517
- Compatible with 2.2.21-1.9.1
618

719
---
820

21+
## [2.3.0-Beta1-1.9.0]
22+
23+
- Compatible with 2.3.0-Beta1-1.9.0
24+
25+
---
26+
27+
## [2.3.0-dev-5897-1.9.0]
28+
29+
- Compatible with 2.3.0-dev-5897-1.9.0
30+
31+
---
32+
933
## [2.2.20-1.9.0-rc01]
1034

1135
- Compatible with 2.2.20-1.9.0-rc01

README.md

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44

55
KSP library and Gradle plugin for generating `ComposeUIViewController` and `UIViewControllerRepresentable` files when using [Compose Multiplatform](https://www.jetbrains.com/lp/compose-multiplatform/) for iOS.
66

7-
| Version | Kotlin | KSP | Compose Multiplatform | Xcode |
8-
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:--------------:|:-----:|:---------------------:|:------:|
9-
| `2.2.21-1.9.1` | 2.2.21 | 2.3.0 | 1.9.1 | 26.0.0 |
10-
| [![Gradle Plugin Portal Version](https://img.shields.io/gradle-plugin-portal/v/io.github.guilhe.kmp.plugin-composeuiviewcontroller?strategy=latestProperty)](https://plugins.gradle.org/plugin/io.github.guilhe.kmp.plugin-composeuiviewcontroller) | 2.3.0-Beta2-91 | 2.3.0 | 1.10.0-alpha03 | 26.0.0 |
7+
| Version | Kotlin | KSP | Compose Multiplatform | Xcode |
8+
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-----------:|:-----:|:---------------------:|:------:|
9+
| [![Gradle Plugin Portal Version](https://img.shields.io/gradle-plugin-portal/v/io.github.guilhe.kmp.plugin-composeuiviewcontroller?strategy=latestProperty)](https://plugins.gradle.org/plugin/io.github.guilhe.kmp.plugin-composeuiviewcontroller) | 2.3.0-Beta2 | 2.3.0 | 1.10.0-alpha03 | 26.0.0 |
1110

1211
[![Android Weekly](https://androidweekly.net/issues/issue-583/badge)](https://androidweekly.net/issues/issue-583) [![Featured in Kotlin Weekly - Issue #378](https://img.shields.io/badge/Featured_in_Kotlin_Weekly-Issue_%23378-7878b4)](https://mailchi.mp/kotlinweekly/kotlin-weekly-378) [![Featured in Kotlin Weekly - Issue #389](https://img.shields.io/badge/Featured_in_Kotlin_Weekly-Issue_%23389-7878b4)](https://mailchi.mp/kotlinweekly/kotlin-weekly-389) <a href="https://jetc.dev/issues/177.html"><img src="https://img.shields.io/badge/As_Seen_In-jetc.dev_Newsletter_Issue_%23177-blue?logo=Jetpack+Compose&amp;logoColor=white" alt="As Seen In - jetc.dev Newsletter Issue #177"></a> <a href="https://jetc.dev/issues/188.html"><img src="https://img.shields.io/badge/As_Seen_In-jetc.dev_Newsletter_Issue_%23188-blue?logo=Jetpack+Compose&amp;logoColor=white" alt="As Seen In - jetc.dev Newsletter Issue #188"></a>
1312

@@ -44,7 +43,7 @@ ComposeUiViewController {
4443
}
4544
```
4645

47-
With this setup, all necessary configurations are automatically applied. You only need to adjust the `ComposeUiViewController` block to match your
46+
With this setup, all necessary configurations are automatically applied. You only need to adjust the `ComposeUiViewController` block to match your
4847
project settings (e.g. `iosAppName` and `targetName`). If you wish to change the default values, you can configure its parameters:
4948

5049
<details><summary>Parameters available</summary>
@@ -61,14 +60,12 @@ project settings (e.g. `iosAppName` and `targetName`). If you wish to change the
6160

6261
## Swift Export
6362
To enable Swift Export support, just follow the official [documentation](https://kotlinlang.org/docs/native-swift-export.html).
64-
Until the stable release of Kotlin 2.3.0, use the experimental plugin chanel `2.3.0-*`.
6563

66-
> [!IMPORTANT]
67-
> The following steps are recommended when switching between modes:
68-
> 1. Change `embedAndSignAppleFrameworkForXcode` to `embedSwiftExportForXcode` in your `project.pbxproj` or vice-versa;
69-
> 2. Delete the `Representables` folder inside your `iosApp` using Xcode (if exists);
70-
> 3. Delete the `Derived Data`using Xcode or DevCleaner app;
71-
> 4. Run `./gradlew clean --no-build-cache`.
64+
> [!IMPORTANT]
65+
> When switching between modes - `embedAndSignAppleFrameworkForXcode` to `embedSwiftExportForXcode` or vice-versa - follow this steps:
66+
> 1. Delete the `Representables` folder inside your `iosApp` using Xcode;
67+
> 2. Delete the `Derived Data`using Xcode or DevCleaner app;
68+
> 3. Run `./gradlew clean --no-build-cache`.
7269
7370
## Code generation
7471

@@ -228,4 +225,4 @@ of the License at
228225

229226
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
230227
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under
231-
the License.
228+
the License.

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ buildscript {
1515

1616
allprojects {
1717
group = "com.github.guilhe.kmp"
18-
version = "2.2.21-1.9.1"
18+
version = "2.3.0-Beta2-1.10.0-alpha03"
1919
}
2020

2121
tasks.register("publishLibraryModules") {

gradle/libs.versions.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[versions]
22

3-
kotlin = "2.2.21"
3+
kotlin = "2.3.0-Beta2"
44
ksp = "2.3.0"
5-
kotlinCompose = "1.9.1"
5+
kotlinCompose = "1.10.0-alpha03"
66
kotlinxSerialization = "1.9.0"
7-
kotlinxSerializationPlugin = "2.2.21"
7+
kotlinxSerializationPlugin = "2.3.0-Beta2"
88
dokka = "2.1.0-Beta"
99
gradlePublish = "1.3.1"
1010
compileTesting = "0.8.0"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Thu Aug 31 12:49:13 WEST 2023
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.2-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-bin.zip
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

kmp-composeuiviewcontroller-gradle-plugin/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ dependencies {
2727
testImplementation(libs.test.kotlin)
2828
}
2929

30-
version = "2.2.21-1.9.1"
30+
version = "2.3.0-Beta2-1.10.0-alpha03"
3131
group = "io.github.guilhe.kmp"
3232

3333
gradlePlugin {

kmp-composeuiviewcontroller-gradle-plugin/src/main/kotlin/com/github/guilhe/kmp/composeuiviewcontroller/gradle/KmpComposeUIViewControllerPlugin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ public class KmpComposeUIViewControllerPlugin : Plugin<Project> {
290290
listOf(iosAppFolderName, iosAppName, targetName, autoExport, exportFolderName)
291291

292292
internal companion object {
293-
private const val VERSION_LIBRARY = "2.2.21-1.9.1"
293+
private const val VERSION_LIBRARY = "2.3.0-Beta2-1.10.0-alpha03"
294294
private const val LOG_TAG = "KmpComposeUIViewControllerPlugin"
295295
internal const val PLUGIN_KMP = "org.jetbrains.kotlin.multiplatform"
296296
internal const val PLUGIN_KSP = "com.google.devtools.ksp"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Fri Sep 01 22:06:55 WEST 2023
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.2-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-bin.zip
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)