Skip to content

Commit

Permalink
fix: Exclude classes that we are checking at runtime from obfuscation (
Browse files Browse the repository at this point in the history
  • Loading branch information
romtsn committed Mar 11, 2022
1 parent 530d17d commit c314bd6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Unreleased

* Fix: If transaction or span is finished, do not allow to mutate (#1940)
* Fix: Keep used AndroidX classes from obfuscation (Fixes UI breadcrumbs and Slow/Frozen frames) (#1942)

## 5.6.2

Expand Down
6 changes: 6 additions & 0 deletions sentry-android-core/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
##---------------Begin: proguard configuration for androidx.core ----------
-keep class androidx.core.view.GestureDetectorCompat { <init>(...); }
-keep class androidx.core.app.FrameMetricsAggregator { <init>(...); }
-keep interface androidx.core.view.ScrollingView { *; }
##---------------End: proguard configuration for androidx.core ----------

##---------------Begin: proguard configuration for Gson ----------
# Gson uses generic type information stored in a class file when working with fields. Proguard
# removes such information by default, so configure it to keep all of it.
Expand Down

0 comments on commit c314bd6

Please sign in to comment.