https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
n

Nikolai

10/13/2019, 4:37 PM
Hello, everyone. I have an unusual question. What is the disadvantages or restrictions of Kotlin Multiplatform. Maybe you planned to use this approach but during implementation faced some troubles or problems? Or maybe you just know other side ( or sides ) of this technology? I am asking because I used it for three projects, but my experience is positive. I want to present this technique in my company and start using it. But I almost sure that question about disadvantages will be asked, I know that they exist, but I am not aware of them.
s

serebit

10/13/2019, 4:38 PM
The main issue I've run into is the lack of reflection support on all platforms aside from JVM. It can be worked around, though, so long as you start the project with a reflectionless approach in mind.
There's also the problem of a much smaller library ecosystem, which is thankfully growing.
a

alex009

10/13/2019, 4:41 PM
Hi. technology have interop with native stack so all restrictions is workaround by implement functionality on native side. And our experience is also positive...see at https://blog.usejournal.com/the-dos-and-donts-of-mobile-development-with-kotlin-multiplatform-db7c098545c0 https://blog.usejournal.com/the-dos-and-donts-of-mobile-development-with-kotlin-multiplatform-part-ii-d318dae8475b
👍 3
a

Arkadii Ivanov

10/13/2019, 4:45 PM
The most of the friction is from iOS team. Their concerns are: 1. learning curve (Kotlin + Gradle + IDEA), 2. If a module crashes on iOS only then who's responsible to fix? 3. Kotlin Native is not stable at the moment
k

Konstantin Petrukhnov

10/14/2019, 3:57 AM
Distributing resource files in compiled libraries is not possible. Developers should learn differences of multithreading on every platform.
d

darkmoon_uk

10/14/2019, 10:59 PM
The biggest concern for me is the lack of Multi-threaded Coroutines on Kotlin/Native. This is a major hole in concurrency/coroutine support for Native targets including iOS, right now: https://github.com/Kotlin/kotlinx.coroutines/issues/462
a

Alejandro Rios

10/15/2019, 2:25 AM
@alex009 thanks for the articles, really helpful
👍 1