All Projects → jarroyoesp → Kotlinmultiplatform

jarroyoesp / Kotlinmultiplatform

Licence: gpl-3.0
Kotlin MultiPlatform App (Android, iOS, JVM & JS). MVVM/MVP - Kotlin MultiPlatform

Programming Languages

swift
15916 projects
kotlin
9241 projects

Projects that are alternatives of or similar to Kotlinmultiplatform

DailyBugle
📰Modern MVVM Android application following single activity architecture which fetches news from 🕷️ news API. this repository contains some best practices ⚡ of android development
Stars: ✭ 17 (-97.43%)
Mutual labels:  mvvm-architecture, kotlin-coroutines
MockAppMVVM
A sample app structure using the MVVM architecture using Retrofit, Dagger2, LiveData, RxJava, ViewModel and Room.
Stars: ✭ 14 (-97.88%)
Mutual labels:  dagger, mvvm-architecture
RickAndMortyApp
A hobby project that showcases key android concepts
Stars: ✭ 41 (-93.8%)
Mutual labels:  mvvm-architecture, kotlin-coroutines
GithubTrendingRepos
Android - MVVM with Clean Architecture Blueprint Written In Kotlin
Stars: ✭ 50 (-92.44%)
Mutual labels:  mvvm-architecture, kotlin-coroutines
Tvflix
TvFlix android app using Dagger Hilt, Coroutines, Flow, KTX, Jetpack(Room, ViewModel, Paging3, Lifecycle) based on MVVM architecture purely written in Kotlin
Stars: ✭ 286 (-56.73%)
Mutual labels:  kotlin-coroutines, mvvm-architecture
Kriptofolio
Free open source minimalistic cryptocurrencies portfolio app for Android.
Stars: ✭ 79 (-88.05%)
Mutual labels:  dagger, mvvm-architecture
Zircon
Zircon is an extensible and user-friendly, multiplatform tile engine.
Stars: ✭ 552 (-16.49%)
Mutual labels:  multiplatform, jvm
Moonshot
A SpaceX companion app for Android
Stars: ✭ 150 (-77.31%)
Mutual labels:  kotlin-coroutines, dagger
Coroutineworker
Kotlin Coroutine-based workers for native
Stars: ✭ 282 (-57.34%)
Mutual labels:  kotlin-coroutines, multiplatform
Githubfollows
A demo project based on MVVM architecture and material design & animations.
Stars: ✭ 272 (-58.85%)
Mutual labels:  mvvm-architecture, dagger
NoMansWallpaperApp
Looking for your next No Man's Sky wallpaper?
Stars: ✭ 35 (-94.7%)
Mutual labels:  mvvm-architecture, kotlin-coroutines
Kompass
Kotlin Multiplatform Router for Android and iOS
Stars: ✭ 328 (-50.38%)
Mutual labels:  multiplatform, mvvm-architecture
MVVMQuick
🚀使用MVVMQuick快速构建您的MVVM结构项目!(Quickly start projects with MVVMQuick!)
Stars: ✭ 23 (-96.52%)
Mutual labels:  dagger, mvvm-architecture
Klock
Multiplatform Date and time library for Kotlin
Stars: ✭ 569 (-13.92%)
Mutual labels:  multiplatform, jvm
RestaurantsExplorer
Android application build with MVVM Pattern, using Zomato API to enable search cities arround the world and display the city restaurants on a map.
Stars: ✭ 32 (-95.16%)
Mutual labels:  dagger, mvvm-architecture
WanAndroidJetpack
🔥 WanAndroid 客户端,Kotlin + MVVM + Jetpack + Retrofit + Glide。基于 MVVM 架构,用 Jetpack 实现,网络采用 Kotlin 的协程和 Retrofit 配合使用!精美的 UI,便捷突出的功能实现,欢迎下载体验!
Stars: ✭ 124 (-81.24%)
Mutual labels:  mvvm-architecture, kotlin-coroutines
Coinverse
Coinverse Open App is the first audiocast app for cryptocurrency news. 🚀
Stars: ✭ 133 (-79.88%)
Mutual labels:  kotlin-coroutines, dagger
Hiya Hiya Hiya
Whatsapp Clone base on Firebase Cloud Messaging
Stars: ✭ 139 (-78.97%)
Mutual labels:  kotlin-coroutines, mvvm-architecture
foodies
A clean MVVM architecture android application
Stars: ✭ 14 (-97.88%)
Mutual labels:  mvvm-architecture, kotlin-coroutines
Goldmovies
👑 The GoldMovies is based on Kotlin, MVVM architecture, coroutines, dagger, koin, and material designs & animations.
Stars: ✭ 314 (-52.5%)
Mutual labels:  mvvm-architecture, dagger

Kotlin-Multiplatform (Android, iOS, JS & JVM Desktop App)

kotlin-version kotlin-weekly

License: GPL v3

This example shows how to create a simple Android/iOS/JVM/JS project sharing some Kotlin code. This app saves on a local database your favourites locations and get the current weather of them from OpenWeatherMap.

In this app we share common code for both platforms (Android/iOS) to get data from an API (in this case OpenWeatherMap). The libraries that we use are:

Tests:

  • MockK: mocking library for Kotlin

Android App - Master Branch

With this app you can get the weather of your locations using KTor:

And add and save on SQLDelight database your favourite locations:

iOS App

Open XCode and select the project:

JVM - Desktop App

To execute this version as desktop app, you have to execute this code on your console:

./gradlew JavaFxApp:run

By default the JDBC SQLite is created in memory. If you want to persist your database in your disk, you have to indicate the path when you create the database driver:

SQLDriver.kt
JdbcSqliteDriver("jdbc:sqlite:$your_database_path")

JS App

If you want to launch a web to get the weather you can try executing the next commands:

./gradlew JsApp:run
./gradlew BackEnd:run
--> localhost:8080

Current weather is not shown when you launch the browser? If you have this problem (Module not found: Error: Can't resolve 'core-js/features/object/assign') try to reinstall the node module core-js:

npm install core-js

I have followed these examples:

https://kotlinlang.org/docs/tutorials/native/mpp-ios-android.html

https://www.raywenderlich.com/1022411-kotlin-multiplatform-project-for-android-and-ios-getting-started

https://proandroiddev.com/kotlin-multiplatform-very-beginners-guide-part-3-database-e34c92daf41c

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].