@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.
- package/README.md +280 -8
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/margelo/nitro/crumbsdk/reactnative/CrumbReactNative.kt +121 -3
- package/app.plugin.js +52 -0
- package/ios/CrumbReactNative.swift +135 -3
- package/lib/module/NativeCrumbReactNative.web.js +5 -1
- package/lib/module/NativeCrumbReactNative.web.js.map +1 -1
- package/lib/module/build-release.js +19 -0
- package/lib/module/build-release.js.map +1 -0
- package/lib/module/index.js +94 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/javascript-crash-capture.js +497 -0
- package/lib/module/javascript-crash-capture.js.map +1 -0
- package/lib/module/log-buffer.js +22 -2
- package/lib/module/log-buffer.js.map +1 -1
- package/lib/module/screen-context.js +127 -0
- package/lib/module/screen-context.js.map +1 -0
- package/lib/typescript/src/CrumbReactNative.nitro.d.ts +5 -1
- package/lib/typescript/src/CrumbReactNative.nitro.d.ts.map +1 -1
- package/lib/typescript/src/NativeCrumbReactNative.web.d.ts.map +1 -1
- package/lib/typescript/src/build-release.d.ts +6 -0
- package/lib/typescript/src/build-release.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +8 -2
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/javascript-crash-capture.d.ts +74 -0
- package/lib/typescript/src/javascript-crash-capture.d.ts.map +1 -0
- package/lib/typescript/src/log-buffer.d.ts +1 -0
- package/lib/typescript/src/log-buffer.d.ts.map +1 -1
- package/lib/typescript/src/screen-context.d.ts +19 -0
- package/lib/typescript/src/screen-context.d.ts.map +1 -0
- package/lib/typescript/src/types.d.ts +38 -0
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/metro.cjs +35 -0
- package/metro.d.cts +2 -0
- package/native/ios/CrumbSDKCore.podspec +28 -0
- package/native/ios/CrumbSDKUI.podspec +38 -0
- package/native/ios/LICENSE +201 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/Info.plist +96 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/PrivacyInfo.xcprivacy +39 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/CrashReporter +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/CrashReporter.h +366 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashFeatureConfig.h +108 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashMacros.h +143 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashNamespace.h +320 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReport.h +193 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportApplicationInfo.h +52 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportBinaryImageInfo.h +76 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportExceptionInfo.h +59 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportFormatter.h +55 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportMachExceptionInfo.h +41 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportMachineInfo.h +64 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportProcessInfo.h +80 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportProcessorInfo.h +64 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportRegisterInfo.h +45 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportSignalInfo.h +50 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportStackFrameInfo.h +50 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportSymbolInfo.h +51 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportSystemInfo.h +158 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportTextFormatter.h +59 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportThreadInfo.h +75 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReporter.h +131 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReporterConfig.h +193 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Info.plist +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Modules/module.modulemap +8 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/PrivacyInfo.xcprivacy +39 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/CrashReporter +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/CrashReporter.h +366 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashFeatureConfig.h +108 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashMacros.h +143 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashNamespace.h +320 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReport.h +193 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportApplicationInfo.h +52 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportBinaryImageInfo.h +76 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportExceptionInfo.h +59 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportFormatter.h +55 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportMachExceptionInfo.h +41 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportMachineInfo.h +64 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportProcessInfo.h +80 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportProcessorInfo.h +64 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportRegisterInfo.h +45 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportSignalInfo.h +50 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportStackFrameInfo.h +50 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportSymbolInfo.h +51 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportSystemInfo.h +158 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportTextFormatter.h +59 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportThreadInfo.h +75 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReporter.h +131 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReporterConfig.h +193 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Modules/module.modulemap +8 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Resources/Info.plist +52 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Resources/PrivacyInfo.xcprivacy +39 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/CrashReporter +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/CrashReporter.h +366 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashFeatureConfig.h +108 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashMacros.h +143 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashNamespace.h +320 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReport.h +193 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportApplicationInfo.h +52 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportBinaryImageInfo.h +76 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportExceptionInfo.h +59 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportFormatter.h +55 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportMachExceptionInfo.h +41 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportMachineInfo.h +64 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportProcessInfo.h +80 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportProcessorInfo.h +64 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportRegisterInfo.h +45 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportSignalInfo.h +50 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportStackFrameInfo.h +50 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportSymbolInfo.h +51 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportSystemInfo.h +158 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportTextFormatter.h +59 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportThreadInfo.h +75 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReporter.h +131 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReporterConfig.h +193 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Modules/module.modulemap +8 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Resources/Info.plist +52 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Resources/PrivacyInfo.xcprivacy +39 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/CrashReporter +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/CrashReporter.h +366 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashFeatureConfig.h +108 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashMacros.h +143 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashNamespace.h +320 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReport.h +193 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportApplicationInfo.h +52 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportBinaryImageInfo.h +76 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportExceptionInfo.h +59 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportFormatter.h +55 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportMachExceptionInfo.h +41 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportMachineInfo.h +64 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportProcessInfo.h +80 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportProcessorInfo.h +64 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportRegisterInfo.h +45 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportSignalInfo.h +50 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportStackFrameInfo.h +50 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportSymbolInfo.h +51 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportSystemInfo.h +158 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportTextFormatter.h +59 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportThreadInfo.h +75 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReporter.h +131 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReporterConfig.h +193 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Modules/module.modulemap +8 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Resources/Info.plist +52 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Resources/PrivacyInfo.xcprivacy +39 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/CrashReporter +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/CrashReporter.h +366 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashFeatureConfig.h +108 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashMacros.h +143 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashNamespace.h +320 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReport.h +193 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportApplicationInfo.h +52 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportBinaryImageInfo.h +76 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportExceptionInfo.h +59 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportFormatter.h +55 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportMachExceptionInfo.h +41 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportMachineInfo.h +64 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportProcessInfo.h +80 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportProcessorInfo.h +64 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportRegisterInfo.h +45 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportSignalInfo.h +50 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportStackFrameInfo.h +50 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportSymbolInfo.h +51 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportSystemInfo.h +158 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportTextFormatter.h +59 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportThreadInfo.h +75 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReporter.h +131 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReporterConfig.h +193 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Info.plist +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Modules/module.modulemap +8 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/PrivacyInfo.xcprivacy +39 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/_CodeSignature/CodeDirectory +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/_CodeSignature/CodeRequirements +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/_CodeSignature/CodeRequirements-1 +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/_CodeSignature/CodeResources +462 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/_CodeSignature/CodeSignature +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/CrashReporter +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/CrashReporter.h +366 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashFeatureConfig.h +108 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashMacros.h +143 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashNamespace.h +320 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReport.h +193 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportApplicationInfo.h +52 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportBinaryImageInfo.h +76 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportExceptionInfo.h +59 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportFormatter.h +55 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportMachExceptionInfo.h +41 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportMachineInfo.h +64 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportProcessInfo.h +80 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportProcessorInfo.h +64 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportRegisterInfo.h +45 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportSignalInfo.h +50 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportStackFrameInfo.h +50 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportSymbolInfo.h +51 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportSystemInfo.h +158 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportTextFormatter.h +59 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportThreadInfo.h +75 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReporter.h +131 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReporterConfig.h +193 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Modules/module.modulemap +8 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Resources/Info.plist +48 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Resources/PrivacyInfo.xcprivacy +39 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/CrashReporter +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/CrashReporter.h +366 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashFeatureConfig.h +108 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashMacros.h +143 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashNamespace.h +320 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReport.h +193 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportApplicationInfo.h +52 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportBinaryImageInfo.h +76 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportExceptionInfo.h +59 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportFormatter.h +55 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportMachExceptionInfo.h +41 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportMachineInfo.h +64 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportProcessInfo.h +80 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportProcessorInfo.h +64 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportRegisterInfo.h +45 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportSignalInfo.h +50 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportStackFrameInfo.h +50 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportSymbolInfo.h +51 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportSystemInfo.h +158 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportTextFormatter.h +59 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportThreadInfo.h +75 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReporter.h +131 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReporterConfig.h +193 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Modules/module.modulemap +8 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Resources/Info.plist +48 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Resources/PrivacyInfo.xcprivacy +39 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/CrashReporter +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/CrashReporter.h +366 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashFeatureConfig.h +108 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashMacros.h +143 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashNamespace.h +320 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReport.h +193 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportApplicationInfo.h +52 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportBinaryImageInfo.h +76 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportExceptionInfo.h +59 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportFormatter.h +55 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportMachExceptionInfo.h +41 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportMachineInfo.h +64 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportProcessInfo.h +80 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportProcessorInfo.h +64 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportRegisterInfo.h +45 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportSignalInfo.h +50 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportStackFrameInfo.h +50 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportSymbolInfo.h +51 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportSystemInfo.h +158 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportTextFormatter.h +59 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportThreadInfo.h +75 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReporter.h +131 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReporterConfig.h +193 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Modules/module.modulemap +8 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Resources/Info.plist +48 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Resources/PrivacyInfo.xcprivacy +39 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/CrashReporter +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/CrashReporter.h +366 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashFeatureConfig.h +108 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashMacros.h +143 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashNamespace.h +320 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReport.h +193 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportApplicationInfo.h +52 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportBinaryImageInfo.h +76 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportExceptionInfo.h +59 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportFormatter.h +55 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportMachExceptionInfo.h +41 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportMachineInfo.h +64 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportProcessInfo.h +80 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportProcessorInfo.h +64 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportRegisterInfo.h +45 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportSignalInfo.h +50 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportStackFrameInfo.h +50 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportSymbolInfo.h +51 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportSystemInfo.h +158 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportTextFormatter.h +59 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportThreadInfo.h +75 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReporter.h +131 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReporterConfig.h +193 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Info.plist +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Modules/module.modulemap +8 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/PrivacyInfo.xcprivacy +39 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/CrashReporter +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/CrashReporter.h +366 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashFeatureConfig.h +108 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashMacros.h +143 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashNamespace.h +320 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReport.h +193 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportApplicationInfo.h +52 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportBinaryImageInfo.h +76 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportExceptionInfo.h +59 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportFormatter.h +55 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportMachExceptionInfo.h +41 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportMachineInfo.h +64 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportProcessInfo.h +80 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportProcessorInfo.h +64 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportRegisterInfo.h +45 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportSignalInfo.h +50 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportStackFrameInfo.h +50 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportSymbolInfo.h +51 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportSystemInfo.h +158 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportTextFormatter.h +59 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportThreadInfo.h +75 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReporter.h +131 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReporterConfig.h +193 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Info.plist +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Modules/module.modulemap +8 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/PrivacyInfo.xcprivacy +39 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/_CodeSignature/CodeDirectory +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/_CodeSignature/CodeRequirements +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/_CodeSignature/CodeRequirements-1 +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/_CodeSignature/CodeResources +462 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/_CodeSignature/CodeSignature +0 -0
- package/native/ios/PLCrashReporter/LICENSE.txt +54 -0
- package/native/ios/PLCrashReporter/PLCrashReporter.podspec +19 -0
- package/native/ios/VERSION +1 -0
- package/native/ios/packages/ios/Sources/CrumbCore/Crumb.swift +108 -0
- package/native/ios/packages/ios/Sources/CrumbCore/CrumbConfiguration.swift +212 -0
- package/native/ios/packages/ios/Sources/CrumbCore/CrumbDiagnostics.swift +158 -0
- package/native/ios/packages/ios/Sources/CrumbCore/CrumbFailureStacks.swift +94 -0
- package/native/ios/packages/ios/Sources/CrumbCore/CrumbInfrastructureHealthProbe.swift +110 -0
- package/native/ios/packages/ios/Sources/CrumbCore/CrumbJavaScriptCrashRecovery.swift +136 -0
- package/native/ios/packages/ios/Sources/CrumbCore/CrumbJavaScriptCrashStore.swift +508 -0
- package/native/ios/packages/ios/Sources/CrumbCore/CrumbJavaScriptFailureContext.swift +166 -0
- package/native/ios/packages/ios/Sources/CrumbCore/CrumbLogs.swift +138 -0
- package/native/ios/packages/ios/Sources/CrumbCore/CrumbPolicy.swift +336 -0
- package/native/ios/packages/ios/Sources/CrumbCore/CrumbRendering.swift +68 -0
- package/native/ios/packages/ios/Sources/CrumbCore/CrumbReportEnvelope.swift +666 -0
- package/native/ios/packages/ios/Sources/CrumbCore/CrumbReportQueue.swift +543 -0
- package/native/ios/packages/ios/Sources/CrumbCore/CrumbReportUploader.swift +304 -0
- package/native/ios/packages/ios/Sources/CrumbCore/CrumbRuntime.swift +306 -0
- package/native/ios/packages/ios/Sources/CrumbCore/CrumbSDKVersion.swift +5 -0
- package/native/ios/packages/ios/Sources/CrumbCore/CrumbScreenContext.swift +29 -0
- package/native/ios/packages/ios/Sources/CrumbUI/CrumbDesign.swift +151 -0
- package/native/ios/packages/ios/Sources/CrumbUI/CrumbLocalization.swift +23 -0
- package/native/ios/packages/ios/Sources/CrumbUI/CrumbQualityInstrumentation.swift +30 -0
- package/native/ios/packages/ios/Sources/CrumbUI/CrumbRenderingMonitor.swift +40 -0
- package/native/ios/packages/ios/Sources/CrumbUI/CrumbReporter.swift +1705 -0
- package/native/ios/packages/ios/Sources/CrumbUI/CrumbReporterLifecycle.swift +119 -0
- package/native/ios/packages/ios/Sources/CrumbUI/CrumbScreenshotArtifact.swift +186 -0
- package/native/ios/packages/ios/Sources/CrumbUI/CrumbShakeGestureRecognizer.swift +62 -0
- package/native/ios/packages/ios/Sources/CrumbUI/CrumbUploadCoordinator.swift +113 -0
- package/native/ios/packages/ios/Sources/CrumbUI/CrumbWorkspacePolicyCoordinator.swift +86 -0
- package/native/ios/packages/ios/Sources/CrumbUI/OnDemandDiagnosticsCollector.swift +269 -0
- package/native/ios/packages/ios/Sources/CrumbUI/OnDemandLogCollector.swift +213 -0
- package/native/ios/packages/ios/Sources/CrumbUI/Resources/en.lproj/Localizable.strings +75 -0
- package/native/ios/provenance.json +8 -0
- package/nitrogen/generated/android/c++/JHybridCrumbReactNativeSpec.cpp +32 -3
- package/nitrogen/generated/android/c++/JHybridCrumbReactNativeSpec.hpp +5 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/crumbsdk/reactnative/HybridCrumbReactNativeSpec.kt +17 -1
- package/nitrogen/generated/ios/CrumbReactNative-Swift-Cxx-Bridge.hpp +9 -0
- package/nitrogen/generated/ios/c++/HybridCrumbReactNativeSpecSwift.hpp +30 -2
- package/nitrogen/generated/ios/swift/HybridCrumbReactNativeSpec.swift +5 -1
- package/nitrogen/generated/ios/swift/HybridCrumbReactNativeSpec_cxx.swift +55 -2
- package/nitrogen/generated/shared/c++/HybridCrumbReactNativeSpec.cpp +4 -0
- package/nitrogen/generated/shared/c++/HybridCrumbReactNativeSpec.hpp +5 -1
- package/package.json +29 -5
- package/plugin/build-hooks.cjs +52 -0
- package/plugin/podfile.cjs +21 -0
- package/scripts/ios.rb +23 -0
- package/src/CrumbReactNative.nitro.ts +5 -1
- package/src/NativeCrumbReactNative.web.ts +4 -0
- package/src/build-release.ts +30 -0
- package/src/index.ts +221 -2
- package/src/javascript-crash-capture.ts +774 -0
- package/src/log-buffer.ts +27 -2
- package/src/screen-context.ts +154 -0
- package/src/types.ts +53 -0
- package/tools/cli.cjs +116 -0
- package/tools/config.cjs +72 -0
- package/tools/crumb.gradle +63 -0
- package/tools/expo-export.cjs +122 -0
- package/tools/ios.cjs +93 -0
- package/tools/node.cjs +21 -0
- package/tools/release.cjs +65 -0
- package/tools/setup.cjs +291 -0
- 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
|
+
}
|