Hi, its possible to have ads on a KMP project ? Ho...
# multiplatform
m
Hi, its possible to have ads on a KMP project ? How would that be possible ?
1
j
Admob? Yes, but can be a bit complicated, depends on what you are using in your project for the UI.
m
i was thinking to use compose for both Android and iOs
j
Can't help with Compose; we are building an own framework that implements Android-alike API for iOS, and have to do some tricks there - but managed to sort it out.
m
would be better to use native UI for each platform on this specific points ?
j
I'm a proponent of code reuse, so I guess Compose is better than nothing (and worth some additional trouble having to do something special to have ads). I'd love to advertise our framework here that shares 100% of the code (and has the admob binding sorted out), but it's not open source, so I guess not much appreciated in this channel 😉
👍 1
d
i was looking for compose library this week, nothing implemented for now, you need to create shared code and invoke ios and android native ads libs
m
have you done it already ? I'm having troubles because i want to include the native ads in a lazycolumn, should i create an Actual/Expect func to display them?¿ I just want to implement it in Android and iOs
m
There is a KMP library for this now, I just implemented it in my app: LexiLabs-App/basic-ads (part of LexiLabs-App/basic)
307 Views