We separate a repo for the platform API, then have...
# kotlin-native
a
We separate a repo for the platform API, then have another repo for
common
logic and generate lib for platforms like android and ios. For things like http, I just declare some interface as
expect
class, then add wrapper to the existing system api. So, I use
HttpUrlConnection
on android and
URLSession
on iOS. If the usage gets complex in the future, I might add wrapper to some famous 3rd party libs. But still you need to implement the
expect
class twice for both android and ios.