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

Shabinder Singh

03/18/2021, 7:24 PM
SpotiFlyer now targets : Android, Web and Desktop, being a Kotlin Multiplatform Project ,It shares more than 90% Business Logic including things like Navigation etc too! Repo: https://github.com/Shabinder/SpotiFlyer Pull Requests are always welcome, support for web & desktop is still in Beta.
K 8
🆒 6
😍 5
c

CLOVIS

03/18/2021, 9:18 PM
Don't copy-paste your posts in all channels.
m

Michal Harakal

03/19/2021, 12:48 PM
Really nice @Shabinder Singh how did you measured the value 90% code sharing? Its impressive.
s

Shabinder Singh

03/19/2021, 1:05 PM
@Michal Harakal i didnt measured literally , but I know that Business code sharing is way more than 90% thats why I just settled for a round value 90% to show that how much code sharing is being done.
m

Michal Harakal

03/19/2021, 1:08 PM
Aha, OK, I was just curious, its quite a bold statement. Interpreted properly its makes of course sense. I've had a similar question in my multiplatform project and come out with a line counting https://github.com/dukecon/dukecon_mobile/blob/develop/buildSrc/src/main/kotlin/org/dukecon/plugin/DirectoryLocCounter.kt
For me was code sharing ratio on various platforms interesting...
s

Shabinder Singh

03/19/2021, 1:10 PM
I see , but I am talking about only and only Business logic , or you can say NON-UI code to cover broad aspects even like navigation etc
m

Michal Harakal

03/19/2021, 1:10 PM
Yeap
Its for a me general argument, how much code can be reused. Focus on the busines logic can be also a valid point of view
s

Shabinder Singh

03/19/2021, 1:15 PM
Yeah , KMP is fundamentally different from other cross platforms in the way that it only targets Business logic same while having UI code specific for each platform and this is the thing which I like most about KMP , in a sense its a more safe approach as compared to flutter/React Native .
👍 1
2 Views