š² Foodium (Kotlin Multiplatform Mobile)
Foodium is a simple and sampleĀ mobile applicationĀ built to demonstrate the use ofĀ Kotlin Multiplatform MobileĀ for developingĀ Android and iOSĀ applications usingĀ Jetpack ComposeĀ š.
About
It simply loads posts data from API and displays them on the UI. The network API is a dummy (fixed) response which isĀ statically hostedĀ here. The concept of this app is originally taken fromĀ this project.
š± Preview
Currently, the app looks like this on the both platforms:
ā¶ļø Android
ā¶ļø iOS
Built with
- Kotlin: Programming language
- Kotlin Multiplatform: For building multi-platform applications in the single codebase.
- Jetpack/JetBrains Compose Multiplatform: For a shared UI between multi-platforms i.e. Android and iOS in this project.
- Kotlinx
- Coroutines: For multithreading
- Serialization: For JSON serialization/deserailization
- Ktor Client: Performing HTTP requests, Creating image loading utility for iOS module.
- Coil: Image loading for Android
- Mutekt: For UI state management
TODOs
Currently, it only shows a one Home screen with listing of posts. The following features will be integrated in the app andĀ Work is in Progressā¦
ā Completed
- Home screen UI
- Load posts from network
- Load images from network
š§ Work in progress
- Details screen UI
- Offline capability: Store posts data in local cache (Use SQLDelight)
- Use navigation framework
- Switch for dark/light theme.
Contribute
If you want to contribute to this library, youāre always welcome! SeeĀ Contributing Guidelines.
Discuss š¬
Have any questions, doubts or want to present your opinions, views? Youāre always welcome. You canĀ start discussions.
Acknowledgements
- JetBrains/compose-multiplatform-ios-android-template: For Starter template
- google/accompanist: For placeholder (shimmer animation) APIs
License
Copyright 2023 Shreyas Patil
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.