Hamza

    Hamza

    3 years ago
    but wouldn’t it be possible to create the base 64 api with kotlin apis only and use that on all the others?
    egorand

    egorand

    3 years ago
    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.
    Hamza

    Hamza

    3 years ago
    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
    egorand

    egorand

    3 years ago
    advantage is that a lot of your code will end up in common
    Hamza

    Hamza

    3 years ago
    if you don’t mind, would it be possible to give me an example. i still don’t 100% understand
    egorand

    egorand

    3 years ago
    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
    Hamza

    Hamza

    3 years ago
    ohhhhhhhhhhhh
    i understand
    now i undrstand how it works
    egorand

    egorand

    3 years ago
    👍