@sentry/react-native 5.3.1 → 5.4.1

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.
Files changed (103) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/README.md +7 -8
  3. package/RNSentry.podspec +1 -1
  4. package/android/build.gradle +1 -1
  5. package/dist/js/NativeRNSentry.d.ts +1 -1
  6. package/dist/js/NativeRNSentry.d.ts.map +1 -1
  7. package/dist/js/NativeRNSentry.js.map +1 -1
  8. package/dist/js/breadcrumb.js +3 -3
  9. package/dist/js/breadcrumb.js.map +1 -1
  10. package/dist/js/client.d.ts.map +1 -1
  11. package/dist/js/client.js +4 -0
  12. package/dist/js/client.js.map +1 -1
  13. package/dist/js/integrations/sdkinfo.d.ts +1 -1
  14. package/dist/js/integrations/sdkinfo.d.ts.map +1 -1
  15. package/dist/js/integrations/sdkinfo.js +11 -8
  16. package/dist/js/integrations/sdkinfo.js.map +1 -1
  17. package/dist/js/options.js +1 -0
  18. package/dist/js/scope.d.ts.map +1 -1
  19. package/dist/js/scope.js +6 -3
  20. package/dist/js/scope.js.map +1 -1
  21. package/dist/js/sdk.d.ts +1 -1
  22. package/dist/js/sdk.d.ts.map +1 -1
  23. package/dist/js/sdk.js.map +1 -1
  24. package/dist/js/touchevents.d.ts +1 -1
  25. package/dist/js/touchevents.d.ts.map +1 -1
  26. package/dist/js/tracing/reactnativenavigation.d.ts +1 -1
  27. package/dist/js/tracing/reactnativenavigation.d.ts.map +1 -1
  28. package/dist/js/tracing/reactnativenavigation.js.map +1 -1
  29. package/dist/js/tracing/reactnativetracing.d.ts +1 -1
  30. package/dist/js/tracing/reactnativetracing.d.ts.map +1 -1
  31. package/dist/js/tracing/reactnativetracing.js +1 -2
  32. package/dist/js/tracing/reactnativetracing.js.map +1 -1
  33. package/dist/js/tracing/types.js +1 -0
  34. package/dist/js/tracing/utils.d.ts.map +1 -1
  35. package/dist/js/transports/TextEncoder.d.ts.map +1 -1
  36. package/dist/js/user.js +1 -0
  37. package/dist/js/utils/normalize.d.ts +5 -0
  38. package/dist/js/utils/normalize.d.ts.map +1 -0
  39. package/dist/js/utils/normalize.js +17 -0
  40. package/dist/js/utils/normalize.js.map +1 -0
  41. package/dist/js/version.d.ts +1 -1
  42. package/dist/js/version.js +1 -1
  43. package/dist/js/version.js.map +1 -1
  44. package/dist/js/wrapper.d.ts.map +1 -1
  45. package/dist/js/wrapper.js +9 -4
  46. package/dist/js/wrapper.js.map +1 -1
  47. package/ios/RNSentry.mm +26 -1
  48. package/ios/RNSentry.xcodeproj/project.pbxproj +472 -0
  49. package/package.json +23 -15
  50. package/sentry.gradle +4 -1
  51. package/src/js/NativeRNSentry.ts +1 -1
  52. package/ts3.8/dist/js/NativeRNSentry.d.ts +80 -0
  53. package/ts3.8/dist/js/breadcrumb.d.ts +11 -0
  54. package/ts3.8/dist/js/client.d.ts +59 -0
  55. package/ts3.8/dist/js/index.d.ts +13 -0
  56. package/ts3.8/dist/js/integrations/debugsymbolicator.d.ts +49 -0
  57. package/ts3.8/dist/js/integrations/devicecontext.d.ts +17 -0
  58. package/ts3.8/dist/js/integrations/eventorigin.d.ts +17 -0
  59. package/ts3.8/dist/js/integrations/factory.d.ts +7 -0
  60. package/ts3.8/dist/js/integrations/index.d.ts +9 -0
  61. package/ts3.8/dist/js/integrations/modulesloader.d.ts +17 -0
  62. package/ts3.8/dist/js/integrations/reactnativeerrorhandlers.d.ts +54 -0
  63. package/ts3.8/dist/js/integrations/reactnativeinfo.d.ts +23 -0
  64. package/ts3.8/dist/js/integrations/release.d.ts +17 -0
  65. package/ts3.8/dist/js/integrations/rewriteframes.d.ts +8 -0
  66. package/ts3.8/dist/js/integrations/screenshot.d.ts +23 -0
  67. package/ts3.8/dist/js/integrations/sdkinfo.d.ts +21 -0
  68. package/ts3.8/dist/js/integrations/viewhierarchy.d.ts +20 -0
  69. package/ts3.8/dist/js/measurements.d.ts +13 -0
  70. package/ts3.8/dist/js/misc.d.ts +9 -0
  71. package/ts3.8/dist/js/options.d.ts +152 -0
  72. package/ts3.8/dist/js/scope.d.ts +54 -0
  73. package/ts3.8/dist/js/sdk.d.ts +63 -0
  74. package/ts3.8/dist/js/touchevents.d.ts +71 -0
  75. package/ts3.8/dist/js/tracing/gesturetracing.d.ts +20 -0
  76. package/ts3.8/dist/js/tracing/index.d.ts +10 -0
  77. package/ts3.8/dist/js/tracing/nativeframes.d.ts +64 -0
  78. package/ts3.8/dist/js/tracing/ops.d.ts +8 -0
  79. package/ts3.8/dist/js/tracing/reactnativenavigation.d.ts +85 -0
  80. package/ts3.8/dist/js/tracing/reactnativeprofiler.d.ts +12 -0
  81. package/ts3.8/dist/js/tracing/reactnativetracing.d.ts +142 -0
  82. package/ts3.8/dist/js/tracing/reactnavigation.d.ts +83 -0
  83. package/ts3.8/dist/js/tracing/reactnavigationv4.d.ts +92 -0
  84. package/ts3.8/dist/js/tracing/routingInstrumentation.d.ts +52 -0
  85. package/ts3.8/dist/js/tracing/stalltracking.d.ts +94 -0
  86. package/ts3.8/dist/js/tracing/transaction.d.ts +7 -0
  87. package/ts3.8/dist/js/tracing/types.d.ts +29 -0
  88. package/ts3.8/dist/js/tracing/utils.d.ts +27 -0
  89. package/ts3.8/dist/js/transports/TextEncoder.d.ts +3 -0
  90. package/ts3.8/dist/js/transports/native.d.ts +39 -0
  91. package/ts3.8/dist/js/user.d.ts +6 -0
  92. package/ts3.8/dist/js/utils/envelope.d.ts +12 -0
  93. package/ts3.8/dist/js/utils/environment.d.ts +7 -0
  94. package/ts3.8/dist/js/utils/ignorerequirecyclelogs.d.ts +5 -0
  95. package/ts3.8/dist/js/utils/normalize.d.ts +5 -0
  96. package/ts3.8/dist/js/utils/outcome.d.ts +6 -0
  97. package/ts3.8/dist/js/utils/safe.d.ts +21 -0
  98. package/ts3.8/dist/js/utils/worldwide.d.ts +15 -0
  99. package/ts3.8/dist/js/vendor/buffer/index.d.ts +2 -0
  100. package/ts3.8/dist/js/vendor/buffer/utf8ToBytes.d.ts +5 -0
  101. package/ts3.8/dist/js/vendor/index.d.ts +2 -0
  102. package/ts3.8/dist/js/version.d.ts +4 -0
  103. package/ts3.8/dist/js/wrapper.d.ts +55 -0
@@ -0,0 +1,472 @@
1
+ // !$*UTF8*$!
2
+ {
3
+ archiveVersion = 1;
4
+ classes = {
5
+ };
6
+ objectVersion = 46;
7
+ objects = {
8
+
9
+ /* Begin PBXBuildFile section */
10
+ 274692BA21B4414400BF91A8 /* RNSentry.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* RNSentry.m */; };
11
+ 274692BD21B4414400BF91A8 /* libSentryStatic.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 6387B8561ED8520D0045A84C /* libSentryStatic.a */; };
12
+ 274692BF21B4414400BF91A8 /* RNSentry.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = B3E7B5881CC2AC0600A0062D /* RNSentry.h */; };
13
+ 6350257B1E1E845F00408AE7 /* RNSentry.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = B3E7B5881CC2AC0600A0062D /* RNSentry.h */; };
14
+ 6387B8591ED8521B0045A84C /* libSentryStatic.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 6387B8561ED8520D0045A84C /* libSentryStatic.a */; };
15
+ B3E7B58A1CC2AC0600A0062D /* RNSentry.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* RNSentry.m */; };
16
+ /* End PBXBuildFile section */
17
+
18
+ /* Begin PBXContainerItemProxy section */
19
+ 274692B821B4414400BF91A8 /* PBXContainerItemProxy */ = {
20
+ isa = PBXContainerItemProxy;
21
+ containerPortal = 6387B8441ED8520D0045A84C /* Sentry.xcodeproj */;
22
+ proxyType = 1;
23
+ remoteGlobalIDString = 6387B7C11ED84F910045A84C;
24
+ remoteInfo = SentryStatic;
25
+ };
26
+ 6387B84D1ED8520D0045A84C /* PBXContainerItemProxy */ = {
27
+ isa = PBXContainerItemProxy;
28
+ containerPortal = 6387B8441ED8520D0045A84C /* Sentry.xcodeproj */;
29
+ proxyType = 2;
30
+ remoteGlobalIDString = 63AA759B1EB8AEF500D153DE;
31
+ remoteInfo = Sentry;
32
+ };
33
+ 6387B84F1ED8520D0045A84C /* PBXContainerItemProxy */ = {
34
+ isa = PBXContainerItemProxy;
35
+ containerPortal = 6387B8441ED8520D0045A84C /* Sentry.xcodeproj */;
36
+ proxyType = 2;
37
+ remoteGlobalIDString = 63AA76651EB8CB2F00D153DE;
38
+ remoteInfo = SentryTests;
39
+ };
40
+ 6387B8551ED8520D0045A84C /* PBXContainerItemProxy */ = {
41
+ isa = PBXContainerItemProxy;
42
+ containerPortal = 6387B8441ED8520D0045A84C /* Sentry.xcodeproj */;
43
+ proxyType = 2;
44
+ remoteGlobalIDString = 6387B7C21ED84F910045A84C;
45
+ remoteInfo = SentryStatic;
46
+ };
47
+ 6387B8571ED852170045A84C /* PBXContainerItemProxy */ = {
48
+ isa = PBXContainerItemProxy;
49
+ containerPortal = 6387B8441ED8520D0045A84C /* Sentry.xcodeproj */;
50
+ proxyType = 1;
51
+ remoteGlobalIDString = 6387B7C11ED84F910045A84C;
52
+ remoteInfo = SentryStatic;
53
+ };
54
+ /* End PBXContainerItemProxy section */
55
+
56
+ /* Begin PBXCopyFilesBuildPhase section */
57
+ 274692BE21B4414400BF91A8 /* Copy Headers */ = {
58
+ isa = PBXCopyFilesBuildPhase;
59
+ buildActionMask = 2147483647;
60
+ dstPath = include/React;
61
+ dstSubfolderSpec = 16;
62
+ files = (
63
+ 274692BF21B4414400BF91A8 /* RNSentry.h in Copy Headers */,
64
+ );
65
+ name = "Copy Headers";
66
+ runOnlyForDeploymentPostprocessing = 0;
67
+ };
68
+ 6350257A1E1E845100408AE7 /* Copy Headers */ = {
69
+ isa = PBXCopyFilesBuildPhase;
70
+ buildActionMask = 2147483647;
71
+ dstPath = include/React;
72
+ dstSubfolderSpec = 16;
73
+ files = (
74
+ 6350257B1E1E845F00408AE7 /* RNSentry.h in Copy Headers */,
75
+ );
76
+ name = "Copy Headers";
77
+ runOnlyForDeploymentPostprocessing = 0;
78
+ };
79
+ /* End PBXCopyFilesBuildPhase section */
80
+
81
+ /* Begin PBXFileReference section */
82
+ 134814201AA4EA6300B7C361 /* libRNSentry.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNSentry.a; sourceTree = BUILT_PRODUCTS_DIR; };
83
+ 274692C321B4414400BF91A8 /* libRNSentry-tvOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libRNSentry-tvOS.a"; sourceTree = BUILT_PRODUCTS_DIR; };
84
+ 6387B7971ED84BA70045A84C /* libz.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libz.tbd; path = usr/lib/libz.tbd; sourceTree = SDKROOT; };
85
+ 6387B8441ED8520D0045A84C /* Sentry.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = Sentry.xcodeproj; path = Sentry/Sentry.xcodeproj; sourceTree = "<group>"; };
86
+ B3E7B5881CC2AC0600A0062D /* RNSentry.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNSentry.h; sourceTree = "<group>"; };
87
+ B3E7B5891CC2AC0600A0062D /* RNSentry.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNSentry.m; sourceTree = "<group>"; };
88
+ /* End PBXFileReference section */
89
+
90
+ /* Begin PBXFrameworksBuildPhase section */
91
+ 274692BC21B4414400BF91A8 /* Frameworks */ = {
92
+ isa = PBXFrameworksBuildPhase;
93
+ buildActionMask = 2147483647;
94
+ files = (
95
+ 274692BD21B4414400BF91A8 /* libSentryStatic.a in Frameworks */,
96
+ );
97
+ runOnlyForDeploymentPostprocessing = 0;
98
+ };
99
+ 58B511D81A9E6C8500147676 /* Frameworks */ = {
100
+ isa = PBXFrameworksBuildPhase;
101
+ buildActionMask = 2147483647;
102
+ files = (
103
+ 6387B8591ED8521B0045A84C /* libSentryStatic.a in Frameworks */,
104
+ );
105
+ runOnlyForDeploymentPostprocessing = 0;
106
+ };
107
+ /* End PBXFrameworksBuildPhase section */
108
+
109
+ /* Begin PBXGroup section */
110
+ 134814211AA4EA7D00B7C361 /* Products */ = {
111
+ isa = PBXGroup;
112
+ children = (
113
+ 134814201AA4EA6300B7C361 /* libRNSentry.a */,
114
+ 274692C321B4414400BF91A8 /* libRNSentry-tvOS.a */,
115
+ );
116
+ name = Products;
117
+ sourceTree = "<group>";
118
+ };
119
+ 58B511D21A9E6C8500147676 = {
120
+ isa = PBXGroup;
121
+ children = (
122
+ 632232581E76C45800F58A1F /* Libraries */,
123
+ B3E7B5881CC2AC0600A0062D /* RNSentry.h */,
124
+ B3E7B5891CC2AC0600A0062D /* RNSentry.m */,
125
+ 134814211AA4EA7D00B7C361 /* Products */,
126
+ 6387B7961ED84BA70045A84C /* Frameworks */,
127
+ );
128
+ sourceTree = "<group>";
129
+ };
130
+ 632232581E76C45800F58A1F /* Libraries */ = {
131
+ isa = PBXGroup;
132
+ children = (
133
+ 6387B8441ED8520D0045A84C /* Sentry.xcodeproj */,
134
+ );
135
+ name = Libraries;
136
+ sourceTree = "<group>";
137
+ };
138
+ 6387B7961ED84BA70045A84C /* Frameworks */ = {
139
+ isa = PBXGroup;
140
+ children = (
141
+ 6387B7971ED84BA70045A84C /* libz.tbd */,
142
+ );
143
+ name = Frameworks;
144
+ sourceTree = "<group>";
145
+ };
146
+ 6387B8451ED8520D0045A84C /* Products */ = {
147
+ isa = PBXGroup;
148
+ children = (
149
+ 6387B84E1ED8520D0045A84C /* Sentry.framework */,
150
+ 6387B8501ED8520D0045A84C /* SentryTests.xctest */,
151
+ 6387B8561ED8520D0045A84C /* libSentryStatic.a */,
152
+ );
153
+ name = Products;
154
+ sourceTree = "<group>";
155
+ };
156
+ /* End PBXGroup section */
157
+
158
+ /* Begin PBXNativeTarget section */
159
+ 274692B621B4414400BF91A8 /* RNSentry-tvOS */ = {
160
+ isa = PBXNativeTarget;
161
+ buildConfigurationList = 274692C021B4414400BF91A8 /* Build configuration list for PBXNativeTarget "RNSentry-tvOS" */;
162
+ buildPhases = (
163
+ 274692B921B4414400BF91A8 /* Sources */,
164
+ 274692BC21B4414400BF91A8 /* Frameworks */,
165
+ 274692BE21B4414400BF91A8 /* Copy Headers */,
166
+ );
167
+ buildRules = (
168
+ );
169
+ dependencies = (
170
+ 274692B721B4414400BF91A8 /* PBXTargetDependency */,
171
+ );
172
+ name = "RNSentry-tvOS";
173
+ productName = RCTDataManager;
174
+ productReference = 274692C321B4414400BF91A8 /* libRNSentry-tvOS.a */;
175
+ productType = "com.apple.product-type.library.static";
176
+ };
177
+ 58B511DA1A9E6C8500147676 /* RNSentry */ = {
178
+ isa = PBXNativeTarget;
179
+ buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNSentry" */;
180
+ buildPhases = (
181
+ 58B511D71A9E6C8500147676 /* Sources */,
182
+ 58B511D81A9E6C8500147676 /* Frameworks */,
183
+ 6350257A1E1E845100408AE7 /* Copy Headers */,
184
+ );
185
+ buildRules = (
186
+ );
187
+ dependencies = (
188
+ 6387B8581ED852170045A84C /* PBXTargetDependency */,
189
+ );
190
+ name = RNSentry;
191
+ productName = RCTDataManager;
192
+ productReference = 134814201AA4EA6300B7C361 /* libRNSentry.a */;
193
+ productType = "com.apple.product-type.library.static";
194
+ };
195
+ /* End PBXNativeTarget section */
196
+
197
+ /* Begin PBXProject section */
198
+ 58B511D31A9E6C8500147676 /* Project object */ = {
199
+ isa = PBXProject;
200
+ attributes = {
201
+ LastUpgradeCheck = 0610;
202
+ ORGANIZATIONNAME = Facebook;
203
+ TargetAttributes = {
204
+ 58B511DA1A9E6C8500147676 = {
205
+ CreatedOnToolsVersion = 6.1.1;
206
+ };
207
+ };
208
+ };
209
+ buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNSentry" */;
210
+ compatibilityVersion = "Xcode 3.2";
211
+ developmentRegion = English;
212
+ hasScannedForEncodings = 0;
213
+ knownRegions = (
214
+ English,
215
+ en,
216
+ );
217
+ mainGroup = 58B511D21A9E6C8500147676;
218
+ productRefGroup = 58B511D21A9E6C8500147676;
219
+ projectDirPath = "";
220
+ projectReferences = (
221
+ {
222
+ ProductGroup = 6387B8451ED8520D0045A84C /* Products */;
223
+ ProjectRef = 6387B8441ED8520D0045A84C /* Sentry.xcodeproj */;
224
+ },
225
+ );
226
+ projectRoot = "";
227
+ targets = (
228
+ 58B511DA1A9E6C8500147676 /* RNSentry */,
229
+ 274692B621B4414400BF91A8 /* RNSentry-tvOS */,
230
+ );
231
+ };
232
+ /* End PBXProject section */
233
+
234
+ /* Begin PBXReferenceProxy section */
235
+ 6387B84E1ED8520D0045A84C /* Sentry.framework */ = {
236
+ isa = PBXReferenceProxy;
237
+ fileType = wrapper.framework;
238
+ path = Sentry.framework;
239
+ remoteRef = 6387B84D1ED8520D0045A84C /* PBXContainerItemProxy */;
240
+ sourceTree = BUILT_PRODUCTS_DIR;
241
+ };
242
+ 6387B8501ED8520D0045A84C /* SentryTests.xctest */ = {
243
+ isa = PBXReferenceProxy;
244
+ fileType = wrapper.cfbundle;
245
+ path = SentryTests.xctest;
246
+ remoteRef = 6387B84F1ED8520D0045A84C /* PBXContainerItemProxy */;
247
+ sourceTree = BUILT_PRODUCTS_DIR;
248
+ };
249
+ 6387B8561ED8520D0045A84C /* libSentryStatic.a */ = {
250
+ isa = PBXReferenceProxy;
251
+ fileType = archive.ar;
252
+ path = libSentryStatic.a;
253
+ remoteRef = 6387B8551ED8520D0045A84C /* PBXContainerItemProxy */;
254
+ sourceTree = BUILT_PRODUCTS_DIR;
255
+ };
256
+ /* End PBXReferenceProxy section */
257
+
258
+ /* Begin PBXSourcesBuildPhase section */
259
+ 274692B921B4414400BF91A8 /* Sources */ = {
260
+ isa = PBXSourcesBuildPhase;
261
+ buildActionMask = 2147483647;
262
+ files = (
263
+ 274692BA21B4414400BF91A8 /* RNSentry.m in Sources */,
264
+ );
265
+ runOnlyForDeploymentPostprocessing = 0;
266
+ };
267
+ 58B511D71A9E6C8500147676 /* Sources */ = {
268
+ isa = PBXSourcesBuildPhase;
269
+ buildActionMask = 2147483647;
270
+ files = (
271
+ B3E7B58A1CC2AC0600A0062D /* RNSentry.m in Sources */,
272
+ );
273
+ runOnlyForDeploymentPostprocessing = 0;
274
+ };
275
+ /* End PBXSourcesBuildPhase section */
276
+
277
+ /* Begin PBXTargetDependency section */
278
+ 274692B721B4414400BF91A8 /* PBXTargetDependency */ = {
279
+ isa = PBXTargetDependency;
280
+ name = SentryStatic;
281
+ targetProxy = 274692B821B4414400BF91A8 /* PBXContainerItemProxy */;
282
+ };
283
+ 6387B8581ED852170045A84C /* PBXTargetDependency */ = {
284
+ isa = PBXTargetDependency;
285
+ name = SentryStatic;
286
+ targetProxy = 6387B8571ED852170045A84C /* PBXContainerItemProxy */;
287
+ };
288
+ /* End PBXTargetDependency section */
289
+
290
+ /* Begin XCBuildConfiguration section */
291
+ 274692C121B4414400BF91A8 /* Debug */ = {
292
+ isa = XCBuildConfiguration;
293
+ buildSettings = {
294
+ FRAMEWORK_SEARCH_PATHS = (
295
+ "$(inherited)",
296
+ "$(PROJECT_DIR)",
297
+ );
298
+ HEADER_SEARCH_PATHS = (
299
+ "$(inherited)",
300
+ "$(SRCROOT)/../../react-native/React/**",
301
+ );
302
+ LIBRARY_SEARCH_PATHS = "$(inherited)";
303
+ OTHER_LDFLAGS = "-ObjC";
304
+ PRODUCT_NAME = "$(TARGET_NAME)";
305
+ SDKROOT = appletvos;
306
+ SKIP_INSTALL = YES;
307
+ };
308
+ name = Debug;
309
+ };
310
+ 274692C221B4414400BF91A8 /* Release */ = {
311
+ isa = XCBuildConfiguration;
312
+ buildSettings = {
313
+ FRAMEWORK_SEARCH_PATHS = (
314
+ "$(inherited)",
315
+ "$(PROJECT_DIR)",
316
+ );
317
+ HEADER_SEARCH_PATHS = (
318
+ "$(inherited)",
319
+ "$(SRCROOT)/../../react-native/React/**",
320
+ );
321
+ LIBRARY_SEARCH_PATHS = "$(inherited)";
322
+ OTHER_LDFLAGS = "-ObjC";
323
+ PRODUCT_NAME = "$(TARGET_NAME)";
324
+ SDKROOT = appletvos;
325
+ SKIP_INSTALL = YES;
326
+ };
327
+ name = Release;
328
+ };
329
+ 58B511ED1A9E6C8500147676 /* Debug */ = {
330
+ isa = XCBuildConfiguration;
331
+ buildSettings = {
332
+ ALWAYS_SEARCH_USER_PATHS = NO;
333
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
334
+ CLANG_CXX_LIBRARY = "libc++";
335
+ CLANG_ENABLE_MODULES = YES;
336
+ CLANG_ENABLE_OBJC_ARC = YES;
337
+ CLANG_WARN_BOOL_CONVERSION = YES;
338
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
339
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
340
+ CLANG_WARN_EMPTY_BODY = YES;
341
+ CLANG_WARN_ENUM_CONVERSION = YES;
342
+ CLANG_WARN_INT_CONVERSION = YES;
343
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
344
+ CLANG_WARN_UNREACHABLE_CODE = YES;
345
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
346
+ COPY_PHASE_STRIP = NO;
347
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
348
+ GCC_C_LANGUAGE_STANDARD = gnu99;
349
+ GCC_DYNAMIC_NO_PIC = NO;
350
+ GCC_OPTIMIZATION_LEVEL = 0;
351
+ GCC_PREPROCESSOR_DEFINITIONS = (
352
+ "DEBUG=1",
353
+ "$(inherited)",
354
+ );
355
+ GCC_SYMBOLS_PRIVATE_EXTERN = NO;
356
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
357
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
358
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
359
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
360
+ GCC_WARN_UNUSED_FUNCTION = YES;
361
+ GCC_WARN_UNUSED_VARIABLE = YES;
362
+ IPHONEOS_DEPLOYMENT_TARGET = 7.0;
363
+ MTL_ENABLE_DEBUG_INFO = YES;
364
+ ONLY_ACTIVE_ARCH = YES;
365
+ SDKROOT = iphoneos;
366
+ };
367
+ name = Debug;
368
+ };
369
+ 58B511EE1A9E6C8500147676 /* Release */ = {
370
+ isa = XCBuildConfiguration;
371
+ buildSettings = {
372
+ ALWAYS_SEARCH_USER_PATHS = NO;
373
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
374
+ CLANG_CXX_LIBRARY = "libc++";
375
+ CLANG_ENABLE_MODULES = YES;
376
+ CLANG_ENABLE_OBJC_ARC = YES;
377
+ CLANG_WARN_BOOL_CONVERSION = YES;
378
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
379
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
380
+ CLANG_WARN_EMPTY_BODY = YES;
381
+ CLANG_WARN_ENUM_CONVERSION = YES;
382
+ CLANG_WARN_INT_CONVERSION = YES;
383
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
384
+ CLANG_WARN_UNREACHABLE_CODE = YES;
385
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
386
+ COPY_PHASE_STRIP = YES;
387
+ ENABLE_NS_ASSERTIONS = NO;
388
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
389
+ GCC_C_LANGUAGE_STANDARD = gnu99;
390
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
391
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
392
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
393
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
394
+ GCC_WARN_UNUSED_FUNCTION = YES;
395
+ GCC_WARN_UNUSED_VARIABLE = YES;
396
+ IPHONEOS_DEPLOYMENT_TARGET = 7.0;
397
+ MTL_ENABLE_DEBUG_INFO = NO;
398
+ SDKROOT = iphoneos;
399
+ VALIDATE_PRODUCT = YES;
400
+ };
401
+ name = Release;
402
+ };
403
+ 58B511F01A9E6C8500147676 /* Debug */ = {
404
+ isa = XCBuildConfiguration;
405
+ buildSettings = {
406
+ FRAMEWORK_SEARCH_PATHS = (
407
+ "$(inherited)",
408
+ "$(PROJECT_DIR)",
409
+ );
410
+ HEADER_SEARCH_PATHS = (
411
+ "$(inherited)",
412
+ "$(SRCROOT)/../../react-native/React/**",
413
+ );
414
+ LIBRARY_SEARCH_PATHS = "$(inherited)";
415
+ OTHER_LDFLAGS = "-ObjC";
416
+ PRODUCT_NAME = RNSentry;
417
+ SKIP_INSTALL = YES;
418
+ };
419
+ name = Debug;
420
+ };
421
+ 58B511F11A9E6C8500147676 /* Release */ = {
422
+ isa = XCBuildConfiguration;
423
+ buildSettings = {
424
+ FRAMEWORK_SEARCH_PATHS = (
425
+ "$(inherited)",
426
+ "$(PROJECT_DIR)",
427
+ );
428
+ HEADER_SEARCH_PATHS = (
429
+ "$(inherited)",
430
+ "$(SRCROOT)/../../react-native/React/**",
431
+ );
432
+ LIBRARY_SEARCH_PATHS = "$(inherited)";
433
+ OTHER_LDFLAGS = "-ObjC";
434
+ PRODUCT_NAME = RNSentry;
435
+ SKIP_INSTALL = YES;
436
+ };
437
+ name = Release;
438
+ };
439
+ /* End XCBuildConfiguration section */
440
+
441
+ /* Begin XCConfigurationList section */
442
+ 274692C021B4414400BF91A8 /* Build configuration list for PBXNativeTarget "RNSentry-tvOS" */ = {
443
+ isa = XCConfigurationList;
444
+ buildConfigurations = (
445
+ 274692C121B4414400BF91A8 /* Debug */,
446
+ 274692C221B4414400BF91A8 /* Release */,
447
+ );
448
+ defaultConfigurationIsVisible = 0;
449
+ defaultConfigurationName = Release;
450
+ };
451
+ 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNSentry" */ = {
452
+ isa = XCConfigurationList;
453
+ buildConfigurations = (
454
+ 58B511ED1A9E6C8500147676 /* Debug */,
455
+ 58B511EE1A9E6C8500147676 /* Release */,
456
+ );
457
+ defaultConfigurationIsVisible = 0;
458
+ defaultConfigurationName = Release;
459
+ };
460
+ 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNSentry" */ = {
461
+ isa = XCConfigurationList;
462
+ buildConfigurations = (
463
+ 58B511F01A9E6C8500147676 /* Debug */,
464
+ 58B511F11A9E6C8500147676 /* Release */,
465
+ );
466
+ defaultConfigurationIsVisible = 0;
467
+ defaultConfigurationName = Release;
468
+ };
469
+ /* End XCConfigurationList section */
470
+ };
471
+ rootObject = 58B511D31A9E6C8500147676 /* Project object */;
472
+ }
package/package.json CHANGED
@@ -2,19 +2,27 @@
2
2
  "name": "@sentry/react-native",
3
3
  "homepage": "https://github.com/getsentry/sentry-react-native",
4
4
  "repository": "https://github.com/getsentry/sentry-react-native",
5
- "version": "5.3.1",
5
+ "version": "5.4.1",
6
6
  "description": "Official Sentry SDK for react-native",
7
7
  "typings": "dist/js/index.d.ts",
8
8
  "types": "dist/js/index.d.ts",
9
+ "typesVersions": {
10
+ "<4.1": {
11
+ "*": [
12
+ "ts3.8/*"
13
+ ]
14
+ }
15
+ },
9
16
  "typescript": {
10
17
  "definition": "dist/js/index.d.ts"
11
18
  },
12
19
  "main": "dist/js/index.js",
13
20
  "scripts": {
14
- "build": "yarn build:sdk && yarn build:tools",
21
+ "build": "yarn build:sdk && yarn downlevel && yarn build:tools",
15
22
  "build:sdk": "tsc -p tsconfig.build.json",
16
23
  "build:sdk:watch": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
17
24
  "build:tools": "tsc -p tsconfig.build.tools.json",
25
+ "downlevel": "downlevel-dts dist ts3.8/dist --to=3.8",
18
26
  "clean": "rimraf dist coverage",
19
27
  "test": "jest",
20
28
  "fix": "yarn fix:eslint && yarn fix:prettier",
@@ -47,24 +55,24 @@
47
55
  "react-native": ">=0.65.0"
48
56
  },
49
57
  "dependencies": {
50
- "@sentry-internal/tracing": "7.47.0",
51
- "@sentry/browser": "7.47.0",
52
- "@sentry/cli": "2.17.1",
53
- "@sentry/core": "7.47.0",
54
- "@sentry/hub": "7.47.0",
55
- "@sentry/integrations": "7.47.0",
56
- "@sentry/react": "7.47.0",
57
- "@sentry/types": "7.47.0",
58
- "@sentry/utils": "7.47.0"
58
+ "@sentry/browser": "7.50.0",
59
+ "@sentry/cli": "2.17.5",
60
+ "@sentry/core": "7.50.0",
61
+ "@sentry/hub": "7.50.0",
62
+ "@sentry/integrations": "7.50.0",
63
+ "@sentry/react": "7.50.0",
64
+ "@sentry/types": "7.50.0",
65
+ "@sentry/utils": "7.50.0"
59
66
  },
60
67
  "devDependencies": {
61
- "@sentry-internal/eslint-config-sdk": "7.47.0",
62
- "@sentry-internal/eslint-plugin-sdk": "7.47.0",
68
+ "@sentry-internal/eslint-config-sdk": "7.50.0",
69
+ "@sentry-internal/eslint-plugin-sdk": "7.50.0",
63
70
  "@sentry/typescript": "^5.20.1",
64
- "@sentry/wizard": "2.6.1",
71
+ "@sentry/wizard": "3.0.0",
65
72
  "@types/jest": "^29.2.5",
66
73
  "@types/react": "^18.0.25",
67
74
  "babel-jest": "^29.3.1",
75
+ "downlevel-dts": "^0.11.0",
68
76
  "eslint": "^7.6.0",
69
77
  "eslint-plugin-react": "^7.20.6",
70
78
  "eslint-plugin-react-native": "^3.8.1",
@@ -76,7 +84,7 @@
76
84
  "replace-in-file": "^6.0.0",
77
85
  "rimraf": "^4.1.1",
78
86
  "ts-jest": "^29.0.5",
79
- "typescript": "3.8.3"
87
+ "typescript": "4.1.3"
80
88
  },
81
89
  "rnpm": {
82
90
  "commands": {},
package/sentry.gradle CHANGED
@@ -215,7 +215,10 @@ gradle.projectsEvaluated {
215
215
  // task.name could be packageDev-debugRelease but in that case currentVariants == null
216
216
  // because of the regex in `extractCurrentVariants` and this code doesn't run
217
217
  def packageTasks = tasks.findAll {
218
- task -> "package${variantTaskName}".equalsIgnoreCase(task.name) && task.enabled
218
+ task -> (
219
+ "package${variantTaskName}".equalsIgnoreCase(task.name)
220
+ || "package${variantTaskName}Bundle".equalsIgnoreCase(task.name)
221
+ ) && task.enabled
219
222
  }
220
223
  packageTasks.each { packageTask ->
221
224
  packageTask.dependsOn modulesTask
@@ -13,7 +13,7 @@ export interface Spec extends TurboModule {
13
13
  store: boolean;
14
14
  },
15
15
  ): Promise<boolean>;
16
- captureScreenshot(): Promise<NativeScreenshot[]>;
16
+ captureScreenshot(): Promise<NativeScreenshot[] | undefined | null>;
17
17
  clearBreadcrumbs(): void;
18
18
  crash(): void;
19
19
  closeNativeSdk(): Promise<void>;
@@ -0,0 +1,80 @@
1
+ import type { Package } from '@sentry/types';
2
+ import type { TurboModule } from 'react-native';
3
+ import type { UnsafeObject } from 'react-native/Libraries/Types/CodegenTypes';
4
+ export interface Spec extends TurboModule {
5
+ addBreadcrumb(breadcrumb: UnsafeObject): void;
6
+ captureEnvelope(bytes: number[], options: {
7
+ store: boolean;
8
+ }): Promise<boolean>;
9
+ captureScreenshot(): Promise<NativeScreenshot[] | undefined | null>;
10
+ clearBreadcrumbs(): void;
11
+ crash(): void;
12
+ closeNativeSdk(): Promise<void>;
13
+ disableNativeFramesTracking(): void;
14
+ fetchNativeRelease(): Promise<NativeReleaseResponse>;
15
+ fetchNativeSdkInfo(): Promise<Package>;
16
+ fetchNativeDeviceContexts(): Promise<NativeDeviceContextsResponse>;
17
+ fetchNativeAppStart(): Promise<NativeAppStartResponse | null>;
18
+ fetchNativeFrames(): Promise<NativeFramesResponse | null>;
19
+ initNativeSdk(options: UnsafeObject): Promise<boolean>;
20
+ setUser(defaultUserKeys: UnsafeObject | null, otherUserKeys: UnsafeObject | null): void;
21
+ setContext(key: string, value: UnsafeObject | null): void;
22
+ setExtra(key: string, value: string): void;
23
+ setTag(key: string, value: string): void;
24
+ enableNativeFramesTracking(): void;
25
+ fetchModules(): Promise<string | undefined | null>;
26
+ fetchViewHierarchy(): Promise<number[] | undefined | null>;
27
+ }
28
+ export declare type NativeAppStartResponse = {
29
+ isColdStart: boolean;
30
+ appStartTime: number;
31
+ didFetchAppStart: boolean;
32
+ };
33
+ export declare type NativeFramesResponse = {
34
+ totalFrames: number;
35
+ slowFrames: number;
36
+ frozenFrames: number;
37
+ };
38
+ export declare type NativeReleaseResponse = {
39
+ build: string;
40
+ id: string;
41
+ version: string;
42
+ };
43
+ /**
44
+ * This type describes serialized scope from sentry-cocoa. (This is not used for Android)
45
+ * https://github.com/getsentry/sentry-cocoa/blob/master/Sources/Sentry/SentryScope.m
46
+ */
47
+ export declare type NativeDeviceContextsResponse = {
48
+ [key: string]: unknown;
49
+ tags?: Record<string, string>;
50
+ extra?: Record<string, unknown>;
51
+ context?: Record<string, Record<string, unknown>>;
52
+ user?: {
53
+ userId?: string;
54
+ email?: string;
55
+ username?: string;
56
+ ipAddress?: string;
57
+ segment?: string;
58
+ data?: Record<string, unknown>;
59
+ };
60
+ dist?: string;
61
+ environment?: string;
62
+ fingerprint?: string[];
63
+ level?: string;
64
+ breadcrumbs?: {
65
+ level?: string;
66
+ timestamp?: string;
67
+ category?: string;
68
+ type?: string;
69
+ message?: string;
70
+ data?: Record<string, unknown>;
71
+ }[];
72
+ };
73
+ export declare type NativeScreenshot = {
74
+ data: number[];
75
+ contentType: string;
76
+ filename: string;
77
+ };
78
+ declare const _default: Spec;
79
+ export default _default;
80
+ //# sourceMappingURL=NativeRNSentry.d.ts.map
@@ -0,0 +1,11 @@
1
+ import type { Breadcrumb, SeverityLevel } from '@sentry/types';
2
+ export declare const DEFAULT_BREADCRUMB_LEVEL: SeverityLevel;
3
+ declare type BreadcrumbCandidate = {
4
+ [K in keyof Partial<Breadcrumb>]: unknown;
5
+ };
6
+ /**
7
+ * Convert plain object to a valid Breadcrumb
8
+ */
9
+ export declare function breadcrumbFromObject(candidate: BreadcrumbCandidate): Breadcrumb;
10
+ export {};
11
+ //# sourceMappingURL=breadcrumb.d.ts.map