Pros Single language (Dart, JS, C#) Rapid development Easy to learn Native languages (Kotlin / Swift) Native UI Interoperability Cons Framework UI only Access to system / OS Performance Multiple languages Project setup Learning curve
official support for Kotlin janvier 2015 Using project Kotlin for Android published octobre 2018 Kotlin 1.3 release with experimental multiplatform suppot
official support for Kotlin janvier 2015 Using project Kotlin for Android published octobre 2018 Kotlin 1.3 release with experimental multiplatform suppot mars 2020 Kotlin1.3.70 release
official support for Kotlin janvier 2015 Using project Kotlin for Android published octobre 2018 Kotlin 1.3 release with experimental multiplatform suppot mars 2020 Kotlin1.3.70 release printemps 2020 Kotlin1.4 release
sharing expect fun currentTimeMillis(): Long src/commonMain/kotlin/Platform.kt actual fun currentTimeMillis(): Long = System.currentTimeMillis() src/androidMain/kotlin/PlatformAndroid.kt actual fun currentTimeMillis(): Long = (NSDate().timeIntervalSince1970 * 1000).toLong() src/iosMain/kotlin/PlatformiOS.kt
sharing expect class Date(year: Int, month: Int, day: Int) src/commonMain/kotlin/Date.kt actual typealias Date = java.util.GregorianCalendar src/androidMain/kotlin/Date.kt src/iosMain/kotlin/Date.kt actual class Date { actual constructor(year: Int, month: Int, day: Int) { val calendar = NSCalendar.currentCalendar val components = NSDateComponents() components.setDay(day.toLong()) components.setMonth(month.toLong()) components.setYear(year.toLong()) return calendar.dateFromComponents(comps)!! } }