Skip to content

Instantly share code, notes, and snippets.

@wongk
Last active February 18, 2020 21:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wongk/74d39ad1efdd1fb1881866bea029a908 to your computer and use it in GitHub Desktop.
Save wongk/74d39ad1efdd1fb1881866bea029a908 to your computer and use it in GitHub Desktop.
Blog - KMP publishing - umbrella targets
kotlin {
ios {
compilations["main"].defaultSourceSet {
dependsOn(sourceSets["iosMain"])
}
val targetName = name.toLowerCase()
binaries.framework {
// Currently exported dependencies have to be target-specific, so add in the target
// name rather than just specifying `ModuleName`.
export("com.example.group:ModuleName-$targetName:0.1")
}
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment