natively-integrated, open-source, code sharing platform, based on the popular, modern language kotlin. facilitates non-ui logic availability on many platforms.
v0.8 v0.8.2 v0.9.3 IDE tooling! Coroutines? K/N 1.0, Kotlin 1.3 Gradle 4.10+ K/N 1.1, Kotlin 1.3.20 Community Libraries Big Co Support MT Coroutines Improved tooling
Unit) expect fun backgroundTask(backJob:()->Unit) expect fun networkBackgroundTask(backJob:()->Unit) expect fun initContext():NativeOpenHelperFactory expect fun <T> goFreeze(a:T):T expect fun <T> T.freeze2(): T expect fun simpleGet(url:String):String expect fun logException(t:Throwable) expect fun settingsFactory(): Settings.Factory expect fun createUuid():String
* 1000L } } actual class DateFormatHelper actual constructor(format:String){ val formatter:NSDateFormatter init { formatter = NSDateFormatter() formatter.dateFormat = format } actual fun toDate(s:String):Date = Date(formatter.dateFromString(s)!!) actual fun format(d:Date):String = formatter.stringFromDate(d.iosDate) }