• g

    Guilherme Delgado

    5 months ago
    Hello again, I’ve a project with androidApp, iosApp, desktopApp (compose) and shared. All can access to com.repo.domain classes and shared code, except desktopApp:
    dependencies {
        implementation(project(":shared"))
        implementation(compose.desktop.currentOs)
    }
    it gives me an error: “Packages cannot be imported” when I try to import a class. 🤷 IDE suggestion:
    Add dependency on module 'App.shared.commonMain'
    Any idea?
    g
    3 replies
    Copy to Clipboard
  • colintheshots

    colintheshots

    5 months ago
    I just updated all of my KMM libraries and suddenly I’m getting this error only when building from iOS/Kotlin Native:
    > Task :shared:linkPodDebugFrameworkIosX64 FAILED
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Execution failed for task ':shared:linkPodDebugFrameworkIosX64'.
    > No extensions handle the extension type: kotlinx.metadata.klib.KlibModuleFragmentExtensionVisitor
    Any ideas?
    colintheshots
    2 replies
    Copy to Clipboard
  • James Black

    James Black

    5 months ago
    I am working on my KMM backend server and I got this error:
    The 'java' plugin has been applied, but it is not compatible with the Android plugins.
    In my shared build.gradle I have this. If I just use jvm() instead no issues, except it goes to androidMain not jvmMain.
    kotlin {
        android()
        jvm {
            withJava()
        }
    I have a sinking feeling it won't be resolved any time soon based on this issue:https://youtrack.jetbrains.com/issue/KT-30878 Is the best bet to just have web and server have one KMM project and android/iOS and everything else have the other, or should servers just not be in the KMM project currently?
    James Black
    e
    11 replies
    Copy to Clipboard
  • e

    eygraber

    5 months ago
    I just published uri-kmp a uri library for all kmp targets, ported from AOSP's
    Uri
    implementation. Check it out, I'd love to hear your feedback 😄
    e
    Big Chungus
    +1
    11 replies
    Copy to Clipboard
  • e

    eygraber

    5 months ago
    Is there any way to disable
    explicitApi
    for test source sets? (edit: looks like it's only an issue for
    androidTest
    )
    e
    xxfast
    2 replies
    Copy to Clipboard
  • t

    Tobias

    5 months ago
    Good morning, Where do I see the
    shared
    framework from a KMM project in Xcode? It's neither listed under the
    Frameworks
    folder neither nor
    Embedded Frameworks
    in Xcode.
    t
    n
    3 replies
    Copy to Clipboard
  • diego-gomez-olvera

    diego-gomez-olvera

    5 months ago
    hello! How do you share the iOS CocoaPods Pods? I use Artifactory for Android/Java (with maven-publish), so it would be convenient to upload them there as well. I am using cocoapods plugin saw about CocoaPods repositories and cocoapods-art but I cannot find if the setup would require to publish then separate or together for a multiplatform library.
    diego-gomez-olvera
    kpgalligan
    +2
    13 replies
    Copy to Clipboard
  • Gopal S Akshintala

    Gopal S Akshintala

    4 months ago
    Hi, I am trying to bundle
    moment.js
    into my jar and this is what I have tried.https://github.com/overfullstack/revoman-root/blob/master/src/jsMain/kotlin/Main.kt But the final bundle generated doesn’t have the moment functions as expected. Am I doing it right?
    Gopal S Akshintala
    Big Chungus
    6 replies
    Copy to Clipboard
  • Matti MK

    Matti MK

    4 months ago
    I started a KMM project in fall and now it would be time for another one. In my previous project I did not use the new MM, nor have to worry about M1 issues. However, going into the new project I would like to support M1 and perhaps also use the new MM. With those constraints in mind, are there currently any known pitfalls when it comes to M1 and KMM?
    Matti MK
    m
    +2
    6 replies
    Copy to Clipboard
  • Lucas Schiavini

    Lucas Schiavini

    4 months ago
    And would a Stop the world pause break the swift UI necessarily?
    Lucas Schiavini
    r
    10 replies
    Copy to Clipboard