项目作者: sangeetsuresh

项目描述 :
Kotlin Native Example - Multiplatform - Android and iOS
高级语言: Swift
项目地址: git://github.com/sangeetsuresh/kotlin-native-example.git
创建时间: 2018-11-20T15:56:58Z
项目社区:https://github.com/sangeetsuresh/kotlin-native-example

开源协议:

下载


kotlin-native-example

Usage kotlin multiplatform feature to create an Android and iOS app in which whole business logic is wirtten in Kotlin language

View layer is written in platform specific languages

Presenter and Model layer is written in Kotlin language

  • app module is for android app code
  • common module is for common code which is shared between Android and iOS

    • common module consist of
      • commonMain - kotlin code
      • iOSMain - kotlin plaform specific code for iOS
      • androidMain - kotlin platform specific code for Android
  • iOSApp is for iOS app code

If you getting sdk.dir not found error during building, create local.properties in root project folder and add sdk.dir=<android sdk path> into that file. This is because it need android sdk to build this project