5/28/2023 0 Comments Kotlin multiplatform ios![]() Android Architecture Components (primarily ViewModel)Īs always, PRs or suggestions for better way of implementing any of this are very welcome (can respond to tweet shown at bottom of post)! iOS SwiftUI Code struct ContentView : View Update Īdded commit that starts to make use of new Kotlin/Native multi-threaded coroutine support ( 1.3.The Kotlin/Swift code below constitutes majority of code used in the project (I did say it was minimal!!). Note: You need to use Android Studio v4.0 (currently on Canary 6) to build Android app. The project uses very basic API to show list of people currently in 1 Answer Sorted by: 3 Including a KMM module into an existing iOS app does not require any sort of conversion of the existing iOS app. Same approach outlined in SwiftUI meets Kotlin Multiplatform!). To try out use of Jetpack Compose for the Android app (with UI being developed on iOS Project and thus PeopleInSpace was created. However I thought there’d be value in creating a more minimal project that would allow clearer illustration of key moving parts of a multiplatform worked with multi-platform tech stacks that deployed to iOS and Android: the first team used Kotlin Multiplatform Mobile (KMM) and the Mac. I have a C++ library that I need to use from android and iOS, so my idea is to create a multiplatform module that would wrap the library to use it from both implementations. Kotlin Multiplatform is Jetbrains take on the cross-platform world. The KMM shared component can be developed on its own, and included in the iOS project by adding it in the iOS project's podfile, then methods from it can be called like any other third-party library. ![]() ![]() Of various explorations I’ve done in to the use of Kotlin Multiplatform. 1 Answer Sorted by: 3 Including a KMM module into an existing iOS app does not require any sort of conversion of the existing iOS app. In previous posts I’ve used GalwayBus repo to illustrate results ![]()
0 Comments
Leave a Reply. |