Renamed objc klib in the sample to objective_c to eliminate naming
conflict woth objc platform lib. Made objc sample compile with the platform libs.
This commit is contained in:
committed by
alexander-gorshenev
parent
c4e45baa61
commit
dc9a1ac76c
@@ -1,15 +1,14 @@
|
|||||||
apply plugin: 'konan'
|
apply plugin: 'konan'
|
||||||
|
|
||||||
konanInterop {
|
konanInterop {
|
||||||
objc {
|
objective_c {
|
||||||
target "macbook"
|
target "macbook"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
konanArtifacts {
|
konanArtifacts {
|
||||||
Window {
|
Window {
|
||||||
useInterop 'objc'
|
useInterop 'objective_c'
|
||||||
target "macbook"
|
target "macbook"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
import objc.*
|
import platform.objc.*
|
||||||
|
import platform.osx.*
|
||||||
|
import objective_c.*
|
||||||
import kotlinx.cinterop.*
|
import kotlinx.cinterop.*
|
||||||
|
|
||||||
fun main(args: Array<String>) {
|
fun main(args: Array<String>) {
|
||||||
|
|||||||
Reference in New Issue
Block a user