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,432 @@
|
|
|
1
|
+
//
|
|
2
|
+
// txt_record.h
|
|
3
|
+
// Network
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2018-2019 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#ifndef __NW_TXT_RECORD_H__
|
|
9
|
+
#define __NW_TXT_RECORD_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 <stdlib.h>
|
|
17
|
+
#include <stdbool.h>
|
|
18
|
+
#include <stdint.h>
|
|
19
|
+
|
|
20
|
+
NW_ASSUME_NONNULL_BEGIN
|
|
21
|
+
|
|
22
|
+
__BEGIN_DECLS
|
|
23
|
+
|
|
24
|
+
/*!
|
|
25
|
+
* @typedef nw_txt_record_t
|
|
26
|
+
* @abstract
|
|
27
|
+
* A TXT Record Object is used to provide additional information about a
|
|
28
|
+
* service during discovery. Two formats of the TXT record are supported:
|
|
29
|
+
*
|
|
30
|
+
* 1. A dictionary of key-value pairs as defined in RFC 1464.
|
|
31
|
+
* 2. A buffer of bytes.
|
|
32
|
+
*
|
|
33
|
+
* The format of a TXT Record object is defined at creation time and cannot
|
|
34
|
+
* be changed later. If the buffer provided to nw_txt_record_create_with_bytes()
|
|
35
|
+
* conforms to the key-value pair format, the TXT record object will be created
|
|
36
|
+
* as a dictionary. Otherwise, the TXT record object is created as a buffer
|
|
37
|
+
* of bytes and any key-value pair functions called on the object will fail.
|
|
38
|
+
*
|
|
39
|
+
* This type supports ARC and the -[description] method. In non-ARC files, use
|
|
40
|
+
* nw_retain() and nw_release() to retain and release the object.
|
|
41
|
+
*/
|
|
42
|
+
#ifndef NW_TXT_RECORD_IMPL
|
|
43
|
+
NW_OBJECT_DECL(nw_txt_record);
|
|
44
|
+
#endif // NW_TXT_RECORD_IMPL
|
|
45
|
+
|
|
46
|
+
/*!
|
|
47
|
+
* @typedef nw_txt_record_find_key_t
|
|
48
|
+
* @abstract
|
|
49
|
+
* An enumeration of possible find results when trying to find a key-value
|
|
50
|
+
* pair in the TXT record object.
|
|
51
|
+
*/
|
|
52
|
+
typedef enum {
|
|
53
|
+
/*!
|
|
54
|
+
* @const nw_txt_record_find_key_invalid The key is invalid. According
|
|
55
|
+
* to RFC 1464, a key is invalid if it is an empty string, contains
|
|
56
|
+
* non-ASCII characters, or has length greater than UINT8_MAX.
|
|
57
|
+
*/
|
|
58
|
+
nw_txt_record_find_key_invalid = 0,
|
|
59
|
+
/*!
|
|
60
|
+
* @const nw_txt_record_find_key_not_present The key-value pair does not exist in the TXT record.
|
|
61
|
+
*/
|
|
62
|
+
nw_txt_record_find_key_not_present = 1,
|
|
63
|
+
/*!
|
|
64
|
+
* @const nw_txt_record_find_key_no_value The key exists in the TXT record, but has no assigned value.
|
|
65
|
+
*/
|
|
66
|
+
nw_txt_record_find_key_no_value = 2,
|
|
67
|
+
/*!
|
|
68
|
+
* @const nw_txt_record_find_key_empty_value The key exists in the TXT record with an empty value.
|
|
69
|
+
*/
|
|
70
|
+
nw_txt_record_find_key_empty_value = 3,
|
|
71
|
+
/*!
|
|
72
|
+
* @const nw_txt_record_find_key_non_empty_value The key exists in the TXT record with a non-empty value.
|
|
73
|
+
*/
|
|
74
|
+
nw_txt_record_find_key_non_empty_value = 4,
|
|
75
|
+
} nw_txt_record_find_key_t;
|
|
76
|
+
|
|
77
|
+
/*!
|
|
78
|
+
* @function nw_txt_record_create_with_bytes
|
|
79
|
+
*
|
|
80
|
+
* @abstract
|
|
81
|
+
* Create a new TXT record object from a buffer of bytes. If the buffer
|
|
82
|
+
* follows the key-value pair format as defined in RFC 1464, the TXT record
|
|
83
|
+
* object will be created as a dictionary. Otherwise, it is created as a
|
|
84
|
+
* TXT record buffer.
|
|
85
|
+
*
|
|
86
|
+
* @param txt_bytes
|
|
87
|
+
* The pointer to the buffer.
|
|
88
|
+
*
|
|
89
|
+
* @param txt_len
|
|
90
|
+
* The length of the buffer.
|
|
91
|
+
*
|
|
92
|
+
* @result
|
|
93
|
+
* An instantiated TXT record object.
|
|
94
|
+
* Callers are responsible for deallocating using nw_release(obj) or
|
|
95
|
+
* [obj release]. These objects support ARC.
|
|
96
|
+
* Returns NULL on failure. Fails if txt_bytes is NULL or if txt_len is 0.
|
|
97
|
+
*/
|
|
98
|
+
API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0))
|
|
99
|
+
NW_RETURNS_RETAINED nw_txt_record_t
|
|
100
|
+
nw_txt_record_create_with_bytes(const uint8_t * txt_bytes, size_t txt_len);
|
|
101
|
+
|
|
102
|
+
/*!
|
|
103
|
+
* @function nw_txt_record_create_dictionary
|
|
104
|
+
*
|
|
105
|
+
* @abstract
|
|
106
|
+
* Create an empty TXT record dictionary.
|
|
107
|
+
*
|
|
108
|
+
* @result
|
|
109
|
+
* An empty TXT record dictionary.
|
|
110
|
+
* Callers are responsible for deallocating using nw_release(obj) or
|
|
111
|
+
* [obj release]. These objects support ARC.
|
|
112
|
+
*/
|
|
113
|
+
API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0))
|
|
114
|
+
NW_RETURNS_RETAINED nw_txt_record_t
|
|
115
|
+
nw_txt_record_create_dictionary(void);
|
|
116
|
+
|
|
117
|
+
/*!
|
|
118
|
+
* @function nw_txt_record_copy
|
|
119
|
+
*
|
|
120
|
+
* @abstract
|
|
121
|
+
* Create a deep copy of an existing TXT record object.
|
|
122
|
+
*
|
|
123
|
+
* @param txt_record
|
|
124
|
+
* The TXT record object to be copied.
|
|
125
|
+
*
|
|
126
|
+
* @result
|
|
127
|
+
* A deep copy of the TXT record object.
|
|
128
|
+
* Callers are responsible for deallocating using nw_release(obj) or
|
|
129
|
+
* [obj release]. These objects support ARC.
|
|
130
|
+
*/
|
|
131
|
+
API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0))
|
|
132
|
+
NW_RETURNS_RETAINED _Nullable nw_txt_record_t
|
|
133
|
+
nw_txt_record_copy(nw_txt_record_t _Nullable txt_record);
|
|
134
|
+
|
|
135
|
+
/*!
|
|
136
|
+
* @function nw_txt_record_find_key
|
|
137
|
+
*
|
|
138
|
+
* @abstract
|
|
139
|
+
* Find a key-value pair in the TXT record object.
|
|
140
|
+
*
|
|
141
|
+
* @param txt_record
|
|
142
|
+
* The TXT record object.
|
|
143
|
+
*
|
|
144
|
+
* @param key
|
|
145
|
+
* The key of the key-value pair.
|
|
146
|
+
*
|
|
147
|
+
* @result
|
|
148
|
+
* An nw_txt_record_find_key_t representing the type of the key-value pair found.
|
|
149
|
+
* The key may be invalid, may not exist, have no associated value, have an
|
|
150
|
+
* empty associated value, or have a non-empty associated value.
|
|
151
|
+
*/
|
|
152
|
+
API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0))
|
|
153
|
+
nw_txt_record_find_key_t
|
|
154
|
+
nw_txt_record_find_key(nw_txt_record_t txt_record, const char *key);
|
|
155
|
+
|
|
156
|
+
#ifdef __BLOCKS__
|
|
157
|
+
/*!
|
|
158
|
+
* @typedef nw_txt_record_access_key_t
|
|
159
|
+
*
|
|
160
|
+
* @abstract
|
|
161
|
+
* Access a value in the TXT record object with its key. Attempts to access
|
|
162
|
+
* or modify the TXT record object from within the block are prohibited.
|
|
163
|
+
*
|
|
164
|
+
* @param key
|
|
165
|
+
* The key of the value.
|
|
166
|
+
*
|
|
167
|
+
* @param found
|
|
168
|
+
* An nw_txt_record_find_key_t representing the type of the key-value pair found.
|
|
169
|
+
* The key may be invalid, may not exist, have no associated value, have an
|
|
170
|
+
* empty associated value, or have a non-empty associated value.
|
|
171
|
+
*
|
|
172
|
+
* @param value
|
|
173
|
+
* The value corresponding to the key. If the key does not exist or has no
|
|
174
|
+
* associated value, value will be NULL. Note that the bytes pointed to by
|
|
175
|
+
* value are only valid within the scope of the block.
|
|
176
|
+
*
|
|
177
|
+
* @param value_len
|
|
178
|
+
* The length of the value. If the key does not exist or has no associated
|
|
179
|
+
* value, value_len will be 0.
|
|
180
|
+
*
|
|
181
|
+
* @result
|
|
182
|
+
* An arbitrary return value defined by the user. For example, the user may
|
|
183
|
+
* want to return true if the operation succeeds.
|
|
184
|
+
*/
|
|
185
|
+
typedef bool (^nw_txt_record_access_key_t) (const char *key,
|
|
186
|
+
const nw_txt_record_find_key_t found,
|
|
187
|
+
const uint8_t * _Nullable value,
|
|
188
|
+
const size_t value_len);
|
|
189
|
+
|
|
190
|
+
/*!
|
|
191
|
+
* @function nw_txt_record_access_key
|
|
192
|
+
*
|
|
193
|
+
* @abstract
|
|
194
|
+
* Access a value in the TXT record object with its key. Attempts to access
|
|
195
|
+
* or modify the TXT record object from within the block are prohibited.
|
|
196
|
+
*
|
|
197
|
+
* @param txt_record
|
|
198
|
+
* The TXT record object.
|
|
199
|
+
*
|
|
200
|
+
* @param access_value
|
|
201
|
+
* The block that will be used to access the value of the given key.
|
|
202
|
+
*
|
|
203
|
+
* @result
|
|
204
|
+
* The return value of the access_value block. This is an arbitrary return
|
|
205
|
+
* value defined by the user.
|
|
206
|
+
*/
|
|
207
|
+
API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0))
|
|
208
|
+
bool
|
|
209
|
+
nw_txt_record_access_key(nw_txt_record_t txt_record, const char *key,
|
|
210
|
+
nw_txt_record_access_key_t access_value);
|
|
211
|
+
#endif // __BLOCKS__
|
|
212
|
+
|
|
213
|
+
/*!
|
|
214
|
+
* @function nw_txt_record_set_key
|
|
215
|
+
*
|
|
216
|
+
* @abstract
|
|
217
|
+
* Set a key-value pair on the TXT record object.
|
|
218
|
+
*
|
|
219
|
+
* @param txt_record
|
|
220
|
+
* The TXT record object.
|
|
221
|
+
*
|
|
222
|
+
* @param key
|
|
223
|
+
* The key that will be inserted. If the key already exists in the TXT
|
|
224
|
+
* record object, the existing key-value pair will be replaced.
|
|
225
|
+
*
|
|
226
|
+
* @param value
|
|
227
|
+
* The value that will be inserted. If value is set to NULL, then the key
|
|
228
|
+
* will be inserted with no value.
|
|
229
|
+
*
|
|
230
|
+
* @param value_len
|
|
231
|
+
* The length of the value will be inserted. If value is set to zero, then the
|
|
232
|
+
* key will be inserted with a zero-length value. Inserting a NULL value
|
|
233
|
+
* with a non-zero length will fail.
|
|
234
|
+
*
|
|
235
|
+
* @result
|
|
236
|
+
* A boolean indicating if the key-value pair was inserted successfully.
|
|
237
|
+
* Returns false if the key is invalid. A key is invalid if it is an empty
|
|
238
|
+
* string, contains non-ASCII characters, or has length greater than
|
|
239
|
+
* UINT8_MAX.
|
|
240
|
+
*
|
|
241
|
+
*/
|
|
242
|
+
API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0))
|
|
243
|
+
bool
|
|
244
|
+
nw_txt_record_set_key(nw_txt_record_t txt_record, const char *key,
|
|
245
|
+
const uint8_t * _Nullable value, size_t value_len);
|
|
246
|
+
|
|
247
|
+
/*!
|
|
248
|
+
* @function nw_txt_record_remove_key
|
|
249
|
+
*
|
|
250
|
+
* @abstract
|
|
251
|
+
* Removes a key-value pair in the TXT record object given its key.
|
|
252
|
+
*
|
|
253
|
+
* @param txt_record
|
|
254
|
+
* The TXT record object.
|
|
255
|
+
*
|
|
256
|
+
* @param key
|
|
257
|
+
* The key corresponding to the key-value pair.
|
|
258
|
+
*
|
|
259
|
+
* @result
|
|
260
|
+
* A boolean indicating if the key-value pair specified by the given key
|
|
261
|
+
* was removed. Returns false if the key is invalid or not present in the
|
|
262
|
+
* TXT dictionary. A key is invalid if it is an empty string, contains
|
|
263
|
+
* non-ASCII characters, or has length greater than UINT8_MAX.
|
|
264
|
+
*/
|
|
265
|
+
API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0))
|
|
266
|
+
bool
|
|
267
|
+
nw_txt_record_remove_key(nw_txt_record_t txt_record,
|
|
268
|
+
const char *key);
|
|
269
|
+
|
|
270
|
+
/*!
|
|
271
|
+
* @function nw_txt_record_get_key_count
|
|
272
|
+
*
|
|
273
|
+
* @abstract
|
|
274
|
+
* Count the number of keys in the TXT record object.
|
|
275
|
+
*
|
|
276
|
+
* @param txt_record
|
|
277
|
+
* A TXT record object.
|
|
278
|
+
*
|
|
279
|
+
* @result
|
|
280
|
+
* The number of keys in the TXT record object.
|
|
281
|
+
*/
|
|
282
|
+
API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0))
|
|
283
|
+
size_t
|
|
284
|
+
nw_txt_record_get_key_count(nw_txt_record_t _Nullable txt_record);
|
|
285
|
+
|
|
286
|
+
#ifdef __BLOCKS__
|
|
287
|
+
/*!
|
|
288
|
+
* @typedef nw_txt_record_access_bytes_t
|
|
289
|
+
*
|
|
290
|
+
* @abstract
|
|
291
|
+
* A block to access the raw TXT record inside the TXT record object. For
|
|
292
|
+
* example, the user can copy the raw TXT record into another buffer in the
|
|
293
|
+
* block, or read its contents.
|
|
294
|
+
*
|
|
295
|
+
* @param raw_txt_record
|
|
296
|
+
* The raw TXT record inside the TXT record object. Note that the bytes
|
|
297
|
+
* pointed to by raw_txt_record is only valid within the scope of the block.
|
|
298
|
+
*
|
|
299
|
+
* @param len
|
|
300
|
+
* The length of the raw TXT record.
|
|
301
|
+
*
|
|
302
|
+
* @result
|
|
303
|
+
* A user-defined return value. For example, the user may want to return a
|
|
304
|
+
* boolean indicating if the operation succeeds.
|
|
305
|
+
*/
|
|
306
|
+
typedef bool (^nw_txt_record_access_bytes_t) (const uint8_t *raw_txt_record,
|
|
307
|
+
size_t len);
|
|
308
|
+
|
|
309
|
+
/*!
|
|
310
|
+
* @function nw_txt_record_access_bytes
|
|
311
|
+
*
|
|
312
|
+
* @abstract
|
|
313
|
+
* Access the raw TXT record inside the TXT record object.
|
|
314
|
+
*
|
|
315
|
+
* @param txt_record
|
|
316
|
+
* The TXT record object.
|
|
317
|
+
*
|
|
318
|
+
* @param access_bytes
|
|
319
|
+
* The block that will be used to access the raw TXT record inside the TXT
|
|
320
|
+
* record object.
|
|
321
|
+
*
|
|
322
|
+
* @result
|
|
323
|
+
* The return value of the access_bytes block, which is defined by the user.
|
|
324
|
+
* For example, the user may want to return a boolean indicating if the
|
|
325
|
+
* operation succeeds.
|
|
326
|
+
*/
|
|
327
|
+
API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0))
|
|
328
|
+
bool
|
|
329
|
+
nw_txt_record_access_bytes(nw_txt_record_t txt_record,
|
|
330
|
+
nw_txt_record_access_bytes_t access_bytes);
|
|
331
|
+
|
|
332
|
+
/*!
|
|
333
|
+
* @typedef nw_txt_record_applier_t
|
|
334
|
+
*
|
|
335
|
+
* @abstract
|
|
336
|
+
* A block that can be applied to every key-value pair in the TXT record
|
|
337
|
+
* object.
|
|
338
|
+
*
|
|
339
|
+
* @param key
|
|
340
|
+
* The key of the current iterating key-value pair. Note that key is only
|
|
341
|
+
* valid within the scope of the block.
|
|
342
|
+
*
|
|
343
|
+
* @param found
|
|
344
|
+
* An nw_txt_record_find_key_t representing the type of the key-value pair found.
|
|
345
|
+
* The key may be invalid, may not exist, have no associated value, have an
|
|
346
|
+
* empty associated value, or have a non-empty associated value.
|
|
347
|
+
*
|
|
348
|
+
* @param value
|
|
349
|
+
* The value of the current iterating key-value pair. Note that value is
|
|
350
|
+
* only valid within the scope of the block.
|
|
351
|
+
*
|
|
352
|
+
* @param value_len
|
|
353
|
+
* The length of the value.
|
|
354
|
+
*
|
|
355
|
+
* @result
|
|
356
|
+
* A boolean indicating whether iteration should continue.
|
|
357
|
+
*/
|
|
358
|
+
typedef bool (^nw_txt_record_applier_t) (const char *key,
|
|
359
|
+
const nw_txt_record_find_key_t found,
|
|
360
|
+
const uint8_t *value,
|
|
361
|
+
const size_t value_len);
|
|
362
|
+
|
|
363
|
+
/*!
|
|
364
|
+
* @function nw_txt_record_apply
|
|
365
|
+
*
|
|
366
|
+
* @abstract
|
|
367
|
+
* Apply the block to every key-value pair in the TXT record object.
|
|
368
|
+
*
|
|
369
|
+
* @param txt_record
|
|
370
|
+
* The TXT record object.
|
|
371
|
+
*
|
|
372
|
+
* @param applier
|
|
373
|
+
* The block that will be applied to the entire TXT record object.
|
|
374
|
+
*
|
|
375
|
+
* @result
|
|
376
|
+
* A boolean indicating whether iteration of the TXT record object
|
|
377
|
+
* completed successfully. Iteration will only fail if the applier block
|
|
378
|
+
* returns false.
|
|
379
|
+
*/
|
|
380
|
+
API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0))
|
|
381
|
+
bool
|
|
382
|
+
nw_txt_record_apply(nw_txt_record_t txt_record,
|
|
383
|
+
nw_txt_record_applier_t applier);
|
|
384
|
+
#endif // __BLOCKS__
|
|
385
|
+
|
|
386
|
+
/*!
|
|
387
|
+
* @function nw_txt_record_is_equal
|
|
388
|
+
*
|
|
389
|
+
* @abstract
|
|
390
|
+
* Check if the two TXT record objects are equal.
|
|
391
|
+
*
|
|
392
|
+
* @param left
|
|
393
|
+
* The first TXT record object to be compared.
|
|
394
|
+
*
|
|
395
|
+
* @param right
|
|
396
|
+
* The second TXT record object to be compared.
|
|
397
|
+
*
|
|
398
|
+
* @result
|
|
399
|
+
* A boolean indicating if the two TXT record objects are equal. Two TXT
|
|
400
|
+
* record objects are equal if they contain the same set of key-value pairs,
|
|
401
|
+
* where keys are compared case-insensitively. For example, "ABC=1" and
|
|
402
|
+
* "abc=1" are identical key-value pairs. The ordering of the key-value
|
|
403
|
+
* pairs does not matter.
|
|
404
|
+
*/
|
|
405
|
+
API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0))
|
|
406
|
+
bool
|
|
407
|
+
nw_txt_record_is_equal(nw_txt_record_t _Nullable left,
|
|
408
|
+
nw_txt_record_t _Nullable right);
|
|
409
|
+
|
|
410
|
+
/*!
|
|
411
|
+
* @function nw_txt_record_is_dictionary
|
|
412
|
+
*
|
|
413
|
+
* @abstract
|
|
414
|
+
* Check whether the TXT record is a dictionary or a buffer.
|
|
415
|
+
*
|
|
416
|
+
* @param txt_record
|
|
417
|
+
* The TXT record object.
|
|
418
|
+
*
|
|
419
|
+
* @result
|
|
420
|
+
* A boolean indicating whether the TXT record is a dictionary or a buffer.
|
|
421
|
+
* If true, the TXT record is a dictionary. If false, the TXT record is a
|
|
422
|
+
* buffer.
|
|
423
|
+
*/
|
|
424
|
+
API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0))
|
|
425
|
+
bool
|
|
426
|
+
nw_txt_record_is_dictionary(nw_txt_record_t txt_record);
|
|
427
|
+
|
|
428
|
+
__END_DECLS
|
|
429
|
+
|
|
430
|
+
NW_ASSUME_NONNULL_END
|
|
431
|
+
|
|
432
|
+
#endif /* __NW_TXT_RECORD_H__ */
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
//
|
|
2
|
+
// udp_options.h
|
|
3
|
+
// Network
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2017-2019 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#ifndef __NW_UDP_OPTIONS_H__
|
|
9
|
+
#define __NW_UDP_OPTIONS_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
|
+
|
|
17
|
+
#include <uuid/uuid.h>
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
__BEGIN_DECLS
|
|
21
|
+
|
|
22
|
+
NW_ASSUME_NONNULL_BEGIN
|
|
23
|
+
|
|
24
|
+
/*!
|
|
25
|
+
* @function nw_protocol_copy_udp_definition
|
|
26
|
+
*
|
|
27
|
+
* @abstract
|
|
28
|
+
* Access the definition of the default system protocol implementation
|
|
29
|
+
* of UDP (User Datagram Protocol). This protocol can be used
|
|
30
|
+
* as part of a connection's protocol stack as the transport protocol.
|
|
31
|
+
*
|
|
32
|
+
* @result
|
|
33
|
+
* Returns a retained protocol definition object.
|
|
34
|
+
*/
|
|
35
|
+
API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0))
|
|
36
|
+
NW_RETURNS_RETAINED nw_protocol_definition_t
|
|
37
|
+
nw_protocol_copy_udp_definition(void);
|
|
38
|
+
|
|
39
|
+
#pragma mark - Options
|
|
40
|
+
|
|
41
|
+
/*!
|
|
42
|
+
* @function nw_udp_create_options
|
|
43
|
+
*
|
|
44
|
+
* @abstract
|
|
45
|
+
* Create an instance of UDP protocol options. This object can be added
|
|
46
|
+
* to an nw_protocol_stack_t to be used in an nw_connection_t or
|
|
47
|
+
* an nw_listener_t.
|
|
48
|
+
*
|
|
49
|
+
* @result
|
|
50
|
+
* Returns a retained protocol options object.
|
|
51
|
+
*/
|
|
52
|
+
API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0))
|
|
53
|
+
NW_RETURNS_RETAINED nw_protocol_options_t
|
|
54
|
+
nw_udp_create_options(void);
|
|
55
|
+
|
|
56
|
+
/*!
|
|
57
|
+
* @function nw_udp_options_set_prefer_no_checksum
|
|
58
|
+
*
|
|
59
|
+
* @abstract
|
|
60
|
+
* Configure UDP to skip computing checksums when sending.
|
|
61
|
+
* This will only take effect when running over IPv4.
|
|
62
|
+
*
|
|
63
|
+
* @param options
|
|
64
|
+
* A UDP protocol options object.
|
|
65
|
+
*
|
|
66
|
+
* @param prefer_no_checksum
|
|
67
|
+
* A boolean that indicates if UDP is allowed to skip computing
|
|
68
|
+
* its checksum.
|
|
69
|
+
*/
|
|
70
|
+
API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0))
|
|
71
|
+
void
|
|
72
|
+
nw_udp_options_set_prefer_no_checksum(nw_protocol_options_t options,
|
|
73
|
+
bool prefer_no_checksum);
|
|
74
|
+
|
|
75
|
+
#pragma mark - Metadata
|
|
76
|
+
|
|
77
|
+
/*!
|
|
78
|
+
* @function nw_udp_create_metadata
|
|
79
|
+
*
|
|
80
|
+
* @abstract
|
|
81
|
+
* Create an instance of UDP metadata that can be used
|
|
82
|
+
* to configure per-datagram options when sending data
|
|
83
|
+
* on a connection.
|
|
84
|
+
*
|
|
85
|
+
* @result
|
|
86
|
+
* Returns a retained protocol metadata object.
|
|
87
|
+
*/
|
|
88
|
+
API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0))
|
|
89
|
+
NW_RETURNS_RETAINED nw_protocol_metadata_t
|
|
90
|
+
nw_udp_create_metadata(void);
|
|
91
|
+
|
|
92
|
+
/*!
|
|
93
|
+
* @function nw_protocol_metadata_is_udp
|
|
94
|
+
*
|
|
95
|
+
* @abstract
|
|
96
|
+
* Checks if a protocol metadata object is compatible with the
|
|
97
|
+
* accessors defined in this file for the default system
|
|
98
|
+
* implementation of UDP.
|
|
99
|
+
*
|
|
100
|
+
* @result
|
|
101
|
+
* Returns true if the metadata is for the default system UDP,
|
|
102
|
+
* false otherwise.
|
|
103
|
+
*/
|
|
104
|
+
API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0))
|
|
105
|
+
bool
|
|
106
|
+
nw_protocol_metadata_is_udp(nw_protocol_metadata_t metadata);
|
|
107
|
+
|
|
108
|
+
NW_ASSUME_NONNULL_END
|
|
109
|
+
|
|
110
|
+
__END_DECLS
|
|
111
|
+
|
|
112
|
+
#endif // __NW_UDP_OPTIONS_H__
|