hi, is it possible to include text file in framewo...
# kotlin-native
k
hi, is it possible to include text file in framework that generated by konan from src/main/resources?
o
Not automatically with the current Kotlin compiler or gradle plugin, but nothing prevents manual copy rules
k
ok, thx
how could i specify konan destination folders (aka "xxxx.framework")?
i
Do you mean "how to get a default path to a framework generated" or "how to change this path"? If first, you may use
artifact
property of a compilation task:
Copy code
konanArtifacts {
    framework('foo', targets: ['iphone'])
}

// Returns the path to the generated framework.
// By default the path is build/konan/bin/<target>/<name>.framework:
// build/konan/bin/iphone/foo.framework.
konanArtifacts.foo.getByTarget('iphone').artifact
If second, you may specify the destination directory for an artefact of each particular target using the
destinationDir
DSL method:
Copy code
konanArtifacts {
    framework('foo', targets: ['iphone', 'iphone_sim']) {
        iphone {
            destinationDir 'foo/iphone'
        }

        iphone_sim {
            destinationDir 'foo/iphone_sim'
        }
    }
}