• christophsturm

    christophsturm

    3 months ago
    in a multiplatform project gradle build (kotlin dsl) how can i create a JavaExec task that has the jvmTest classpath? in the jvm only build it was just
    classpath = sourceSets["test"].runtimeClasspath
    christophsturm
    e
    9 replies
    Copy to Clipboard
  • Orhan Tozan

    Orhan Tozan

    3 months ago
    Can somebody tell me why my multiplatform project suddenly is able to use
    java.time
    inside of
    commonMain
    ? I'm using
    kotlinx-datetime
    as a dependency.
    Orhan Tozan
    hfhbd
    +3
    13 replies
    Copy to Clipboard
  • jean

    jean

    3 months ago
    I have 2 multi-platform library projects A and B where B depends on A and both Android and iOS depends on B. How can I make classes from library A visible to Android and iOS through library B?
    jean
    mbonnin
    +1
    15 replies
    Copy to Clipboard
  • m

    Mendess

    3 months ago
    I have a multiplatform lib and I added a new dependency, then I have an example android app that I use mostly for testing. This new dependency works well in unit tests but when I try to use the android app it gives me a
    ClassDefNotFound
    exception. How could I start debugging this?
    m
    mbonnin
    3 replies
    Copy to Clipboard
  • k

    kkovach

    3 months ago
    So, what's the context around that seemingly random KMM survey question about how sad I would be if I were no longer able to use Kotlin/JS? 😁
    k
    Big Chungus
    +3
    7 replies
    Copy to Clipboard
  • Marc

    Marc

    3 months ago
    hello, Does anyone tryed to enable context receivers in a multiplatyform module? I would like to enable it for android and common but I get always the error saying that i need to explicitly enable it 😕
    Marc
    hfhbd
    2 replies
    Copy to Clipboard
  • s

    shota jolbordi

    3 months ago
    I have a multiplatform project that compiles into JVM, IOS, JS and Android, There is one function in commonMain that is using a multiplatform library krypto, It works great on all platforms but on android there is an issue, I’d like to implement a specific implementation of this function for android source sets but for all other platforms I’d like to keep the one from commonMain, how can I do that? I’ve looked into expect/actual but there I need to define an interface and then add implementations for every other platform, but In my case I only want to “override” so to speak the android implementation, and for all other platforms implementation from commonMain works great so I’d like to keep that.
    s
    Lucas
    2 replies
    Copy to Clipboard
  • andylamax

    andylamax

    3 months ago
    facing a weird bug in KMP project with jvm and js target • compileKotlinJvm build successfully • compileKotlinJs builds successfully • compileCommonMainKotlinMetadata fails with dependency resolution errors Anyone faced this issue before? What might the cause be? WA??
    andylamax
    a
    +1
    24 replies
    Copy to Clipboard
  • Stefan Oltmann

    Stefan Oltmann

    3 months ago
    I got an
    @SharedImmutable
    private val backgroundDispatcher: CoroutineDispatcher = Dispatchers.Default
    and it looks like that every Job started by
    backgroundDispatcher.launch()
    runs on the same NSThread. I use
    1.6.1-native-mt
    . The same code on JVM runs every job on another thread. Do I have to do something extra to get this parallel?
    Stefan Oltmann
    m
    +2
    14 replies
    Copy to Clipboard
  • a

    Alper Tekin

    3 months ago
    Hi! I’m having strange problem with an
    actual
    class. I do follow the example in KaMPKit. Although everything works fine in KaMPKit standalone project, in my project which is a separate project and implements shared lib can not resolve
    actual
    class imports in
    androidMain
    but resolves
    iosMain
    😄 Any thoughts about what the reason might be? Thanks in advance.
    a
    m
    +1
    6 replies
    Copy to Clipboard