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

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 (161) hide show
  1. package/CHANGELOG.md +346 -1
  2. package/README.md +6 -0
  3. package/RNSentry.podspec +21 -4
  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 +17 -4
  14. package/dist/js/client.d.ts.map +1 -1
  15. package/dist/js/client.js +90 -16
  16. package/dist/js/client.js.map +1 -1
  17. package/dist/js/index.d.ts +3 -3
  18. package/dist/js/index.d.ts.map +1 -1
  19. package/dist/js/index.js +2 -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 +33 -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 +6 -4
  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.js +1 -1
  49. package/dist/js/measurements.js.map +1 -1
  50. package/dist/js/misc.d.ts +9 -0
  51. package/dist/js/misc.d.ts.map +1 -0
  52. package/dist/js/misc.js +17 -0
  53. package/dist/js/misc.js.map +1 -0
  54. package/dist/js/options.d.ts +45 -8
  55. package/dist/js/options.d.ts.map +1 -1
  56. package/dist/js/options.js.map +1 -1
  57. package/dist/js/scope.d.ts +10 -2
  58. package/dist/js/scope.d.ts.map +1 -1
  59. package/dist/js/scope.js +13 -1
  60. package/dist/js/scope.js.map +1 -1
  61. package/dist/js/sdk.d.ts +25 -0
  62. package/dist/js/sdk.d.ts.map +1 -1
  63. package/dist/js/sdk.js +85 -27
  64. package/dist/js/sdk.js.map +1 -1
  65. package/dist/js/tools/ModulesCollector.d.ts +17 -0
  66. package/dist/js/tools/ModulesCollector.d.ts.map +1 -0
  67. package/dist/js/tools/ModulesCollector.js +109 -0
  68. package/dist/js/tools/ModulesCollector.js.map +1 -0
  69. package/dist/js/tools/collectModules.d.ts +2 -0
  70. package/dist/js/tools/collectModules.d.ts.map +1 -0
  71. package/dist/js/tools/collectModules.js +11 -0
  72. package/dist/js/tools/collectModules.js.map +1 -0
  73. package/dist/js/touchevents.d.ts +4 -0
  74. package/dist/js/touchevents.d.ts.map +1 -1
  75. package/dist/js/touchevents.js.map +1 -1
  76. package/dist/js/tracing/nativeframes.js.map +1 -1
  77. package/dist/js/tracing/reactnativenavigation.d.ts +9 -0
  78. package/dist/js/tracing/reactnativenavigation.d.ts.map +1 -1
  79. package/dist/js/tracing/reactnativenavigation.js +20 -12
  80. package/dist/js/tracing/reactnativenavigation.js.map +1 -1
  81. package/dist/js/tracing/reactnativetracing.d.ts +15 -6
  82. package/dist/js/tracing/reactnativetracing.d.ts.map +1 -1
  83. package/dist/js/tracing/reactnativetracing.js +16 -9
  84. package/dist/js/tracing/reactnativetracing.js.map +1 -1
  85. package/dist/js/tracing/reactnavigation.d.ts +7 -1
  86. package/dist/js/tracing/reactnavigation.d.ts.map +1 -1
  87. package/dist/js/tracing/reactnavigation.js +31 -23
  88. package/dist/js/tracing/reactnavigation.js.map +1 -1
  89. package/dist/js/tracing/reactnavigationv4.d.ts +9 -9
  90. package/dist/js/tracing/reactnavigationv4.d.ts.map +1 -1
  91. package/dist/js/tracing/reactnavigationv4.js +27 -15
  92. package/dist/js/tracing/reactnavigationv4.js.map +1 -1
  93. package/dist/js/tracing/routingInstrumentation.d.ts +1 -1
  94. package/dist/js/tracing/routingInstrumentation.d.ts.map +1 -1
  95. package/dist/js/tracing/routingInstrumentation.js.map +1 -1
  96. package/dist/js/tracing/utils.d.ts +4 -3
  97. package/dist/js/tracing/utils.d.ts.map +1 -1
  98. package/dist/js/tracing/utils.js +7 -10
  99. package/dist/js/tracing/utils.js.map +1 -1
  100. package/dist/js/transports/TextEncoder.d.ts +3 -0
  101. package/dist/js/transports/TextEncoder.d.ts.map +1 -0
  102. package/dist/js/transports/TextEncoder.js +12 -0
  103. package/dist/js/transports/TextEncoder.js.map +1 -0
  104. package/dist/js/transports/native.d.ts +6 -1
  105. package/dist/js/transports/native.d.ts.map +1 -1
  106. package/dist/js/transports/native.js +6 -4
  107. package/dist/js/transports/native.js.map +1 -1
  108. package/dist/js/user.d.ts +6 -0
  109. package/dist/js/user.d.ts.map +1 -0
  110. package/dist/js/user.js +1 -0
  111. package/dist/js/user.js.map +1 -0
  112. package/dist/js/utils/envelope.d.ts +12 -0
  113. package/dist/js/utils/envelope.d.ts.map +1 -0
  114. package/dist/js/utils/envelope.js +21 -0
  115. package/dist/js/utils/envelope.js.map +1 -0
  116. package/dist/js/utils/environment.d.ts +7 -0
  117. package/dist/js/utils/environment.d.ts.map +1 -0
  118. package/dist/js/utils/environment.js +14 -0
  119. package/dist/js/utils/environment.js.map +1 -0
  120. package/dist/js/utils/outcome.d.ts +6 -0
  121. package/dist/js/utils/outcome.d.ts.map +1 -0
  122. package/dist/js/utils/outcome.js +19 -0
  123. package/dist/js/utils/outcome.js.map +1 -0
  124. package/dist/js/utils/safe.d.ts +18 -0
  125. package/dist/js/utils/safe.d.ts.map +1 -0
  126. package/dist/js/utils/safe.js +46 -0
  127. package/dist/js/utils/safe.js.map +1 -0
  128. package/dist/js/utils/worldwide.d.ts +13 -0
  129. package/dist/js/utils/worldwide.d.ts.map +1 -0
  130. package/dist/js/utils/worldwide.js +4 -0
  131. package/dist/js/utils/worldwide.js.map +1 -0
  132. package/dist/js/vendor/buffer/index.d.ts +2 -0
  133. package/dist/js/vendor/buffer/index.d.ts.map +1 -0
  134. package/dist/js/vendor/buffer/index.js +2 -0
  135. package/dist/js/vendor/buffer/index.js.map +1 -0
  136. package/dist/js/vendor/buffer/utf8ToBytes.d.ts +10 -0
  137. package/dist/js/vendor/buffer/utf8ToBytes.d.ts.map +1 -0
  138. package/dist/js/vendor/buffer/utf8ToBytes.js +82 -0
  139. package/dist/js/vendor/buffer/utf8ToBytes.js.map +1 -0
  140. package/dist/js/vendor/index.d.ts +2 -0
  141. package/dist/js/vendor/index.d.ts.map +1 -0
  142. package/dist/js/vendor/index.js +2 -0
  143. package/dist/js/vendor/index.js.map +1 -0
  144. package/dist/js/version.d.ts +2 -1
  145. package/dist/js/version.d.ts.map +1 -1
  146. package/dist/js/version.js +2 -1
  147. package/dist/js/version.js.map +1 -1
  148. package/dist/js/wrapper.d.ts +13 -4
  149. package/dist/js/wrapper.d.ts.map +1 -1
  150. package/dist/js/wrapper.js +126 -71
  151. package/dist/js/wrapper.js.map +1 -1
  152. package/ios/{RNSentry.m → RNSentry.mm} +98 -57
  153. package/package.json +31 -25
  154. package/sample-new-architecture/react-native.config.js +10 -0
  155. package/scripts/collect-modules.sh +43 -0
  156. package/sentry.gradle +57 -6
  157. package/src/js/NativeRNSentry.ts +66 -0
  158. package/dist/js/definitions.d.ts +0 -52
  159. package/dist/js/definitions.d.ts.map +0 -1
  160. package/dist/js/definitions.js +0 -1
  161. package/dist/js/definitions.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,11 +1,354 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.0.0-alpha.10
4
+
5
+ - Latest changes from 4.11.0
6
+
7
+ ### Dependencies
8
+
9
+ - Bump CLI from v1.74.4 to v2.10.0 ([#2669](https://github.com/getsentry/sentry-react-native/pull/2669))
10
+ - [changelog](https://github.com/getsentry/sentry-cli/blob/master/CHANGELOG.md#2100)
11
+ - [diff](https://github.com/getsentry/sentry-cli/compare/1.74.4...2.10.0)
12
+
13
+ ## 4.11.0
14
+
15
+ ### Features
16
+
17
+ - Screenshots ([#2610](https://github.com/getsentry/sentry-react-native/pull/2610))
18
+
19
+ ## 4.10.1
20
+
21
+ ### Fixes
22
+
23
+ - Bump Wizard from v1.2.17 to v1.4.0 ([#2645](https://github.com/getsentry/sentry-react-native/pull/2645))
24
+ - [changelog](https://github.com/getsentry/sentry-wizard/blob/master/CHANGELOG.md#140)
25
+ - [diff](https://github.com/getsentry/sentry-wizard/compare/v1.2.17...v1.4.0)
26
+ - Android builds without ext config, auto create assets dir for modules ([#2652](https://github.com/getsentry/sentry-react-native/pull/2652))
27
+ - Exit gracefully if source map file for collecting modules doesn't exist ([#2655](https://github.com/getsentry/sentry-react-native/pull/2655))
28
+ - Create only one clean-up tasks for modules collection ([#2657](https://github.com/getsentry/sentry-react-native/pull/2657))
29
+
30
+ ### Dependencies
31
+
32
+ - Bump Android SDK from v6.8.0 to v6.9.1 ([#2653](https://github.com/getsentry/sentry-react-native/pull/2653))
33
+ - [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#691)
34
+ - [diff](https://github.com/getsentry/sentry-java/compare/6.8.0...6.9.1)
35
+
36
+ ## 5.0.0-alpha.9
37
+
38
+ - Latest changes from 4.10.0
39
+
40
+ ### Fixes
41
+
42
+ - Add missing source Spec for RNSentry Codegen. ([#2639](https://github.com/getsentry/sentry-react-native/pull/2639))
43
+
44
+ ## 4.10.0
45
+
46
+ ### Features
47
+
48
+ - JS Runtime dependencies are sent in Events ([#2606](https://github.com/getsentry/sentry-react-native/pull/2606))
49
+ - 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).
50
+
51
+ ### Dependencies
52
+
53
+ - Bump JavaScript SDK from v7.20.1 to v7.21.1 ([#2636](https://github.com/getsentry/sentry-react-native/pull/2636))
54
+ - [changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md#7211)
55
+ - [diff](https://github.com/getsentry/sentry-javascript/compare/7.20.1...7.21.1)
56
+
57
+ ## 5.0.0-alpha.8
58
+
59
+ - Latest changes from 4.9.0
60
+
61
+ ## 4.9.0
62
+
63
+ ### Features
64
+
65
+ - Add `maxQueueSize` option ([#2578](https://github.com/getsentry/sentry-react-native/pull/2578))
66
+
67
+ ### Fixes
68
+
69
+ - Use `Scope` class rather than `Scope` type for top-level functions ([#2627](https://github.com/getsentry/sentry-react-native/pull/2627))
70
+
71
+ ### Dependencies
72
+
73
+ - 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))
74
+ - [changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md#7201)
75
+ - [diff](https://github.com/getsentry/sentry-javascript/compare/7.16.0...7.20.1)
76
+ - 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))
77
+ - [changelog](https://github.com/getsentry/sentry-cocoa/blob/master/CHANGELOG.md#7312)
78
+ - [diff](https://github.com/getsentry/sentry-cocoa/compare/7.29.0...7.31.2)
79
+ - 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))
80
+ - [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#680)
81
+ - [diff](https://github.com/getsentry/sentry-java/compare/6.6.0...6.8.0)
82
+
83
+ ## 4.8.0
84
+
85
+ ### Fixes
86
+
87
+ - Message event can have attached stacktrace ([#2577](https://github.com/getsentry/sentry-react-native/pull/2577))
88
+ - Fixed maximum call stack exceeded error resulting from large payloads ([#2579](https://github.com/getsentry/sentry-react-native/pull/2579))
89
+
90
+ ### Dependencies
91
+
92
+ - Bump Android SDK from v6.5.0 to v6.6.0 ([#2572](https://github.com/getsentry/sentry-react-native/pull/2572))
93
+ - [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#660)
94
+ - [diff](https://github.com/getsentry/sentry-java/compare/6.5.0...6.6.0)
95
+ - Bump Cocoa SDK from v7.28.0 to v7.29.0 ([#2571](https://github.com/getsentry/sentry-react-native/pull/2571))
96
+ - [changelog](https://github.com/getsentry/sentry-cocoa/blob/master/CHANGELOG.md#7290)
97
+ - [diff](https://github.com/getsentry/sentry-cocoa/compare/7.28.0...7.29.0)
98
+
99
+ ## 5.0.0-alpha.7
100
+
101
+ - Latest changes from 4.7.1
102
+
103
+ ### Fixes
104
+
105
+ - Remove hardcoded Folly version ([#2558](https://github.com/getsentry/sentry-react-native/pull/2558))
106
+
107
+ ### Features
108
+
109
+ - 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))
110
+
111
+ ### Dependencies
112
+
113
+ - Bump CLI from v1.74.4 to v2.7.0 ([#2457](https://github.com/getsentry/sentry-react-native/pull/2457))
114
+ - [changelog](https://github.com/getsentry/sentry-cli/blob/master/CHANGELOG.md#270)
115
+ - [diff](https://github.com/getsentry/sentry-cli/compare/1.74.4...2.7.0)
116
+ - Bump Android SDK from v6.5.0 to v6.6.0 ([#2572](https://github.com/getsentry/sentry-react-native/pull/2572))
117
+ - [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#660)
118
+ - [diff](https://github.com/getsentry/sentry-java/compare/6.5.0...6.6.0)
119
+ - Bump Cocoa SDK from v7.28.0 to v7.29.0 ([#2571](https://github.com/getsentry/sentry-react-native/pull/2571))
120
+ - [changelog](https://github.com/getsentry/sentry-cocoa/blob/master/CHANGELOG.md#7290)
121
+ - [diff](https://github.com/getsentry/sentry-cocoa/compare/7.28.0...7.29.0)
122
+
123
+ ## 4.7.1
124
+
125
+ ### Fixes
126
+
127
+ - Remove duplicate sdk package record from envelope ([#2570](https://github.com/getsentry/sentry-react-native/pull/2570))
128
+ - Fix `appHangsTimeoutInterval` -> `appHangTimeoutInterval` option name ([#2574](https://github.com/getsentry/sentry-react-native/pull/2574))
129
+
130
+ ## 4.7.0
131
+
132
+ ### Dependencies
133
+
134
+ - Bump Android SDK from v6.4.3 to v6.5.0 ([#2535](https://github.com/getsentry/sentry-react-native/pull/2535))
135
+ - [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#650)
136
+ - [diff](https://github.com/getsentry/sentry-java/compare/6.4.3...6.5.0)
137
+ - 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))
138
+ - [changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md#7160)
139
+ - [diff](https://github.com/getsentry/sentry-javascript/compare/7.14.2...7.16.0)
140
+ - Bump Cocoa SDK from v7.27.1 to v7.28.0 ([#2548](https://github.com/getsentry/sentry-react-native/pull/2548))
141
+ - [changelog](https://github.com/getsentry/sentry-cocoa/blob/master/CHANGELOG.md#7280)
142
+ - [diff](https://github.com/getsentry/sentry-cocoa/compare/7.27.1...7.28.0)
143
+
144
+ ## 5.0.0-alpha.6
145
+
146
+ - Latest changes from 4.6.1
147
+
148
+ ### Features
149
+
150
+ - Add initial support for the RN New Architecture, backwards compatible RNSentry Turbo Module ([#2522](https://github.com/getsentry/sentry-react-native/pull/2522))
151
+
152
+ ### Breaking changes
153
+
154
+ - New ReactNativeTracingOptions idleTimeoutMs and finalTimeoutMs replacing idleTimeout and maxTransactionDuration respectively ([#2481](https://github.com/getsentry/sentry-react-native/pull/2481))
155
+ - 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))
156
+
157
+ ### Dependencies
158
+
159
+ - Bump Android SDK from v6.4.3 to v6.5.0 ([#2535](https://github.com/getsentry/sentry-react-native/pull/2535))
160
+ - [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#650)
161
+ - [diff](https://github.com/getsentry/sentry-java/compare/6.4.3...6.5.0)
162
+ - Bump JavaScript SDK from v7.14.2 to v7.15.0 ([#2536](https://github.com/getsentry/sentry-react-native/pull/2536))
163
+ - [changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md#7150)
164
+ - [diff](https://github.com/getsentry/sentry-javascript/compare/7.14.2...7.15.0)
165
+
166
+ ## 4.6.1
167
+
168
+ ### Fixes
169
+
170
+ - Make `configureScope` callback safe [#2510](https://github.com/getsentry/sentry-react-native/pull/2510)
171
+ - Allows collecting app start and slow/frozen frames if Native SDK is inited manually [#2517](https://github.com/getsentry/sentry-react-native/pull/2517)
172
+ - Nested breadcrumb data on android was not treated correctly [#2519](https://github.com/getsentry/sentry-react-native/pull/2519)
173
+
174
+ ### Dependencies
175
+
176
+ - 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))
177
+ - [changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md#7142)
178
+ - [diff](https://github.com/getsentry/sentry-javascript/compare/7.14.0...7.14.2)
179
+ - Bump Cocoa SDK from v7.27.0 to v7.27.1 ([#2521](https://github.com/getsentry/sentry-react-native/pull/2521))
180
+ - [changelog](https://github.com/getsentry/sentry-cocoa/blob/master/CHANGELOG.md#7271)
181
+ - [diff](https://github.com/getsentry/sentry-cocoa/compare/7.27.0...7.27.1)
182
+ - Bump Android SDK from v6.4.2 to v6.4.3 ([#2520](https://github.com/getsentry/sentry-react-native/pull/2520))
183
+ - [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#643)
184
+ - [diff](https://github.com/getsentry/sentry-java/compare/6.4.2...6.4.3)
185
+
186
+ ## 5.0.0-alpha.5
187
+
188
+ ### Fixes
189
+
190
+ - Make `configureScope` callback safe [#2510](https://github.com/getsentry/sentry-react-native/pull/2510)
191
+
192
+ ### Dependencies
193
+
194
+ - Bump JavaScript SDK from v7.14.0 to v7.14.1 ([#2511](https://github.com/getsentry/sentry-react-native/pull/2511))
195
+ - [changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md#7141)
196
+ - [diff](https://github.com/getsentry/sentry-javascript/compare/7.14.0...7.14.1)
197
+ - Bump Cocoa SDK from v7.27.0 to v7.27.1 ([#2521](https://github.com/getsentry/sentry-react-native/pull/2521))
198
+ - [changelog](https://github.com/getsentry/sentry-cocoa/blob/master/CHANGELOG.md#7271)
199
+ - [diff](https://github.com/getsentry/sentry-cocoa/compare/7.27.0...7.27.1)
200
+ - Bump Android SDK from v6.4.2 to v6.4.3 ([#2520](https://github.com/getsentry/sentry-react-native/pull/2520))
201
+ - [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#643)
202
+ - [diff](https://github.com/getsentry/sentry-java/compare/6.4.2...6.4.3)
203
+
204
+ ## 4.6.0
205
+
206
+ ### Fixes
207
+
208
+ - SDK Gracefully downgrades when callback throws an error ([#2502](https://github.com/getsentry/sentry-react-native/pull/2502))
209
+ - React Navigation v5 ignores when current route is undefined after state changed. ([#2484](https://github.com/getsentry/sentry-react-native/pull/2484))
210
+
211
+ ### Features
212
+
213
+ - Add ClientReports ([#2496](https://github.com/getsentry/sentry-react-native/pull/2496))
214
+
215
+ ### Sentry Self-hosted Compatibility
216
+
217
+ - 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.
218
+
219
+ ### Dependencies
220
+
221
+ - 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))
222
+ - [changelog](https://github.com/getsentry/sentry-cocoa/blob/master/CHANGELOG.md#7270)
223
+ - [diff](https://github.com/getsentry/sentry-cocoa/compare/7.25.1...7.27.0)
224
+ - Bump JavaScript SDK from v7.13.0 to v7.14.0 ([#2504](https://github.com/getsentry/sentry-react-native/pull/2504))
225
+ - [changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md#7140)
226
+ - [diff](https://github.com/getsentry/sentry-javascript/compare/7.13.0...7.14.0)
227
+
228
+ ## 5.0.0-alpha.4
229
+
230
+ - Latest changes from 4.5.0
231
+
232
+ ### Breaking changes
233
+
234
+ - New ReactNativeTracingOptions idleTimeoutMs and finalTimeoutMs replacing idleTimeout and maxTransactionDuration respectively ([#2481](https://github.com/getsentry/sentry-react-native/pull/2481))
235
+
236
+ ## 4.5.0
237
+
238
+ ### Features
239
+
240
+ - Add user feedback ([#2486](https://github.com/getsentry/sentry-react-native/pull/2486))
241
+ - Add typings for app hang functionality ([#2479](https://github.com/getsentry/sentry-react-native/pull/2479))
242
+
243
+ ### Fixes
244
+
245
+ - Update warm/cold start span ops ([#2487](https://github.com/getsentry/sentry-react-native/pull/2487))
246
+ - Detect hard crash the same as native sdks ([#2480](https://github.com/getsentry/sentry-react-native/pull/2480))
247
+ - Integrations factory receives default integrations ([#2494](https://github.com/getsentry/sentry-react-native/pull/2494))
248
+
249
+ ### Dependencies
250
+
251
+ - Bump Android SDK from v6.4.1 to v6.4.2 ([#2485](https://github.com/getsentry/sentry-react-native/pull/2485))
252
+ - [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#642)
253
+ - [diff](https://github.com/getsentry/sentry-java/compare/6.4.1...6.4.2)
254
+ - Bump JavaScript SDK from v7.12.1 to v7.13.0 ([#2478](https://github.com/getsentry/sentry-react-native/pull/2478))
255
+ - [changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md#7130)
256
+ - [diff](https://github.com/getsentry/sentry-javascript/compare/7.12.1...7.13.0)
257
+
258
+ ## 4.4.0
259
+
260
+ ### Features
261
+
262
+ - Add attachments support ([#2463](https://github.com/getsentry/sentry-react-native/pull/2463))
263
+
264
+ ## 4.3.1
265
+
266
+ ### Fixes
267
+
268
+ - ReactNativeTracingOptions maxTransactionDuration is in seconds ([#2469](https://github.com/getsentry/sentry-react-native/pull/2469))
269
+
270
+ ### Dependencies
271
+
272
+ - Bump Cocoa SDK from v7.24.1 to v7.25.1 ([#2465](https://github.com/getsentry/sentry-react-native/pull/2465))
273
+ - [changelog](https://github.com/getsentry/sentry-cocoa/blob/master/CHANGELOG.md#7251)
274
+ - [diff](https://github.com/getsentry/sentry-cocoa/compare/7.24.1...7.25.1)
275
+
276
+ ## 5.0.0-alpha.3
277
+
278
+ - Latest changes from 4.3.x
279
+
280
+ ### Dependencies
281
+
282
+ - Bump Wizard from v2.0.0 to v2.2.0 ([#2460](https://github.com/getsentry/sentry-react-native/pull/2460))
283
+ - [changelog](https://github.com/getsentry/sentry-wizard/blob/master/CHANGELOG.md#v220)
284
+ - [diff](https://github.com/getsentry/sentry-wizard/compare/v2.0.0...v2.2.0)
285
+
286
+ ## 4.3.0
287
+
288
+ ### Features
289
+
290
+ - Add Transaction Source for Dynamic Sampling Context ([#2454](https://github.com/getsentry/sentry-react-native/pull/2454))
291
+
292
+ ### Dependencies
293
+
294
+ - Bump Cocoa SDK from v7.23.0 to v7.24.1 ([#2456](https://github.com/getsentry/sentry-react-native/pull/2456))
295
+ - [changelog](https://github.com/getsentry/sentry-cocoa/blob/master/CHANGELOG.md#7241)
296
+ - [diff](https://github.com/getsentry/sentry-cocoa/compare/7.23.0...7.24.1)
297
+ - Bump Android SDK from v6.3.1 to v6.4.1 ([#2437](https://github.com/getsentry/sentry-react-native/pull/2437))
298
+ - [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#641)
299
+ - [diff](https://github.com/getsentry/sentry-java/compare/6.3.1...6.4.1)
300
+ - Bump JavaScript SDK from v7.9.0 to v7.12.1 ([#2451](https://github.com/getsentry/sentry-react-native/pull/2451))
301
+ - [changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md#7121)
302
+ - [diff](https://github.com/getsentry/sentry-javascript/compare/7.9.0...7.12.1)
303
+
304
+ ## 4.2.4
305
+
306
+ ### Fixes
307
+
308
+ - ReactNativeTracing wrongly marks transactions as deadline_exceeded when it reaches the idleTimeout ([#2427](https://github.com/getsentry/sentry-react-native/pull/2427))
309
+
310
+ ## 5.0.0-alpha.2
311
+
312
+ - Latest changes from 4.2.x
313
+
3
314
  ## 5.0.0-alpha.1
4
315
 
5
316
  ### Fixes
6
317
 
7
318
  - Auto linking for RN >= 0.69 ([#2332](https://github.com/getsentry/sentry-react-native/pull/2332))
8
319
 
320
+ ## 4.2.3
321
+
322
+ ### Fixes
323
+
324
+ - Bump Cocoa SDK to v7.23.0 ([#2401](https://github.com/getsentry/sentry-react-native/pull/2401))
325
+ - [changelog](https://github.com/getsentry/sentry-cocoa/blob/master/CHANGELOG.md#7230)
326
+ - [diff](https://github.com/getsentry/sentry-cocoa/compare/7.22.0...7.23.0)
327
+ - Bump Android SDK to v6.3.1 ([#2410](https://github.com/getsentry/sentry-react-native/pull/2410))
328
+ - [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#631)
329
+ - [diff](https://github.com/getsentry/sentry-java/compare/6.3.0...6.3.1)
330
+ - Bump JavaScript SDK to v7.9.0 ([#2412](https://github.com/getsentry/sentry-react-native/pull/2412))
331
+ - [changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md#790)
332
+ - [diff](https://github.com/getsentry/sentry-javascript/compare/7.7.0...7.9.0)
333
+
334
+ ## 4.2.2
335
+
336
+ ### Fixes
337
+
338
+ - Should not ignore `options.transport` function provided in `Sentry.init(...)` ([#2398](https://github.com/getsentry/sentry-react-native/pull/2398))
339
+
340
+ ## 4.2.1
341
+
342
+ ### Fixes
343
+
344
+ - SENTRY_DIST accepts non-number values on Android ([#2395](https://github.com/getsentry/sentry-react-native/pull/2395))
345
+
346
+ ### Features
347
+
348
+ - Bump Cocoa SDK to v7.22.0 ([#2392](https://github.com/getsentry/sentry-react-native/pull/2392))
349
+ - [changelog](https://github.com/getsentry/sentry-cocoa/blob/master/CHANGELOG.md#7220)
350
+ - [diff](https://github.com/getsentry/sentry-cocoa/compare/7.21.0...7.22.0)
351
+
9
352
  ## 4.2.0
10
353
 
11
354
  ### Features
@@ -22,7 +365,9 @@
22
365
 
23
366
  ## 4.1.3
24
367
 
25
- fix: Solve reference to private cocoa SDK class #2369
368
+ ### Fixes
369
+
370
+ - Solve reference to private cocoa SDK class ([#2369](https://github.com/getsentry/sentry-react-native/pull/2369))
26
371
 
27
372
  ## 4.1.2
28
373
 
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"
15
+ s.ios.deployment_target = "12.4"
14
16
  s.osx.deployment_target = "10.10"
15
- s.tvos.deployment_target = "9.0"
17
+ s.tvos.deployment_target = "12.4"
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.2'
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.9.1'
28
46
  }