Questions: IosArm64 Actual declaration shortcut keep complaining.
rhonyabdullah opened this issue · 3 comments
rhonyabdullah commented
Hello @Alex009
As discussed here Adding SQLDelight to the project i try to move out my DatabaseDriverFactory class into iosX64Main folder, but after rebuilding the project i didn't see any iosArm64Main shortcut generated like moko-template did here
I am also upgrade kotlin version to 1.4.21 and moko-mvvm to 0.8.1 as described on moko-mvvm readme file
My question is:
- How my project can be able to generate that iosArm64Main shortcut folder automatically like moko-template do ?
- Also, my serializable annotation is missing each time "build" project executed, but if i try to put serializable annotation alongside moko-template News.kt entity class it's just fine.
Alex009 commented
hi!
iosArm64Main
in issue is just symbolic link. to create it useln -s iosX64Main iosArm64Main
. nothing is done automatically.- in samples your class marked as @serializable, but in template used @parcelize - it's two different annotations for different purpose. Parcelize is from https://github.com/icerockdev/moko-parcelize to support android Parcelable generation. Serializable is from https://github.com/Kotlin/kotlinx.serialization to serialize to/from Json.
rhonyabdullah commented
hi!
iosArm64Main
in issue is just symbolic link. to create it useln -s iosX64Main iosArm64Main
. nothing is done automatically.- in samples your class marked as @serializable, but in template used @parcelize - it's two different annotations for different purpose. Parcelize is from https://github.com/icerockdev/moko-parcelize to support android Parcelable generation. Serializable is from https://github.com/Kotlin/kotlinx.serialization to serialize to/from Json.
- I have done, now it's working, thank you.
- I understand that between serializable & moko parcelize is two different, but strange is coming if i try to replace parcelize or put serializable alongside News.kt class it is still working fine, this issue also appear on kmm sample project and i was create a new issue there, hope they can explain and help how to resolve.
rhonyabdullah commented
I think i can close this issue because error is now heading to kotlinx serialization.