• Osman Saral

    Osman Saral

    9 months ago
    Can I export a common dependency to android? like
    val commonMain by getting {
        dependencies {
            api(Deps.kotlinxDateTime)
        }
    }
    or maybe
    val androidMain by getting {
        dependencies {
            api(Deps.kotlinxDateTime)
        }
    }
    And use kotlinx datetime from android? PS: I tried these but they didn't work.
    Osman Saral
    rudolf.hladik
    +1
    9 replies
    Copy to Clipboard
  • Nacho Ruiz Martin

    Nacho Ruiz Martin

    9 months ago
    Hey! 👋 Has anyone tried using composite builds in gradle (
    includeBuild
    ) to have a separate standalone project for the KMM shared multimodule project? Everything is building correctly but IDE is showing errors with dependencies between modules of the KMM project.
    Nacho Ruiz Martin
    l
    +2
    6 replies
    Copy to Clipboard
  • Alexandre Brown

    Alexandre Brown

    9 months ago
    Context : I have a root MPP module and many MPP sub modules. Is it possible to define the targets inside in the root module? Thanks
    Alexandre Brown
    russhwolf
    2 replies
    Copy to Clipboard
  • Alexandre Brown

    Alexandre Brown

    9 months ago
    Hello, is it possible to reference an interface (that has no impl) in a kotlin MPP library commonMain from a different Java/Kotlin only Module? myJavaModule -> MPP Library/commonMain/MyInterface Thanks
    Alexandre Brown
    Javier
    +1
    62 replies
    Copy to Clipboard
  • spierce7

    spierce7

    9 months ago
    I’m getting the following gradle error output while compiling. I can’t figure out how to solve the error. Can someone help me figure out how to solve this?
    spierce7
    Mayank
    9 replies
    Copy to Clipboard
  • ptsiogas

    ptsiogas

    9 months ago
    Hello, Has anyone created a GitHub action/app for kotlinx-kover?
    ptsiogas
    Javier
    +1
    22 replies
    Copy to Clipboard
  • Javier

    Javier

    9 months ago
    What is
    kotlin-js-store
    ? Recently it is being autogenerated in my projects that target JS
    Javier
    hfhbd
    +3
    16 replies
    Copy to Clipboard
  • w

    Waqas Tahir

    9 months ago
    Sqldelight creates a new database / erases previous data every time I restart the program (jvm , windows)
    w
    kpgalligan
    +1
    6 replies
    Copy to Clipboard
  • m

    Mendess

    9 months ago
    is there anyway to get the current filename as a string? Something like C or pythons
    __FILE__
    magic constant
    m
    elizarov
    +2
    12 replies
    Copy to Clipboard
  • d

    dimsuz

    9 months ago
    I'm trying to port and publish my library to KMM and I have to tell you this is hell on earth experience. • Wanted to use atomics. Failed to set up kotlinx-atomicfu, it assumes configuration in root-module, but even after hacks it failed with exceptions • gradle-kts constantly breaks completion/compilation • gradle-kts has very weird rules as to what goes where, plugin repositories were in main file, now they're in settings.kts, convention plugins have weird rules on deps declaration etc etc Especially publishing configuration. • All examples are trivial and assume everything in the root module • Article from Kotlin's dev-rel assumes the same and plainly doesn't work • Libraries on github do not use kts (it seems) • I cannot create sourcesJar and no examples on how to do this in KMM setting • Reading every other section of KMM guide makes me believe that it's all full of a lots and lots of workarounds and hacks I'm sure all this can be solved, but as the beginner I'm very frustrated and tired of battling the tools. Been at it all day and got nowhere. Can't even publish to maven local.
    d
    raulraja
    +1
    7 replies
    Copy to Clipboard