https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
v

Venkat , Bangalore , India

02/01/2020, 6:51 AM
Hi , Need you folks valuable insights on how reliable to adopt to Multiplatform at this stage as its still in Experimental phase..
f

Foso

02/01/2020, 8:36 AM
afaik, Kotlin Native generates Objective-C Code , so i can't see why Apple should reject it.
k

kpgalligan

02/01/2020, 3:46 PM
Multiplatform is “Experimental” in name, but stable. Kotlin native, which is actually running on the device, is Beta. They’re all just labels, though. Does it work and are teams using it? Yes.
v

Venkat , Bangalore , India

02/01/2020, 5:45 PM
@Foso @kpgalligan thank you very much for your inputs.. and gave some confidence now. @kpgalligan m glad to connect with u over here.. saw your posts and videos... impressive!. I am using SqlDelight and works without any issue.. but recently facing issue on iOS11 while converting MutableMap ... https://youtrack.jetbrains.com/issue/KT-36204
k

kpgalligan

02/01/2020, 5:48 PM
I don’t know off hand. What type does MutableMap output in the objc header?
v

Venkat , Bangalore , India

02/01/2020, 5:49 PM
@kpgalligan here is the class that resides in commonMain
class Challenge { var days: MutableMap<Int, MutableList<Record>> = mutableMapOf() }
our ios team has added an extension function like below.. which works well in iOS13, but not in 11 & 12
extension Challenge {   var daysTypeChecked: [KotlinInt: [Record]] {   if let aDays = days as? [KotlinInt: [Record]] {    return aDays   }   return [:]  } }
we are getting the same error that somebody got here at SO: https://stackoverflow.com/questions/58620688/nsinv
class Record( var key: String, var value: Long, var unit: String = "" )
2 Views