Hello everyone, I'm wondering if we can use Kotlin...
# multiplatform
s
Hello everyone, I'm wondering if we can use Kotlin Multiplatform for developing Smart TV apps, specifically with JavaScript or WebAssembly. The idea is to use KMP primarily for business logic. Additionally, I'm interested in understanding its compatibility, especially with: • webOS TV 4.x (2018~2019) running on Chromium 53, • Samsung TVs from 2019 with Tizen 5.0 and Chromium M63. Thanks...
d
Checklist time 🙂 • Do these platforms have JavaScript API's? Yes and yes • Does Kotlin compile to JS and interop. with other JS? Yes and yes • ???? • Profit!
In seriousness, the '????' part is where you glue it all together using some Gradle/Node etc. That can be a challenging part but the foundations are there.
Typically just involves reading the documentation on both sides and lining up the expected pieces.
It's possible someone out there has done it before; but also unlikely TBH So rather than 'no answer' you got this one 😛 Hope it helps somewhat.
Or I'm wrong and someone else does know; either way good luck!
s
@darkmoon_uk Great.. Thanks for your Info. 🙌 I also did some research and it seems it might work
👍 1
📺 1
a
Can confirm we’re developing a library with KMP which is integrated by HTML Smart TV apps, working well. 😉
🎉 3
s
OMG, that's awesome! May I ask which TV manufacturer you work for?
a
I work for Mirego, we mostly make mobile/web apps, we use KMP a lot. Developing this for a media company.
Lib is implemented and works for pretty much all HTML TV smart TVs (so WebOS, Tizen, Vidaa, PS4, PS5, Xbox…)
K 1
s
Wow, that's fantastic! In the future, I might need some help from you. I'm currently preparing a presentation for my company, advocating for the adoption of Kotlin Multiplatform for our business logics. Since we're also involved in video streaming, it's imperative that we add support for smart TVs as well.
d
Cool to have this confirmed @alarochelle KMP everywhere 😄 K
K 2
s
Man, I am loving it. Last few weeks during my R&D regarding KMP was mind blowing. kodee happy
K 1
🚀 1
a
KMP is a great tool for that use case (and especially for video streaming…) since business logic can easily be extracted and re-used everywhere while still easily using and having access to native services (which you need, a lot). There’s of course the down side of bundle size/performances.. but honestly.. it’s manageable, and we’re working on strategies to improve this.
kodee happy 1
d
Yep, the advantages of KMP far outweigh any initial concerns in my experience; I've deployed it to production twice now; once in a vanilla 'Mobile App' use case... second also in a Mobile App but driving NFC for Payments Processing with some quite involved hardware integration and business logic including bridging to React Native. Everything justWorks*™*
👌 1