# Kotlin Multiplatform conversions in Android Jetpack libraries

DevFeed: [Kotlin Multiplatform conversions in Android Jetpack libraries](<https://devfeed.tech/articles/kotlinconf-23-kotlin-multiplatform-conversions-at-android-jetpack-scale-by-dustin-lam-and-james-27027.md>)

Original publisher: [Read original article](<https://appmattus.medium.com/kotlinconf23-kotlin-multiplatform-conversions-at-android-jetpack-scale-by-dustin-lam-and-james-ad34bd3427c8?source=rss-be40b368c57e------2>)

Author: Matthew Dolan

Published: 2023-05-22T22:41:11Z

Content type: article

Language: en

Sources: [Stories by Matthew Dolan on Medium](<https://devfeed.tech/sources/stories-by-matthew-dolan-on-medium.md>)

Topics: [Kotlin Multiplatform](<https://devfeed.tech/topics/kotlin-multiplatform.md>), [Jetpack](<https://devfeed.tech/topics/jetpack.md>), [Android](<https://devfeed.tech/topics/android.md>), [Testing](<https://devfeed.tech/topics/testing.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [android-app-development](<https://devfeed.tech/tags/android-app-development.md>), [android-jetpack](<https://devfeed.tech/tags/android-jetpack.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [kotlin-multiplatform](<https://devfeed.tech/tags/kotlin-multiplatform.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [testing](<https://devfeed.tech/tags/testing.md>)

## AI overview

This article discusses a KotlinConf'23 talk about adding Kotlin Multiplatform support to Android Jetpack libraries. It covers compatibility challenges, annotation issues, testing choices, and the unofficial port of Google Truth called Kruth.

## Source excerpt

KotlinConf'23 -- Kotlin Multiplatform Conversions at Android Jetpack Scale by Dustin Lam and James Wardhttps://medium.com/media/bd8000e7fe715e2cd79b4ed752779a84/href While Google have been busy updating Jetpack libraries with Kotlin Multiplatform support this talk by Dustin Lam and James Ward covers some of the technical challenges in delivering those while keeping compatibility. This is no easy task especially when you consider compatibility isn't just about the version of Android you are running against but also the language you are coding with. The talk highlighted some interesting issues Google faced with the JvmName annotation. One of the other parts of the talk I found particularly interesting was focussed on testing. Choosing an assertion framework is an important choice for the new Kotlin Multiplatform code. There are now a handful of multiplatform libraries to choose from, for example, Atrium, Kotest Assertions and Assert4K, however, as Googles stats show a lot of the tests within Jetpack libraries use Google Truth. 50,000+ usages of Google Truth Instead of switching to one of the other libraries they made the decision to port Truth to Kotlin Multiplatform as (unofficially) "Kruth". At the moment the code for Kruth is internal, although given Android and Jetpack is open source you can find the source code at testutils-kmp. I look forward to seeing Kruth released as an independent library, otherwise there is always the unofficial Truthish. Of course one question that often comes up is what the future holds, and as expected Google likes to remain quiet. However, it was nice to hear about the possibility of Cashapp multiplatform-paging perhaps being merged upstream back into Jetpack. It's important to note that even as an individual we can contribute to Jetpack given its open source nature. You can find my thoughts on more KotlinConf'23 talks at KotlinConf'23. Please let me know your thoughts. Join medium to read all of my articles or subscribe for e-mail updat