@sentry/react-native 7.4.0 → 7.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/RNSentry.podspec +2 -2
- package/android/build.gradle +1 -1
- package/android/libs/replay-stubs.jar +0 -0
- package/android/replay-stubs/build.gradle +1 -1
- package/android/src/main/java/io/sentry/react/RNSentryModuleImpl.java +70 -13
- package/android/src/main/java/io/sentry/react/RNSentryVersion.java +1 -1
- package/android/src/main/java/io/sentry/react/replay/RNSentryReplayFragmentLifecycleTracer.java +137 -0
- package/dist/js/NativeRNSentry.d.ts +0 -1
- package/dist/js/NativeRNSentry.d.ts.map +1 -1
- package/dist/js/NativeRNSentry.js.map +1 -1
- package/dist/js/RNSentryReplayMaskNativeComponent.js +1 -1
- package/dist/js/RNSentryReplayMaskNativeComponent.js.map +1 -1
- package/dist/js/RNSentryReplayUnmaskNativeComponent.js +1 -1
- package/dist/js/RNSentryReplayUnmaskNativeComponent.js.map +1 -1
- package/dist/js/integrations/exports.d.ts +2 -0
- package/dist/js/integrations/exports.d.ts.map +1 -1
- package/dist/js/integrations/exports.js +2 -0
- package/dist/js/integrations/exports.js.map +1 -1
- package/dist/js/integrations/graphql.d.ts +11 -0
- package/dist/js/integrations/graphql.d.ts.map +1 -0
- package/dist/js/integrations/graphql.js +9 -0
- package/dist/js/integrations/graphql.js.map +1 -0
- package/dist/js/integrations/supabase.d.ts +12 -0
- package/dist/js/integrations/supabase.d.ts.map +1 -0
- package/dist/js/integrations/supabase.js +10 -0
- package/dist/js/integrations/supabase.js.map +1 -0
- package/dist/js/options.d.ts +12 -1
- package/dist/js/options.d.ts.map +1 -1
- package/dist/js/options.js.map +1 -1
- package/dist/js/replay/mobilereplay.d.ts +22 -0
- package/dist/js/replay/mobilereplay.d.ts.map +1 -1
- package/dist/js/replay/mobilereplay.js +1 -0
- package/dist/js/replay/mobilereplay.js.map +1 -1
- package/dist/js/replay/networkUtils.d.ts +0 -1
- package/dist/js/replay/networkUtils.d.ts.map +1 -1
- package/dist/js/tools/sentryMetroSerializer.d.ts.map +1 -1
- package/dist/js/tools/sentryMetroSerializer.js +12 -2
- package/dist/js/tools/sentryMetroSerializer.js.map +1 -1
- package/dist/js/tracing/timetodisplaynative.types.d.ts +0 -1
- package/dist/js/tracing/timetodisplaynative.types.d.ts.map +1 -1
- package/dist/js/vendor/react-native/index.d.ts +0 -1
- package/dist/js/vendor/react-native/index.d.ts.map +1 -1
- package/dist/js/version.d.ts +1 -1
- package/dist/js/version.js +1 -1
- package/dist/js/version.js.map +1 -1
- package/dist/js/wrapper.d.ts.map +1 -1
- package/dist/js/wrapper.js +2 -3
- package/dist/js/wrapper.js.map +1 -1
- package/ios/RNSentry+fetchNativeStack.m +0 -10
- package/ios/RNSentry.h +1 -3
- package/ios/RNSentry.mm +81 -161
- package/ios/RNSentryDependencyContainer.m +1 -1
- package/ios/RNSentryOnDrawReporter.m +1 -2
- package/ios/RNSentryVersion.m +1 -1
- package/ios/SentrySDKWrapper.h +16 -0
- package/ios/SentrySDKWrapper.m +135 -0
- package/package.json +19 -17
- package/plugin/build/withSentryAndroidGradlePlugin.d.ts +1 -1
- package/plugin/build/withSentryAndroidGradlePlugin.js +1 -1
- package/src/js/NativeRNSentry.ts +0 -1
- package/src/js/RNSentryReplayMaskNativeComponent.ts +1 -1
- package/src/js/RNSentryReplayUnmaskNativeComponent.ts +1 -1
- package/ts3.8/dist/js/NativeRNSentry.d.ts +0 -1
- package/ts3.8/dist/js/integrations/exports.d.ts +2 -0
- package/ts3.8/dist/js/integrations/graphql.d.ts +11 -0
- package/ts3.8/dist/js/integrations/supabase.d.ts +12 -0
- package/ts3.8/dist/js/options.d.ts +12 -1
- package/ts3.8/dist/js/replay/mobilereplay.d.ts +22 -0
- package/ts3.8/dist/js/replay/networkUtils.d.ts +0 -1
- package/ts3.8/dist/js/tracing/timetodisplaynative.types.d.ts +0 -1
- package/ts3.8/dist/js/vendor/react-native/index.d.ts +0 -1
- package/ts3.8/dist/js/version.d.ts +1 -1
package/README.md
CHANGED
|
@@ -12,6 +12,7 @@ _Bad software is everywhere, and we're tired of it. Sentry is on a mission to he
|
|
|
12
12
|
[](https://www.npmjs.com/package/@sentry/react-native)
|
|
13
13
|
[](https://www.npmjs.com/package/@sentry/react-native)
|
|
14
14
|
[](https://www.npmjs.com/package/@sentry/react-native)
|
|
15
|
+
[](https://x.com/intent/follow?screen_name=sentry)
|
|
15
16
|
[](https://discord.gg/PXa5Apfe7K)
|
|
16
17
|
[](https://expo.dev/)
|
|
17
18
|
|
|
@@ -94,4 +95,4 @@ If you are coming from `react-native-sentry` which was our SDK `< 1.0` you shoul
|
|
|
94
95
|
- [](https://discord.gg/PXa5Apfe7K)
|
|
95
96
|
- [](http://stackoverflow.com/questions/tagged/sentry)
|
|
96
97
|
- [](https://github.com/getsentry/.github/blob/main/CODE_OF_CONDUCT.md)
|
|
97
|
-
- [](https://x.com/intent/follow?screen_name=sentry)
|
package/RNSentry.podspec
CHANGED
|
@@ -34,7 +34,7 @@ Pod::Spec.new do |s|
|
|
|
34
34
|
s.homepage = "https://github.com/getsentry/sentry-react-native"
|
|
35
35
|
s.source = { :git => 'https://github.com/getsentry/sentry-react-native.git', :tag => "#{s.version}"}
|
|
36
36
|
|
|
37
|
-
s.ios.deployment_target = "
|
|
37
|
+
s.ios.deployment_target = "12.0"
|
|
38
38
|
s.osx.deployment_target = "10.13"
|
|
39
39
|
s.tvos.deployment_target = "11.0"
|
|
40
40
|
s.visionos.deployment_target = "1.0" if s.respond_to?(:visionos)
|
|
@@ -46,7 +46,7 @@ Pod::Spec.new do |s|
|
|
|
46
46
|
|
|
47
47
|
s.compiler_flags = other_cflags
|
|
48
48
|
|
|
49
|
-
s.dependency 'Sentry/HybridSDK', '8.57.
|
|
49
|
+
s.dependency 'Sentry/HybridSDK', '8.57.2'
|
|
50
50
|
|
|
51
51
|
if defined? install_modules_dependencies
|
|
52
52
|
# Default React Native dependencies for 0.71 and above (new and legacy architecture)
|
package/android/build.gradle
CHANGED
|
Binary file
|
|
@@ -37,6 +37,7 @@ import io.sentry.ISentryExecutorService;
|
|
|
37
37
|
import io.sentry.ISerializer;
|
|
38
38
|
import io.sentry.Integration;
|
|
39
39
|
import io.sentry.ScopesAdapter;
|
|
40
|
+
import io.sentry.ScreenshotStrategyType;
|
|
40
41
|
import io.sentry.Sentry;
|
|
41
42
|
import io.sentry.SentryDate;
|
|
42
43
|
import io.sentry.SentryDateProvider;
|
|
@@ -62,11 +63,13 @@ import io.sentry.android.core.ViewHierarchyEventProcessor;
|
|
|
62
63
|
import io.sentry.android.core.internal.debugmeta.AssetsDebugMetaLoader;
|
|
63
64
|
import io.sentry.android.core.internal.util.SentryFrameMetricsCollector;
|
|
64
65
|
import io.sentry.android.core.performance.AppStartMetrics;
|
|
66
|
+
import io.sentry.protocol.Geo;
|
|
65
67
|
import io.sentry.protocol.SdkVersion;
|
|
66
68
|
import io.sentry.protocol.SentryId;
|
|
67
69
|
import io.sentry.protocol.SentryPackage;
|
|
68
70
|
import io.sentry.protocol.User;
|
|
69
71
|
import io.sentry.protocol.ViewHierarchy;
|
|
72
|
+
import io.sentry.react.replay.RNSentryReplayFragmentLifecycleTracer;
|
|
70
73
|
import io.sentry.react.replay.RNSentryReplayMask;
|
|
71
74
|
import io.sentry.react.replay.RNSentryReplayUnmask;
|
|
72
75
|
import io.sentry.util.DebugMetaPropertiesApplier;
|
|
@@ -181,6 +184,23 @@ public class RNSentryModuleImpl {
|
|
|
181
184
|
}
|
|
182
185
|
}
|
|
183
186
|
|
|
187
|
+
private void initFragmentReplayTracking() {
|
|
188
|
+
final RNSentryReplayFragmentLifecycleTracer fragmentLifecycleTracer =
|
|
189
|
+
new RNSentryReplayFragmentLifecycleTracer(logger);
|
|
190
|
+
|
|
191
|
+
final @Nullable Activity currentActivity = getCurrentActivity();
|
|
192
|
+
if (!(currentActivity instanceof FragmentActivity)) {
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
final @NotNull FragmentActivity fragmentActivity = (FragmentActivity) currentActivity;
|
|
197
|
+
final @Nullable FragmentManager supportFragmentManager =
|
|
198
|
+
fragmentActivity.getSupportFragmentManager();
|
|
199
|
+
if (supportFragmentManager != null) {
|
|
200
|
+
supportFragmentManager.registerFragmentLifecycleCallbacks(fragmentLifecycleTracer, true);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
184
204
|
public void initNativeReactNavigationNewFrameTracking(Promise promise) {
|
|
185
205
|
this.initFragmentInitialFrameTracking();
|
|
186
206
|
}
|
|
@@ -222,6 +242,9 @@ public class RNSentryModuleImpl {
|
|
|
222
242
|
if (rnOptions.hasKey("debug") && rnOptions.getBoolean("debug")) {
|
|
223
243
|
options.setDebug(true);
|
|
224
244
|
}
|
|
245
|
+
if (rnOptions.hasKey("enabled")) {
|
|
246
|
+
options.setEnabled(rnOptions.getBoolean("enabled"));
|
|
247
|
+
}
|
|
225
248
|
if (rnOptions.hasKey("dsn") && rnOptions.getString("dsn") != null) {
|
|
226
249
|
String dsn = rnOptions.getString("dsn");
|
|
227
250
|
logger.log(SentryLevel.INFO, String.format("Starting with DSN: '%s'", dsn));
|
|
@@ -307,6 +330,7 @@ public class RNSentryModuleImpl {
|
|
|
307
330
|
loadClass.isClassAvailable("io.sentry.android.replay.ReplayIntegration", logger);
|
|
308
331
|
if (isReplayEnabled(replayOptions) && isReplayAvailable) {
|
|
309
332
|
options.getReplayController().setBreadcrumbConverter(new RNSentryReplayBreadcrumbConverter());
|
|
333
|
+
initFragmentReplayTracking();
|
|
310
334
|
}
|
|
311
335
|
|
|
312
336
|
// Exclude Dev Server and Sentry Dsn request from Breadcrumbs
|
|
@@ -415,30 +439,46 @@ public class RNSentryModuleImpl {
|
|
|
415
439
|
androidReplayOptions.addMaskViewClass("com.horcrux.svg.SvgView"); // react-native-svg
|
|
416
440
|
}
|
|
417
441
|
|
|
442
|
+
if (rnMobileReplayOptions.hasKey("screenshotStrategy")) {
|
|
443
|
+
final String screenshotStrategyString = rnMobileReplayOptions.getString("screenshotStrategy");
|
|
444
|
+
final ScreenshotStrategyType screenshotStrategy =
|
|
445
|
+
parseScreenshotStrategy(screenshotStrategyString);
|
|
446
|
+
androidReplayOptions.setScreenshotStrategy(screenshotStrategy);
|
|
447
|
+
}
|
|
448
|
+
|
|
418
449
|
androidReplayOptions.setMaskViewContainerClass(RNSentryReplayMask.class.getName());
|
|
419
450
|
androidReplayOptions.setUnmaskViewContainerClass(RNSentryReplayUnmask.class.getName());
|
|
420
451
|
|
|
421
452
|
return androidReplayOptions;
|
|
422
453
|
}
|
|
423
454
|
|
|
455
|
+
private ScreenshotStrategyType parseScreenshotStrategy(@Nullable String strategyString) {
|
|
456
|
+
if (strategyString == null) {
|
|
457
|
+
return ScreenshotStrategyType.PIXEL_COPY;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
switch (strategyString.toLowerCase(Locale.ROOT)) {
|
|
461
|
+
case "canvas":
|
|
462
|
+
return ScreenshotStrategyType.CANVAS;
|
|
463
|
+
default:
|
|
464
|
+
return ScreenshotStrategyType.PIXEL_COPY;
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
|
|
424
468
|
private SentryReplayQuality parseReplayQuality(@Nullable String qualityString) {
|
|
425
469
|
if (qualityString == null) {
|
|
426
470
|
return SentryReplayQuality.MEDIUM;
|
|
427
471
|
}
|
|
428
472
|
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
return SentryReplayQuality.MEDIUM;
|
|
439
|
-
}
|
|
440
|
-
} catch (Exception e) {
|
|
441
|
-
return SentryReplayQuality.MEDIUM;
|
|
473
|
+
switch (qualityString.toLowerCase(Locale.ROOT)) {
|
|
474
|
+
case "low":
|
|
475
|
+
return SentryReplayQuality.LOW;
|
|
476
|
+
case "medium":
|
|
477
|
+
return SentryReplayQuality.MEDIUM;
|
|
478
|
+
case "high":
|
|
479
|
+
return SentryReplayQuality.HIGH;
|
|
480
|
+
default:
|
|
481
|
+
return SentryReplayQuality.MEDIUM;
|
|
442
482
|
}
|
|
443
483
|
}
|
|
444
484
|
|
|
@@ -722,6 +762,23 @@ public class RNSentryModuleImpl {
|
|
|
722
762
|
if (userKeys.hasKey("ip_address")) {
|
|
723
763
|
userInstance.setIpAddress(userKeys.getString("ip_address"));
|
|
724
764
|
}
|
|
765
|
+
|
|
766
|
+
if (userKeys.hasKey("geo")) {
|
|
767
|
+
ReadableMap geoMap = userKeys.getMap("geo");
|
|
768
|
+
if (geoMap != null) {
|
|
769
|
+
Geo geoData = new Geo();
|
|
770
|
+
if (geoMap.hasKey("city")) {
|
|
771
|
+
geoData.setCity(geoMap.getString("city"));
|
|
772
|
+
}
|
|
773
|
+
if (geoMap.hasKey("country_code")) {
|
|
774
|
+
geoData.setCountryCode(geoMap.getString("country_code"));
|
|
775
|
+
}
|
|
776
|
+
if (geoMap.hasKey("region")) {
|
|
777
|
+
geoData.setRegion(geoMap.getString("region"));
|
|
778
|
+
}
|
|
779
|
+
userInstance.setGeo(geoData);
|
|
780
|
+
}
|
|
781
|
+
}
|
|
725
782
|
}
|
|
726
783
|
|
|
727
784
|
if (userDataKeys != null) {
|
|
@@ -2,7 +2,7 @@ package io.sentry.react;
|
|
|
2
2
|
|
|
3
3
|
class RNSentryVersion {
|
|
4
4
|
static final String REACT_NATIVE_SDK_PACKAGE_NAME = "npm:@sentry/react-native";
|
|
5
|
-
static final String REACT_NATIVE_SDK_PACKAGE_VERSION = "7.
|
|
5
|
+
static final String REACT_NATIVE_SDK_PACKAGE_VERSION = "7.6.0";
|
|
6
6
|
static final String NATIVE_SDK_NAME = "sentry.native.android.react-native";
|
|
7
7
|
static final String ANDROID_SDK_NAME = "sentry.java.android.react-native";
|
|
8
8
|
static final String REACT_NATIVE_SDK_NAME = "sentry.javascript.react-native";
|
package/android/src/main/java/io/sentry/react/replay/RNSentryReplayFragmentLifecycleTracer.java
ADDED
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
package io.sentry.react.replay;
|
|
2
|
+
|
|
3
|
+
import android.os.Bundle;
|
|
4
|
+
import android.util.DisplayMetrics;
|
|
5
|
+
import android.view.View;
|
|
6
|
+
import android.view.ViewTreeObserver;
|
|
7
|
+
import androidx.annotation.NonNull;
|
|
8
|
+
import androidx.fragment.app.Fragment;
|
|
9
|
+
import androidx.fragment.app.FragmentManager;
|
|
10
|
+
import androidx.fragment.app.FragmentManager.FragmentLifecycleCallbacks;
|
|
11
|
+
import io.sentry.ILogger;
|
|
12
|
+
import io.sentry.ReplayController;
|
|
13
|
+
import io.sentry.ScopesAdapter;
|
|
14
|
+
import io.sentry.SentryLevel;
|
|
15
|
+
import io.sentry.android.replay.ReplayIntegration;
|
|
16
|
+
import java.lang.ref.WeakReference;
|
|
17
|
+
import org.jetbrains.annotations.NotNull;
|
|
18
|
+
import org.jetbrains.annotations.Nullable;
|
|
19
|
+
|
|
20
|
+
public class RNSentryReplayFragmentLifecycleTracer extends FragmentLifecycleCallbacks {
|
|
21
|
+
private @NotNull final ILogger logger;
|
|
22
|
+
|
|
23
|
+
private @Nullable ReplayIntegration replayIntegration;
|
|
24
|
+
|
|
25
|
+
private int lastWidth = -1;
|
|
26
|
+
private int lastHeight = -1;
|
|
27
|
+
|
|
28
|
+
private @Nullable WeakReference<View> currentViewRef;
|
|
29
|
+
private @Nullable ViewTreeObserver.OnGlobalLayoutListener currentListener;
|
|
30
|
+
|
|
31
|
+
public RNSentryReplayFragmentLifecycleTracer(@NotNull ILogger logger) {
|
|
32
|
+
this.logger = logger;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@Override
|
|
36
|
+
public void onFragmentViewCreated(
|
|
37
|
+
@NotNull FragmentManager fm,
|
|
38
|
+
@NotNull Fragment f,
|
|
39
|
+
@NotNull View v,
|
|
40
|
+
@Nullable Bundle savedInstanceState) {
|
|
41
|
+
// Add layout listener to detect configuration changes after detaching any previous one
|
|
42
|
+
detachLayoutChangeListener();
|
|
43
|
+
attachLayoutChangeListener(v);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@Override
|
|
47
|
+
public void onFragmentViewDestroyed(@NonNull FragmentManager fm, @NonNull Fragment f) {
|
|
48
|
+
detachLayoutChangeListener();
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
private void attachLayoutChangeListener(final View view) {
|
|
52
|
+
final WeakReference<View> weakView = new WeakReference<>(view);
|
|
53
|
+
|
|
54
|
+
final ViewTreeObserver.OnGlobalLayoutListener listener =
|
|
55
|
+
new ViewTreeObserver.OnGlobalLayoutListener() {
|
|
56
|
+
@Override
|
|
57
|
+
public void onGlobalLayout() {
|
|
58
|
+
final View v = weakView.get();
|
|
59
|
+
if (v != null) {
|
|
60
|
+
checkAndNotifyWindowSizeChange(v);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
currentViewRef = new WeakReference<>(view);
|
|
66
|
+
currentListener = listener;
|
|
67
|
+
|
|
68
|
+
view.getViewTreeObserver().addOnGlobalLayoutListener(listener);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
private void detachLayoutChangeListener() {
|
|
72
|
+
final View view = currentViewRef != null ? currentViewRef.get() : null;
|
|
73
|
+
if (view != null && currentListener != null) {
|
|
74
|
+
try {
|
|
75
|
+
ViewTreeObserver observer = view.getViewTreeObserver();
|
|
76
|
+
if (observer != null) {
|
|
77
|
+
observer.removeOnGlobalLayoutListener(currentListener);
|
|
78
|
+
}
|
|
79
|
+
} catch (Exception e) {
|
|
80
|
+
logger.log(SentryLevel.DEBUG, "Failed to remove layout change listener", e);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
currentViewRef = null;
|
|
85
|
+
currentListener = null;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
private void checkAndNotifyWindowSizeChange(View view) {
|
|
89
|
+
try {
|
|
90
|
+
DisplayMetrics metrics = view.getContext().getResources().getDisplayMetrics();
|
|
91
|
+
int currentWidth = metrics.widthPixels;
|
|
92
|
+
int currentHeight = metrics.heightPixels;
|
|
93
|
+
|
|
94
|
+
if (lastWidth == currentWidth && lastHeight == currentHeight) {
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
lastWidth = currentWidth;
|
|
98
|
+
lastHeight = currentHeight;
|
|
99
|
+
|
|
100
|
+
notifyReplayIntegrationOfSizeChange(currentWidth, currentHeight);
|
|
101
|
+
} catch (Exception e) {
|
|
102
|
+
logger.log(SentryLevel.DEBUG, "Failed to check window size", e);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
private void notifyReplayIntegrationOfSizeChange(int width, int height) {
|
|
107
|
+
if (replayIntegration == null) {
|
|
108
|
+
replayIntegration = getReplayIntegration();
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
if (replayIntegration == null) {
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
try {
|
|
116
|
+
replayIntegration.onWindowSizeChanged(width, height);
|
|
117
|
+
} catch (Exception e) {
|
|
118
|
+
logger.log(SentryLevel.DEBUG, "Failed to notify replay integration of size change", e);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
private @Nullable ReplayIntegration getReplayIntegration() {
|
|
123
|
+
try {
|
|
124
|
+
final ReplayController replayController =
|
|
125
|
+
ScopesAdapter.getInstance().getOptions().getReplayController();
|
|
126
|
+
|
|
127
|
+
if (replayController instanceof ReplayIntegration) {
|
|
128
|
+
return (ReplayIntegration) replayController;
|
|
129
|
+
} else {
|
|
130
|
+
logger.log(SentryLevel.DEBUG, "Error getting replay integration");
|
|
131
|
+
}
|
|
132
|
+
} catch (Exception e) {
|
|
133
|
+
logger.log(SentryLevel.DEBUG, "Error getting replay integration", e);
|
|
134
|
+
}
|
|
135
|
+
return null;
|
|
136
|
+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AAE,MAAM,EAAE,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE;QACZ,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAChC,EAAE,CAAC;CACL,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;;AAGF,wBAAkE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeRNSentry.js","sourceRoot":"","sources":["../../src/js/NativeRNSentry.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"NativeRNSentry.js","sourceRoot":"","sources":["../../src/js/NativeRNSentry.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AA6JnD,2DAA2D;AAC3D,eAAe,mBAAmB,CAAC,YAAY,CAAO,UAAU,CAAC,CAAC","sourcesContent":["import type { Package } from '@sentry/core';\nimport type { TurboModule } from 'react-native';\nimport { TurboModuleRegistry } from 'react-native';\nimport type { UnsafeObject } from './utils/rnlibrariesinterface';\n\n// There has to be only one interface and it has to be named `Spec`\n// Only extra allowed definitions are types (probably codegen bug)\nexport interface Spec extends TurboModule {\n addListener: (eventType: string) => void;\n removeListeners: (id: number) => void;\n getNewScreenTimeToDisplay(): Promise<number | undefined | null>;\n addBreadcrumb(breadcrumb: UnsafeObject): void;\n captureEnvelope(\n bytes: string,\n options: {\n hardCrashed: boolean;\n },\n ): Promise<boolean>;\n captureScreenshot(): Promise<NativeScreenshot[] | undefined | null>;\n clearBreadcrumbs(): void;\n crash(): void;\n closeNativeSdk(): Promise<void>;\n disableNativeFramesTracking(): void;\n fetchNativeRelease(): Promise<NativeReleaseResponse>;\n fetchNativeSdkInfo(): Promise<Package | null>;\n fetchNativeDeviceContexts(): Promise<NativeDeviceContextsResponse | null>;\n fetchNativeLogAttributes(): Promise<NativeDeviceContextsResponse | null>;\n fetchNativeAppStart(): Promise<NativeAppStartResponse | null>;\n fetchNativeFrames(): Promise<NativeFramesResponse | null>;\n initNativeSdk(options: UnsafeObject): Promise<boolean>;\n setUser(defaultUserKeys: UnsafeObject | null, otherUserKeys: UnsafeObject | null): void;\n setContext(key: string, value: UnsafeObject | null): void;\n setExtra(key: string, value: string): void;\n setTag(key: string, value: string): void;\n enableNativeFramesTracking(): void;\n fetchModules(): Promise<string | undefined | null>;\n fetchViewHierarchy(): Promise<number[] | undefined | null>;\n startProfiling(platformProfilers: boolean): { started?: boolean; error?: string };\n stopProfiling(): {\n profile?: string;\n nativeProfile?: UnsafeObject;\n androidProfile?: UnsafeObject;\n error?: string;\n };\n fetchNativePackageName(): string | undefined | null;\n fetchNativeStackFramesBy(instructionsAddr: number[]): NativeStackFrames | undefined | null;\n initNativeReactNavigationNewFrameTracking(): Promise<void>;\n captureReplay(isHardCrash: boolean): Promise<string | undefined | null>;\n getCurrentReplayId(): string | undefined | null;\n crashedLastRun(): Promise<boolean | undefined | null>;\n getDataFromUri(uri: string): Promise<number[]>;\n popTimeToDisplayFor(key: string): Promise<number | undefined | null>;\n setActiveSpanId(spanId: string): boolean;\n encodeToBase64(data: number[]): Promise<string | undefined | null>;\n}\n\nexport type NativeStackFrame = {\n platform: string;\n /**\n * The instruction address of this frame.\n * Formatted as hex with 0x prefix.\n */\n instruction_addr: string;\n package?: string;\n /**\n * The debug image address of this frame.\n * Formatted as hex with 0x prefix.\n */\n image_addr?: string;\n in_app?: boolean;\n /**\n * The symbol name of this frame.\n * If symbolicated locally.\n */\n function?: string;\n /**\n * The symbol address of this frame.\n * If symbolicated locally.\n * Formatted as hex with 0x prefix.\n */\n symbol_addr?: string;\n};\n\nexport type NativeDebugImage = {\n name?: string;\n type?: string;\n uuid?: string;\n debug_id?: string;\n image_addr?: string;\n image_size?: number;\n code_file?: string;\n image_vmaddr?: string;\n};\n\nexport type NativeStackFrames = {\n frames: NativeStackFrame[];\n debugMetaImages?: NativeDebugImage[];\n};\n\nexport type NativeAppStartResponse = {\n type: 'cold' | 'warm' | 'unknown';\n has_fetched: boolean;\n app_start_timestamp_ms?: number;\n spans: {\n description: string;\n start_timestamp_ms: number;\n end_timestamp_ms: number;\n }[];\n};\n\nexport type NativeFramesResponse = {\n totalFrames: number;\n slowFrames: number;\n frozenFrames: number;\n};\n\nexport type NativeReleaseResponse = {\n build: string;\n id: string;\n version: string;\n};\n\n/**\n * This type describes serialized scope from sentry-cocoa and sentry-android\n * https://github.com/getsentry/sentry-cocoa/blob/master/Sources/Sentry/SentryScope.m\n * https://github.com/getsentry/sentry-java/blob/a461f7e125b65240004e6162b341f383ce2e1394/sentry-android-core/src/main/java/io/sentry/android/core/InternalSentrySdk.java#L32\n */\nexport type NativeDeviceContextsResponse = {\n [key: string]: unknown;\n tags?: Record<string, string>;\n extra?: Record<string, unknown>;\n contexts?: Record<string, Record<string, unknown>>;\n user?: {\n userId?: string;\n email?: string;\n username?: string;\n ipAddress?: string;\n data?: Record<string, unknown>;\n };\n dist?: string;\n environment?: string;\n fingerprint?: string[];\n level?: string;\n breadcrumbs?: {\n level?: string;\n timestamp?: string;\n category?: string;\n type?: string;\n message?: string;\n data?: Record<string, unknown>;\n }[];\n};\n\nexport type NativeScreenshot = {\n data: number[];\n contentType: string;\n filename: string;\n};\n\n// The export must be here to pass codegen even if not used\nexport default TurboModuleRegistry.getEnforcing<Spec>('RNSentry');\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// The default export exists in the file but eslint doesn't see it
|
|
2
2
|
// eslint-disable-next-line import/default
|
|
3
|
-
import codegenNativeComponent from 'react-native
|
|
3
|
+
import { codegenNativeComponent } from 'react-native';
|
|
4
4
|
export default codegenNativeComponent('RNSentryReplayMask');
|
|
5
5
|
//# sourceMappingURL=RNSentryReplayMaskNativeComponent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RNSentryReplayMaskNativeComponent.js","sourceRoot":"","sources":["../../src/js/RNSentryReplayMaskNativeComponent.ts"],"names":[],"mappings":"AACA,kEAAkE;AAClE,0CAA0C;AAC1C,OAAO,sBAAsB,MAAM,
|
|
1
|
+
{"version":3,"file":"RNSentryReplayMaskNativeComponent.js","sourceRoot":"","sources":["../../src/js/RNSentryReplayMaskNativeComponent.ts"],"names":[],"mappings":"AACA,kEAAkE;AAClE,0CAA0C;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAMtD,eAAe,sBAAsB,CAAc,oBAAoB,CAA+B,CAAC","sourcesContent":["import type { HostComponent, ViewProps } from 'react-native';\n// The default export exists in the file but eslint doesn't see it\n// eslint-disable-next-line import/default\nimport { codegenNativeComponent } from 'react-native';\n\n// If changed to type NativeProps = ViewProps, react native codegen will fail finding the NativeProps type\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface NativeProps extends ViewProps {}\n\nexport default codegenNativeComponent<NativeProps>('RNSentryReplayMask') as HostComponent<NativeProps>;\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// The default export exists in the file but eslint doesn't see it
|
|
2
2
|
// eslint-disable-next-line import/default
|
|
3
|
-
import codegenNativeComponent from 'react-native
|
|
3
|
+
import { codegenNativeComponent } from 'react-native';
|
|
4
4
|
export default codegenNativeComponent('RNSentryReplayUnmask');
|
|
5
5
|
//# sourceMappingURL=RNSentryReplayUnmaskNativeComponent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RNSentryReplayUnmaskNativeComponent.js","sourceRoot":"","sources":["../../src/js/RNSentryReplayUnmaskNativeComponent.ts"],"names":[],"mappings":"AACA,kEAAkE;AAClE,0CAA0C;AAC1C,OAAO,sBAAsB,MAAM,
|
|
1
|
+
{"version":3,"file":"RNSentryReplayUnmaskNativeComponent.js","sourceRoot":"","sources":["../../src/js/RNSentryReplayUnmaskNativeComponent.ts"],"names":[],"mappings":"AACA,kEAAkE;AAClE,0CAA0C;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAMtD,eAAe,sBAAsB,CAAc,sBAAsB,CAA+B,CAAC","sourcesContent":["import type { HostComponent, ViewProps } from 'react-native';\n// The default export exists in the file but eslint doesn't see it\n// eslint-disable-next-line import/default\nimport { codegenNativeComponent } from 'react-native';\n\n// If changed to type NativeProps = ViewProps, react native codegen will fail finding the NativeProps type\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface NativeProps extends ViewProps {}\n\nexport default codegenNativeComponent<NativeProps>('RNSentryReplayUnmask') as HostComponent<NativeProps>;\n"]}
|
|
@@ -25,5 +25,7 @@ export { timeToDisplayIntegration } from '../tracing/integrations/timeToDisplayI
|
|
|
25
25
|
export { breadcrumbsIntegration } from './breadcrumbs';
|
|
26
26
|
export { primitiveTagIntegration } from './primitiveTagIntegration';
|
|
27
27
|
export { logEnricherIntegration } from './logEnricherIntegration';
|
|
28
|
+
export { graphqlIntegration } from './graphql';
|
|
29
|
+
export { supabaseIntegration } from './supabase';
|
|
28
30
|
export { browserApiErrorsIntegration, dedupeIntegration, functionToStringIntegration, globalHandlersIntegration as browserGlobalHandlersIntegration, httpClientIntegration, httpContextIntegration, inboundFiltersIntegration, linkedErrorsIntegration as browserLinkedErrorsIntegration, rewriteFramesIntegration, extraErrorDataIntegration, } from '@sentry/react';
|
|
29
31
|
//# sourceMappingURL=exports.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../../src/js/integrations/ex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,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAC/G,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AACrF,OAAO,EAAE,8BAA8B,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,wBAAwB,EAAE,MAAM,kDAAkD,CAAC;AAC5F,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,OAAO,EACL,2BAA2B,EAC3B,iBAAiB,EACjB,2BAA2B,EAC3B,yBAAyB,IAAI,gCAAgC,EAC7D,qBAAqB,EACrB,sBAAsB,EACtB,yBAAyB,EACzB,uBAAuB,IAAI,8BAA8B,EACzD,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,eAAe,CAAC"}
|
|
@@ -25,5 +25,7 @@ export { timeToDisplayIntegration } from '../tracing/integrations/timeToDisplayI
|
|
|
25
25
|
export { breadcrumbsIntegration } from './breadcrumbs';
|
|
26
26
|
export { primitiveTagIntegration } from './primitiveTagIntegration';
|
|
27
27
|
export { logEnricherIntegration } from './logEnricherIntegration';
|
|
28
|
+
export { graphqlIntegration } from './graphql';
|
|
29
|
+
export { supabaseIntegration } from './supabase';
|
|
28
30
|
export { browserApiErrorsIntegration, dedupeIntegration, functionToStringIntegration, globalHandlersIntegration as browserGlobalHandlersIntegration, httpClientIntegration, httpContextIntegration, inboundFiltersIntegration, linkedErrorsIntegration as browserLinkedErrorsIntegration, rewriteFramesIntegration, extraErrorDataIntegration, } from '@sentry/react';
|
|
29
31
|
//# sourceMappingURL=exports.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exports.js","sourceRoot":"","sources":["../../../src/js/integrations/exports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,mCAAmC,EAAE,MAAM,4BAA4B,CAAC;AACjF,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAC/G,OAAO,EAAE,wBAAwB,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B,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAC/G,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AACrF,OAAO,EAAE,8BAA8B,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,wBAAwB,EAAE,MAAM,kDAAkD,CAAC;AAC5F,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,OAAO,EACL,2BAA2B,EAC3B,iBAAiB,EACjB,2BAA2B,EAC3B,yBAAyB,IAAI,gCAAgC,EAC7D,qBAAqB,EACrB,sBAAsB,EACtB,yBAAyB,EACzB,uBAAuB,IAAI,8BAA8B,EACzD,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,eAAe,CAAC","sourcesContent":["export { debugSymbolicatorIntegration } from './debugsymbolicator';\nexport { deviceContextIntegration } from './devicecontext';\nexport { reactNativeErrorHandlersIntegration } from './reactnativeerrorhandlers';\nexport { nativeLinkedErrorsIntegration } from './nativelinkederrors';\nexport { nativeReleaseIntegration } from './release';\nexport { eventOriginIntegration } from './eventorigin';\nexport { sdkInfoIntegration } from './sdkinfo';\nexport { reactNativeInfoIntegration } from './reactnativeinfo';\nexport { modulesLoaderIntegration } from './modulesloader';\nexport { hermesProfilingIntegration } from '../profiling/integration';\nexport { screenshotIntegration } from './screenshot';\nexport { viewHierarchyIntegration } from './viewhierarchy';\nexport { expoContextIntegration } from './expocontext';\nexport { spotlightIntegration } from './spotlight';\nexport { mobileReplayIntegration } from '../replay/mobilereplay';\nexport { feedbackIntegration } from '../feedback/integration';\nexport { browserReplayIntegration } from '../replay/browserReplay';\nexport { appStartIntegration } from '../tracing/integrations/appStart';\nexport { nativeFramesIntegration, createNativeFramesIntegrations } from '../tracing/integrations/nativeFrames';\nexport { stallTrackingIntegration } from '../tracing/integrations/stalltracking';\nexport { userInteractionIntegration } from '../tracing/integrations/userInteraction';\nexport { createReactNativeRewriteFrames } from './rewriteframes';\nexport { appRegistryIntegration } from './appRegistry';\nexport { timeToDisplayIntegration } from '../tracing/integrations/timeToDisplayIntegration';\nexport { breadcrumbsIntegration } from './breadcrumbs';\nexport { primitiveTagIntegration } from './primitiveTagIntegration';\nexport { logEnricherIntegration } from './logEnricherIntegration';\nexport { graphqlIntegration } from './graphql';\nexport { supabaseIntegration } from './supabase';\n\nexport {\n browserApiErrorsIntegration,\n dedupeIntegration,\n functionToStringIntegration,\n globalHandlersIntegration as browserGlobalHandlersIntegration,\n httpClientIntegration,\n httpContextIntegration,\n inboundFiltersIntegration,\n linkedErrorsIntegration as browserLinkedErrorsIntegration,\n rewriteFramesIntegration,\n extraErrorDataIntegration,\n} from '@sentry/react';\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Integration } from '@sentry/core';
|
|
2
|
+
interface GraphQLReactNativeIntegrationOptions {
|
|
3
|
+
endpoints: Array<string | RegExp>;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* This integration ensures that GraphQL requests made in the React Native apps
|
|
7
|
+
* have their GraphQL-specific data captured and attached to spans and breadcrumbs.
|
|
8
|
+
*/
|
|
9
|
+
export declare function graphqlIntegration(options: GraphQLReactNativeIntegrationOptions): Integration;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=graphql.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../../../src/js/integrations/graphql.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,UAAU,oCAAoC;IAC5C,SAAS,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;CACnC;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,oCAAoC,GAAG,WAAW,CAE7F"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { graphqlClientIntegration as browserGraphqlClientIntegration } from '@sentry/browser';
|
|
2
|
+
/**
|
|
3
|
+
* This integration ensures that GraphQL requests made in the React Native apps
|
|
4
|
+
* have their GraphQL-specific data captured and attached to spans and breadcrumbs.
|
|
5
|
+
*/
|
|
6
|
+
export function graphqlIntegration(options) {
|
|
7
|
+
return browserGraphqlClientIntegration({ endpoints: options.endpoints });
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=graphql.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graphql.js","sourceRoot":"","sources":["../../../src/js/integrations/graphql.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,IAAI,+BAA+B,EAAE,MAAM,iBAAiB,CAAC;AAO9F;;;GAGG;AACH,MAAM,UAAU,kBAAkB,CAAC,OAA6C;IAC9E,OAAO,+BAA+B,CAAC,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC;AAC3E,CAAC","sourcesContent":["import { graphqlClientIntegration as browserGraphqlClientIntegration } from '@sentry/browser';\nimport type { Integration } from '@sentry/core';\n\ninterface GraphQLReactNativeIntegrationOptions {\n endpoints: Array<string | RegExp>;\n}\n\n/**\n * This integration ensures that GraphQL requests made in the React Native apps\n * have their GraphQL-specific data captured and attached to spans and breadcrumbs.\n */\nexport function graphqlIntegration(options: GraphQLReactNativeIntegrationOptions): Integration {\n return browserGraphqlClientIntegration({ endpoints: options.endpoints });\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Integration } from '@sentry/core';
|
|
2
|
+
type SupabaseReactNativeIntegrationOptions = {
|
|
3
|
+
supabaseClient: unknown;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Use this integration to instrument your Supabase client.
|
|
7
|
+
*
|
|
8
|
+
* Learn more about Supabase at https://supabase.com
|
|
9
|
+
*/
|
|
10
|
+
export declare function supabaseIntegration(options: SupabaseReactNativeIntegrationOptions): Integration;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=supabase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"supabase.d.ts","sourceRoot":"","sources":["../../../src/js/integrations/supabase.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,KAAK,qCAAqC,GAAG;IAC3C,cAAc,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,qCAAqC,GAAG,WAAW,CAE/F"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { supabaseIntegration as browserSupabaseIntegration } from '@sentry/browser';
|
|
2
|
+
/**
|
|
3
|
+
* Use this integration to instrument your Supabase client.
|
|
4
|
+
*
|
|
5
|
+
* Learn more about Supabase at https://supabase.com
|
|
6
|
+
*/
|
|
7
|
+
export function supabaseIntegration(options) {
|
|
8
|
+
return browserSupabaseIntegration({ supabaseClient: options.supabaseClient });
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=supabase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"supabase.js","sourceRoot":"","sources":["../../../src/js/integrations/supabase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,IAAI,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAOpF;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CAAC,OAA8C;IAChF,OAAO,0BAA0B,CAAC,EAAE,cAAc,EAAE,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC;AAChF,CAAC","sourcesContent":["import { supabaseIntegration as browserSupabaseIntegration } from '@sentry/browser';\nimport type { Integration } from '@sentry/core';\n\ntype SupabaseReactNativeIntegrationOptions = {\n supabaseClient: unknown;\n};\n\n/**\n * Use this integration to instrument your Supabase client.\n *\n * Learn more about Supabase at https://supabase.com\n */\nexport function supabaseIntegration(options: SupabaseReactNativeIntegrationOptions): Integration {\n return browserSupabaseIntegration({ supabaseClient: options.supabaseClient });\n}\n"]}
|
package/dist/js/options.d.ts
CHANGED
|
@@ -41,13 +41,20 @@ export interface BaseReactNativeOptions {
|
|
|
41
41
|
/** Enable NDK on Android
|
|
42
42
|
*
|
|
43
43
|
* @default true
|
|
44
|
+
* @platform android
|
|
44
45
|
*/
|
|
45
46
|
enableNdk?: boolean;
|
|
46
47
|
/** Enable scope sync from Java to NDK on Android
|
|
47
48
|
* Only has an effect if `enableNdk` is `true`.
|
|
49
|
+
*
|
|
50
|
+
* @platform android
|
|
48
51
|
*/
|
|
49
52
|
enableNdkScopeSync?: boolean;
|
|
50
|
-
/**
|
|
53
|
+
/**
|
|
54
|
+
* When enabled, all the threads are automatically attached to all logged events on Android
|
|
55
|
+
*
|
|
56
|
+
* @platform android
|
|
57
|
+
*/
|
|
51
58
|
attachThreads?: boolean;
|
|
52
59
|
/**
|
|
53
60
|
* When enabled, certain personally identifiable information (PII) is added by active integrations.
|
|
@@ -72,6 +79,7 @@ export interface BaseReactNativeOptions {
|
|
|
72
79
|
* Renamed from `enableOutOfMemoryTracking` in v5.
|
|
73
80
|
*
|
|
74
81
|
* @default true
|
|
82
|
+
* @platform ios
|
|
75
83
|
*/
|
|
76
84
|
enableWatchdogTerminationTracking?: boolean;
|
|
77
85
|
/**
|
|
@@ -102,6 +110,7 @@ export interface BaseReactNativeOptions {
|
|
|
102
110
|
* iOS only
|
|
103
111
|
*
|
|
104
112
|
* @default true
|
|
113
|
+
* @platform ios
|
|
105
114
|
*/
|
|
106
115
|
enableAppHangTracking?: boolean;
|
|
107
116
|
/**
|
|
@@ -113,6 +122,7 @@ export interface BaseReactNativeOptions {
|
|
|
113
122
|
* iOS only
|
|
114
123
|
*
|
|
115
124
|
* @default 2
|
|
125
|
+
* @platform ios
|
|
116
126
|
*/
|
|
117
127
|
appHangTimeoutInterval?: number;
|
|
118
128
|
/**
|
|
@@ -239,6 +249,7 @@ export interface BaseReactNativeOptions {
|
|
|
239
249
|
* - Note: The mechanism of hooking into `__cxa_throw` could cause issues with symbolication on iOS due to caching of symbol references.
|
|
240
250
|
*
|
|
241
251
|
* @default false
|
|
252
|
+
* @platform ios
|
|
242
253
|
*/
|
|
243
254
|
enableUnhandledCPPExceptionsV2?: boolean;
|
|
244
255
|
};
|
package/dist/js/options.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/js/options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC7F,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAG7D,KAAK,aAAa,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,CAAC;AAC3D,KAAK,uBAAuB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