You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Kotlin Multiplatform with iOS, Android and JVM Desktop targets #67
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?
@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
Activity
nanthakumarg commentedon Apr 5, 2024
same issue here too. +1
tamimattafi commentedon Jun 28, 2024
@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
Then you can create
shared/src/mobileMainthat will contain common code for mobile