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

Hamza

10/13/2018, 4:18 AM
but wouldn’t it be possible to create the base 64 api with kotlin apis only and use that on all the others?
e

egorand

10/13/2018, 1:29 PM
It would, if you can use Kotlin-only API to create a library - then you can automatically get it to work on multiple platforms. You need to write platform-specific code only for the pieces that you can’t implement using Kotlin API.
h

Hamza

10/13/2018, 1:46 PM
but doesn’t anything that is expect in common have to be created platform specific as well, so what’s the advantage
i just find it a bit confusing imo
e

egorand

10/13/2018, 2:10 PM
advantage is that a lot of your code will end up in common
h

Hamza

10/13/2018, 2:10 PM
if you don’t mind, would it be possible to give me an example. i still don’t 100% understand
this is an app that shares code between backend, Android and iOS, and has platform-specific implementations for certain parts
but lots of it is just common Kotlin code
h

Hamza

10/13/2018, 2:37 PM
ohhhhhhhhhhhh
i understand
now i undrstand how it works
e

egorand

10/13/2018, 2:42 PM
👍
2 Views