Pure Kotlin? #5348
Replies: 1 comment 3 replies
-
Nice, good to hear! Yes, to all three. Though, "Kotlin multiplatform" libraries usually consist of platform-specific code, too. For example, a library that parses some XML document and does some things with it, could maybe use LibXML2 for native, Jackson XML for JVM and DOMParser on JS.... or whatever. So, a Kotlin multiplatform library doesn't have to be pure Kotlin, it can use different dependencies for different platforms. For e.g. URLEncoder: Yes, would need to be replaced. Replacing Java dependencies in UI code is however for the time being of lower priority, because the whole UI is currently Android, thus JVM dependent. We are using assertJ? ... you are right, but only at very few places and mostly only for Also, note that anything in Also, anything Android-specific naturally also can have Java dependencies. |
Beta Was this translation helpful? Give feedback.
-
Context: I am new to Kotlin and somewhat new to Android development.
I read the comment which breaks down the work towards IOS app.
I am trying to learn and possibly contribute.
Question:
Can someone confirm that since the goal is to use Kotlin Multiplatform Mobile we need to:
java.io
,java.util
,java.net
, etc,If so, taking an example do we need to replace all usages of
java.net.URLEncoder
with something like https://github.com/ethauvin/urlencoder?Or https://kotest.io/ instead of assertj (not sure if it's worth for just a few uses)?
Beta Was this translation helpful? Give feedback.
All reactions