xxfast
08/18/2022, 4:45 AMdependencies {
api(project(":module-where-my-enum-lives"))
}
eygraber
08/18/2022, 6:00 AMxxfast
08/18/2022, 6:13 AMGrégory Lureau
08/18/2022, 7:35 AMapi(project(":..."))
in commonMain dependencies if this can help. (EDIT: I thought about JS but looks like you're working with iOS, my bad)sergey.bogolepov
08/18/2022, 7:55 AMxxfast
08/18/2022, 9:54 AM// :app
kotlin {
..
listOf(
iosX64(),
..
).forEach { target ->
with(target) {
binaries {
framework {
baseName = "App"
..
export(project(":search"))
}
}
}
}
..
sourceSets {
val iosX64Main by getting
..
val iosMain by creating {
dependsOn(commonMain)
iosX64Main.dependsOn(this)
..
dependencies {
..
api(project(":search"))
}
}
}
}
:app
module, it is immediately exported. If there is not reference to it, it is not exported