@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,304 @@
|
|
|
1
|
+
import Foundation
|
|
2
|
+
#if canImport(FoundationNetworking)
|
|
3
|
+
import FoundationNetworking
|
|
4
|
+
#endif
|
|
5
|
+
|
|
6
|
+
package struct CrumbUploadHTTPResponse: Sendable {
|
|
7
|
+
package let statusCode: Int
|
|
8
|
+
package let data: Data
|
|
9
|
+
|
|
10
|
+
package init(statusCode: Int, data: Data = Data()) {
|
|
11
|
+
self.statusCode = statusCode
|
|
12
|
+
self.data = data
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
package protocol CrumbUploadTransport: Sendable {
|
|
17
|
+
func send(_ request: URLRequest) async throws -> CrumbUploadHTTPResponse
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
package struct CrumbURLSessionUploadTransport: CrumbUploadTransport {
|
|
21
|
+
private let session: URLSession
|
|
22
|
+
|
|
23
|
+
package init(session: URLSession = .shared) {
|
|
24
|
+
self.session = session
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
package func send(_ request: URLRequest) async throws -> CrumbUploadHTTPResponse {
|
|
28
|
+
let (data, response) = try await session.data(for: request)
|
|
29
|
+
guard data.count <= 1_048_576,
|
|
30
|
+
let response = response as? HTTPURLResponse else {
|
|
31
|
+
throw CrumbUploadFailure(reason: "transport.invalid_response", retryable: true)
|
|
32
|
+
}
|
|
33
|
+
return CrumbUploadHTTPResponse(statusCode: response.statusCode, data: data)
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
package struct CrumbUploadPassResult: Equatable, Sendable {
|
|
38
|
+
package let uploadedReportCount: Int
|
|
39
|
+
package let remainingReportCount: Int
|
|
40
|
+
package let shouldRetry: Bool
|
|
41
|
+
package let wasCancelled: Bool
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/// Performs one bounded upload pass. Scheduling and connectivity live in CrumbUI.
|
|
45
|
+
package actor CrumbReportUploadWorker {
|
|
46
|
+
private let queue: CrumbReportQueue
|
|
47
|
+
private let settings: CrumbUploadSettings
|
|
48
|
+
private let transport: any CrumbUploadTransport
|
|
49
|
+
|
|
50
|
+
package init(
|
|
51
|
+
queue: CrumbReportQueue = .shared,
|
|
52
|
+
settings: CrumbUploadSettings,
|
|
53
|
+
transport: any CrumbUploadTransport = CrumbURLSessionUploadTransport()
|
|
54
|
+
) {
|
|
55
|
+
self.queue = queue
|
|
56
|
+
self.settings = settings
|
|
57
|
+
self.transport = transport
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
package func runPass() async -> CrumbUploadPassResult {
|
|
61
|
+
var uploadedReportCount = 0
|
|
62
|
+
var shouldRetry = false
|
|
63
|
+
var wasCancelled = false
|
|
64
|
+
|
|
65
|
+
do {
|
|
66
|
+
try await queue.recoverInterruptedUploads()
|
|
67
|
+
let reports = try await queue.reports()
|
|
68
|
+
for report in reports {
|
|
69
|
+
do {
|
|
70
|
+
try Task.checkCancellation()
|
|
71
|
+
try await queue.markUploading(reportID: report.reportID)
|
|
72
|
+
let payload = try await queue.load(reportID: report.reportID)
|
|
73
|
+
try await upload(payload)
|
|
74
|
+
try Task.checkCancellation()
|
|
75
|
+
try await queue.remove(reportID: report.reportID)
|
|
76
|
+
uploadedReportCount += 1
|
|
77
|
+
} catch is CancellationError {
|
|
78
|
+
try? await queue.markPending(reportID: report.reportID)
|
|
79
|
+
wasCancelled = true
|
|
80
|
+
break
|
|
81
|
+
} catch let failure as CrumbUploadFailure {
|
|
82
|
+
try? await queue.markFailed(reportID: report.reportID, reason: failure.reason)
|
|
83
|
+
if failure.retryable {
|
|
84
|
+
shouldRetry = true
|
|
85
|
+
break
|
|
86
|
+
}
|
|
87
|
+
} catch {
|
|
88
|
+
try? await queue.markFailed(
|
|
89
|
+
reportID: report.reportID,
|
|
90
|
+
reason: "uploader.local_failure"
|
|
91
|
+
)
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
} catch is CancellationError {
|
|
95
|
+
wasCancelled = true
|
|
96
|
+
} catch {
|
|
97
|
+
shouldRetry = true
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
let remainingReports = try? await queue.reports()
|
|
101
|
+
return CrumbUploadPassResult(
|
|
102
|
+
uploadedReportCount: uploadedReportCount,
|
|
103
|
+
remainingReportCount: remainingReports?.count ?? 1,
|
|
104
|
+
shouldRetry: shouldRetry,
|
|
105
|
+
wasCancelled: wasCancelled
|
|
106
|
+
)
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
private func upload(_ payload: CrumbQueuedReportPayload) async throws {
|
|
110
|
+
let reportID = payload.summary.reportID
|
|
111
|
+
let initResponse = try await sendLifecycle(
|
|
112
|
+
path: ["sdk", "v1", "reports", "init"],
|
|
113
|
+
reportID: reportID,
|
|
114
|
+
operation: "init",
|
|
115
|
+
body: wrappedEnvelope(payload.envelope)
|
|
116
|
+
)
|
|
117
|
+
let initialized = try decodeInitialization(initResponse.data, reportID: reportID)
|
|
118
|
+
|
|
119
|
+
switch initialized.status {
|
|
120
|
+
case "accepted":
|
|
121
|
+
guard initialized.artifacts.isEmpty else {
|
|
122
|
+
throw CrumbUploadFailure(reason: "init.invalid_response", retryable: false)
|
|
123
|
+
}
|
|
124
|
+
case "initialized":
|
|
125
|
+
try validateTargets(initialized.artifacts, payload: payload)
|
|
126
|
+
for artifact in payload.artifacts {
|
|
127
|
+
try Task.checkCancellation()
|
|
128
|
+
guard let target = initialized.artifacts.first(where: {
|
|
129
|
+
$0.id == artifact.manifest.id
|
|
130
|
+
}) else {
|
|
131
|
+
throw CrumbUploadFailure(reason: "init.invalid_response", retryable: false)
|
|
132
|
+
}
|
|
133
|
+
try await put(artifact.data, target: target)
|
|
134
|
+
}
|
|
135
|
+
default:
|
|
136
|
+
throw CrumbUploadFailure(reason: "init.terminal_state", retryable: false)
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
_ = try await sendLifecycle(
|
|
140
|
+
path: ["sdk", "v1", "reports", reportID, "complete"],
|
|
141
|
+
reportID: reportID,
|
|
142
|
+
operation: "complete",
|
|
143
|
+
body: Data("{}".utf8)
|
|
144
|
+
)
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
private func sendLifecycle(
|
|
148
|
+
path: [String],
|
|
149
|
+
reportID: String,
|
|
150
|
+
operation: String,
|
|
151
|
+
body: Data?
|
|
152
|
+
) async throws -> CrumbUploadHTTPResponse {
|
|
153
|
+
var request = URLRequest(url: endpoint(path))
|
|
154
|
+
request.httpMethod = "POST"
|
|
155
|
+
request.timeoutInterval = 15
|
|
156
|
+
request.setValue("Bearer \(settings.projectKey)", forHTTPHeaderField: "Authorization")
|
|
157
|
+
request.setValue("\(reportID):\(operation)", forHTTPHeaderField: "Idempotency-Key")
|
|
158
|
+
if let body {
|
|
159
|
+
request.httpBody = body
|
|
160
|
+
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
|
|
161
|
+
}
|
|
162
|
+
let response = try await send(request, operation: operation)
|
|
163
|
+
guard (200..<300).contains(response.statusCode) else {
|
|
164
|
+
throw httpFailure(operation: operation, statusCode: response.statusCode)
|
|
165
|
+
}
|
|
166
|
+
return response
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
private func put(_ data: Data, target: InitializationResponse.Artifact) async throws {
|
|
170
|
+
guard target.method == "PUT",
|
|
171
|
+
let url = URL(string: target.url),
|
|
172
|
+
validUploadURL(url) else {
|
|
173
|
+
throw CrumbUploadFailure(reason: "artifact.invalid_target", retryable: false)
|
|
174
|
+
}
|
|
175
|
+
var request = URLRequest(url: url)
|
|
176
|
+
request.httpMethod = "PUT"
|
|
177
|
+
request.timeoutInterval = 60
|
|
178
|
+
request.httpBody = data
|
|
179
|
+
for (name, value) in target.headers where validHeaderName(name) {
|
|
180
|
+
request.setValue(value, forHTTPHeaderField: name)
|
|
181
|
+
}
|
|
182
|
+
let response = try await send(request, operation: "artifact")
|
|
183
|
+
guard (200..<300).contains(response.statusCode) else {
|
|
184
|
+
throw httpFailure(operation: "artifact", statusCode: response.statusCode)
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
private func send(_ request: URLRequest, operation: String) async throws -> CrumbUploadHTTPResponse {
|
|
189
|
+
do {
|
|
190
|
+
return try await transport.send(request)
|
|
191
|
+
} catch is CancellationError {
|
|
192
|
+
throw CancellationError()
|
|
193
|
+
} catch let failure as CrumbUploadFailure {
|
|
194
|
+
throw failure
|
|
195
|
+
} catch {
|
|
196
|
+
if Task.isCancelled { throw CancellationError() }
|
|
197
|
+
throw CrumbUploadFailure(reason: "\(operation).network", retryable: true)
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
private func validateTargets(
|
|
202
|
+
_ targets: [InitializationResponse.Artifact],
|
|
203
|
+
payload: CrumbQueuedReportPayload
|
|
204
|
+
) throws {
|
|
205
|
+
let targetIDs = targets.map(\.id)
|
|
206
|
+
guard targetIDs.count == Set(targetIDs).count,
|
|
207
|
+
Set(targetIDs) == Set(payload.artifacts.map(\.manifest.id)) else {
|
|
208
|
+
throw CrumbUploadFailure(reason: "init.invalid_response", retryable: false)
|
|
209
|
+
}
|
|
210
|
+
for target in targets {
|
|
211
|
+
guard let artifact = payload.artifacts.first(where: { $0.manifest.id == target.id }),
|
|
212
|
+
target.uploadID == artifact.manifest.uploadID else {
|
|
213
|
+
throw CrumbUploadFailure(reason: "init.invalid_response", retryable: false)
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
private func decodeInitialization(_ data: Data, reportID: String) throws -> InitializationResponse {
|
|
219
|
+
do {
|
|
220
|
+
let response = try JSONDecoder().decode(InitializationResponse.self, from: data)
|
|
221
|
+
guard response.reportID == reportID else {
|
|
222
|
+
throw CrumbUploadFailure(reason: "init.invalid_response", retryable: false)
|
|
223
|
+
}
|
|
224
|
+
return response
|
|
225
|
+
} catch let failure as CrumbUploadFailure {
|
|
226
|
+
throw failure
|
|
227
|
+
} catch {
|
|
228
|
+
throw CrumbUploadFailure(reason: "init.invalid_response", retryable: false)
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
private func wrappedEnvelope(_ envelope: Data) -> Data {
|
|
233
|
+
var body = Data("{\"envelope\":".utf8)
|
|
234
|
+
body.append(envelope)
|
|
235
|
+
body.append(Data("}".utf8))
|
|
236
|
+
return body
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
private func endpoint(_ components: [String]) -> URL {
|
|
240
|
+
components.reduce(settings.ingestionURL) { url, component in
|
|
241
|
+
url.appendingPathComponent(component)
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
private func validUploadURL(_ url: URL) -> Bool {
|
|
246
|
+
let scheme = url.scheme?.lowercased()
|
|
247
|
+
let baseScheme = settings.ingestionURL.scheme?.lowercased()
|
|
248
|
+
return url.host != nil
|
|
249
|
+
&& url.user == nil
|
|
250
|
+
&& url.password == nil
|
|
251
|
+
&& url.fragment == nil
|
|
252
|
+
&& (scheme == "https" || (scheme == "http" && baseScheme == "http"))
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
private func validHeaderName(_ value: String) -> Bool {
|
|
256
|
+
let allowed = CharacterSet(
|
|
257
|
+
charactersIn: "!#$%&'*+-.^_`|~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
|
|
258
|
+
)
|
|
259
|
+
return !value.isEmpty && value.unicodeScalars.allSatisfy(allowed.contains)
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
private func httpFailure(operation: String, statusCode: Int) -> CrumbUploadFailure {
|
|
263
|
+
let retryable = statusCode == 408 || statusCode == 425 || statusCode == 429
|
|
264
|
+
|| (500...599).contains(statusCode)
|
|
265
|
+
|| (operation == "artifact" && statusCode == 403)
|
|
266
|
+
return CrumbUploadFailure(
|
|
267
|
+
reason: "\(operation).http_\(statusCode)",
|
|
268
|
+
retryable: retryable
|
|
269
|
+
)
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
private struct InitializationResponse: Decodable, Sendable {
|
|
273
|
+
let reportID: String
|
|
274
|
+
let status: String
|
|
275
|
+
let artifacts: [Artifact]
|
|
276
|
+
|
|
277
|
+
enum CodingKeys: String, CodingKey {
|
|
278
|
+
case reportID = "report_id"
|
|
279
|
+
case status
|
|
280
|
+
case artifacts
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
struct Artifact: Decodable, Sendable {
|
|
284
|
+
let id: String
|
|
285
|
+
let uploadID: String
|
|
286
|
+
let method: String
|
|
287
|
+
let url: String
|
|
288
|
+
let headers: [String: String]
|
|
289
|
+
|
|
290
|
+
enum CodingKeys: String, CodingKey {
|
|
291
|
+
case id
|
|
292
|
+
case uploadID = "upload_id"
|
|
293
|
+
case method
|
|
294
|
+
case url
|
|
295
|
+
case headers
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
private struct CrumbUploadFailure: Error, Sendable {
|
|
302
|
+
let reason: String
|
|
303
|
+
let retryable: Bool
|
|
304
|
+
}
|
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
import Foundation
|
|
2
|
+
import CryptoKit
|
|
3
|
+
|
|
4
|
+
package struct CrumbReportSettings: Equatable, Sendable {
|
|
5
|
+
package let environment: String
|
|
6
|
+
package let release: CrumbRelease
|
|
7
|
+
package let invocation: Set<CrumbInvocation>
|
|
8
|
+
package let capture: CrumbCaptureOptions
|
|
9
|
+
package let diagnostics: CrumbDiagnosticsOptions
|
|
10
|
+
package let privacy: CrumbPrivacyOptions
|
|
11
|
+
package let reporter: CrumbReporterOptions
|
|
12
|
+
package let evidence: Set<CrumbEvidenceCategory>
|
|
13
|
+
package let application: CrumbApplicationMetadata
|
|
14
|
+
package let customContext: [String: String]
|
|
15
|
+
package let policyStatus: CrumbPolicyStatus
|
|
16
|
+
package let workspacePolicyVersion: Int?
|
|
17
|
+
package var screenContext: CrumbScreenContext? = nil
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
package struct CrumbUploadSettings: Equatable, Sendable {
|
|
21
|
+
package let projectKey: String
|
|
22
|
+
package let ingestionURL: URL
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
final class CrumbRuntime: @unchecked Sendable {
|
|
26
|
+
static let shared = CrumbRuntime()
|
|
27
|
+
|
|
28
|
+
private let lock = NSLock()
|
|
29
|
+
private var configuration: CrumbConfiguration?
|
|
30
|
+
private var screenContext: CrumbScreenContext?
|
|
31
|
+
private var workspacePolicy: CrumbWorkspacePolicy?
|
|
32
|
+
private var highestWorkspacePolicyVersionByScope: [String: Int] = [:]
|
|
33
|
+
private var policyStatus: CrumbPolicyStatus = .notFetched
|
|
34
|
+
|
|
35
|
+
private init() {}
|
|
36
|
+
|
|
37
|
+
func start(_ configuration: CrumbConfiguration) throws {
|
|
38
|
+
try Self.validate(configuration)
|
|
39
|
+
|
|
40
|
+
lock.lock()
|
|
41
|
+
defer { lock.unlock() }
|
|
42
|
+
|
|
43
|
+
if let existing = self.configuration {
|
|
44
|
+
guard existing == configuration else {
|
|
45
|
+
throw CrumbStartError.alreadyStartedWithDifferentConfiguration
|
|
46
|
+
}
|
|
47
|
+
return
|
|
48
|
+
}
|
|
49
|
+
self.configuration = configuration
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
func setScreenContext(_ json: String) {
|
|
53
|
+
let context = CrumbScreenContext.decode(json)
|
|
54
|
+
lock.lock()
|
|
55
|
+
defer { lock.unlock() }
|
|
56
|
+
screenContext = context
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
func reportSettings() throws -> CrumbReportSettings {
|
|
60
|
+
lock.lock()
|
|
61
|
+
defer { lock.unlock() }
|
|
62
|
+
|
|
63
|
+
guard let configuration else { throw CrumbRuntimeError.notStarted }
|
|
64
|
+
let effective = effectiveSettings(for: configuration)
|
|
65
|
+
return CrumbReportSettings(
|
|
66
|
+
environment: configuration.environment,
|
|
67
|
+
release: configuration.release,
|
|
68
|
+
invocation: configuration.invocation,
|
|
69
|
+
capture: configuration.capture,
|
|
70
|
+
diagnostics: configuration.diagnostics,
|
|
71
|
+
privacy: configuration.privacy,
|
|
72
|
+
reporter: CrumbReporterOptions(
|
|
73
|
+
theme: configuration.reporter.theme,
|
|
74
|
+
visibleFields: effective.reporterFields
|
|
75
|
+
),
|
|
76
|
+
evidence: effective.evidence,
|
|
77
|
+
application: configuration.application,
|
|
78
|
+
customContext: effective.customContext,
|
|
79
|
+
policyStatus: effective.status,
|
|
80
|
+
workspacePolicyVersion: effective.workspacePolicyVersion,
|
|
81
|
+
screenContext: effective.evidence.contains(.customContext) ? screenContext : nil
|
|
82
|
+
)
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
func workspacePolicyFetchSettings() throws -> CrumbPolicyFetchSettings? {
|
|
86
|
+
lock.lock()
|
|
87
|
+
defer { lock.unlock() }
|
|
88
|
+
|
|
89
|
+
guard let configuration else { throw CrumbRuntimeError.notStarted }
|
|
90
|
+
guard let url = configuration.workspacePolicy.url else { return nil }
|
|
91
|
+
return CrumbPolicyFetchSettings(
|
|
92
|
+
projectKey: configuration.projectKey,
|
|
93
|
+
url: url,
|
|
94
|
+
timeout: configuration.workspacePolicy.timeout
|
|
95
|
+
)
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
func workspacePolicyCacheKey() throws -> String {
|
|
99
|
+
lock.lock()
|
|
100
|
+
defer { lock.unlock() }
|
|
101
|
+
|
|
102
|
+
guard let configuration else { throw CrumbRuntimeError.notStarted }
|
|
103
|
+
let scope = Self.workspacePolicyScopeKey(for: configuration)
|
|
104
|
+
let digest = SHA256.hash(data: Data(scope.utf8))
|
|
105
|
+
.map { String(format: "%02x", $0) }
|
|
106
|
+
.joined()
|
|
107
|
+
return "crumb.workspace-policy.\(digest)"
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
func beginWorkspacePolicyFetch() {
|
|
111
|
+
lock.lock()
|
|
112
|
+
defer { lock.unlock() }
|
|
113
|
+
guard configuration?.workspacePolicy.url != nil else { return }
|
|
114
|
+
policyStatus = workspacePolicy?.isValid(at: Date()) == true ? .cached : .fetching
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@discardableResult
|
|
118
|
+
func applyWorkspacePolicy(_ policy: CrumbWorkspacePolicy, source: CrumbPolicySource) -> Bool {
|
|
119
|
+
lock.lock()
|
|
120
|
+
defer { lock.unlock() }
|
|
121
|
+
guard let configuration,
|
|
122
|
+
configuration.workspacePolicy.url != nil,
|
|
123
|
+
policy.isValid(at: Date()) else {
|
|
124
|
+
return false
|
|
125
|
+
}
|
|
126
|
+
let scope = Self.workspacePolicyScopeKey(for: configuration)
|
|
127
|
+
if highestWorkspacePolicyVersionByScope[scope].map({ $0 > policy.version }) == true {
|
|
128
|
+
return false
|
|
129
|
+
}
|
|
130
|
+
workspacePolicy = policy
|
|
131
|
+
highestWorkspacePolicyVersionByScope[scope] = max(
|
|
132
|
+
highestWorkspacePolicyVersionByScope[scope] ?? 0,
|
|
133
|
+
policy.version
|
|
134
|
+
)
|
|
135
|
+
policyStatus = source == .fresh ? .fresh : .cached
|
|
136
|
+
return true
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
func markWorkspacePolicyUnavailable() {
|
|
140
|
+
lock.lock()
|
|
141
|
+
defer { lock.unlock() }
|
|
142
|
+
guard configuration?.workspacePolicy.url != nil else { return }
|
|
143
|
+
if workspacePolicy?.isValid(at: Date()) != true {
|
|
144
|
+
workspacePolicy = nil
|
|
145
|
+
policyStatus = .unavailable
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
func uploadSettings() throws -> CrumbUploadSettings? {
|
|
150
|
+
lock.lock()
|
|
151
|
+
defer { lock.unlock() }
|
|
152
|
+
|
|
153
|
+
guard let configuration else { throw CrumbRuntimeError.notStarted }
|
|
154
|
+
guard let ingestionURL = configuration.upload.ingestionURL else { return nil }
|
|
155
|
+
return CrumbUploadSettings(
|
|
156
|
+
projectKey: configuration.projectKey,
|
|
157
|
+
ingestionURL: ingestionURL
|
|
158
|
+
)
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
func resetForTesting() {
|
|
162
|
+
lock.lock()
|
|
163
|
+
defer { lock.unlock() }
|
|
164
|
+
configuration = nil
|
|
165
|
+
screenContext = nil
|
|
166
|
+
workspacePolicy = nil
|
|
167
|
+
highestWorkspacePolicyVersionByScope.removeAll()
|
|
168
|
+
policyStatus = .notFetched
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
private static func workspacePolicyScopeKey(for configuration: CrumbConfiguration) -> String {
|
|
172
|
+
[
|
|
173
|
+
configuration.projectKey,
|
|
174
|
+
configuration.environment,
|
|
175
|
+
configuration.workspacePolicy.url?.absoluteString ?? ""
|
|
176
|
+
]
|
|
177
|
+
.map { "\($0.utf8.count):\($0)" }
|
|
178
|
+
.joined(separator: "|")
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
private static func validate(_ configuration: CrumbConfiguration) throws {
|
|
182
|
+
guard !configuration.projectKey.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty else {
|
|
183
|
+
throw CrumbStartError.emptyProjectKey
|
|
184
|
+
}
|
|
185
|
+
guard hasPrintableLength(configuration.projectKey, maximum: 512) else {
|
|
186
|
+
throw CrumbStartError.invalidProjectKey
|
|
187
|
+
}
|
|
188
|
+
guard !configuration.environment.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty else {
|
|
189
|
+
throw CrumbStartError.emptyEnvironment
|
|
190
|
+
}
|
|
191
|
+
guard hasPrintableLength(configuration.environment, maximum: 64) else {
|
|
192
|
+
throw CrumbStartError.invalidEnvironment
|
|
193
|
+
}
|
|
194
|
+
guard
|
|
195
|
+
hasPrintableLength(configuration.release.appVersion, maximum: 64),
|
|
196
|
+
hasPrintableLength(configuration.release.nativeBuild, maximum: 64),
|
|
197
|
+
configuration.release.bundleVersion.map({
|
|
198
|
+
hasPrintableLength($0, maximum: 128)
|
|
199
|
+
}) ?? true
|
|
200
|
+
else {
|
|
201
|
+
throw CrumbStartError.invalidRelease
|
|
202
|
+
}
|
|
203
|
+
guard configuration.reporter.visibleFields.contains(.description) else {
|
|
204
|
+
throw CrumbStartError.invalidReporterFields
|
|
205
|
+
}
|
|
206
|
+
guard Set(CrumbEvidenceCategory.allCases).isSuperset(of: configuration.evidence) else {
|
|
207
|
+
throw CrumbStartError.invalidEvidence
|
|
208
|
+
}
|
|
209
|
+
if let name = configuration.application.name,
|
|
210
|
+
!hasPrintableLength(name, maximum: 256) {
|
|
211
|
+
throw CrumbStartError.invalidApplicationMetadata
|
|
212
|
+
}
|
|
213
|
+
guard
|
|
214
|
+
configuration.customContext.values.count <= CrumbCustomContextSanitizer.maximumKeys,
|
|
215
|
+
configuration.customContext.allowedKeys.count <= CrumbCustomContextSanitizer.maximumKeys,
|
|
216
|
+
configuration.customContext.values.keys.allSatisfy({
|
|
217
|
+
CrumbCustomContextSanitizer.isValidKey($0)
|
|
218
|
+
}),
|
|
219
|
+
configuration.customContext.allowedKeys.allSatisfy({
|
|
220
|
+
CrumbCustomContextSanitizer.isValidKey($0)
|
|
221
|
+
})
|
|
222
|
+
else {
|
|
223
|
+
throw CrumbStartError.invalidCustomContext
|
|
224
|
+
}
|
|
225
|
+
guard configuration.workspacePolicy.timeout >= 0.25,
|
|
226
|
+
configuration.workspacePolicy.timeout <= 5 else {
|
|
227
|
+
throw CrumbStartError.invalidWorkspacePolicyTimeout
|
|
228
|
+
}
|
|
229
|
+
if let url = configuration.workspacePolicy.url,
|
|
230
|
+
!validHTTPURL(url) {
|
|
231
|
+
throw CrumbStartError.invalidWorkspacePolicyURL
|
|
232
|
+
}
|
|
233
|
+
guard (320...4_096).contains(configuration.capture.maximumScreenshotDimension) else {
|
|
234
|
+
throw CrumbStartError.invalidScreenshotDimension
|
|
235
|
+
}
|
|
236
|
+
guard (65_536...26_214_400).contains(configuration.capture.maximumScreenshotBytes) else {
|
|
237
|
+
throw CrumbStartError.invalidScreenshotByteLimit
|
|
238
|
+
}
|
|
239
|
+
guard (0.25...5).contains(configuration.diagnostics.timeout) else {
|
|
240
|
+
throw CrumbStartError.invalidDiagnosticsTimeout
|
|
241
|
+
}
|
|
242
|
+
if let url = configuration.diagnostics.healthCheckURL,
|
|
243
|
+
!validHTTPURL(url) {
|
|
244
|
+
throw CrumbStartError.invalidHealthCheckURL
|
|
245
|
+
}
|
|
246
|
+
guard (1...300).contains(configuration.diagnostics.logs.lookback) else {
|
|
247
|
+
throw CrumbStartError.invalidLogLookback
|
|
248
|
+
}
|
|
249
|
+
guard
|
|
250
|
+
(1...500).contains(configuration.diagnostics.logs.maximumEntries),
|
|
251
|
+
(1_024...262_144).contains(configuration.diagnostics.logs.maximumBytes)
|
|
252
|
+
else {
|
|
253
|
+
throw CrumbStartError.invalidLogLimits
|
|
254
|
+
}
|
|
255
|
+
if let url = configuration.upload.ingestionURL {
|
|
256
|
+
guard validHTTPURL(url) else {
|
|
257
|
+
throw CrumbStartError.invalidIngestionURL
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
private func effectiveSettings(
|
|
263
|
+
for configuration: CrumbConfiguration,
|
|
264
|
+
now: Date = Date()
|
|
265
|
+
) -> CrumbEffectivePolicy {
|
|
266
|
+
let status: CrumbPolicyStatus
|
|
267
|
+
if configuration.workspacePolicy.url == nil {
|
|
268
|
+
status = .notConfigured
|
|
269
|
+
} else if let workspacePolicy,
|
|
270
|
+
workspacePolicy.isValid(at: now),
|
|
271
|
+
policyStatus == .fresh || policyStatus == .cached {
|
|
272
|
+
status = policyStatus
|
|
273
|
+
} else if workspacePolicy.map({ $0.expiresAt <= now }) == true {
|
|
274
|
+
status = .expired
|
|
275
|
+
} else {
|
|
276
|
+
status = policyStatus
|
|
277
|
+
}
|
|
278
|
+
return CrumbPolicyEvaluator.effective(
|
|
279
|
+
for: configuration,
|
|
280
|
+
workspacePolicy: workspacePolicy,
|
|
281
|
+
status: status,
|
|
282
|
+
now: now
|
|
283
|
+
)
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
private static func validHTTPURL(_ url: URL) -> Bool {
|
|
287
|
+
let scheme = url.scheme?.lowercased()
|
|
288
|
+
return (scheme == "https" || scheme == "http") &&
|
|
289
|
+
url.host != nil &&
|
|
290
|
+
url.user == nil &&
|
|
291
|
+
url.password == nil &&
|
|
292
|
+
url.query == nil &&
|
|
293
|
+
url.fragment == nil
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
private static func hasPrintableLength(_ value: String, maximum: Int) -> Bool {
|
|
297
|
+
let trimmed = value.trimmingCharacters(in: .whitespacesAndNewlines)
|
|
298
|
+
return !trimmed.isEmpty
|
|
299
|
+
&& value.unicodeScalars.count <= maximum
|
|
300
|
+
&& value.unicodeScalars.allSatisfy { !CharacterSet.controlCharacters.contains($0) }
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
package enum CrumbRuntimeError: Error, Equatable {
|
|
305
|
+
case notStarted
|
|
306
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import Foundation
|
|
2
|
+
|
|
3
|
+
/// An explicitly supplied static screen name and focused route hierarchy, never navigation history.
|
|
4
|
+
public struct CrumbScreenContext: Codable, Equatable, Sendable {
|
|
5
|
+
public let name: String
|
|
6
|
+
public let route: [String]
|
|
7
|
+
public let source: String
|
|
8
|
+
|
|
9
|
+
package func validated() -> Self? {
|
|
10
|
+
func valid(_ value: String) -> Bool {
|
|
11
|
+
!value.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty &&
|
|
12
|
+
value.utf8.count <= 128 && !value.contains("://") &&
|
|
13
|
+
!value.contains("?") && !value.contains("#") &&
|
|
14
|
+
value.unicodeScalars.allSatisfy { !CharacterSet.controlCharacters.contains($0) }
|
|
15
|
+
}
|
|
16
|
+
guard ["manual", "react_navigation", "expo_router"].contains(source),
|
|
17
|
+
valid(name), !route.isEmpty, route.count <= 8, route.allSatisfy(valid) else { return nil }
|
|
18
|
+
let cleanName = CrumbLogSanitizer.sanitize(name)
|
|
19
|
+
let cleanRoute = route.map { CrumbLogSanitizer.sanitize($0) }
|
|
20
|
+
guard valid(cleanName), cleanRoute.allSatisfy(valid) else { return nil }
|
|
21
|
+
return Self(name: cleanName, route: cleanRoute, source: source)
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
package static func decode(_ json: String) -> Self? {
|
|
25
|
+
guard json.utf8.count <= 2048, let data = json.data(using: .utf8),
|
|
26
|
+
let value = try? JSONDecoder().decode(Self.self, from: data) else { return nil }
|
|
27
|
+
return value.validated()
|
|
28
|
+
}
|
|
29
|
+
}
|