albertgao
01/18/2018, 8:47 PMkonan
stand for? Just the code of the kotlin native project? Project konan?albertgao
01/18/2018, 9:43 PMexpect
in KN) to do the abstraction, and inject the platform implementation at runtime?budioktaviyan
01/19/2018, 10:09 AMkotlinconf-app
budioktaviyan
01/19/2018, 10:09 AM:android:app:transformClassesWithDexForDebug
Dex: Error converting bytecode to dex:
Cause: Dex cannot parse version 52 byte code.
This is caused by library dependencies that have been compiled using Java 8 or above.
If you are using the 'java' gradle plugin in a library submodule add
targetCompatibility = '1.7'
sourceCompatibility = '1.7'
to that submodule's build.gradle file.
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.RuntimeException: Exception parsing classes
at com.android.dx.command.dexer.Main.processClass(Main.java:781)
at com.android.dx.command.dexer.Main.processFileBytes(Main.java:747)
at com.android.dx.command.dexer.Main.access$1200(Main.java:88)
at com.android.dx.command.dexer.Main$FileBytesConsumer.processFileBytes(Main.java:1689)
at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
at com.android.dx.command.dexer.Main.processOne(Main.java:695)
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:592)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:321)
at com.android.dx.command.dexer.Main.run(Main.java:292)
at com.android.builder.internal.compiler.DexWrapper.run(DexWrapper.java:54)
at com.android.builder.core.DexByteCodeConverter.lambda$dexInProcess$0(DexByteCodeConverter.java:174)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: com.android.dx.cf.iface.ParseException: bad class file magic (cafebabe) or version (0034.0000)
at com.android.dx.cf.direct.DirectClassFile.parse0(DirectClassFile.java:476)
at com.android.dx.cf.direct.DirectClassFile.parse(DirectClassFile.java:406)
at com.android.dx.cf.direct.DirectClassFile.parseToInterfacesIfNecessary(DirectClassFile.java:388)
at com.android.dx.cf.direct.DirectClassFile.getMagic(DirectClassFile.java:251)
at com.android.dx.command.dexer.Main.parseClass(Main.java:793)
at com.android.dx.command.dexer.Main.access$1600(Main.java:88)
at com.android.dx.command.dexer.Main$ClassParserTask.call(Main.java:1728)
at com.android.dx.command.dexer.Main.processClass(Main.java:779)
levcom
01/21/2018, 7:50 PMjmullin
01/22/2018, 4:46 PMnyxcharon
01/22/2018, 6:16 PMclifton
01/22/2018, 7:21 PMclifton
01/22/2018, 7:42 PMalexanderUV
01/23/2018, 6:17 AMwakingrufus
01/23/2018, 4:35 PMkikitux
01/24/2018, 1:50 PMalec
01/24/2018, 3:49 PM.swiftmodule
and .switftdoc
as an alternative to the currently generated objc headers?spierce7
01/25/2018, 5:28 AMspierce7
01/25/2018, 4:53 PMkotlinx.serialization
?clifton
01/25/2018, 6:27 PMSFO1212474815A:easycurl 212474815$ kotlinc curl.kt -library curlklib -o kurl
KtFile: curl.kt
ld: warning: directory not found for option '-L/opt/local/lib'
ld: warning: could not create compact unwind for _ffi_call_unix64: does not use RBP or RSP based frame
SFO1212474815A:easycurl 212474815$ ./kurl.kexe
Download from URL
Error performing CURL download: CPointer(raw=0x10e711808)
jkbbwr
01/26/2018, 3:58 AMval serverAddr = alloc<sockaddr_in>()
Czar
01/26/2018, 10:57 AMdraciel
01/26/2018, 11:58 PMgildor
01/30/2018, 12:45 AMalbertgao
01/30/2018, 4:48 AMvar successCallback: (result: String) -> Unit
, However the generated ObjC code is @property NativeLibsStdlibUnit*(^errorCallback)(NSString*);
, I want to have a declaration at the swift side using something like this: var successCallback: (_ result: String) -> Void
. Anything I did wrong? The official example are all return Any
can’t find an example of returning Unit
at the kotlin side which could be translated to Void
in Swift side.kikitux
01/30/2018, 10:35 AMalbertgao
01/30/2018, 10:09 PMIf (android) {a=andA} else if (ios) {a=iosA}
. I want to use interfaces to separate some platform-specific logic, then compile them according to different platformalbertgao
01/31/2018, 1:47 AMimport platform.Foundation.*
, IDEA said cant resolve platform
. I think maybe it’s because I have not setup the dependencies
in the build.gradle
? But can’t find them in the kotlin-conf
and KN samples
either, I can’t get the auto-completion there, but at least they seem to resolve the kotlin native libs without problem. Basically the same build.gradle
. Anything I missed here?gildor
02/01/2018, 5:49 AMkikitux
02/02/2018, 10:40 AMrootandy
02/02/2018, 2:09 PMrCorbellini
02/05/2018, 2:40 PMianbrandt
02/06/2018, 7:19 AMsvyatoslav.scherbina
02/07/2018, 9:07 AM