Hi everyone, hope you're doing well
I'm working on a Compose Multiplatform project targeting Android, iOS, and JS.
I'm trying to integrate Sentry for logging, but I'm running into issues since Sentry doesn't currently support the JS target.
I'd really appreciate any help or guidance 🙏
I’ve explained the full issue here:
stack over flow
r
romtsn
07/14/2025, 8:41 AM
hi, you can disable autoInstall in the KMP plugin and do it manually:
Copy code
sentryKmp {
commonMain.enabled = false
}
// install the deps directly
kotlin {
sourceSets {
val commonMain by getting {
dependencies {
implementation("io.sentry:sentry-kotlin-multiplatform:0.14.0")
}
}
// Android target
val androidMain by getting {
dependsOn(commonMain)
}
// Apple targets:
val iosMain by getting {
dependsOn(commonMain)
}
}
}