You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: topics/compose-onboard/compose-multiplatform-modify-project.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -100,9 +100,9 @@ and desktop:
100
100
101
101
{width=400}
102
102
103
-
> You can find this state of the project in our [GitHub repository](https://github.com/kotlin-hands-on/get-started-with-cm/tree/main/ComposeDemoStage1).
103
+
<!-- > You can find this state of the project in our [GitHub repository](https://github.com/kotlin-hands-on/get-started-with-cm/tree/main/ComposeDemoStage1).
Copy file name to clipboardExpand all lines: topics/compose-onboard/compose-multiplatform-new-project.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -410,9 +410,9 @@ code to load and display them:
410
410
411
411
{width=350}
412
412
413
-
>You can find this state of the project in our [GitHub repository](https://github.com/kotlin-hands-on/get-started-with-cm/tree/main/ComposeDemoStage4).
413
+
<!-->You can find this state of the project in our [GitHub repository](https://github.com/kotlin-hands-on/get-started-with-cm/tree/main/ComposeDemoStage4).
Copy file name to clipboardExpand all lines: topics/compose-onboard/compose-multiplatform-setup.md
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,17 @@ We recommend that you install the latest stable versions for compatibility and b
57
57
<p>To update the plugin, on the Android Studio welcome screen, select <strong>Plugins | Installed</strong>. Click <strong>Update</strong> next to Kotlin. You can also check the Kotlin version in <strong>Tools | Kotlin | Configure Kotlin Plugin Updates</strong>.</p>
58
58
<p>The Kotlin plugin should be compatible with the Kotlin Multiplatform Mobile plugin. Refer to the <a href="https://kotlinlang.org/docs/multiplatform-plugin-releases.html#release-details">compatibility table</a>.</p></td>
59
59
</tr>
60
+
<tr>
61
+
<td>Browsers</td>
62
+
<td>
63
+
<p>To run multiplatform applications in a browser, you need a browser supporting the <a href="https://github.com/WebAssembly/gc">Wasm Garbage Collection (GC) feature</a>.</p>
64
+
<list>
65
+
<li><strong>Chrome and Chromium-based:</strong> works by default starting from version 119.</li>
66
+
<li><strong>Firefox:</strong> works by default starting from version 120.</li>
67
+
<li><strong>Safari/WebKit:</strong> Wasm GC support is currently under <a href="https://bugs.webkit.org/show_bug.cgi?id=247394">active development</a>.</li>
68
+
</list>
69
+
</td>
70
+
</tr>
60
71
</table>
61
72
62
73
## Check your environment
@@ -143,6 +154,9 @@ To make sure everything works as expected, install and run the KDoctor tool:
143
154
<li><code>command not found: java</code> — <a href="https://www.oracle.com/java/technologies/javase-downloads.html">install Java</a>.</li>
144
155
</list>
145
156
</def>
157
+
<def title="Browsers">
158
+
Make sure that your browser version supports the new <a href="https://github.com/WebAssembly/gc">WasmGC</a> by default. If you are working with older browser versions, <a href="https://kotlinlang.org/docs/wasm-troubleshooting.html#browser-versions">configure the environment</a>.
159
+
</def>
146
160
<def title="Still having trouble?">
147
161
<p>Share your problems with the team by <a href="https://kotl.in/issue">creating a YouTrack issue</a>.</p>
148
162
<p>For a smoother multiplatform experience, you can also try <a href="https://www.jetbrains.com/help/kotlin-multiplatform-dev/fleet.html">JetBrains Fleet</a>: it integrates with Compose Multiplatform and allows writing Swift code without switching to Xcode, with less IDE juggling overall.</p>
Copy file name to clipboardExpand all lines: topics/multiplatform-publish-apps.md
+57-4Lines changed: 57 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,10 @@
1
1
[//]: #(title: Publish your application)
2
2
3
-
Once your mobile apps are ready for release, it's time to deliver them to the users by publishing them in app stores.
4
-
Multiple stores are available for each platform. However, in this article we'll focus on the official ones:
5
-
[Google Play Store](https://play.google.com/store) and [Apple App Store](https://www.apple.com/ios/app-store/).
3
+
Once your apps are ready for release, it's time to deliver them to the users by publishing them.
4
+
5
+
For mobile apps, multiple stores are available for each platform. However, in this article, we'll focus on the official ones:
6
+
[Google Play Store](https://play.google.com/store) and [Apple App Store](https://www.apple.com/ios/app-store/). For web apps, we'll use [GitHub pages](https://pages.github.com/).
7
+
6
8
You'll learn how to prepare Kotlin Multiplatform applications for publishing, and we'll highlight
7
9
the parts of this process that deserve special attention.
8
10
@@ -77,4 +79,55 @@ file. This helps you analyze crashes that happen in the shared module's code.
77
79
78
80
When an iOS app is rebuilt from bitcode, its `dSYM` file becomes invalid. For such cases, you can compile the shared module
79
81
to a static framework that stores the debug information inside itself. For instructions on setting up crash report
80
-
symbolication in binaries produced from Kotlin modules, see the [Kotlin/Native documentation](https://kotlinlang.org/docs/native-ios-symbolication.html).
82
+
symbolication in binaries produced from Kotlin modules, see the [Kotlin/Native documentation](https://kotlinlang.org/docs/native-ios-symbolication.html).
83
+
84
+
## Web app
85
+
86
+
To publish your web application, create the artifacts containing the compiled files
87
+
and resources that make up your application. These artifacts are necessary to deploy your application to a web hosting platform like GitHub Pages.
88
+
89
+
### Generate artifacts
90
+
91
+
Create a run configuration for running the **wasmJsBrowserDistribution** task:
92
+
93
+
1. Select the **Run | Edit Configurations** menu item.
94
+
2. Click the plus button and choose **Gradle** from the dropdown list.
95
+
3. In the **Tasks and arguments** field, paste this command:
96
+
97
+
```shell
98
+
wasmJsBrowserDistribution
99
+
```
100
+
101
+
4. Click **OK**.
102
+
103
+
Now, you can use this configuration to run the task:
104
+
105
+
{width=350}
106
+
107
+
Once the task completes, you can find the generated artifacts in the `composeApp/build/dist/wasmJs/productionExecutable`
With the artifacts ready, you can deploy your application on the web hosting platform:
115
+
116
+
1. Copy the contents of your `productionExecutable` directory into the repository where you want to create a site.
117
+
2. Follow GitHub's instructions for [creating your site](https://docs.github.com/en/pages/getting-started-with-github-pages/creating-a-github-pages-site#creating-your-site).
118
+
119
+
> It can take up to 10 minutes for changes to your site to publish after you push the changes to GitHub.
120
+
>
121
+
{type="note"}
122
+
123
+
3. In a browser, navigate to your GitHub pages domain.
124
+
125
+
{width=650}
126
+
127
+
Congratulations! You have published your artifacts on GitHub pages.
128
+
129
+
### Debug your web application
130
+
131
+
You can debug your web application in your browser out of the box, without additional configurations. To learn how to debug
132
+
in the browser, see the [Debug in your browser](https://kotlinlang.org/docs/wasm-debugging.html#debug-in-your-browser)
0 commit comments