I saw, but this is not clear if KtN will allow us to made apps for ios like we do for android or will just allow us to made things for iOS. 🤔
s
spierce7
04/02/2017, 2:12 AM
If you are thinking of trying to develop an iOS app entirely in Kotlin, that's not something that will be supported (I don't think it will at least. That would require a high level of interop with obj-c or Swift).
I think a better, far less limiting approach that will be viable, and I hope to try, will be to create a shared library, that can be shared between an android and iOS project. Then the Android UI can be written in Java / Kotlin, and the iOS UI can be written in ObjC / Swift, and then they can interact with the shared kotlin library.
☝️ 1
Xamarin takes a similar approach to what I described above, and code sharing between projects is around 60-70%. We should be able to achieve some similar numbers with kotlin-native hopefully
r
ra1nmak3r
04/02/2017, 3:34 AM
Ooh, yeah. Thank u, this clarifies a lot. Now I can see how far we can go with KtN.
u
uli
04/02/2017, 2:51 PM
Is there any official statement of what level of interop is being planned? Or is this guessing?
b
benleggiero
04/02/2017, 11:21 PM
I think this is the best approach anyway; the user's experience is completely native, even though the code that drives it is shared