-
Notifications
You must be signed in to change notification settings - Fork 5
Description
- Can composeApp be modified to resemble the earlier template of App + UI module + widget modules + Fun modules? Because development is primarily done on Windows and Linux, adjusting the iOS app portion through Xcode is cumbersome. Renaming ComposeApp to a library extension requires significant changes. If the initial template is App (Android+JVM+iOS+...)+UI module, then simply modifying the Composable within the UI module will still allow compilation and startup on iOS.
2. For traditional Android apps that need to be migrated to Compose or even KMP+CMP, can this plugin's extended functionality—right-clicking "New Module"—generate a template and then convert it into a KMP+CMP project?
-
Add the "packageOfResClass" setting to the "compose.resources" section to ensure that Res matches the module's package name.
-
android:theme="@android:style/Theme.Material.Light.NoActionBar" becomes "YourAppNameTheme" in the style.xml/theme.xml file within Res. For example, <style name="AppTheme" parent="android:Theme.Material.Light.DarkActionBar">
false
true
This is an example after I manually adjusted it.
https://github.com/cybernhl/room-db-with-koin/tree/main
I first used JetBrain's older version of Kotlin Multiplatform (0.8.5) to create the Compose share UI module (deleting the template AndroidApp) and then began the Compose migration.
Then I created the Room module library (the fun module).
-
can add the sample ? https://www.jetbrains.com/help/kotlin-multiplatform-dev/multiplatform-build-native-binaries.html
"shared" "common" "widget" three module ? -
can add call native (JNI/ nativeInterop ) (ref : https://github.com/shadmanadman/KMP-TinyExpr) at "common"
THX