Fix some samples after adding platform libs:
* objc * uikit
This commit is contained in:
committed by
SvyatoslavScherbina
parent
ffb0d0cfcb
commit
9ef7dcc91e
@@ -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
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
@@ -1,5 +1,6 @@
|
||||
import objc.*
|
||||
import kotlinx.cinterop.*
|
||||
import platform.Foundation.*
|
||||
import platform.UIKit.*
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
memScoped {
|
||||
|
||||
Reference in New Issue
Block a user