Join Slack
Powered by
In terms of http request for Android and iOS, I su...
# kotlin-native
a
albertgao
01/18/2018, 9:43 PM
In terms of http request for Android and iOS, I suppose I need to use interface (
expect
in KN) to do the abstraction, and inject the platform implementation at runtime?
o
olonho
01/19/2018, 7:30 AM
You could use approach taken in K/N spinner app for now:
https://github.com/JetBrains/kotlinconf-spinner/blob/b9d4550d7611e732f2c54a54a3feeb4d4e1d5f7b/kotlin-native/samples/fullstack/clients/ios/src/main/kotlin/platformUtils.kt#L30
👍 1
5
Views
Open in Slack
Previous
Next