Daniele B
03/26/2021, 4:37 PMrusshwolf
03/26/2021, 7:59 PMWhen comparing KMP to other cross-platform frameworks such as Flutter and ReactNative, KMP can easily be the winner only if we are sharing both the data layer and the view model. A solution where KMP is used only for the DataLayer would still require a whole lot of platform-specific code, and wouldn’t be particularly appealing for many companies when compared with Flutter and ReactNative.You can't compare using KMP as a data layer to using Flutter or RN for the entire app. You have to compare to other data layer solutions. And using Flutter or RN as the data layer is much more difficult than KMP.
Daniele B
03/26/2021, 8:10 PMrusshwolf
03/26/2021, 8:58 PMCompeting with Flutter and RN means to be able to share more than just the data layer.No, it's the exact opposite! Yes, being able to share more than just the data layer helps make KMP competitive against these other solutions if your goal is to maximize shared code in a new app. But the world is not made only of new projects, and the strength of KMP is that it can also do other things. You're basically saying "sharing just the data layer is bad, so don't use KMP to do it", but that's bizarre as an argument against KMP, because if your goal is to share just the data layer then KMP absolutely outshines the other solutions.
Daniele B
03/26/2021, 9:09 PMFor new projects, when comparing KMP to other cross-platform frameworks such as Flutter and ReactNative, KMP can easily be the winner only if we are sharing both the data layer and the view model. A solution where KMP is used only for the DataLayer would still require a whole lot of platform-specific code, and wouldn’t be particularly appealing for many companies when compared to Flutter and ReactNative.
kenkyee
03/26/2021, 10:09 PMDaniele B
03/26/2021, 10:27 PMkenkyee
03/26/2021, 10:33 PMDaniele B
03/26/2021, 10:42 PMkenkyee
03/26/2021, 11:12 PMMichal Harakal
03/27/2021, 7:52 PMDaniele B
03/27/2021, 8:41 PMmarzelwidmer
03/28/2021, 3:07 PMkmm
basically I am backend developer (spring kotlin) … try to get in the Mobile world 🙂 we have in the company native android/ios
and web… this kmp/kmm
is really interesting… I was trying to also support the jvm
with the shared code
but I was not really successful 😞 I am used to maven in the backend 🙂 😞. @Daniele B U have maybe a tip for me… It will be also be nice to separate the android/ios
part in separate gitmodule
i was trying it with the https://github.com/KodeinKoders/playground-alternate-KMM-architectures but also there i was not successful of missing knowledge of gradle… with the separation I was thinking it will be more easy to push it in the company to the ios
devs 🙂Daniele B
03/28/2021, 3:13 PMmarzelwidmer
03/28/2021, 3:16 PMDaniele B
03/28/2021, 3:28 PMmarzelwidmer
03/28/2021, 3:30 PMDaniele B
03/28/2021, 3:31 PMmarzelwidmer
03/28/2021, 3:33 PMDaniele B
03/28/2021, 3:34 PM