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

ribesg

05/14/2019, 1:07 PM
Why aren’t
main
dependencies added to the corresponding
test
sourceSet automatically? I need to duplicate all dependencies defined in
commonMain
in
commonTest
if I want to use them. Same for
androidMain
and
androidTest
. I didn’t test it, but I suppose it’s the same for iOS
g

gildor

05/14/2019, 1:09 PM
This is a known issue
r

ribesg

05/14/2019, 1:11 PM
Ok so it’s Android specific and I don’t need to copy paste dependencies for iOS
l

louiscad

05/14/2019, 4:53 PM
My workaround is to have tests in another android only module depending on the library module I want to test. Should also work for application modules using a test dynamic feature module that is never actually included in the app.
2 Views