AboutLibraries icon indicating copy to clipboard operation
AboutLibraries copied to clipboard

In multiplatform projects, :shared:exportLibraryDefinitions exports all platform instead of only shared libraries

Open coletz opened this issue 5 months ago • 1 comments

I'm working on a multiplatform app (android + iOS) with a common kotlin module (shared) and two different apps (androidApp in kotlin and iosApp in swift), so I'm not using multiplatform Compose.

On the android side everything works fine (I am applying the plugin straight into the android app), so only shared + androidApp libraries are included;

On the iOS side I cannot apply the plugin, since it is a swift application and has no gradle config, so I was thinking about listing the libraries used in the shared module, then adding the ios libraries "manually". The problem with this approach is that if I run "gradle :shared:exportLibraryDefinitions" I get a list of dependencies including everything, even the android libs defined in the androidApp module.

Am I approaching this in the wrong way? Or this (exporting only shared libs) is something not supported?

Thanks and sorry if I've misunderstood something

Details

  • [V] Used library version: 11.2.3
  • [ ] Used support library version: not sure about what this refer to...?
  • [V] Used gradle build tools version: 8.7
  • [V] Used tooling / Android Studio version: AS Koala | 2024.1.1 Patch 1
  • [V] Other used libraries, potential conflicting libraries: none afaik

Checklist

coletz avatar Sep 08 '24 11:09 coletz