SpotiFlyer now targets : Android, Web and Desktop,...
# multiplatform
s
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
Don't copy-paste your posts in all channels.
m
Really nice @Shabinder Singh how did you measured the value 90% code sharing? Its impressive.
s
@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
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
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
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
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