Last active
February 18, 2020 21:33
-
-
Save wongk/74d39ad1efdd1fb1881866bea029a908 to your computer and use it in GitHub Desktop.
Blog - KMP publishing - umbrella targets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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