peachsim 0.1.1738 → 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.
Files changed (327) hide show
  1. package/README.md +4 -0
  2. package/cli/app-catalog.ts +47 -23
  3. package/cli/app-fonts.ts +19 -1
  4. package/cli/command-registry.ts +3 -0
  5. package/cli/commands/control.ts +67 -16
  6. package/cli/commands/device.ts +3 -1
  7. package/cli/commands/doctor.ts +1 -4
  8. package/cli/commands/inspect/settling.ts +6 -1
  9. package/cli/commands/inspect/wait-ready.ts +22 -2
  10. package/cli/commands/package.ts +22 -20
  11. package/cli/commands/push.ts +56 -0
  12. package/cli/commands/serve.ts +9 -0
  13. package/cli/commands/shell-url.ts +37 -9
  14. package/cli/commands/swift.ts +1 -1
  15. package/cli/current-sim.ts +27 -0
  16. package/cli/drivers/linux-browser-libs.lock.json +323 -1
  17. package/cli/drivers/linux-browser-libs.ts +8 -6
  18. package/cli/drivers/playwright.ts +5 -1
  19. package/cli/internal-child.ts +11 -1
  20. package/cli/main.ts +6 -0
  21. package/cli/native-input.ts +1 -7
  22. package/cli/outbound-endpoints.ts +9 -1
  23. package/cli/packaged-app-launcher.ts +3 -1
  24. package/cli/scene-video.ts +4 -0
  25. package/cli/ws-bridge.ts +3 -1
  26. package/detox/index.ts +9 -4
  27. package/dist-lib/agent-daemon-client.cjs +1 -1
  28. package/dist-lib/agent-events.cjs +1 -1
  29. package/dist-lib/attached-projects.cjs +1 -1
  30. package/dist-lib/auth/shared-session.cjs +1 -1
  31. package/dist-lib/backend-origin.cjs +1 -1
  32. package/dist-lib/beta.cjs +1 -1
  33. package/dist-lib/beta.mjs +1 -1
  34. package/dist-lib/bridge-constants.cjs +1 -1
  35. package/dist-lib/bridge-contract-input.cjs +1 -1
  36. package/dist-lib/bridge-contract-input.mjs +1 -1
  37. package/dist-lib/bridge-contract.cjs +1 -1
  38. package/dist-lib/bridge-contract.mjs +1 -1
  39. package/dist-lib/bundle-channel.cjs +7372 -3675
  40. package/dist-lib/capture-contract.cjs +1 -1
  41. package/dist-lib/capture-contract.mjs +1 -1
  42. package/dist-lib/cloud-contract.cjs +1 -1
  43. package/dist-lib/cloud-contract.mjs +1 -1
  44. package/dist-lib/cloud-test-args.cjs +1 -1
  45. package/dist-lib/cloud-test-args.mjs +1 -1
  46. package/dist-lib/cloud.cjs +1 -1
  47. package/dist-lib/cloud.mjs +1 -1
  48. package/dist-lib/config.cjs +1 -1
  49. package/dist-lib/config.mjs +1 -1
  50. package/dist-lib/detox/index.cjs +22 -8
  51. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  52. package/dist-lib/expo-swift-bundle.cjs +6340 -3064
  53. package/dist-lib/expo-swift-metadata.cjs +14 -2
  54. package/dist-lib/expo-swift-metadata.mjs +14 -2
  55. package/dist-lib/home-paths.cjs +1 -1
  56. package/dist-lib/host/bridge-host.cjs +6524 -2720
  57. package/dist-lib/host/fetch-proxy-handler.cjs +8 -7
  58. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  59. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  60. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  61. package/dist-lib/host/websocket-proxy.cjs +6 -3
  62. package/dist-lib/index.cjs +97 -31
  63. package/dist-lib/jump-to-source-babel.cjs +1 -1
  64. package/dist-lib/jump-to-source-native.cjs +1 -1
  65. package/dist-lib/kotlin-host.cjs +1 -1
  66. package/dist-lib/menu.cjs +1 -1
  67. package/dist-lib/menu.mjs +1 -1
  68. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  69. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  70. package/dist-lib/metro-production-bundle.cjs +1 -1
  71. package/dist-lib/metro-production-bundle.mjs +1 -1
  72. package/dist-lib/metro.cjs +71 -29
  73. package/dist-lib/native-app-identity-project.cjs +53 -22
  74. package/dist-lib/native-app-identity-project.mjs +53 -22
  75. package/dist-lib/native-app-identity.cjs +10 -3
  76. package/dist-lib/native-app-identity.mjs +10 -3
  77. package/dist-lib/native-firebase-metadata.cjs +1 -1
  78. package/dist-lib/native-firebase-metadata.mjs +1 -1
  79. package/dist-lib/plist.cjs +1 -1
  80. package/dist-lib/plist.mjs +1 -1
  81. package/dist-lib/profiles.cjs +1 -1
  82. package/dist-lib/public-brand.cjs +1 -1
  83. package/dist-lib/public-origins-lib-esm.json +25 -23
  84. package/dist-lib/public-origins-lib.json +111 -79
  85. package/dist-lib/react-native-host-modules.cjs +1 -1
  86. package/dist-lib/react-native-host-modules.mjs +1 -1
  87. package/dist-lib/reap-browser.cjs +1 -1
  88. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  89. package/dist-lib/sdk.cjs +4 -1
  90. package/dist-lib/sdk.mjs +4 -1
  91. package/dist-lib/skills.cjs +40549 -37613
  92. package/dist-lib/swift-compile.cjs +2054 -388
  93. package/dist-lib/swift-compile.mjs +1976 -312
  94. package/dist-lib/swift-package.cjs +1 -1
  95. package/dist-lib/swift-package.mjs +1 -1
  96. package/dist-lib/swift-submit.cjs +2 -2
  97. package/dist-lib/swift-submit.mjs +2 -2
  98. package/dist-lib/swift-toolchain.cjs +68 -8
  99. package/dist-lib/swift.cjs +1 -1
  100. package/dist-lib/vite-swift.cjs +5867 -2646
  101. package/dist-lib/vite.cjs +18 -8
  102. package/dist-lib/worklet-executable.cjs +1 -1
  103. package/dist-lib/worklet-executable.mjs +1 -1
  104. package/dist-types/packages/peach-compat/src/stubs/screen-transition-math.d.ts +1 -0
  105. package/dist-types/packages/peach-engine/src/cli-companion.d.ts +1 -0
  106. package/dist-types/packages/peach-engine/src/engine/canvaskit-renderer.d.ts +2 -0
  107. package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +0 -3
  108. package/dist-types/packages/peach-engine/src/engine/node.d.ts +6 -0
  109. package/dist-types/packages/peach-engine/src/engine/paint-boundary.d.ts +1 -0
  110. package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +25 -3
  111. package/dist-types/packages/peach-engine/src/engine/scroll-platform.d.ts +1 -15
  112. package/dist-types/packages/peach-engine/src/engine/scroll.d.ts +1 -3
  113. package/dist-types/packages/peach-engine/src/engine/text-first-baseline.d.ts +1 -0
  114. package/dist-types/packages/peach-engine/src/engine/types.d.ts +23 -0
  115. package/dist-types/packages/peach-engine/src/ios/chrome-metrics.d.ts +6 -0
  116. package/dist-types/packages/peach-engine/src/metro-identity-contract.d.ts +33 -0
  117. package/dist-types/packages/peach-engine/src/preview/bundle-layout.d.ts +1 -1
  118. package/dist-types/packages/peach-engine/src/remote-stream/scene-recording.d.ts +2 -0
  119. package/dist-types/packages/peach-engine/src/render-worker/compositor-gpu.d.ts +1 -1
  120. package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +2 -0
  121. package/dist-types/packages/peach-engine/src/render-worker/metro-bundle-metadata.d.ts +28 -0
  122. package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +21 -1
  123. package/dist-types/packages/peach-engine/src/render-worker/prepared-boot-bundle.d.ts +7 -0
  124. package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +8 -0
  125. package/dist-types/packages/peach-engine/src/render-worker/scroll-mirror.d.ts +1 -0
  126. package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +5 -0
  127. package/dist-types/packages/peach-engine/src/render-worker/test-bridge-protocol.d.ts +3 -3
  128. package/dist-types/packages/peach-engine/src/render-worker/webgpu-frame-transaction.d.ts +1 -0
  129. package/dist-types/packages/peach-engine/src/render-worker/webgpu-readback-scheduler.d.ts +1 -1
  130. package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +1 -0
  131. package/dist-types/packages/peach-engine/src/rolldown-bundle-inventory.d.ts +8 -1
  132. package/dist-types/packages/peach-engine/src/rolldown-production-fingerprint.d.ts +1 -4
  133. package/dist-types/packages/peach-engine/src/rolldown-production-module.d.ts +12 -0
  134. package/dist-types/packages/peach-engine/src/rolldown-production-roles.d.ts +6 -0
  135. package/dist-types/packages/peach-engine/src/settings/devices.d.ts +6 -1
  136. package/dist-types/packages/peach-engine/src/settings/duo-fold-bus.d.ts +1 -0
  137. package/dist-types/packages/peach-engine/src/shell-events.d.ts +4 -0
  138. package/dist-types/packages/peach-kit/src/capabilities.d.ts +7 -0
  139. package/package.json +2 -1
  140. package/runtime-companion.json +1 -1
  141. package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h +1 -0
  142. package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetworkErrors.h +257 -0
  143. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFByteOrder.h +305 -0
  144. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +2 -0
  145. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGAffineTransform.h +204 -0
  146. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBitmapContext.h +260 -0
  147. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColor.h +164 -0
  148. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorConversionInfo.h +101 -0
  149. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorSpace.h +510 -0
  150. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGContext.h +1132 -0
  151. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGConvertColorDataWithFormat.h +34 -0
  152. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDataConsumer.h +83 -0
  153. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDataProvider.h +197 -0
  154. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGEXRToneMappingGamma.h +36 -0
  155. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGError.h +38 -0
  156. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGFont.h +312 -0
  157. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGFunction.h +106 -0
  158. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGradient.h +123 -0
  159. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGITUToneMapping.h +31 -0
  160. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGImage.h +409 -0
  161. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGLayer.h +78 -0
  162. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFArray.h +120 -0
  163. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFContentStream.h +55 -0
  164. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFContext.h +535 -0
  165. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDictionary.h +133 -0
  166. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDocument.h +252 -0
  167. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFMarkedContentItem.h +37 -0
  168. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFObject.h +67 -0
  169. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFOperatorTable.h +51 -0
  170. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFPage.h +101 -0
  171. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFScanner.h +123 -0
  172. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFStream.h +44 -0
  173. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFString.h +52 -0
  174. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFStructureElement.h +87 -0
  175. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPath.h +441 -0
  176. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPattern.h +89 -0
  177. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGRenderingBufferProvider.h +49 -0
  178. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGShading.h +124 -0
  179. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGToneMapping.h +85 -0
  180. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h +44 -252
  181. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Modules/module.modulemap +1 -0
  182. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/CFNetworkErrors.h +257 -0
  183. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes +0 -6
  184. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +356 -61
  185. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/NSURLSession+Network.h +32 -0
  186. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/Network.h +51 -0
  187. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/advertise_descriptor.h +193 -0
  188. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/browse_descriptor.h +163 -0
  189. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/browse_result.h +207 -0
  190. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/browser.h +285 -0
  191. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/connection.h +714 -0
  192. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/connection_group.h +629 -0
  193. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/connection_report.h +932 -0
  194. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/content_context.h +229 -0
  195. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/endpoint.h +390 -0
  196. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/error.h +135 -0
  197. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/ethernet_channel.h +349 -0
  198. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/framer_options.h +1187 -0
  199. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/group_descriptor.h +184 -0
  200. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/interface.h +150 -0
  201. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/ip_options.h +351 -0
  202. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/listener.h +438 -0
  203. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/nw_object.h +200 -0
  204. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/parameters.h +1205 -0
  205. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/path.h +392 -0
  206. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/path_monitor.h +216 -0
  207. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/privacy_context.h +188 -0
  208. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/protocol_options.h +126 -0
  209. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/proxy_config.h +357 -0
  210. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/quic_options.h +889 -0
  211. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/resolver_config.h +94 -0
  212. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/tcp_options.h +459 -0
  213. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/tls_options.h +115 -0
  214. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/txt_record.h +432 -0
  215. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/udp_options.h +112 -0
  216. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/ws_options.h +743 -0
  217. package/sdk/ios/System/Library/Frameworks/Network.framework/Modules/module.modulemap +9 -0
  218. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h +395 -0
  219. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CABase.h +132 -0
  220. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CADisplayLink.h +107 -0
  221. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEmitterCell.h +153 -0
  222. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEmitterLayer.h +151 -0
  223. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAFrameRateRange.h +40 -0
  224. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAGradientLayer.h +78 -0
  225. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h +1078 -0
  226. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTiming.h +97 -0
  227. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTimingFunction.h +67 -0
  228. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAReplicatorLayer.h +65 -0
  229. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAScrollLayer.h +64 -0
  230. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAShapeLayer.h +135 -0
  231. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATextLayer.h +99 -0
  232. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATiledLayer.h +67 -0
  233. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATransaction.h +124 -0
  234. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATransform3D.h +138 -0
  235. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATransformLayer.h +40 -0
  236. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAValueFunction.h +78 -0
  237. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h +19 -38
  238. package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecureTransport.h +1757 -0
  239. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSAttributedString.h +19 -0
  240. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSParagraphStyle.h +28 -0
  241. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityConstants.h +114 -0
  242. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h +16 -0
  243. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarAppearance.h +47 -0
  244. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDataDetectors.h +20 -0
  245. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDatePicker.h +13 -0
  246. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h +16 -0
  247. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIEvent.h +84 -0
  248. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizer.h +119 -0
  249. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizerSubclass.h +66 -0
  250. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHoverGestureRecognizer.h +45 -0
  251. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h +161 -37
  252. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPickerView.h +76 -0
  253. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBar.h +8 -0
  254. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBarAppearance.h +78 -0
  255. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextInputTraits.h +29 -0
  256. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITouch.h +104 -0
  257. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITraitCollection.h +19 -0
  258. package/sdk/ios/usr/include/dns_sd.h +3616 -0
  259. package/sdk/ios/usr/include/dnssd.modulemap +4 -0
  260. package/sdk/ios/usr/include/module.modulemap +1 -0
  261. package/sdk/ios/usr/include/sys/socketvar.h +191 -0
  262. package/sdk/ios/usr/include/sys/vsock.h +84 -0
  263. package/sdk/native-hashes.json +1 -1
  264. package/skills/contrast/SKILL.md +6 -5
  265. package/skills/peach-debug/SKILL.md +68 -264
  266. package/skills/peach-debug/references/accessibility.md +37 -73
  267. package/skills/peach-debug/references/commands.md +2 -2
  268. package/skills/peach-debug/references/events.md +74 -0
  269. package/skills/peach-perf/SKILL.md +64 -401
  270. package/skills/peach-perf/references/presentation.md +46 -0
  271. package/skills/peach-perf/references/profiling.md +93 -0
  272. package/skills/peach-perf/references/render-counters.md +57 -0
  273. package/skills/peach-setup/SKILL.md +66 -216
  274. package/skills/peach-setup/references/native-config.md +35 -0
  275. package/skills/peach-setup/references/reporting.md +28 -0
  276. package/skills/peach-test/SKILL.md +68 -284
  277. package/skills/peach-test/references/detox.md +69 -0
  278. package/skills/peach-test/references/maestro.md +95 -0
  279. package/skills/peach-visual/SKILL.md +53 -105
  280. package/src/appPackageContract.ts +12 -1
  281. package/src/assetCatalogContract.ts +8 -1
  282. package/src/bridge-contract.ts +6 -0
  283. package/src/bundle-channel.mjs +133 -59
  284. package/src/cli-runtime.ts +8 -9
  285. package/src/configured-bundle-producer.ts +10 -0
  286. package/src/device-catalog.ts +68 -4
  287. package/src/expo-discovery-cache.ts +3 -0
  288. package/src/expo-native-workspace.ts +81 -17
  289. package/src/expo-swift-host.ts +57 -104
  290. package/src/expo-widget-assets.ts +76 -0
  291. package/src/expoSwiftContract.ts +13 -1
  292. package/src/host/websocket-proxy.ts +7 -2
  293. package/src/native-prebuilt.ts +3 -3
  294. package/src/nitro-adapter.lock.json +263 -263
  295. package/src/nitro-adapter.ts +69 -7
  296. package/src/nitro-bundle.ts +52 -24
  297. package/src/nitro-compile.ts +6 -1
  298. package/src/nitro-source.ts +82 -4
  299. package/src/nitro-superset.lock.json +103 -0
  300. package/src/nitro-superset.ts +137 -0
  301. package/src/nitroContract.ts +5 -1
  302. package/src/react-bridge-importers.ts +1 -0
  303. package/src/settingsContract.ts +26 -1
  304. package/src/swift-compile.ts +267 -68
  305. package/src/swift-compiler-digest.ts +2 -0
  306. package/src/swift-coverage/xcode-packages.ts +61 -1
  307. package/src/swift-coverage/xcode.ts +10 -12
  308. package/src/swift-cxx-reachable.ts +1 -1
  309. package/src/swift-distribution.lock.json +15 -13
  310. package/src/swift-distribution.ts +57 -26
  311. package/src/swift-host.ts +48 -35
  312. package/src/swift-link-roots.ts +45 -18
  313. package/src/swift-objc-compile.ts +78 -2
  314. package/src/swift-objc-standin.ts +3 -0
  315. package/src/swift-shared-sdk.ts +85 -1
  316. package/src/swift-standins.ts +233 -11
  317. package/src/swift-submit.ts +13 -1
  318. package/src/swift-toolchain.ts +82 -7
  319. package/src/swift-wasm-prune.ts +1629 -0
  320. package/src/turbo-bundle.ts +11 -10
  321. package/src/turbo-runtime.lock.json +16 -16
  322. package/src/vite-plugin-one.ts +12 -1
  323. package/src/vite-plugin.ts +82 -23
  324. package/src/wasm-optimize.ts +34 -0
  325. package/src/worker-system-chunks.ts +3 -3
  326. package/src/xcode-project.ts +52 -0
  327. package/src/xcode-target-members.ts +12 -1
@@ -0,0 +1,9 @@
1
+ framework module Network [system] {
2
+ umbrella header "Network.h"
3
+ export *
4
+
5
+ explicit module FoundationExtension {
6
+ header "NSURLSession+Network.h"
7
+ export *
8
+ }
9
+ }
@@ -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