22 Mai 2020 | Google Technologies Week Guinea 2020 Développement Android et iOS avec Kotlin Multiplatform Charles “Chuck” Greb Développeur Mobile Co-Lead GDG Ratoma @ecgreb
juillet 2011 Jetbrains announces project Kotlin mai 2017 Google announces official support for Kotlin janvier 2015 Using project Kotlin for Android published
juillet 2011 Jetbrains announces project Kotlin mai 2017 Google announces official support for Kotlin janvier 2015 Using project Kotlin for Android published octobre 2018 Kotlin 1.3 release with experimental multiplatform suppot
juillet 2011 Jetbrains announces project Kotlin mai 2017 Google announces 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
juillet 2011 Jetbrains announces project Kotlin mai 2017 Google announces 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
• Using typealias • Interfaces Code 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
• Using typealias • Interfaces Code 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)!! } }