Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jQrgen opened this issue Mar 22, 2024 · 2 comments
Open

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

jQrgen opened this issue Mar 22, 2024 · 2 comments

Comments

@jQrgen
Copy link

jQrgen commented Mar 22, 2024

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?

@nanthakumarg
Copy link

same issue here too. +1

@tamimattafi
Copy link

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants