Skip to content

Commit c773341

Browse files
github-actions[bot]web-flowantonis
authored
chore(deps): update Android SDK to v7.15.0 (#4161)
* chore: update scripts/update-android.sh to 7.15.0 * Adopts the onErrorSampleRate naming (see getsentry/sentry-java#3637) * Adopts new Mask naming (see getsentry/sentry-java#3741) * Adds SentryReplayOptions parameter (see getsentry/sentry-java#3749) --------- Co-authored-by: GitHub <[email protected]> Co-authored-by: Antonis Lilis <[email protected]>
1 parent e540498 commit c773341

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
- Bump Cocoa SDK from v8.36.0 to v8.37.0 ([#4156](https://github.com/getsentry/sentry-react-native/pull/4156))
1616
- [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#8370)
1717
- [diff](https://github.com/getsentry/sentry-cocoa/compare/8.36.0...8.37.0)
18+
- Bump Android SDK from v7.14.0 to v7.15.0 ([#4161](https://github.com/getsentry/sentry-react-native/pull/4161))
19+
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#7150)
20+
- [diff](https://github.com/getsentry/sentry-java/compare/7.14.0...7.15.0)
1821

1922
## 5.33.2
2023

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,5 @@ android {
5454

5555
dependencies {
5656
implementation 'com.facebook.react:react-native:+'
57-
api 'io.sentry:sentry-android:7.14.0'
57+
api 'io.sentry:sentry-android:7.15.0'
5858
}

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ public void initNativeSdk(final ReadableMap rnOptions, Promise promise) {
304304
}
305305

306306
private SentryReplayOptions getReplayOptions(@NotNull ReadableMap rnOptions) {
307-
@NotNull final SentryReplayOptions androidReplayOptions = new SentryReplayOptions();
307+
@NotNull final SentryReplayOptions androidReplayOptions = new SentryReplayOptions(false);
308308

309309
@Nullable final ReadableMap rnExperimentsOptions = rnOptions.getMap("_experiments");
310310
if (rnExperimentsOptions == null) {
@@ -317,7 +317,7 @@ private SentryReplayOptions getReplayOptions(@NotNull ReadableMap rnOptions) {
317317

318318
androidReplayOptions.setSessionSampleRate(rnExperimentsOptions.hasKey("replaysSessionSampleRate")
319319
? rnExperimentsOptions.getDouble("replaysSessionSampleRate") : null);
320-
androidReplayOptions.setErrorSampleRate(rnExperimentsOptions.hasKey("replaysOnErrorSampleRate")
320+
androidReplayOptions.setOnErrorSampleRate(rnExperimentsOptions.hasKey("replaysOnErrorSampleRate")
321321
? rnExperimentsOptions.getDouble("replaysOnErrorSampleRate") : null);
322322

323323
if (!rnOptions.hasKey("mobileReplayOptions")) {
@@ -328,12 +328,12 @@ private SentryReplayOptions getReplayOptions(@NotNull ReadableMap rnOptions) {
328328
return androidReplayOptions;
329329
}
330330

331-
androidReplayOptions.setRedactAllText(!rnMobileReplayOptions.hasKey("maskAllText") || rnMobileReplayOptions.getBoolean("maskAllText"));
332-
androidReplayOptions.setRedactAllImages(!rnMobileReplayOptions.hasKey("maskAllImages") || rnMobileReplayOptions.getBoolean("maskAllImages"));
331+
androidReplayOptions.setMaskAllText(!rnMobileReplayOptions.hasKey("maskAllText") || rnMobileReplayOptions.getBoolean("maskAllText"));
332+
androidReplayOptions.setMaskAllImages(!rnMobileReplayOptions.hasKey("maskAllImages") || rnMobileReplayOptions.getBoolean("maskAllImages"));
333333

334334
final boolean redactVectors = !rnMobileReplayOptions.hasKey("maskAllVectors") || rnMobileReplayOptions.getBoolean("maskAllVectors");
335335
if (redactVectors) {
336-
androidReplayOptions.addClassToRedact("com.horcrux.svg.SvgView"); // react-native-svg
336+
androidReplayOptions.addMaskViewClass("com.horcrux.svg.SvgView"); // react-native-svg
337337
}
338338

339339
return androidReplayOptions;

0 commit comments

Comments
 (0)