Coder Social home page Coder Social logo

patilshreyas / foodium-kmm Goto Github PK

View Code? Open in Web Editor NEW
308.0 4.0 23.0 94.87 MB

πŸ“±Sample application built to demonstrate the use of Kotlin Multiplatform Mobile for developing Android and iOS applications using Jetpack Compose πŸš€.

License: Apache License 2.0

Kotlin 99.19% Shell 0.19% Ruby 0.08% Swift 0.54%
android android-app coroutines ios ios-app kmm kmm-sample kmp kotlin kotlin-multiplatform

foodium-kmm's Introduction

🍲 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 πŸš€.

Platforms
Status Build

About

It simply loads Posts data from API and stores it in persistence storage (i.e. SQLite Database). Posts will be always loaded from local database. Remote data (from API) and Local data is always synchronized.

Features:

  • Offline capability πŸ“΅
  • Dark mode πŸŒ“
  • Clean and Simple Material 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

android.mp4

▢️ iOS

ios.mp4

Built with

Setting up project πŸ‘¨πŸ»β€πŸ’»

  • Refer to the "Setting up environment" section of this repository for knowing the setup guidelines
  • After validating requirements as per the above guide, clone this repository.
  • Open this project in Android Studio Electric Eel or newer version.
  • Build project πŸ”¨ and see if everything is working fine.
  • Run App
    • Select "androidApp" as run configuration and you'll be able to run the Android app.
    • Select "iosApp" as run configuration and you'll be able to run the iOS app (XCode can also be used to run the app).

Project structure

This Compose Multiplatform project includes three modules:

This is a Kotlin module that contains the logic common for both Android and iOS applications, the code you share between platforms. This shared module is also where you write your Compose Multiplatform code. In shared/src/commonMain/kotlin/App.kt, you can find the shared root @Composable function for your app. It uses Gradle as the build system. You can add dependencies and change settings in shared/build.gradle.kts. The shared module builds into an Android library and an iOS framework.

This is a Kotlin module that builds into an Android application. It uses Gradle as the build system. The androidApp module depends on and uses the shared module as a regular Android library.

This is an Xcode project that builds into an iOS application. It depends on and uses the shared module as a CocoaPods dependency.


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

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.

foodium-kmm's People

Contributors

dependabot[bot] avatar patilshreyas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

foodium-kmm's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.