Go to content

Kotlin Multiplatform Conversions at Android Jetpack Scale by: Dustin Lam and James Ward

Recording brought to you by American Express. https://americanexpress.io/kotlin-jobs This is a case study of how we converted several Jetpack libraries to Kotlin Multiplatform as part of our ongoing experimentation with the multiplatform technology. Kotlin Multiplatform makes it possible to convert existing JVM specific code to be multiplatform. Doing so is mostly straightforward, but requires extra design considerations, between common and platform specific code. Further, doing so with an established Android library used by millions of existing apps, and utilizing JVM specific APIs as part of its public interfaces brings a whole new set of unique challenges. We'll discuss techniques we've adopted for refactoring platform specific code to common code, highlighting some of the features of Kotlin Multiplatform including expect/actuals and hierarchical project structures. We'll also cover some pitfalls, including missing multiplatform libraries, dealing with binary and source compatibility, and handling hard dependencies on JVM-specific code in your public interfaces. Prior knowledge of Kotlin and Kotlin Multiplatform are recommended. This session is co-presented by Dustin Lam Software Engineer at Google, and James Ward Kotlin Product Manager at Google #Kotlinconf23 #multiplatform #Jetpack #KotlinConf

April 12, 2023