• adjpd

    adjpd

    7 months ago
    Hi there. I'm guessing I can't just
    java.util.Date
    in the
    shared
    module under
    commonMain
    ? (I'm guessing this because the import fails, although I have other strange import failures)
    adjpd
    Matt Nelson
    6 replies
    Copy to Clipboard
  • adjpd

    adjpd

    7 months ago
    When I start a new KMM project, add
    implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.3.2")
    to
    commonMain
    in my
    shared
    module, add
    Clock.System.now().epochSeconds
    in my
    Greeting
    file, then run the application in Android, it crashes with an error about not finding
    java.time.Instance
    .
    adjpd
    e
    10 replies
    Copy to Clipboard
  • xxfast

    xxfast

    7 months ago
    why is there no
    commonDebug
    by default? whats the best way to create a dubug source set that links up correctly to android debug variant and ios debug configuration?
    xxfast
    3 replies
    Copy to Clipboard
  • c

    clark

    7 months ago
    Is there a way to create a
    sqldelight
    DatabaseDriver
    for Android without requiring a context? I want all of my database work to be handled by shared code and I don't love having to instantiate it all by passing in an Android context
    c
    Matt Nelson
    +1
    5 replies
    Copy to Clipboard
  • Stefan Oltmann

    Stefan Oltmann

    7 months ago
    Is there a way to see how the generated
    equals()
    of my data class actually looks like? I needed to change it to a normal class and now in Swift it does not work anymore. So I try to find out what the original generated method does different.
    Stefan Oltmann
    Grégory Lureau
    +2
    8 replies
    Copy to Clipboard
  • Jakub Sieprawski

    Jakub Sieprawski

    7 months ago
    I am developing KMM library called edoLibrary used both on ios and android platforms. edoLibrary uses inside native modules responsible for video capture. On Ios platform video module called iosBiometry is added by c-interoperability. When I am publishing final edoLibrary binary and adding it to my ios project it also demands from me to add as a framework iosBiometry module with message:dyld: Library not loaded: @rpath/iosBiometry.framework/iosBiometry  Referenced from: /private/var/containers/Bundle/Application/5964BC21-66DB-4634-915A-450D647EC5E0/Multiplatform_Poc.app/Frameworks/edoLibrary.framework/edoLibrary  Reason: image not found Is there any way to export KMM shared module as umbrella framework containing all depended frameworks added by c-interoperability? I know that there is an export method but i don't know how to connect cinterop as a dependency. Or should I use cocoapods? below photo of iosBiometry c-interoperability and edoLibrary final native configuration.
    Jakub Sieprawski
    Viacheslav Kormushkin
    +1
    9 replies
    Copy to Clipboard
  • Kathrin Petrova

    Kathrin Petrova

    7 months ago
    🚀

     The first episode of the ATOM show

     is now available! ⚛️ A Touch of Multiplatform (ATOM) is a brand new monthly podcast dedicated to Kotlin Multiplatform, hosted by @touchlab_justin and me and produced by JetBrains and Touchlab! Check it out for Kotlin Multiplatform news and plans :kotlin-intensifies-purple: In the series premiere, we host @dsavvinov and @kpgalligan for a discussion of Multiplatform Mobile’s road to Beta and Compose Multiplatform. Feel free to share your ideas on the next topics and guests for ATOM in :thread-please: !
    Kathrin Petrova
    a
    +1
    3 replies
    Copy to Clipboard
  • Landry Norris

    Landry Norris

    7 months ago
    In one of my projects, I am using expect/actual for platform-specific behaviour. I now need my tests to be able to override this behaviour if possible (for example, having an actual class in both androidMain and androidTest). I would like the actual from the test source set to be used in tests, even in code in commonMain. Is this possible? When I define an actual class in androidTest, it complains that there's no expect declaration.
    Landry Norris
    Anton Afanasev
    +1
    9 replies
    Copy to Clipboard
  • jean

    jean

    7 months ago
    I started a project as a multiplatform library with android and ios client in different folders but publishing new versions is quite cumbersome and I now would like to move to the “centralized” file architecture, like the one created by the kmm module. I tried to replicate how it’s done from a freshly created project but I keep getting this error
    Plugin [id: 'com.android.application'] was not found in any of the following sources:
    and nothing after. So gradle doesn’t understand that the
    buildscript
    block is now define in a different gradle file. I did include
    implementation(project(":shared"))
    in the gradle file at the android app level but still the same issue. Are there any non-gradle configuration changes to do I am not aware of?
    jean
    1 replies
    Copy to Clipboard
  • adjpd

    adjpd

    7 months ago
    I have a kotlin class that takes a
    suspend
    function as a constructor parameter. How can I call this in swift? I've attempted to pass a simple closure but it complains it doesn't conform to
    KotlinSuspendFunction0
    . Any idea on the correct swift syntax? My attempt in 🧵.
    adjpd
    hfhbd
    9 replies
    Copy to Clipboard