Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@

## Unreleased

### Improvements

- Android: Remove consumer keep rules that had no effect, so R8 can optimize more of your app ([#6778](https://github.com/getsentry/sentry-java/pull/6778))
Comment thread
runningcode marked this conversation as resolved.
Resolved

### Fixes

- Session Replay: Mask Compose images loaded with Coil 3.1+ `AsyncImage` when `maskAllImages` is enabled ([#6759](https://github.com/getsentry/sentry-java/pull/6759))
Expand Down
13 changes: 1 addition & 12 deletions sentry-android-core/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,7 @@
# Keep Classnames for integrations
-keepnames class * implements io.sentry.Integration

-dontwarn io.sentry.apollo.SentryApolloInterceptor
Comment thread
runningcode marked this conversation as resolved.
Resolved
-keepnames class io.sentry.apollo.SentryApolloInterceptor

-dontwarn io.sentry.apollo3.SentryApollo3HttpInterceptor
-keepnames class io.sentry.apollo3.SentryApollo3HttpInterceptor

-dontwarn io.sentry.android.okhttp.SentryOkHttpInterceptor
-keepnames class io.sentry.android.okhttp.SentryOkHttpInterceptor

-dontwarn io.sentry.android.navigation.SentryNavigationListener
-keepnames class io.sentry.android.navigation.SentryNavigationListener

# SentryClient logs the processor's class name when it throws
-keepnames class io.sentry.android.core.ScreenshotEventProcessor
Comment thread
runningcode marked this conversation as resolved.
Resolved
-keepnames class io.sentry.android.core.ViewHierarchyEventProcessor

Expand Down
3 changes: 0 additions & 3 deletions sentry-android-ndk/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
# The Android SDK checks at runtime if this class is available via Class.forName
-keep class io.sentry.android.ndk.SentryNdk { *; }

# The JNI layer uses this class through reflection
-keep class io.sentry.protocol.DebugImage { *; }
Comment thread
runningcode marked this conversation as resolved.
Resolved

# For native methods, see http://proguard.sourceforge.net/manual/examples.html#native
-keepclasseswithmembernames,includedescriptorclasses class io.sentry.** {
native <methods>;
Expand Down
4 changes: 1 addition & 3 deletions sentry-android-replay/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@
}
# Elements without a painter member, e.g. Coil 3.1+ ContentPainterElement, are masked by name only
-keepnames class **PainterElement
# Rules to detect Text colors and if they have Modifier.fillMaxWidth to later mask them
# Rules to detect Text colors to later mask them
-dontwarn androidx.compose.ui.graphics.ColorProducer
-dontwarn androidx.compose.foundation.layout.FillElement
-keepnames class androidx.compose.foundation.layout.FillElement
Comment thread
runningcode marked this conversation as resolved.
Resolved
-keepclasseswithmembernames class * {
androidx.compose.ui.graphics.ColorProducer color;
}
Expand Down
3 changes: 0 additions & 3 deletions sentry-compose/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
-keep class io.sentry.compose.viewhierarchy.ComposeViewHierarchyExporter { <init>(...); }

-keepnames interface androidx.compose.ui.node.Owner
-keepclassmembers class androidx.compose.ui.node.LayoutNode {
Comment thread
runningcode marked this conversation as resolved.
Resolved
private androidx.compose.ui.node.LayoutNodeLayoutDelegate layoutDelegate;
}

-keepnames class androidx.compose.foundation.ClickableElement
-keepnames class androidx.compose.foundation.CombinedClickableElement
Expand Down
Loading