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,229 @@
|
|
|
1
|
+
//
|
|
2
|
+
// content_context.h
|
|
3
|
+
// Network
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2017-2019 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#ifndef __NW_CONTENT_CONTEXT_H__
|
|
9
|
+
#define __NW_CONTENT_CONTEXT_H__
|
|
10
|
+
|
|
11
|
+
#ifndef __NW_INDIRECT__
|
|
12
|
+
#warning "Please include <Network/Network.h> instead of this file directly."
|
|
13
|
+
#endif // __NW_INDIRECT__
|
|
14
|
+
|
|
15
|
+
#include <Network/protocol_options.h>
|
|
16
|
+
#include <Network/nw_object.h>
|
|
17
|
+
|
|
18
|
+
#include <dispatch/dispatch.h>
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
__BEGIN_DECLS
|
|
22
|
+
|
|
23
|
+
NW_ASSUME_NONNULL_BEGIN
|
|
24
|
+
|
|
25
|
+
/*!
|
|
26
|
+
* @typedef nw_content_context_t
|
|
27
|
+
* @abstract
|
|
28
|
+
* A Content Context represents a set of metadata associated with the act of
|
|
29
|
+
* sending or receiving data on a connection.
|
|
30
|
+
*
|
|
31
|
+
* The number of contexts that will exist on a single connection will vary
|
|
32
|
+
* based on the protocol used by the connection. Protocols that present a
|
|
33
|
+
* byte-stream abstraction will have a single context in each direction
|
|
34
|
+
* (send and receive); protocols that present a datagram or message-based
|
|
35
|
+
* abstraction will have many contexts, one per datagram or message. The
|
|
36
|
+
* granularity of contexts will always represent the highest-level protocol
|
|
37
|
+
* in the connection. To be specific, if a byte-stream protocol is running
|
|
38
|
+
* a datagram protocol (such as TCP over IP), there will only be one context
|
|
39
|
+
* in each direction, as dictated by TCP; whereas if a message-based protocol
|
|
40
|
+
* is running over a byte-stream protocol (such as a framing protocol over TCP),
|
|
41
|
+
* there will be one context for each framed message.
|
|
42
|
+
*
|
|
43
|
+
* When sending content, the context also allows the client of the API to specify
|
|
44
|
+
* how the content should be treated relative to other content on the connection,
|
|
45
|
+
* via priority, expiration, and dependencies.
|
|
46
|
+
*
|
|
47
|
+
* A context may contain one or more metadata handles to set or access protocol-
|
|
48
|
+
* specific data associated with the content.
|
|
49
|
+
*
|
|
50
|
+
* This type supports ARC and the -[description] method. In non-ARC files, use
|
|
51
|
+
* nw_retain() and nw_release() to retain and release the object.
|
|
52
|
+
*/
|
|
53
|
+
#ifndef NW_CONTENT_CONTEXT_IMPL
|
|
54
|
+
NW_OBJECT_DECL(nw_content_context);
|
|
55
|
+
#endif // NW_CONTENT_CONTEXT_IMPL
|
|
56
|
+
|
|
57
|
+
/*!
|
|
58
|
+
* @function nw_content_context_create
|
|
59
|
+
* @discussion Create a context object to represent properties associated with
|
|
60
|
+
* networking content. If the same context object is associated with multiple
|
|
61
|
+
* content blobs, then those pieces of content will be considered to be continuations
|
|
62
|
+
* of the same message.
|
|
63
|
+
* @param context_identifier A string description of the context
|
|
64
|
+
* @result Returns a new context context object
|
|
65
|
+
*/
|
|
66
|
+
API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0))
|
|
67
|
+
NW_RETURNS_RETAINED nw_content_context_t
|
|
68
|
+
nw_content_context_create(const char *context_identifier);
|
|
69
|
+
|
|
70
|
+
/*!
|
|
71
|
+
* @function nw_content_context_get_identifier
|
|
72
|
+
* @discussion Access the identifier description.
|
|
73
|
+
* @result Returns the context's identifier string.
|
|
74
|
+
*/
|
|
75
|
+
API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0))
|
|
76
|
+
const char *
|
|
77
|
+
nw_content_context_get_identifier(nw_content_context_t context);
|
|
78
|
+
|
|
79
|
+
/*!
|
|
80
|
+
* @function nw_content_context_get_is_final
|
|
81
|
+
* @discussion Check if this is the final context for a connection. When receiving,
|
|
82
|
+
* once a final context is complete, the connection is "read closed" and will not
|
|
83
|
+
* receive more content. See nw_content_context_set_is_final() for a description
|
|
84
|
+
* of how to set is_final for sending contexts.
|
|
85
|
+
* @param context The context object
|
|
86
|
+
* @result Returns true if the context is the final context for a connection.
|
|
87
|
+
*/
|
|
88
|
+
API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0))
|
|
89
|
+
bool
|
|
90
|
+
nw_content_context_get_is_final(nw_content_context_t context);
|
|
91
|
+
|
|
92
|
+
/*!
|
|
93
|
+
* @function nw_content_context_set_is_final
|
|
94
|
+
* @discussion Mark whether or not this context is the final context for a
|
|
95
|
+
* connection. When sending, marking a context as final will perform
|
|
96
|
+
* a "write close" once the context is complete, indicating that no more content
|
|
97
|
+
* will be sent. As a convenience for sending a final context, use
|
|
98
|
+
* NW_CONNECTION_FINAL_MESSAGE_CONTEXT.
|
|
99
|
+
* @param context The context object
|
|
100
|
+
* @param is_final If set to true, mark the context as the final context to send on a connection.
|
|
101
|
+
*/
|
|
102
|
+
API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0))
|
|
103
|
+
void
|
|
104
|
+
nw_content_context_set_is_final(nw_content_context_t context,
|
|
105
|
+
bool is_final);
|
|
106
|
+
|
|
107
|
+
/*!
|
|
108
|
+
* @function nw_content_context_get_expiration_milliseconds
|
|
109
|
+
* @discussion Retrieve the number of milliseconds after which the content will expire.
|
|
110
|
+
* See nw_content_context_set_expiration_milliseconds for further discussion.
|
|
111
|
+
* @param context The context object
|
|
112
|
+
* @result Returns content expiration, or 0 if not set.
|
|
113
|
+
*/
|
|
114
|
+
API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0))
|
|
115
|
+
uint64_t
|
|
116
|
+
nw_content_context_get_expiration_milliseconds(nw_content_context_t context);
|
|
117
|
+
|
|
118
|
+
/*!
|
|
119
|
+
* @function nw_content_context_set_expiration_milliseconds
|
|
120
|
+
* @discussion Set an expiration (in milliseconds) after which content may be dropped.
|
|
121
|
+
* If the expiration time is reached, the content may not be sent. If the value is
|
|
122
|
+
* 0, there is no expiration for the content. The expiration timer starts when the
|
|
123
|
+
* content is enqueued using nw_connection_send().
|
|
124
|
+
* @param context The context object
|
|
125
|
+
* @param expiration_milliseconds The number of milliseconds after which content will expire
|
|
126
|
+
*/
|
|
127
|
+
API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0))
|
|
128
|
+
void
|
|
129
|
+
nw_content_context_set_expiration_milliseconds(nw_content_context_t context,
|
|
130
|
+
uint64_t expiration_milliseconds);
|
|
131
|
+
|
|
132
|
+
/*!
|
|
133
|
+
* @function nw_content_context_get_relative_priority
|
|
134
|
+
* @discussion Get the relative priority for the content. See
|
|
135
|
+
* nw_content_context_set_relative_priority for further discussion.
|
|
136
|
+
* @param context The context object
|
|
137
|
+
* @result Returns the relative priority, between 0.0 (lowest priority)
|
|
138
|
+
* to 1.0 (highest priority). The default value is 0.5.
|
|
139
|
+
*/
|
|
140
|
+
API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0))
|
|
141
|
+
double
|
|
142
|
+
nw_content_context_get_relative_priority(nw_content_context_t context);
|
|
143
|
+
|
|
144
|
+
/*!
|
|
145
|
+
* @function nw_content_context_set_relative_priority
|
|
146
|
+
* @discussion Set A relative priority of the content, compared to other
|
|
147
|
+
* content on the same connection. Priorities range from 0.0 (lowest
|
|
148
|
+
* priority) to 1.0 (highest priority), where content with higher
|
|
149
|
+
* priority will scheduled first if all else is equal.
|
|
150
|
+
* The default value is 0.5.
|
|
151
|
+
* @param context The context object
|
|
152
|
+
* @param relative_priority The relative priority of the content, between
|
|
153
|
+
* 0.0 (lowest priority) to 1.0 (highest priority).
|
|
154
|
+
*/
|
|
155
|
+
API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0))
|
|
156
|
+
void
|
|
157
|
+
nw_content_context_set_relative_priority(nw_content_context_t context,
|
|
158
|
+
double relative_priority);
|
|
159
|
+
|
|
160
|
+
/*!
|
|
161
|
+
* @function nw_content_context_set_antecedent
|
|
162
|
+
* @discussion Set a context as an antecedent to this content context.
|
|
163
|
+
* The associated content will not be sent until all of its antecedents have been
|
|
164
|
+
* completed. If any of the antecedents fail with an error, this content will
|
|
165
|
+
* fail as well.
|
|
166
|
+
* @param context The context object
|
|
167
|
+
* @param antecedent_context A context associated with content that should precede
|
|
168
|
+
* this content.
|
|
169
|
+
*/
|
|
170
|
+
API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0))
|
|
171
|
+
void
|
|
172
|
+
nw_content_context_set_antecedent(nw_content_context_t context,
|
|
173
|
+
_Nullable nw_content_context_t antecedent_context);
|
|
174
|
+
|
|
175
|
+
/*!
|
|
176
|
+
* @function nw_content_context_copy_antecedent
|
|
177
|
+
* @discussion Copy the optional content context that must be sent prior to this
|
|
178
|
+
* content. See nw_content_context_set_antecedent for further discussion.
|
|
179
|
+
* @param context The context object
|
|
180
|
+
* @result Returns a context object set as the antecedent, or NULL.
|
|
181
|
+
*/
|
|
182
|
+
API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0))
|
|
183
|
+
NW_RETURNS_RETAINED _Nullable nw_content_context_t
|
|
184
|
+
nw_content_context_copy_antecedent(nw_content_context_t context);
|
|
185
|
+
|
|
186
|
+
/*!
|
|
187
|
+
* @function nw_content_context_set_metadata_for_protocol
|
|
188
|
+
* @discussion Set protocol-specific metadata to a parent content context. If
|
|
189
|
+
* metadata for the same protocol is set multiple times, the most recently
|
|
190
|
+
* set metadata will be applied.
|
|
191
|
+
* @param context The context context parent object
|
|
192
|
+
* @param protocol_metadata The per-protocol metadata context object to set
|
|
193
|
+
*/
|
|
194
|
+
API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0))
|
|
195
|
+
void
|
|
196
|
+
nw_content_context_set_metadata_for_protocol(nw_content_context_t context,
|
|
197
|
+
nw_protocol_metadata_t protocol_metadata);
|
|
198
|
+
|
|
199
|
+
/*!
|
|
200
|
+
* @function nw_content_context_copy_protocol_metadata
|
|
201
|
+
* @discussion Copy the per-protocol metadata from a parent content context
|
|
202
|
+
* @param context The context context parent object
|
|
203
|
+
* @param protocol The definition identifier of the protocol to retrieve metadata for
|
|
204
|
+
* @result Returns the metadata registered for the protocol, or NULL if there is none
|
|
205
|
+
*/
|
|
206
|
+
API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0))
|
|
207
|
+
_Nullable NW_RETURNS_RETAINED nw_protocol_metadata_t
|
|
208
|
+
nw_content_context_copy_protocol_metadata(nw_content_context_t context,
|
|
209
|
+
nw_protocol_definition_t protocol);
|
|
210
|
+
|
|
211
|
+
#ifdef __BLOCKS__
|
|
212
|
+
/*!
|
|
213
|
+
* @function nw_content_context_foreach_protocol_metadata
|
|
214
|
+
* @discussion Access all per-protocol metadata objects from a parent content context
|
|
215
|
+
* @param context The context context parent object
|
|
216
|
+
* @param foreach_block A block in which protocol definition and metadata will be sent
|
|
217
|
+
*/
|
|
218
|
+
API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0))
|
|
219
|
+
void
|
|
220
|
+
nw_content_context_foreach_protocol_metadata(nw_content_context_t context,
|
|
221
|
+
void (^foreach_block)(nw_protocol_definition_t definition,
|
|
222
|
+
nw_protocol_metadata_t metadata));
|
|
223
|
+
#endif // __BLOCKS__
|
|
224
|
+
|
|
225
|
+
NW_ASSUME_NONNULL_END
|
|
226
|
+
|
|
227
|
+
__END_DECLS
|
|
228
|
+
|
|
229
|
+
#endif // __NW_CONTENT_CONTEXT_H__
|
|
@@ -0,0 +1,390 @@
|
|
|
1
|
+
//
|
|
2
|
+
// endpoint.h
|
|
3
|
+
// Network
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2014-2023 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#ifndef __NW_ENDPOINT_H__
|
|
9
|
+
#define __NW_ENDPOINT_H__
|
|
10
|
+
|
|
11
|
+
#ifndef __NW_INDIRECT__
|
|
12
|
+
#warning "Please include <Network/Network.h> instead of this file directly."
|
|
13
|
+
#endif // __NW_INDIRECT__
|
|
14
|
+
|
|
15
|
+
#include <Network/nw_object.h>
|
|
16
|
+
#include <Network/interface.h>
|
|
17
|
+
#include <Network/txt_record.h>
|
|
18
|
+
|
|
19
|
+
#include <stdint.h>
|
|
20
|
+
#include <sys/socket.h>
|
|
21
|
+
|
|
22
|
+
NW_ASSUME_NONNULL_BEGIN
|
|
23
|
+
|
|
24
|
+
__BEGIN_DECLS
|
|
25
|
+
|
|
26
|
+
/*!
|
|
27
|
+
* @typedef nw_endpoint_t
|
|
28
|
+
* @abstract
|
|
29
|
+
* A Network Endpoint is an abstract static representation of a local or remote
|
|
30
|
+
* network entity. Endpoints indicate specific instances that connections may
|
|
31
|
+
* be created between, such as Hostname + Port pairs, IP Address + Port pairs,
|
|
32
|
+
* and named Bonjour Services.
|
|
33
|
+
*
|
|
34
|
+
* This type supports ARC and the -[description] method. In non-ARC files, use
|
|
35
|
+
* nw_retain() and nw_release() to retain and release the object.
|
|
36
|
+
*/
|
|
37
|
+
#ifndef NW_ENDPOINT_IMPL
|
|
38
|
+
NW_SENDABLE_OBJECT_DECL(nw_endpoint);
|
|
39
|
+
#endif // NW_ENDPOINT_IMPL
|
|
40
|
+
|
|
41
|
+
/*!
|
|
42
|
+
* @typedef nw_endpoint_type_t
|
|
43
|
+
* @abstract
|
|
44
|
+
* Endpoint types represent a well-known form of endpoint. Values may be
|
|
45
|
+
* added to this enumeration, and some custom endpoint types may use
|
|
46
|
+
* values not defined in this enumeration.
|
|
47
|
+
*/
|
|
48
|
+
typedef enum {
|
|
49
|
+
/*! @const nw_endpoint_type_invalid An invalid endpoint */
|
|
50
|
+
nw_endpoint_type_invalid = 0,
|
|
51
|
+
/*! @const nw_endpoint_type_address An IP Address + Port */
|
|
52
|
+
nw_endpoint_type_address = 1,
|
|
53
|
+
/*! @const nw_endpoint_type_host A Hostname + Port */
|
|
54
|
+
nw_endpoint_type_host = 2,
|
|
55
|
+
/*! @const nw_endpoint_type_bonjour_service A Bonjour Service Name + Type + Domain */
|
|
56
|
+
nw_endpoint_type_bonjour_service = 3,
|
|
57
|
+
/*! @const nw_endpoint_type_url A URL endpoint */
|
|
58
|
+
nw_endpoint_type_url = 4,
|
|
59
|
+
} nw_endpoint_type_t;
|
|
60
|
+
|
|
61
|
+
/*!
|
|
62
|
+
* @function nw_endpoint_get_type
|
|
63
|
+
*
|
|
64
|
+
* @abstract
|
|
65
|
+
* Retrieves the type of a network endpoint.
|
|
66
|
+
*
|
|
67
|
+
* @param endpoint
|
|
68
|
+
* The endpoint object for which to get the type.
|
|
69
|
+
*
|
|
70
|
+
* @result
|
|
71
|
+
* Returns the type of the network endpoint.
|
|
72
|
+
*/
|
|
73
|
+
API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0))
|
|
74
|
+
nw_endpoint_type_t
|
|
75
|
+
nw_endpoint_get_type(nw_endpoint_t endpoint);
|
|
76
|
+
|
|
77
|
+
#pragma mark - Host Endpoints
|
|
78
|
+
|
|
79
|
+
/*!
|
|
80
|
+
* @function nw_endpoint_create_host
|
|
81
|
+
*
|
|
82
|
+
* @abstract
|
|
83
|
+
* Creates a network endpoint with a hostname and port. The hostname
|
|
84
|
+
* may be a string-encoding of an IP address, in which case the
|
|
85
|
+
* the endpoint will be treated as an endpoint with the type
|
|
86
|
+
* nw_endpoint_type_address. Otherwise, the endpoint will have the
|
|
87
|
+
* type nw_endpoint_type_host.
|
|
88
|
+
*
|
|
89
|
+
* @param hostname
|
|
90
|
+
* A hostname, such as "www.example.com", or "2607:ffff::1234:abcd".
|
|
91
|
+
*
|
|
92
|
+
* @param port
|
|
93
|
+
* A port number as a C string, such as "443", or a service
|
|
94
|
+
* name, such as "https".
|
|
95
|
+
*
|
|
96
|
+
* @result
|
|
97
|
+
* Returns an allocated nw_endpoint_t object on success.
|
|
98
|
+
* Callers are responsible for deallocating using nw_release(obj) or [obj release].
|
|
99
|
+
* These objects support ARC.
|
|
100
|
+
* Returns NULL on failure. Fails due to invalid parameters.
|
|
101
|
+
*/
|
|
102
|
+
API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0))
|
|
103
|
+
NW_RETURNS_RETAINED nw_endpoint_t
|
|
104
|
+
nw_endpoint_create_host(const char *hostname, const char *port);
|
|
105
|
+
|
|
106
|
+
/*!
|
|
107
|
+
* @function nw_endpoint_get_hostname
|
|
108
|
+
*
|
|
109
|
+
* @abstract
|
|
110
|
+
* Retrieves the hostname string for a network endpoint with
|
|
111
|
+
* the type nw_endpoint_type_host, nw_endpoint_type_address,
|
|
112
|
+
* or nw_endpoint_type_url.
|
|
113
|
+
*
|
|
114
|
+
* @param endpoint
|
|
115
|
+
* The endpoint object.
|
|
116
|
+
*
|
|
117
|
+
* @result
|
|
118
|
+
* Returns the hostname string for the endpoint, or NULL
|
|
119
|
+
* if the endpoint is not of type nw_endpoint_type_host,
|
|
120
|
+
* nw_endpoint_type_address, or nw_endpoint_type_url.
|
|
121
|
+
*/
|
|
122
|
+
API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0))
|
|
123
|
+
const char *
|
|
124
|
+
nw_endpoint_get_hostname(nw_endpoint_t endpoint);
|
|
125
|
+
|
|
126
|
+
/*!
|
|
127
|
+
* @function nw_endpoint_copy_port_string
|
|
128
|
+
*
|
|
129
|
+
* @abstract
|
|
130
|
+
* Returns an allocated port string for a network endpoint with
|
|
131
|
+
* the type nw_endpoint_type_host or nw_endpoint_type_address.
|
|
132
|
+
*
|
|
133
|
+
* @param endpoint
|
|
134
|
+
* The endpoint object.
|
|
135
|
+
*
|
|
136
|
+
* @result
|
|
137
|
+
* Returns the port string for the endpoint, or NULL
|
|
138
|
+
* if the endpoint is not of type nw_endpoint_type_host or
|
|
139
|
+
* nw_endpoint_type_address. This string must be freed with free().
|
|
140
|
+
*/
|
|
141
|
+
API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0))
|
|
142
|
+
char *
|
|
143
|
+
nw_endpoint_copy_port_string(nw_endpoint_t endpoint);
|
|
144
|
+
|
|
145
|
+
/*!
|
|
146
|
+
* @function nw_endpoint_get_port
|
|
147
|
+
*
|
|
148
|
+
* @abstract
|
|
149
|
+
* Retrieves the port for a network endpoint with the type
|
|
150
|
+
* nw_endpoint_type_url, nw_endpoint_type_host, or nw_endpoint_type_address.
|
|
151
|
+
* The port will be returned in Host Byte Order.
|
|
152
|
+
*
|
|
153
|
+
* @param endpoint
|
|
154
|
+
* The endpoint object.
|
|
155
|
+
*
|
|
156
|
+
* @result
|
|
157
|
+
* Returns the port for the endpoint, or 0 if the endpoint is not
|
|
158
|
+
* of type nw_endpoint_type_host or nw_endpoint_type_address.
|
|
159
|
+
* The port will be returned in Host Byte Order.
|
|
160
|
+
*/
|
|
161
|
+
API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0))
|
|
162
|
+
uint16_t
|
|
163
|
+
nw_endpoint_get_port(nw_endpoint_t endpoint);
|
|
164
|
+
|
|
165
|
+
#pragma mark - Address Endpoints
|
|
166
|
+
|
|
167
|
+
/*!
|
|
168
|
+
* @function nw_endpoint_create_address
|
|
169
|
+
*
|
|
170
|
+
* @abstract
|
|
171
|
+
* Creates a network endpoint with a sockaddr struct. The endpoint
|
|
172
|
+
* will have the type nw_endpoint_type_address.
|
|
173
|
+
*
|
|
174
|
+
* @param address
|
|
175
|
+
* An address stored as a sockaddr.
|
|
176
|
+
*
|
|
177
|
+
* @result
|
|
178
|
+
* Returns an allocated nw_endpoint_t object on success.
|
|
179
|
+
* Callers are responsible for deallocating using nw_release(obj) or [obj release].
|
|
180
|
+
* These objects support ARC.
|
|
181
|
+
* Returns NULL on failure. Fails due to invalid parameters.
|
|
182
|
+
*/
|
|
183
|
+
API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0))
|
|
184
|
+
NW_RETURNS_RETAINED nw_endpoint_t
|
|
185
|
+
nw_endpoint_create_address(const struct sockaddr *address);
|
|
186
|
+
|
|
187
|
+
/*!
|
|
188
|
+
* @function nw_endpoint_copy_address_string
|
|
189
|
+
*
|
|
190
|
+
* @abstract
|
|
191
|
+
* Returns an allocated IP address string for a network endpoint with
|
|
192
|
+
* the type nw_endpoint_type_address.
|
|
193
|
+
*
|
|
194
|
+
* @param endpoint
|
|
195
|
+
* The endpoint object.
|
|
196
|
+
*
|
|
197
|
+
* @result
|
|
198
|
+
* Returns the IP address string for the endpoint, or NULL
|
|
199
|
+
* if the endpoint is not of type nw_endpoint_type_address.
|
|
200
|
+
* This string must be freed with free().
|
|
201
|
+
*/
|
|
202
|
+
API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0))
|
|
203
|
+
char *
|
|
204
|
+
nw_endpoint_copy_address_string(nw_endpoint_t endpoint);
|
|
205
|
+
|
|
206
|
+
/*!
|
|
207
|
+
* @function nw_endpoint_get_address
|
|
208
|
+
*
|
|
209
|
+
* @abstract
|
|
210
|
+
* Retrieves the sockaddr struct for a network endpoint with
|
|
211
|
+
* the type nw_endpoint_type_address.
|
|
212
|
+
*
|
|
213
|
+
* @param endpoint
|
|
214
|
+
* The endpoint object.
|
|
215
|
+
*
|
|
216
|
+
* @result
|
|
217
|
+
* Returns the sockaddr struct for the endpoint, or NULL
|
|
218
|
+
* if the endpoint is not of type nw_endpoint_type_address.
|
|
219
|
+
*/
|
|
220
|
+
API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0))
|
|
221
|
+
const struct sockaddr *
|
|
222
|
+
nw_endpoint_get_address(nw_endpoint_t endpoint);
|
|
223
|
+
|
|
224
|
+
#pragma mark - Bonjour Service Endpoints
|
|
225
|
+
|
|
226
|
+
/*!
|
|
227
|
+
* @function nw_endpoint_create_bonjour_service
|
|
228
|
+
*
|
|
229
|
+
* @abstract
|
|
230
|
+
* Creates a network endpoint for a Bonjour Service name, type, and
|
|
231
|
+
* domain. The endpoint will have the type nw_endpoint_type_bonjour_service.
|
|
232
|
+
*
|
|
233
|
+
* @param name
|
|
234
|
+
* The Bonjour Service name, such as "example".
|
|
235
|
+
*
|
|
236
|
+
* @param type
|
|
237
|
+
* The Bonjour Service type, such as "_http._tcp".
|
|
238
|
+
*
|
|
239
|
+
* @param domain
|
|
240
|
+
* The Bonjour Service domain, such as "local".
|
|
241
|
+
*
|
|
242
|
+
* @result
|
|
243
|
+
* Returns an allocated nw_endpoint_t object on success.
|
|
244
|
+
* Callers are responsible for deallocating using nw_release(obj) or [obj release].
|
|
245
|
+
* These objects support ARC.
|
|
246
|
+
* Returns NULL on failure. Fails due to invalid parameters.
|
|
247
|
+
*/
|
|
248
|
+
API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0))
|
|
249
|
+
NW_RETURNS_RETAINED nw_endpoint_t
|
|
250
|
+
nw_endpoint_create_bonjour_service(const char *name, const char *type, const char *domain);
|
|
251
|
+
|
|
252
|
+
/*!
|
|
253
|
+
* @function nw_endpoint_get_bonjour_service_name
|
|
254
|
+
*
|
|
255
|
+
* @abstract
|
|
256
|
+
* Retrieves the Bonjour Service name string for a network
|
|
257
|
+
* endpoint with the type nw_endpoint_type_bonjour_service.
|
|
258
|
+
*
|
|
259
|
+
* @param endpoint
|
|
260
|
+
* The endpoint object.
|
|
261
|
+
*
|
|
262
|
+
* @result
|
|
263
|
+
* Returns the Bonjour Service name string for the endpoint, or NULL
|
|
264
|
+
* if the endpoint is not of type nw_endpoint_type_bonjour_service.
|
|
265
|
+
*/
|
|
266
|
+
API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0))
|
|
267
|
+
const char *
|
|
268
|
+
nw_endpoint_get_bonjour_service_name(nw_endpoint_t endpoint);
|
|
269
|
+
|
|
270
|
+
/*!
|
|
271
|
+
* @function nw_endpoint_get_bonjour_service_type
|
|
272
|
+
*
|
|
273
|
+
* @abstract
|
|
274
|
+
* Retrieves the Bonjour Service type string for a network
|
|
275
|
+
* endpoint with the type nw_endpoint_type_bonjour_service.
|
|
276
|
+
*
|
|
277
|
+
* @param endpoint
|
|
278
|
+
* The endpoint object.
|
|
279
|
+
*
|
|
280
|
+
* @result
|
|
281
|
+
* Returns the Bonjour Service type string for the endpoint, or NULL
|
|
282
|
+
* if the endpoint is not of type nw_endpoint_type_bonjour_service.
|
|
283
|
+
*/
|
|
284
|
+
API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0))
|
|
285
|
+
const char *
|
|
286
|
+
nw_endpoint_get_bonjour_service_type(nw_endpoint_t endpoint);
|
|
287
|
+
|
|
288
|
+
/*!
|
|
289
|
+
* @function nw_endpoint_get_bonjour_service_domain
|
|
290
|
+
*
|
|
291
|
+
* @abstract
|
|
292
|
+
* Retrieves the Bonjour Service domain string for a network
|
|
293
|
+
* endpoint with the type nw_endpoint_type_bonjour_service.
|
|
294
|
+
*
|
|
295
|
+
* @param endpoint
|
|
296
|
+
* The endpoint object.
|
|
297
|
+
*
|
|
298
|
+
* @result
|
|
299
|
+
* Returns the Bonjour Service domain string for the endpoint, or NULL
|
|
300
|
+
* if the endpoint is not of type nw_endpoint_type_bonjour_service.
|
|
301
|
+
*/
|
|
302
|
+
API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0))
|
|
303
|
+
const char *
|
|
304
|
+
nw_endpoint_get_bonjour_service_domain(nw_endpoint_t endpoint);
|
|
305
|
+
|
|
306
|
+
#pragma mark - URL Endpoints
|
|
307
|
+
|
|
308
|
+
/*!
|
|
309
|
+
* @function nw_endpoint_create_url
|
|
310
|
+
*
|
|
311
|
+
* @abstract
|
|
312
|
+
* Creates a network endpoint with a URL. The endpoint will have the type
|
|
313
|
+
* nw_endpoint_type_url.
|
|
314
|
+
*
|
|
315
|
+
* @param url
|
|
316
|
+
* The URL string.
|
|
317
|
+
*
|
|
318
|
+
* @result
|
|
319
|
+
* Returns an allocated nw_endpoint_t object on success.
|
|
320
|
+
* Callers are responsible for deallocating using nw_release(obj) or [obj release].
|
|
321
|
+
* These objects support ARC.
|
|
322
|
+
* Returns NULL on failure. Fails due to invalid parameters, or due to URL parsing failure.
|
|
323
|
+
*/
|
|
324
|
+
API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0))
|
|
325
|
+
NW_RETURNS_RETAINED nw_endpoint_t
|
|
326
|
+
nw_endpoint_create_url(const char *url);
|
|
327
|
+
|
|
328
|
+
/*!
|
|
329
|
+
* @function nw_endpoint_get_url
|
|
330
|
+
*
|
|
331
|
+
* @abstract
|
|
332
|
+
* Retrieves the URL string from a network endpoint of type
|
|
333
|
+
* nw_endpoint_type_url.
|
|
334
|
+
*
|
|
335
|
+
* @param endpoint
|
|
336
|
+
* The endpoint object.
|
|
337
|
+
*
|
|
338
|
+
* @result
|
|
339
|
+
* The URL string, or NULL if the endpoint is not of type
|
|
340
|
+
* nw_endpoint_type_url.
|
|
341
|
+
*/
|
|
342
|
+
API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0))
|
|
343
|
+
const char *
|
|
344
|
+
nw_endpoint_get_url(nw_endpoint_t endpoint);
|
|
345
|
+
|
|
346
|
+
/*!
|
|
347
|
+
* @function nw_endpoint_copy_txt_record
|
|
348
|
+
*
|
|
349
|
+
* @abstract
|
|
350
|
+
* Retrieves the TXT record associated with the endpoint, if present.
|
|
351
|
+
* TXT records can be populated during browsing and connection
|
|
352
|
+
* establishment.
|
|
353
|
+
*
|
|
354
|
+
* @param endpoint
|
|
355
|
+
* The endpoint object.
|
|
356
|
+
*
|
|
357
|
+
* @result
|
|
358
|
+
* Returns a retained nw_txt_record_t object if a TXT record
|
|
359
|
+
* is associated with this endpoint, or NULL otherwise.
|
|
360
|
+
*/
|
|
361
|
+
API_AVAILABLE(macos(13.0), ios(16.0), watchos(9.0), tvos(16.0))
|
|
362
|
+
NW_RETURNS_RETAINED _Nullable nw_txt_record_t
|
|
363
|
+
nw_endpoint_copy_txt_record(nw_endpoint_t endpoint);
|
|
364
|
+
|
|
365
|
+
/*!
|
|
366
|
+
* @function nw_endpoint_get_signature
|
|
367
|
+
*
|
|
368
|
+
* @abstract
|
|
369
|
+
* Retrieves a signed data blob associated with an endpoint.
|
|
370
|
+
*
|
|
371
|
+
* @param endpoint
|
|
372
|
+
* The endpoint to modify.
|
|
373
|
+
*
|
|
374
|
+
* @param out_signature_length
|
|
375
|
+
* A pointer to a size_t that will take the length of the signature.
|
|
376
|
+
*
|
|
377
|
+
* @result
|
|
378
|
+
* Returns a pointer to a buffer of bytes containing a signature,
|
|
379
|
+
* or NULL if the endpoint is not signed.
|
|
380
|
+
*/
|
|
381
|
+
API_AVAILABLE(macos(13.0), ios(16.0), watchos(9.0), tvos(16.0))
|
|
382
|
+
const uint8_t * _Nullable
|
|
383
|
+
nw_endpoint_get_signature(nw_endpoint_t endpoint,
|
|
384
|
+
size_t *out_signature_length);
|
|
385
|
+
|
|
386
|
+
__END_DECLS
|
|
387
|
+
|
|
388
|
+
NW_ASSUME_NONNULL_END
|
|
389
|
+
|
|
390
|
+
#endif // __NW_ENDPOINT_H__
|