Since I'm using the kotlin-platform-native plugin,...
# kotlin-native
k
Since I'm using the kotlin-platform-native plugin, where can I configure the generated prefix class name in my objc framework? Previously when using
konan
plugin I can set it on
framework('MyLib')
inside
konanArtifacts
block.
k
Hi. thank you for the link. where should I put that framework block when using
kotlin-platform-native
plugin (not
konan
)?
Here is my build.gradle
Copy code
apply 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'
    }
}
m
extraOpts
should work inside
component { }
👍 1
k
Ahh got it. thank you so much.
Hi @msink. if we're using
kotlin-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?
m
@khairil.ushan I do not know, sorry. Maybe something like
buildDir = new File(rootProject.projectDir, "your/path")
before
sourceSets
, but I'm not sure.
k
no problem. thank you so much. appreciate it.