Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/foso/mealapp
Kotlin Multiplatform project using Jetpack Compose and SwiftUI
https://github.com/foso/mealapp
android ios jetpack-compose kotlin-multiplatform ktor swiftui
Last synced: 9 days ago
JSON representation
Kotlin Multiplatform project using Jetpack Compose and SwiftUI
- Host: GitHub
- URL: https://github.com/foso/mealapp
- Owner: Foso
- License: apache-2.0
- Created: 2021-03-03T20:48:46.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-22T06:09:34.000Z (over 2 years ago)
- Last Synced: 2024-11-28T04:06:11.426Z (2 months ago)
- Topics: android, ios, jetpack-compose, kotlin-multiplatform, ktor, swiftui
- Language: Kotlin
- Homepage:
- Size: 4.57 MB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# MealApp
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 |
| ------------------ | --------------------------- | ------------------ |
| | | |## iOS
Have tested it on XCode v12.Just import the iOS project [iosApp](iosApp/) inside Xcode.
The iOS project compiles a Kotlin module to a framework (see [iosApp](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.## Android
The Android App is using Jetpack Compose for UI
You need to use [Android Studio Canary](https://developer.android.com/studio/preview) version.## Shared
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### Find this project useful ? :heart:
* Support it by clicking the :star: button on the upper right of this page. :v:## 📜 License
-------
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 athttp://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.