Hey Folks. I have an usecase in creating android a...
# multiplatform
f
Hey Folks. I have an usecase in creating android archive for shared-module in multimodular kmm project. • shared • core • player • ui shared depends on core shared depends on network shared depends on ui. Now, I want to create debug .aar file of shared module.
Copy code
commonMain {
   api(project(":core"))
   api(project(":ui"))
   api(project(":player")) 
}
but .class files of core/ui/player are not present in .aar of shared.
k
Because you are supposed to publish all modules to a maven repo
Or try to google a fat jar approach. But I'm not sure there is something for aars
K 1
s
@Konstantin Tskhovrebov you mean even shared also should be published to maven?
if we just publish all modules except the shared to maven and try generating the .aar in this scenario can shared .aar contains .class files of modules??
k
it is called fat jar
under "publish in a maven" I mean a local maven
s
gotcha will try this...