peachsim 0.1.1728 → 0.1.1744
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 +4 -0
- package/cli/app-catalog.ts +47 -23
- package/cli/app-fonts.ts +19 -1
- package/cli/command-registry.ts +3 -0
- package/cli/commands/control.ts +68 -16
- package/cli/commands/coverage-swift.ts +112 -4
- package/cli/commands/device.ts +3 -1
- package/cli/commands/doctor.ts +1 -4
- package/cli/commands/inspect/settling.ts +6 -1
- package/cli/commands/inspect/wait-ready.ts +22 -2
- package/cli/commands/package.ts +33 -21
- package/cli/commands/push.ts +56 -0
- package/cli/commands/serve.ts +9 -0
- package/cli/commands/shell-url.ts +41 -9
- package/cli/commands/swift.ts +1 -1
- package/cli/current-sim.ts +27 -0
- package/cli/drivers/linux-browser-libs.lock.json +323 -1
- package/cli/drivers/linux-browser-libs.ts +8 -6
- package/cli/drivers/playwright.ts +5 -1
- package/cli/internal-child.ts +11 -1
- package/cli/main.ts +6 -0
- package/cli/native-input.ts +1 -7
- package/cli/outbound-endpoints.ts +9 -1
- package/cli/packaged-app-launcher.ts +3 -1
- package/cli/scene-video.ts +28 -7
- package/cli/ws-bridge.ts +3 -1
- package/detox/index.ts +18 -5
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +5 -2
- package/dist-lib/auth/shared-session.cjs +5 -2
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +9932 -4561
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +30 -8
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +6886 -3303
- package/dist-lib/expo-swift-metadata.cjs +14 -2
- package/dist-lib/expo-swift-metadata.mjs +14 -2
- package/dist-lib/home-paths.cjs +7 -2
- package/dist-lib/host/bridge-host.cjs +8513 -3085
- package/dist-lib/host/fetch-proxy-handler.cjs +19 -7
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +6 -3
- package/dist-lib/index.cjs +175 -80
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +209 -32
- package/dist-lib/menu.cjs +7 -1
- package/dist-lib/menu.mjs +7 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +146 -76
- package/dist-lib/native-app-identity-project.cjs +76 -39
- package/dist-lib/native-app-identity-project.mjs +76 -39
- package/dist-lib/native-app-identity.cjs +10 -3
- package/dist-lib/native-app-identity.mjs +10 -3
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +5 -2
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +25 -23
- package/dist-lib/public-origins-lib.json +138 -80
- package/dist-lib/react-native-host-modules.cjs +5 -2
- package/dist-lib/react-native-host-modules.mjs +5 -2
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +4 -1
- package/dist-lib/sdk.mjs +4 -1
- package/dist-lib/skills.cjs +41126 -36493
- package/dist-lib/swift-compile.cjs +2103 -444
- package/dist-lib/swift-compile.mjs +2025 -369
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +2 -2
- package/dist-lib/swift-submit.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +84 -24
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +6094 -2687
- package/dist-lib/vite.cjs +32 -10
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-compat/src/stubs/screen-transition-math.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/cli-companion.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/canvaskit-renderer.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/engine/font-config.d.ts +7 -4
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +1 -3
- package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +0 -5
- package/dist-types/packages/peach-engine/src/engine/memory-counts.d.ts +8 -0
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +10 -1
- package/dist-types/packages/peach-engine/src/engine/paint-boundary.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/render-damage.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +25 -3
- package/dist-types/packages/peach-engine/src/engine/scroll-platform.d.ts +1 -15
- package/dist-types/packages/peach-engine/src/engine/scroll.d.ts +1 -3
- package/dist-types/packages/peach-engine/src/engine/text-first-baseline.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/engine/text-paragraph.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +23 -0
- package/dist-types/packages/peach-engine/src/ios/chrome-metrics.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/metro-identity-contract.d.ts +33 -0
- package/dist-types/packages/peach-engine/src/native-preview-bundle.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/preview/bundle-layout.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/remote-stream/scene-recording.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-gpu.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/metro-bundle-metadata.d.ts +28 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +21 -1
- package/dist-types/packages/peach-engine/src/render-worker/prepared-boot-bundle.d.ts +7 -0
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +15 -2
- package/dist-types/packages/peach-engine/src/render-worker/scroll-mirror.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/render-worker/test-bridge-protocol.d.ts +3 -3
- package/dist-types/packages/peach-engine/src/render-worker/webgpu-frame-transaction.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/webgpu-readback-scheduler.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +14 -1
- package/dist-types/packages/peach-engine/src/rolldown-bundle-inventory.d.ts +8 -1
- package/dist-types/packages/peach-engine/src/rolldown-production-fingerprint.d.ts +1 -4
- package/dist-types/packages/peach-engine/src/rolldown-production-module.d.ts +12 -0
- package/dist-types/packages/peach-engine/src/rolldown-production-roles.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/settings/devices.d.ts +6 -1
- package/dist-types/packages/peach-engine/src/settings/duo-fold-bus.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/shell-events.d.ts +4 -0
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +8 -0
- package/kotlin/README.md +3 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +2 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccount.h +55 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountCredential.h +35 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountStore.h +94 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountType.h +53 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACError.h +37 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/Accounts.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/AccountsDefines.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h +1 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetworkErrors.h +257 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFByteOrder.h +305 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +2 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGAffineTransform.h +204 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBitmapContext.h +260 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColor.h +164 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorConversionInfo.h +101 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorSpace.h +510 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGContext.h +1132 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGConvertColorDataWithFormat.h +34 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDataConsumer.h +83 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDataProvider.h +197 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGEXRToneMappingGamma.h +36 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGError.h +38 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGFont.h +312 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGFunction.h +106 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGradient.h +123 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGITUToneMapping.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGImage.h +409 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGLayer.h +78 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFArray.h +120 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFContentStream.h +55 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFContext.h +535 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDictionary.h +133 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDocument.h +252 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFMarkedContentItem.h +37 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFObject.h +67 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFOperatorTable.h +51 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFPage.h +101 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFScanner.h +123 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFStream.h +44 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFString.h +52 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFStructureElement.h +87 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPath.h +441 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPattern.h +89 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGRenderingBufferProvider.h +49 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGShading.h +124 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGToneMapping.h +85 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h +44 -252
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Modules/module.modulemap +1 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/CFNetworkErrors.h +257 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes +58 -9
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +992 -98
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/NSURLSession+Network.h +32 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/Network.h +51 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/advertise_descriptor.h +193 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/browse_descriptor.h +163 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/browse_result.h +207 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/browser.h +285 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/connection.h +714 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/connection_group.h +629 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/connection_report.h +932 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/content_context.h +229 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/endpoint.h +390 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/error.h +135 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/ethernet_channel.h +349 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/framer_options.h +1187 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/group_descriptor.h +184 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/interface.h +150 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/ip_options.h +351 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/listener.h +438 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/nw_object.h +200 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/parameters.h +1205 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/path.h +392 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/path_monitor.h +216 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/privacy_context.h +188 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/protocol_options.h +126 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/proxy_config.h +357 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/quic_options.h +889 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/resolver_config.h +94 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/tcp_options.h +459 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/tls_options.h +115 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/txt_record.h +432 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/udp_options.h +112 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/ws_options.h +743 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Modules/module.modulemap +9 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h +395 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CABase.h +132 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CADisplayLink.h +107 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEmitterCell.h +153 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEmitterLayer.h +151 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAFrameRateRange.h +40 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAGradientLayer.h +78 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h +1078 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTiming.h +97 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTimingFunction.h +67 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAReplicatorLayer.h +65 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAScrollLayer.h +64 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAShapeLayer.h +135 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATextLayer.h +99 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATiledLayer.h +67 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATransaction.h +124 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATransform3D.h +138 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATransformLayer.h +40 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAValueFunction.h +78 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h +19 -38
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecureTransport.h +1757 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSAttributedString.h +19 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSParagraphStyle.h +28 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityConstants.h +114 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h +16 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarAppearance.h +47 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDataDetectors.h +20 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDatePicker.h +13 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h +16 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIEvent.h +84 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizer.h +119 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizerSubclass.h +66 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHoverGestureRecognizer.h +45 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h +161 -37
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPickerView.h +76 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBar.h +8 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBarAppearance.h +78 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextInputTraits.h +29 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITouch.h +104 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITraitCollection.h +19 -0
- package/sdk/ios/usr/include/dns_sd.h +3616 -0
- package/sdk/ios/usr/include/dnssd.modulemap +4 -0
- package/sdk/ios/usr/include/module.modulemap +1 -0
- package/sdk/ios/usr/include/os/signpost.h +414 -0
- package/sdk/ios/usr/include/os.modulemap +5 -0
- package/sdk/ios/usr/include/sys/socketvar.h +191 -0
- package/sdk/ios/usr/include/sys/vsock.h +84 -0
- package/sdk/ios/wasm/include/errno.h +4 -20
- package/sdk/ios/wasm/include/pthread.h +3 -0
- package/sdk/ios/wasm/include/setjmp.h +57 -0
- package/sdk/ios/wasm/include/sys/resource.h +2 -2
- package/sdk/native-hashes.json +3 -3
- package/skills/contrast/SKILL.md +6 -5
- package/skills/peach-debug/SKILL.md +68 -265
- package/skills/peach-debug/references/accessibility.md +37 -73
- package/skills/peach-debug/references/commands.md +2 -2
- package/skills/peach-debug/references/events.md +74 -0
- package/skills/peach-perf/SKILL.md +64 -402
- package/skills/peach-perf/references/presentation.md +46 -0
- package/skills/peach-perf/references/profiling.md +93 -0
- package/skills/peach-perf/references/render-counters.md +57 -0
- package/skills/peach-setup/SKILL.md +66 -217
- package/skills/peach-setup/references/native-config.md +35 -0
- package/skills/peach-setup/references/reporting.md +28 -0
- package/skills/peach-test/SKILL.md +68 -285
- package/skills/peach-test/references/detox.md +69 -0
- package/skills/peach-test/references/maestro.md +95 -0
- package/skills/peach-visual/SKILL.md +53 -106
- package/src/android-autolinking.ts +1 -0
- package/src/android-bridge-packages.ts +279 -0
- package/src/appPackageContract.ts +14 -1
- package/src/assetCatalogContract.ts +8 -1
- package/src/bridge-contract.ts +6 -0
- package/src/bundle-channel.mjs +152 -60
- package/src/cli-runtime.ts +3 -0
- package/src/configured-bundle-producer.ts +10 -0
- package/src/device-catalog.ts +68 -4
- package/src/expo-discovery-cache.ts +10 -3
- package/src/expo-kotlin-host.ts +97 -26
- package/src/expo-native-workspace.ts +211 -52
- package/src/expo-swift-host.ts +149 -123
- package/src/expo-swift-ready.ts +5 -1
- package/src/expo-widget-assets.ts +76 -0
- package/src/expoKotlinContract.ts +12 -2
- package/src/expoSwiftContract.ts +21 -2
- package/src/generated/swift-c-predefines.json +1 -1
- package/src/home-paths.ts +6 -1
- package/src/host/bridge-host.ts +5 -0
- package/src/host/fetch-proxy-handler.ts +10 -0
- package/src/host/websocket-proxy.ts +7 -2
- package/src/kotlin-host.ts +204 -30
- package/src/kotlinSdkContract.ts +2 -1
- package/src/menu.ts +7 -0
- package/src/native-prebuilt.ts +154 -0
- package/src/nitro-adapter.lock.json +261 -261
- package/src/nitro-adapter.ts +118 -50
- package/src/nitro-bundle.ts +134 -96
- package/src/nitro-compile.ts +16 -6
- package/src/nitro-dependencies.ts +43 -28
- package/src/nitro-source.ts +142 -30
- package/src/nitro-superset.lock.json +103 -0
- package/src/nitro-superset.ts +137 -0
- package/src/nitroAdapterContract.ts +146 -98
- package/src/nitroContract.ts +68 -21
- package/src/react-bridge-importers.ts +1 -0
- package/src/react-native-bridge-modules.ts +2 -0
- package/src/react-native-host-modules.ts +4 -1
- package/src/settingsContract.ts +37 -1
- package/src/storageSnapshotContract.ts +29 -81
- package/src/swift-compile.ts +315 -117
- package/src/swift-compiler-digest.ts +2 -0
- package/src/swift-coverage/indexdump.ts +22 -6
- package/src/swift-coverage/indexing.ts +4 -4
- package/src/swift-coverage/sdk.ts +104 -20
- package/src/swift-coverage/types.ts +34 -0
- package/src/swift-coverage/xcode-packages.ts +61 -1
- package/src/swift-coverage/xcode.ts +19 -13
- package/src/swift-cxx-reachable.ts +1 -1
- package/src/swift-distribution.lock.json +18 -13
- package/src/swift-distribution.ts +57 -26
- package/src/swift-host.ts +51 -35
- package/src/swift-link-roots.ts +45 -18
- package/src/swift-objc-compile.ts +78 -2
- package/src/swift-objc-standin.ts +3 -0
- package/src/swift-shared-sdk.ts +85 -1
- package/src/swift-standin-emit.ts +6 -1
- package/src/swift-standins.ts +403 -19
- package/src/swift-submit.ts +17 -1
- package/src/swift-toolchain.ts +98 -23
- package/src/swift-wasm-prune.ts +1629 -0
- package/src/turbo-bundle.ts +82 -0
- package/src/turbo-compile.ts +120 -0
- package/src/turbo-runtime.lock.json +69 -0
- package/src/turbo-source.ts +754 -0
- package/src/vite-plugin-one.ts +15 -3
- package/src/vite-plugin.ts +82 -23
- package/src/wasm-optimize.ts +34 -0
- package/src/worker-system-chunks.ts +3 -3
- package/src/xcode-project.ts +52 -0
- package/src/xcode-target-members.ts +12 -1
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
//
|
|
2
|
+
// ACAccountStore.h
|
|
3
|
+
// Accounts
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2011-2012 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <Accounts/AccountsDefines.h>
|
|
10
|
+
|
|
11
|
+
typedef NS_ENUM(NSInteger, ACAccountCredentialRenewResult) {
|
|
12
|
+
ACAccountCredentialRenewResultRenewed, // A new credential was obtained and is now associated with the account.
|
|
13
|
+
ACAccountCredentialRenewResultRejected, // Renewal failed because of a user-initiated action.
|
|
14
|
+
ACAccountCredentialRenewResultFailed, // A non-user-initiated cancel of the prompt.
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
typedef void(^ACAccountStoreSaveCompletionHandler)(BOOL success, NSError *error);
|
|
18
|
+
typedef void(^ACAccountStoreRemoveCompletionHandler)(BOOL success, NSError *error);
|
|
19
|
+
typedef void(^ACAccountStoreRequestAccessCompletionHandler)(BOOL granted, NSError *error);
|
|
20
|
+
typedef void(^ACAccountStoreCredentialRenewalHandler)(ACAccountCredentialRenewResult renewResult, NSError *error);
|
|
21
|
+
|
|
22
|
+
@class ACAccount, ACAccountType;
|
|
23
|
+
|
|
24
|
+
// The ACAccountStore class provides an interface for accessing and manipulating
|
|
25
|
+
// accounts. You must create an ACAccountStore object to retrieve, add and delete
|
|
26
|
+
// accounts from the Accounts database.
|
|
27
|
+
//
|
|
28
|
+
// IMPORTANT NOTE: You MUST keep the account store around for as long as you have
|
|
29
|
+
// any objects fetched from that store if you expect other 'sub-fetches' to work,
|
|
30
|
+
// most notably being fetching credentials. If you really just want to open the
|
|
31
|
+
// store to grab credentials, just be sure to grab the credential object and then
|
|
32
|
+
// you can release the owning account and store, e.g.
|
|
33
|
+
//
|
|
34
|
+
// WARNING: All synchronous methods on ACAccountStore invoke xpc methods
|
|
35
|
+
// on accountsd. They are not appropriate to call on a UI Application's main thread.
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
API_DEPRECATED("Use appropriate non-Apple SDK corresponding to the type of account you want to reference instead", ios(6.0, 15.0), macos(10.8, 12.0))
|
|
39
|
+
|
|
40
|
+
@interface ACAccountStore : NSObject
|
|
41
|
+
|
|
42
|
+
// An array of all the accounts in an account database
|
|
43
|
+
// WARNING: Synchronous, not appropriate to call on a UI Application's main thread
|
|
44
|
+
@property (readonly, weak, NS_NONATOMIC_IOSONLY) NSArray *accounts;
|
|
45
|
+
|
|
46
|
+
// Returns the account matching the given account identifier
|
|
47
|
+
// WARNING: Synchronous, not appropriate to call on a UI Application's main thread
|
|
48
|
+
- (ACAccount *)accountWithIdentifier:(NSString *)identifier;
|
|
49
|
+
|
|
50
|
+
// Returns the account type object matching the account type identifier. See
|
|
51
|
+
// ACAccountType.h for well known account type identifiers
|
|
52
|
+
// WARNING: Synchronous, not appropriate to call on a UI Application's main thread
|
|
53
|
+
- (ACAccountType *)accountTypeWithAccountTypeIdentifier:(NSString *)typeIdentifier;
|
|
54
|
+
|
|
55
|
+
// Returns the accounts matching a given account type.
|
|
56
|
+
// WARNING: Synchronous, not appropriate to call on a UI Application's main thread
|
|
57
|
+
- (NSArray *)accountsWithAccountType:(ACAccountType *)accountType;
|
|
58
|
+
|
|
59
|
+
// Saves the account to the account database. If the account is unauthenticated and the associated account
|
|
60
|
+
// type supports authentication, the system will attempt to authenticate with the credentials provided.
|
|
61
|
+
// Assuming a successful authentication, the account will be saved to the account store. The completion handler
|
|
62
|
+
// for this method is called on an arbitrary queue.
|
|
63
|
+
- (void)saveAccount:(ACAccount *)account withCompletionHandler:(ACAccountStoreSaveCompletionHandler)completionHandler;
|
|
64
|
+
|
|
65
|
+
// DEPRECATED: Please use requestAccessToAccountsWithType:options:completion: instead.
|
|
66
|
+
- (void)requestAccessToAccountsWithType:(ACAccountType *)accountType withCompletionHandler:(ACAccountStoreRequestAccessCompletionHandler)handler API_DEPRECATED_WITH_REPLACEMENT("-requestAccessToAccountsWithType:options:completion:", ios(5.0, 6.0)) API_UNAVAILABLE(macos);
|
|
67
|
+
|
|
68
|
+
// Obtains permission, if necessary, from the user to access protected properties, and utilize accounts
|
|
69
|
+
// of a particular type in protected operations, for example OAuth signing. The completion handler for
|
|
70
|
+
// this method is called on an arbitrary queue.
|
|
71
|
+
// Certain account types (such as Facebook) require an options dictionary. A list of the required keys
|
|
72
|
+
// appears in ACAccountType.h. This method will throw an NSInvalidArgumentException if the options
|
|
73
|
+
// dictionary is not provided for such account types. Conversely, if the account type does not require
|
|
74
|
+
// an options dictionary, the options parameter must be nil.
|
|
75
|
+
- (void)requestAccessToAccountsWithType:(ACAccountType *)accountType options:(NSDictionary *)options completion:(ACAccountStoreRequestAccessCompletionHandler)completion;
|
|
76
|
+
|
|
77
|
+
// Call this if you discover that an ACAccount's credential is no longer valid.
|
|
78
|
+
// For Twitter and Sina Weibo accounts, this method will prompt the user to go to Settings to re-enter their password.
|
|
79
|
+
// For Facebook accounts, if your access token became invalid due to regular expiration, this method will obtain a new one.
|
|
80
|
+
// However, if the user has deauthorized your app, this renewal request will return ACAccountCredentialRenewResultRejected.
|
|
81
|
+
- (void)renewCredentialsForAccount:(ACAccount *)account completion:(ACAccountStoreCredentialRenewalHandler)completionHandler;
|
|
82
|
+
|
|
83
|
+
// Removes an account from the account store. The completion handler for this method is called on an arbitrary queue.
|
|
84
|
+
// This call will fail if you don't have sufficient rights to remove the account in question.
|
|
85
|
+
- (void)removeAccount:(ACAccount *)account withCompletionHandler:(ACAccountStoreRemoveCompletionHandler)completionHandler;
|
|
86
|
+
|
|
87
|
+
@end
|
|
88
|
+
|
|
89
|
+
// Notification name sent out when the database is changed by an external process, another account store
|
|
90
|
+
// in the same process or by calling saveAccount: or removeAccount: on a store you are managing.
|
|
91
|
+
// You may need to deal with accounts being removed by an external process while you are using them.
|
|
92
|
+
// Note: ensure when you add an observer for this notification, you do so specifying this object specifically.
|
|
93
|
+
// Otherwise, you will receive n notifications, one per active ACAccountStore instance in your process.
|
|
94
|
+
ACCOUNTS_EXTERN NSString * const ACAccountStoreDidChangeNotification API_DEPRECATED("Public notification deprecated. Internal clients, see private header for replacement", ios(5.0, 14.0), macos(10.8, 11.0), tvos(5.0, 14.0), watchos(1.0, 6.0));
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
//
|
|
2
|
+
// ACAccountType.h
|
|
3
|
+
// Accounts
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2011-2012 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <Accounts/AccountsDefines.h>
|
|
10
|
+
|
|
11
|
+
// The identifiers for supported system account types are listed here:
|
|
12
|
+
ACCOUNTS_EXTERN NSString * const ACAccountTypeIdentifierTwitter API_DEPRECATED("Use Twitter SDK instead", ios(5.0, 11.0), macos(10.8, 10.13));
|
|
13
|
+
ACCOUNTS_EXTERN NSString * const ACAccountTypeIdentifierFacebook API_DEPRECATED("Use Facebook SDK instead", ios(6.0, 11.0), macos(10.8, 10.13));
|
|
14
|
+
ACCOUNTS_EXTERN NSString * const ACAccountTypeIdentifierSinaWeibo API_DEPRECATED("Use Sina Weibo SDK instead", ios(6.0, 11.0), macos(10.8, 10.13));
|
|
15
|
+
ACCOUNTS_EXTERN NSString * const ACAccountTypeIdentifierTencentWeibo API_DEPRECATED("Use Tencent Weibo SDK instead", ios(7.0, 11.0), macos(10.9, 10.13));
|
|
16
|
+
ACCOUNTS_EXTERN NSString * const ACAccountTypeIdentifierLinkedIn API_DEPRECATED("Use LinkedIn SDK instead", macos(10.9, 10.13)) API_UNAVAILABLE(ios);
|
|
17
|
+
|
|
18
|
+
// Options dictionary keys for Facebook access, for use with [ACAccountStore requestAccessToAccountsWithType:options:completion:]
|
|
19
|
+
ACCOUNTS_EXTERN NSString * const ACFacebookAppIdKey API_DEPRECATED("Use Facebook SDK instead", ios(6.0, 11.0), macos(10.8, 10.13)); // Your Facebook App ID, as it appears on the Facebook website.
|
|
20
|
+
ACCOUNTS_EXTERN NSString * const ACFacebookPermissionsKey API_DEPRECATED("Use Facebook SDK instead", ios(6.0, 11.0), macos(10.8, 10.13)); // An array of of the permissions you're requesting.
|
|
21
|
+
ACCOUNTS_EXTERN NSString * const ACFacebookAudienceKey API_DEPRECATED("Use Facebook SDK instead", ios(6.0, 11.0), macos(10.8, 10.13)); // Only required when posting permissions are requested.
|
|
22
|
+
|
|
23
|
+
// Options dictionary values for Facebook access, for use with [ACAccountStore requestAccessToAccountsWithType:options:completion:]
|
|
24
|
+
ACCOUNTS_EXTERN NSString * const ACFacebookAudienceEveryone API_DEPRECATED("Use Facebook SDK instead", ios(6.0, 11.0), macos(10.8, 10.13)); // Posts from your app are visible to everyone.
|
|
25
|
+
ACCOUNTS_EXTERN NSString * const ACFacebookAudienceFriends API_DEPRECATED("Use Facebook SDK instead", ios(6.0, 11.0), macos(10.8, 10.13)); // Posts are visible only to friends.
|
|
26
|
+
ACCOUNTS_EXTERN NSString * const ACFacebookAudienceOnlyMe API_DEPRECATED("Use Facebook SDK instead", ios(6.0, 11.0), macos(10.8, 10.13)); // Posts are visible to the user only.
|
|
27
|
+
|
|
28
|
+
// Options dictionary keys for LinkedIn access, for use with [ACAccountStore requestAccessToAccountsWithType:options:completion:]
|
|
29
|
+
ACCOUNTS_EXTERN NSString * const ACLinkedInAppIdKey API_DEPRECATED("Use LinkedIn SDK instead", macos(10.9, 10.13)) API_UNAVAILABLE(ios); // Your LinkedIn App ID (or API Key), as it appears on the LinkedIn website.
|
|
30
|
+
ACCOUNTS_EXTERN NSString * const ACLinkedInPermissionsKey API_DEPRECATED("Use LinkedIn SDK instead", macos(10.9, 10.13)) API_UNAVAILABLE(ios); // An array of of the LinkedIn permissions you're requesting.
|
|
31
|
+
|
|
32
|
+
ACCOUNTS_EXTERN NSString * const ACTencentWeiboAppIdKey API_DEPRECATED("Use Tencent Weibo SDK instead", ios(7.0, 11.0), macos(10.9, 10.13)); // Tencent App ID
|
|
33
|
+
|
|
34
|
+
// Each account has an associated account type, containing information relevant to all the accounts of that type.
|
|
35
|
+
// ACAccountType objects are obtained by using the [ACAccountStore accountTypeWithIdentifier:] method
|
|
36
|
+
// or accessing the accountType property for a particular account object. They may also be used to find
|
|
37
|
+
// all the accounts of a particular type using [ACAccountStore accountsWithAccountType:]
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
API_DEPRECATED("Use appropriate non-Apple SDK corresponding to the type of account you want to reference instead", ios(6.0, 15.0), macos(10.8, 12.0))
|
|
41
|
+
|
|
42
|
+
@interface ACAccountType : NSObject
|
|
43
|
+
|
|
44
|
+
// A human readable description of the account type.
|
|
45
|
+
@property (readonly, nonatomic) NSString *accountTypeDescription;
|
|
46
|
+
|
|
47
|
+
// A unique identifier for the account type. Well known system account type identifiers are listed above.
|
|
48
|
+
@property (readonly, nonatomic) NSString *identifier;
|
|
49
|
+
|
|
50
|
+
// A boolean indicating whether the user has granted access to accounts of this type for your application.
|
|
51
|
+
@property (readonly, nonatomic) BOOL accessGranted;
|
|
52
|
+
|
|
53
|
+
@end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
//
|
|
2
|
+
// ACError.h
|
|
3
|
+
// Accounts
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2011-2012 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <Accounts/AccountsDefines.h>
|
|
10
|
+
|
|
11
|
+
ACCOUNTS_EXTERN NSString * const ACErrorDomain API_AVAILABLE(ios(5.0), macos(10.8));
|
|
12
|
+
|
|
13
|
+
typedef enum ACErrorCode {
|
|
14
|
+
ACErrorUnknown = 1,
|
|
15
|
+
ACErrorAccountMissingRequiredProperty = 2, // Account wasn't saved because it is missing a required property.
|
|
16
|
+
ACErrorAccountAuthenticationFailed = 3, // Account wasn't saved because authentication of the supplied credential failed.
|
|
17
|
+
ACErrorAccountTypeInvalid = 4, // Account wasn't saved because the account type is invalid.
|
|
18
|
+
ACErrorAccountAlreadyExists = 5, // Account wasn't added because it already exists.
|
|
19
|
+
ACErrorAccountNotFound = 6, // Account wasn't deleted because it could not be found.
|
|
20
|
+
ACErrorPermissionDenied = 7, // The operation didn't complete because the user denied permission.
|
|
21
|
+
ACErrorAccessInfoInvalid = 8, // The client's access info dictionary has incorrect or missing values.
|
|
22
|
+
ACErrorClientPermissionDenied = 9, // Your client does not have access to the requested data.
|
|
23
|
+
ACErrorAccessDeniedByProtectionPolicy = 10, // Due to the current protection policy in effect, we couldn't fetch a credential
|
|
24
|
+
ACErrorCredentialNotFound = 11, // Yo, I tried to find your credential, but it must have run off!
|
|
25
|
+
ACErrorFetchCredentialFailed = 12, // Something bad happened on the way to the keychain
|
|
26
|
+
ACErrorStoreCredentialFailed = 13, // Unable to store credential
|
|
27
|
+
ACErrorRemoveCredentialFailed = 14, // Unable to remove credential
|
|
28
|
+
ACErrorUpdatingNonexistentAccount = 15, // Account save failed because the account being updated has been removed.
|
|
29
|
+
ACErrorInvalidClientBundleID = 16, // The client making the request does not have a valid bundle ID.
|
|
30
|
+
ACErrorDeniedByPlugin = 17, // A plugin prevented the expected action to occur.
|
|
31
|
+
ACErrorCoreDataSaveFailed = 18, // Something broke below us when we tried to the CoreData store.
|
|
32
|
+
ACErrorFailedSerializingAccountInfo = 19,
|
|
33
|
+
ACErrorInvalidCommand = 20,
|
|
34
|
+
ACErrorMissingTransportMessageID = 21,
|
|
35
|
+
ACErrorCredentialItemNotFound = 22, // Credential item wasn't saved because it could not be found.
|
|
36
|
+
ACErrorCredentialItemNotExpired = 23, // Credential item wasn't removed because it has not yet expired.
|
|
37
|
+
} ACErrorCode;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Accounts.h
|
|
3
|
+
// Accounts
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2011-2012 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Accounts/AccountsDefines.h>
|
|
9
|
+
#import <Accounts/ACAccount.h>
|
|
10
|
+
#import <Accounts/ACAccountType.h>
|
|
11
|
+
#import <Accounts/ACAccountCredential.h>
|
|
12
|
+
#import <Accounts/ACAccountStore.h>
|
|
13
|
+
#import <Accounts/ACError.h>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//
|
|
2
|
+
// AccountsDefines.h
|
|
3
|
+
// Accounts
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2011-2012 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
#ifdef __cplusplus
|
|
10
|
+
#define ACCOUNTS_EXTERN extern "C" __attribute__((visibility ("default")))
|
|
11
|
+
#else
|
|
12
|
+
#define ACCOUNTS_EXTERN extern __attribute__((visibility ("default")))
|
|
13
|
+
#endif
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
/*
|
|
2
|
+
File: CFNetwork/CFNetworkErrors.h
|
|
3
|
+
|
|
4
|
+
Contains: CFNetwork error header
|
|
5
|
+
|
|
6
|
+
Copyright: Copyright (c) 2006-2013 Apple Inc. All rights reserved.
|
|
7
|
+
|
|
8
|
+
Bugs?: For bug reports, consult the following page on
|
|
9
|
+
the World Wide Web:
|
|
10
|
+
|
|
11
|
+
http://developer.apple.com/bugreporter/
|
|
12
|
+
|
|
13
|
+
*/
|
|
14
|
+
#ifndef __CFNETWORKERRORS__
|
|
15
|
+
#define __CFNETWORKERRORS__
|
|
16
|
+
|
|
17
|
+
#ifndef __CFNETWORKDEFS__
|
|
18
|
+
#include <CFNetwork/CFNetworkDefs.h>
|
|
19
|
+
#endif
|
|
20
|
+
|
|
21
|
+
#ifndef __CFSTRING__
|
|
22
|
+
#include <CoreFoundation/CFString.h>
|
|
23
|
+
#endif
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
#if PRAGMA_ONCE
|
|
28
|
+
#pragma once
|
|
29
|
+
#endif
|
|
30
|
+
|
|
31
|
+
CF_EXTERN_C_BEGIN
|
|
32
|
+
CF_ASSUME_NONNULL_BEGIN
|
|
33
|
+
|
|
34
|
+
/*
|
|
35
|
+
* kCFErrorDomainCFNetwork
|
|
36
|
+
*
|
|
37
|
+
* Discussion:
|
|
38
|
+
* Error domain for all errors originating in CFNetwork. Error codes
|
|
39
|
+
* may be interpreted using the list below.
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
CFN_EXPORT const CFStringRef kCFErrorDomainCFNetwork CF_AVAILABLE(10_5, 2_0);
|
|
43
|
+
|
|
44
|
+
/*
|
|
45
|
+
* kCFErrorDomainWinSock
|
|
46
|
+
*
|
|
47
|
+
* Discussion:
|
|
48
|
+
* On Windows, errors originating from WinSock are represented using
|
|
49
|
+
* this domain.
|
|
50
|
+
*
|
|
51
|
+
*/
|
|
52
|
+
CFN_EXPORT const CFStringRef kCFErrorDomainWinSock CF_AVAILABLE(10_5, 2_0);
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
/*
|
|
56
|
+
* CFNetworkErrors
|
|
57
|
+
*
|
|
58
|
+
* Discussion:
|
|
59
|
+
* The list of all public error codes returned under the error domain
|
|
60
|
+
* kCFErrorDomainCFNetwork
|
|
61
|
+
*/
|
|
62
|
+
typedef CF_ENUM(int, CFNetworkErrors) {
|
|
63
|
+
|
|
64
|
+
kCFHostErrorHostNotFound = 1,
|
|
65
|
+
kCFHostErrorUnknown = 2, // Query the kCFGetAddrInfoFailureKey to get the value returned from getaddrinfo; lookup in netdb.h
|
|
66
|
+
// SOCKS errors; in all cases you may query kCFSOCKSStatusCodeKey to recover the status code returned by the server
|
|
67
|
+
kCFSOCKSErrorUnknownClientVersion = 100,
|
|
68
|
+
kCFSOCKSErrorUnsupportedServerVersion = 101, // Query the kCFSOCKSVersionKey to find the version requested by the server
|
|
69
|
+
// SOCKS4-specific errors
|
|
70
|
+
kCFSOCKS4ErrorRequestFailed = 110, // request rejected or failed by the server
|
|
71
|
+
kCFSOCKS4ErrorIdentdFailed = 111, // request rejected because SOCKS server cannot connect to identd on the client
|
|
72
|
+
kCFSOCKS4ErrorIdConflict = 112, // request rejected because the client program and identd report different user-ids
|
|
73
|
+
kCFSOCKS4ErrorUnknownStatusCode = 113,
|
|
74
|
+
// SOCKS5-specific errors
|
|
75
|
+
kCFSOCKS5ErrorBadState = 120,
|
|
76
|
+
kCFSOCKS5ErrorBadResponseAddr = 121,
|
|
77
|
+
kCFSOCKS5ErrorBadCredentials = 122,
|
|
78
|
+
kCFSOCKS5ErrorUnsupportedNegotiationMethod = 123, // query kCFSOCKSNegotiationMethodKey to find the method requested
|
|
79
|
+
kCFSOCKS5ErrorNoAcceptableMethod = 124,
|
|
80
|
+
// FTP errors; query the kCFFTPStatusCodeKey to get the status code returned by the server
|
|
81
|
+
kCFFTPErrorUnexpectedStatusCode = 200,
|
|
82
|
+
// HTTP errors
|
|
83
|
+
kCFErrorHTTPAuthenticationTypeUnsupported = 300,
|
|
84
|
+
kCFErrorHTTPBadCredentials = 301,
|
|
85
|
+
kCFErrorHTTPConnectionLost = 302,
|
|
86
|
+
kCFErrorHTTPParseFailure = 303,
|
|
87
|
+
kCFErrorHTTPRedirectionLoopDetected = 304,
|
|
88
|
+
kCFErrorHTTPBadURL = 305,
|
|
89
|
+
kCFErrorHTTPProxyConnectionFailure = 306,
|
|
90
|
+
kCFErrorHTTPBadProxyCredentials = 307,
|
|
91
|
+
kCFErrorPACFileError = 308,
|
|
92
|
+
kCFErrorPACFileAuth = 309,
|
|
93
|
+
kCFErrorHTTPSProxyConnectionFailure = 310,
|
|
94
|
+
kCFStreamErrorHTTPSProxyFailureUnexpectedResponseToCONNECTMethod = 311,
|
|
95
|
+
|
|
96
|
+
// Error codes for CFURLConnection and CFURLProtocol
|
|
97
|
+
kCFURLErrorBackgroundSessionInUseByAnotherProcess = -996,
|
|
98
|
+
kCFURLErrorBackgroundSessionWasDisconnected = -997,
|
|
99
|
+
kCFURLErrorUnknown = -998,
|
|
100
|
+
kCFURLErrorCancelled = -999,
|
|
101
|
+
kCFURLErrorBadURL = -1000,
|
|
102
|
+
kCFURLErrorTimedOut = -1001,
|
|
103
|
+
kCFURLErrorUnsupportedURL = -1002,
|
|
104
|
+
kCFURLErrorCannotFindHost = -1003,
|
|
105
|
+
kCFURLErrorCannotConnectToHost = -1004,
|
|
106
|
+
kCFURLErrorNetworkConnectionLost = -1005,
|
|
107
|
+
kCFURLErrorDNSLookupFailed = -1006,
|
|
108
|
+
kCFURLErrorHTTPTooManyRedirects = -1007,
|
|
109
|
+
kCFURLErrorResourceUnavailable = -1008,
|
|
110
|
+
kCFURLErrorNotConnectedToInternet = -1009,
|
|
111
|
+
kCFURLErrorRedirectToNonExistentLocation = -1010,
|
|
112
|
+
kCFURLErrorBadServerResponse = -1011,
|
|
113
|
+
kCFURLErrorUserCancelledAuthentication = -1012,
|
|
114
|
+
kCFURLErrorUserAuthenticationRequired = -1013,
|
|
115
|
+
kCFURLErrorZeroByteResource = -1014,
|
|
116
|
+
kCFURLErrorCannotDecodeRawData = -1015,
|
|
117
|
+
kCFURLErrorCannotDecodeContentData = -1016,
|
|
118
|
+
kCFURLErrorCannotParseResponse = -1017,
|
|
119
|
+
kCFURLErrorInternationalRoamingOff = -1018,
|
|
120
|
+
kCFURLErrorCallIsActive = -1019,
|
|
121
|
+
kCFURLErrorDataNotAllowed = -1020,
|
|
122
|
+
kCFURLErrorRequestBodyStreamExhausted = -1021,
|
|
123
|
+
kCFURLErrorAppTransportSecurityRequiresSecureConnection = -1022,
|
|
124
|
+
kCFURLErrorFileDoesNotExist = -1100,
|
|
125
|
+
kCFURLErrorFileIsDirectory = -1101,
|
|
126
|
+
kCFURLErrorNoPermissionsToReadFile = -1102,
|
|
127
|
+
kCFURLErrorDataLengthExceedsMaximum = -1103,
|
|
128
|
+
kCFURLErrorFileOutsideSafeArea = -1104,
|
|
129
|
+
// SSL errors
|
|
130
|
+
kCFURLErrorSecureConnectionFailed = -1200,
|
|
131
|
+
kCFURLErrorServerCertificateHasBadDate = -1201,
|
|
132
|
+
kCFURLErrorServerCertificateUntrusted = -1202,
|
|
133
|
+
kCFURLErrorServerCertificateHasUnknownRoot = -1203,
|
|
134
|
+
kCFURLErrorServerCertificateNotYetValid = -1204,
|
|
135
|
+
kCFURLErrorClientCertificateRejected = -1205,
|
|
136
|
+
kCFURLErrorClientCertificateRequired = -1206,
|
|
137
|
+
kCFURLErrorCannotLoadFromNetwork = -2000,
|
|
138
|
+
// Download and file I/O errors
|
|
139
|
+
kCFURLErrorCannotCreateFile = -3000,
|
|
140
|
+
kCFURLErrorCannotOpenFile = -3001,
|
|
141
|
+
kCFURLErrorCannotCloseFile = -3002,
|
|
142
|
+
kCFURLErrorCannotWriteToFile = -3003,
|
|
143
|
+
kCFURLErrorCannotRemoveFile = -3004,
|
|
144
|
+
kCFURLErrorCannotMoveFile = -3005,
|
|
145
|
+
kCFURLErrorDownloadDecodingFailedMidStream = -3006,
|
|
146
|
+
kCFURLErrorDownloadDecodingFailedToComplete = -3007,
|
|
147
|
+
|
|
148
|
+
// Cookie errors
|
|
149
|
+
kCFHTTPCookieCannotParseCookieFile = -4000,
|
|
150
|
+
|
|
151
|
+
// Errors originating from CFNetServices
|
|
152
|
+
kCFNetServiceErrorUnknown = -72000L,
|
|
153
|
+
kCFNetServiceErrorCollision = -72001L,
|
|
154
|
+
kCFNetServiceErrorNotFound = -72002L,
|
|
155
|
+
kCFNetServiceErrorInProgress = -72003L,
|
|
156
|
+
kCFNetServiceErrorBadArgument = -72004L,
|
|
157
|
+
kCFNetServiceErrorCancel = -72005L,
|
|
158
|
+
kCFNetServiceErrorInvalid = -72006L,
|
|
159
|
+
kCFNetServiceErrorTimeout = -72007L,
|
|
160
|
+
kCFNetServiceErrorDNSServiceFailure = -73000L // An error from DNS discovery; look at kCFDNSServiceFailureKey to get the error number and interpret using dns_sd.h
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
/* Keys used by CFNetwork to pass additional error information back to the user within CFError's userInfo dictionary */
|
|
165
|
+
/*
|
|
166
|
+
* kCFURLErrorFailingURLErrorKey
|
|
167
|
+
*
|
|
168
|
+
* Discussion:
|
|
169
|
+
* When an NSURLConnection or NSURLDownload error occurs, this key's
|
|
170
|
+
* value is set to the URL which caused a load to fail
|
|
171
|
+
*
|
|
172
|
+
*/
|
|
173
|
+
CFN_EXPORT const CFStringRef kCFURLErrorFailingURLErrorKey CF_AVAILABLE(10_5, 2_2);
|
|
174
|
+
|
|
175
|
+
/*
|
|
176
|
+
* kCFURLErrorFailingURLStringErrorKey
|
|
177
|
+
*
|
|
178
|
+
* Discussion:
|
|
179
|
+
* When an NSURLConnection or NSURLDownload error occurs, this key's
|
|
180
|
+
* value is set to the CFString value of the URL which caused a load
|
|
181
|
+
* to fail
|
|
182
|
+
*
|
|
183
|
+
*/
|
|
184
|
+
CFN_EXPORT const CFStringRef kCFURLErrorFailingURLStringErrorKey CF_AVAILABLE(10_5, 2_2);
|
|
185
|
+
|
|
186
|
+
/*
|
|
187
|
+
* kCFGetAddrInfoFailureKey
|
|
188
|
+
*
|
|
189
|
+
* Discussion:
|
|
190
|
+
* When an error of kCFHostErrorUnknown is returned, this key's
|
|
191
|
+
* value is set to a CFNumber containing the raw error value
|
|
192
|
+
* returned by getaddrinfo()
|
|
193
|
+
*
|
|
194
|
+
*/
|
|
195
|
+
CFN_EXPORT const CFStringRef kCFGetAddrInfoFailureKey CF_AVAILABLE(10_5, 2_0);
|
|
196
|
+
|
|
197
|
+
/*
|
|
198
|
+
* kCFSOCKSStatusCodeKey
|
|
199
|
+
*
|
|
200
|
+
* Discussion:
|
|
201
|
+
* When a SOCKS failure has occurred, this key's value is set to a
|
|
202
|
+
* CFString containing the status value returned by the SOCKS server.
|
|
203
|
+
*
|
|
204
|
+
*/
|
|
205
|
+
CFN_EXPORT const CFStringRef kCFSOCKSStatusCodeKey CF_AVAILABLE(10_5, 2_0);
|
|
206
|
+
|
|
207
|
+
/*
|
|
208
|
+
* kCFSOCKSVersionKey
|
|
209
|
+
*
|
|
210
|
+
* Discussion:
|
|
211
|
+
* When an error of kCFSOCKSErrorUnsupportedServerVersion is
|
|
212
|
+
* returned, this key's value is set to a CFString containing the
|
|
213
|
+
* version number requested by the server.
|
|
214
|
+
*
|
|
215
|
+
*/
|
|
216
|
+
CFN_EXPORT const CFStringRef kCFSOCKSVersionKey CF_AVAILABLE(10_5, 2_0);
|
|
217
|
+
|
|
218
|
+
/*
|
|
219
|
+
* kCFSOCKSNegotiationMethodKey
|
|
220
|
+
*
|
|
221
|
+
* Discussion:
|
|
222
|
+
* When an error of kCFSOCKS5ErrorUnsupportedNegotiationMethod is
|
|
223
|
+
* returned, this key's value is set to a CFString containing the
|
|
224
|
+
* negotiation method requested by the server.
|
|
225
|
+
*
|
|
226
|
+
*/
|
|
227
|
+
CFN_EXPORT const CFStringRef kCFSOCKSNegotiationMethodKey CF_AVAILABLE(10_5, 2_0);
|
|
228
|
+
|
|
229
|
+
/*
|
|
230
|
+
* kCFDNSServiceFailureKey
|
|
231
|
+
*
|
|
232
|
+
* Discussion:
|
|
233
|
+
* When an error of kCFNetServicesErrorDNSServiceFailure is
|
|
234
|
+
* returned, this key's value is set to a CFNumber containing the
|
|
235
|
+
* value returned from DNS; interpret it using the values in
|
|
236
|
+
* <dns_sd.h>.
|
|
237
|
+
*
|
|
238
|
+
*/
|
|
239
|
+
CFN_EXPORT const CFStringRef kCFDNSServiceFailureKey CF_AVAILABLE(10_5, 2_0);
|
|
240
|
+
|
|
241
|
+
/*
|
|
242
|
+
* kCFFTPStatusCodeKey
|
|
243
|
+
*
|
|
244
|
+
* Discussion:
|
|
245
|
+
* When an error of kCFFTPErrorUnexpectedStatusCode is returned,
|
|
246
|
+
* this key's value is set to a CFString containing the status code
|
|
247
|
+
* returned by the server
|
|
248
|
+
*
|
|
249
|
+
*/
|
|
250
|
+
CFN_EXPORT const CFStringRef kCFFTPStatusCodeKey CF_AVAILABLE(10_5, 2_0);
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
CF_ASSUME_NONNULL_END
|
|
254
|
+
CF_EXTERN_C_END
|
|
255
|
+
|
|
256
|
+
#endif /* __CFNETWORKERRORS__ */
|
|
257
|
+
|