• p

    Patrick Jackson

    3 years ago
    anyone dealt with "Could not build Objective-C module 'shared'" in iOS project? shared is my kotlin module. Have the framework added and get this when I try to import the module. I get this error in common.h:
    Cannot find protocol declaration for 'CommonKotlinCoroutineContextElement'; did you mean 'CommonKotlinCoroutineContextKey'?
    p
    2 replies
    Copy to Clipboard
  • Kris Wong

    Kris Wong

    3 years ago
    has anyone figured out how to
    apply plugin: 'kotlin-android'
    in a MPP library?
    Kris Wong
    mbonnin
    8 replies
    Copy to Clipboard
  • p

    Patrick Jackson

    3 years ago
    Anyone have success with the kotlin xcode plugin? I install it and load the bundle, then xcode immediately closes. It does not seem to be loaded when I reopen. There is no syntax highlighting/ breakpoints.
    p
    kpgalligan
    67 replies
    Copy to Clipboard
  • gumil

    gumil

    3 years ago
    Are there best practices on when to use expect/actual or sometimes we can just use interfaces?
    gumil
    1 replies
    Copy to Clipboard
  • f

    Fail

    3 years ago
    Hi friends! Why breakpoints not working in inline functions? function "subscribe" worked but not stopped. In first picture breakpoint not worked. At next picture not worked too
    f
    t
    +2
    6 replies
    Copy to Clipboard
  • p

    Patrick Jackson

    3 years ago
    I may have found a bug with kotlin native. I have the following:
    type alias Bar = (String) -> Any
    fun test(foo: Any) {
        if (foo is Function<*>) {
             (foo as Bar)("test")
        }
    }
    On JVM the conditional will be true when passing in a function. On Native it is false.
    p
    olonho
    3 replies
    Copy to Clipboard
  • Nicholas Bilyk

    Nicholas Bilyk

    3 years ago
    For Kotlin multiplatform projects, what's the correct way to access test resources from a test class? The working directory seems to most of the time be the project directory, although that doesn't seem to be the case when running via drone.io. I tried javaClass.getResource methods but that seems to only list class directories, not resource directories.
    Nicholas Bilyk
    Kris Wong
    11 replies
    Copy to Clipboard
  • kpgalligan

    kpgalligan

    3 years ago
    kpgalligan
    Kris Wong
    +1
    12 replies
    Copy to Clipboard
  • Jan Stoltman

    Jan Stoltman

    3 years ago
    I'm trying to parse a Json in a backthread on native using kotlinx.serializer, but it fails with InvalidMutability exception. it used to work just fine with kotlin 1.3.30 and serialization 10.0 but fails at 1.3.41/11.1. Do you guys know if anything important changed in serialization between these two versions?
    Jan Stoltman
    s
    +1
    4 replies
    Copy to Clipboard
  • egorand

    egorand

    3 years ago
    Has anybody had problems building multiplatform projects with Java 11? For some reason Gradle fails to resolve project dependencies properly, it works fine with Java 8. For more context, here’s the issue that I’m investigating: https://github.com/square/wire/issues/1081
    egorand
    Dominaezzz
    5 replies
    Copy to Clipboard