Hi, folks. Im working on a kmm library. I i have a...
# multiplatform
g
Hi, folks. Im working on a kmm library. I i have a common main and some code in jvmMain targets. I want to produce also a ios/android variants based on common code. It is necessary to define the androidManifest.xml? I was wondering since i do not need currently extra code in my androidMain target if could omit it somehow. I can provide some snippets of my configs if it's needed.
p
Yes you need to define it, just like every android library needs one
g
Thanks for the help. Im checking out a bit, in kotlinx.coroutines lib, in their ui/android variant and i cant seem to find something simillar. Maybe they config it differently ?
p
No idea how they have their build setup, but thats extremely uncommon for a library
g
okp, thanks for the help 🙂
p
IIRC there were some plans from the AGP team to make the manifest non mandatory for library modules
👌 1
g
Im really not fond of xml, so i will try to make a deep dive in their config 😛
p
In the end it’s a one liner
g
true
r
FYI if you don’t have any Android specific code you can just use the JVM target instead of the Android one.
g
Thanks for the info rick, but i need to import an android specific lib. But thanks for clarifying it to me 🙂
👍🏻 1
p
@George You can use the android { namespace } one and omit the manifest (as of 7.0 or 7.1) iirc
g
Hello paul, thanks for the info i will look into it !