Skip to content

Commit

Permalink
Adopts new Mask naming (see getsentry/sentry-java#3741)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonis committed Oct 10, 2024
1 parent cedf57e commit d39996a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions android/src/main/java/io/sentry/react/RNSentryModuleImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -328,12 +328,12 @@ private SentryReplayOptions getReplayOptions(@NotNull ReadableMap rnOptions) {
return androidReplayOptions;
}

androidReplayOptions.setRedactAllText(!rnMobileReplayOptions.hasKey("maskAllText") || rnMobileReplayOptions.getBoolean("maskAllText"));
androidReplayOptions.setRedactAllImages(!rnMobileReplayOptions.hasKey("maskAllImages") || rnMobileReplayOptions.getBoolean("maskAllImages"));
androidReplayOptions.setMaskAllText(!rnMobileReplayOptions.hasKey("maskAllText") || rnMobileReplayOptions.getBoolean("maskAllText"));
androidReplayOptions.setMaskAllImages(!rnMobileReplayOptions.hasKey("maskAllImages") || rnMobileReplayOptions.getBoolean("maskAllImages"));

final boolean redactVectors = !rnMobileReplayOptions.hasKey("maskAllVectors") || rnMobileReplayOptions.getBoolean("maskAllVectors");
if (redactVectors) {
androidReplayOptions.addRedactViewClass("com.horcrux.svg.SvgView"); // react-native-svg
androidReplayOptions.addMaskViewClass("com.horcrux.svg.SvgView"); // react-native-svg
}

return androidReplayOptions;
Expand Down

0 comments on commit d39996a

Please sign in to comment.