Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Kotlin Multiplatform - Ins and Outs

Kotlin Multiplatform - Ins and Outs

Basics of Kotlin Multiplatform and how it works.

Chetan Sachdeva

August 26, 2020
Tweet

More Decks by Chetan Sachdeva

Other Decks in Programming

Transcript

  1. 1. History of Cross-platform - 5 mins 2. Kotlin Multi-platform

    - 5 mins 3. Live Demo - 5 mins 4. KMP at Uber - 5 mins 5. QnA - 5 mins Agenda
  2. 1. Bug fixes deployed faster. 2. New features and enhancements

    deployed faster. 3. General increase in developer efficiency. 4. Reach a wider audience. 5. Native performance, interop, UX, Developer experience. Benefits of KMP
  3. Problems with writing same code differently 1. RIBs is written

    differently for Android and iOS. 2. Plugins and experimentation code is duplicated. 3. Differences across platforms. Eg. Analytics UUIDs. 4. Views sometimes have logic. 5. More time and resources required for building features.
  4. Making Code-sharing a reality at Uber 1. Onboard Android and

    iOS teams on Kotlin. 2. Migrate business logic from Java to Kotlin. 3. Build shared-libraries like RIBs and MMDF in Kotlin. 4. Make infrastructure (CI/CD/SQ) KMP ready. 5. Make KMP work with buck/bazel or migrate to gradle.
  5. References • https://www.jetbrains.com/lp/mobilecrossplatform • https://vimeo.com/371460823 • https://www.youtube.com/watch?v=oulHKSUAuCk • https://github.com/JetBrains/kotlinconf-app •

    https://www.youtube.com/watch?v=NJLLPBgtiD4&list=PLQ176FUIyIUY6SKGl 3Cj9yeYibBuRr3Hl • https://www.youtube.com/watch?v=xAc6rDQVQqg