diff --git a/samples/objc/build.gradle b/samples/objc/build.gradle index d71a9558557..465c5bda8d2 100644 --- a/samples/objc/build.gradle +++ b/samples/objc/build.gradle @@ -1,15 +1,14 @@ apply plugin: 'konan' konanInterop { - objc { + objective_c { target "macbook" } } - konanArtifacts { Window { - useInterop 'objc' + useInterop 'objective_c' target "macbook" } } diff --git a/samples/objc/src/main/c_interop/objc.def b/samples/objc/src/main/c_interop/objective_c.def similarity index 100% rename from samples/objc/src/main/c_interop/objc.def rename to samples/objc/src/main/c_interop/objective_c.def diff --git a/samples/objc/src/main/kotlin/Window.kt b/samples/objc/src/main/kotlin/Window.kt index b1e0e3eb09a..111ed9bd0b8 100644 --- a/samples/objc/src/main/kotlin/Window.kt +++ b/samples/objc/src/main/kotlin/Window.kt @@ -1,4 +1,6 @@ -import objc.* +import platform.objc.* +import platform.osx.* +import objective_c.* import kotlinx.cinterop.* fun main(args: Array) {