• saket

    saket

    2 years ago
    Would anyone understand what this error means?
    Execution failed for task 'compileKotlinIos':
    
    Compilation failed: Deserializer for declaration public kotlinx.coroutines/SingleThreadDispatcher|null[0] is not found
    saket
    b
    4 replies
    Copy to Clipboard
  • b

    bughunter

    2 years ago
    Hi, I need some help to implement a kafka consumer and producer for the js Part. I actually have no idea how to do this... Does somebody have an example?
    b
    1 replies
    Copy to Clipboard
  • m

    Marc Knaup

    2 years ago
    What kinds of libraries do you miss most in multiplatform?
    m
    Nick
    +7
    34 replies
    Copy to Clipboard
  • z

    zsperske

    2 years ago
    Does anyone have experience with compiling their KMP app into an iOS archive to upload to TestFlight? I packaged my shared code as a framework and included it in my iPhone target but when I try to build an archive for a Generic iOS Device, I end up getting a
    No such module 'SharedCode'
    error on my import statements
    z
    kpgalligan
    +2
    18 replies
    Copy to Clipboard
  • Ivann Ruiz

    Ivann Ruiz

    2 years ago
    Hi all 👋 starting a new MPP project using Kotlin 1.4, lemme pick your brains a bit. In my app's
    build.gradle.kts
    file I can create ios/android targets by adding these lines👇 it all compiles and runs fine.
    plugins {
        kotlin("multiplatform")
    }
    
    kotlin {
        ios()
        android()
    }
    but when i try to put this same logic in the
    build.gradle.kts
    of a new
    :common
    module it just won't work. First it gives me an error on the
    android()
    line. Second, i get around this by adding
    jvm("android")
    instead, but then my app crashes when running. The point of doing this is so I can have all the multiplatform gradle code separate from the app gradle. Thoughts?
    Ivann Ruiz
    kpgalligan
    +1
    7 replies
    Copy to Clipboard
  • gumil

    gumil

    2 years ago
    Has anyone encountered IDE not being able to add Multiplatform dependency into a JVM project? I've tried it on IntelliJ IDEA 2020.2 and Android Studio 4.2 canary 7. Command line works fine but it's hard to work on a jvm module when IDE gives error on classes not being resolved from the multiplatform dependency
    gumil
    Javier
    2 replies
    Copy to Clipboard
  • u

    Uri Abad

    2 years ago
    Hi guys! First comment here!!!😁 Do you have any workaround to be able to test coroutines in native enviroment?? I just had this workaround to make common test works against JVM, but I couldn't find any solution for native:
    //Common
    expect fun runBlockingAdapter(block: suspend () -> Unit)
    
    //JVM
    actual fun runBlockingAdapter(block: suspend () -> Unit) = kotlinx.coroutines.runBlocking { block() }
    
    //Native
    actual fun runBlockingAdapter(block: suspend () -> Unit) {
        throw UnsupportedOperationException()
    }
    u
    m
    2 replies
    Copy to Clipboard
  • Larten

    Larten

    2 years ago
    Hi! We released our solution to multiplatform logging. Feel free to check it! (We are using in production 😎)https://github.com/FitPuli/abele
    Larten
    aleksey.tomin
    +1
    9 replies
    Copy to Clipboard
  • m

    Maurice Jouvet

    2 years ago
    I have a weird issue: Task 'generateAndroidDebugDatabaseInterface'. Is given me this:
    m
    Kurt Renzo Acosta
    +1
    17 replies
    Copy to Clipboard
  • audax

    audax

    2 years ago
    I have a kotlin multiplatform project with jvm and js targets. How do I build junit-xml test reports for my js and jvm tests?
    audax
    1 replies
    Copy to Clipboard