Trying to convert some Java code to Kotlin, the Java code includes a call to a library method TableUtils.dropTable which is implemented in Java. The J ...
Trying to convert some Java code to Kotlin, the Java code includes a call to a library method TableUtils.dropTable which is implemented in Java. The J ...
Using kotlin 1.6.21, and java 11. Having a kotlin interface which has property with default value. How to make use it in java code? in kotlin it co ...
The @JvmSynthetic annotation is allowed to be used on a file, but I can't figure out what the purpose of this would be. I was hoping I could hide a f ...
I have two modules defines like this: I created a base listener interface for Module and another for FirstModule: assuming there is a function n ...
I observe a LiveData with an exhaustive when statement, how can it throw a NoWhenBranchMatchedException at runtime? Wasn't exhaustiveness checked for ...
I just tried to use my compiled staticLibrary using objective-c code. here's what inside my nativeLib.a : NativeHello.h #import <Foundation/Foun ...
I just tried using native interop feature since I need native code written in Objective-C to be used in my library. So first I'm trying to test using ...
I read the Big Nerd Ranch guide to Kotlin and it talked in several places about Kotlin/Java interop, but never JS or native. I already had a solid bac ...
I am converting an Android app that was originally written in Java to Kotlin. I am struggling to understand the following error message: Type mism ...
I'm developing a Kotlin/Native library for both iOS and Android. When running ./gradlew assemble I get the release/debug .frameworks with Obj-C Head ...
I'm trying to use the PiGPIO library with Kotlin Native as a linked library (not using the deamon). So I'm using C interop with a .def file that refer ...
How can I convert cArrayPointer to a simple Array/List when using c-interop? ...
In my Kotlin multiplatform project i heavily use namespaces. Also since i'm using MVP i have similar classnames. eg: Now i want to use it in iOS ap ...
If you access a Java value of type List<[Some Type]> in Kotlin, you will get the type (Mutable)List<[Some Type]!>!. e.g.: Java code: pu ...
i use assertj. among others it has functions assertThat(int) and assertThat(Object). i would like to add my own function but then it seems like i ...
I'm trying to use cocoapods framework in Kotlin Multiplatform project. So I added framework to Pods file. ran pod install. created .def file ...
I'm trying to call Swift/Objective-C code from Kotlin in a multiplatform project. There are no problems with calls to platform code. But when I'm tryi ...
I have an existing Java interface defined as follows and want to define a variable holding a Kotlin lambda which conforms to the SAM conversion as ...
Reading the Java interop document about SAM Conversions, I expected the Kotlin function Collections.sortWith(comparator: kotlin.Comparator<in T> ...
I need to disable @NonNull/@Nullable annotations in Kotlin generated Java code because some annotation adapters (code generators) cant handle properly ...