What are the challenges if we have to migrate a na...
# multiplatform
r
What are the challenges if we have to migrate a native android app to support multiplatform (only ios for now)?. We use most of the libraries from google which are platform specific like viemodel, shared preferences, Room. I know we can migrate these since google now supports KMM like moving shared preference to data store. Use kotlin specific libraries as much as possible. Any other challenges one would face that would be a blocker?. Just want to hear from experienced folks!
p
Jetpack architecture is basically KMP ready. The major work is on iOS systems or 3rd party libraries. Do you use any iOS swift API non compatible with objective-c?
r
No.
p
Then it should be pretty straightforward forward. Follow the documentation, online guides and ask here when you got stuck
b
If you're app is date/time heavy, you'll need to migrate to the Kotlin DateTime library which is different than the Java based one, and that might cause you to rework how all that functions in the app. That was one of the heavier tasks in my migration as my app is all about dates/times.
👍 1