Hi, can anybody point me in a direction to some do...
# multiplatform
j
Hi, can anybody point me in a direction to some documentation of how to publish a KMP umbrella module to maven? From what I can tell, you would have to publish all the sub-modules along w/ the umbrella module. I was hoping to have the shared module (which for me includes a bunch of submodules) contain a single publish task which can group all the sub modules into a klib for referencing as a library dependency on Android side. I would hate to have to publish every single sub module to Maven as this would get out of hand quickly as the app grows in features. Its basically a modularized KMP SDK, on iOS this is not a problem because it already exports a ObjC framework which includes all the exported modules in my shared module. Should I be looking into publishing and consuming this library SDK as a BOM instead? Kinda like how Firebase does their stuff nowadays.
p
Have you checked this out: https://github.com/deepmedia/Grease Unfortunately this is the way Android library distribution has worked since forever. I am not aware of a different alternative.
j
thanks will check that out and see if I can get it working w/ the KMP library. I know KMP using klib files not aar tho, so that might be an issue.
p
You are correct. I thought it supported KMP, I might have confused it with another plugin. Good luck with it, otherwise, I think you could proceed with independent module publishing. At the end maintaining independent modules is better for faster compilation.
But I agree will be great if Android/Gradle supported that out of the box. Is really handy the fataar thing