Experiment with ivi pages:

android_and_ios

Recording of this talk - Experiment with Kotlin Mobile Mutliplatform

  • repository https://github.com/samoylenkodmitry/KMMSimple
  • threading - on iOS there are no coroutines, you need to invent an adapter
  • iOS shared file is too large - 2MB minimum,

size_min

+9 MB for ktor,

size_ktor

+2MB for Kotlin serialization

size_ktor_and_serializable

Comparison of the final app size for iOS vs Android: app_size_comarsion.png

Pros:

  • shared code
  • for Android, there is no difference, you can write for multiplatform “just in case”

Challenges:

  • need to maintain the library, both platforms will use it
  • cannot break the compatibility of the library
  • set up CI/CD
  • unit tests
  • all iOS developers need to install gradle, java, set up the environment
  • problem with the large size of the shared file on iOS
  • Android developer will need a Mac

Predictions:

  • a new type of job on the market - a multiplatform programmer
  • competition among native programmers will be higher, harder to find a job
  • there will be a future simply because it is profitable for business (unless Apple interferes)

Experience of others:

A good talk-interview on the topic: Chasing two rabbits: is it necessary to be able to develop for Android and iOS Alexey Gladkov. Technical architect at Leroy Merlin