Hopefully an easy question, how do you name the dy...
# kotlin-native
j
Hopefully an easy question, how do you name the dynamic/static output of a kotlin library from
main
to something else from the build script? Im guessing there is something better than rename the output files afterwards?
j
@Jonas Bark That does not seem to work for dynamic/static for whatever reason 😕
Might be something specific to the MPP plugin, not sure
found it, it is named
sharedLib
for dynamic types instead
👍 1
j
@JoakimForslund did you find an example? I’m interested in that too 🙂
j
@juancho I did not find an example, but I combined the above link with checking the source code of:
<https://github.com/JetBrains/kotlin/blob/master/libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/dsl/KotlinNativeBinaryContainer.kt>
And extrapolated the solution 😉
basicly
Copy code
binaries {
     sharedLib("foo"){
           baseName = "foo" 
     }
}
j
awesome @JoakimForslund thanks for the info 🙂