Skip to content

Commit 2ae42b8

Browse files
authored
Workaround R8 bug by adding a new proguard rule (#2094)
1 parent a83efb8 commit 2ae42b8

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
- Implement local scope by adding overloads to the capture methods that accept a ScopeCallback ([#2084](https://github.com/getsentry/sentry-java/pull/2084))
88

9+
### Fixes
10+
11+
- Fix proguard rules to work R8 [issue](https://issuetracker.google.com/issues/235733922) around on AGP 7.3.0-betaX and 7.4.0-alphaX ([#2094](https://github.com/getsentry/sentry-java/pull/2094))
12+
913
## 6.0.0
1014

1115
### Sentry Self-hosted Compatibility

sentry-android-core/proguard-rules.pro

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
-keep class androidx.lifecycle.ProcessLifecycleOwner { <init>(...); }
1212
##---------------End: proguard configuration for androidx.lifecycle ----------
1313

14+
# To mitigate the issue on R8 site (https://issuetracker.google.com/issues/235733922)
15+
# which comes through AGP 7.3.0-betaX and 7.4.0-alphaX
16+
-keepclassmembers enum io.sentry.** { *; }
17+
1418
# don't warn jetbrains annotations
1519
-dontwarn org.jetbrains.annotations.**
1620
# don't warn about missing classes (mainly for Guardsquare's proguard).

0 commit comments

Comments
 (0)