Is it possible to specify target path for new plat...
# kotlin-native
t
Is it possible to specify target path for new platform native plugin like it was in konan? This sample doesn't look simple and easy: https://github.com/e5l/http-client-common/commit/2fc080bf31ce8f5e493acb10bb256bd165a7d28b#diff-b7c13da9e9133e2ddb2ed1ddd9183148R170
looks like I can use something like
Copy code
task copyFramework() << {
    if (hasProperty("konan.configuration.build.dir")) {
        def srcFile = tasks['compileDebugIos_x64KotlinNative'].outputFile
        def targetDir = getProperty("konan.configuration.build.dir") + "/Greeting.framework"
        copy {
            from srcFile
            into targetDir
        }
    }
}
but I still need to rename
ios.framework
i
No, currently the plugin doesn't support setting custom output directory via project properties. To change the framework's name, you can use the
baseName
property:
Copy code
sourceSets.main.component {
    baseName.set("Greeting")
}