Skip to content

Some suggestions #86

@CMingTseng

Description

@CMingTseng
  1. 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.
Image Image 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?
  1. Add the "packageOfResClass" setting to the "compose.resources" section to ensure that Res matches the module's package name.

  2. 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

</style> Or <style name="AppTheme" parent="android:Theme.Material.NoActionBar"/>

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).

  1. can add the sample ? https://www.jetbrains.com/help/kotlin-multiplatform-dev/multiplatform-build-native-binaries.html
    "shared" "common" "widget" three module ?

  2. can add call native (JNI/ nativeInterop ) (ref : https://github.com/shadmanadman/KMP-TinyExpr) at "common"

THX

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions