@sentry/react-native 5.0.0-alpha.1 → 5.0.0-alpha.11

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 (168) hide show
  1. package/CHANGELOG.md +403 -4
  2. package/README.md +6 -0
  3. package/RNSentry.podspec +22 -5
  4. package/android/build.gradle +20 -2
  5. package/android/src/main/java/io/sentry/react/{RNSentryModule.java → RNSentryModuleImpl.java} +174 -114
  6. package/android/src/main/java/io/sentry/react/RNSentryPackage.java +35 -19
  7. package/android/src/newarch/java/io/sentry/react/RNSentryModule.java +119 -0
  8. package/android/src/oldarch/java/io/sentry/react/RNSentryModule.java +119 -0
  9. package/dist/js/NativeRNSentry.d.ts +52 -0
  10. package/dist/js/NativeRNSentry.d.ts.map +1 -0
  11. package/dist/js/NativeRNSentry.js +4 -0
  12. package/dist/js/NativeRNSentry.js.map +1 -0
  13. package/dist/js/client.d.ts +18 -6
  14. package/dist/js/client.d.ts.map +1 -1
  15. package/dist/js/client.js +96 -37
  16. package/dist/js/client.js.map +1 -1
  17. package/dist/js/index.d.ts +4 -3
  18. package/dist/js/index.d.ts.map +1 -1
  19. package/dist/js/index.js +3 -2
  20. package/dist/js/index.js.map +1 -1
  21. package/dist/js/integrations/debugsymbolicator.d.ts +9 -0
  22. package/dist/js/integrations/debugsymbolicator.d.ts.map +1 -1
  23. package/dist/js/integrations/debugsymbolicator.js +0 -2
  24. package/dist/js/integrations/debugsymbolicator.js.map +1 -1
  25. package/dist/js/integrations/index.d.ts +2 -0
  26. package/dist/js/integrations/index.d.ts.map +1 -1
  27. package/dist/js/integrations/index.js +2 -0
  28. package/dist/js/integrations/index.js.map +1 -1
  29. package/dist/js/integrations/modulesloader.d.ts +17 -0
  30. package/dist/js/integrations/modulesloader.d.ts.map +1 -0
  31. package/dist/js/integrations/modulesloader.js +39 -0
  32. package/dist/js/integrations/modulesloader.js.map +1 -0
  33. package/dist/js/integrations/reactnativeerrorhandlers.d.ts.map +1 -1
  34. package/dist/js/integrations/reactnativeerrorhandlers.js +10 -7
  35. package/dist/js/integrations/reactnativeerrorhandlers.js.map +1 -1
  36. package/dist/js/integrations/reactnativeinfo.d.ts +23 -0
  37. package/dist/js/integrations/reactnativeinfo.d.ts.map +1 -0
  38. package/dist/js/integrations/reactnativeinfo.js +43 -0
  39. package/dist/js/integrations/reactnativeinfo.js.map +1 -0
  40. package/dist/js/integrations/screenshot.d.ts +23 -0
  41. package/dist/js/integrations/screenshot.d.ts.map +1 -0
  42. package/dist/js/integrations/screenshot.js +39 -0
  43. package/dist/js/integrations/screenshot.js.map +1 -0
  44. package/dist/js/integrations/sdkinfo.d.ts +4 -1
  45. package/dist/js/integrations/sdkinfo.d.ts.map +1 -1
  46. package/dist/js/integrations/sdkinfo.js +13 -7
  47. package/dist/js/integrations/sdkinfo.js.map +1 -1
  48. package/dist/js/measurements.d.ts +4 -0
  49. package/dist/js/measurements.d.ts.map +1 -1
  50. package/dist/js/measurements.js +12 -1
  51. package/dist/js/measurements.js.map +1 -1
  52. package/dist/js/misc.d.ts +9 -0
  53. package/dist/js/misc.d.ts.map +1 -0
  54. package/dist/js/misc.js +17 -0
  55. package/dist/js/misc.js.map +1 -0
  56. package/dist/js/options.d.ts +45 -9
  57. package/dist/js/options.d.ts.map +1 -1
  58. package/dist/js/options.js.map +1 -1
  59. package/dist/js/scope.d.ts +10 -2
  60. package/dist/js/scope.d.ts.map +1 -1
  61. package/dist/js/scope.js +13 -1
  62. package/dist/js/scope.js.map +1 -1
  63. package/dist/js/sdk.d.ts +25 -0
  64. package/dist/js/sdk.d.ts.map +1 -1
  65. package/dist/js/sdk.js +86 -27
  66. package/dist/js/sdk.js.map +1 -1
  67. package/dist/js/tools/ModulesCollector.d.ts +17 -0
  68. package/dist/js/tools/ModulesCollector.d.ts.map +1 -0
  69. package/dist/js/tools/ModulesCollector.js +109 -0
  70. package/dist/js/tools/ModulesCollector.js.map +1 -0
  71. package/dist/js/tools/collectModules.d.ts +2 -0
  72. package/dist/js/tools/collectModules.d.ts.map +1 -0
  73. package/dist/js/tools/collectModules.js +11 -0
  74. package/dist/js/tools/collectModules.js.map +1 -0
  75. package/dist/js/touchevents.d.ts +8 -0
  76. package/dist/js/touchevents.d.ts.map +1 -1
  77. package/dist/js/touchevents.js +10 -5
  78. package/dist/js/touchevents.js.map +1 -1
  79. package/dist/js/tracing/nativeframes.js.map +1 -1
  80. package/dist/js/tracing/reactnativenavigation.d.ts +9 -0
  81. package/dist/js/tracing/reactnativenavigation.d.ts.map +1 -1
  82. package/dist/js/tracing/reactnativenavigation.js +20 -12
  83. package/dist/js/tracing/reactnativenavigation.js.map +1 -1
  84. package/dist/js/tracing/reactnativetracing.d.ts +15 -6
  85. package/dist/js/tracing/reactnativetracing.d.ts.map +1 -1
  86. package/dist/js/tracing/reactnativetracing.js +16 -9
  87. package/dist/js/tracing/reactnativetracing.js.map +1 -1
  88. package/dist/js/tracing/reactnavigation.d.ts +7 -1
  89. package/dist/js/tracing/reactnavigation.d.ts.map +1 -1
  90. package/dist/js/tracing/reactnavigation.js +31 -23
  91. package/dist/js/tracing/reactnavigation.js.map +1 -1
  92. package/dist/js/tracing/reactnavigationv4.d.ts +9 -9
  93. package/dist/js/tracing/reactnavigationv4.d.ts.map +1 -1
  94. package/dist/js/tracing/reactnavigationv4.js +27 -15
  95. package/dist/js/tracing/reactnavigationv4.js.map +1 -1
  96. package/dist/js/tracing/routingInstrumentation.d.ts +1 -1
  97. package/dist/js/tracing/routingInstrumentation.d.ts.map +1 -1
  98. package/dist/js/tracing/routingInstrumentation.js.map +1 -1
  99. package/dist/js/tracing/utils.d.ts +4 -3
  100. package/dist/js/tracing/utils.d.ts.map +1 -1
  101. package/dist/js/tracing/utils.js +7 -10
  102. package/dist/js/tracing/utils.js.map +1 -1
  103. package/dist/js/transports/TextEncoder.d.ts +3 -0
  104. package/dist/js/transports/TextEncoder.d.ts.map +1 -0
  105. package/dist/js/transports/TextEncoder.js +12 -0
  106. package/dist/js/transports/TextEncoder.js.map +1 -0
  107. package/dist/js/transports/native.d.ts +10 -1
  108. package/dist/js/transports/native.d.ts.map +1 -1
  109. package/dist/js/transports/native.js +15 -4
  110. package/dist/js/transports/native.js.map +1 -1
  111. package/dist/js/user.d.ts +6 -0
  112. package/dist/js/user.d.ts.map +1 -0
  113. package/dist/js/user.js +1 -0
  114. package/dist/js/user.js.map +1 -0
  115. package/dist/js/utils/envelope.d.ts +12 -0
  116. package/dist/js/utils/envelope.d.ts.map +1 -0
  117. package/dist/js/utils/envelope.js +21 -0
  118. package/dist/js/utils/envelope.js.map +1 -0
  119. package/dist/js/utils/environment.d.ts +7 -0
  120. package/dist/js/utils/environment.d.ts.map +1 -0
  121. package/dist/js/utils/environment.js +14 -0
  122. package/dist/js/utils/environment.js.map +1 -0
  123. package/dist/js/utils/ignorerequirecyclelogs.d.ts +6 -0
  124. package/dist/js/utils/ignorerequirecyclelogs.d.ts.map +1 -0
  125. package/dist/js/utils/ignorerequirecyclelogs.js +15 -0
  126. package/dist/js/utils/ignorerequirecyclelogs.js.map +1 -0
  127. package/dist/js/utils/outcome.d.ts +6 -0
  128. package/dist/js/utils/outcome.d.ts.map +1 -0
  129. package/dist/js/utils/outcome.js +19 -0
  130. package/dist/js/utils/outcome.js.map +1 -0
  131. package/dist/js/utils/safe.d.ts +18 -0
  132. package/dist/js/utils/safe.d.ts.map +1 -0
  133. package/dist/js/utils/safe.js +46 -0
  134. package/dist/js/utils/safe.js.map +1 -0
  135. package/dist/js/utils/worldwide.d.ts +13 -0
  136. package/dist/js/utils/worldwide.d.ts.map +1 -0
  137. package/dist/js/utils/worldwide.js +4 -0
  138. package/dist/js/utils/worldwide.js.map +1 -0
  139. package/dist/js/vendor/buffer/index.d.ts +2 -0
  140. package/dist/js/vendor/buffer/index.d.ts.map +1 -0
  141. package/dist/js/vendor/buffer/index.js +2 -0
  142. package/dist/js/vendor/buffer/index.js.map +1 -0
  143. package/dist/js/vendor/buffer/utf8ToBytes.d.ts +10 -0
  144. package/dist/js/vendor/buffer/utf8ToBytes.d.ts.map +1 -0
  145. package/dist/js/vendor/buffer/utf8ToBytes.js +82 -0
  146. package/dist/js/vendor/buffer/utf8ToBytes.js.map +1 -0
  147. package/dist/js/vendor/index.d.ts +2 -0
  148. package/dist/js/vendor/index.d.ts.map +1 -0
  149. package/dist/js/vendor/index.js +2 -0
  150. package/dist/js/vendor/index.js.map +1 -0
  151. package/dist/js/version.d.ts +2 -1
  152. package/dist/js/version.d.ts.map +1 -1
  153. package/dist/js/version.js +2 -1
  154. package/dist/js/version.js.map +1 -1
  155. package/dist/js/wrapper.d.ts +13 -4
  156. package/dist/js/wrapper.d.ts.map +1 -1
  157. package/dist/js/wrapper.js +129 -71
  158. package/dist/js/wrapper.js.map +1 -1
  159. package/ios/{RNSentry.m → RNSentry.mm} +98 -57
  160. package/package.json +32 -26
  161. package/sample-new-architecture/react-native.config.js +10 -0
  162. package/scripts/collect-modules.sh +43 -0
  163. package/sentry.gradle +57 -6
  164. package/src/js/NativeRNSentry.ts +66 -0
  165. package/dist/js/definitions.d.ts +0 -52
  166. package/dist/js/definitions.d.ts.map +0 -1
  167. package/dist/js/definitions.js +0 -1
  168. package/dist/js/definitions.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,11 +1,408 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.0.0-alpha.11
4
+
5
+ - Latest changes from 4.13.0
6
+
7
+ ### Breaking changes
8
+
9
+ - Message event current stack trace moved from exception to threads ([#2694](https://github.com/getsentry/sentry-react-native/pull/2694))
10
+ - `touchEventBoundaryProps.labelName` property instead of default `accessibilityLabel` fallback ([#2712](https://github.com/getsentry/sentry-react-native/pull/2712))
11
+
12
+ ### Fixes
13
+
14
+ - Unreachable fallback to fetch transport if native is not available ([#2695](https://github.com/getsentry/sentry-react-native/pull/2695))
15
+
16
+ ## 4.13.0
17
+
18
+ ### Fixes
19
+
20
+ - Missing `originalException` in `beforeSend` for events from react native error handler ([#2706](https://github.com/getsentry/sentry-react-native/pull/2706))
21
+ - ModulesLoader integration returns original event if native is not available and event modules overwrite native modules ([#2730](https://github.com/getsentry/sentry-react-native/pull/2730))
22
+
23
+ ### Dependencies
24
+
25
+ - Bump Cocoa SDK from v7.31.3 to v7.31.5 ([#2699](https://github.com/getsentry/sentry-react-native/pull/2699), [#2714](https://github.com/getsentry/sentry-react-native/pull/2714))
26
+ - [changelog](https://github.com/getsentry/sentry-cocoa/blob/8.0.0/CHANGELOG.md#7315)
27
+ - [diff](https://github.com/getsentry/sentry-cocoa/compare/7.31.3...7.31.5)
28
+ - Bump JavaScript SDK from v7.26.0 to v7.29.0 ([#2705](https://github.com/getsentry/sentry-react-native/pull/2705), [#2709](https://github.com/getsentry/sentry-react-native/pull/2709), [#2715](https://github.com/getsentry/sentry-react-native/pull/2715), [#2736](https://github.com/getsentry/sentry-react-native/pull/2736))
29
+ - [changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md#7290)
30
+ - [diff](https://github.com/getsentry/sentry-javascript/compare/7.26.0...7.29.0)
31
+ - Bump Android SDK from v6.9.2 to v6.11.0 ([#2704](https://github.com/getsentry/sentry-react-native/pull/2704), [#2724](https://github.com/getsentry/sentry-react-native/pull/2724))
32
+ - [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#6110)
33
+ - [diff](https://github.com/getsentry/sentry-java/compare/6.9.2...6.11.0)
34
+
35
+ ## 4.12.0
36
+
37
+ ### Features
38
+
39
+ - Add `lastEventId` method to the API ([#2675](https://github.com/getsentry/sentry-react-native/pull/2675))
40
+
41
+ ### Fix
42
+
43
+ - `Sentry.startTransaction` doesn't require `op` ([#2691](https://github.com/getsentry/sentry-react-native/pull/2691))
44
+
45
+ ### Dependencies
46
+
47
+ - Bump Cocoa SDK from v7.31.2 to v7.31.3 ([#2647](https://github.com/getsentry/sentry-react-native/pull/2647))
48
+ - [changelog](https://github.com/getsentry/sentry-cocoa/blob/8.0.0/CHANGELOG.md#7313)
49
+ - [diff](https://github.com/getsentry/sentry-cocoa/compare/7.31.2...7.31.3)
50
+ - Bump JavaScript SDK from v7.21.1 to v7.26.0 ([#2672](https://github.com/getsentry/sentry-react-native/pull/2672), [#2648](https://github.com/getsentry/sentry-react-native/pull/2648), [#2692](https://github.com/getsentry/sentry-react-native/pull/2692))
51
+ - [changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md#7260)
52
+ - [diff](https://github.com/getsentry/sentry-javascript/compare/7.21.1...7.26.0)
53
+ - Bump Android SDK from v6.9.1 to v6.9.2 ([#2677](https://github.com/getsentry/sentry-react-native/pull/2677))
54
+ - [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#692)
55
+ - [diff](https://github.com/getsentry/sentry-java/compare/6.9.1...6.9.2)
56
+
57
+ ## 5.0.0-alpha.10
58
+
59
+ - Latest changes from 4.11.0
60
+
61
+ ### Dependencies
62
+
63
+ - Bump CLI from v1.74.4 to v2.10.0 ([#2669](https://github.com/getsentry/sentry-react-native/pull/2669))
64
+ - [changelog](https://github.com/getsentry/sentry-cli/blob/master/CHANGELOG.md#2100)
65
+ - [diff](https://github.com/getsentry/sentry-cli/compare/1.74.4...2.10.0)
66
+
67
+ ## 4.11.0
68
+
69
+ ### Features
70
+
71
+ - Screenshots ([#2610](https://github.com/getsentry/sentry-react-native/pull/2610))
72
+
73
+ ## 4.10.1
74
+
75
+ ### Fixes
76
+
77
+ - Bump Wizard from v1.2.17 to v1.4.0 ([#2645](https://github.com/getsentry/sentry-react-native/pull/2645))
78
+ - [changelog](https://github.com/getsentry/sentry-wizard/blob/master/CHANGELOG.md#140)
79
+ - [diff](https://github.com/getsentry/sentry-wizard/compare/v1.2.17...v1.4.0)
80
+ - Android builds without ext config, auto create assets dir for modules ([#2652](https://github.com/getsentry/sentry-react-native/pull/2652))
81
+ - Exit gracefully if source map file for collecting modules doesn't exist ([#2655](https://github.com/getsentry/sentry-react-native/pull/2655))
82
+ - Create only one clean-up tasks for modules collection ([#2657](https://github.com/getsentry/sentry-react-native/pull/2657))
83
+
84
+ ### Dependencies
85
+
86
+ - Bump Android SDK from v6.8.0 to v6.9.1 ([#2653](https://github.com/getsentry/sentry-react-native/pull/2653))
87
+ - [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#691)
88
+ - [diff](https://github.com/getsentry/sentry-java/compare/6.8.0...6.9.1)
89
+
90
+ ## 5.0.0-alpha.9
91
+
92
+ - Latest changes from 4.10.0
93
+
94
+ ### Fixes
95
+
96
+ - Add missing source Spec for RNSentry Codegen. ([#2639](https://github.com/getsentry/sentry-react-native/pull/2639))
97
+
98
+ ## 4.10.0
99
+
100
+ ### Features
101
+
102
+ - JS Runtime dependencies are sent in Events ([#2606](https://github.com/getsentry/sentry-react-native/pull/2606))
103
+ - To collect JS dependencies on iOS add `../node_modules/@sentry/react-native/scripts/collect-modules.sh` at the end of the `Bundle React Native code and images` build phase. The collection only works on Release builds. Android builds have a new step in `sentry.gradle` plugin. More in [the migration documentation](https://docs.sentry.io/platforms/react-native/migration#from-48x-to-49x).
104
+
105
+ ### Dependencies
106
+
107
+ - Bump JavaScript SDK from v7.20.1 to v7.21.1 ([#2636](https://github.com/getsentry/sentry-react-native/pull/2636))
108
+ - [changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md#7211)
109
+ - [diff](https://github.com/getsentry/sentry-javascript/compare/7.20.1...7.21.1)
110
+
111
+ ## 5.0.0-alpha.8
112
+
113
+ - Latest changes from 4.9.0
114
+
115
+ ## 4.9.0
116
+
117
+ ### Features
118
+
119
+ - Add `maxQueueSize` option ([#2578](https://github.com/getsentry/sentry-react-native/pull/2578))
120
+
121
+ ### Fixes
122
+
123
+ - Use `Scope` class rather than `Scope` type for top-level functions ([#2627](https://github.com/getsentry/sentry-react-native/pull/2627))
124
+
125
+ ### Dependencies
126
+
127
+ - Bump JavaScript SDK from v7.16.0 to v7.20.1 ([#2582](https://github.com/getsentry/sentry-react-native/pull/2582), [#2598](https://github.com/getsentry/sentry-react-native/pull/2598), [#2632](https://github.com/getsentry/sentry-react-native/pull/2632), [#2607](https://github.com/getsentry/sentry-react-native/pull/2607))
128
+ - [changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md#7201)
129
+ - [diff](https://github.com/getsentry/sentry-javascript/compare/7.16.0...7.20.1)
130
+ - Bump Cocoa SDK from v7.29.0 to v7.31.2 ([#2592](https://github.com/getsentry/sentry-react-native/pull/2592), [#2601](https://github.com/getsentry/sentry-react-native/pull/2601), [#2629](https://github.com/getsentry/sentry-react-native/pull/2629))
131
+ - [changelog](https://github.com/getsentry/sentry-cocoa/blob/master/CHANGELOG.md#7312)
132
+ - [diff](https://github.com/getsentry/sentry-cocoa/compare/7.29.0...7.31.2)
133
+ - Bump Android SDK from v6.6.0 to v6.8.0 ([#2600](https://github.com/getsentry/sentry-react-native/pull/2600), [#2628](https://github.com/getsentry/sentry-react-native/pull/2628))
134
+ - [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#680)
135
+ - [diff](https://github.com/getsentry/sentry-java/compare/6.6.0...6.8.0)
136
+
137
+ ## 4.8.0
138
+
139
+ ### Fixes
140
+
141
+ - Message event can have attached stacktrace ([#2577](https://github.com/getsentry/sentry-react-native/pull/2577))
142
+ - Fixed maximum call stack exceeded error resulting from large payloads ([#2579](https://github.com/getsentry/sentry-react-native/pull/2579))
143
+
144
+ ### Dependencies
145
+
146
+ - Bump Android SDK from v6.5.0 to v6.6.0 ([#2572](https://github.com/getsentry/sentry-react-native/pull/2572))
147
+ - [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#660)
148
+ - [diff](https://github.com/getsentry/sentry-java/compare/6.5.0...6.6.0)
149
+ - Bump Cocoa SDK from v7.28.0 to v7.29.0 ([#2571](https://github.com/getsentry/sentry-react-native/pull/2571))
150
+ - [changelog](https://github.com/getsentry/sentry-cocoa/blob/master/CHANGELOG.md#7290)
151
+ - [diff](https://github.com/getsentry/sentry-cocoa/compare/7.28.0...7.29.0)
152
+
153
+ ## 5.0.0-alpha.7
154
+
155
+ - Latest changes from 4.7.1
156
+
157
+ ### Fixes
158
+
159
+ - Remove hardcoded Folly version ([#2558](https://github.com/getsentry/sentry-react-native/pull/2558))
160
+
161
+ ### Features
162
+
163
+ - Send react native js engine, turbo module, fabric flags and component stack in Event contexts ([#2552](https://github.com/getsentry/sentry-react-native/pull/2552))
164
+
165
+ ### Dependencies
166
+
167
+ - Bump CLI from v1.74.4 to v2.7.0 ([#2457](https://github.com/getsentry/sentry-react-native/pull/2457))
168
+ - [changelog](https://github.com/getsentry/sentry-cli/blob/master/CHANGELOG.md#270)
169
+ - [diff](https://github.com/getsentry/sentry-cli/compare/1.74.4...2.7.0)
170
+ - Bump Android SDK from v6.5.0 to v6.6.0 ([#2572](https://github.com/getsentry/sentry-react-native/pull/2572))
171
+ - [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#660)
172
+ - [diff](https://github.com/getsentry/sentry-java/compare/6.5.0...6.6.0)
173
+ - Bump Cocoa SDK from v7.28.0 to v7.29.0 ([#2571](https://github.com/getsentry/sentry-react-native/pull/2571))
174
+ - [changelog](https://github.com/getsentry/sentry-cocoa/blob/master/CHANGELOG.md#7290)
175
+ - [diff](https://github.com/getsentry/sentry-cocoa/compare/7.28.0...7.29.0)
176
+
177
+ ## 4.7.1
178
+
179
+ ### Fixes
180
+
181
+ - Remove duplicate sdk package record from envelope ([#2570](https://github.com/getsentry/sentry-react-native/pull/2570))
182
+ - Fix `appHangsTimeoutInterval` -> `appHangTimeoutInterval` option name ([#2574](https://github.com/getsentry/sentry-react-native/pull/2574))
183
+
184
+ ## 4.7.0
185
+
186
+ ### Dependencies
187
+
188
+ - Bump Android SDK from v6.4.3 to v6.5.0 ([#2535](https://github.com/getsentry/sentry-react-native/pull/2535))
189
+ - [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#650)
190
+ - [diff](https://github.com/getsentry/sentry-java/compare/6.4.3...6.5.0)
191
+ - Bump JavaScript SDK from v7.14.2 to v7.16.0 ([#2536](https://github.com/getsentry/sentry-react-native/pull/2536), [#2561](https://github.com/getsentry/sentry-react-native/pull/2561))
192
+ - [changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md#7160)
193
+ - [diff](https://github.com/getsentry/sentry-javascript/compare/7.14.2...7.16.0)
194
+ - Bump Cocoa SDK from v7.27.1 to v7.28.0 ([#2548](https://github.com/getsentry/sentry-react-native/pull/2548))
195
+ - [changelog](https://github.com/getsentry/sentry-cocoa/blob/master/CHANGELOG.md#7280)
196
+ - [diff](https://github.com/getsentry/sentry-cocoa/compare/7.27.1...7.28.0)
197
+
198
+ ## 5.0.0-alpha.6
199
+
200
+ - Latest changes from 4.6.1
201
+
202
+ ### Features
203
+
204
+ - Add initial support for the RN New Architecture, backwards compatible RNSentry Turbo Module ([#2522](https://github.com/getsentry/sentry-react-native/pull/2522))
205
+
206
+ ### Breaking changes
207
+
208
+ - New ReactNativeTracingOptions idleTimeoutMs and finalTimeoutMs replacing idleTimeout and maxTransactionDuration respectively ([#2481](https://github.com/getsentry/sentry-react-native/pull/2481))
209
+ - iOS min target 12.4, Android API min 21, min React Native version 0.70 ([#2522](https://github.com/getsentry/sentry-react-native/pull/2522))
210
+
211
+ ### Dependencies
212
+
213
+ - Bump Android SDK from v6.4.3 to v6.5.0 ([#2535](https://github.com/getsentry/sentry-react-native/pull/2535))
214
+ - [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#650)
215
+ - [diff](https://github.com/getsentry/sentry-java/compare/6.4.3...6.5.0)
216
+ - Bump JavaScript SDK from v7.14.2 to v7.15.0 ([#2536](https://github.com/getsentry/sentry-react-native/pull/2536))
217
+ - [changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md#7150)
218
+ - [diff](https://github.com/getsentry/sentry-javascript/compare/7.14.2...7.15.0)
219
+
220
+ ## 4.6.1
221
+
222
+ ### Fixes
223
+
224
+ - Make `configureScope` callback safe [#2510](https://github.com/getsentry/sentry-react-native/pull/2510)
225
+ - Allows collecting app start and slow/frozen frames if Native SDK is inited manually [#2517](https://github.com/getsentry/sentry-react-native/pull/2517)
226
+ - Nested breadcrumb data on android was not treated correctly [#2519](https://github.com/getsentry/sentry-react-native/pull/2519)
227
+
228
+ ### Dependencies
229
+
230
+ - Bump JavaScript SDK from v7.14.0 to v7.14.2 ([#2511](https://github.com/getsentry/sentry-react-native/pull/2511), [#2526](https://github.com/getsentry/sentry-react-native/pull/2526))
231
+ - [changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md#7142)
232
+ - [diff](https://github.com/getsentry/sentry-javascript/compare/7.14.0...7.14.2)
233
+ - Bump Cocoa SDK from v7.27.0 to v7.27.1 ([#2521](https://github.com/getsentry/sentry-react-native/pull/2521))
234
+ - [changelog](https://github.com/getsentry/sentry-cocoa/blob/master/CHANGELOG.md#7271)
235
+ - [diff](https://github.com/getsentry/sentry-cocoa/compare/7.27.0...7.27.1)
236
+ - Bump Android SDK from v6.4.2 to v6.4.3 ([#2520](https://github.com/getsentry/sentry-react-native/pull/2520))
237
+ - [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#643)
238
+ - [diff](https://github.com/getsentry/sentry-java/compare/6.4.2...6.4.3)
239
+
240
+ ## 5.0.0-alpha.5
241
+
242
+ ### Fixes
243
+
244
+ - Make `configureScope` callback safe [#2510](https://github.com/getsentry/sentry-react-native/pull/2510)
245
+
246
+ ### Dependencies
247
+
248
+ - Bump JavaScript SDK from v7.14.0 to v7.14.1 ([#2511](https://github.com/getsentry/sentry-react-native/pull/2511))
249
+ - [changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md#7141)
250
+ - [diff](https://github.com/getsentry/sentry-javascript/compare/7.14.0...7.14.1)
251
+ - Bump Cocoa SDK from v7.27.0 to v7.27.1 ([#2521](https://github.com/getsentry/sentry-react-native/pull/2521))
252
+ - [changelog](https://github.com/getsentry/sentry-cocoa/blob/master/CHANGELOG.md#7271)
253
+ - [diff](https://github.com/getsentry/sentry-cocoa/compare/7.27.0...7.27.1)
254
+ - Bump Android SDK from v6.4.2 to v6.4.3 ([#2520](https://github.com/getsentry/sentry-react-native/pull/2520))
255
+ - [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#643)
256
+ - [diff](https://github.com/getsentry/sentry-java/compare/6.4.2...6.4.3)
257
+
258
+ ## 4.6.0
259
+
260
+ ### Fixes
261
+
262
+ - SDK Gracefully downgrades when callback throws an error ([#2502](https://github.com/getsentry/sentry-react-native/pull/2502))
263
+ - React Navigation v5 ignores when current route is undefined after state changed. ([#2484](https://github.com/getsentry/sentry-react-native/pull/2484))
264
+
265
+ ### Features
266
+
267
+ - Add ClientReports ([#2496](https://github.com/getsentry/sentry-react-native/pull/2496))
268
+
269
+ ### Sentry Self-hosted Compatibility
270
+
271
+ - Starting with version `4.6.0` of the `@sentry/react-native` package, [Sentry's self hosted version >= v21.9.0](https://github.com/getsentry/self-hosted/releases) is required or you have to manually disable sending client reports via the `sendClientReports` option. This only applies to self-hosted Sentry. If you are using [sentry.io](https://sentry.io), no action is needed.
272
+
273
+ ### Dependencies
274
+
275
+ - Bump Cocoa SDK from v7.25.1 to v7.27.0 ([#2500](https://github.com/getsentry/sentry-react-native/pull/2500), [#2506](https://github.com/getsentry/sentry-react-native/pull/2506))
276
+ - [changelog](https://github.com/getsentry/sentry-cocoa/blob/master/CHANGELOG.md#7270)
277
+ - [diff](https://github.com/getsentry/sentry-cocoa/compare/7.25.1...7.27.0)
278
+ - Bump JavaScript SDK from v7.13.0 to v7.14.0 ([#2504](https://github.com/getsentry/sentry-react-native/pull/2504))
279
+ - [changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md#7140)
280
+ - [diff](https://github.com/getsentry/sentry-javascript/compare/7.13.0...7.14.0)
281
+
282
+ ## 5.0.0-alpha.4
283
+
284
+ - Latest changes from 4.5.0
285
+
286
+ ### Breaking changes
287
+
288
+ - New ReactNativeTracingOptions idleTimeoutMs and finalTimeoutMs replacing idleTimeout and maxTransactionDuration respectively ([#2481](https://github.com/getsentry/sentry-react-native/pull/2481))
289
+
290
+ ## 4.5.0
291
+
292
+ ### Features
293
+
294
+ - Add user feedback ([#2486](https://github.com/getsentry/sentry-react-native/pull/2486))
295
+ - Add typings for app hang functionality ([#2479](https://github.com/getsentry/sentry-react-native/pull/2479))
296
+
297
+ ### Fixes
298
+
299
+ - Update warm/cold start span ops ([#2487](https://github.com/getsentry/sentry-react-native/pull/2487))
300
+ - Detect hard crash the same as native sdks ([#2480](https://github.com/getsentry/sentry-react-native/pull/2480))
301
+ - Integrations factory receives default integrations ([#2494](https://github.com/getsentry/sentry-react-native/pull/2494))
302
+
303
+ ### Dependencies
304
+
305
+ - Bump Android SDK from v6.4.1 to v6.4.2 ([#2485](https://github.com/getsentry/sentry-react-native/pull/2485))
306
+ - [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#642)
307
+ - [diff](https://github.com/getsentry/sentry-java/compare/6.4.1...6.4.2)
308
+ - Bump JavaScript SDK from v7.12.1 to v7.13.0 ([#2478](https://github.com/getsentry/sentry-react-native/pull/2478))
309
+ - [changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md#7130)
310
+ - [diff](https://github.com/getsentry/sentry-javascript/compare/7.12.1...7.13.0)
311
+
312
+ ## 4.4.0
313
+
314
+ ### Features
315
+
316
+ - Add attachments support ([#2463](https://github.com/getsentry/sentry-react-native/pull/2463))
317
+
318
+ ## 4.3.1
319
+
320
+ ### Fixes
321
+
322
+ - ReactNativeTracingOptions maxTransactionDuration is in seconds ([#2469](https://github.com/getsentry/sentry-react-native/pull/2469))
323
+
324
+ ### Dependencies
325
+
326
+ - Bump Cocoa SDK from v7.24.1 to v7.25.1 ([#2465](https://github.com/getsentry/sentry-react-native/pull/2465))
327
+ - [changelog](https://github.com/getsentry/sentry-cocoa/blob/master/CHANGELOG.md#7251)
328
+ - [diff](https://github.com/getsentry/sentry-cocoa/compare/7.24.1...7.25.1)
329
+
330
+ ## 5.0.0-alpha.3
331
+
332
+ - Latest changes from 4.3.x
333
+
334
+ ### Dependencies
335
+
336
+ - Bump Wizard from v2.0.0 to v2.2.0 ([#2460](https://github.com/getsentry/sentry-react-native/pull/2460))
337
+ - [changelog](https://github.com/getsentry/sentry-wizard/blob/master/CHANGELOG.md#v220)
338
+ - [diff](https://github.com/getsentry/sentry-wizard/compare/v2.0.0...v2.2.0)
339
+
340
+ ## 4.3.0
341
+
342
+ ### Features
343
+
344
+ - Add Transaction Source for Dynamic Sampling Context ([#2454](https://github.com/getsentry/sentry-react-native/pull/2454))
345
+
346
+ ### Dependencies
347
+
348
+ - Bump Cocoa SDK from v7.23.0 to v7.24.1 ([#2456](https://github.com/getsentry/sentry-react-native/pull/2456))
349
+ - [changelog](https://github.com/getsentry/sentry-cocoa/blob/master/CHANGELOG.md#7241)
350
+ - [diff](https://github.com/getsentry/sentry-cocoa/compare/7.23.0...7.24.1)
351
+ - Bump Android SDK from v6.3.1 to v6.4.1 ([#2437](https://github.com/getsentry/sentry-react-native/pull/2437))
352
+ - [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#641)
353
+ - [diff](https://github.com/getsentry/sentry-java/compare/6.3.1...6.4.1)
354
+ - Bump JavaScript SDK from v7.9.0 to v7.12.1 ([#2451](https://github.com/getsentry/sentry-react-native/pull/2451))
355
+ - [changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md#7121)
356
+ - [diff](https://github.com/getsentry/sentry-javascript/compare/7.9.0...7.12.1)
357
+
358
+ ## 4.2.4
359
+
360
+ ### Fixes
361
+
362
+ - ReactNativeTracing wrongly marks transactions as deadline_exceeded when it reaches the idleTimeout ([#2427](https://github.com/getsentry/sentry-react-native/pull/2427))
363
+
364
+ ## 5.0.0-alpha.2
365
+
366
+ - Latest changes from 4.2.x
367
+
3
368
  ## 5.0.0-alpha.1
4
369
 
5
370
  ### Fixes
6
371
 
7
372
  - Auto linking for RN >= 0.69 ([#2332](https://github.com/getsentry/sentry-react-native/pull/2332))
8
373
 
374
+ ## 4.2.3
375
+
376
+ ### Fixes
377
+
378
+ - Bump Cocoa SDK to v7.23.0 ([#2401](https://github.com/getsentry/sentry-react-native/pull/2401))
379
+ - [changelog](https://github.com/getsentry/sentry-cocoa/blob/master/CHANGELOG.md#7230)
380
+ - [diff](https://github.com/getsentry/sentry-cocoa/compare/7.22.0...7.23.0)
381
+ - Bump Android SDK to v6.3.1 ([#2410](https://github.com/getsentry/sentry-react-native/pull/2410))
382
+ - [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#631)
383
+ - [diff](https://github.com/getsentry/sentry-java/compare/6.3.0...6.3.1)
384
+ - Bump JavaScript SDK to v7.9.0 ([#2412](https://github.com/getsentry/sentry-react-native/pull/2412))
385
+ - [changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md#790)
386
+ - [diff](https://github.com/getsentry/sentry-javascript/compare/7.7.0...7.9.0)
387
+
388
+ ## 4.2.2
389
+
390
+ ### Fixes
391
+
392
+ - Should not ignore `options.transport` function provided in `Sentry.init(...)` ([#2398](https://github.com/getsentry/sentry-react-native/pull/2398))
393
+
394
+ ## 4.2.1
395
+
396
+ ### Fixes
397
+
398
+ - SENTRY_DIST accepts non-number values on Android ([#2395](https://github.com/getsentry/sentry-react-native/pull/2395))
399
+
400
+ ### Features
401
+
402
+ - Bump Cocoa SDK to v7.22.0 ([#2392](https://github.com/getsentry/sentry-react-native/pull/2392))
403
+ - [changelog](https://github.com/getsentry/sentry-cocoa/blob/master/CHANGELOG.md#7220)
404
+ - [diff](https://github.com/getsentry/sentry-cocoa/compare/7.21.0...7.22.0)
405
+
9
406
  ## 4.2.0
10
407
 
11
408
  ### Features
@@ -22,7 +419,9 @@
22
419
 
23
420
  ## 4.1.3
24
421
 
25
- fix: Solve reference to private cocoa SDK class #2369
422
+ ### Fixes
423
+
424
+ - Solve reference to private cocoa SDK class ([#2369](https://github.com/getsentry/sentry-react-native/pull/2369))
26
425
 
27
426
  ## 4.1.2
28
427
 
@@ -695,10 +1094,10 @@ This release is a breaking change an code changes are necessary.
695
1094
  New way to import and init the SDK:
696
1095
 
697
1096
  ```js
698
- import * as Sentry from "@sentry/react-native";
1097
+ import * as Sentry from '@sentry/react-native';
699
1098
 
700
1099
  Sentry.init({
701
- dsn: "DSN",
1100
+ dsn: 'DSN',
702
1101
  });
703
1102
  ```
704
1103
 
@@ -933,7 +1332,7 @@ We decided to deactivate stack trace merging by default on iOS since it seems to
933
1332
  To activate it set:
934
1333
 
935
1334
  ```js
936
- Sentry.config("___DSN___", {
1335
+ Sentry.config('___DSN___', {
937
1336
  deactivateStacktraceMerging: false,
938
1337
  });
939
1338
  ```
package/README.md CHANGED
@@ -75,6 +75,12 @@ If you are coming from `react-native-sentry` which was our SDK `< 1.0` you shoul
75
75
 
76
76
  ## Blog posts
77
77
 
78
+ [Introducing Mobile Screenshots and Suspect Commits](https://blog.sentry.io/2022/07/07/introducing-mobile-screenshots-and-suspect-commits).
79
+
80
+ [Tips for Optimizing React Native Application Performance - Part 2: Using Sentry SDK for Performance Monitoring](https://blog.sentry.io/2022/06/28/tips-for-optimizing-react-native-application-performance-part-2-using-sentry).
81
+
82
+ [Tips for Optimizing React Native Application Performance: Part 1](https://blog.sentry.io/2022/06/01/tips-for-optimizing-react-native-application-performance-part-1).
83
+
78
84
  [Tracking Stability in a Bluetooth Low Energy-Based React-Native App](https://blog.sentry.io/2022/02/22/tracking-stability-in-a-bluetooth-low-energy-based-react-native-app).
79
85
 
80
86
  [Mobile Vitals - Four Metrics Every Mobile Developer Should Care About](https://blog.sentry.io/2021/08/23/mobile-vitals-four-metrics-every-mobile-developer-should-care-about/).
package/RNSentry.podspec CHANGED
@@ -1,6 +1,8 @@
1
1
  require 'json'
2
2
  version = JSON.parse(File.read('package.json'))["version"]
3
3
 
4
+ folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
5
+
4
6
  Pod::Spec.new do |s|
5
7
  s.name = 'RNSentry'
6
8
  s.version = version
@@ -10,15 +12,30 @@ Pod::Spec.new do |s|
10
12
  s.homepage = "https://github.com/getsentry/sentry-react-native"
11
13
  s.source = { :git => 'https://github.com/getsentry/sentry-react-native.git', :tag => "#{s.version}"}
12
14
 
13
- s.ios.deployment_target = "8.0"
14
- s.osx.deployment_target = "10.10"
15
- s.tvos.deployment_target = "9.0"
15
+ s.ios.deployment_target = "11.0"
16
+ s.osx.deployment_target = "10.13"
17
+ s.tvos.deployment_target = "11.0"
16
18
 
17
19
  s.preserve_paths = '*.js'
18
20
 
19
21
  s.dependency 'React-Core'
20
- s.dependency 'Sentry', '7.21.0'
22
+ s.dependency 'Sentry/HybridSDK', '7.31.5'
21
23
 
22
- s.source_files = 'ios/RNSentry.{h,m}'
24
+ s.source_files = 'ios/RNSentry.{h,mm}'
23
25
  s.public_header_files = 'ios/RNSentry.h'
26
+
27
+ # This guard prevent to install the dependencies when we run `pod install` in the old architecture.
28
+ if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
29
+ s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
30
+ s.pod_target_xcconfig = {
31
+ "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
32
+ "CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
33
+ }
34
+
35
+ s.dependency "React-Codegen"
36
+ s.dependency "RCT-Folly"
37
+ s.dependency "RCTRequired"
38
+ s.dependency "RCTTypeSafety"
39
+ s.dependency "ReactCommon/turbomodule/core"
40
+ end
24
41
  end
@@ -2,13 +2,20 @@ def safeExtGet(prop, fallback) {
2
2
  rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
3
3
  }
4
4
 
5
+ def isNewArchitectureEnabled() {
6
+ return project.hasProperty("newArchEnabled") && project.newArchEnabled == "true"
7
+ }
8
+
5
9
  apply plugin: 'com.android.library'
10
+ if (isNewArchitectureEnabled()) {
11
+ apply plugin: 'com.facebook.react'
12
+ }
6
13
 
7
14
  android {
8
15
  compileSdkVersion safeExtGet('compileSdkVersion', 31)
9
16
 
10
17
  defaultConfig {
11
- minSdkVersion safeExtGet('minSdkVersion', 16)
18
+ minSdkVersion safeExtGet('minSdkVersion', 21)
12
19
  targetSdkVersion safeExtGet('targetSdkVersion', 31)
13
20
  versionCode 1
14
21
  versionName "1.0"
@@ -19,10 +26,21 @@ android {
19
26
  sourceCompatibility JavaVersion.VERSION_1_8
20
27
  targetCompatibility JavaVersion.VERSION_1_8
21
28
  }
29
+ buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
30
+ }
31
+
32
+ sourceSets {
33
+ main {
34
+ if (isNewArchitectureEnabled()) {
35
+ java.srcDirs += ['src/newarch']
36
+ } else {
37
+ java.srcDirs += ['src/oldarch']
38
+ }
39
+ }
22
40
  }
23
41
  }
24
42
 
25
43
  dependencies {
26
44
  implementation 'com.facebook.react:react-native:+'
27
- api 'io.sentry:sentry-android:6.3.0'
45
+ api 'io.sentry:sentry-android:6.11.0'
28
46
  }