Support for Kotlin Multiplatform Mobile (KMM)

  • 8 July 2023
  • 8 replies
  • 205 views

Badge +1
  • New Member
  • 0 replies

I'm currently using RevenueCat for my native Android app. I'd like to add an iOS version and I'm considering Kotlin/Compose Multiplatform Mobile in order to reuse much of my Kotlin code. 

It's still early days for KMM, but I was wondering if there were plans to add a KMM SDK. And if not, how would you recommend I manage subscriptions in this case? 

 

Thanks!

Sam


8 replies

Userlevel 3
Badge +8

Hi Sam,

Thanks for reaching out! We don’t currently have an SDK planned for that platform. So I would suggest either using our iOS SDK and recreating the functionality, or you could try a hybrid SDK like RN/Flutter

Badge

Hi Ryan and Sam,

I just wanted to check if this has since made its way onto the roadmap? If not: I'm building this 🙂 

I'm also using RevenueCat in a Kotlin Multiplatform app, and I'm working on extracting the RevenueCat bits into a Kotlin Multiplatform RC SDK. 

I will post here when it's done if there's interest? Let me know.

With kind regards,

Jay

In the new launch party summary,

https://www.revenuecat.com/blog/company/launch-party-summary-dec-2023/

it says:

Additionally, early next year, we’ll be launching a Kotlin Multiplatform SDK, which RevenueCat Paywalls will support.  

Anyone can confirm the dates?

Thank you

@JayShortway are you still creating the SDK or are you in charge of this announce?

Badge

@xandebianchi I'm creating an unofficial Kotlin Multiplatform SDK, which should be done in a few days. You could use this until the official SDK is released (which I'm not a part of). 

Magic. Congratulations!

@Ryan Glanz @sam  This is how I used RevenueCat in Kotlin + Compose Multiplatform project, wrote a blog about that: https://medium.com/@mirzemehdi/integrating-revenuecat-into-kotlin-multiplatform-465ffa47a97b

Also made a wrapper library for main core  functions that can be used directly in kotlin multiplatform project, including Paywall UI with Compose Multiplatform.  https://github.com/mirzemehdi/KMPRevenueCat/

Reply