https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
s

spierce7

12/18/2018, 6:37 AM
If I'm using the multiplatform plugin, and I want to pull in a multiplatform library that has multiple targets for the same platform, how do I choose which platform target is pulled in from the application?
s

Sam

12/18/2018, 12:52 PM
If the library is publishing metadata it should be enough to add the dependency to the common source set.
s

spierce7

12/18/2018, 10:03 PM
What if I publish 2 JVM targets for the library. How will it know which target for the library to choose? I want the ability to explicitly control this behavior
s

Sam

12/18/2018, 11:51 PM
I haven’t tried it but can you just fully specify the dependency in the client jvm source set?
l

Liliia

12/19/2018, 10:06 AM
s

spierce7

12/20/2018, 3:58 AM
ty
2 Views