-
-
Notifications
You must be signed in to change notification settings - Fork 19
Description
Problem Statement:
Hi Sentry team 👋
I'm working on a Compose Multiplatform (CMP) project and trying to integrate the DexGuard mapping upload as part of our release process. We use a Gradle task to generate releases and would like to automatically upload the mapping file to Sentry during this process.
Currently, I generate a UUID for the release like this in our build.gradle.kts:
val releaseUUID = UUID.randomUUID().toString() // Pass this to the app via BuildConfig or similar
With the Sentry Android Native, we would typically call:
options.setProguardUuid(BuildConfig.RELEASE_UUID)
However, since we’re using the Kotlin Multiplatform SDK (io.sentry.kotlin.multiplatform.Sentry), there doesn’t seem to be any API or documentation for setting the ProGuard (or DexGuard) UUID.
Here’s how we initialize Sentry in our CMP project:
Sentry.init { it.apply { // no method to set proguard UUID } }
Because of this, Sentry cannot associate our uploaded mapping file with the release correctly, and crash logs do not get deobfuscated as expected.
Is there currently a way to set the ProGuard UUID in the CMP SDK? If not, it would be really helpful to support this or to document a workaround for setting native options.
Thanks for your help and for the great library! 🙏