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,414 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2017-2018 Apple Inc. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
#ifndef __OS_SIGNPOST_H__
|
|
6
|
+
#define __OS_SIGNPOST_H__
|
|
7
|
+
|
|
8
|
+
#include <os/log.h>
|
|
9
|
+
|
|
10
|
+
__BEGIN_DECLS
|
|
11
|
+
|
|
12
|
+
OS_ASSUME_NONNULL_BEGIN
|
|
13
|
+
|
|
14
|
+
/*!
|
|
15
|
+
* @header os_signpost
|
|
16
|
+
*
|
|
17
|
+
* The os_signpost APIs let clients add lightweight instrumentation to
|
|
18
|
+
* code for collection and visualization by performance analysis tooling.
|
|
19
|
+
*
|
|
20
|
+
* Clients of os_signpost can instrument interesting periods of time
|
|
21
|
+
* ('intervals') and single points in time ('events'). Intervals can span
|
|
22
|
+
* processes, be specific to one process, or be specific to a single thread.
|
|
23
|
+
*
|
|
24
|
+
* Intervals and events include an os_log-style format string and arguments
|
|
25
|
+
* which can be used to convey contextual information.
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
#pragma mark - Interval Matching Scope
|
|
29
|
+
|
|
30
|
+
/*!
|
|
31
|
+
* The matching scope for signpost intervals logged with a given os_log_t is
|
|
32
|
+
* specified in that log handles's configuration plist using the
|
|
33
|
+
* 'Signpost-Scope' key and defaults to process-wide scope (i.e. 'Process'
|
|
34
|
+
* value) if unspecified.
|
|
35
|
+
*
|
|
36
|
+
* Signpost interval begin and end matching can have 3 different scopes:
|
|
37
|
+
*
|
|
38
|
+
* - Thread-wide: The search scope for matching begins and ends is restricted to
|
|
39
|
+
* single threads. To set this as the search scope for an os_log_t, set
|
|
40
|
+
* 'Thread' as the string value for the 'Signpost-Scope' key in the
|
|
41
|
+
* os_log_t's configuration plist.
|
|
42
|
+
*
|
|
43
|
+
* - Process-wide (Default value): The search scope for matching begins and ends
|
|
44
|
+
* is restricted to a single process. (i.e. no cross-process intervals)
|
|
45
|
+
* To set this as the search scope for an os_log_t, set
|
|
46
|
+
* 'Process' as the string value for the 'Signpost-Scope' key in the
|
|
47
|
+
* os_log_t's configuration plist or do not specify any 'Signpost-Scope' key-
|
|
48
|
+
* value pair.
|
|
49
|
+
*
|
|
50
|
+
* - System-wide: The search scope for matching begins and ends is not
|
|
51
|
+
* restricted. (i.e. cross-process intervals are possible)
|
|
52
|
+
* To set this as the search scope for an os_log_t, set
|
|
53
|
+
* 'System' as the string value for the 'Signpost-Scope' key in the
|
|
54
|
+
* os_log_t's configuration plist.
|
|
55
|
+
*
|
|
56
|
+
*/
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
#pragma mark - Signpost IDs
|
|
60
|
+
|
|
61
|
+
/*!
|
|
62
|
+
* Disambiguating intervals with signpost IDs
|
|
63
|
+
*
|
|
64
|
+
* Intervals with the same log handle and interval name can be in flight
|
|
65
|
+
* simultaneously. In order for tools to correctly match begin signposts with
|
|
66
|
+
* end signposts, it is necessary to identify each interval with an
|
|
67
|
+
* os_signpost_id_t.
|
|
68
|
+
*
|
|
69
|
+
* If only one interval with a given os_log_t and interval name will ever be in
|
|
70
|
+
* flight at a time, use the os_signpost_t convenience value
|
|
71
|
+
* OS_SIGNPOST_ID_EXCLUSIVE. This can avoid having to share state between begin
|
|
72
|
+
* and end callsites.
|
|
73
|
+
*
|
|
74
|
+
* If there exists some non-pointer uint64_t value that uniquely identifies
|
|
75
|
+
* begin/end pairs, that value can be cast directly to an os_signpost_id_t.
|
|
76
|
+
* Note that the values OS_SIGNPOST_ID_NULL and OS_SIGNPOST_ID_INVALID are
|
|
77
|
+
* reserved and identical values may not be used in this manner.
|
|
78
|
+
*
|
|
79
|
+
* If there exists a pointer which can identify begin/end pairs, an
|
|
80
|
+
* os_signpost_id_t can be generated from that pointer with
|
|
81
|
+
* os_signpost_id_make_with_pointer(). This approach is not applicable to
|
|
82
|
+
* signposts that span process boundaries.
|
|
83
|
+
*
|
|
84
|
+
* If no existing pointer or value is applicable, a new unique value can be
|
|
85
|
+
* generated using the os_signpost_id_generate() function. The returned value
|
|
86
|
+
* is guaranteed to be unique within the matching scope specified on the log
|
|
87
|
+
* handle.
|
|
88
|
+
*/
|
|
89
|
+
|
|
90
|
+
/*!
|
|
91
|
+
* @typedef os_signpost_id_t
|
|
92
|
+
*
|
|
93
|
+
* @brief
|
|
94
|
+
* The type to represent a signpost ID.
|
|
95
|
+
*
|
|
96
|
+
* @discussion.
|
|
97
|
+
* Any 64-bit value can be cast to an os_signpost_id_t except for the
|
|
98
|
+
* OS_SIGNPOST_ID_NULL and OS_SIGNPOST_ID_INVALID reserved values.
|
|
99
|
+
*
|
|
100
|
+
* @const OS_SIGNPOST_ID_NULL
|
|
101
|
+
* Represents the null (absent) signpost ID. It is used by the signpost
|
|
102
|
+
* subsystem when a given signpost is disabled.
|
|
103
|
+
*
|
|
104
|
+
* @const OS_SIGNPOST_ID_INVALID
|
|
105
|
+
* Represents an invalid signpost ID, which signals that an error has occurred.
|
|
106
|
+
*
|
|
107
|
+
* @const OS_SIGNPOST_ID_EXCLUSIVE
|
|
108
|
+
* A convenience value for signpost intervals that will never occur
|
|
109
|
+
* concurrently.
|
|
110
|
+
*/
|
|
111
|
+
typedef uint64_t os_signpost_id_t;
|
|
112
|
+
#ifndef __swift__
|
|
113
|
+
#define OS_SIGNPOST_ID_NULL ((os_signpost_id_t)0)
|
|
114
|
+
#define OS_SIGNPOST_ID_INVALID ((os_signpost_id_t)~0)
|
|
115
|
+
#define OS_SIGNPOST_ID_EXCLUSIVE ((os_signpost_id_t)0xEEEEB0B5B2B2EEEE)
|
|
116
|
+
#endif
|
|
117
|
+
|
|
118
|
+
/*!
|
|
119
|
+
* @function os_signpost_id_make_with_pointer
|
|
120
|
+
*
|
|
121
|
+
* @abstract
|
|
122
|
+
* Make an os_signpost_id from a pointer value.
|
|
123
|
+
*
|
|
124
|
+
* @discussion
|
|
125
|
+
* Mangles the pointer to create a valid os_signpost_id, including removing
|
|
126
|
+
* address randomization. Checks that the signpost matching scope is not
|
|
127
|
+
* system-wide.
|
|
128
|
+
*
|
|
129
|
+
* @param log
|
|
130
|
+
* Log handle previously created with os_log_create.
|
|
131
|
+
*
|
|
132
|
+
* @param ptr
|
|
133
|
+
* Any pointer that disambiguates among concurrent intervals with the same
|
|
134
|
+
* os_log_t and interval names.
|
|
135
|
+
*
|
|
136
|
+
* @result
|
|
137
|
+
* Returns a valid os_signpost_id_t. Returns OS_SIGNPOST_ID_NULL if signposts
|
|
138
|
+
* are turned off. Returns OS_SIGNPOST_ID_INVALID if the log handle is
|
|
139
|
+
* system-scoped.
|
|
140
|
+
*/
|
|
141
|
+
API_AVAILABLE(macos(10.14), ios(12.0), tvos(12.0), watchos(5.0))
|
|
142
|
+
OS_EXPORT OS_NOTHROW
|
|
143
|
+
os_signpost_id_t
|
|
144
|
+
os_signpost_id_make_with_pointer(os_log_t log, const void *_Nullable ptr);
|
|
145
|
+
|
|
146
|
+
#if __OBJC__
|
|
147
|
+
/*!
|
|
148
|
+
* @function os_signpost_id_make_with_id
|
|
149
|
+
*
|
|
150
|
+
* @abstract
|
|
151
|
+
* Make an os_signpost_id from an Objective-C id, as in
|
|
152
|
+
* os_signpost_id_make_with_pointer.
|
|
153
|
+
*/
|
|
154
|
+
#define os_signpost_id_make_with_id(log, ptr) \
|
|
155
|
+
os_signpost_id_make_with_pointer(log, (__bridge const void *_Nullable)(ptr))
|
|
156
|
+
#endif /* __OBJC__ */
|
|
157
|
+
|
|
158
|
+
/*!
|
|
159
|
+
* @function os_signpost_id_generate
|
|
160
|
+
*
|
|
161
|
+
* @abstract
|
|
162
|
+
* Generates an ID guaranteed to be unique within the matching scope of the
|
|
163
|
+
* provided log handle.
|
|
164
|
+
*
|
|
165
|
+
* @discussion
|
|
166
|
+
* Each call to os_signpost_id_generate() with a given log handle and its
|
|
167
|
+
* matching scope will return a different os_signpost_id_t.
|
|
168
|
+
*
|
|
169
|
+
* @param log
|
|
170
|
+
* Log handle previously created with os_log_create.
|
|
171
|
+
*
|
|
172
|
+
* @result
|
|
173
|
+
* Returns a valid os_signpost_id_t. Returns OS_SIGNPOST_ID_NULL if signposts
|
|
174
|
+
* are disabled.
|
|
175
|
+
*/
|
|
176
|
+
API_AVAILABLE(macos(10.14), ios(12.0), tvos(12.0), watchos(5.0))
|
|
177
|
+
OS_EXPORT OS_NOTHROW OS_WARN_RESULT
|
|
178
|
+
os_signpost_id_t
|
|
179
|
+
os_signpost_id_generate(os_log_t log);
|
|
180
|
+
|
|
181
|
+
#pragma mark - Signpost Enablement
|
|
182
|
+
|
|
183
|
+
/*!
|
|
184
|
+
* @function os_signpost_enabled
|
|
185
|
+
*
|
|
186
|
+
* @abstract
|
|
187
|
+
* Returns true if signpost log messages are enabled for a particular log
|
|
188
|
+
* handle.
|
|
189
|
+
*
|
|
190
|
+
* @discussion
|
|
191
|
+
* Returns true if signpost log messages are enabled for a particular log.
|
|
192
|
+
* Use this to avoid doing expensive argument marshalling leading into a call
|
|
193
|
+
* to os_signpost_*
|
|
194
|
+
*
|
|
195
|
+
* @param log
|
|
196
|
+
* Log handle previously created with os_log_create.
|
|
197
|
+
*
|
|
198
|
+
* @result
|
|
199
|
+
* Returns ‘true’ if signpost log messages are enabled.
|
|
200
|
+
*/
|
|
201
|
+
API_AVAILABLE(macos(10.14), ios(12.0), tvos(12.0), watchos(5.0))
|
|
202
|
+
OS_EXPORT OS_NOTHROW OS_PURE OS_WARN_RESULT
|
|
203
|
+
bool
|
|
204
|
+
os_signpost_enabled(os_log_t log);
|
|
205
|
+
#pragma mark - Interval begin/end
|
|
206
|
+
|
|
207
|
+
/*!
|
|
208
|
+
* @function os_signpost_interval_begin
|
|
209
|
+
*
|
|
210
|
+
* @abstract
|
|
211
|
+
* Begins a signposted interval.
|
|
212
|
+
*
|
|
213
|
+
* @param log
|
|
214
|
+
* Log handle previously created with os_log_create.
|
|
215
|
+
*
|
|
216
|
+
* @param interval_id
|
|
217
|
+
* An ID for the event, see Signpost IDs above.
|
|
218
|
+
*
|
|
219
|
+
* @param name
|
|
220
|
+
* The name of this event. This must be a string literal.
|
|
221
|
+
*
|
|
222
|
+
* @param ... (format + arguments)
|
|
223
|
+
* Additional information to include with this signpost. This format string
|
|
224
|
+
* must be a string literal, as with the os_log family of functions.
|
|
225
|
+
*/
|
|
226
|
+
#define os_signpost_interval_begin(log, interval_id, name, ...) \
|
|
227
|
+
os_signpost_emit_with_type(log, OS_SIGNPOST_INTERVAL_BEGIN, \
|
|
228
|
+
interval_id, name, ##__VA_ARGS__)
|
|
229
|
+
|
|
230
|
+
/*!
|
|
231
|
+
* @function os_signpost_animation_interval_begin
|
|
232
|
+
*
|
|
233
|
+
* @abstract
|
|
234
|
+
* Begins a signposted interval that is tagged as an animation.
|
|
235
|
+
*
|
|
236
|
+
* @param log
|
|
237
|
+
* Log handle previously created with os_log_create.
|
|
238
|
+
*
|
|
239
|
+
* @param interval_id
|
|
240
|
+
* An ID for the event, see Signpost IDs above.
|
|
241
|
+
*
|
|
242
|
+
* @param name
|
|
243
|
+
* The name of this event. This must be a string literal.
|
|
244
|
+
*
|
|
245
|
+
* @param ... (format + arguments)
|
|
246
|
+
* Additional information to include with this signpost. This format string
|
|
247
|
+
* must be a string literal, as with the os_log family of functions.
|
|
248
|
+
*/
|
|
249
|
+
#define os_signpost_animation_interval_begin(log, interval_id, name, ...) \
|
|
250
|
+
_os_signpost_animation_interval_begin(log, interval_id, name, \
|
|
251
|
+
"" __VA_ARGS__)
|
|
252
|
+
|
|
253
|
+
/*!
|
|
254
|
+
* @function os_signpost_interval_end
|
|
255
|
+
*
|
|
256
|
+
* @abstract
|
|
257
|
+
* Ends a signposted interval.
|
|
258
|
+
*
|
|
259
|
+
* @param log
|
|
260
|
+
* The log handle which was provided to os_signpost_interval_begin,
|
|
261
|
+
*
|
|
262
|
+
* @param interval_id
|
|
263
|
+
* The ID for the event which was provided to os_signpost_interval_begin. See
|
|
264
|
+
* Signpost IDs above.
|
|
265
|
+
*
|
|
266
|
+
* @param name
|
|
267
|
+
* The name of the event provided to os_signost_interval_begin. This must be a
|
|
268
|
+
* string literal.
|
|
269
|
+
*
|
|
270
|
+
* @param ... (format + arguments)
|
|
271
|
+
* Additional information to include with this signpost. This format string
|
|
272
|
+
* must be a string literal, as with the os_log family of functions.
|
|
273
|
+
*/
|
|
274
|
+
#define os_signpost_interval_end(log, interval_id, name, ...) \
|
|
275
|
+
os_signpost_emit_with_type(log, OS_SIGNPOST_INTERVAL_END, \
|
|
276
|
+
interval_id, name, ##__VA_ARGS__)
|
|
277
|
+
|
|
278
|
+
#pragma mark - Signpost event marking
|
|
279
|
+
|
|
280
|
+
/*!
|
|
281
|
+
* @function os_signpost_event_emit
|
|
282
|
+
*
|
|
283
|
+
* @abstract
|
|
284
|
+
* os_signpost_event_emit marks a point of interest in time with no duration.
|
|
285
|
+
*
|
|
286
|
+
* @param log
|
|
287
|
+
* Log handle previously created with os_log_create.
|
|
288
|
+
*
|
|
289
|
+
* @param event_id
|
|
290
|
+
* An ID for the event, see Signpost IDs above. This ID can be used to convey
|
|
291
|
+
* additional information about the event that is being emitted without
|
|
292
|
+
* incurring extra performance overhead.
|
|
293
|
+
*
|
|
294
|
+
* @param name
|
|
295
|
+
* The name of this event. This must be a string literal.
|
|
296
|
+
*
|
|
297
|
+
* @param ... (format + arguments)
|
|
298
|
+
* Additional information to include with this signpost. This format string
|
|
299
|
+
* must be a string literal, as with the os_log family of functions.
|
|
300
|
+
*/
|
|
301
|
+
#define os_signpost_event_emit(log, event_id, name, ...) \
|
|
302
|
+
os_signpost_emit_with_type(log, OS_SIGNPOST_EVENT, \
|
|
303
|
+
event_id, name, ##__VA_ARGS__)
|
|
304
|
+
|
|
305
|
+
#pragma mark - Points of Interest
|
|
306
|
+
|
|
307
|
+
/*!
|
|
308
|
+
* @const OS_LOG_CATEGORY_POINTS_OF_INTEREST
|
|
309
|
+
*
|
|
310
|
+
* Provide this value as the category to os_log_create to indicate that
|
|
311
|
+
* signposts on the resulting log handle provide high-level events that can be
|
|
312
|
+
* used to orient a developer looking at performance data. These will be
|
|
313
|
+
* displayed by default by performance tools like Instruments.app.
|
|
314
|
+
*/
|
|
315
|
+
#ifndef __swift__
|
|
316
|
+
#define OS_LOG_CATEGORY_POINTS_OF_INTEREST "PointsOfInterest"
|
|
317
|
+
#endif
|
|
318
|
+
|
|
319
|
+
#pragma mark - Dynamic Tracing
|
|
320
|
+
|
|
321
|
+
/*!
|
|
322
|
+
* @const OS_LOG_CATEGORY_DYNAMIC_TRACING
|
|
323
|
+
*
|
|
324
|
+
* Provide this value as the category to os_log_create to indicate that
|
|
325
|
+
* signposts emitted to the resulting log handle should be disabled by
|
|
326
|
+
* default, reducing the runtime overhead. os_signpost_enabled calls on
|
|
327
|
+
* the resulting log handle will only return 'true' when a performance
|
|
328
|
+
* tool like Instruments.app is recording.
|
|
329
|
+
*/
|
|
330
|
+
#if OS_LOG_TARGET_HAS_10_15_FEATURES
|
|
331
|
+
#ifndef __swift__
|
|
332
|
+
#define OS_LOG_CATEGORY_DYNAMIC_TRACING "DynamicTracing"
|
|
333
|
+
#endif
|
|
334
|
+
#endif
|
|
335
|
+
|
|
336
|
+
/*!
|
|
337
|
+
* @const OS_LOG_CATEGORY_DYNAMIC_STACK_TRACING
|
|
338
|
+
*
|
|
339
|
+
* Provide this value as the category to os_log_create to indicate that
|
|
340
|
+
* signposts emitted to the resulting log handle should capture user
|
|
341
|
+
* backtraces. This behavior is more expensive, so os_signpost_enabled
|
|
342
|
+
* will only return 'true' when a performance tool like Instruments.app
|
|
343
|
+
* is recording.
|
|
344
|
+
*/
|
|
345
|
+
#if OS_LOG_TARGET_HAS_10_15_FEATURES
|
|
346
|
+
#ifndef __swift__
|
|
347
|
+
#define OS_LOG_CATEGORY_DYNAMIC_STACK_TRACING "DynamicStackTracing"
|
|
348
|
+
#endif
|
|
349
|
+
#endif
|
|
350
|
+
|
|
351
|
+
#pragma mark - Signpost Internals
|
|
352
|
+
|
|
353
|
+
/*!
|
|
354
|
+
* @typedef os_signpost_type_t
|
|
355
|
+
*
|
|
356
|
+
* @brief
|
|
357
|
+
* The type of a signpost tracepoint, do not use directly.
|
|
358
|
+
*/
|
|
359
|
+
OS_ENUM(os_signpost_type, uint8_t,
|
|
360
|
+
OS_SIGNPOST_EVENT = 0x00,
|
|
361
|
+
OS_SIGNPOST_INTERVAL_BEGIN = 0x01,
|
|
362
|
+
OS_SIGNPOST_INTERVAL_END = 0x02,
|
|
363
|
+
);
|
|
364
|
+
#ifndef __swift__
|
|
365
|
+
#define OS_SIGNPOST_TYPE_MASK 0x03
|
|
366
|
+
#endif
|
|
367
|
+
|
|
368
|
+
#define _OS_SIGNPOST_ANIMATION_INTERVAL_TAG "isAnimation=YES"
|
|
369
|
+
|
|
370
|
+
#define _os_signpost_animation_interval_begin(log, spid, name, fmt, ...) \
|
|
371
|
+
os_signpost_interval_begin(log, spid, name, \
|
|
372
|
+
fmt " " _OS_SIGNPOST_ANIMATION_INTERVAL_TAG, \
|
|
373
|
+
##__VA_ARGS__)
|
|
374
|
+
|
|
375
|
+
API_AVAILABLE(macos(10.14), ios(12.0), tvos(12.0), watchos(5.0))
|
|
376
|
+
OS_EXPORT OS_NOTHROW OS_NOT_TAIL_CALLED
|
|
377
|
+
void
|
|
378
|
+
_os_signpost_emit_with_name_impl(void *dso, os_log_t log,
|
|
379
|
+
os_signpost_type_t type, os_signpost_id_t spid, const char *name,
|
|
380
|
+
const char *format, uint8_t *buf, uint32_t size);
|
|
381
|
+
|
|
382
|
+
#define _os_signpost_emit_with_type(emitfn, log, type, spid, name, ...) \
|
|
383
|
+
__extension__({ \
|
|
384
|
+
os_log_t _log_tmp = (log); \
|
|
385
|
+
os_signpost_type_t _type_tmp = (type); \
|
|
386
|
+
os_signpost_id_t _spid_tmp = (spid); \
|
|
387
|
+
if (_spid_tmp != OS_SIGNPOST_ID_NULL && \
|
|
388
|
+
_spid_tmp != OS_SIGNPOST_ID_INVALID && \
|
|
389
|
+
os_signpost_enabled(_log_tmp)) { \
|
|
390
|
+
OS_LOG_CALL_WITH_FORMAT_NAME((emitfn), \
|
|
391
|
+
(&__dso_handle, _log_tmp, _type_tmp, _spid_tmp), \
|
|
392
|
+
name, "" __VA_ARGS__); \
|
|
393
|
+
} \
|
|
394
|
+
})
|
|
395
|
+
|
|
396
|
+
#if OS_LOG_TARGET_HAS_10_14_FEATURES
|
|
397
|
+
#define os_signpost_emit_with_type(log, type, spid, name, ...) \
|
|
398
|
+
_os_signpost_emit_with_type(_os_signpost_emit_with_name_impl, log, \
|
|
399
|
+
type, spid, name, ##__VA_ARGS__)
|
|
400
|
+
#else
|
|
401
|
+
#define os_signpost_emit_with_type(log, type, spid, name, ...) \
|
|
402
|
+
__extension__({ \
|
|
403
|
+
if (_os_signpost_emit_with_name_impl != NULL) { \
|
|
404
|
+
_os_signpost_emit_with_type(_os_signpost_emit_with_name_impl, log, \
|
|
405
|
+
type, spid, name, ##__VA_ARGS__); \
|
|
406
|
+
} \
|
|
407
|
+
})
|
|
408
|
+
#endif
|
|
409
|
+
|
|
410
|
+
OS_ASSUME_NONNULL_END
|
|
411
|
+
|
|
412
|
+
__END_DECLS
|
|
413
|
+
|
|
414
|
+
#endif // __OS_SIGNPOST_H__
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2000-2020, 2024 Apple Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
|
|
5
|
+
*
|
|
6
|
+
* This file contains Original Code and/or Modifications of Original Code
|
|
7
|
+
* as defined in and that are subject to the Apple Public Source License
|
|
8
|
+
* Version 2.0 (the 'License'). You may not use this file except in
|
|
9
|
+
* compliance with the License. The rights granted to you under the License
|
|
10
|
+
* may not be used to create, or enable the creation or redistribution of,
|
|
11
|
+
* unlawful or unlicensed copies of an Apple operating system, or to
|
|
12
|
+
* circumvent, violate, or enable the circumvention or violation of, any
|
|
13
|
+
* terms of an Apple operating system software license agreement.
|
|
14
|
+
*
|
|
15
|
+
* Please obtain a copy of the License at
|
|
16
|
+
* http://www.opensource.apple.com/apsl/ and read it before using this file.
|
|
17
|
+
*
|
|
18
|
+
* The Original Code and all software distributed under the License are
|
|
19
|
+
* distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
|
|
20
|
+
* EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
|
|
21
|
+
* INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
* FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
|
|
23
|
+
* Please see the License for the specific language governing rights and
|
|
24
|
+
* limitations under the License.
|
|
25
|
+
*
|
|
26
|
+
* @APPLE_OSREFERENCE_LICENSE_HEADER_END@
|
|
27
|
+
*/
|
|
28
|
+
/* Copyright (c) 1998, 1999 Apple Computer, Inc. All Rights Reserved */
|
|
29
|
+
/* Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved */
|
|
30
|
+
/*
|
|
31
|
+
* Copyright (c) 1982, 1986, 1990, 1993
|
|
32
|
+
* The Regents of the University of California. All rights reserved.
|
|
33
|
+
*
|
|
34
|
+
* Redistribution and use in source and binary forms, with or without
|
|
35
|
+
* modification, are permitted provided that the following conditions
|
|
36
|
+
* are met:
|
|
37
|
+
* 1. Redistributions of source code must retain the above copyright
|
|
38
|
+
* notice, this list of conditions and the following disclaimer.
|
|
39
|
+
* 2. Redistributions in binary form must reproduce the above copyright
|
|
40
|
+
* notice, this list of conditions and the following disclaimer in the
|
|
41
|
+
* documentation and/or other materials provided with the distribution.
|
|
42
|
+
* 3. All advertising materials mentioning features or use of this software
|
|
43
|
+
* must display the following acknowledgement:
|
|
44
|
+
* This product includes software developed by the University of
|
|
45
|
+
* California, Berkeley and its contributors.
|
|
46
|
+
* 4. Neither the name of the University nor the names of its contributors
|
|
47
|
+
* may be used to endorse or promote products derived from this software
|
|
48
|
+
* without specific prior written permission.
|
|
49
|
+
*
|
|
50
|
+
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
51
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
52
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
53
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
54
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
55
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
56
|
+
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
57
|
+
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
58
|
+
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
59
|
+
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
60
|
+
* SUCH DAMAGE.
|
|
61
|
+
*
|
|
62
|
+
* @(#)socketvar.h 8.3 (Berkeley) 2/19/95
|
|
63
|
+
* $FreeBSD: src/sys/sys/socketvar.h,v 1.46.2.6 2001/08/31 13:45:49 jlemon Exp $
|
|
64
|
+
*/
|
|
65
|
+
/*
|
|
66
|
+
* NOTICE: This file was modified by SPARTA, Inc. in 2005 to introduce
|
|
67
|
+
* support for mandatory and extensible security protections. This notice
|
|
68
|
+
* is included in support of clause 2.2 (b) of the Apple Public License,
|
|
69
|
+
* Version 2.0.
|
|
70
|
+
*/
|
|
71
|
+
|
|
72
|
+
#ifndef _SYS_SOCKETVAR_H_
|
|
73
|
+
#define _SYS_SOCKETVAR_H_
|
|
74
|
+
|
|
75
|
+
#include <sys/appleapiopts.h>
|
|
76
|
+
#include <sys/cdefs.h>
|
|
77
|
+
#include <sys/constrained_ctypes.h>
|
|
78
|
+
#include <sys/types.h> /* u_quad_t */
|
|
79
|
+
#include <TargetConditionals.h>
|
|
80
|
+
#include <uuid/uuid.h>
|
|
81
|
+
|
|
82
|
+
typedef u_quad_t so_gen_t;
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
#if defined(__LP64__)
|
|
88
|
+
#define _XSOCKET_PTR(x) u_int32_t
|
|
89
|
+
#else
|
|
90
|
+
#define _XSOCKET_PTR(x) x
|
|
91
|
+
#endif
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
#pragma pack(4)
|
|
95
|
+
|
|
96
|
+
struct xsockbuf {
|
|
97
|
+
u_int32_t sb_cc;
|
|
98
|
+
u_int32_t sb_hiwat;
|
|
99
|
+
u_int32_t sb_mbcnt;
|
|
100
|
+
u_int32_t sb_mbmax;
|
|
101
|
+
int32_t sb_lowat;
|
|
102
|
+
short sb_flags;
|
|
103
|
+
short sb_timeo;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
/*
|
|
107
|
+
* Externalized form of struct socket used by the sysctl(3) interface.
|
|
108
|
+
*/
|
|
109
|
+
struct xsocket {
|
|
110
|
+
u_int32_t xso_len; /* length of this structure */
|
|
111
|
+
_XSOCKET_PTR(struct socket *) xso_so; /* makes a convenient handle */
|
|
112
|
+
short so_type;
|
|
113
|
+
short so_options;
|
|
114
|
+
short so_linger;
|
|
115
|
+
short so_state;
|
|
116
|
+
_XSOCKET_PTR(caddr_t) so_pcb; /* another convenient handle */
|
|
117
|
+
int xso_protocol;
|
|
118
|
+
int xso_family;
|
|
119
|
+
short so_qlen;
|
|
120
|
+
short so_incqlen;
|
|
121
|
+
short so_qlimit;
|
|
122
|
+
short so_timeo;
|
|
123
|
+
u_short so_error;
|
|
124
|
+
pid_t so_pgid;
|
|
125
|
+
u_int32_t so_oobmark;
|
|
126
|
+
struct xsockbuf so_rcv;
|
|
127
|
+
struct xsockbuf so_snd;
|
|
128
|
+
uid_t so_uid; /* XXX */
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
#if XNU_TARGET_OS_OSX || KERNEL || !(TARGET_OS_IPHONE && !TARGET_OS_SIMULATOR)
|
|
132
|
+
struct xsocket64 {
|
|
133
|
+
u_int32_t xso_len; /* length of this structure */
|
|
134
|
+
u_int64_t xso_so; /* makes a convenient handle */
|
|
135
|
+
short so_type;
|
|
136
|
+
short so_options;
|
|
137
|
+
short so_linger;
|
|
138
|
+
short so_state;
|
|
139
|
+
u_int64_t so_pcb; /* another convenient handle */
|
|
140
|
+
int xso_protocol;
|
|
141
|
+
int xso_family;
|
|
142
|
+
short so_qlen;
|
|
143
|
+
short so_incqlen;
|
|
144
|
+
short so_qlimit;
|
|
145
|
+
short so_timeo;
|
|
146
|
+
u_short so_error;
|
|
147
|
+
pid_t so_pgid;
|
|
148
|
+
u_int32_t so_oobmark;
|
|
149
|
+
struct xsockbuf so_rcv;
|
|
150
|
+
struct xsockbuf so_snd;
|
|
151
|
+
uid_t so_uid; /* XXX */
|
|
152
|
+
};
|
|
153
|
+
#endif /* XNU_TARGET_OS_OSX || KERNEL || !(TARGET_OS_IPHONE && !TARGET_OS_SIMULATOR) */
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
#pragma pack()
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
// Tracker actions
|
|
160
|
+
enum so_tracker_action {
|
|
161
|
+
SO_TRACKER_ACTION_INVALID = 0,
|
|
162
|
+
SO_TRACKER_ACTION_ADD = 1,
|
|
163
|
+
SO_TRACKER_ACTION_DUMP_BY_APP = 2,
|
|
164
|
+
SO_TRACKER_ACTION_DUMP_ALL = 3,
|
|
165
|
+
SO_TRACKER_ACTION_DUMP_MAX,
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
// Tracker TLV attributes
|
|
169
|
+
enum so_tracker_attribute {
|
|
170
|
+
SO_TRACKER_ATTRIBUTE_INVALID = 0,
|
|
171
|
+
SO_TRACKER_ATTRIBUTE_ADDRESS_FAMILY = 1,
|
|
172
|
+
SO_TRACKER_ATTRIBUTE_ADDRESS = 2,
|
|
173
|
+
SO_TRACKER_ATTRIBUTE_APP_UUID = 3,
|
|
174
|
+
SO_TRACKER_ATTRIBUTE_DOMAIN = 4,
|
|
175
|
+
SO_TRACKER_ATTRIBUTE_DOMAIN_OWNER = 5,
|
|
176
|
+
SO_TRACKER_ATTRIBUTE_FLAGS = 6,
|
|
177
|
+
SO_TRACKER_ATTRIBUTE_DUMP_ENTRY = 7,
|
|
178
|
+
SO_TRACKER_ATTRIBUTE_MEMORY_USED = 8,
|
|
179
|
+
SO_TRACKER_ATTRIBUTE_MAX,
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
// Tracker flags
|
|
183
|
+
#define SO_TRACKER_ATTRIBUTE_FLAGS_APP_APPROVED 0x00000001
|
|
184
|
+
#define SO_TRACKER_ATTRIBUTE_FLAGS_TRACKER 0x00000002
|
|
185
|
+
#define SO_TRACKER_ATTRIBUTE_FLAGS_DOMAIN_SHORT 0x00000004
|
|
186
|
+
#define SO_TRACKER_ATTRIBUTE_FLAGS_EXTENDED_TIMEOUT 0x00000008
|
|
187
|
+
|
|
188
|
+
#define SO_TRACKER_TRANSPARENCY_VERSION 3
|
|
189
|
+
extern int tracker_action(int action, char *buffer, size_t buffer_size);
|
|
190
|
+
|
|
191
|
+
#endif /* !_SYS_SOCKETVAR_H_ */
|