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,32 @@
|
|
|
1
|
+
//
|
|
2
|
+
// NSURLSession+Network.h
|
|
3
|
+
// Network
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2023 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#if defined(__OBJC__)
|
|
9
|
+
|
|
10
|
+
#import <Network/Network.h>
|
|
11
|
+
#import <Foundation/Foundation.h>
|
|
12
|
+
|
|
13
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
14
|
+
|
|
15
|
+
API_AVAILABLE(macos(14.0), ios(17.0), watchos(10.0), tvos(17.0))
|
|
16
|
+
@interface NSURLSessionConfiguration (Network)
|
|
17
|
+
|
|
18
|
+
/*!
|
|
19
|
+
* @property proxyConfigurations
|
|
20
|
+
* @discussion An array of `nw_proxy_config_t` objects to apply to all connections in the URL session.
|
|
21
|
+
*/
|
|
22
|
+
#if OS_OBJECT_USE_OBJC
|
|
23
|
+
@property (copy) NSArray<nw_proxy_config_t> *proxyConfigurations NS_REFINED_FOR_SWIFT;
|
|
24
|
+
#else
|
|
25
|
+
@property (copy) NSArray *proxyConfigurations NS_REFINED_FOR_SWIFT;
|
|
26
|
+
#endif
|
|
27
|
+
|
|
28
|
+
@end
|
|
29
|
+
|
|
30
|
+
NS_ASSUME_NONNULL_END
|
|
31
|
+
|
|
32
|
+
#endif // __OBJC__
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Network.h
|
|
3
|
+
// Network
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2014-2021, 2023 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#ifndef __NW_H__
|
|
9
|
+
#define __NW_H__
|
|
10
|
+
|
|
11
|
+
#ifndef __NW_INDIRECT__
|
|
12
|
+
#define __NW_INDIRECT__
|
|
13
|
+
#define __NW_SET_INDIRECT__
|
|
14
|
+
#endif // __NW_INDIRECT__
|
|
15
|
+
|
|
16
|
+
#include <Network/nw_object.h>
|
|
17
|
+
#include <Network/advertise_descriptor.h>
|
|
18
|
+
#include <Network/browser.h>
|
|
19
|
+
#include <Network/browse_result.h>
|
|
20
|
+
#include <Network/browse_descriptor.h>
|
|
21
|
+
#include <Network/connection.h>
|
|
22
|
+
#include <Network/connection_group.h>
|
|
23
|
+
#include <Network/connection_report.h>
|
|
24
|
+
#include <Network/content_context.h>
|
|
25
|
+
#include <Network/endpoint.h>
|
|
26
|
+
#include <Network/ethernet_channel.h>
|
|
27
|
+
#include <Network/framer_options.h>
|
|
28
|
+
#include <Network/group_descriptor.h>
|
|
29
|
+
#include <Network/interface.h>
|
|
30
|
+
#include <Network/ip_options.h>
|
|
31
|
+
#include <Network/listener.h>
|
|
32
|
+
#include <Network/error.h>
|
|
33
|
+
#include <Network/parameters.h>
|
|
34
|
+
#include <Network/path_monitor.h>
|
|
35
|
+
#include <Network/path.h>
|
|
36
|
+
#include <Network/privacy_context.h>
|
|
37
|
+
#include <Network/protocol_options.h>
|
|
38
|
+
#include <Network/proxy_config.h>
|
|
39
|
+
#include <Network/quic_options.h>
|
|
40
|
+
#include <Network/resolver_config.h>
|
|
41
|
+
#include <Network/tcp_options.h>
|
|
42
|
+
#include <Network/tls_options.h>
|
|
43
|
+
#include <Network/txt_record.h>
|
|
44
|
+
#include <Network/udp_options.h>
|
|
45
|
+
#include <Network/ws_options.h>
|
|
46
|
+
|
|
47
|
+
#ifdef __NW_SET_INDIRECT__
|
|
48
|
+
#undef __NW_INDIRECT__
|
|
49
|
+
#endif // __NW_SET_INDIRECT__
|
|
50
|
+
|
|
51
|
+
#endif // __NW_H__
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
//
|
|
2
|
+
// advertise_descriptor.h
|
|
3
|
+
// Network
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2016-2019 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#ifndef __NW_ADVERTISE_DESCRIPTOR_H__
|
|
9
|
+
#define __NW_ADVERTISE_DESCRIPTOR_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/txt_record.h>
|
|
17
|
+
|
|
18
|
+
#include <sys/types.h>
|
|
19
|
+
#include <stdbool.h>
|
|
20
|
+
#include <stdint.h>
|
|
21
|
+
|
|
22
|
+
NW_ASSUME_NONNULL_BEGIN
|
|
23
|
+
__BEGIN_DECLS
|
|
24
|
+
|
|
25
|
+
/*!
|
|
26
|
+
* @typedef nw_advertise_descriptor_t
|
|
27
|
+
* @abstract
|
|
28
|
+
* An Advertise Descriptor is an abstract classification of properties
|
|
29
|
+
* that may be used to advertise a service, such as a Bonjour service type.
|
|
30
|
+
*/
|
|
31
|
+
#ifndef NW_ADVERTISE_DESCRIPTOR_IMPL
|
|
32
|
+
NW_OBJECT_DECL(nw_advertise_descriptor);
|
|
33
|
+
#endif // NW_ADVERTISE_DESCRIPTOR_IMPL
|
|
34
|
+
|
|
35
|
+
/*!
|
|
36
|
+
* @function nw_advertise_descriptor_create_bonjour_service
|
|
37
|
+
*
|
|
38
|
+
* @abstract
|
|
39
|
+
* Creates a new advertise descriptor object based on a Bonjour service type
|
|
40
|
+
* and optional domain. This object can be used with listener objects to
|
|
41
|
+
* specify the service the listener should advertise.
|
|
42
|
+
*
|
|
43
|
+
* If the name is unspecified, the default name for the device will be used.
|
|
44
|
+
* If the domain is unspecified, the default domains for registration will be
|
|
45
|
+
* used. If the listener is local only, the domain 'local.' will be used
|
|
46
|
+
* regardless of the parameter passed to domain.
|
|
47
|
+
*
|
|
48
|
+
* @param name
|
|
49
|
+
* An optional Bonjour service name.
|
|
50
|
+
*
|
|
51
|
+
* @param type
|
|
52
|
+
* A Bonjour service type.
|
|
53
|
+
*
|
|
54
|
+
* @param domain
|
|
55
|
+
* An optional Bonjour service domain.
|
|
56
|
+
*
|
|
57
|
+
* @result
|
|
58
|
+
* An instantiated browse descriptor object.
|
|
59
|
+
*/
|
|
60
|
+
API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0))
|
|
61
|
+
NW_RETURNS_RETAINED nw_advertise_descriptor_t _Nullable
|
|
62
|
+
nw_advertise_descriptor_create_bonjour_service(const char * _Nullable name, const char * type, const char * _Nullable domain);
|
|
63
|
+
|
|
64
|
+
/*!
|
|
65
|
+
* @function nw_advertise_descriptor_set_txt_record
|
|
66
|
+
*
|
|
67
|
+
* @abstract
|
|
68
|
+
* Set the TXT record for the advertise descriptor's service. You must call
|
|
69
|
+
* nw_listener_set_advertise_descriptor to update the listener's advertising
|
|
70
|
+
* afterwards in order for these changes to take effect.
|
|
71
|
+
*
|
|
72
|
+
* @param advertise_descriptor
|
|
73
|
+
* The advertise descriptor to modify.
|
|
74
|
+
*
|
|
75
|
+
* @param txt_record
|
|
76
|
+
* A pointer to the TXT record.
|
|
77
|
+
*
|
|
78
|
+
* @param txt_length
|
|
79
|
+
* The length of the TXT record. The total size of a typical DNS-SD TXT record
|
|
80
|
+
* is intended to be small - 200 bytes or less. Using TXT records larger than
|
|
81
|
+
* 1300 bytes is not recommended at this time.
|
|
82
|
+
*/
|
|
83
|
+
API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0))
|
|
84
|
+
void
|
|
85
|
+
nw_advertise_descriptor_set_txt_record(nw_advertise_descriptor_t advertise_descriptor,
|
|
86
|
+
const void * _Nullable txt_record,
|
|
87
|
+
size_t txt_length);
|
|
88
|
+
|
|
89
|
+
/*!
|
|
90
|
+
* @function nw_advertise_descriptor_set_no_auto_rename
|
|
91
|
+
*
|
|
92
|
+
* @abstract
|
|
93
|
+
* Disable auto-rename for the Bonjour service registration.
|
|
94
|
+
* Auto-rename is enabled by default.
|
|
95
|
+
*
|
|
96
|
+
* @param advertise_descriptor
|
|
97
|
+
* The advertise descriptor to modify.
|
|
98
|
+
*
|
|
99
|
+
* @param no_auto_rename
|
|
100
|
+
* A boolean indicating if auto-rename should be disabled.
|
|
101
|
+
*/
|
|
102
|
+
API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0))
|
|
103
|
+
void
|
|
104
|
+
nw_advertise_descriptor_set_no_auto_rename(nw_advertise_descriptor_t advertise_descriptor,
|
|
105
|
+
bool no_auto_rename);
|
|
106
|
+
|
|
107
|
+
/*!
|
|
108
|
+
* @function nw_advertise_descriptor_get_no_auto_rename
|
|
109
|
+
*
|
|
110
|
+
* @abstract
|
|
111
|
+
* Check if auto-rename has been disabled for the Bonjour service
|
|
112
|
+
* registration.
|
|
113
|
+
*
|
|
114
|
+
* @param advertise_descriptor
|
|
115
|
+
* The advertise descriptor object.
|
|
116
|
+
*
|
|
117
|
+
* @result A boolean indicating if auto-rename is disabled.
|
|
118
|
+
*/
|
|
119
|
+
API_AVAILABLE(macos(10.14), ios(12.0), watchos(5.0), tvos(12.0))
|
|
120
|
+
bool
|
|
121
|
+
nw_advertise_descriptor_get_no_auto_rename(nw_advertise_descriptor_t advertise_descriptor);
|
|
122
|
+
|
|
123
|
+
/*!
|
|
124
|
+
* @function nw_advertise_descriptor_set_txt_record_object
|
|
125
|
+
*
|
|
126
|
+
* @abstract
|
|
127
|
+
* Set the TXT record object on the advertise descriptor.
|
|
128
|
+
*
|
|
129
|
+
* @param advertise_descriptor
|
|
130
|
+
* The advertise descriptor object.
|
|
131
|
+
*
|
|
132
|
+
* @param txt_record
|
|
133
|
+
* The TXT record object. If txt_record is NULL, the advertise_descriptor's
|
|
134
|
+
* current TXT record object will be removed.
|
|
135
|
+
*/
|
|
136
|
+
API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0))
|
|
137
|
+
void
|
|
138
|
+
nw_advertise_descriptor_set_txt_record_object(nw_advertise_descriptor_t advertise_descriptor,
|
|
139
|
+
_Nullable nw_txt_record_t txt_record);
|
|
140
|
+
|
|
141
|
+
/*!
|
|
142
|
+
* @function nw_advertise_descriptor_copy_txt_record_object
|
|
143
|
+
*
|
|
144
|
+
* @abstract
|
|
145
|
+
* Copies the TXT record object from the advertise descriptor.
|
|
146
|
+
*
|
|
147
|
+
* @param advertise_descriptor
|
|
148
|
+
* The advertise descriptor object.
|
|
149
|
+
*
|
|
150
|
+
* @result
|
|
151
|
+
* A copy of the TXT record object, or NULL if the advertise descriptor
|
|
152
|
+
* does not have an associated TXT record.
|
|
153
|
+
*/
|
|
154
|
+
API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0))
|
|
155
|
+
NW_RETURNS_RETAINED _Nullable nw_txt_record_t
|
|
156
|
+
nw_advertise_descriptor_copy_txt_record_object(nw_advertise_descriptor_t advertise_descriptor);
|
|
157
|
+
|
|
158
|
+
/*!
|
|
159
|
+
* @function nw_advertise_descriptor_create_application_service
|
|
160
|
+
*
|
|
161
|
+
* @abstract
|
|
162
|
+
* Creates an advertise descriptor for application service discovery.
|
|
163
|
+
*
|
|
164
|
+
* @param application_service_name
|
|
165
|
+
* The service name to advertise.
|
|
166
|
+
*
|
|
167
|
+
* @result
|
|
168
|
+
* An instantiated advertise descriptor object.
|
|
169
|
+
*/
|
|
170
|
+
API_AVAILABLE(macos(13.0), ios(16.0), watchos(9.0), tvos(16.0))
|
|
171
|
+
NW_RETURNS_RETAINED nw_advertise_descriptor_t
|
|
172
|
+
nw_advertise_descriptor_create_application_service(const char *application_service_name);
|
|
173
|
+
|
|
174
|
+
/*!
|
|
175
|
+
* @function nw_advertise_descriptor_get_application_service_name
|
|
176
|
+
*
|
|
177
|
+
* @abstract
|
|
178
|
+
* Returns the service name of an application service advertise descriptor.
|
|
179
|
+
*
|
|
180
|
+
* @param advertise_descriptor
|
|
181
|
+
* An advertise descriptor object.
|
|
182
|
+
*
|
|
183
|
+
* @result
|
|
184
|
+
* The service name or NULL if the advertise descriptor is not of the correct type.
|
|
185
|
+
*/
|
|
186
|
+
API_AVAILABLE(macos(13.0), ios(16.0), watchos(9.0), tvos(16.0))
|
|
187
|
+
const char * _Nullable
|
|
188
|
+
nw_advertise_descriptor_get_application_service_name(nw_advertise_descriptor_t advertise_descriptor);
|
|
189
|
+
|
|
190
|
+
__END_DECLS
|
|
191
|
+
NW_ASSUME_NONNULL_END
|
|
192
|
+
|
|
193
|
+
#endif /* __NW_ADVERTISE_DESCRIPTOR_H__ */
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
//
|
|
2
|
+
// browse_descriptor.h
|
|
3
|
+
// Network
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2016-2019,2022 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#ifndef __NW_BROWSE_DESCRIPTOR_H__
|
|
9
|
+
#define __NW_BROWSE_DESCRIPTOR_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 <dispatch/dispatch.h>
|
|
17
|
+
|
|
18
|
+
NW_ASSUME_NONNULL_BEGIN
|
|
19
|
+
|
|
20
|
+
__BEGIN_DECLS
|
|
21
|
+
|
|
22
|
+
/*!
|
|
23
|
+
* @typedef nw_browse_descriptor_t
|
|
24
|
+
* @abstract
|
|
25
|
+
* A Browse Descriptor describes the service for which to browse. Examples
|
|
26
|
+
* include Bonjour service types, or devices owned by the same account.
|
|
27
|
+
*
|
|
28
|
+
* This type supports ARC and the -[description] method. In non-ARC files, use
|
|
29
|
+
* nw_retain() and nw_release() to retain and release the object.
|
|
30
|
+
*/
|
|
31
|
+
#ifndef NW_BROWSE_DESCRIPTOR_IMPL
|
|
32
|
+
NW_OBJECT_DECL(nw_browse_descriptor);
|
|
33
|
+
#endif // NW_BROWSE_DESCRIPTOR_IMPL
|
|
34
|
+
|
|
35
|
+
/*!
|
|
36
|
+
* @function nw_browse_descriptor_create_bonjour_service
|
|
37
|
+
*
|
|
38
|
+
* @abstract
|
|
39
|
+
* Creates a new browse descriptor object on a Bonjour service type and
|
|
40
|
+
* domain.
|
|
41
|
+
*
|
|
42
|
+
* @param type
|
|
43
|
+
* A Bonjour service type.
|
|
44
|
+
*
|
|
45
|
+
* @param domain
|
|
46
|
+
* An optional Bonjour service domain. If the domain is unspecified, the
|
|
47
|
+
* default domains for browsing will be used.
|
|
48
|
+
*
|
|
49
|
+
* @result
|
|
50
|
+
* An instantiated browse descriptor object.
|
|
51
|
+
*/
|
|
52
|
+
API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0))
|
|
53
|
+
NW_RETURNS_RETAINED nw_browse_descriptor_t
|
|
54
|
+
nw_browse_descriptor_create_bonjour_service(const char *type,
|
|
55
|
+
const char * _Nullable domain);
|
|
56
|
+
|
|
57
|
+
/*!
|
|
58
|
+
* @function nw_browse_descriptor_get_bonjour_service_type
|
|
59
|
+
*
|
|
60
|
+
* @abstract
|
|
61
|
+
* Returns the service type of a browse descriptor.
|
|
62
|
+
*
|
|
63
|
+
* @param descriptor
|
|
64
|
+
* A browse descriptor object.
|
|
65
|
+
*
|
|
66
|
+
* @result
|
|
67
|
+
* The service type.
|
|
68
|
+
*/
|
|
69
|
+
API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0))
|
|
70
|
+
const char *
|
|
71
|
+
nw_browse_descriptor_get_bonjour_service_type(nw_browse_descriptor_t descriptor);
|
|
72
|
+
|
|
73
|
+
/*!
|
|
74
|
+
* @function nw_browse_descriptor_get_bonjour_service_domain
|
|
75
|
+
*
|
|
76
|
+
* @abstract
|
|
77
|
+
* Returns the service domain of a browse descriptor, or NULL if NULL was
|
|
78
|
+
* provided while creating the descriptor.
|
|
79
|
+
*
|
|
80
|
+
* @param descriptor
|
|
81
|
+
* A browse descriptor object.
|
|
82
|
+
*
|
|
83
|
+
* @result
|
|
84
|
+
* The service domain.
|
|
85
|
+
*/
|
|
86
|
+
API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0))
|
|
87
|
+
const char * _Nullable
|
|
88
|
+
nw_browse_descriptor_get_bonjour_service_domain(nw_browse_descriptor_t descriptor);
|
|
89
|
+
|
|
90
|
+
/*!
|
|
91
|
+
* @function nw_browse_descriptor_set_include_txt_record
|
|
92
|
+
*
|
|
93
|
+
* @abstract
|
|
94
|
+
* Set a flag to allow or prohibit the browser from querying for TXT records
|
|
95
|
+
* while browsing. This flag should only be set if the client needs information
|
|
96
|
+
* from the TXT record during browsing, and may increase network traffic. By
|
|
97
|
+
* default, the browser will not automatically query for TXT records.
|
|
98
|
+
*
|
|
99
|
+
* @param descriptor
|
|
100
|
+
* The browse descriptor object.
|
|
101
|
+
*
|
|
102
|
+
* @param include_txt_record
|
|
103
|
+
* A flag indicating whether results should include a TXT record. If true,
|
|
104
|
+
* the browser will query for TXT records. If false, the browser will not
|
|
105
|
+
* query for TXT records.
|
|
106
|
+
*/
|
|
107
|
+
API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0))
|
|
108
|
+
void
|
|
109
|
+
nw_browse_descriptor_set_include_txt_record(nw_browse_descriptor_t descriptor, bool include_txt_record);
|
|
110
|
+
|
|
111
|
+
/*!
|
|
112
|
+
* @function nw_browse_descriptor_get_include_txt_record
|
|
113
|
+
*
|
|
114
|
+
* @abstract
|
|
115
|
+
* Check whether the browser is allowed to query for TXT records.
|
|
116
|
+
*
|
|
117
|
+
* @param descriptor
|
|
118
|
+
* The browse descriptor to check.
|
|
119
|
+
*
|
|
120
|
+
* @result
|
|
121
|
+
* Whether the browser is allowed to query for TXT records.
|
|
122
|
+
*/
|
|
123
|
+
API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0))
|
|
124
|
+
bool
|
|
125
|
+
nw_browse_descriptor_get_include_txt_record(nw_browse_descriptor_t descriptor);
|
|
126
|
+
|
|
127
|
+
/*!
|
|
128
|
+
* @function nw_browse_descriptor_create_application_service
|
|
129
|
+
*
|
|
130
|
+
* @abstract
|
|
131
|
+
* Creates a browse descriptor for application service discovery.
|
|
132
|
+
*
|
|
133
|
+
* @param application_service_name
|
|
134
|
+
* The service name to browse for.
|
|
135
|
+
*
|
|
136
|
+
* @result
|
|
137
|
+
* An instantiated browse descriptor object.
|
|
138
|
+
*/
|
|
139
|
+
API_AVAILABLE(macos(13.0), ios(16.0), watchos(9.0), tvos(16.0))
|
|
140
|
+
NW_RETURNS_RETAINED nw_browse_descriptor_t
|
|
141
|
+
nw_browse_descriptor_create_application_service(const char *application_service_name);
|
|
142
|
+
|
|
143
|
+
/*!
|
|
144
|
+
* @function nw_browse_descriptor_get_application_service_name
|
|
145
|
+
*
|
|
146
|
+
* @abstract
|
|
147
|
+
* Returns the service name of an application service browse descriptor.
|
|
148
|
+
*
|
|
149
|
+
* @param descriptor
|
|
150
|
+
* A browse descriptor object.
|
|
151
|
+
*
|
|
152
|
+
* @result
|
|
153
|
+
* The service name.
|
|
154
|
+
*/
|
|
155
|
+
API_AVAILABLE(macos(13.0), ios(16.0), watchos(9.0), tvos(16.0))
|
|
156
|
+
const char * _Nullable
|
|
157
|
+
nw_browse_descriptor_get_application_service_name(nw_browse_descriptor_t descriptor);
|
|
158
|
+
|
|
159
|
+
__END_DECLS
|
|
160
|
+
|
|
161
|
+
NW_ASSUME_NONNULL_END
|
|
162
|
+
|
|
163
|
+
#endif // __NW_BROWSE_DESCRIPTOR_H__
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
//
|
|
2
|
+
// browse_result.h
|
|
3
|
+
// Network
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2018-2019 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#ifndef __NW_BROWSE_RESULT_H__
|
|
9
|
+
#define __NW_BROWSE_RESULT_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/endpoint.h>
|
|
17
|
+
#include <Network/interface.h>
|
|
18
|
+
|
|
19
|
+
NW_ASSUME_NONNULL_BEGIN
|
|
20
|
+
|
|
21
|
+
__BEGIN_DECLS
|
|
22
|
+
|
|
23
|
+
/*!
|
|
24
|
+
* @typedef nw_browse_result_t
|
|
25
|
+
* @abstract
|
|
26
|
+
* A Browse Result represents the outcome of a browse operation. It contains
|
|
27
|
+
* an endpoint and additional information about the endpoint gathered during
|
|
28
|
+
* browsing.
|
|
29
|
+
*
|
|
30
|
+
* For example, a Bonjour service may be advertised on multiple interfaces.
|
|
31
|
+
* The browser will provide a single browse result object for each collection
|
|
32
|
+
* of Bonjour endpoints sharing the same service instance name. The browse
|
|
33
|
+
* result will have an enumerable array of interfaces and the endpoints'
|
|
34
|
+
* common TXT record value.
|
|
35
|
+
*
|
|
36
|
+
* Browse results may also be compared using nw_browse_result_get_changes()
|
|
37
|
+
* which describes the changes that occurred between an old and new browse
|
|
38
|
+
* result.
|
|
39
|
+
*
|
|
40
|
+
* This type supports ARC and the -[description] method. In non-ARC files, use
|
|
41
|
+
* nw_retain() and nw_release() to retain and release the object.
|
|
42
|
+
*/
|
|
43
|
+
#ifndef NW_BROWSE_RESULT_IMPL
|
|
44
|
+
NW_OBJECT_DECL(nw_browse_result);
|
|
45
|
+
#endif // NW_BROWSE_RESULT_IMPL
|
|
46
|
+
|
|
47
|
+
/*!
|
|
48
|
+
* @typedef nw_browse_result_change_t
|
|
49
|
+
* @abstract
|
|
50
|
+
* A nw_browse_result_change_t describes all changes that occurred between
|
|
51
|
+
* two browse results. Call nw_browse_result_get_changes() to get the
|
|
52
|
+
* changes between an old and a new browse result.
|
|
53
|
+
*/
|
|
54
|
+
typedef uint64_t nw_browse_result_change_t;
|
|
55
|
+
|
|
56
|
+
enum {
|
|
57
|
+
/*!
|
|
58
|
+
* @const nw_browse_result_change_invalid The browse result change is invalid.
|
|
59
|
+
*/
|
|
60
|
+
nw_browse_result_change_invalid = 0x00,
|
|
61
|
+
|
|
62
|
+
/*!
|
|
63
|
+
* @const nw_browse_result_change_identical The browse results being compared
|
|
64
|
+
* are identical.
|
|
65
|
+
*/
|
|
66
|
+
nw_browse_result_change_identical = 0x01,
|
|
67
|
+
|
|
68
|
+
/*!
|
|
69
|
+
* @const nw_browse_result_change_result_added A browse result was added.
|
|
70
|
+
*/
|
|
71
|
+
nw_browse_result_change_result_added = 0x02,
|
|
72
|
+
|
|
73
|
+
/*!
|
|
74
|
+
* @const nw_browse_result_change_result_removed A browse result was removed.
|
|
75
|
+
*/
|
|
76
|
+
nw_browse_result_change_result_removed = 0x04,
|
|
77
|
+
|
|
78
|
+
/*!
|
|
79
|
+
* @const nw_browse_result_change_interface_added An interface became available.
|
|
80
|
+
*/
|
|
81
|
+
nw_browse_result_change_interface_added = 0x08,
|
|
82
|
+
|
|
83
|
+
/*!
|
|
84
|
+
* @const nw_browse_result_change_interface_removed An interface was removed.
|
|
85
|
+
*/
|
|
86
|
+
nw_browse_result_change_interface_removed = 0x10,
|
|
87
|
+
|
|
88
|
+
/*!
|
|
89
|
+
* @const nw_browse_result_change_txt_record_changed The TXT record changed.
|
|
90
|
+
*/
|
|
91
|
+
nw_browse_result_change_txt_record_changed = 0x20,
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
/*!
|
|
95
|
+
* @function nw_browse_result_copy_endpoint
|
|
96
|
+
*
|
|
97
|
+
* @abstract
|
|
98
|
+
* Copies the endpoint associated with the browse result object.
|
|
99
|
+
*
|
|
100
|
+
* @param result
|
|
101
|
+
* The browse result object.
|
|
102
|
+
*
|
|
103
|
+
* @result
|
|
104
|
+
* The associated endpoint.
|
|
105
|
+
*/
|
|
106
|
+
API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0))
|
|
107
|
+
NW_RETURNS_RETAINED nw_endpoint_t
|
|
108
|
+
nw_browse_result_copy_endpoint(nw_browse_result_t result);
|
|
109
|
+
|
|
110
|
+
/*!
|
|
111
|
+
* @function nw_browse_result_get_changes
|
|
112
|
+
*
|
|
113
|
+
* @abstract
|
|
114
|
+
* Determines the set of all changes that occurred between an old and a new
|
|
115
|
+
* browse result. For example, if the return value of this function matches
|
|
116
|
+
* with nw_browse_result_change_interface_added and nw_browse_result_change_txt_record_changed,
|
|
117
|
+
* the caller can expect new_result to include a new interface and an updated
|
|
118
|
+
* txt record that was not present in old_result.
|
|
119
|
+
*
|
|
120
|
+
* @param old_result
|
|
121
|
+
* The old result.
|
|
122
|
+
*
|
|
123
|
+
* @param new_result
|
|
124
|
+
* The new result.
|
|
125
|
+
*
|
|
126
|
+
* @result
|
|
127
|
+
* A nw_browse_result_change_t describing all changes that occurred.
|
|
128
|
+
*/
|
|
129
|
+
API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0))
|
|
130
|
+
nw_browse_result_change_t
|
|
131
|
+
nw_browse_result_get_changes(_Nullable nw_browse_result_t old_result,
|
|
132
|
+
_Nullable nw_browse_result_t new_result);
|
|
133
|
+
|
|
134
|
+
/*!
|
|
135
|
+
* @function nw_browse_result_get_interfaces_count
|
|
136
|
+
*
|
|
137
|
+
* @abstract
|
|
138
|
+
* Returns the number of interfaces on this browse result.
|
|
139
|
+
*
|
|
140
|
+
* @param result
|
|
141
|
+
* The browse result object.
|
|
142
|
+
*
|
|
143
|
+
* @result
|
|
144
|
+
* The number of interfaces available.
|
|
145
|
+
*/
|
|
146
|
+
API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0))
|
|
147
|
+
size_t
|
|
148
|
+
nw_browse_result_get_interfaces_count(nw_browse_result_t result);
|
|
149
|
+
|
|
150
|
+
/*!
|
|
151
|
+
* @function nw_browse_result_copy_txt_record_object
|
|
152
|
+
*
|
|
153
|
+
* @abstract
|
|
154
|
+
* Copies the TXT record object from the browse result.
|
|
155
|
+
*
|
|
156
|
+
* @param result
|
|
157
|
+
* The browse result object.
|
|
158
|
+
*
|
|
159
|
+
* @result
|
|
160
|
+
* A copy of the TXT record object, or NULL if the browse result does not
|
|
161
|
+
* have an associated TXT record.
|
|
162
|
+
*/
|
|
163
|
+
API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0))
|
|
164
|
+
NW_RETURNS_RETAINED _Nullable nw_txt_record_t
|
|
165
|
+
nw_browse_result_copy_txt_record_object(nw_browse_result_t result);
|
|
166
|
+
|
|
167
|
+
#ifdef __BLOCKS__
|
|
168
|
+
|
|
169
|
+
/*!
|
|
170
|
+
* @typedef nw_browse_result_enumerate_interface_t
|
|
171
|
+
*
|
|
172
|
+
* @abstract
|
|
173
|
+
* A block that can be applied to every interface in the browse result.
|
|
174
|
+
*
|
|
175
|
+
* @param interface
|
|
176
|
+
* The interface object.
|
|
177
|
+
*
|
|
178
|
+
* @result
|
|
179
|
+
* A boolean value that indicating if enumeration should continue.
|
|
180
|
+
*/
|
|
181
|
+
typedef bool (^nw_browse_result_enumerate_interface_t)(nw_interface_t interface);
|
|
182
|
+
|
|
183
|
+
/*!
|
|
184
|
+
* @function nw_browse_result_enumerate_interfaces
|
|
185
|
+
*
|
|
186
|
+
* @abstract
|
|
187
|
+
* Enumerates the list of interfaces on this browse result.
|
|
188
|
+
*
|
|
189
|
+
* @param result
|
|
190
|
+
* The browse result object.
|
|
191
|
+
*
|
|
192
|
+
* @param enumerator
|
|
193
|
+
* The enumerator block.
|
|
194
|
+
*/
|
|
195
|
+
API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0))
|
|
196
|
+
void
|
|
197
|
+
nw_browse_result_enumerate_interfaces(nw_browse_result_t result,
|
|
198
|
+
NW_NOESCAPE nw_browse_result_enumerate_interface_t enumerator);
|
|
199
|
+
|
|
200
|
+
#endif // __BLOCKS__
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
__END_DECLS
|
|
204
|
+
|
|
205
|
+
NW_ASSUME_NONNULL_END
|
|
206
|
+
|
|
207
|
+
#endif // __NW_BROWSE_RESULT_H__
|