/composeApp/is for code that will be shared across your Compose Multiplatform applications.- It contains several subfolders:
/commonMain/is for code that’s common for all targets./iosMain/subfolder for Ios./androidMain/subfolder for Android./desktopMain/subfolder for Desktop./wasmJsMain/subfolder for Web.
- for Android Run ▶ 'uz.tashiit.composerailway.MainActivity.java'
- for Desktop Run command ▶ './gradlew :composeApp:runDistributable' or create gradleTask
- for Web Run command ▶ './gradlew :composeApp:wasmJsRun' or './gradlew :composeApp:wasmJsBrowserDevelopmentRun' or create almost like gradleTask
- for Ios // todo
- for Android use menu "Build -> Build Bundles/Apks -> ..." or "Build -> Generate Signed Bundle -> ... (outputDir is 'root\composeApp\build\outputs\apk\debug...')
- for Desktop use Run ▶ './gradlew :composeApp:createDistributable' (outputDir is 'root\composeApp\build\compose\binaries\main\app...')
- for Web use Run ▶ './gradlew :composeApp:wasmjsBrowserProductionWebpack' (outputDir is 'root\composeApp\build\dist\wasmJs...') (to see working web-app, need to be uploaded githubPages: see in githubPage - site )
- for Ios // todo
=====================================================================
-
Single:
- desktop setup installer (*.msi file) can be achieved with this
-
Note:
- Native distributions and local execution web site - Github
- Compose Multiplatform playground - MohamedRejeb Github
- Compose/Web is Experimental and may be changed at any time. Use it only for evaluation purposes.
- We would appreciate your feedback on Compose/Web and Kotlin/Wasm in the public Slack channel #compose-web.
- If you face any issues, please report them on GitHub.