Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Add more masked classes by default
  • Loading branch information
romtsn committed Oct 8, 2024
commit 6942db193d19084362e446b8795cb79df76428ab
6 changes: 6 additions & 0 deletions sentry/src/main/java/io/sentry/SentryReplayOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ public final class SentryReplayOptions {

public static final String TEXT_VIEW_CLASS_NAME = "android.widget.TextView";
public static final String IMAGE_VIEW_CLASS_NAME = "android.widget.ImageView";
public static final String WEB_VIEW_CLASS_NAME = "android.webkit.WebView";
public static final String VIDEO_VIEW_CLASS_NAME = "android.widget.VideoView";
public static final String EXOPLAYER_VIEW_CLASS_NAME = "androidx.media3.ui.PlayerView";

public enum SentryReplayQuality {
/** Video Scale: 80% Bit Rate: 50.000 */
Expand Down Expand Up @@ -99,6 +102,9 @@ public enum SentryReplayQuality {
public SentryReplayOptions() {
setMaskAllText(true);
setMaskAllImages(true);
maskViewClasses.add(WEB_VIEW_CLASS_NAME);
maskViewClasses.add(VIDEO_VIEW_CLASS_NAME);
maskViewClasses.add(EXOPLAYER_VIEW_CLASS_NAME);
}

public SentryReplayOptions(
Expand Down