@crumbsdk/react-native 0.0.1-rc.3 → 0.0.1-rc.5

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 (373) hide show
  1. package/README.md +280 -8
  2. package/android/build.gradle +1 -1
  3. package/android/src/main/java/com/margelo/nitro/crumbsdk/reactnative/CrumbReactNative.kt +121 -3
  4. package/app.plugin.js +52 -0
  5. package/ios/CrumbReactNative.swift +135 -3
  6. package/lib/module/NativeCrumbReactNative.web.js +5 -1
  7. package/lib/module/NativeCrumbReactNative.web.js.map +1 -1
  8. package/lib/module/build-release.js +19 -0
  9. package/lib/module/build-release.js.map +1 -0
  10. package/lib/module/index.js +94 -2
  11. package/lib/module/index.js.map +1 -1
  12. package/lib/module/javascript-crash-capture.js +497 -0
  13. package/lib/module/javascript-crash-capture.js.map +1 -0
  14. package/lib/module/log-buffer.js +22 -2
  15. package/lib/module/log-buffer.js.map +1 -1
  16. package/lib/module/screen-context.js +127 -0
  17. package/lib/module/screen-context.js.map +1 -0
  18. package/lib/typescript/src/CrumbReactNative.nitro.d.ts +5 -1
  19. package/lib/typescript/src/CrumbReactNative.nitro.d.ts.map +1 -1
  20. package/lib/typescript/src/NativeCrumbReactNative.web.d.ts.map +1 -1
  21. package/lib/typescript/src/build-release.d.ts +6 -0
  22. package/lib/typescript/src/build-release.d.ts.map +1 -0
  23. package/lib/typescript/src/index.d.ts +8 -2
  24. package/lib/typescript/src/index.d.ts.map +1 -1
  25. package/lib/typescript/src/javascript-crash-capture.d.ts +74 -0
  26. package/lib/typescript/src/javascript-crash-capture.d.ts.map +1 -0
  27. package/lib/typescript/src/log-buffer.d.ts +1 -0
  28. package/lib/typescript/src/log-buffer.d.ts.map +1 -1
  29. package/lib/typescript/src/screen-context.d.ts +19 -0
  30. package/lib/typescript/src/screen-context.d.ts.map +1 -0
  31. package/lib/typescript/src/types.d.ts +38 -0
  32. package/lib/typescript/src/types.d.ts.map +1 -1
  33. package/metro.cjs +35 -0
  34. package/metro.d.cts +2 -0
  35. package/native/ios/CrumbSDKCore.podspec +28 -0
  36. package/native/ios/CrumbSDKUI.podspec +38 -0
  37. package/native/ios/LICENSE +201 -0
  38. package/native/ios/PLCrashReporter/CrashReporter.xcframework/Info.plist +96 -0
  39. package/native/ios/PLCrashReporter/CrashReporter.xcframework/PrivacyInfo.xcprivacy +39 -0
  40. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/CrashReporter +0 -0
  41. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/CrashReporter.h +366 -0
  42. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashFeatureConfig.h +108 -0
  43. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashMacros.h +143 -0
  44. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashNamespace.h +320 -0
  45. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReport.h +193 -0
  46. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportApplicationInfo.h +52 -0
  47. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportBinaryImageInfo.h +76 -0
  48. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportExceptionInfo.h +59 -0
  49. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportFormatter.h +55 -0
  50. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportMachExceptionInfo.h +41 -0
  51. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportMachineInfo.h +64 -0
  52. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportProcessInfo.h +80 -0
  53. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportProcessorInfo.h +64 -0
  54. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportRegisterInfo.h +45 -0
  55. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportSignalInfo.h +50 -0
  56. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportStackFrameInfo.h +50 -0
  57. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportSymbolInfo.h +51 -0
  58. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportSystemInfo.h +158 -0
  59. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportTextFormatter.h +59 -0
  60. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportThreadInfo.h +75 -0
  61. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReporter.h +131 -0
  62. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReporterConfig.h +193 -0
  63. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Info.plist +0 -0
  64. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Modules/module.modulemap +8 -0
  65. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/PrivacyInfo.xcprivacy +39 -0
  66. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/CrashReporter +0 -0
  67. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/CrashReporter.h +366 -0
  68. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashFeatureConfig.h +108 -0
  69. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashMacros.h +143 -0
  70. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashNamespace.h +320 -0
  71. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReport.h +193 -0
  72. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportApplicationInfo.h +52 -0
  73. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportBinaryImageInfo.h +76 -0
  74. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportExceptionInfo.h +59 -0
  75. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportFormatter.h +55 -0
  76. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportMachExceptionInfo.h +41 -0
  77. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportMachineInfo.h +64 -0
  78. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportProcessInfo.h +80 -0
  79. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportProcessorInfo.h +64 -0
  80. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportRegisterInfo.h +45 -0
  81. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportSignalInfo.h +50 -0
  82. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportStackFrameInfo.h +50 -0
  83. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportSymbolInfo.h +51 -0
  84. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportSystemInfo.h +158 -0
  85. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportTextFormatter.h +59 -0
  86. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportThreadInfo.h +75 -0
  87. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReporter.h +131 -0
  88. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReporterConfig.h +193 -0
  89. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Modules/module.modulemap +8 -0
  90. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Resources/Info.plist +52 -0
  91. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Resources/PrivacyInfo.xcprivacy +39 -0
  92. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/CrashReporter +0 -0
  93. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/CrashReporter.h +366 -0
  94. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashFeatureConfig.h +108 -0
  95. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashMacros.h +143 -0
  96. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashNamespace.h +320 -0
  97. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReport.h +193 -0
  98. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportApplicationInfo.h +52 -0
  99. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportBinaryImageInfo.h +76 -0
  100. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportExceptionInfo.h +59 -0
  101. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportFormatter.h +55 -0
  102. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportMachExceptionInfo.h +41 -0
  103. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportMachineInfo.h +64 -0
  104. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportProcessInfo.h +80 -0
  105. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportProcessorInfo.h +64 -0
  106. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportRegisterInfo.h +45 -0
  107. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportSignalInfo.h +50 -0
  108. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportStackFrameInfo.h +50 -0
  109. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportSymbolInfo.h +51 -0
  110. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportSystemInfo.h +158 -0
  111. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportTextFormatter.h +59 -0
  112. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportThreadInfo.h +75 -0
  113. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReporter.h +131 -0
  114. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReporterConfig.h +193 -0
  115. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Modules/module.modulemap +8 -0
  116. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Resources/Info.plist +52 -0
  117. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Resources/PrivacyInfo.xcprivacy +39 -0
  118. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/CrashReporter +0 -0
  119. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/CrashReporter.h +366 -0
  120. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashFeatureConfig.h +108 -0
  121. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashMacros.h +143 -0
  122. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashNamespace.h +320 -0
  123. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReport.h +193 -0
  124. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportApplicationInfo.h +52 -0
  125. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportBinaryImageInfo.h +76 -0
  126. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportExceptionInfo.h +59 -0
  127. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportFormatter.h +55 -0
  128. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportMachExceptionInfo.h +41 -0
  129. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportMachineInfo.h +64 -0
  130. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportProcessInfo.h +80 -0
  131. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportProcessorInfo.h +64 -0
  132. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportRegisterInfo.h +45 -0
  133. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportSignalInfo.h +50 -0
  134. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportStackFrameInfo.h +50 -0
  135. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportSymbolInfo.h +51 -0
  136. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportSystemInfo.h +158 -0
  137. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportTextFormatter.h +59 -0
  138. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportThreadInfo.h +75 -0
  139. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReporter.h +131 -0
  140. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReporterConfig.h +193 -0
  141. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Modules/module.modulemap +8 -0
  142. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Resources/Info.plist +52 -0
  143. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Resources/PrivacyInfo.xcprivacy +39 -0
  144. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/CrashReporter +0 -0
  145. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/CrashReporter.h +366 -0
  146. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashFeatureConfig.h +108 -0
  147. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashMacros.h +143 -0
  148. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashNamespace.h +320 -0
  149. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReport.h +193 -0
  150. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportApplicationInfo.h +52 -0
  151. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportBinaryImageInfo.h +76 -0
  152. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportExceptionInfo.h +59 -0
  153. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportFormatter.h +55 -0
  154. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportMachExceptionInfo.h +41 -0
  155. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportMachineInfo.h +64 -0
  156. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportProcessInfo.h +80 -0
  157. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportProcessorInfo.h +64 -0
  158. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportRegisterInfo.h +45 -0
  159. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportSignalInfo.h +50 -0
  160. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportStackFrameInfo.h +50 -0
  161. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportSymbolInfo.h +51 -0
  162. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportSystemInfo.h +158 -0
  163. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportTextFormatter.h +59 -0
  164. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportThreadInfo.h +75 -0
  165. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReporter.h +131 -0
  166. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReporterConfig.h +193 -0
  167. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Info.plist +0 -0
  168. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Modules/module.modulemap +8 -0
  169. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/PrivacyInfo.xcprivacy +39 -0
  170. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/_CodeSignature/CodeDirectory +0 -0
  171. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/_CodeSignature/CodeRequirements +0 -0
  172. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/_CodeSignature/CodeRequirements-1 +0 -0
  173. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/_CodeSignature/CodeResources +462 -0
  174. package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/_CodeSignature/CodeSignature +0 -0
  175. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/CrashReporter +0 -0
  176. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/CrashReporter.h +366 -0
  177. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashFeatureConfig.h +108 -0
  178. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashMacros.h +143 -0
  179. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashNamespace.h +320 -0
  180. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReport.h +193 -0
  181. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportApplicationInfo.h +52 -0
  182. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportBinaryImageInfo.h +76 -0
  183. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportExceptionInfo.h +59 -0
  184. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportFormatter.h +55 -0
  185. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportMachExceptionInfo.h +41 -0
  186. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportMachineInfo.h +64 -0
  187. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportProcessInfo.h +80 -0
  188. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportProcessorInfo.h +64 -0
  189. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportRegisterInfo.h +45 -0
  190. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportSignalInfo.h +50 -0
  191. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportStackFrameInfo.h +50 -0
  192. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportSymbolInfo.h +51 -0
  193. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportSystemInfo.h +158 -0
  194. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportTextFormatter.h +59 -0
  195. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportThreadInfo.h +75 -0
  196. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReporter.h +131 -0
  197. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReporterConfig.h +193 -0
  198. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Modules/module.modulemap +8 -0
  199. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Resources/Info.plist +48 -0
  200. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Resources/PrivacyInfo.xcprivacy +39 -0
  201. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/CrashReporter +0 -0
  202. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/CrashReporter.h +366 -0
  203. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashFeatureConfig.h +108 -0
  204. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashMacros.h +143 -0
  205. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashNamespace.h +320 -0
  206. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReport.h +193 -0
  207. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportApplicationInfo.h +52 -0
  208. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportBinaryImageInfo.h +76 -0
  209. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportExceptionInfo.h +59 -0
  210. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportFormatter.h +55 -0
  211. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportMachExceptionInfo.h +41 -0
  212. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportMachineInfo.h +64 -0
  213. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportProcessInfo.h +80 -0
  214. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportProcessorInfo.h +64 -0
  215. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportRegisterInfo.h +45 -0
  216. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportSignalInfo.h +50 -0
  217. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportStackFrameInfo.h +50 -0
  218. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportSymbolInfo.h +51 -0
  219. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportSystemInfo.h +158 -0
  220. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportTextFormatter.h +59 -0
  221. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportThreadInfo.h +75 -0
  222. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReporter.h +131 -0
  223. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReporterConfig.h +193 -0
  224. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Modules/module.modulemap +8 -0
  225. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Resources/Info.plist +48 -0
  226. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Resources/PrivacyInfo.xcprivacy +39 -0
  227. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/CrashReporter +0 -0
  228. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/CrashReporter.h +366 -0
  229. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashFeatureConfig.h +108 -0
  230. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashMacros.h +143 -0
  231. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashNamespace.h +320 -0
  232. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReport.h +193 -0
  233. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportApplicationInfo.h +52 -0
  234. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportBinaryImageInfo.h +76 -0
  235. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportExceptionInfo.h +59 -0
  236. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportFormatter.h +55 -0
  237. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportMachExceptionInfo.h +41 -0
  238. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportMachineInfo.h +64 -0
  239. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportProcessInfo.h +80 -0
  240. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportProcessorInfo.h +64 -0
  241. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportRegisterInfo.h +45 -0
  242. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportSignalInfo.h +50 -0
  243. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportStackFrameInfo.h +50 -0
  244. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportSymbolInfo.h +51 -0
  245. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportSystemInfo.h +158 -0
  246. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportTextFormatter.h +59 -0
  247. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportThreadInfo.h +75 -0
  248. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReporter.h +131 -0
  249. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReporterConfig.h +193 -0
  250. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Modules/module.modulemap +8 -0
  251. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Resources/Info.plist +48 -0
  252. package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Resources/PrivacyInfo.xcprivacy +39 -0
  253. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/CrashReporter +0 -0
  254. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/CrashReporter.h +366 -0
  255. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashFeatureConfig.h +108 -0
  256. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashMacros.h +143 -0
  257. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashNamespace.h +320 -0
  258. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReport.h +193 -0
  259. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportApplicationInfo.h +52 -0
  260. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportBinaryImageInfo.h +76 -0
  261. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportExceptionInfo.h +59 -0
  262. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportFormatter.h +55 -0
  263. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportMachExceptionInfo.h +41 -0
  264. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportMachineInfo.h +64 -0
  265. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportProcessInfo.h +80 -0
  266. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportProcessorInfo.h +64 -0
  267. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportRegisterInfo.h +45 -0
  268. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportSignalInfo.h +50 -0
  269. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportStackFrameInfo.h +50 -0
  270. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportSymbolInfo.h +51 -0
  271. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportSystemInfo.h +158 -0
  272. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportTextFormatter.h +59 -0
  273. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportThreadInfo.h +75 -0
  274. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReporter.h +131 -0
  275. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReporterConfig.h +193 -0
  276. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Info.plist +0 -0
  277. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Modules/module.modulemap +8 -0
  278. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/PrivacyInfo.xcprivacy +39 -0
  279. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/CrashReporter +0 -0
  280. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/CrashReporter.h +366 -0
  281. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashFeatureConfig.h +108 -0
  282. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashMacros.h +143 -0
  283. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashNamespace.h +320 -0
  284. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReport.h +193 -0
  285. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportApplicationInfo.h +52 -0
  286. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportBinaryImageInfo.h +76 -0
  287. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportExceptionInfo.h +59 -0
  288. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportFormatter.h +55 -0
  289. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportMachExceptionInfo.h +41 -0
  290. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportMachineInfo.h +64 -0
  291. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportProcessInfo.h +80 -0
  292. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportProcessorInfo.h +64 -0
  293. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportRegisterInfo.h +45 -0
  294. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportSignalInfo.h +50 -0
  295. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportStackFrameInfo.h +50 -0
  296. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportSymbolInfo.h +51 -0
  297. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportSystemInfo.h +158 -0
  298. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportTextFormatter.h +59 -0
  299. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportThreadInfo.h +75 -0
  300. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReporter.h +131 -0
  301. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReporterConfig.h +193 -0
  302. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Info.plist +0 -0
  303. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Modules/module.modulemap +8 -0
  304. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/PrivacyInfo.xcprivacy +39 -0
  305. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/_CodeSignature/CodeDirectory +0 -0
  306. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/_CodeSignature/CodeRequirements +0 -0
  307. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/_CodeSignature/CodeRequirements-1 +0 -0
  308. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/_CodeSignature/CodeResources +462 -0
  309. package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/_CodeSignature/CodeSignature +0 -0
  310. package/native/ios/PLCrashReporter/LICENSE.txt +54 -0
  311. package/native/ios/PLCrashReporter/PLCrashReporter.podspec +19 -0
  312. package/native/ios/VERSION +1 -0
  313. package/native/ios/packages/ios/Sources/CrumbCore/Crumb.swift +108 -0
  314. package/native/ios/packages/ios/Sources/CrumbCore/CrumbConfiguration.swift +212 -0
  315. package/native/ios/packages/ios/Sources/CrumbCore/CrumbDiagnostics.swift +158 -0
  316. package/native/ios/packages/ios/Sources/CrumbCore/CrumbFailureStacks.swift +94 -0
  317. package/native/ios/packages/ios/Sources/CrumbCore/CrumbInfrastructureHealthProbe.swift +110 -0
  318. package/native/ios/packages/ios/Sources/CrumbCore/CrumbJavaScriptCrashRecovery.swift +136 -0
  319. package/native/ios/packages/ios/Sources/CrumbCore/CrumbJavaScriptCrashStore.swift +508 -0
  320. package/native/ios/packages/ios/Sources/CrumbCore/CrumbJavaScriptFailureContext.swift +166 -0
  321. package/native/ios/packages/ios/Sources/CrumbCore/CrumbLogs.swift +138 -0
  322. package/native/ios/packages/ios/Sources/CrumbCore/CrumbPolicy.swift +336 -0
  323. package/native/ios/packages/ios/Sources/CrumbCore/CrumbRendering.swift +68 -0
  324. package/native/ios/packages/ios/Sources/CrumbCore/CrumbReportEnvelope.swift +666 -0
  325. package/native/ios/packages/ios/Sources/CrumbCore/CrumbReportQueue.swift +543 -0
  326. package/native/ios/packages/ios/Sources/CrumbCore/CrumbReportUploader.swift +304 -0
  327. package/native/ios/packages/ios/Sources/CrumbCore/CrumbRuntime.swift +306 -0
  328. package/native/ios/packages/ios/Sources/CrumbCore/CrumbSDKVersion.swift +5 -0
  329. package/native/ios/packages/ios/Sources/CrumbCore/CrumbScreenContext.swift +29 -0
  330. package/native/ios/packages/ios/Sources/CrumbUI/CrumbDesign.swift +151 -0
  331. package/native/ios/packages/ios/Sources/CrumbUI/CrumbLocalization.swift +23 -0
  332. package/native/ios/packages/ios/Sources/CrumbUI/CrumbQualityInstrumentation.swift +30 -0
  333. package/native/ios/packages/ios/Sources/CrumbUI/CrumbRenderingMonitor.swift +40 -0
  334. package/native/ios/packages/ios/Sources/CrumbUI/CrumbReporter.swift +1705 -0
  335. package/native/ios/packages/ios/Sources/CrumbUI/CrumbReporterLifecycle.swift +119 -0
  336. package/native/ios/packages/ios/Sources/CrumbUI/CrumbScreenshotArtifact.swift +186 -0
  337. package/native/ios/packages/ios/Sources/CrumbUI/CrumbShakeGestureRecognizer.swift +62 -0
  338. package/native/ios/packages/ios/Sources/CrumbUI/CrumbUploadCoordinator.swift +113 -0
  339. package/native/ios/packages/ios/Sources/CrumbUI/CrumbWorkspacePolicyCoordinator.swift +86 -0
  340. package/native/ios/packages/ios/Sources/CrumbUI/OnDemandDiagnosticsCollector.swift +269 -0
  341. package/native/ios/packages/ios/Sources/CrumbUI/OnDemandLogCollector.swift +213 -0
  342. package/native/ios/packages/ios/Sources/CrumbUI/Resources/en.lproj/Localizable.strings +75 -0
  343. package/native/ios/provenance.json +8 -0
  344. package/nitrogen/generated/android/c++/JHybridCrumbReactNativeSpec.cpp +32 -3
  345. package/nitrogen/generated/android/c++/JHybridCrumbReactNativeSpec.hpp +5 -1
  346. package/nitrogen/generated/android/kotlin/com/margelo/nitro/crumbsdk/reactnative/HybridCrumbReactNativeSpec.kt +17 -1
  347. package/nitrogen/generated/ios/CrumbReactNative-Swift-Cxx-Bridge.hpp +9 -0
  348. package/nitrogen/generated/ios/c++/HybridCrumbReactNativeSpecSwift.hpp +30 -2
  349. package/nitrogen/generated/ios/swift/HybridCrumbReactNativeSpec.swift +5 -1
  350. package/nitrogen/generated/ios/swift/HybridCrumbReactNativeSpec_cxx.swift +55 -2
  351. package/nitrogen/generated/shared/c++/HybridCrumbReactNativeSpec.cpp +4 -0
  352. package/nitrogen/generated/shared/c++/HybridCrumbReactNativeSpec.hpp +5 -1
  353. package/package.json +29 -5
  354. package/plugin/build-hooks.cjs +52 -0
  355. package/plugin/podfile.cjs +21 -0
  356. package/scripts/ios.rb +23 -0
  357. package/src/CrumbReactNative.nitro.ts +5 -1
  358. package/src/NativeCrumbReactNative.web.ts +4 -0
  359. package/src/build-release.ts +30 -0
  360. package/src/index.ts +221 -2
  361. package/src/javascript-crash-capture.ts +774 -0
  362. package/src/log-buffer.ts +27 -2
  363. package/src/screen-context.ts +154 -0
  364. package/src/types.ts +53 -0
  365. package/tools/cli.cjs +116 -0
  366. package/tools/config.cjs +72 -0
  367. package/tools/crumb.gradle +63 -0
  368. package/tools/expo-export.cjs +122 -0
  369. package/tools/ios.cjs +93 -0
  370. package/tools/node.cjs +21 -0
  371. package/tools/release.cjs +65 -0
  372. package/tools/setup.cjs +291 -0
  373. package/tools/upload.cjs +137 -0
@@ -0,0 +1,774 @@
1
+ import NativeCrumbReactNative from './NativeCrumbReactNative';
2
+ import { snapshotLogEntries } from './log-buffer';
3
+ import type {
4
+ CrumbConfiguration,
5
+ CrumbJavaScriptCrashCaptureOptions,
6
+ CrumbRelease,
7
+ } from './types';
8
+ import type { CrumbReactNative } from './CrumbReactNative.nitro';
9
+
10
+ declare const require: ((moduleName: string) => unknown) | undefined;
11
+ declare const __DEV__: boolean | undefined;
12
+
13
+ const DEFAULT_MAXIMUM_BREADCRUMBS = 32;
14
+ const DEFAULT_MAXIMUM_BREADCRUMB_BYTES = 16_384;
15
+ const MAXIMUM_BREADCRUMB_MESSAGE_BYTES = 2_048;
16
+ const MAXIMUM_CRASH_TYPE_BYTES = 128;
17
+ const MAXIMUM_CRASH_MESSAGE_BYTES = 4_000;
18
+ const MAXIMUM_CRASH_STACK_BYTES = 16_384;
19
+ const MAXIMUM_CONTEXT_VALUE_BYTES = 512;
20
+ const MAXIMUM_CONTEXT_BYTES = 8_192;
21
+ const MAXIMUM_HANDOFF_RECORD_BYTES = 32_768;
22
+ const DEDUPLICATION_WINDOW_MS = 10_000;
23
+
24
+ type GlobalErrorHandler = (error: unknown, isFatal?: boolean) => unknown;
25
+ type UnhandledRejectionHandler = (
26
+ event: UnhandledRejectionEventLike
27
+ ) => unknown;
28
+
29
+ interface ErrorUtilsLike {
30
+ getGlobalHandler: () => GlobalErrorHandler;
31
+ setGlobalHandler: (handler: GlobalErrorHandler) => void;
32
+ }
33
+
34
+ interface UnhandledRejectionEventLike {
35
+ reason: unknown;
36
+ promise?: unknown;
37
+ }
38
+
39
+ interface ProcessLike {
40
+ on?: (event: string, listener: (...args: unknown[]) => void) => unknown;
41
+ removeListener?: (
42
+ event: string,
43
+ listener: (...args: unknown[]) => void
44
+ ) => unknown;
45
+ }
46
+
47
+ interface ReactNativeExceptionsManagerLike {
48
+ handleException: (error: unknown, isFatal: boolean) => unknown;
49
+ }
50
+
51
+ interface HermesInternalLike {
52
+ hasPromise?: () => boolean;
53
+ enablePromiseRejectionTracker?: (options: {
54
+ allRejections: boolean;
55
+ onUnhandled: (id: number, rejection?: unknown) => void;
56
+ onHandled: (id: number) => void;
57
+ }) => void;
58
+ }
59
+
60
+ interface GlobalObjectLike {
61
+ ErrorUtils?: ErrorUtilsLike;
62
+ onunhandledrejection?: UnhandledRejectionHandler;
63
+ addEventListener?: (
64
+ event: string,
65
+ handler: UnhandledRejectionHandler
66
+ ) => void;
67
+ removeEventListener?: (
68
+ event: string,
69
+ handler: UnhandledRejectionHandler
70
+ ) => void;
71
+ process?: ProcessLike;
72
+ HermesInternal?: HermesInternalLike;
73
+ }
74
+
75
+ interface CrashCaptureState {
76
+ native: Pick<
77
+ CrumbReactNative,
78
+ 'recordJavaScriptCrash' | 'recoverJavaScriptCrashes'
79
+ >;
80
+ release?: CrumbRelease;
81
+ context: Readonly<Record<string, string>>;
82
+ maximumBreadcrumbs: number;
83
+ maximumBreadcrumbBytes: number;
84
+ configured: boolean;
85
+ errorUtils?: {
86
+ target: ErrorUtilsLike;
87
+ previous: GlobalErrorHandler;
88
+ wrapper: GlobalErrorHandler;
89
+ };
90
+ property?: {
91
+ target: GlobalObjectLike;
92
+ previous?: UnhandledRejectionHandler;
93
+ wrapper: UnhandledRejectionHandler;
94
+ };
95
+ eventTarget?: {
96
+ target: GlobalObjectLike;
97
+ wrapper: UnhandledRejectionHandler;
98
+ };
99
+ process?: {
100
+ target: ProcessLike;
101
+ wrapper: (...args: unknown[]) => void;
102
+ };
103
+ reactNativeExceptionsManager?: {
104
+ target: ReactNativeExceptionsManagerLike;
105
+ previous: ReactNativeExceptionsManagerLike['handleException'];
106
+ wrapper: ReactNativeExceptionsManagerLike['handleException'];
107
+ };
108
+ fingerprints: Map<string, number>;
109
+ }
110
+
111
+ const globalObject = globalThis as unknown as GlobalObjectLike;
112
+
113
+ let state: CrashCaptureState = emptyState();
114
+
115
+ export function configureJavaScriptCrashCapture(
116
+ options: CrumbJavaScriptCrashCaptureOptions | undefined,
117
+ configuration: CrumbConfiguration,
118
+ native: CrashCaptureState['native'] = NativeCrumbReactNative
119
+ ): void {
120
+ if (!options?.enabled) {
121
+ disableJavaScriptCrashCapture();
122
+ return;
123
+ }
124
+
125
+ if (state.configured) {
126
+ state.release = configuration.release;
127
+ state.context = allowlistedContext(configuration);
128
+ state.maximumBreadcrumbs =
129
+ options.maximumBreadcrumbs ?? DEFAULT_MAXIMUM_BREADCRUMBS;
130
+ state.maximumBreadcrumbBytes =
131
+ options.maximumBreadcrumbBytes ?? DEFAULT_MAXIMUM_BREADCRUMB_BYTES;
132
+ return;
133
+ }
134
+
135
+ state = {
136
+ ...emptyState(),
137
+ native,
138
+ release: configuration.release,
139
+ context: allowlistedContext(configuration),
140
+ maximumBreadcrumbs:
141
+ options.maximumBreadcrumbs ?? DEFAULT_MAXIMUM_BREADCRUMBS,
142
+ maximumBreadcrumbBytes:
143
+ options.maximumBreadcrumbBytes ?? DEFAULT_MAXIMUM_BREADCRUMB_BYTES,
144
+ configured: true,
145
+ fingerprints: new Map(),
146
+ };
147
+
148
+ installErrorUtilsHandler();
149
+ installReactNativeExceptionsManagerHandler();
150
+ installUnhandledRejectionHandler();
151
+ installHermesPromiseRejectionTracker();
152
+ }
153
+
154
+ export async function recoverJavaScriptCrashes(): Promise<void> {
155
+ if (!state.configured) return;
156
+ try {
157
+ await state.native.recoverJavaScriptCrashes();
158
+ } catch {
159
+ // Crash recovery must never make application startup fail.
160
+ }
161
+ }
162
+
163
+ export function disableJavaScriptCrashCapture(): void {
164
+ restoreErrorUtilsHandler();
165
+ restoreReactNativeExceptionsManagerHandler();
166
+ restoreUnhandledRejectionHandler();
167
+ state = emptyState();
168
+ }
169
+
170
+ /** Used by the deterministic adapter tests to release process-global handlers. */
171
+ export function resetJavaScriptCrashCaptureForTesting(): void {
172
+ disableJavaScriptCrashCapture();
173
+ }
174
+
175
+ function installErrorUtilsHandler(): void {
176
+ const errorUtils = globalObject.ErrorUtils;
177
+ if (
178
+ !errorUtils ||
179
+ typeof errorUtils.getGlobalHandler !== 'function' ||
180
+ typeof errorUtils.setGlobalHandler !== 'function'
181
+ ) {
182
+ return;
183
+ }
184
+
185
+ let previous: GlobalErrorHandler;
186
+ try {
187
+ previous = errorUtils.getGlobalHandler();
188
+ } catch {
189
+ return;
190
+ }
191
+ if (typeof previous !== 'function') return;
192
+
193
+ const wrapper: GlobalErrorHandler = (error, isFatal) => {
194
+ if (isFatal) captureFailure('exception', error, true);
195
+ else if (isUnhandledRejectionFailure(error)) {
196
+ captureFailure('unhandled_rejection', rejectionReason(error), false);
197
+ }
198
+ return previous(error, isFatal);
199
+ };
200
+ try {
201
+ errorUtils.setGlobalHandler(wrapper);
202
+ state.errorUtils = { target: errorUtils, previous, wrapper };
203
+ } catch {
204
+ // A host-owned handler remains authoritative if its setter rejects us.
205
+ }
206
+ }
207
+
208
+ function installReactNativeExceptionsManagerHandler(): void {
209
+ if (typeof require !== 'function') return;
210
+
211
+ let moduleValue: unknown;
212
+ try {
213
+ // React Native does not expose its promise tracker through a public API.
214
+ // This optional bridge preserves the existing ExceptionsManager chain.
215
+ // eslint-disable-next-line @react-native/no-deep-imports
216
+ moduleValue = require('react-native/Libraries/Core/ExceptionsManager');
217
+ } catch {
218
+ return;
219
+ }
220
+
221
+ const moduleObject = asObject(moduleValue);
222
+ const targetValue = moduleObject?.default ?? moduleValue;
223
+ const targetObject = asObject(targetValue);
224
+ if (!targetObject || typeof targetObject.handleException !== 'function') {
225
+ return;
226
+ }
227
+
228
+ const target = targetObject as unknown as ReactNativeExceptionsManagerLike;
229
+ const previous = target.handleException;
230
+ const wrapper: ReactNativeExceptionsManagerLike['handleException'] = (
231
+ error,
232
+ isFatal
233
+ ) => {
234
+ if (!isFatal && isUnhandledRejectionFailure(error)) {
235
+ captureFailure('unhandled_rejection', rejectionReason(error), false);
236
+ }
237
+ return previous.call(target, error, isFatal);
238
+ };
239
+ try {
240
+ target.handleException = wrapper;
241
+ state.reactNativeExceptionsManager = { target, previous, wrapper };
242
+ } catch {
243
+ // A runtime with an immutable module surface keeps the existing handler.
244
+ }
245
+ }
246
+
247
+ function installUnhandledRejectionHandler(): void {
248
+ const previous = globalObject.onunhandledrejection;
249
+ const wrapper: UnhandledRejectionHandler = (event) => {
250
+ captureFailure('unhandled_rejection', event?.reason, false);
251
+ return previous?.call(globalObject, event);
252
+ };
253
+ try {
254
+ // React Native does not consistently predeclare this browser-compatible
255
+ // hook. Defining it only while opted in gives runtimes that dispatch the
256
+ // standard event a stable handoff without touching disabled mode.
257
+ globalObject.onunhandledrejection = wrapper;
258
+ state.property = { target: globalObject, previous, wrapper };
259
+ } catch {
260
+ // Some runtimes expose a read-only event property; use their fallback.
261
+ }
262
+ if (
263
+ typeof globalObject.addEventListener === 'function' &&
264
+ typeof globalObject.removeEventListener === 'function'
265
+ ) {
266
+ const eventWrapper: UnhandledRejectionHandler = (event) => {
267
+ captureFailure('unhandled_rejection', event?.reason, false);
268
+ };
269
+ try {
270
+ globalObject.addEventListener('unhandledrejection', eventWrapper);
271
+ state.eventTarget = { target: globalObject, wrapper: eventWrapper };
272
+ } catch {
273
+ // Continue to the process fallback when available.
274
+ }
275
+ }
276
+
277
+ const process = globalObject.process;
278
+ if (
279
+ !process ||
280
+ typeof process.on !== 'function' ||
281
+ typeof process.removeListener !== 'function'
282
+ ) {
283
+ return;
284
+ }
285
+ const processWrapper = (...args: unknown[]) => {
286
+ captureFailure('unhandled_rejection', args[0], false);
287
+ };
288
+ try {
289
+ process.on('unhandledRejection', processWrapper);
290
+ state.process = { target: process, wrapper: processWrapper };
291
+ } catch {
292
+ // A runtime without a usable rejection hook remains unsupported safely.
293
+ }
294
+ }
295
+
296
+ function installHermesPromiseRejectionTracker(): void {
297
+ // React Native and Expo already install their Hermes tracker in development.
298
+ // Release builds leave it disabled, which is the gap Crumb needs to fill.
299
+ if (typeof __DEV__ !== 'undefined' && __DEV__) return;
300
+
301
+ const hermes = globalObject.HermesInternal;
302
+ if (
303
+ !hermes?.hasPromise?.() ||
304
+ typeof hermes.enablePromiseRejectionTracker !== 'function'
305
+ ) {
306
+ return;
307
+ }
308
+
309
+ const exceptionsManager = state.reactNativeExceptionsManager?.target;
310
+ const errorUtils = state.errorUtils?.target;
311
+
312
+ try {
313
+ hermes.enablePromiseRejectionTracker({
314
+ allRejections: true,
315
+ onUnhandled: (id, rejection) => {
316
+ captureFailure('unhandled_rejection', rejection, false);
317
+
318
+ const error = unhandledRejectionError(id, rejection);
319
+ if (errorUtils) {
320
+ errorUtils.getGlobalHandler()(error, false);
321
+ return;
322
+ }
323
+ exceptionsManager?.handleException(error, false);
324
+ },
325
+ onHandled: (id) => {
326
+ console.warn(
327
+ `Promise rejection handled (id: ${id}); the earlier unhandled-rejection record may be ignored.`
328
+ );
329
+ },
330
+ });
331
+ } catch {
332
+ // Runtimes without a usable Hermes tracker keep the other handlers.
333
+ }
334
+ }
335
+
336
+ function unhandledRejectionError(id: number, rejection: unknown): Error {
337
+ const normalized = normalizeFailure(rejection);
338
+ const prefix = `Uncaught (in promise, id: ${id})`;
339
+ const error = new Error(`${prefix}: ${normalized.message}`);
340
+ (error as Error & { cause?: unknown }).cause = rejection;
341
+ if (normalized.stack) error.stack = `${prefix} ${normalized.stack}`;
342
+ return error;
343
+ }
344
+
345
+ function restoreErrorUtilsHandler(): void {
346
+ const installed = state.errorUtils;
347
+ if (!installed) return;
348
+ try {
349
+ if (installed.target.getGlobalHandler() === installed.wrapper) {
350
+ installed.target.setGlobalHandler(installed.previous);
351
+ }
352
+ } catch {
353
+ // Never replace a host handler that became unavailable during teardown.
354
+ }
355
+ }
356
+
357
+ function restoreReactNativeExceptionsManagerHandler(): void {
358
+ const installed = state.reactNativeExceptionsManager;
359
+ if (!installed) return;
360
+ try {
361
+ if (installed.target.handleException === installed.wrapper) {
362
+ installed.target.handleException = installed.previous;
363
+ }
364
+ } catch {
365
+ // Never replace a host handler that became unavailable during teardown.
366
+ }
367
+ }
368
+
369
+ function restoreUnhandledRejectionHandler(): void {
370
+ const property = state.property;
371
+ if (property) {
372
+ try {
373
+ if (property.target.onunhandledrejection === property.wrapper) {
374
+ if (property.previous === undefined) {
375
+ delete property.target.onunhandledrejection;
376
+ } else {
377
+ property.target.onunhandledrejection = property.previous;
378
+ }
379
+ }
380
+ } catch {
381
+ // Leave a host replacement untouched.
382
+ }
383
+ }
384
+
385
+ const eventTarget = state.eventTarget;
386
+ if (eventTarget) {
387
+ try {
388
+ eventTarget.target.removeEventListener?.(
389
+ 'unhandledrejection',
390
+ eventTarget.wrapper
391
+ );
392
+ } catch {
393
+ // Teardown is best effort and never affects the application.
394
+ }
395
+ }
396
+
397
+ const process = state.process;
398
+ if (process) {
399
+ try {
400
+ process.target.removeListener?.('unhandledRejection', process.wrapper);
401
+ } catch {
402
+ // Teardown is best effort and never affects the application.
403
+ }
404
+ }
405
+ }
406
+
407
+ function isUnhandledRejectionFailure(value: unknown): boolean {
408
+ const message = readStringProperty(value, 'message');
409
+ return (
410
+ message?.startsWith('Uncaught (in promise') === true ||
411
+ message?.startsWith('Possible Unhandled Promise Rejection') === true
412
+ );
413
+ }
414
+
415
+ function rejectionReason(value: unknown): unknown {
416
+ if (
417
+ (typeof value !== 'object' && typeof value !== 'function') ||
418
+ value === null
419
+ ) {
420
+ return value;
421
+ }
422
+ try {
423
+ if ('cause' in value) {
424
+ return (value as Record<string, unknown>).cause;
425
+ }
426
+ } catch {
427
+ // Fall back to the wrapper when its cause is inaccessible.
428
+ }
429
+ return value;
430
+ }
431
+
432
+ function asObject(value: unknown): Record<string, unknown> | undefined {
433
+ return typeof value === 'object' && value !== null
434
+ ? (value as Record<string, unknown>)
435
+ : undefined;
436
+ }
437
+
438
+ function captureFailure(
439
+ kind: 'exception' | 'unhandled_rejection',
440
+ reason: unknown,
441
+ isFatal: boolean
442
+ ): void {
443
+ if (!state.configured) return;
444
+ try {
445
+ const normalized = normalizeFailure(reason);
446
+ const fingerprint = fingerprintFor(normalized);
447
+ const now = Date.now();
448
+ pruneFingerprints(now);
449
+ const previous = state.fingerprints.get(fingerprint);
450
+ if (previous !== undefined && now - previous <= DEDUPLICATION_WINDOW_MS) {
451
+ return;
452
+ }
453
+ state.fingerprints.set(fingerprint, now);
454
+
455
+ const record: Record<string, unknown> = {
456
+ schema_version: '1.0',
457
+ record_id: makeRecordId(),
458
+ fingerprint,
459
+ source: 'javascript',
460
+ kind,
461
+ type: normalized.type,
462
+ message: normalized.message,
463
+ occurred_at: new Date(now).toISOString(),
464
+ release: state.release
465
+ ? {
466
+ ...(state.release.appVersion
467
+ ? { app_version: state.release.appVersion }
468
+ : {}),
469
+ ...(state.release.nativeBuild
470
+ ? { native_build: state.release.nativeBuild }
471
+ : {}),
472
+ ...(state.release.bundleVersion
473
+ ? { bundle_version: state.release.bundleVersion }
474
+ : {}),
475
+ }
476
+ : undefined,
477
+ breadcrumbs: [],
478
+ context: state.context,
479
+ is_fatal: isFatal,
480
+ native_termination_wrapper_observed: false,
481
+ };
482
+ if (normalized.stack) record.stack = normalized.stack;
483
+ record.breadcrumbs = captureBreadcrumbsWithinRecordBudget(record);
484
+ state.native.recordJavaScriptCrash(JSON.stringify(record));
485
+ } catch {
486
+ // The original host handler must still run if local capture or persistence fails.
487
+ }
488
+ }
489
+
490
+ function normalizeFailure(reason: unknown): {
491
+ type: string;
492
+ message: string;
493
+ stack?: string;
494
+ } {
495
+ const type =
496
+ readStringProperty(reason, 'name') ??
497
+ (reason instanceof Error
498
+ ? 'Error'
499
+ : reason === null
500
+ ? 'null'
501
+ : typeof reason);
502
+ const message =
503
+ readStringProperty(reason, 'message') ??
504
+ (typeof reason === 'string' ? reason : safeRender(reason));
505
+ const stack = readStringProperty(reason, 'stack');
506
+ return {
507
+ type: sanitizeText(type, MAXIMUM_CRASH_TYPE_BYTES),
508
+ message: sanitizeText(
509
+ message || 'JavaScript failure',
510
+ MAXIMUM_CRASH_MESSAGE_BYTES
511
+ ),
512
+ ...(stack
513
+ ? { stack: sanitizeText(stack, MAXIMUM_CRASH_STACK_BYTES, true) }
514
+ : {}),
515
+ };
516
+ }
517
+
518
+ function readStringProperty(
519
+ value: unknown,
520
+ property: string
521
+ ): string | undefined {
522
+ if (
523
+ (typeof value !== 'object' && typeof value !== 'function') ||
524
+ value === null
525
+ ) {
526
+ return undefined;
527
+ }
528
+ try {
529
+ const candidate = (value as Record<string, unknown>)[property];
530
+ return typeof candidate === 'string' ? candidate : undefined;
531
+ } catch {
532
+ return undefined;
533
+ }
534
+ }
535
+
536
+ function safeRender(value: unknown): string {
537
+ try {
538
+ if (value === null) return 'null';
539
+ if (value === undefined) return 'undefined';
540
+ if (
541
+ typeof value === 'number' ||
542
+ typeof value === 'boolean' ||
543
+ typeof value === 'bigint'
544
+ ) {
545
+ return String(value);
546
+ }
547
+ return Object.prototype.toString.call(value);
548
+ } catch {
549
+ return 'Unserializable JavaScript failure';
550
+ }
551
+ }
552
+
553
+ function captureBreadcrumbsWithinRecordBudget(
554
+ record: Record<string, unknown>
555
+ ): Array<{
556
+ timestamp: string;
557
+ source: string;
558
+ category: string;
559
+ message: string;
560
+ }> {
561
+ const availableBytes = Math.max(
562
+ 0,
563
+ MAXIMUM_HANDOFF_RECORD_BYTES - byteLength(JSON.stringify(record))
564
+ );
565
+ const breadcrumbs = captureBreadcrumbs(availableBytes);
566
+ while (
567
+ breadcrumbs.length > 0 &&
568
+ byteLength(JSON.stringify({ ...record, breadcrumbs })) >
569
+ MAXIMUM_HANDOFF_RECORD_BYTES
570
+ ) {
571
+ breadcrumbs.shift();
572
+ }
573
+ return breadcrumbs;
574
+ }
575
+
576
+ function captureBreadcrumbs(maximumBytes: number): Array<{
577
+ timestamp: string;
578
+ source: string;
579
+ category: string;
580
+ message: string;
581
+ }> {
582
+ const entries = snapshotLogEntries();
583
+ const selected: Array<{
584
+ timestamp: string;
585
+ source: string;
586
+ category: string;
587
+ message: string;
588
+ }> = [];
589
+ let bytes = 0;
590
+ for (let index = entries.length - 1; index >= 0; index -= 1) {
591
+ if (selected.length >= state.maximumBreadcrumbs) break;
592
+ const entry = entries[index];
593
+ if (!entry) continue;
594
+ const breadcrumb = {
595
+ timestamp: new Date(entry.timestampMs).toISOString(),
596
+ source: sanitizeText(entry.source, 64),
597
+ category: sanitizeText(entry.category, 256),
598
+ message: sanitizeText(
599
+ entry.message,
600
+ MAXIMUM_BREADCRUMB_MESSAGE_BYTES,
601
+ true
602
+ ),
603
+ };
604
+ const breadcrumbBytes = byteLength(JSON.stringify(breadcrumb));
605
+ if (
606
+ bytes + breadcrumbBytes >
607
+ Math.min(state.maximumBreadcrumbBytes, maximumBytes)
608
+ ) {
609
+ continue;
610
+ }
611
+ selected.push(breadcrumb);
612
+ bytes += breadcrumbBytes;
613
+ }
614
+ return selected.reverse();
615
+ }
616
+
617
+ function allowlistedContext(
618
+ configuration: CrumbConfiguration
619
+ ): Readonly<Record<string, string>> {
620
+ const values = configuration.customContext?.values ?? {};
621
+ const allowedKeys = new Set(configuration.customContext?.allowedKeys ?? []);
622
+ const result: Record<string, string> = {};
623
+ let bytes = 0;
624
+ for (const key of Object.keys(values).sort()) {
625
+ if (
626
+ !allowedKeys.has(key) ||
627
+ !isValidContextKey(key) ||
628
+ isSensitiveContextKey(key)
629
+ ) {
630
+ continue;
631
+ }
632
+ const value = sanitizeText(values[key] ?? '', MAXIMUM_CONTEXT_VALUE_BYTES);
633
+ if (!value) continue;
634
+ const entryBytes = byteLength(key) + byteLength(value);
635
+ if (bytes + entryBytes > MAXIMUM_CONTEXT_BYTES) break;
636
+ result[key] = value;
637
+ bytes += entryBytes;
638
+ if (Object.keys(result).length >= 16) break;
639
+ }
640
+ return result;
641
+ }
642
+
643
+ function isValidContextKey(value: string): boolean {
644
+ return value.length <= 64 && /^[A-Za-z][A-Za-z0-9_.-]*$/.test(value);
645
+ }
646
+
647
+ function isSensitiveContextKey(value: string): boolean {
648
+ return [
649
+ 'password',
650
+ 'passwd',
651
+ 'secret',
652
+ 'token',
653
+ 'authorization',
654
+ 'cookie',
655
+ 'api_key',
656
+ 'apikey',
657
+ 'access_key',
658
+ 'private_key',
659
+ 'card',
660
+ 'cvv',
661
+ 'cvc',
662
+ 'ssn',
663
+ 'email',
664
+ 'phone',
665
+ 'address',
666
+ ].some((fragment) => value.toLowerCase().includes(fragment));
667
+ }
668
+
669
+ function sanitizeText(
670
+ value: string,
671
+ maximumBytes: number,
672
+ preserveNewlines = false
673
+ ): string {
674
+ let sanitized = value
675
+ .replace(/(https?:\/\/)[^/\s:@]+:[^/@\s]+@/gi, '$1[REDACTED]@')
676
+ .replace(/\bBearer\s+[A-Za-z0-9._~+/=-]+/gi, 'Bearer [REDACTED]')
677
+ .replace(
678
+ /\b(authorization|cookie|set-cookie|password|passwd|secret|token|api[_-]?key)\s*[:=]\s*("[^"]*"|'[^']*'|[^\s,;]+)/gi,
679
+ '$1=[REDACTED]'
680
+ )
681
+ .replace(/\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}\b/gi, '[REDACTED_EMAIL]')
682
+ .replace(/\b(?:\d[ -]*?){13,19}\b/g, '[REDACTED_NUMBER]')
683
+ .replace(/([?&][A-Za-z0-9._~-]+)=([^&#\s]*)/g, '$1=[REDACTED]')
684
+ .replace(/\r\n?/g, '\n');
685
+ sanitized = [...sanitized]
686
+ .map((character) => {
687
+ if (character === '\n' && preserveNewlines) return character;
688
+ if (character === '\t' && preserveNewlines) return character;
689
+ return character < ' ' || character === '\u007f' ? ' ' : character;
690
+ })
691
+ .join('');
692
+ return truncateUtf8(sanitized.trim(), maximumBytes);
693
+ }
694
+
695
+ function fingerprintFor(normalized: {
696
+ type: string;
697
+ message: string;
698
+ stack?: string;
699
+ }): string {
700
+ const value = `${normalized.type}\u0000${normalized.message}\u0000${normalized.stack ?? ''}`;
701
+ return `${fnv1a(value, 2_166_136_261)}${fnv1a(value, 2_247_766_997)}`;
702
+ }
703
+
704
+ function fnv1a(value: string, seed: number): string {
705
+ let hash = seed;
706
+ for (let index = 0; index < value.length; index += 1) {
707
+ hash = Math.abs(Math.imul(hash, 16_777_619) + value.charCodeAt(index));
708
+ }
709
+ return hash.toString(16).padStart(8, '0');
710
+ }
711
+
712
+ function pruneFingerprints(now: number): void {
713
+ for (const [fingerprint, timestamp] of state.fingerprints) {
714
+ if (now - timestamp > DEDUPLICATION_WINDOW_MS) {
715
+ state.fingerprints.delete(fingerprint);
716
+ }
717
+ }
718
+ }
719
+
720
+ let recordSequence = 0;
721
+
722
+ function makeRecordId(): string {
723
+ recordSequence = (recordSequence + 1) % 36 ** 4;
724
+ const random = Math.random().toString(36).slice(2, 14);
725
+ return `jsc_${Date.now().toString(36)}${recordSequence.toString(36)}${random}`.slice(
726
+ 0,
727
+ 80
728
+ );
729
+ }
730
+
731
+ function truncateUtf8(value: string, maximumBytes: number): string {
732
+ if (byteLength(value) <= maximumBytes) return value;
733
+ let result = '';
734
+ for (const character of value) {
735
+ if (byteLength(`${result}${character}…`) > maximumBytes) break;
736
+ result += character;
737
+ }
738
+ return `${result}…`;
739
+ }
740
+
741
+ function byteLength(value: string): number {
742
+ let bytes = 0;
743
+ for (let index = 0; index < value.length; index += 1) {
744
+ const code = value.charCodeAt(index);
745
+ if (code <= 0x7f) {
746
+ bytes += 1;
747
+ } else if (code <= 0x7ff) {
748
+ bytes += 2;
749
+ } else if (
750
+ code >= 0xd800 &&
751
+ code <= 0xdbff &&
752
+ index + 1 < value.length &&
753
+ value.charCodeAt(index + 1) >= 0xdc00 &&
754
+ value.charCodeAt(index + 1) <= 0xdfff
755
+ ) {
756
+ bytes += 4;
757
+ index += 1;
758
+ } else {
759
+ bytes += 3;
760
+ }
761
+ }
762
+ return bytes;
763
+ }
764
+
765
+ function emptyState(): CrashCaptureState {
766
+ return {
767
+ native: NativeCrumbReactNative,
768
+ context: {},
769
+ maximumBreadcrumbs: DEFAULT_MAXIMUM_BREADCRUMBS,
770
+ maximumBreadcrumbBytes: DEFAULT_MAXIMUM_BREADCRUMB_BYTES,
771
+ configured: false,
772
+ fingerprints: new Map(),
773
+ };
774
+ }