/KotlinMultiPlatform

MultiPlatform Kotlin App (Android & iOS). MVVM - Dagger - Kotlin MultiPlatform

Primary LanguageKotlin

Kotlin-Multiplatform (Android & iOS App)

This example shows how to create a simple Android/iOS 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:

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 - iOSApp Branch

If you choose the branch iOSApp you can see this app:

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