https://kotlinlang.org logo
#kotlin-native
Title
# kotlin-native
f

felix

03/02/2023, 8:29 AM
Is there a possibility to disable cinterop for selected pods?
build.gradle.kts
Copy code
plugins {
        kotlin("native.cocoapods")
...
kotlin {
  cocoapods {
        pod("pod_a") {
            version = "1.0"
            source = path(project.file("../pod_a"))
        }
        pod("pod_b") {
            version = "1.0"
            source = path(project.file("../pod_b"))
        }
...
e.g. How can I disable cinterop for pod_a?
l

Landry Norris

03/02/2023, 3:12 PM
I believe they added the linkOnly option in 1.8.0, which will pull down the binary, but won’t do cinterop.
f

felix

03/02/2023, 4:38 PM
Thank you for the hint. Looks like it is only available for version 1.8.20-beta and up https://github.com/JetBrains/kotlin/commit/a24119858f156e18bbf40714e645137ce016371b
5 Views