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'
|
apply plugin: 'konan'
|
||||||
|
|
||||||
konanInterop {
|
|
||||||
objective_c {
|
|
||||||
target "macbook"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
konanArtifacts {
|
konanArtifacts {
|
||||||
Window {
|
Window {
|
||||||
useInterop 'objective_c'
|
|
||||||
target "macbook"
|
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.objc.*
|
||||||
import platform.osx.*
|
import platform.osx.*
|
||||||
import objective_c.*
|
|
||||||
import kotlinx.cinterop.*
|
|
||||||
|
|
||||||
fun main(args: Array<String>) {
|
fun main(args: Array<String>) {
|
||||||
autoreleasepool {
|
autoreleasepool {
|
||||||
|
|||||||
@@ -1,15 +1,7 @@
|
|||||||
apply plugin: 'konan'
|
apply plugin: 'konan'
|
||||||
|
|
||||||
konanInterop {
|
|
||||||
objc {
|
|
||||||
target "iphone"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
konanArtifacts {
|
konanArtifacts {
|
||||||
app {
|
app {
|
||||||
useInterop 'objc'
|
|
||||||
target "iphone"
|
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 kotlinx.cinterop.*
|
||||||
|
import platform.Foundation.*
|
||||||
|
import platform.UIKit.*
|
||||||
|
|
||||||
fun main(args: Array<String>) {
|
fun main(args: Array<String>) {
|
||||||
memScoped {
|
memScoped {
|
||||||
|
|||||||
Reference in New Issue
Block a user