Fix some samples after adding platform libs:

* objc
* uikit
This commit is contained in:
Svyatoslav Scherbina
2017-10-17 12:21:44 +03:00
committed by SvyatoslavScherbina
parent ffb0d0cfcb
commit 9ef7dcc91e
6 changed files with 5 additions and 26 deletions
-7
View File
@@ -1,14 +1,7 @@
apply plugin: 'konan'
konanInterop {
objective_c {
target "macbook"
}
}
konanArtifacts {
Window {
useInterop 'objective_c'
target "macbook"
}
}
@@ -1,4 +0,0 @@
headers = Foundation/Foundation.h Cocoa/Cocoa.h AppKit/NSApplication.h AppKit/NSWindow.h
headerFilter = Foundation/** Cocoa/** AppKit/**
language = Objective-C
linkerOpts = -framework AppKit
+3 -2
View File
@@ -1,7 +1,8 @@
import kotlinx.cinterop.*
import platform.AppKit.*
import platform.Foundation.*
import platform.objc.*
import platform.osx.*
import objective_c.*
import kotlinx.cinterop.*
fun main(args: Array<String>) {
autoreleasepool {
-8
View File
@@ -1,15 +1,7 @@
apply plugin: 'konan'
konanInterop {
objc {
target "iphone"
}
}
konanArtifacts {
app {
useInterop 'objc'
target "iphone"
}
}
@@ -1,4 +0,0 @@
headers = Foundation/Foundation.h UIKit/UIKit.h
headerFilter = Foundation/** UIKit/**
language = Objective-C
linkerOpts = -framework Foundation -framework UIKit
+2 -1
View File
@@ -1,5 +1,6 @@
import objc.*
import kotlinx.cinterop.*
import platform.Foundation.*
import platform.UIKit.*
fun main(args: Array<String>) {
memScoped {