is billing supported yet? do the current billing l...
# multiplatform
o
is billing supported yet? do the current billing libraries work on both platforms? what about for iOS ? Thanks
p
You can declare a common interface and wrap the implementation on each platform. Bottom line that's what makes kmp really powerful. You don't need to wait for nobody to make a kmp library for you, or provide kmp support for their sdk. In fact I have noticed that is what is killing Flutter, many people complaining about packages not being up to date and taking a long time to update. That is because most SDKs provider companies prioritize the native SDKs and if they have time and resources they do the multiplatform frameworks but some companies don't even care.
💯 3
o
I see, do you have a sample of this being done? Just to know exactly what you mean as I’ve never tried this before, if available I’d appreciate it
p
Check this article, you can jump straight to the last section. The first section is basically how you setup some stuff. https://medium.com/@mofeejegi/calling-platform-specific-dependencies-in-kotlin-multiplatform-69dbc9a841a2 There are a couple of other articles in the Internet pretty much describing the same with different names or architecture. Like for example using koin
For a code example you can check this: https://github.com/pablichjenkov/macao-marketplace/tree/dev/auth-firebase%2Fsrc%2FiosMain%2Fkotlin%2Fcom%2Fmacaosoftware%2Fplugin%2Faccount Basically a wrapper of the Firebase swift sdk using Swift Package Manager and koin
o
Hey thanks a lot
👍 1