Hey guys , I just started exploring KMM and I’m new with Kotlin also , and I would like to know if I can work with a Java Library in the common project ( we have our SDK in JAVA) or better to re-write it in Kotlin
j
Javier
11/28/2020, 12:28 PM
No, you can use it in the JVM implementation
👍 1
u
Umar Ata
11/28/2020, 3:34 PM
You can convert your java sdk to kotlin
And use iosMain and androidMain for native implementation logics
I had one java library and i converted to kotlin then used the both Platform specific modules for native classes by using expect and actual methods and it works perfectly
❤️ 1
e
Elyes Ben Salah
11/28/2020, 4:06 PM
thanks for the answers , and I think I will do the same it’s good opportunity also to practice Kotlin by rewrite 😛