/ ະ དྷ େ L T େ ձ @ വ ؗ ະ དྷ େ Kotlin 1.3 Kotlin/Native Beta release Google I/O 2017 Android Official Support Kotlin 1.0 Feb 2016 May 2017 Oct 2018 History
/ ະ དྷ େ L T େ ձ @ വ ؗ ະ དྷ େ Creating common module moduleͱඞཁͳϑΝΠϧ͕Ճ͞Ε settings.gradleʹԿΒه͞Ε͍ͯΔ ɹɹɹɹɹɹɹɹ Ճͨ͠moduleΛgradleʹೝࣝͤ͞ΔͨΊʹඞཁ include ':app', ':ShareCode'
/ ະ དྷ େ L T େ ձ @ വ ؗ ະ དྷ େ Implement common codes ੜͨ͠σΟϨΫτϦʹ ڞ௨ίʔυΛهड़͢ΔΫϥεΛՃ࣮͠ package net.ddns.satsukies.diveintokotlinnative.common expect fun platformName(): String fun createApplicationScreenMessage(): String { return "Kotlin Rocks on ${platformName()}" }
/ ະ དྷ େ L T େ ձ @ വ ؗ ະ དྷ େ Implement common codes (android) ੜͨ͠σΟϨΫτϦʹΫϥεΛ࡞͠ Android͚ͷίʔυΛ࣮ package net.ddns.satsukies.diveintokotlinnative.common actual fun platformName(): String = "android"
/ ະ དྷ େ L T େ ձ @ വ ؗ ະ དྷ େ expected, actual [1]https://aakira.app/blog/2018/10/kotlin-native/ expect fun platformName(): String actual fun platformName(): String { return UIDevice.currentDevice.systemName() + " " + UIDevice.currentDevice.systemVersion } actual fun platformName(): String = "android" Android iOS Common