Skip to content

Commit 409ad00

Browse files
update to use new add java interface
1 parent faeaf10 commit 409ad00

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

android/src/main/java/io/sentry/react/RNSentryModuleImpl.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,9 +330,7 @@ private SentryReplayOptions getReplayOptions(@NotNull ReadableMap rnOptions) {
330330

331331
final boolean redactVectors = !rnMobileReplayOptions.hasKey("maskAllVectors") || rnMobileReplayOptions.getBoolean("maskAllVectors");
332332
if (redactVectors) {
333-
final @NotNull Set<String> toRedact = new HashSet<>();
334-
toRedact.add("com.horcrux.svg.SvgView"); // react-native-svg
335-
androidReplayOptions.setRedactClasses(toRedact);
333+
androidReplayOptions.addClassToRedact("com.horcrux.svg.SvgView"); // react-native-svg
336334
}
337335

338336
return androidReplayOptions;

0 commit comments

Comments
 (0)