-
-
Notifications
You must be signed in to change notification settings - Fork 467
Open
Labels
Description
Integration
sentry-android
Build System
Gradle
AGP Version
9.1.0
Proguard
Enabled
Version
8.34.0
Steps to Reproduce
- Build Android app with proguard enabled and sentry replay integration disabled.
Notes:
After updating to Sentry 8.34.0 BOM we got the following error:
Task :app:minifyGoogleDevQaWithR8
ERROR: Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in /home/jenkins/agent/workspace/p_android-client_renovate_sentry/app/build/intermediates/mapping/googleDevQa/minifyGoogleDevQaWithR8/missing_rules.txt.
ERROR: R8: Missing class io.sentry.android.replay.util.MaskRenderer (referenced from: android.graphics.Bitmap io.sentry.android.core.ScreenshotEventProcessor.applyMasking(android.graphics.Bitmap, io.sentry.android.replay.viewhierarchy.ViewHierarchyNode))
Missing class io.sentry.android.replay.util.ViewsKt (referenced from: io.sentry.android.replay.viewhierarchy.ViewHierarchyNode io.sentry.android.core.ScreenshotEventProcessor.buildViewHierarchy(android.app.Activity))
Missing class io.sentry.android.replay.viewhierarchy.ViewHierarchyNode$Companion (referenced from: io.sentry.android.replay.viewhierarchy.ViewHierarchyNode io.sentry.android.core.ScreenshotEventProcessor.buildViewHierarchy(android.app.Activity))
Missing class io.sentry.android.replay.viewhierarchy.ViewHierarchyNode (referenced from: android.graphics.Bitmap io.sentry.android.core.ScreenshotEventProcessor.applyMasking(android.graphics.Bitmap, io.sentry.android.replay.viewhierarchy.ViewHierarchyNode) and 4 other contexts)
Task :app:minifyGoogleDevQaWithR8 FAILED
Seem like this PR added replay related Proguard rules to the general file, which results to this error: https://github.com/getsentry/sentry-java/pull/5077/changes#diff-ef377a4ce90825a0dc0311d8bca0372c7b9932fc96481a722d24686f8d3fc852
Expected Result
Build succeeds
Actual Result
Build fails with message shown above.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Projects
Status
Waiting for: Product Owner