I might have asked this question already but can I...
# multiplatform
m
I might have asked this question already but can I put
actual
definitions in non-leaf sourceSets? Or are there plans to support this?
👌 1
1
https://kotlinlang.org/docs/multiplatform-connect-to-apis.html
Copy code
With this mechanism, a common source set defines an expected declaration, and platform source sets must provide the actual declaration that corresponds to the expected declaration
so looks like they must be in platform (leaf) sourceSets
?
j
This has been supported for as long as I can remember
Example: https://github.com/cashapp/zipline/blob/0f779bd8cfa29b27fbc2bf5771839a68e2284248/zipline/src/engineMain/kotlin/app/cash/zipline/Zipline.kt#L46 Here, engineMain is a source set which jvmMain, androidMain, and all native source sets depend on
m
Thanks, I was missing a
dependsOn("commonMain")
🤦‍♂️