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,395 @@
|
|
|
1
|
+
/* CoreAnimation - CAAnimation.h
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2006-2026, Apple Inc.
|
|
4
|
+
All rights reserved. */
|
|
5
|
+
|
|
6
|
+
#ifdef __OBJC__
|
|
7
|
+
|
|
8
|
+
#import <QuartzCore/CALayer.h>
|
|
9
|
+
#import <QuartzCore/CAFrameRateRange.h>
|
|
10
|
+
#import <Foundation/Foundation.h>
|
|
11
|
+
|
|
12
|
+
@class NSArray, NSString, CAMediaTimingFunction, CAValueFunction;
|
|
13
|
+
@protocol CAAnimationDelegate;
|
|
14
|
+
|
|
15
|
+
NS_HEADER_AUDIT_BEGIN(nullability, sendability)
|
|
16
|
+
|
|
17
|
+
typedef NSString * CAAnimationCalculationMode NS_TYPED_ENUM API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
18
|
+
typedef NSString * CAAnimationRotationMode NS_TYPED_ENUM API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
19
|
+
typedef NSString * CATransitionType NS_TYPED_ENUM API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
20
|
+
typedef NSString * CATransitionSubtype NS_TYPED_ENUM API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
21
|
+
|
|
22
|
+
/** The base animation class. **/
|
|
23
|
+
|
|
24
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos)
|
|
25
|
+
@interface CAAnimation : NSObject
|
|
26
|
+
<NSSecureCoding, NSCopying, CAMediaTiming, CAAction>
|
|
27
|
+
{
|
|
28
|
+
@private
|
|
29
|
+
void *_attr;
|
|
30
|
+
uint32_t _flags;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* Creates a new animation object. */
|
|
34
|
+
|
|
35
|
+
+ (instancetype)animation;
|
|
36
|
+
|
|
37
|
+
/* Animations implement the same property model as defined by CALayer.
|
|
38
|
+
* See CALayer.h for more details. */
|
|
39
|
+
|
|
40
|
+
+ (nullable id)defaultValueForKey:(NSString *)key;
|
|
41
|
+
- (BOOL)shouldArchiveValueForKey:(NSString *)key;
|
|
42
|
+
|
|
43
|
+
/* A timing function defining the pacing of the animation. Defaults to
|
|
44
|
+
* nil indicating linear pacing. */
|
|
45
|
+
|
|
46
|
+
@property(nullable, strong) CAMediaTimingFunction *timingFunction;
|
|
47
|
+
|
|
48
|
+
/* The delegate of the animation. This object is retained for the
|
|
49
|
+
* lifetime of the animation object. Defaults to nil. See below for the
|
|
50
|
+
* supported delegate methods. */
|
|
51
|
+
|
|
52
|
+
@property(nullable, strong) id <CAAnimationDelegate> delegate;
|
|
53
|
+
|
|
54
|
+
/* When true, the animation is removed from the render tree once its
|
|
55
|
+
* active duration has passed. Defaults to YES. */
|
|
56
|
+
|
|
57
|
+
@property(getter=isRemovedOnCompletion) BOOL removedOnCompletion;
|
|
58
|
+
|
|
59
|
+
/* Defines the range of desired frame rate in frames-per-second for this
|
|
60
|
+
animation. The actual frame rate is dynamically adjusted to better align
|
|
61
|
+
with other animation sources. */
|
|
62
|
+
|
|
63
|
+
@property CAFrameRateRange preferredFrameRateRange
|
|
64
|
+
API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0)) API_UNAVAILABLE(watchos);
|
|
65
|
+
|
|
66
|
+
@end
|
|
67
|
+
|
|
68
|
+
/* Delegate methods for CAAnimation. */
|
|
69
|
+
|
|
70
|
+
API_AVAILABLE(macos(10.12), ios(10.0), tvos(10.0)) API_UNAVAILABLE(watchos)
|
|
71
|
+
@protocol CAAnimationDelegate <NSObject>
|
|
72
|
+
@optional
|
|
73
|
+
|
|
74
|
+
/* Called when the animation begins its active duration. */
|
|
75
|
+
|
|
76
|
+
- (void)animationDidStart:(CAAnimation *)anim;
|
|
77
|
+
|
|
78
|
+
/* Called when the animation either completes its active duration or
|
|
79
|
+
* is removed from the object it is attached to (i.e. the layer). 'flag'
|
|
80
|
+
* is true if the animation reached the end of its active duration
|
|
81
|
+
* without being removed. */
|
|
82
|
+
|
|
83
|
+
- (void)animationDidStop:(CAAnimation *)anim finished:(BOOL)flag;
|
|
84
|
+
|
|
85
|
+
@end
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
/** Subclass for property-based animations. **/
|
|
89
|
+
|
|
90
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos)
|
|
91
|
+
@interface CAPropertyAnimation : CAAnimation
|
|
92
|
+
|
|
93
|
+
/* Creates a new animation object with its `keyPath' property set to
|
|
94
|
+
* 'path'. */
|
|
95
|
+
|
|
96
|
+
+ (instancetype)animationWithKeyPath:(nullable NSString *)path;
|
|
97
|
+
|
|
98
|
+
/* The key-path describing the property to be animated. */
|
|
99
|
+
|
|
100
|
+
@property(nullable, copy) NSString *keyPath;
|
|
101
|
+
|
|
102
|
+
/* When true the value specified by the animation will be "added" to
|
|
103
|
+
* the current presentation value of the property to produce the new
|
|
104
|
+
* presentation value. The addition function is type-dependent, e.g.
|
|
105
|
+
* for affine transforms the two matrices are concatenated. Defaults to
|
|
106
|
+
* NO. */
|
|
107
|
+
|
|
108
|
+
@property(getter=isAdditive) BOOL additive;
|
|
109
|
+
|
|
110
|
+
/* The `cumulative' property affects how repeating animations produce
|
|
111
|
+
* their result. If true then the current value of the animation is the
|
|
112
|
+
* value at the end of the previous repeat cycle, plus the value of the
|
|
113
|
+
* current repeat cycle. If false, the value is simply the value
|
|
114
|
+
* calculated for the current repeat cycle. Defaults to NO. */
|
|
115
|
+
|
|
116
|
+
@property(getter=isCumulative) BOOL cumulative;
|
|
117
|
+
|
|
118
|
+
/* If non-nil a function that is applied to interpolated values
|
|
119
|
+
* before they are set as the new presentation value of the animation's
|
|
120
|
+
* target property. Defaults to nil. */
|
|
121
|
+
|
|
122
|
+
@property(nullable, strong) CAValueFunction *valueFunction;
|
|
123
|
+
|
|
124
|
+
@end
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
/** Subclass for basic (single-keyframe) animations. **/
|
|
128
|
+
|
|
129
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos)
|
|
130
|
+
@interface CABasicAnimation : CAPropertyAnimation
|
|
131
|
+
|
|
132
|
+
/* The objects defining the property values being interpolated between.
|
|
133
|
+
* All are optional, and no more than two should be non-nil. The object
|
|
134
|
+
* type should match the type of the property being animated (using the
|
|
135
|
+
* standard rules described in CALayer.h). The supported modes of
|
|
136
|
+
* animation are:
|
|
137
|
+
*
|
|
138
|
+
* - both `fromValue' and `toValue' non-nil. Interpolates between
|
|
139
|
+
* `fromValue' and `toValue'.
|
|
140
|
+
*
|
|
141
|
+
* - `fromValue' and `byValue' non-nil. Interpolates between
|
|
142
|
+
* `fromValue' and `fromValue' plus `byValue'.
|
|
143
|
+
*
|
|
144
|
+
* - `byValue' and `toValue' non-nil. Interpolates between `toValue'
|
|
145
|
+
* minus `byValue' and `toValue'.
|
|
146
|
+
*
|
|
147
|
+
* - `fromValue' non-nil. Interpolates between `fromValue' and the
|
|
148
|
+
* current presentation value of the property.
|
|
149
|
+
*
|
|
150
|
+
* - `toValue' non-nil. Interpolates between the layer's current value
|
|
151
|
+
* of the property in the render tree and `toValue'.
|
|
152
|
+
*
|
|
153
|
+
* - `byValue' non-nil. Interpolates between the layer's current value
|
|
154
|
+
* of the property in the render tree and that plus `byValue'. */
|
|
155
|
+
|
|
156
|
+
@property(nullable, strong) id fromValue;
|
|
157
|
+
@property(nullable, strong) id toValue;
|
|
158
|
+
@property(nullable, strong) id byValue;
|
|
159
|
+
|
|
160
|
+
@end
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
/** General keyframe animation class. **/
|
|
164
|
+
|
|
165
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos)
|
|
166
|
+
@interface CAKeyframeAnimation : CAPropertyAnimation
|
|
167
|
+
|
|
168
|
+
/* An array of objects providing the value of the animation function for
|
|
169
|
+
* each keyframe. */
|
|
170
|
+
|
|
171
|
+
@property(nullable, copy) NSArray *values;
|
|
172
|
+
|
|
173
|
+
/* An optional path object defining the behavior of the animation
|
|
174
|
+
* function. When non-nil overrides the `values' property. Each point
|
|
175
|
+
* in the path except for `moveto' points defines a single keyframe for
|
|
176
|
+
* the purpose of timing and interpolation. Defaults to nil. For
|
|
177
|
+
* constant velocity animation along the path, `calculationMode' should
|
|
178
|
+
* be set to `paced'. Upon assignment the path is copied. */
|
|
179
|
+
|
|
180
|
+
@property(nullable) CGPathRef path;
|
|
181
|
+
|
|
182
|
+
/* An optional array of `NSNumber' objects defining the pacing of the
|
|
183
|
+
* animation. Each time corresponds to one value in the `values' array,
|
|
184
|
+
* and defines when the value should be used in the animation function.
|
|
185
|
+
* Each value in the array is a floating point number in the range
|
|
186
|
+
* [0,1]. */
|
|
187
|
+
|
|
188
|
+
@property(nullable, copy) NSArray<NSNumber *> *keyTimes;
|
|
189
|
+
|
|
190
|
+
/* An optional array of CAMediaTimingFunction objects. If the `values' array
|
|
191
|
+
* defines n keyframes, there should be n-1 objects in the
|
|
192
|
+
* `timingFunctions' array. Each function describes the pacing of one
|
|
193
|
+
* keyframe to keyframe segment. */
|
|
194
|
+
|
|
195
|
+
@property(nullable, copy) NSArray<CAMediaTimingFunction *> *timingFunctions;
|
|
196
|
+
|
|
197
|
+
/* The "calculation mode". Possible values are `discrete', `linear',
|
|
198
|
+
* `paced', `cubic' and `cubicPaced'. Defaults to `linear'. When set to
|
|
199
|
+
* `paced' or `cubicPaced' the `keyTimes' and `timingFunctions'
|
|
200
|
+
* properties of the animation are ignored and calculated implicitly. */
|
|
201
|
+
|
|
202
|
+
@property(copy) CAAnimationCalculationMode calculationMode;
|
|
203
|
+
|
|
204
|
+
/* For animations with the cubic calculation modes, these properties
|
|
205
|
+
* provide control over the interpolation scheme. Each keyframe may
|
|
206
|
+
* have a tension, continuity and bias value associated with it, each
|
|
207
|
+
* in the range [-1, 1] (this defines a Kochanek-Bartels spline, see
|
|
208
|
+
* http://en.wikipedia.org/wiki/Kochanek-Bartels_spline).
|
|
209
|
+
*
|
|
210
|
+
* The tension value controls the "tightness" of the curve (positive
|
|
211
|
+
* values are tighter, negative values are rounder). The continuity
|
|
212
|
+
* value controls how segments are joined (positive values give sharp
|
|
213
|
+
* corners, negative values give inverted corners). The bias value
|
|
214
|
+
* defines where the curve occurs (positive values move the curve before
|
|
215
|
+
* the control point, negative values move it after the control point).
|
|
216
|
+
*
|
|
217
|
+
* The first value in each array defines the behavior of the tangent to
|
|
218
|
+
* the first control point, the second value controls the second
|
|
219
|
+
* point's tangents, and so on. Any unspecified values default to zero
|
|
220
|
+
* (giving a Catmull-Rom spline if all are unspecified). */
|
|
221
|
+
|
|
222
|
+
@property(nullable, copy) NSArray<NSNumber *> *tensionValues;
|
|
223
|
+
@property(nullable, copy) NSArray<NSNumber *> *continuityValues;
|
|
224
|
+
@property(nullable, copy) NSArray<NSNumber *> *biasValues;
|
|
225
|
+
|
|
226
|
+
/* Defines whether or objects animating along paths rotate to match the
|
|
227
|
+
* path tangent. Possible values are `auto' and `autoReverse'. Defaults
|
|
228
|
+
* to nil. The effect of setting this property to a non-nil value when
|
|
229
|
+
* no path object is supplied is undefined. `autoReverse' rotates to
|
|
230
|
+
* match the tangent plus 180 degrees. */
|
|
231
|
+
|
|
232
|
+
@property(nullable, copy) CAAnimationRotationMode rotationMode;
|
|
233
|
+
|
|
234
|
+
@end
|
|
235
|
+
|
|
236
|
+
/* `calculationMode' strings. */
|
|
237
|
+
|
|
238
|
+
CA_EXTERN CAAnimationCalculationMode const kCAAnimationLinear
|
|
239
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
240
|
+
CA_EXTERN CAAnimationCalculationMode const kCAAnimationDiscrete
|
|
241
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
242
|
+
CA_EXTERN CAAnimationCalculationMode const kCAAnimationPaced
|
|
243
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
244
|
+
CA_EXTERN CAAnimationCalculationMode const kCAAnimationCubic
|
|
245
|
+
API_AVAILABLE(macos(10.7), ios(4.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
246
|
+
CA_EXTERN CAAnimationCalculationMode const kCAAnimationCubicPaced
|
|
247
|
+
API_AVAILABLE(macos(10.7), ios(4.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
248
|
+
|
|
249
|
+
/* `rotationMode' strings. */
|
|
250
|
+
|
|
251
|
+
CA_EXTERN CAAnimationRotationMode const kCAAnimationRotateAuto
|
|
252
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
253
|
+
CA_EXTERN CAAnimationRotationMode const kCAAnimationRotateAutoReverse
|
|
254
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
255
|
+
|
|
256
|
+
/** Subclass for mass-spring animations. */
|
|
257
|
+
|
|
258
|
+
API_AVAILABLE(macos(10.11), ios(9.0), tvos(9.0)) API_UNAVAILABLE(watchos)
|
|
259
|
+
@interface CASpringAnimation : CABasicAnimation
|
|
260
|
+
|
|
261
|
+
/* The mass of the object attached to the end of the spring. Must be greater
|
|
262
|
+
than 0. Defaults to one. */
|
|
263
|
+
|
|
264
|
+
@property CGFloat mass;
|
|
265
|
+
|
|
266
|
+
/* The spring stiffness coefficient. Must be greater than 0.
|
|
267
|
+
* Defaults to 100. */
|
|
268
|
+
|
|
269
|
+
@property CGFloat stiffness;
|
|
270
|
+
|
|
271
|
+
/* The damping coefficient. Must be greater than or equal to 0.
|
|
272
|
+
* Defaults to 10. */
|
|
273
|
+
|
|
274
|
+
@property CGFloat damping;
|
|
275
|
+
|
|
276
|
+
/* The initial velocity of the object attached to the spring. Defaults
|
|
277
|
+
* to zero, which represents an unmoving object. Negative values
|
|
278
|
+
* represent the object moving away from the spring attachment point,
|
|
279
|
+
* positive values represent the object moving towards the spring
|
|
280
|
+
* attachment point. */
|
|
281
|
+
|
|
282
|
+
@property CGFloat initialVelocity;
|
|
283
|
+
|
|
284
|
+
/* Whether true overdamping is allowed (otherwise it is treated as critically
|
|
285
|
+
* damped). Defaults to false. */
|
|
286
|
+
|
|
287
|
+
@property BOOL allowsOverdamping
|
|
288
|
+
API_AVAILABLE(macos(14.0), ios(17.0), tvos(17.0)) API_UNAVAILABLE(watchos);
|
|
289
|
+
|
|
290
|
+
/* Returns the estimated duration required for the spring system to be
|
|
291
|
+
* considered at rest. The duration is evaluated for the current animation
|
|
292
|
+
* parameters. */
|
|
293
|
+
|
|
294
|
+
@property(readonly) CFTimeInterval settlingDuration;
|
|
295
|
+
|
|
296
|
+
/* Creates a spring animation with coefficients computed from the specified
|
|
297
|
+
* perceptual duration and bounce. A spring animation created with this
|
|
298
|
+
* initializer will have allowsOverdamping set to true (so will use overdamping
|
|
299
|
+
* when a negative bounce is specified). */
|
|
300
|
+
|
|
301
|
+
- (instancetype)initWithPerceptualDuration:(CFTimeInterval)perceptualDuration
|
|
302
|
+
bounce:(CGFloat)bounce
|
|
303
|
+
API_AVAILABLE(macos(14.0), ios(17.0), tvos(17.0)) API_UNAVAILABLE(watchos);
|
|
304
|
+
|
|
305
|
+
/* The perceptual duration, which defines the pace of the spring. */
|
|
306
|
+
|
|
307
|
+
@property(readonly) CFTimeInterval perceptualDuration
|
|
308
|
+
API_AVAILABLE(macos(14.0), ios(17.0), tvos(17.0)) API_UNAVAILABLE(watchos);
|
|
309
|
+
|
|
310
|
+
/* How bouncy the spring is. A value of 0 indicates no bounces (a critically
|
|
311
|
+
* damped spring), positive values indicate increasing amounts of bounce (with
|
|
312
|
+
* typical values being between 0.0 and 1.0), and negative values indicate
|
|
313
|
+
* overdamped springs (with typical values being between 0.0 and -1.0). */
|
|
314
|
+
|
|
315
|
+
@property(readonly) CGFloat bounce
|
|
316
|
+
API_AVAILABLE(macos(14.0), ios(17.0), tvos(17.0)) API_UNAVAILABLE(watchos);
|
|
317
|
+
|
|
318
|
+
@end
|
|
319
|
+
|
|
320
|
+
/** Transition animation subclass. **/
|
|
321
|
+
|
|
322
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos)
|
|
323
|
+
@interface CATransition : CAAnimation
|
|
324
|
+
|
|
325
|
+
/* The name of the transition. Current legal transition types include
|
|
326
|
+
* `fade', `moveIn', `push' and `reveal'. Defaults to `fade'. */
|
|
327
|
+
|
|
328
|
+
@property(copy) CATransitionType type;
|
|
329
|
+
|
|
330
|
+
/* An optional subtype for the transition. E.g. used to specify the
|
|
331
|
+
* transition direction for motion-based transitions, in which case
|
|
332
|
+
* the legal values are `fromLeft', `fromRight', `fromTop' and
|
|
333
|
+
* `fromBottom'. */
|
|
334
|
+
|
|
335
|
+
@property(nullable, copy) CATransitionSubtype subtype;
|
|
336
|
+
|
|
337
|
+
/* The amount of progress through to the transition at which to begin
|
|
338
|
+
* and end execution. Legal values are numbers in the range [0,1].
|
|
339
|
+
* `endProgress' must be greater than or equal to `startProgress'.
|
|
340
|
+
* Default values are 0 and 1 respectively. */
|
|
341
|
+
|
|
342
|
+
@property float startProgress;
|
|
343
|
+
@property float endProgress;
|
|
344
|
+
|
|
345
|
+
/* An optional filter object implementing the transition. When set the
|
|
346
|
+
* `type' and `subtype' properties are ignored. The filter must
|
|
347
|
+
* implement `inputImage', `inputTargetImage' and `inputTime' input
|
|
348
|
+
* keys, and the `outputImage' output key. Optionally it may support
|
|
349
|
+
* the `inputExtent' key, which will be set to a rectangle describing
|
|
350
|
+
* the region in which the transition should run. Defaults to nil. */
|
|
351
|
+
|
|
352
|
+
@property(nullable, strong) id filter
|
|
353
|
+
API_AVAILABLE(macCatalyst(13.1)) API_UNAVAILABLE(ios, tvos, watchos, visionos);
|
|
354
|
+
|
|
355
|
+
@end
|
|
356
|
+
|
|
357
|
+
/* Common transition types. */
|
|
358
|
+
|
|
359
|
+
CA_EXTERN CATransitionType const kCATransitionFade
|
|
360
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
361
|
+
CA_EXTERN CATransitionType const kCATransitionMoveIn
|
|
362
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
363
|
+
CA_EXTERN CATransitionType const kCATransitionPush
|
|
364
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
365
|
+
CA_EXTERN CATransitionType const kCATransitionReveal
|
|
366
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
367
|
+
|
|
368
|
+
/* Common transition subtypes. */
|
|
369
|
+
|
|
370
|
+
CA_EXTERN CATransitionSubtype const kCATransitionFromRight
|
|
371
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
372
|
+
CA_EXTERN CATransitionSubtype const kCATransitionFromLeft
|
|
373
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
374
|
+
CA_EXTERN CATransitionSubtype const kCATransitionFromTop
|
|
375
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
376
|
+
CA_EXTERN CATransitionSubtype const kCATransitionFromBottom
|
|
377
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
/** Animation subclass for grouped animations. **/
|
|
381
|
+
|
|
382
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos)
|
|
383
|
+
@interface CAAnimationGroup : CAAnimation
|
|
384
|
+
|
|
385
|
+
/* An array of CAAnimation objects. Each member of the array will run
|
|
386
|
+
* concurrently in the time space of the parent animation using the
|
|
387
|
+
* normal rules. */
|
|
388
|
+
|
|
389
|
+
@property(nullable, copy) NSArray<CAAnimation *> *animations;
|
|
390
|
+
|
|
391
|
+
@end
|
|
392
|
+
|
|
393
|
+
NS_HEADER_AUDIT_END(nullability, sendability)
|
|
394
|
+
|
|
395
|
+
#endif
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
/* CoreAnimation - CABase.h
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2006-2026, Apple Inc.
|
|
4
|
+
All rights reserved. */
|
|
5
|
+
|
|
6
|
+
#ifndef CABASE_H
|
|
7
|
+
#define CABASE_H
|
|
8
|
+
|
|
9
|
+
/* Adapted from <CoreGraphics/CGBase.h> */
|
|
10
|
+
|
|
11
|
+
#include <stdbool.h>
|
|
12
|
+
#include <stddef.h>
|
|
13
|
+
#include <stdint.h>
|
|
14
|
+
#include <float.h>
|
|
15
|
+
|
|
16
|
+
#include <CoreFoundation/CoreFoundation.h>
|
|
17
|
+
|
|
18
|
+
#if TARGET_OS_MAC
|
|
19
|
+
#include <CoreGraphics/CoreGraphics.h>
|
|
20
|
+
#endif
|
|
21
|
+
|
|
22
|
+
#include <os/availability.h>
|
|
23
|
+
#include <TargetConditionals.h>
|
|
24
|
+
|
|
25
|
+
#ifdef __cplusplus
|
|
26
|
+
# define CA_EXTERN_C_BEGIN extern "C" {
|
|
27
|
+
# define CA_EXTERN_C_END }
|
|
28
|
+
#else
|
|
29
|
+
# define CA_EXTERN_C_BEGIN
|
|
30
|
+
# define CA_EXTERN_C_END
|
|
31
|
+
#endif
|
|
32
|
+
|
|
33
|
+
#ifdef __GNUC__
|
|
34
|
+
# define CA_GNUC(major, minor) \
|
|
35
|
+
(__GNUC__ > (major) || (__GNUC__ == (major) && __GNUC_MINOR__ >= (minor)))
|
|
36
|
+
#else
|
|
37
|
+
# define CA_GNUC(major, minor) 0
|
|
38
|
+
#endif
|
|
39
|
+
|
|
40
|
+
#ifndef CA_EXTERN
|
|
41
|
+
# define CA_EXTERN extern __attribute__((visibility("default")))
|
|
42
|
+
#endif
|
|
43
|
+
|
|
44
|
+
#ifndef CA_INLINE
|
|
45
|
+
# if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
|
|
46
|
+
# define CA_INLINE static inline
|
|
47
|
+
# elif defined (__cplusplus)
|
|
48
|
+
# define CA_INLINE static inline
|
|
49
|
+
# elif CA_GNUC (3, 0)
|
|
50
|
+
# define CA_INLINE static __inline__ __attribute__ ((always_inline))
|
|
51
|
+
# else
|
|
52
|
+
# define CA_INLINE static
|
|
53
|
+
# endif
|
|
54
|
+
#endif
|
|
55
|
+
|
|
56
|
+
#ifndef CA_PURE
|
|
57
|
+
# if CA_GNUC (3, 0)
|
|
58
|
+
# define CA_PURE __attribute__ ((pure))
|
|
59
|
+
# else
|
|
60
|
+
# define CA_PURE /* no pure */
|
|
61
|
+
# endif
|
|
62
|
+
#endif
|
|
63
|
+
|
|
64
|
+
#ifndef CA_CONST
|
|
65
|
+
# if CA_GNUC (3, 0)
|
|
66
|
+
# define CA_CONST __attribute__ ((const))
|
|
67
|
+
# else
|
|
68
|
+
# define CA_CONST /* no const */
|
|
69
|
+
# endif
|
|
70
|
+
#endif
|
|
71
|
+
|
|
72
|
+
#ifndef CA_NORETURN
|
|
73
|
+
# if CA_GNUC (3, 0)
|
|
74
|
+
# define CA_NORETURN __attribute__ ((noreturn))
|
|
75
|
+
# else
|
|
76
|
+
# define CA_NORETURN /* no noreturn */
|
|
77
|
+
# endif
|
|
78
|
+
#endif
|
|
79
|
+
|
|
80
|
+
#ifndef CA_MALLOC
|
|
81
|
+
# if CA_GNUC (3, 0)
|
|
82
|
+
# define CA_MALLOC __attribute__ ((malloc))
|
|
83
|
+
# else
|
|
84
|
+
# define CA_MALLOC /* no malloc */
|
|
85
|
+
# endif
|
|
86
|
+
#endif
|
|
87
|
+
|
|
88
|
+
#ifndef CA_WARN_UNUSED
|
|
89
|
+
# if CA_GNUC (3, 4)
|
|
90
|
+
# define CA_WARN_UNUSED __attribute__ ((warn_unused_result))
|
|
91
|
+
# else
|
|
92
|
+
# define CA_WARN_UNUSED /* no warn_unused */
|
|
93
|
+
# endif
|
|
94
|
+
#endif
|
|
95
|
+
|
|
96
|
+
#ifndef CA_NOINLINE
|
|
97
|
+
# if CA_GNUC (3, 0)
|
|
98
|
+
# define CA_NOINLINE __attribute__ ((noinline))
|
|
99
|
+
# else
|
|
100
|
+
# define CA_NOINLINE /* no noinline */
|
|
101
|
+
# endif
|
|
102
|
+
#endif
|
|
103
|
+
|
|
104
|
+
#ifndef CA_WARN_DEPRECATED
|
|
105
|
+
# define CA_WARN_DEPRECATED 1
|
|
106
|
+
#endif
|
|
107
|
+
|
|
108
|
+
#ifndef CA_DEPRECATED
|
|
109
|
+
# if CA_GNUC (3, 0) && CA_WARN_DEPRECATED
|
|
110
|
+
# define CA_DEPRECATED __attribute__ ((deprecated))
|
|
111
|
+
# else
|
|
112
|
+
# define CA_DEPRECATED
|
|
113
|
+
# endif
|
|
114
|
+
#endif
|
|
115
|
+
|
|
116
|
+
#if defined(__has_attribute) && __has_attribute(objc_boxable)
|
|
117
|
+
# define CA_BOXABLE __attribute__((objc_boxable))
|
|
118
|
+
#else
|
|
119
|
+
# define CA_BOXABLE
|
|
120
|
+
#endif
|
|
121
|
+
|
|
122
|
+
CA_EXTERN_C_BEGIN
|
|
123
|
+
|
|
124
|
+
/* Returns the current CoreAnimation absolute time. This is the result of
|
|
125
|
+
* calling mach_absolute_time () and converting the units to seconds. */
|
|
126
|
+
|
|
127
|
+
CA_EXTERN CFTimeInterval CACurrentMediaTime (void)
|
|
128
|
+
API_AVAILABLE(macos(10.5), ios(2.0)) API_UNAVAILABLE(watchos);
|
|
129
|
+
|
|
130
|
+
CA_EXTERN_C_END
|
|
131
|
+
|
|
132
|
+
#endif /* CABASE_H */
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/* CoreAnimation - CADisplayLink.h
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2009-2026, Apple Inc.
|
|
4
|
+
All rights reserved. */
|
|
5
|
+
|
|
6
|
+
#ifdef __OBJC__
|
|
7
|
+
|
|
8
|
+
#import <QuartzCore/CABase.h>
|
|
9
|
+
#import <QuartzCore/CAFrameRateRange.h>
|
|
10
|
+
#import <Foundation/Foundation.h>
|
|
11
|
+
|
|
12
|
+
@class NSString, NSRunLoop;
|
|
13
|
+
|
|
14
|
+
NS_HEADER_AUDIT_BEGIN(nullability, sendability)
|
|
15
|
+
|
|
16
|
+
/** Class representing a timer bound to the display vsync. **/
|
|
17
|
+
API_AVAILABLE(ios(3.1), tvos(9.0)) API_UNAVAILABLE(watchos)
|
|
18
|
+
|
|
19
|
+
API_AVAILABLE(macos(14.0))
|
|
20
|
+
|
|
21
|
+
@interface CADisplayLink : NSObject
|
|
22
|
+
{
|
|
23
|
+
@private
|
|
24
|
+
void *_impl;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* Create a new display link object for the main display. It will
|
|
28
|
+
* invoke the method called 'sel' on 'target', the method has the
|
|
29
|
+
* signature '(void)selector:(CADisplayLink *)sender'.
|
|
30
|
+
* For macOS, see NSView/NSWindow/NSScreen.displayLink(withTarget:selector:).
|
|
31
|
+
* For iOS, see UIScene.displayLink(target:selector:) */
|
|
32
|
+
|
|
33
|
+
+ (CADisplayLink *)displayLinkWithTarget:(id)target selector:(SEL)sel
|
|
34
|
+
API_UNAVAILABLE(macos);
|
|
35
|
+
|
|
36
|
+
/* Adds the receiver to the given run-loop and mode. Unless paused, it
|
|
37
|
+
* will fire every vsync until removed. Each object may only be added
|
|
38
|
+
* to a single run-loop, but it may be added in multiple modes at once.
|
|
39
|
+
* While added to a run-loop it will implicitly be retained. */
|
|
40
|
+
|
|
41
|
+
- (void)addToRunLoop:(NSRunLoop *)runloop forMode:(NSRunLoopMode)mode;
|
|
42
|
+
|
|
43
|
+
/* Removes the receiver from the given mode of the runloop. This will
|
|
44
|
+
* implicitly release it when removed from the last mode it has been
|
|
45
|
+
* registered for. */
|
|
46
|
+
|
|
47
|
+
- (void)removeFromRunLoop:(NSRunLoop *)runloop forMode:(NSRunLoopMode)mode;
|
|
48
|
+
|
|
49
|
+
/* Removes the object from all runloop modes (releasing the receiver if
|
|
50
|
+
* it has been implicitly retained) and releases the 'target' object. */
|
|
51
|
+
|
|
52
|
+
- (void)invalidate;
|
|
53
|
+
|
|
54
|
+
/* The current time, and duration of the display frame associated with
|
|
55
|
+
* the most recent target invocation. Time is represented using the
|
|
56
|
+
* normal Core Animation conventions, i.e. Mach host time converted to
|
|
57
|
+
* seconds. */
|
|
58
|
+
|
|
59
|
+
@property(readonly, nonatomic) CFTimeInterval timestamp;
|
|
60
|
+
@property(readonly, nonatomic) CFTimeInterval duration;
|
|
61
|
+
|
|
62
|
+
/* The next timestamp that the client should target their render for. */
|
|
63
|
+
|
|
64
|
+
@property(readonly, nonatomic) CFTimeInterval targetTimestamp
|
|
65
|
+
API_AVAILABLE(ios(10.0), tvos(10.0)) API_UNAVAILABLE(watchos);
|
|
66
|
+
|
|
67
|
+
/* When true the object is prevented from firing. Initial state is
|
|
68
|
+
* false. */
|
|
69
|
+
|
|
70
|
+
@property(getter=isPaused, nonatomic) BOOL paused;
|
|
71
|
+
|
|
72
|
+
/* Defines how many display frames must pass between each time the
|
|
73
|
+
* display link fires. Default value is one, which means the display
|
|
74
|
+
* link will fire for every display frame. Setting the interval to two
|
|
75
|
+
* will cause the display link to fire every other display frame, and
|
|
76
|
+
* so on. The behavior when using values less than one is undefined.
|
|
77
|
+
* DEPRECATED - use preferredFramesPerSecond. */
|
|
78
|
+
|
|
79
|
+
@property(nonatomic) NSInteger frameInterval
|
|
80
|
+
API_DEPRECATED("preferredFramesPerSecond", ios(3.1, 10.0), tvos(9.0, 10.0))
|
|
81
|
+
API_UNAVAILABLE(macos, watchos);
|
|
82
|
+
|
|
83
|
+
/* Defines the desired callback rate in frames-per-second for this display
|
|
84
|
+
* link. If set to zero, the default value, the display link will fire at the
|
|
85
|
+
* native cadence of the display hardware. The display link will make a
|
|
86
|
+
* best-effort attempt at issuing callbacks at the requested rate. */
|
|
87
|
+
|
|
88
|
+
@property(nonatomic) NSInteger preferredFramesPerSecond
|
|
89
|
+
API_DEPRECATED_WITH_REPLACEMENT ("preferredFrameRateRange",
|
|
90
|
+
ios(10.0, API_TO_BE_DEPRECATED),
|
|
91
|
+
tvos(10.0, API_TO_BE_DEPRECATED))
|
|
92
|
+
API_UNAVAILABLE(macos, watchos);
|
|
93
|
+
|
|
94
|
+
/* Defines the range of desired callback rate in frames-per-second for this
|
|
95
|
+
display link. If the range contains the same minimum and maximum frame rate,
|
|
96
|
+
this property is identical as preferredFramesPerSecond. Otherwise, the actual
|
|
97
|
+
callback rate will be dynamically adjusted to better align with other
|
|
98
|
+
animation sources. */
|
|
99
|
+
|
|
100
|
+
@property(nonatomic) CAFrameRateRange preferredFrameRateRange
|
|
101
|
+
API_AVAILABLE(ios(15.0), tvos(15.0)) API_UNAVAILABLE(watchos);
|
|
102
|
+
|
|
103
|
+
@end
|
|
104
|
+
|
|
105
|
+
NS_HEADER_AUDIT_END(nullability, sendability)
|
|
106
|
+
|
|
107
|
+
#endif
|