Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/florent37/kotlinnativesample
Kotlin Native app working on Android & iPhone
https://github.com/florent37/kotlinnativesample
android ios iphone jvm kotlin ktor native swift xcode
Last synced: 5 days ago
JSON representation
Kotlin Native app working on Android & iPhone
- Host: GitHub
- URL: https://github.com/florent37/kotlinnativesample
- Owner: florent37
- License: apache-2.0
- Created: 2018-10-31T10:57:13.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-12T16:29:35.000Z (almost 6 years ago)
- Last Synced: 2024-10-25T00:48:45.519Z (12 days ago)
- Topics: android, ios, iphone, jvm, kotlin, ktor, native, swift, xcode
- Language: Kotlin
- Homepage: https://medium.com/@champigny.florent/my-first-experience-with-kotlin-native-988e96f26657
- Size: 1000 KB
- Stars: 120
- Watchers: 4
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# KotlinNative Sample
Sample project for my Medium Story : **My first experience with kotlin native**
[**My first experience with kotlin native**](https://medium.com/@champigny.florent/my-first-experience-with-kotlin-native-988e96f26657)
[![screen](https://raw.githubusercontent.com/florent37/KotlinNativeSample/master/medias/iphone_android.png)](https://www.github.com/florent37/KotlinNativeSample)
# How to build
Just run
```
./gradlew build
```It will generate kotlin `common` module implementation for Android/JVM and for iOS/Native
# XCode project
Inside the `appios/` directory you'll find the xcode workspace, bound to the kotlin-native framework generated from the `common` module
Open the xcode project to generate the iPhone app.
[![screen](https://raw.githubusercontent.com/florent37/KotlinNativeSample/master/medias/xcode_code.png)](https://www.github.com/florent37/KotlinNativeSample)
# Android project
Inside the `android/` directory you'll find the android app code
Add an android configuration on your IDE to push the application to your phone.
[![screen](https://raw.githubusercontent.com/florent37/KotlinNativeSample/master/medias/android_code.png)](https://www.github.com/florent37/KotlinNativeSample)