I'm attempting to split my multiplatform common mo...
# android
j
I'm attempting to split my multiplatform common module into two modules, one with and another without
actual
declarations, similar to this blog post: https://blog.kotlin-academy.com/extracting-multiplatform-common-modules-in-android-4a564cc03e0a I'm having trouble compiling the Android module when using compile() vs expectedBy() declarations. The follow doesn't work... the common project classes are not included in the compilation and there are Unresolved reference errors.
Copy code
dependencies {
    compile project(':common')
    expectedBy project(':common-expect')
    ...
}
However this does work
Copy code
dependencies {
    expectedBy project(':common')
    expectedBy project(':common-expect')
...
}
Is
expectedBy
the only method for importing definitions between multiplatform modules? What might I be doing wrong? I'm using 1.2.40-eap-16 which has support for multiple
expectedBy
statements.