Skip to content

Kotlin Multiplatform with iOS, Android and JVM Desktop targets #67

Closed

Description

@jQrgen

Using CrashKiOS crash reporting library in commonMain with iOS, Android and JVM Desktop targets crashes build because CrashKiOS does not support the JVM target.

Is there any way to get around this issue in the dependency three?

What would it take to add a JVM target?

Activity

  1. nanthakumarg commented on Apr 5, 2024

    @nanthakumarg

    same issue here too. +1

  2. tamimattafi commented on Jun 28, 2024

    @tamimattafi

    @jQrgen @nanthakumarg
    JVM probably doesn't have a Crashlytics SDK (There's nothing in the dashboard about JVM and Desktop too)
    We use our dependecies like this at the moment

    val commonMain by getting {
        dependencies {
            // Logger
            implementation(libs.kermit)
        }
    }
    
    val mobileMain by creating {
        dependsOn(commonMain)
    
        dependencies {
            // Logger
            implementation(libs.crashkios)
            implementation(libs.kermit.crashlytics)
        }
    }
    
    val androidMain by getting {
        dependsOn(mobileMain)
        dependencies {
            // Android specific dependencies
        }
    }
    
    val iosMain by getting {
        dependsOn(mobileMain)
        dependencies {
            // iOS specific dependencies
        }
    } 

    Then you can create shared/src/mobileMain that will contain common code for mobile

  3. locked and limited conversation to collaborators on Aug 14, 2026
  4. converted this issue into a discussion #94 on Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions