khairil.ushan
08/03/2018, 7:03 PMkonan
plugin I can set it on framework('MyLib')
inside konanArtifacts
block.khairil.ushan
08/03/2018, 7:19 PMkotlin-platform-native
plugin (not konan
)?khairil.ushan
08/03/2018, 7:20 PMapply plugin: 'kotlin-platform-native'
repositories {
jcenter()
}
dependencies {
expectedBy project(":mpp-playground-common")
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core-native:0.24.0"
implementation "org.jetbrains.kotlinx:jsonparser-native:0.6.0"
implementation "io.ktor.common.client:ios:0.1.15"
}
sourceSets {
main {
kotlin.srcDir 'src/main/kotlin'
component {
target 'ios_arm64', 'ios_x64'
outputKinds = [FRAMEWORK]
}
}
test.component {
target 'ios_arm64', 'ios_x64'
}
}
msink
08/03/2018, 7:49 PMextraOpts
should work inside component { }
khairil.ushan
08/03/2018, 8:09 PMkhairil.ushan
08/04/2018, 4:33 AMkotlin-platform-native
instead of konan
plugin. is the -Pkonan.configuration.build.dir
argument still valid to use? or there's another parameter to set the build directory?msink
08/04/2018, 6:55 AMbuildDir = new File(rootProject.projectDir, "your/path")
before sourceSets
, but I'm not sure.khairil.ushan
08/04/2018, 6:57 AM