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,49 @@
1
+ /* CoreGraphics - CGRenderingBufferProvider.h
2
+ Copyright (c) 2018 Apple Inc.
3
+ All rights reserved. */
4
+
5
+ #ifndef CGRENDERINGBUFFERPROVIDER_H_
6
+ #define CGRENDERINGBUFFERPROVIDER_H_
7
+
8
+ #include <CoreGraphics/CGBase.h>
9
+ #include <CoreFoundation/CoreFoundation.h>
10
+
11
+ typedef struct CF_BRIDGED_TYPE(id) CGRenderingBufferProvider* CGRenderingBufferProviderRef;
12
+
13
+ CF_IMPLICIT_BRIDGING_ENABLED
14
+
15
+ CF_ASSUME_NONNULL_BEGIN
16
+
17
+ CG_EXTERN CGRenderingBufferProviderRef __nullable CGRenderingBufferProviderCreate(void *__nullable info,
18
+ size_t size,
19
+ void* __nullable(^__nonnull lockPointer)(void* __nullable info),
20
+ void (^__nullable unlockPointer)(void* __nullable info, void* __nonnull pointer),
21
+ void (^__nullable releaseInfo)(void* __nullable info))
22
+ CF_REFINED_FOR_SWIFT
23
+ API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), watchos(26.0), visionos(26.0));
24
+
25
+ CG_EXTERN CGRenderingBufferProviderRef __nullable CGRenderingBufferProviderCreateWithCFData(CFMutableDataRef data)
26
+ CF_REFINED_FOR_SWIFT
27
+ API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), watchos(26.0), visionos(26.0));
28
+
29
+ CG_EXTERN size_t CGRenderingBufferProviderGetSize(CGRenderingBufferProviderRef provider)
30
+ CF_REFINED_FOR_SWIFT
31
+ API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), watchos(26.0), visionos(26.0));
32
+
33
+ CG_EXTERN void* __nullable CGRenderingBufferLockBytePtr(CGRenderingBufferProviderRef provider)
34
+ CF_REFINED_FOR_SWIFT
35
+ API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), watchos(26.0), visionos(26.0));
36
+
37
+ CG_EXTERN void CGRenderingBufferUnlockBytePtr(CGRenderingBufferProviderRef provider)
38
+ CF_REFINED_FOR_SWIFT
39
+ API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), watchos(26.0), visionos(26.0));
40
+
41
+ CG_EXTERN CFTypeID CGRenderingBufferProviderGetTypeID(void)
42
+ CF_REFINED_FOR_SWIFT
43
+ API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), watchos(26.0), visionos(26.0));
44
+
45
+ CF_ASSUME_NONNULL_END
46
+
47
+ CF_IMPLICIT_BRIDGING_DISABLED
48
+
49
+ #endif /* CGRENDERINGBUFFERPROVIDER_H_ */
@@ -0,0 +1,124 @@
1
+ /* CoreGraphics - CGShading.h
2
+ Copyright (c) 2001-2011 Apple Inc.
3
+ All rights reserved. */
4
+
5
+ #ifndef CGSHADING_H_
6
+ #define CGSHADING_H_
7
+
8
+ #include <CoreFoundation/CFBase.h>
9
+ #include <CoreFoundation/CFAvailability.h>
10
+ #include <stdint.h>
11
+
12
+ typedef struct CF_BRIDGED_TYPE(id) CGShading *CGShadingRef;
13
+
14
+ #include <CoreGraphics/CGBase.h>
15
+ #include <CoreGraphics/CGColorSpace.h>
16
+ #include <CoreGraphics/CGFunction.h>
17
+ #include <CoreGraphics/CGGeometry.h>
18
+ #include <CoreFoundation/CFBase.h>
19
+
20
+ CF_IMPLICIT_BRIDGING_ENABLED
21
+
22
+ CF_ASSUME_NONNULL_BEGIN
23
+
24
+ /* Return the CFTypeID for CGShadingRefs. */
25
+
26
+ CG_EXTERN CFTypeID CGShadingGetTypeID(void)
27
+ API_AVAILABLE(macos(10.2), ios(2.0));
28
+
29
+ /* Create a shading defining a color blend which varies along a linear axis
30
+ between two endpoints and extends indefinitely perpendicular to that
31
+ axis. The shading may optionally extend beyond either endpoint by
32
+ continuing the boundary colors indefinitely. The color values are
33
+ specified in the color space `space'. The starting point of the axis is
34
+ `start' and the ending point of the axis is `end', both specified in the
35
+ shading's target coordinate space. The shading function, specified by
36
+ `function', is a 1-in, N-out function, where N is one more (for alpha)
37
+ than the number of color components in the shading's color space. The
38
+ input value 0 corresponds to the color at the starting point of the
39
+ shading; the input value 1 corresponds to the color at the ending point
40
+ of the shading. If `extendStart' is true, then the shading will extend
41
+ beyond the starting point of the axis. If `extendEnd' is true, then the
42
+ shading will extend beyond the ending point of the axis. The shading's
43
+ content headroom will be based on the `space' and determined by the system. */
44
+
45
+ CG_EXTERN CGShadingRef __nullable CGShadingCreateAxial(
46
+ CGColorSpaceRef cg_nullable space, CGPoint start, CGPoint end,
47
+ CGFunctionRef cg_nullable function, bool extendStart, bool extendEnd)
48
+ API_AVAILABLE(macos(10.2), ios(2.0));
49
+
50
+ /* Creates axial shading with a specified content headroom. The value of the `headroom'
51
+ will be adjusted as follows:
52
+ (headroom < 0.0f) ? 0.0f : (headroom > 0.0f && headroom < 1.0f) ? 1.0f : headroom.
53
+ The `space' must support HDR (is either HDR or extended range RGB). Creating an axial
54
+ shading wih the content headroom of 0.0 means that the headroom is unspecified, and this
55
+ will prevent tone mapping of the axial shading content to the destination. Meaning of
56
+ other parameters is the same as in CGShadingCreateAxial. */
57
+
58
+ CG_EXTERN CGShadingRef __nullable CGShadingCreateAxialWithContentHeadroom(
59
+ float headroom, CGColorSpaceRef cg_nullable space, CGPoint start, CGPoint end,
60
+ CGFunctionRef cg_nullable function, bool extendStart, bool extendEnd)
61
+ CF_SWIFT_NAME(CGShading.init(axialHeadroom:space:start:end:function:extendStart:extendEnd:))
62
+ API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), watchos(26.0), visionos(26.0));
63
+
64
+ /* Create a shading defining a color blend which varies between two circles.
65
+ The shading may optionally extend beyond either circle by continuing the
66
+ boundary colors. The color values are specified in the color space
67
+ `space'. The starting circle has radius `startRadius' and is centered at
68
+ `start', specified in the shading's target coordinate space. The ending
69
+ circle has radius `endRadius' and is centered at `end', specified in the
70
+ shading's target coordinate space. The shading function, specified by
71
+ `function', is a 1-in, N-out function, where N is one more (for alpha)
72
+ than the number of color components in the shading's color space. The
73
+ input value 0 corresponds to the color of the starting circle; the input
74
+ value 1 corresponds to the color of the ending circle. If `extendStart'
75
+ is true, then the shading will extend beyond the starting circle. If
76
+ `extendEnd' is true, then the shading will extend beyond the ending
77
+ circle. The shading's content headroom will be based on the `space'
78
+ and determined by the system. */
79
+
80
+ CG_EXTERN CGShadingRef __nullable CGShadingCreateRadial(
81
+ CGColorSpaceRef cg_nullable space,
82
+ CGPoint start, CGFloat startRadius, CGPoint end, CGFloat endRadius,
83
+ CGFunctionRef cg_nullable function, bool extendStart, bool extendEnd)
84
+ API_AVAILABLE(macos(10.2), ios(2.0));
85
+
86
+ /* Creates radial shading with a specified content headroom. The value of the `headroom'
87
+ will be adjusted as follows:
88
+ (headroom < 0.0f) ? 0.0f : (headroom > 0.0f && headroom < 1.0f) ? 1.0f : headroom.
89
+ The `space' must support HDR (is either HDR or extended range RGB). Creating an radial
90
+ shading wih the content headroom of 0.0 means that the headroom is unspecified, and this
91
+ will prevent tone mapping of the radial shading content to the destination. Meaning of
92
+ other parameters is the same as in CGShadingCreateRadial. */
93
+
94
+ CG_EXTERN CGShadingRef __nullable CGShadingCreateRadialWithContentHeadroom(
95
+ float headroom, CGColorSpaceRef cg_nullable space,
96
+ CGPoint start, CGFloat startRadius, CGPoint end, CGFloat endRadius,
97
+ CGFunctionRef cg_nullable function, bool extendStart, bool extendEnd)
98
+ CF_SWIFT_NAME(CGShading.init(radialHeadroom:space:start:startRadius:end:endRadius:function:extendStart:extendEnd:))
99
+ API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), watchos(26.0), visionos(26.0));
100
+
101
+ /* Equivalent to `CFRetain(shading)', except it doesn't crash (as CFRetain
102
+ does) if `shading' is NULL. */
103
+
104
+ CG_EXTERN CGShadingRef cg_nullable CGShadingRetain(CGShadingRef cg_nullable shading)
105
+ API_AVAILABLE(macos(10.2), ios(2.0));
106
+
107
+ /* Equivalent to `CFRelease(shading)', except it doesn't crash (as CFRelease
108
+ does) if `shading' is NULL. */
109
+
110
+ CG_EXTERN void CGShadingRelease(CGShadingRef cg_nullable shading)
111
+ API_AVAILABLE(macos(10.2), ios(2.0));
112
+
113
+ /* Return shading's content headroom, and return 0.0f if unknown or unspecified. */
114
+
115
+ CG_EXTERN float CGShadingGetContentHeadroom(CGShadingRef cg_nullable shading)
116
+ CF_SWIFT_NAME(getter:CGShading.contentHeadroom(self:))
117
+ API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), watchos(26.0), visionos(26.0));
118
+
119
+
120
+ CF_ASSUME_NONNULL_END
121
+
122
+ CF_IMPLICIT_BRIDGING_DISABLED
123
+
124
+ #endif /* CGSHADING_H_ */
@@ -0,0 +1,85 @@
1
+ /* CoreGraphics - CGToneMapping.h
2
+ Copyright (c) 2018-2025 Apple Inc.
3
+ All rights reserved. */
4
+
5
+ #ifndef CGTONEMAPPING_H_
6
+ #define CGTONEMAPPING_H_
7
+
8
+ #include <CoreFoundation/CoreFoundation.h>
9
+ #include <CoreFoundation/CFAvailability.h>
10
+ #include <stdint.h>
11
+
12
+
13
+ #include <CoreGraphics/CGEXRToneMappingGamma.h>
14
+ #include <CoreGraphics/CGITUToneMapping.h>
15
+
16
+ CF_IMPLICIT_BRIDGING_ENABLED
17
+
18
+ CF_ASSUME_NONNULL_BEGIN
19
+
20
+ #ifdef __cplusplus
21
+ extern "C" {
22
+ #endif
23
+
24
+ /*
25
+ * kCGToneMappingDefault = 0, A system default method will be used
26
+ * kCGToneMappingImageSpecificLumaScaling = 1, Implements tone mapping of HDR content associated with the CGImage gain map
27
+ * kCGToneMappingHeadroomAdaptiveGainCurve = 6, Impmement Headroom Adaptive Gain Curve as per ICC and SMPTE ST 2094-50;2026 specifications
28
+ * kCGToneMappingReferenceWhiteBased = 2, Implements a tone curve that preserves SDR contrast and rolls off HDR highlights
29
+ * kCGToneMappingITURecommended = 3, Implements tone mapping based on ITU-R specifications for HDR-to-SDR and SDR-to-HDR conversions assuming mastering peak of 1000 nits
30
+ * kCGToneMappingEXRGamma = 4, Implements Open EXR tone mapping gamma suitable for tone mapping images in extended linear sRGB color space to SDR
31
+ * kCGToneMappingNone = 5 Does not apply any tone mapping. Color converted values in extended color spaces will be clipped to SDR ([0.0-1.0]) range
32
+ */
33
+
34
+ typedef CF_ENUM (uint32_t, CGToneMapping) {
35
+ kCGToneMappingDefault = 0,
36
+ kCGToneMappingImageSpecificLumaScaling = 1,
37
+ kCGToneMappingHeadroomAdaptiveGainCurve API_AVAILABLE(macos(27.0), ios(27.0), tvos(27.0), watchos(27.0)) = 6,
38
+ kCGToneMappingReferenceWhiteBased = 2,
39
+ kCGToneMappingITURecommended = 3,
40
+ kCGToneMappingEXRGamma = 4,
41
+ kCGToneMappingNone = 5
42
+ } API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), watchos(11.0));
43
+
44
+ typedef struct {
45
+ CGToneMapping method;
46
+ CFDictionaryRef __nullable options;
47
+ } CGContentToneMappingInfo
48
+ CF_REFINED_FOR_SWIFT
49
+ API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), watchos(26.0), visionos(26.0));
50
+
51
+ /* Option keys and values for Preferred Dynamic Range.
52
+ * Applicable to kCGToneMappingDefault, kCGToneMappingImageSpecificLumaScaling and kCGToneMappingReferenceWhiteBased methods.
53
+ */
54
+
55
+ CG_EXTERN const CFStringRef __nonnull kCGPreferredDynamicRange
56
+ CF_REFINED_FOR_SWIFT
57
+ API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), watchos(26.0), visionos(26.0));
58
+
59
+ /* Legal values for kCGPreferredDynamicRange are the following strings. */
60
+ CG_EXTERN const CFStringRef __nonnull kCGDynamicRangeHigh
61
+ CF_REFINED_FOR_SWIFT
62
+ API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), watchos(26.0), visionos(26.0));
63
+ CG_EXTERN const CFStringRef __nonnull kCGDynamicRangeConstrained
64
+ CF_REFINED_FOR_SWIFT
65
+ API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), watchos(26.0), visionos(26.0));
66
+ CG_EXTERN const CFStringRef __nonnull kCGDynamicRangeStandard
67
+ CF_REFINED_FOR_SWIFT
68
+ API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), watchos(26.0), visionos(26.0));
69
+
70
+ CG_EXTERN const CFStringRef __nonnull kCGContentAverageLightLevel
71
+ CF_REFINED_FOR_SWIFT
72
+ API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), watchos(26.0), visionos(26.0));
73
+ CG_EXTERN const CFStringRef __nonnull kCGContentAverageLightLevelNits
74
+ CF_REFINED_FOR_SWIFT
75
+ API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), watchos(26.0), visionos(26.0));
76
+
77
+ #ifdef __cplusplus
78
+ } /* extern "C" */
79
+ #endif
80
+
81
+ CF_ASSUME_NONNULL_END
82
+
83
+ CF_IMPLICIT_BRIDGING_DISABLED
84
+
85
+ #endif /* CGTONEMAPPING_H_ */
@@ -1,255 +1,47 @@
1
- #pragma once
2
- #import <CoreFoundation/CoreFoundation.h>
3
- #include <stdint.h>
4
- #include <stdbool.h>
5
- #include <os/availability.h>
1
+ /* CoreGraphics - CoreGraphics.h
2
+ Copyright (c) 2000-2011 Apple Inc.
3
+ All rights reserved. */
4
+
5
+ #ifndef COREGRAPHICS_H_
6
+ #define COREGRAPHICS_H_
7
+
8
+ #include <CoreGraphics/CGBase.h>
9
+
10
+ #include <CoreGraphics/CGAffineTransform.h>
11
+ #include <CoreGraphics/CGBitmapContext.h>
12
+ #include <CoreGraphics/CGColor.h>
13
+ #include <CoreGraphics/CGToneMapping.h>
14
+ #include <CoreGraphics/CGEXRToneMappingGamma.h>
15
+ #include <CoreGraphics/CGITUToneMapping.h>
16
+ #include <CoreGraphics/CGColorConversionInfo.h>
17
+ #include <CoreGraphics/CGColorSpace.h>
18
+ #include <CoreGraphics/CGConvertColorDataWithFormat.h>
19
+ #include <CoreGraphics/CGContext.h>
20
+ #include <CoreGraphics/CGDataConsumer.h>
21
+ #include <CoreGraphics/CGDataProvider.h>
22
+ #include <CoreGraphics/CGError.h>
23
+ #include <CoreGraphics/CGFont.h>
24
+ #include <CoreGraphics/CGFunction.h>
6
25
  #include <CoreGraphics/CGGeometry.h>
7
- typedef CF_ENUM (int32_t, CGBlendMode) {
8
- kCGBlendModeNormal,
9
- kCGBlendModeMultiply,
10
- kCGBlendModeScreen,
11
- kCGBlendModeOverlay,
12
- kCGBlendModeDarken,
13
- kCGBlendModeLighten,
14
- kCGBlendModeColorDodge,
15
- kCGBlendModeColorBurn,
16
- kCGBlendModeSoftLight,
17
- kCGBlendModeHardLight,
18
- kCGBlendModeDifference,
19
- kCGBlendModeExclusion,
20
- kCGBlendModeHue,
21
- kCGBlendModeSaturation,
22
- kCGBlendModeColor,
23
- kCGBlendModeLuminosity,
24
- kCGBlendModeClear,
25
- kCGBlendModeCopy,
26
- kCGBlendModeSourceIn,
27
- kCGBlendModeSourceOut,
28
- kCGBlendModeSourceAtop,
29
- kCGBlendModeDestinationOver,
30
- kCGBlendModeDestinationIn,
31
- kCGBlendModeDestinationOut,
32
- kCGBlendModeDestinationAtop,
33
- kCGBlendModeXOR,
34
- kCGBlendModePlusDarker,
35
- kCGBlendModePlusLighter
36
- };
37
- typedef CF_ENUM(uint32_t, CGImageAlphaInfo) {
38
- kCGImageAlphaNone,
39
- kCGImageAlphaPremultipliedLast,
40
- kCGImageAlphaPremultipliedFirst,
41
- kCGImageAlphaLast,
42
- kCGImageAlphaFirst,
43
- kCGImageAlphaNoneSkipLast,
44
- kCGImageAlphaNoneSkipFirst,
45
- kCGImageAlphaOnly
46
- };
47
- typedef CF_ENUM(uint32_t, CGImageComponentInfo) {
48
- kCGImageComponentInteger = (0 << 8),
49
- kCGImageComponentFloat = (1 << 8)
50
- };
51
- typedef CF_ENUM(uint32_t, CGImageByteOrderInfo) {
52
- kCGImageByteOrderMask
53
- = 0x7000,
54
- kCGImageByteOrderDefault = (0 << 12),
55
- kCGImageByteOrder16Little = (1 << 12),
56
- kCGImageByteOrder32Little = (2 << 12),
57
- kCGImageByteOrder16Big = (3 << 12),
58
- kCGImageByteOrder32Big = (4 << 12),
59
- #ifdef __BIG_ENDIAN__
60
- kCGImageByteOrder16Host = kCGImageByteOrder16Big,
61
- kCGImageByteOrder32Host = kCGImageByteOrder32Big
62
- #else
63
- kCGImageByteOrder16Host = kCGImageByteOrder16Little,
64
- kCGImageByteOrder32Host = kCGImageByteOrder32Little
65
- #endif
66
- };
67
- typedef CF_OPTIONS(uint32_t, CGBitmapInfo) {
68
- kCGBitmapAlphaInfoMask = 0x1F,
69
- kCGBitmapComponentInfoMask = 0xF00,
70
- kCGBitmapByteOrderInfoMask = 0x7000,
71
- kCGBitmapPixelFormatInfoMask = 0xF0000,
72
- kCGBitmapFloatInfoMask = kCGBitmapComponentInfoMask,
73
- kCGBitmapByteOrderMask = kCGBitmapByteOrderInfoMask,
74
- kCGBitmapFloatComponents = kCGImageComponentFloat,
75
- kCGBitmapByteOrderDefault = kCGImageByteOrderDefault,
76
- kCGBitmapByteOrder16Little = kCGImageByteOrder16Little,
77
- kCGBitmapByteOrder32Little = kCGImageByteOrder32Little,
78
- kCGBitmapByteOrder16Big = kCGImageByteOrder16Big,
79
- kCGBitmapByteOrder32Big = kCGImageByteOrder32Big
80
- };
81
- typedef struct __attribute__((objc_bridge(id))) CGColor *CGColorRef;
82
- typedef struct __attribute__((objc_bridge(id))) CGImage *CGImageRef;
83
- typedef struct __attribute__((objc_bridge(id))) CGDataProvider *CGDataProviderRef;
84
- typedef struct __attribute__((objc_bridge(id))) CGDataConsumer *CGDataConsumerRef;
85
- typedef struct __attribute__((objc_bridge(id))) CGPath *CGPathRef;
86
- typedef struct __attribute__((objc_bridge(id))) CGPath *CGMutablePathRef;
87
- typedef struct __attribute__((objc_bridge(id))) CGContext *CGContextRef;
88
- typedef struct __attribute__((objc_bridge(id))) CGColorSpace *CGColorSpaceRef;
89
- typedef const struct __attribute__((objc_bridge(id))) CGColorConversionInfo *CGColorConversionInfoRef;
90
- #pragma clang arc_cf_code_audited begin
91
- CG_EXTERN CGImageAlphaInfo CGImageGetAlphaInfo(CGImageRef _Nullable image) __attribute__((availability(ios, introduced=2.0)));
92
- CG_EXTERN CGAffineTransform __attribute__((pure)) CGAffineTransformMakeRotation(CGFloat angle) __attribute__((availability(ios, introduced=2.0)));
93
- CG_EXTERN CGRect __attribute__((pure)) CGRectApplyAffineTransform(CGRect rect, CGAffineTransform t) __attribute__((availability(ios, introduced=2.0)));
94
- CG_EXTERN void CGContextAddEllipseInRect(CGContextRef _Nullable c, CGRect rect) __attribute__((availability(ios, introduced=2.0)));
95
- CG_EXTERN void CGContextClip(CGContextRef _Nullable c) __attribute__((availability(ios, introduced=2.0)));
96
- CG_EXTERN void CGContextTranslateCTM(CGContextRef _Nullable c, CGFloat tx, CGFloat ty) __attribute__((availability(ios, introduced=2.0)));
97
- CG_EXTERN void CGContextRotateCTM(CGContextRef _Nullable c, CGFloat angle) __attribute__((availability(ios, introduced=2.0)));
98
- CG_EXTERN const CGAffineTransform CGAffineTransformIdentity __attribute__((availability(macos,introduced=10.0), availability(ios,introduced=2.0)));
99
- CG_EXTERN CGAffineTransform __attribute__((pure)) CGAffineTransformRotate(CGAffineTransform t, CGFloat angle) __attribute__((availability(macos,introduced=10.0), availability(ios,introduced=2.0)));
100
- CG_EXTERN CGAffineTransform __attribute__((pure)) CGAffineTransformScale(CGAffineTransform t, CGFloat sx, CGFloat sy) __attribute__((availability(macos,introduced=10.0), availability(ios,introduced=2.0)));
101
- CG_EXTERN void CGContextDrawImage(CGContextRef _Nullable c, CGRect rect, CGImageRef _Nullable image) __attribute__((availability(macos,introduced=10.0), availability(ios,introduced=2.0)));
102
- #pragma clang arc_cf_code_audited end
103
- CG_EXTERN size_t CGImageGetHeight(CGImageRef _Nullable image) __attribute__((availability(macos,introduced=10.0), availability(ios,introduced=2.0)));
104
- CG_EXTERN size_t CGImageGetBytesPerRow(CGImageRef _Nullable image) __attribute__((availability(macos,introduced=10.0), availability(ios,introduced=2.0)));
105
- CG_EXTERN CFStringRef _Nullable CGImageGetUTType(CGImageRef _Nullable image) __attribute__((availability(macos,introduced=10.11), availability(ios,introduced=9.0)));
106
- typedef struct CF_BRIDGED_TYPE(id) CGPDFDocument *CGPDFDocumentRef;
107
- typedef struct CF_BRIDGED_TYPE(id) CGPDFPage *CGPDFPageRef;
108
- typedef CF_ENUM (int32_t, CGPDFBox) {
109
- kCGPDFMediaBox = 0,
110
- kCGPDFCropBox = 1,
111
- kCGPDFBleedBox = 2,
112
- kCGPDFTrimBox = 3,
113
- kCGPDFArtBox = 4
114
- };
115
- CG_EXTERN void CGContextConcatCTM(CGContextRef _Nullable c, CGAffineTransform transform) __attribute__((availability(macos,introduced=10.0), availability(ios,introduced=2.0)));
116
- CG_EXTERN void CGContextDrawPDFPage(CGContextRef _Nullable c, CGPDFPageRef _Nullable page) __attribute__((availability(macos,introduced=10.3), availability(ios,introduced=2.0)));
117
- CG_EXTERN CGDataProviderRef _Nullable CGDataProviderCreateWithCFData( CFDataRef _Nullable data) __attribute__((availability(macos,introduced=10.4), availability(ios,introduced=2.0)));
118
- CG_EXTERN CGPDFDocumentRef _Nullable CGPDFDocumentCreateWithProvider( CGDataProviderRef _Nullable provider) __attribute__((availability(macos,introduced=10.0), availability(ios,introduced=2.0)));
119
- CG_EXTERN CGPDFDocumentRef _Nullable CGPDFDocumentCreateWithURL( CFURLRef _Nullable url) __attribute__((availability(macos,introduced=10.0), availability(ios,introduced=2.0)));
120
- CG_EXTERN CGPDFPageRef _Nullable CGPDFDocumentGetPage( CGPDFDocumentRef _Nullable document, size_t pageNumber) __attribute__((availability(macos,introduced=10.3), availability(ios,introduced=2.0)));
121
- CG_EXTERN CGPDFDocumentRef _Nullable CGPDFDocumentRetain( CGPDFDocumentRef _Nullable document) __attribute__((availability(macos,introduced=10.0), availability(ios,introduced=2.0)));
122
- CG_EXTERN void CGPDFDocumentRelease(CGPDFDocumentRef _Nullable document) __attribute__((availability(macos,introduced=10.0), availability(ios,introduced=2.0)));
123
- CG_EXTERN CGRect CGPDFPageGetBoxRect(CGPDFPageRef _Nullable page, CGPDFBox box) __attribute__((availability(macos,introduced=10.3), availability(ios,introduced=2.0)));
124
- CG_EXTERN CGAffineTransform CGPDFPageGetDrawingTransform( CGPDFPageRef _Nullable page, CGPDFBox box, CGRect rect, int rotate, bool preserveAspectRatio) __attribute__((availability(macos,introduced=10.3), availability(ios,introduced=2.0)));
125
- typedef CF_ENUM (int32_t, CGColorRenderingIntent) {
126
- kCGRenderingIntentDefault,
127
- kCGRenderingIntentAbsoluteColorimetric,
128
- kCGRenderingIntentRelativeColorimetric,
129
- kCGRenderingIntentPerceptual,
130
- kCGRenderingIntentSaturation
131
- };
132
- extern CGImageRef _Nullable CGImageCreate(size_t width, size_t height, size_t bitsPerComponent, size_t bitsPerPixel, size_t bytesPerRow, CGColorSpaceRef _Nullable space, CGBitmapInfo bitmapInfo, CGDataProviderRef _Nullable provider, const CGFloat * _Nullable decode, bool shouldInterpolate, CGColorRenderingIntent intent) __attribute__((availability(macos,introduced=10.0), availability(ios,introduced=2.0)));
133
- extern CGColorRenderingIntent CGImageGetRenderingIntent(CGImageRef _Nullable image) __attribute__((availability(macos,introduced=10.0), availability(ios,introduced=2.0)));
134
- extern CGBitmapInfo CGImageGetBitmapInfo(CGImageRef _Nullable image) __attribute__((availability(macos,introduced=10.4), availability(ios,introduced=2.0)));
135
- extern CGImageRef _Nullable CGImageRetain(CGImageRef _Nullable image) __attribute__((availability(macos,introduced=10.0), availability(ios,introduced=2.0)));
136
- extern void CGImageRelease(CGImageRef _Nullable image) __attribute__((availability(macos,introduced=10.0), availability(ios,introduced=2.0)));
137
- extern CFDataRef _Nullable CGDataProviderCopyData(CGDataProviderRef _Nullable provider) __attribute__((availability(macos,introduced=10.5), availability(ios,introduced=2.0)));
138
- extern CFIndex CFDataGetLength(CFDataRef theData);
139
- extern void CFDataGetBytes(CFDataRef theData, CFRange range, uint8_t *buffer);
140
- // CFRangeMake lives in CoreFoundation's CFBase.h, which this umbrella
141
- // imports above; the duplicate inline here would shadow the native owner.
142
- CG_EXTERN CGAffineTransform CGAffineTransformMakeScale(CGFloat sx, CGFloat sy) __attribute__((availability(macos,introduced=10.0), availability(ios,introduced=2.0)));
143
- CG_EXTERN void CGContextScaleCTM(CGContextRef _Nullable c, CGFloat sx, CGFloat sy) __attribute__((availability(macos,introduced=10.0), availability(ios,introduced=2.0)));
144
- CG_EXTERN void CGDataProviderRelease(CGDataProviderRef _Nullable provider) __attribute__((availability(macos,introduced=10.0), availability(ios,introduced=2.0)));
145
- CG_EXTERN size_t CGImageGetBitsPerComponent(CGImageRef _Nullable image) __attribute__((availability(macos,introduced=10.0), availability(ios,introduced=2.0)));
146
- CG_EXTERN size_t CGImageGetBitsPerPixel(CGImageRef _Nullable image) __attribute__((availability(macos,introduced=10.0), availability(ios,introduced=2.0)));
147
- CG_EXTERN CGColorSpaceRef _Nullable CGImageGetColorSpace(CGImageRef _Nullable image) __attribute__((availability(macos,introduced=10.0), availability(ios,introduced=2.0)));
148
- CG_EXTERN CGDataProviderRef _Nullable CGImageGetDataProvider(CGImageRef _Nullable image) __attribute__((availability(macos,introduced=10.0), availability(ios,introduced=2.0)));
149
- CG_EXTERN const CGFloat * _Nullable CGImageGetDecode(CGImageRef _Nullable image) __attribute__((availability(macos,introduced=10.0), availability(ios,introduced=2.0)));
150
- CG_EXTERN bool CGImageGetShouldInterpolate(CGImageRef _Nullable image) __attribute__((availability(macos,introduced=10.0), availability(ios,introduced=2.0)));
151
- CG_EXTERN size_t CGImageGetWidth(CGImageRef _Nullable image) __attribute__((availability(macos,introduced=10.0), availability(ios,introduced=2.0)));
152
- typedef CF_ENUM (int32_t, CGColorSpaceModel) {
153
- kCGColorSpaceModelUnknown = -1,
154
- kCGColorSpaceModelMonochrome,
155
- kCGColorSpaceModelRGB,
156
- kCGColorSpaceModelCMYK,
157
- kCGColorSpaceModelLab,
158
- kCGColorSpaceModelDeviceN,
159
- kCGColorSpaceModelIndexed,
160
- kCGColorSpaceModelPattern,
161
- kCGColorSpaceModelXYZ
162
- };
163
- typedef CF_ENUM (int32_t, CGInterpolationQuality) {
164
- kCGInterpolationDefault = 0,
165
- kCGInterpolationNone = 1,
166
- kCGInterpolationLow = 2,
167
- kCGInterpolationMedium = 4,
168
- kCGInterpolationHigh = 3
169
- };
170
- typedef void (*CGDataProviderReleaseDataCallback)(void * __nullable info,
171
- const void * _Nonnull data, size_t size);
172
- CG_EXTERN CGAffineTransform CG_PURE CGAffineTransformConcat(CGAffineTransform t1,
173
- CGAffineTransform t2) API_AVAILABLE(macos(10.0), ios(2.0));
174
- CG_EXTERN CGAffineTransform CG_PURE CGAffineTransformMake(CGFloat a, CGFloat b,
175
- CGFloat c, CGFloat d, CGFloat tx, CGFloat ty)
176
- API_AVAILABLE(macos(10.0), ios(2.0));
177
- CG_EXTERN CGAffineTransform CG_PURE CGAffineTransformTranslate(CGAffineTransform t,
178
- CGFloat tx, CGFloat ty) API_AVAILABLE(macos(10.0), ios(2.0));
179
- CG_EXTERN CGContextRef __nullable CGBitmapContextCreate(void * __nullable data,
180
- size_t width, size_t height, size_t bitsPerComponent, size_t bytesPerRow,
181
- CGColorSpaceRef __nullable space, CGBitmapInfo bitmapInfo)
182
- API_AVAILABLE(macos(10.0), ios(2.0));
183
- CG_EXTERN CGImageRef __nullable CGBitmapContextCreateImage(
184
- CGContextRef cg_nullable context)
185
- API_AVAILABLE(macos(10.4), ios(2.0));
186
- CG_EXTERN CGFloat CGColorGetAlpha(CGColorRef cg_nullable color)
187
- API_AVAILABLE(macos(10.3), ios(2.0));
188
- CG_EXTERN CFDataRef __nullable CGColorSpaceCopyICCData(CGColorSpaceRef cg_nullable space)
189
- API_AVAILABLE(macos(10.12), ios(10.0));
190
- CG_EXTERN CFStringRef __nullable CGColorSpaceCopyName(CGColorSpaceRef cg_nullable space)
191
- API_AVAILABLE(macos(10.6), ios(10.0));
192
- CG_EXTERN CGColorSpaceRef __nullable CGColorSpaceCreateWithICCData(CFTypeRef cg_nullable data)
193
- API_AVAILABLE(macos(10.12), ios(10.0));
194
- CG_EXTERN CGColorSpaceRef __nullable CGColorSpaceCreateWithICCProfile(CFDataRef cg_nullable data)
195
- API_DEPRECATED("No longer supported", macos(10.5,10.13), ios(2.0,11.0));
196
- CG_EXTERN CGColorSpaceRef __nullable CGColorSpaceCreateWithName(CFStringRef cg_nullable name)
197
- API_AVAILABLE(macos(10.2), ios(2.0));
198
- CG_EXTERN CGColorSpaceModel CGColorSpaceGetModel(CGColorSpaceRef cg_nullable space)
199
- API_AVAILABLE(macos(10.5), ios(2.0));
200
- CG_EXTERN void CGColorSpaceRelease(CGColorSpaceRef cg_nullable CF_RELEASES_ARGUMENT space)
201
- API_AVAILABLE(macos(10.0), ios(2.0));
202
- CG_EXTERN CGColorSpaceRef cg_nullable CGColorSpaceRetain(CGColorSpaceRef cg_nullable space)
203
- API_AVAILABLE(macos(10.0), ios(2.0));
204
- CG_EXTERN bool CGColorSpaceUsesITUR_2100TF(CGColorSpaceRef)
205
- API_AVAILABLE(macos(11.0), ios(14.0));
206
- CG_EXTERN void CGContextAddRect(CGContextRef cg_nullable c, CGRect rect)
207
- API_AVAILABLE(macos(10.0), ios(2.0));
208
- CG_EXTERN void CGContextClearRect(CGContextRef cg_nullable c, CGRect rect)
209
- API_AVAILABLE(macos(10.0), ios(2.0));
210
- CG_EXTERN void CGContextFillRect(CGContextRef cg_nullable c, CGRect rect)
211
- API_AVAILABLE(macos(10.0), ios(2.0));
212
- CG_EXTERN void CGContextRelease(CGContextRef cg_nullable c)
213
- API_AVAILABLE(macos(10.0), ios(2.0));
214
- CG_EXTERN void CGContextRestoreGState(CGContextRef cg_nullable c)
215
- API_AVAILABLE(macos(10.0), ios(2.0));
216
- CG_EXTERN void CGContextSaveGState(CGContextRef cg_nullable c)
217
- API_AVAILABLE(macos(10.0), ios(2.0));
218
- CG_EXTERN void CGContextSetAllowsAntialiasing(CGContextRef cg_nullable c,
219
- bool allowsAntialiasing)
220
- API_AVAILABLE(macos(10.4), ios(2.0));
221
- CG_EXTERN void CGContextSetBlendMode(CGContextRef cg_nullable c, CGBlendMode mode)
222
- API_AVAILABLE(macos(10.4), ios(2.0));
223
- CG_EXTERN void CGContextSetFillColorWithColor(CGContextRef cg_nullable c,
224
- CGColorRef cg_nullable color)
225
- API_AVAILABLE(macos(10.3), ios(2.0));
226
- CG_EXTERN void CGContextSetInterpolationQuality(CGContextRef cg_nullable c,
227
- CGInterpolationQuality quality)
228
- API_AVAILABLE(macos(10.0), ios(2.0));
229
- CG_EXTERN void CGContextSetShouldAntialias(CGContextRef cg_nullable c,
230
- bool shouldAntialias)
231
- API_AVAILABLE(macos(10.0), ios(2.0));
232
- CG_EXTERN CGDataProviderRef __nullable CGDataProviderCreateWithData(
233
- void * __nullable info, const void * cg_nullable data, size_t size,
234
- CGDataProviderReleaseDataCallback cg_nullable releaseData)
235
- API_AVAILABLE(macos(10.0), ios(2.0));
236
- CG_EXTERN CGImageRef __nullable CGImageCreateWithImageInRect(
237
- CGImageRef cg_nullable image, CGRect rect)
238
- API_AVAILABLE(macos(10.4), ios(2.0));
239
- CG_EXTERN CGRect CGRectStandardize(CGRect rect) __attribute__ ((warn_unused_result))
240
- API_AVAILABLE(macos(10.0), ios(2.0));
241
- CG_EXTERN const CFStringRef kCGColorSpaceSRGB
242
- API_AVAILABLE(macos(10.5), ios(9.0));
243
- typedef CF_ENUM(uint32_t, CGImagePixelFormatInfo) {
244
- kCGImagePixelFormatMask CG_SOFT_DEPRECATED_WITH_REPLACEMENT(kCGBitmapPixelFormatInfoMask)
245
- = 0xF0000,
26
+ #include <CoreGraphics/CGGradient.h>
27
+ #include <CoreGraphics/CGImage.h>
28
+ #include <CoreGraphics/CGLayer.h>
29
+ #include <CoreGraphics/CGPDFArray.h>
30
+ #include <CoreGraphics/CGPDFContentStream.h>
31
+ #include <CoreGraphics/CGPDFMarkedContentItem.h>
32
+ #include <CoreGraphics/CGPDFStructureElement.h>
33
+ #include <CoreGraphics/CGPDFContext.h>
34
+ #include <CoreGraphics/CGPDFDictionary.h>
35
+ #include <CoreGraphics/CGPDFDocument.h>
36
+ #include <CoreGraphics/CGPDFObject.h>
37
+ #include <CoreGraphics/CGPDFOperatorTable.h>
38
+ #include <CoreGraphics/CGPDFPage.h>
39
+ #include <CoreGraphics/CGPDFScanner.h>
40
+ #include <CoreGraphics/CGPDFStream.h>
41
+ #include <CoreGraphics/CGPDFString.h>
42
+ #include <CoreGraphics/CGPath.h>
43
+ #include <CoreGraphics/CGPattern.h>
44
+ #include <CoreGraphics/CGShading.h>
246
45
 
247
- kCGImagePixelFormatPacked = (0 << 16),
248
- kCGImagePixelFormatRGB555 = (1 << 16),
249
- kCGImagePixelFormatRGB565 = (2 << 16),
250
- kCGImagePixelFormatRGB101010 = (3 << 16),
251
- kCGImagePixelFormatRGBCIF10 = (4 << 16)
252
- } API_AVAILABLE(macos(10.14), ios(12.0));
253
46
 
254
- static const CGBitmapInfo kCGBitmapByteOrder16Host CG_SOFT_DEPRECATED_WITH_REPLACEMENT(kCGImageByteOrder16Host) = (CGBitmapInfo)kCGImageByteOrder16Host;
255
- static const CGBitmapInfo kCGBitmapByteOrder32Host CG_SOFT_DEPRECATED_WITH_REPLACEMENT(kCGImageByteOrder32Host) = (CGBitmapInfo)kCGImageByteOrder32Host;
47
+ #endif /* COREGRAPHICS_H_ */
@@ -1,4 +1,5 @@
1
1
  framework module CoreGraphics [system] {
2
2
  umbrella header "CoreGraphics.h"
3
3
  export *
4
+ module * { export * }
4
5
  }