@sentry/react-native 6.0.0-rc.1 → 6.0.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 +8 -0
- package/RNSentry.podspec +1 -1
- package/android/build.gradle +1 -1
- package/android/src/main/java/io/sentry/react/RNSentryBreadcrumb.java +63 -66
- package/android/src/main/java/io/sentry/react/RNSentryMapConverter.java +106 -110
- package/android/src/main/java/io/sentry/react/RNSentryModuleImpl.java +867 -811
- package/android/src/main/java/io/sentry/react/RNSentryOnDrawReporterManager.java +128 -121
- package/android/src/main/java/io/sentry/react/RNSentryPackage.java +8 -14
- package/android/src/main/java/io/sentry/react/RNSentryReactFragmentLifecycleTracer.java +76 -70
- package/android/src/main/java/io/sentry/react/RNSentryReplayBreadcrumbConverter.java +26 -31
- package/android/src/newarch/java/io/sentry/react/RNSentryModule.java +164 -165
- package/android/src/oldarch/java/io/sentry/react/RNSentryModule.java +164 -165
- package/dist/js/integrations/nativelinkederrors.js +7 -2
- package/dist/js/integrations/nativelinkederrors.js.map +1 -1
- package/dist/js/tracing/timetodisplay.d.ts.map +1 -1
- package/dist/js/tracing/timetodisplay.js +3 -1
- package/dist/js/tracing/timetodisplay.js.map +1 -1
- package/dist/js/version.d.ts +1 -1
- package/dist/js/version.d.ts.map +1 -1
- package/dist/js/version.js +1 -1
- package/dist/js/version.js.map +1 -1
- package/dist/js/wrapper.d.ts +1 -1
- package/dist/js/wrapper.d.ts.map +1 -1
- package/dist/js/wrapper.js +37 -5
- package/dist/js/wrapper.js.map +1 -1
- package/ios/RNSentry.mm +9 -1
- package/package.json +1 -1
- package/ts3.8/dist/js/version.d.ts +1 -1
- package/ts3.8/dist/js/wrapper.d.ts +1 -1
|
@@ -1,176 +1,175 @@
|
|
|
1
1
|
package io.sentry.react;
|
|
2
2
|
|
|
3
3
|
import androidx.annotation.NonNull;
|
|
4
|
-
|
|
4
|
+
import com.facebook.react.bridge.Promise;
|
|
5
5
|
import com.facebook.react.bridge.ReactApplicationContext;
|
|
6
6
|
import com.facebook.react.bridge.ReadableArray;
|
|
7
7
|
import com.facebook.react.bridge.ReadableMap;
|
|
8
|
-
import com.facebook.react.bridge.Promise;
|
|
9
8
|
import com.facebook.react.bridge.WritableMap;
|
|
10
9
|
|
|
11
10
|
public class RNSentryModule extends NativeRNSentrySpec {
|
|
12
11
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
12
|
+
private final RNSentryModuleImpl impl;
|
|
13
|
+
|
|
14
|
+
RNSentryModule(ReactApplicationContext reactContext) {
|
|
15
|
+
super(reactContext);
|
|
16
|
+
this.impl = new RNSentryModuleImpl(reactContext);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@Override
|
|
20
|
+
@NonNull
|
|
21
|
+
public String getName() {
|
|
22
|
+
return RNSentryModuleImpl.NAME;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@Override
|
|
26
|
+
public void addListener(String eventType) {
|
|
27
|
+
this.impl.addListener(eventType);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@Override
|
|
31
|
+
public void removeListeners(double id) {
|
|
32
|
+
this.impl.removeListeners(id);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@Override
|
|
36
|
+
public void initNativeReactNavigationNewFrameTracking(Promise promise) {
|
|
37
|
+
this.impl.initNativeReactNavigationNewFrameTracking(promise);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@Override
|
|
41
|
+
public void initNativeSdk(final ReadableMap rnOptions, Promise promise) {
|
|
42
|
+
this.impl.initNativeSdk(rnOptions, promise);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@Override
|
|
46
|
+
public void crash() {
|
|
47
|
+
this.impl.crash();
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@Override
|
|
51
|
+
public void fetchModules(Promise promise) {
|
|
52
|
+
this.impl.fetchModules(promise);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@Override
|
|
56
|
+
public void fetchNativeRelease(Promise promise) {
|
|
57
|
+
this.impl.fetchNativeRelease(promise);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@Override
|
|
61
|
+
public void fetchNativeAppStart(Promise promise) {
|
|
62
|
+
this.impl.fetchNativeAppStart(promise);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@Override
|
|
66
|
+
public void fetchNativeFrames(Promise promise) {
|
|
67
|
+
this.impl.fetchNativeFrames(promise);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@Override
|
|
71
|
+
public void captureEnvelope(String rawBytes, ReadableMap options, Promise promise) {
|
|
72
|
+
this.impl.captureEnvelope(rawBytes, options, promise);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@Override
|
|
76
|
+
public void captureScreenshot(Promise promise) {
|
|
77
|
+
this.impl.captureScreenshot(promise);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@Override
|
|
81
|
+
public void fetchViewHierarchy(Promise promise) {
|
|
82
|
+
this.impl.fetchViewHierarchy(promise);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@Override
|
|
86
|
+
public void setUser(final ReadableMap user, final ReadableMap otherUserKeys) {
|
|
87
|
+
this.impl.setUser(user, otherUserKeys);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
@Override
|
|
91
|
+
public void addBreadcrumb(final ReadableMap breadcrumb) {
|
|
92
|
+
this.impl.addBreadcrumb(breadcrumb);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@Override
|
|
96
|
+
public void clearBreadcrumbs() {
|
|
97
|
+
this.impl.clearBreadcrumbs();
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@Override
|
|
101
|
+
public void setExtra(String key, String extra) {
|
|
102
|
+
this.impl.setExtra(key, extra);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@Override
|
|
106
|
+
public void setContext(final String key, final ReadableMap context) {
|
|
107
|
+
this.impl.setContext(key, context);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@Override
|
|
111
|
+
public void setTag(String key, String value) {
|
|
112
|
+
this.impl.setTag(key, value);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
@Override
|
|
116
|
+
public void closeNativeSdk(Promise promise) {
|
|
117
|
+
this.impl.closeNativeSdk(promise);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
@Override
|
|
121
|
+
public void enableNativeFramesTracking() {
|
|
122
|
+
this.impl.enableNativeFramesTracking();
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
@Override
|
|
126
|
+
public void disableNativeFramesTracking() {
|
|
127
|
+
this.impl.disableNativeFramesTracking();
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
@Override
|
|
131
|
+
public void fetchNativeDeviceContexts(Promise promise) {
|
|
132
|
+
this.impl.fetchNativeDeviceContexts(promise);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
@Override
|
|
136
|
+
public void fetchNativeSdkInfo(Promise promise) {
|
|
137
|
+
this.impl.fetchNativeSdkInfo(promise);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
@Override
|
|
141
|
+
public WritableMap startProfiling(boolean platformProfilers) {
|
|
142
|
+
return this.impl.startProfiling(platformProfilers);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
@Override
|
|
146
|
+
public WritableMap stopProfiling() {
|
|
147
|
+
return this.impl.stopProfiling();
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
@Override
|
|
151
|
+
public String fetchNativePackageName() {
|
|
152
|
+
return this.impl.fetchNativePackageName();
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
@Override
|
|
156
|
+
public WritableMap fetchNativeStackFramesBy(ReadableArray instructionsAddr) {
|
|
157
|
+
// Not used on Android
|
|
158
|
+
return null;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
@Override
|
|
162
|
+
public void captureReplay(boolean isHardCrash, Promise promise) {
|
|
163
|
+
this.impl.captureReplay(isHardCrash, promise);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
@Override
|
|
167
|
+
public String getCurrentReplayId() {
|
|
168
|
+
return this.impl.getCurrentReplayId();
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
@Override
|
|
172
|
+
public void crashedLastRun(Promise promise) {
|
|
173
|
+
this.impl.crashedLastRun(promise);
|
|
174
|
+
}
|
|
176
175
|
}
|