This is an example project that is using a shared Kotlin Multiplatform project between an Android and an iOS project. The Android App UI is using Jetpack Compose and the iOS App is using SwiftUI. Please be aware that i just started learning Compose and SwiftUI, so there are a lot of things to improve.
Android Overview | Details1 | Details2 |
---|---|---|
iOS Overview | Details1 | Details2 |
---|---|---|
Have tested it on XCode v12.
Just import the iOS project iosApp inside Xcode.
The iOS project compiles a Kotlin module to a framework (see iosApp).
The iOS application is written with SwiftUI. It uses Kotlin module as a library. Kotlin module is built into Objective-C framework by invoking Gradle from custom "Run Script" build phase, and this framework is imported into the Xcode project.
The Android App is using Jetpack Compose for UI You need to use Android Studio Canary version.
The apps get their data from the Meal Api (https://www.themealdb.com). The complete Network Layer and Json Serialization for both apps is done in this module. It is using Ktor Clients and Kotlinx Serialization
- Support it by clicking the ⭐ button on the upper right of this page. ✌️
This project is licensed under Apache License, Version 2.0
Copyright 2021 Jens Klingenberg
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.