peachsim 0.1.1728 → 0.1.1744

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (374) 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 +68 -16
  6. package/cli/commands/coverage-swift.ts +112 -4
  7. package/cli/commands/device.ts +3 -1
  8. package/cli/commands/doctor.ts +1 -4
  9. package/cli/commands/inspect/settling.ts +6 -1
  10. package/cli/commands/inspect/wait-ready.ts +22 -2
  11. package/cli/commands/package.ts +33 -21
  12. package/cli/commands/push.ts +56 -0
  13. package/cli/commands/serve.ts +9 -0
  14. package/cli/commands/shell-url.ts +41 -9
  15. package/cli/commands/swift.ts +1 -1
  16. package/cli/current-sim.ts +27 -0
  17. package/cli/drivers/linux-browser-libs.lock.json +323 -1
  18. package/cli/drivers/linux-browser-libs.ts +8 -6
  19. package/cli/drivers/playwright.ts +5 -1
  20. package/cli/internal-child.ts +11 -1
  21. package/cli/main.ts +6 -0
  22. package/cli/native-input.ts +1 -7
  23. package/cli/outbound-endpoints.ts +9 -1
  24. package/cli/packaged-app-launcher.ts +3 -1
  25. package/cli/scene-video.ts +28 -7
  26. package/cli/ws-bridge.ts +3 -1
  27. package/detox/index.ts +18 -5
  28. package/dist-lib/agent-daemon-client.cjs +1 -1
  29. package/dist-lib/agent-events.cjs +1 -1
  30. package/dist-lib/attached-projects.cjs +5 -2
  31. package/dist-lib/auth/shared-session.cjs +5 -2
  32. package/dist-lib/backend-origin.cjs +1 -1
  33. package/dist-lib/beta.cjs +1 -1
  34. package/dist-lib/beta.mjs +1 -1
  35. package/dist-lib/bridge-constants.cjs +1 -1
  36. package/dist-lib/bridge-contract-input.cjs +1 -1
  37. package/dist-lib/bridge-contract-input.mjs +1 -1
  38. package/dist-lib/bridge-contract.cjs +1 -1
  39. package/dist-lib/bridge-contract.mjs +1 -1
  40. package/dist-lib/bundle-channel.cjs +9932 -4561
  41. package/dist-lib/capture-contract.cjs +1 -1
  42. package/dist-lib/capture-contract.mjs +1 -1
  43. package/dist-lib/cloud-contract.cjs +1 -1
  44. package/dist-lib/cloud-contract.mjs +1 -1
  45. package/dist-lib/cloud-test-args.cjs +1 -1
  46. package/dist-lib/cloud-test-args.mjs +1 -1
  47. package/dist-lib/cloud.cjs +1 -1
  48. package/dist-lib/cloud.mjs +1 -1
  49. package/dist-lib/config.cjs +1 -1
  50. package/dist-lib/config.mjs +1 -1
  51. package/dist-lib/detox/index.cjs +30 -8
  52. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  53. package/dist-lib/expo-swift-bundle.cjs +6886 -3303
  54. package/dist-lib/expo-swift-metadata.cjs +14 -2
  55. package/dist-lib/expo-swift-metadata.mjs +14 -2
  56. package/dist-lib/home-paths.cjs +7 -2
  57. package/dist-lib/host/bridge-host.cjs +8513 -3085
  58. package/dist-lib/host/fetch-proxy-handler.cjs +19 -7
  59. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  60. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  61. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  62. package/dist-lib/host/websocket-proxy.cjs +6 -3
  63. package/dist-lib/index.cjs +175 -80
  64. package/dist-lib/jump-to-source-babel.cjs +1 -1
  65. package/dist-lib/jump-to-source-native.cjs +1 -1
  66. package/dist-lib/kotlin-host.cjs +209 -32
  67. package/dist-lib/menu.cjs +7 -1
  68. package/dist-lib/menu.mjs +7 -1
  69. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  70. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  71. package/dist-lib/metro-production-bundle.cjs +1 -1
  72. package/dist-lib/metro-production-bundle.mjs +1 -1
  73. package/dist-lib/metro.cjs +146 -76
  74. package/dist-lib/native-app-identity-project.cjs +76 -39
  75. package/dist-lib/native-app-identity-project.mjs +76 -39
  76. package/dist-lib/native-app-identity.cjs +10 -3
  77. package/dist-lib/native-app-identity.mjs +10 -3
  78. package/dist-lib/native-firebase-metadata.cjs +1 -1
  79. package/dist-lib/native-firebase-metadata.mjs +1 -1
  80. package/dist-lib/plist.cjs +1 -1
  81. package/dist-lib/plist.mjs +1 -1
  82. package/dist-lib/profiles.cjs +5 -2
  83. package/dist-lib/public-brand.cjs +1 -1
  84. package/dist-lib/public-origins-lib-esm.json +25 -23
  85. package/dist-lib/public-origins-lib.json +138 -80
  86. package/dist-lib/react-native-host-modules.cjs +5 -2
  87. package/dist-lib/react-native-host-modules.mjs +5 -2
  88. package/dist-lib/reap-browser.cjs +1 -1
  89. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  90. package/dist-lib/sdk.cjs +4 -1
  91. package/dist-lib/sdk.mjs +4 -1
  92. package/dist-lib/skills.cjs +41126 -36493
  93. package/dist-lib/swift-compile.cjs +2103 -444
  94. package/dist-lib/swift-compile.mjs +2025 -369
  95. package/dist-lib/swift-package.cjs +1 -1
  96. package/dist-lib/swift-package.mjs +1 -1
  97. package/dist-lib/swift-submit.cjs +2 -2
  98. package/dist-lib/swift-submit.mjs +2 -2
  99. package/dist-lib/swift-toolchain.cjs +84 -24
  100. package/dist-lib/swift.cjs +1 -1
  101. package/dist-lib/vite-swift.cjs +6094 -2687
  102. package/dist-lib/vite.cjs +32 -10
  103. package/dist-lib/worklet-executable.cjs +1 -1
  104. package/dist-lib/worklet-executable.mjs +1 -1
  105. package/dist-types/packages/peach-compat/src/stubs/screen-transition-math.d.ts +1 -0
  106. package/dist-types/packages/peach-engine/src/cli-companion.d.ts +1 -0
  107. package/dist-types/packages/peach-engine/src/engine/canvaskit-renderer.d.ts +2 -0
  108. package/dist-types/packages/peach-engine/src/engine/font-config.d.ts +7 -4
  109. package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +1 -3
  110. package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +0 -5
  111. package/dist-types/packages/peach-engine/src/engine/memory-counts.d.ts +8 -0
  112. package/dist-types/packages/peach-engine/src/engine/node.d.ts +10 -1
  113. package/dist-types/packages/peach-engine/src/engine/paint-boundary.d.ts +1 -0
  114. package/dist-types/packages/peach-engine/src/engine/render-damage.d.ts +2 -2
  115. package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +25 -3
  116. package/dist-types/packages/peach-engine/src/engine/scroll-platform.d.ts +1 -15
  117. package/dist-types/packages/peach-engine/src/engine/scroll.d.ts +1 -3
  118. package/dist-types/packages/peach-engine/src/engine/text-first-baseline.d.ts +6 -0
  119. package/dist-types/packages/peach-engine/src/engine/text-paragraph.d.ts +1 -0
  120. package/dist-types/packages/peach-engine/src/engine/types.d.ts +23 -0
  121. package/dist-types/packages/peach-engine/src/ios/chrome-metrics.d.ts +6 -0
  122. package/dist-types/packages/peach-engine/src/metro-identity-contract.d.ts +33 -0
  123. package/dist-types/packages/peach-engine/src/native-preview-bundle.d.ts +2 -0
  124. package/dist-types/packages/peach-engine/src/preview/bundle-layout.d.ts +1 -1
  125. package/dist-types/packages/peach-engine/src/remote-stream/scene-recording.d.ts +2 -0
  126. package/dist-types/packages/peach-engine/src/render-worker/compositor-gpu.d.ts +1 -1
  127. package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +2 -0
  128. package/dist-types/packages/peach-engine/src/render-worker/metro-bundle-metadata.d.ts +28 -0
  129. package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +21 -1
  130. package/dist-types/packages/peach-engine/src/render-worker/prepared-boot-bundle.d.ts +7 -0
  131. package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +15 -2
  132. package/dist-types/packages/peach-engine/src/render-worker/scroll-mirror.d.ts +1 -0
  133. package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +6 -0
  134. package/dist-types/packages/peach-engine/src/render-worker/test-bridge-protocol.d.ts +3 -3
  135. package/dist-types/packages/peach-engine/src/render-worker/webgpu-frame-transaction.d.ts +1 -0
  136. package/dist-types/packages/peach-engine/src/render-worker/webgpu-readback-scheduler.d.ts +1 -1
  137. package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +14 -1
  138. package/dist-types/packages/peach-engine/src/rolldown-bundle-inventory.d.ts +8 -1
  139. package/dist-types/packages/peach-engine/src/rolldown-production-fingerprint.d.ts +1 -4
  140. package/dist-types/packages/peach-engine/src/rolldown-production-module.d.ts +12 -0
  141. package/dist-types/packages/peach-engine/src/rolldown-production-roles.d.ts +6 -0
  142. package/dist-types/packages/peach-engine/src/settings/devices.d.ts +6 -1
  143. package/dist-types/packages/peach-engine/src/settings/duo-fold-bus.d.ts +1 -0
  144. package/dist-types/packages/peach-engine/src/shell-events.d.ts +4 -0
  145. package/dist-types/packages/peach-kit/src/capabilities.d.ts +8 -0
  146. package/kotlin/README.md +3 -0
  147. package/kotlin/sdk.tar.gz +0 -0
  148. package/package.json +2 -1
  149. package/runtime-companion.json +1 -1
  150. package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccount.h +55 -0
  151. package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountCredential.h +35 -0
  152. package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountStore.h +94 -0
  153. package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountType.h +53 -0
  154. package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACError.h +37 -0
  155. package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/Accounts.h +13 -0
  156. package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/AccountsDefines.h +13 -0
  157. package/sdk/ios/System/Library/Frameworks/Accounts.framework/Modules/module.modulemap +5 -0
  158. package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h +1 -0
  159. package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetworkErrors.h +257 -0
  160. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFByteOrder.h +305 -0
  161. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +2 -0
  162. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGAffineTransform.h +204 -0
  163. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBitmapContext.h +260 -0
  164. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColor.h +164 -0
  165. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorConversionInfo.h +101 -0
  166. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorSpace.h +510 -0
  167. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGContext.h +1132 -0
  168. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGConvertColorDataWithFormat.h +34 -0
  169. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDataConsumer.h +83 -0
  170. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDataProvider.h +197 -0
  171. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGEXRToneMappingGamma.h +36 -0
  172. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGError.h +38 -0
  173. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGFont.h +312 -0
  174. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGFunction.h +106 -0
  175. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGradient.h +123 -0
  176. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGITUToneMapping.h +31 -0
  177. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGImage.h +409 -0
  178. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGLayer.h +78 -0
  179. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFArray.h +120 -0
  180. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFContentStream.h +55 -0
  181. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFContext.h +535 -0
  182. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDictionary.h +133 -0
  183. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDocument.h +252 -0
  184. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFMarkedContentItem.h +37 -0
  185. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFObject.h +67 -0
  186. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFOperatorTable.h +51 -0
  187. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFPage.h +101 -0
  188. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFScanner.h +123 -0
  189. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFStream.h +44 -0
  190. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFString.h +52 -0
  191. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFStructureElement.h +87 -0
  192. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPath.h +441 -0
  193. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPattern.h +89 -0
  194. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGRenderingBufferProvider.h +49 -0
  195. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGShading.h +124 -0
  196. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGToneMapping.h +85 -0
  197. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h +44 -252
  198. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Modules/module.modulemap +1 -0
  199. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/CFNetworkErrors.h +257 -0
  200. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes +58 -9
  201. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +992 -98
  202. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/NSURLSession+Network.h +32 -0
  203. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/Network.h +51 -0
  204. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/advertise_descriptor.h +193 -0
  205. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/browse_descriptor.h +163 -0
  206. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/browse_result.h +207 -0
  207. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/browser.h +285 -0
  208. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/connection.h +714 -0
  209. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/connection_group.h +629 -0
  210. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/connection_report.h +932 -0
  211. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/content_context.h +229 -0
  212. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/endpoint.h +390 -0
  213. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/error.h +135 -0
  214. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/ethernet_channel.h +349 -0
  215. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/framer_options.h +1187 -0
  216. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/group_descriptor.h +184 -0
  217. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/interface.h +150 -0
  218. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/ip_options.h +351 -0
  219. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/listener.h +438 -0
  220. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/nw_object.h +200 -0
  221. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/parameters.h +1205 -0
  222. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/path.h +392 -0
  223. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/path_monitor.h +216 -0
  224. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/privacy_context.h +188 -0
  225. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/protocol_options.h +126 -0
  226. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/proxy_config.h +357 -0
  227. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/quic_options.h +889 -0
  228. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/resolver_config.h +94 -0
  229. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/tcp_options.h +459 -0
  230. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/tls_options.h +115 -0
  231. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/txt_record.h +432 -0
  232. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/udp_options.h +112 -0
  233. package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/ws_options.h +743 -0
  234. package/sdk/ios/System/Library/Frameworks/Network.framework/Modules/module.modulemap +9 -0
  235. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h +395 -0
  236. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CABase.h +132 -0
  237. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CADisplayLink.h +107 -0
  238. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEmitterCell.h +153 -0
  239. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEmitterLayer.h +151 -0
  240. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAFrameRateRange.h +40 -0
  241. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAGradientLayer.h +78 -0
  242. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h +1078 -0
  243. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTiming.h +97 -0
  244. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTimingFunction.h +67 -0
  245. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAReplicatorLayer.h +65 -0
  246. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAScrollLayer.h +64 -0
  247. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAShapeLayer.h +135 -0
  248. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATextLayer.h +99 -0
  249. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATiledLayer.h +67 -0
  250. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATransaction.h +124 -0
  251. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATransform3D.h +138 -0
  252. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATransformLayer.h +40 -0
  253. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAValueFunction.h +78 -0
  254. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h +19 -38
  255. package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecureTransport.h +1757 -0
  256. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSAttributedString.h +19 -0
  257. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSParagraphStyle.h +28 -0
  258. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityConstants.h +114 -0
  259. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h +16 -0
  260. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarAppearance.h +47 -0
  261. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDataDetectors.h +20 -0
  262. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDatePicker.h +13 -0
  263. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h +16 -0
  264. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIEvent.h +84 -0
  265. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizer.h +119 -0
  266. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizerSubclass.h +66 -0
  267. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHoverGestureRecognizer.h +45 -0
  268. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h +161 -37
  269. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPickerView.h +76 -0
  270. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBar.h +8 -0
  271. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBarAppearance.h +78 -0
  272. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextInputTraits.h +29 -0
  273. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITouch.h +104 -0
  274. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITraitCollection.h +19 -0
  275. package/sdk/ios/usr/include/dns_sd.h +3616 -0
  276. package/sdk/ios/usr/include/dnssd.modulemap +4 -0
  277. package/sdk/ios/usr/include/module.modulemap +1 -0
  278. package/sdk/ios/usr/include/os/signpost.h +414 -0
  279. package/sdk/ios/usr/include/os.modulemap +5 -0
  280. package/sdk/ios/usr/include/sys/socketvar.h +191 -0
  281. package/sdk/ios/usr/include/sys/vsock.h +84 -0
  282. package/sdk/ios/wasm/include/errno.h +4 -20
  283. package/sdk/ios/wasm/include/pthread.h +3 -0
  284. package/sdk/ios/wasm/include/setjmp.h +57 -0
  285. package/sdk/ios/wasm/include/sys/resource.h +2 -2
  286. package/sdk/native-hashes.json +3 -3
  287. package/skills/contrast/SKILL.md +6 -5
  288. package/skills/peach-debug/SKILL.md +68 -265
  289. package/skills/peach-debug/references/accessibility.md +37 -73
  290. package/skills/peach-debug/references/commands.md +2 -2
  291. package/skills/peach-debug/references/events.md +74 -0
  292. package/skills/peach-perf/SKILL.md +64 -402
  293. package/skills/peach-perf/references/presentation.md +46 -0
  294. package/skills/peach-perf/references/profiling.md +93 -0
  295. package/skills/peach-perf/references/render-counters.md +57 -0
  296. package/skills/peach-setup/SKILL.md +66 -217
  297. package/skills/peach-setup/references/native-config.md +35 -0
  298. package/skills/peach-setup/references/reporting.md +28 -0
  299. package/skills/peach-test/SKILL.md +68 -285
  300. package/skills/peach-test/references/detox.md +69 -0
  301. package/skills/peach-test/references/maestro.md +95 -0
  302. package/skills/peach-visual/SKILL.md +53 -106
  303. package/src/android-autolinking.ts +1 -0
  304. package/src/android-bridge-packages.ts +279 -0
  305. package/src/appPackageContract.ts +14 -1
  306. package/src/assetCatalogContract.ts +8 -1
  307. package/src/bridge-contract.ts +6 -0
  308. package/src/bundle-channel.mjs +152 -60
  309. package/src/cli-runtime.ts +3 -0
  310. package/src/configured-bundle-producer.ts +10 -0
  311. package/src/device-catalog.ts +68 -4
  312. package/src/expo-discovery-cache.ts +10 -3
  313. package/src/expo-kotlin-host.ts +97 -26
  314. package/src/expo-native-workspace.ts +211 -52
  315. package/src/expo-swift-host.ts +149 -123
  316. package/src/expo-swift-ready.ts +5 -1
  317. package/src/expo-widget-assets.ts +76 -0
  318. package/src/expoKotlinContract.ts +12 -2
  319. package/src/expoSwiftContract.ts +21 -2
  320. package/src/generated/swift-c-predefines.json +1 -1
  321. package/src/home-paths.ts +6 -1
  322. package/src/host/bridge-host.ts +5 -0
  323. package/src/host/fetch-proxy-handler.ts +10 -0
  324. package/src/host/websocket-proxy.ts +7 -2
  325. package/src/kotlin-host.ts +204 -30
  326. package/src/kotlinSdkContract.ts +2 -1
  327. package/src/menu.ts +7 -0
  328. package/src/native-prebuilt.ts +154 -0
  329. package/src/nitro-adapter.lock.json +261 -261
  330. package/src/nitro-adapter.ts +118 -50
  331. package/src/nitro-bundle.ts +134 -96
  332. package/src/nitro-compile.ts +16 -6
  333. package/src/nitro-dependencies.ts +43 -28
  334. package/src/nitro-source.ts +142 -30
  335. package/src/nitro-superset.lock.json +103 -0
  336. package/src/nitro-superset.ts +137 -0
  337. package/src/nitroAdapterContract.ts +146 -98
  338. package/src/nitroContract.ts +68 -21
  339. package/src/react-bridge-importers.ts +1 -0
  340. package/src/react-native-bridge-modules.ts +2 -0
  341. package/src/react-native-host-modules.ts +4 -1
  342. package/src/settingsContract.ts +37 -1
  343. package/src/storageSnapshotContract.ts +29 -81
  344. package/src/swift-compile.ts +315 -117
  345. package/src/swift-compiler-digest.ts +2 -0
  346. package/src/swift-coverage/indexdump.ts +22 -6
  347. package/src/swift-coverage/indexing.ts +4 -4
  348. package/src/swift-coverage/sdk.ts +104 -20
  349. package/src/swift-coverage/types.ts +34 -0
  350. package/src/swift-coverage/xcode-packages.ts +61 -1
  351. package/src/swift-coverage/xcode.ts +19 -13
  352. package/src/swift-cxx-reachable.ts +1 -1
  353. package/src/swift-distribution.lock.json +18 -13
  354. package/src/swift-distribution.ts +57 -26
  355. package/src/swift-host.ts +51 -35
  356. package/src/swift-link-roots.ts +45 -18
  357. package/src/swift-objc-compile.ts +78 -2
  358. package/src/swift-objc-standin.ts +3 -0
  359. package/src/swift-shared-sdk.ts +85 -1
  360. package/src/swift-standin-emit.ts +6 -1
  361. package/src/swift-standins.ts +403 -19
  362. package/src/swift-submit.ts +17 -1
  363. package/src/swift-toolchain.ts +98 -23
  364. package/src/swift-wasm-prune.ts +1629 -0
  365. package/src/turbo-bundle.ts +82 -0
  366. package/src/turbo-compile.ts +120 -0
  367. package/src/turbo-runtime.lock.json +69 -0
  368. package/src/turbo-source.ts +754 -0
  369. package/src/vite-plugin-one.ts +15 -3
  370. package/src/vite-plugin.ts +82 -23
  371. package/src/wasm-optimize.ts +34 -0
  372. package/src/worker-system-chunks.ts +3 -3
  373. package/src/xcode-project.ts +52 -0
  374. package/src/xcode-target-members.ts +12 -1
@@ -0,0 +1,510 @@
1
+ /* CoreGraphics - CGColorSpace.h
2
+ Copyright (c) 1999-2013 Apple Inc.
3
+ All rights reserved. */
4
+
5
+ #ifndef CGCOLORSPACE_H_
6
+ #define CGCOLORSPACE_H_
7
+
8
+ #include <CoreFoundation/CFBase.h>
9
+ #include <CoreFoundation/CFAvailability.h>
10
+ #include <stdint.h>
11
+
12
+ typedef struct CF_BRIDGED_TYPE(id) CGColorSpace *CGColorSpaceRef; /* Swift Sendable */
13
+
14
+ #include <CoreGraphics/CGBase.h>
15
+ #include <CoreGraphics/CGDataProvider.h>
16
+
17
+ CF_IMPLICIT_BRIDGING_ENABLED
18
+
19
+ /* Color rendering intents. */
20
+
21
+ typedef CF_ENUM (int32_t, CGColorRenderingIntent) {
22
+ kCGRenderingIntentDefault,
23
+ kCGRenderingIntentAbsoluteColorimetric,
24
+ kCGRenderingIntentRelativeColorimetric,
25
+ kCGRenderingIntentPerceptual,
26
+ kCGRenderingIntentSaturation
27
+ };
28
+
29
+ /* The model of a color space. */
30
+
31
+ typedef CF_ENUM (int32_t, CGColorSpaceModel) {
32
+ kCGColorSpaceModelUnknown = -1,
33
+ kCGColorSpaceModelMonochrome,
34
+ kCGColorSpaceModelRGB,
35
+ kCGColorSpaceModelCMYK,
36
+ kCGColorSpaceModelLab,
37
+ kCGColorSpaceModelDeviceN,
38
+ kCGColorSpaceModelIndexed,
39
+ kCGColorSpaceModelPattern,
40
+ kCGColorSpaceModelXYZ
41
+ };
42
+
43
+ CF_ASSUME_NONNULL_BEGIN
44
+
45
+ #define CG_HDR_BT_2100 1
46
+
47
+ /* The name of the "Generic" Gray color space. It is a legacy
48
+ color space so use it only if you definitely know that you
49
+ need it. If you need just a reasonable monochrome color space,
50
+ please use Generic Gray Gamma 2.2, i.e. use
51
+ kCGColorSpaceGenericGrayGamma2_2 name instead of
52
+ kCGColorSpaceGenericGray. */
53
+
54
+ CG_EXTERN const CFStringRef kCGColorSpaceGenericGray
55
+ API_AVAILABLE(macos(10.4), ios(9.0));
56
+
57
+ /* The name of the "Generic" RGB color space. It is a legacy
58
+ color space so use it only if you definitely know that you
59
+ need it. If you need just a reasonable RGB color space,
60
+ please use sRGB, i.e. use kCGColorSpaceSRGB name
61
+ instead of kCGColorSpaceGenericRGB. */
62
+
63
+ CG_EXTERN const CFStringRef kCGColorSpaceGenericRGB
64
+ API_AVAILABLE(macos(10.4), ios(9.0));
65
+
66
+ /* The name of the "Generic" CMYK color space. */
67
+
68
+ CG_EXTERN const CFStringRef kCGColorSpaceGenericCMYK
69
+ API_AVAILABLE(macos(10.4), ios(9.0));
70
+
71
+ CG_EXTERN const CFStringRef kCGColorSpaceDisplayP3
72
+ API_AVAILABLE(macos(10.11.2), ios(9.3));
73
+
74
+ /* The name of the "Generic" linear RGB color space. This is the same as
75
+ `kCGColorSpaceGenericRGB' but with a 1.0 gamma. */
76
+
77
+ CG_EXTERN const CFStringRef kCGColorSpaceGenericRGBLinear
78
+ API_AVAILABLE(macos(10.5), ios(9.0));
79
+
80
+ /* The name of the Adobe RGB (1998) color space. For more information, see
81
+ "Adobe RGB (1998) Color Image Encoding", Version 2005-05, Adobe Systems
82
+ Inc. (http://www.adobe.com). */
83
+
84
+ CG_EXTERN const CFStringRef kCGColorSpaceAdobeRGB1998
85
+ API_AVAILABLE(macos(10.5), ios(9.0));
86
+
87
+ /* The name of the sRGB color space. The capitalization in the name, while
88
+ strictly inaccurate, avoids interpretational ambiguity. For more
89
+ information, see IEC 61966-2-1 (1999-10): "Multimedia systems and
90
+ equipment - Colour measurement and management - Part 2-1: Colour
91
+ management - Default RGB colour space - sRGB". */
92
+
93
+ CG_EXTERN const CFStringRef kCGColorSpaceSRGB
94
+ API_AVAILABLE(macos(10.5), ios(9.0));
95
+
96
+ /* The "Generic" gray color space with γ = 1.8. */
97
+
98
+ CG_EXTERN const CFStringRef kCGColorSpaceGenericGrayGamma2_2
99
+ API_AVAILABLE(macos(10.6), ios(9.0));
100
+
101
+ CG_EXTERN const CFStringRef kCGColorSpaceGenericXYZ
102
+ API_AVAILABLE(macos(10.11), ios(9.0));
103
+
104
+ /* The name of the "Generic" L*a*b* color space. This is the same as
105
+ L*a*b* colorspace created by `CGColorSpaceCreateLab' with
106
+ white_point[0.9642, 1.0, 0.8249] (i.e. D50), black_point[0.0, 0.0, 0.0]
107
+ and range [-128, 128, -128, 128]. */
108
+
109
+ CG_EXTERN const CFStringRef kCGColorSpaceGenericLab
110
+ API_AVAILABLE(macos(10.13), ios(11.0));
111
+
112
+ CG_EXTERN const CFStringRef kCGColorSpaceACESCGLinear
113
+ API_AVAILABLE(macos(10.11), ios(9.0));
114
+
115
+ CG_EXTERN const CFStringRef kCGColorSpaceITUR_709
116
+ API_AVAILABLE(macos(10.11), ios(9.0));
117
+
118
+ CG_EXTERN const CFStringRef kCGColorSpaceITUR_709_PQ
119
+ API_AVAILABLE(macos(12.0), ios(15.1));
120
+
121
+ CG_EXTERN const CFStringRef kCGColorSpaceITUR_709_HLG
122
+ API_AVAILABLE(macos(12.0), ios(15.1));
123
+
124
+ CG_EXTERN const CFStringRef kCGColorSpaceITUR_2020
125
+ API_AVAILABLE(macos(10.11), ios(9.0));
126
+
127
+ CG_EXTERN const CFStringRef kCGColorSpaceITUR_2020_sRGBGamma
128
+ API_AVAILABLE(macos(12.0), ios(15.1));
129
+
130
+ CG_EXTERN const CFStringRef kCGColorSpaceROMMRGB
131
+ API_AVAILABLE(macos(10.11), ios(9.0));
132
+
133
+ CG_EXTERN const CFStringRef kCGColorSpaceDCIP3
134
+ API_AVAILABLE(macos(10.11), ios(9.0));
135
+
136
+ CG_EXTERN const CFStringRef kCGColorSpaceLinearITUR_2020
137
+ API_AVAILABLE(macos(12.0), ios(15.0));
138
+
139
+ CG_EXTERN const CFStringRef kCGColorSpaceExtendedITUR_2020
140
+ API_AVAILABLE(macos(11.0), ios(14.0));
141
+
142
+ CG_EXTERN const CFStringRef kCGColorSpaceExtendedLinearITUR_2020
143
+ API_AVAILABLE(macos(10.14.3), ios(12.3));
144
+
145
+ CG_EXTERN const CFStringRef kCGColorSpaceLinearDisplayP3
146
+ API_AVAILABLE(macos(12.0), ios(15.0));
147
+
148
+ CG_EXTERN const CFStringRef kCGColorSpaceExtendedDisplayP3
149
+ API_AVAILABLE(macos(11.0), ios(14.0));
150
+
151
+ CG_EXTERN const CFStringRef kCGColorSpaceExtendedLinearDisplayP3
152
+ API_AVAILABLE(macos(10.14.3), ios(12.3));
153
+
154
+ CG_EXTERN const CFStringRef kCGColorSpaceITUR_2100_PQ
155
+ API_AVAILABLE(macos(11.0), ios(14.0));
156
+
157
+ CG_EXTERN const CFStringRef kCGColorSpaceITUR_2100_HLG
158
+ API_AVAILABLE(macos(11.0), ios(14.0));
159
+
160
+ CG_EXTERN const CFStringRef kCGColorSpaceDisplayP3_PQ
161
+ API_AVAILABLE(macos(10.15.4), ios(13.4));
162
+
163
+ CG_EXTERN const CFStringRef kCGColorSpaceDisplayP3_HLG
164
+ API_AVAILABLE(macos(10.14.6), ios(12.6));
165
+
166
+ CG_EXTERN const CFStringRef kCGColorSpaceITUR_2020_PQ
167
+ API_DEPRECATED("No longer supported", macos(10.15.4,11.0), ios(13.4,14.0)); // Use kCGColorSpaceITUR_2100_PQ.
168
+
169
+ CG_EXTERN const CFStringRef kCGColorSpaceITUR_2020_HLG
170
+ API_DEPRECATED("No longer supported", macos(10.15.6,11.0), ios(12.6,14.0)); // Use kCGColorSpaceITUR_2100_HLG.
171
+
172
+ CG_EXTERN const CFStringRef kCGColorSpaceDisplayP3_PQ_EOTF
173
+ API_DEPRECATED("No longer supported", macos(10.14.6,10.15.4), ios(12.6,13.4));
174
+
175
+ CG_EXTERN const CFStringRef kCGColorSpaceITUR_2020_PQ_EOTF
176
+ API_DEPRECATED("No longer supported", macos(10.14.6,10.15.4), ios(12.6,13.4)); // Use kCGColorSpaceITUR_2100_PQ.
177
+
178
+ /* The name of the extended sRGB color space.
179
+ The extended sRGB color space allows to specify colors beyond the range of [0.0, 1.0],
180
+ while still preserving the colorimetry and encoding of sRGB (see above for more details).
181
+ The negative values will be encoded as the signed reflection of original encoding functions,
182
+ i.e. y(x) = sign(x)*f(abs(x)) where f(x) represents the encoding function.
183
+ The capitalization in the name is for avoiding interpretational ambiguity. */
184
+
185
+ CG_EXTERN const CFStringRef kCGColorSpaceExtendedSRGB
186
+ API_AVAILABLE(macos(10.12), ios(10.0));
187
+
188
+ /* The name of the sRGB color space variant with linear gamma */
189
+
190
+ CG_EXTERN const CFStringRef kCGColorSpaceLinearSRGB
191
+ API_AVAILABLE(macos(10.12), ios(10.0));
192
+
193
+ /* The name of the extended sRGB color space variant with linear gamma */
194
+
195
+ CG_EXTERN const CFStringRef kCGColorSpaceExtendedLinearSRGB
196
+ API_AVAILABLE(macos(10.12), ios(10.0));
197
+
198
+ /* The name of the extended Gray color space. This color space has the same colorimetry as Generic Gray 2.2.
199
+ The negative values will be encoded as the signed reflection of original encoding functions,
200
+ i.e. y(x) = sign(x)*f(abs(x)) where f(x) represents the encoding function. */
201
+
202
+ CG_EXTERN const CFStringRef kCGColorSpaceExtendedGray
203
+ API_AVAILABLE(macos(10.12), ios(10.0));
204
+
205
+ /* The name of the Generic Gray 2.2 color space variant with linear gamma */
206
+
207
+ CG_EXTERN const CFStringRef kCGColorSpaceLinearGray
208
+ API_AVAILABLE(macos(10.12), ios(10.0));
209
+
210
+ /* The name of the extended Generic Gray 2.2 color space variant with linear gamma */
211
+
212
+ CG_EXTERN const CFStringRef kCGColorSpaceExtendedLinearGray
213
+ API_AVAILABLE(macos(10.12), ios(10.0));
214
+
215
+ CG_EXTERN const CFStringRef kCGColorSpaceCoreMedia709
216
+ API_AVAILABLE(macos(15.0), ios(18.0));
217
+
218
+ /* Create a DeviceGray color space. */
219
+
220
+ CG_EXTERN CGColorSpaceRef cg_nullable CGColorSpaceCreateDeviceGray(void)
221
+ API_AVAILABLE(macos(10.0), ios(2.0));
222
+
223
+ /* Create a DeviceRGB color space. */
224
+
225
+ CG_EXTERN CGColorSpaceRef cg_nullable CGColorSpaceCreateDeviceRGB(void)
226
+ API_AVAILABLE(macos(10.0), ios(2.0));
227
+
228
+ /* Create a DeviceCMYK color space. */
229
+
230
+ CG_EXTERN CGColorSpaceRef cg_nullable CGColorSpaceCreateDeviceCMYK(void)
231
+ API_AVAILABLE(macos(10.0), ios(2.0));
232
+
233
+ /* Create a calibrated gray color space. `whitePoint' is an array of 3
234
+ numbers specifying the tristimulus value, in the CIE 1931 XYZ-space, of
235
+ the diffuse white point. `blackPoint' is an array of 3 numbers specifying
236
+ the tristimulus value, in CIE 1931 XYZ-space, of the diffuse black point.
237
+ `gamma' defines the gamma for the gray component. Specifying `blackPoint'
238
+ is not required and in such a case `blackPoint' will be assumed to be
239
+ [0.0, 0.0, 0.0]. */
240
+
241
+ CG_EXTERN CGColorSpaceRef __nullable CGColorSpaceCreateCalibratedGray(const CGFloat
242
+ whitePoint[CG_NONNULL_ARRAY 3], const CGFloat blackPoint[__nullable 3], CGFloat gamma)
243
+ API_AVAILABLE(macos(10.0), ios(2.0));
244
+
245
+ /* Create a calibrated RGB color space. `whitePoint' is an array of 3
246
+ numbers specifying the tristimulus value, in the CIE 1931 XYZ-space, of
247
+ the diffuse white point. `blackPoint' is an array of 3 numbers specifying
248
+ the tristimulus value, in CIE 1931 XYZ-space, of the diffuse black point.
249
+ `gamma' is an array of 3 numbers specifying the gamma for the red, green,
250
+ and blue components of the color space. `matrix' is an array of 9 numbers
251
+ specifying the linear interpretation of the gamma-modified RGB values of
252
+ the color space with respect to the final XYZ representation.
253
+ Not all parameters need to be specified. If `blackPoint' is NULL it will be
254
+ assumed to be [0.0, 0.0, 0.0]. If `gamma' is NULL it will be assumed to be
255
+ linear for all components. If `matrix' is NULL it will be assumed to be identity. */
256
+
257
+ CG_EXTERN CGColorSpaceRef __nullable CGColorSpaceCreateCalibratedRGB(const CGFloat
258
+ whitePoint[CG_NONNULL_ARRAY 3], const CGFloat blackPoint[__nullable 3],
259
+ const CGFloat gamma[__nullable 3], const CGFloat matrix[__nullable 9])
260
+ API_AVAILABLE(macos(10.0), ios(2.0));
261
+
262
+ /* Create an L*a*b* color space. `whitePoint' is an array of 3 numbers
263
+ specifying the tristimulus value, in the CIE 1931 XYZ-space, of the
264
+ diffuse white point. `blackPoint' is an array of 3 numbers specifying the
265
+ tristimulus value, in CIE 1931 XYZ-space, of the diffuse black point.
266
+ `range' is an array of four numbers specifying the range of valid values
267
+ for the a* and b* components of the color space. Not all parameters need to be
268
+ specified. If `blackPoint'in NULL it will be assumed to be [0.0, 0.0, 0.0].
269
+ If `range' is NULL it will be assumed to be [-100, 100, -100, 100]. */
270
+
271
+ CG_EXTERN CGColorSpaceRef __nullable CGColorSpaceCreateLab(const CGFloat whitePoint[CG_NONNULL_ARRAY 3],
272
+ const CGFloat blackPoint[__nullable 3], const CGFloat range[__nullable 4])
273
+ API_AVAILABLE(macos(10.0), ios(2.0));
274
+
275
+ /* Create an ICC-based color space using the ICC profile raw data specified by
276
+ `data' which can be either CFDataRef or CGDataProviderRef */
277
+
278
+ CG_EXTERN CGColorSpaceRef __nullable CGColorSpaceCreateWithICCData(CFTypeRef cg_nullable data)
279
+ API_AVAILABLE(macos(10.12), ios(10.0));
280
+
281
+ /* Create an ICC-based color space. `nComponents' specifies the number of
282
+ color components in the color space defined by the ICC profile data. This
283
+ must match the number of components actually in the ICC profile, and must
284
+ be 1, 3, or 4. `range' is an array of 2*nComponents numbers specifying
285
+ the minimum and maximum valid values of the corresponding color
286
+ components, so that for color component k, range[2*k] <= c[k] <=
287
+ range[2*k+1], where c[k] is the k'th color component. `profile' is a data
288
+ provider specifying the ICC profile. `alternate' specifies an alternate
289
+ color space to be used in case the ICC profile is not supported. It must
290
+ have `nComponents' color components. If `alternate' is NULL, then the
291
+ color space used will be DeviceGray, DeviceRGB, or DeviceCMYK, depending
292
+ on whether `nComponents' is 1, 3, or 4, respectively. */
293
+
294
+ CG_EXTERN CGColorSpaceRef __nullable CGColorSpaceCreateICCBased(size_t nComponents,
295
+ const CGFloat * __nullable range, CGDataProviderRef cg_nullable profile,
296
+ CGColorSpaceRef __nullable alternate)
297
+ API_AVAILABLE(macos(10.0), ios(2.0));
298
+
299
+ /* Create an indexed color space. A sample value in an indexed color space
300
+ is treated as an index into the color table of the color space. `base'
301
+ specifies the base color space in which the values in the color table are
302
+ to be interpreted. `lastIndex' is an integer which specifies the maximum
303
+ valid index value; it must be less than or equal to 255. `colorTable' is
304
+ an array of m * (lastIndex + 1) bytes, where m is the number of color
305
+ components in the base color space. Each byte is an unsigned integer in
306
+ the range 0 to 255 that is scaled to the range of the corresponding color
307
+ component in the base color space. */
308
+
309
+ CG_EXTERN CGColorSpaceRef __nullable CGColorSpaceCreateIndexed(CGColorSpaceRef cg_nullable baseSpace,
310
+ size_t lastIndex, const unsigned char * cg_nullable colorTable)
311
+ API_AVAILABLE(macos(10.0), ios(2.0));
312
+
313
+ /* Create a pattern color space. `baseSpace' is the underlying color space
314
+ of the pattern color space. For colored patterns, `baseSpace' should be
315
+ NULL; for uncolored patterns, `baseSpace' specifies the color space of
316
+ colors which will be painted through the pattern. */
317
+
318
+ CG_EXTERN CGColorSpaceRef __nullable CGColorSpaceCreatePattern(CGColorSpaceRef __nullable baseSpace)
319
+ API_AVAILABLE(macos(10.0), ios(2.0));
320
+
321
+ typedef const struct CF_BRIDGED_TYPE(id) ColorSyncProfile* ColorSyncProfileRef;
322
+
323
+ CG_EXTERN const CFStringRef kCGColorSpaceExtendedRange;
324
+
325
+ /* Create a color space using ColorSyncProfileRef.
326
+ To create an extended color space include kCGColorSpaceExtendedRange/kCFBooleanTrue
327
+ key/value pair in `options' dictionary. */
328
+
329
+ CG_EXTERN CGColorSpaceRef __nullable CGColorSpaceCreateWithColorSyncProfile(ColorSyncProfileRef __nullable, CFDictionaryRef __nullable options)
330
+ API_AVAILABLE(macos(12.0), ios(15.0));
331
+
332
+ /* Create a color space using `name' as the identifier for the color
333
+ space. */
334
+
335
+ CG_EXTERN CGColorSpaceRef __nullable CGColorSpaceCreateWithName(CFStringRef cg_nullable name)
336
+ API_AVAILABLE(macos(10.2), ios(2.0));
337
+
338
+ /* Equivalent to `CFRetain(space)', except it doesn't crash (as CFRetain
339
+ does) if `space' is NULL. */
340
+
341
+ CG_EXTERN CGColorSpaceRef cg_nullable CGColorSpaceRetain(CGColorSpaceRef cg_nullable space)
342
+ API_AVAILABLE(macos(10.0), ios(2.0));
343
+
344
+ /* Equivalent to `CFRelease(space)', except it doesn't crash (as CFRelease
345
+ does) if `space' is NULL. */
346
+
347
+ CG_EXTERN void CGColorSpaceRelease(CGColorSpaceRef cg_nullable CF_RELEASES_ARGUMENT space)
348
+ API_AVAILABLE(macos(10.0), ios(2.0));
349
+
350
+ /* Return the system name of the color space. This applies to all color spaces
351
+ created using `CGColorSpaceCreateWithName' as well as to ICC-based colorspaces
352
+ created using `CGColorSpaceCreateWithICCData' or `CGColorSpaceCreateICCBased'
353
+ if they are equivalent to respective named system color spaces. Device color spaces
354
+ also return unique names. This function will return NULL for other color spaces.
355
+ Example:
356
+ CGColorSpaceRef space = CGColorSpaceCreateWithICCData(icc_data);
357
+ CFStringRef name = CGColorSpaceGetName(space);
358
+ if (name != NULL && CFEqual(name, kCGColorSpaceDisplayP3)) {
359
+ // your color space is Display P3
360
+ ...
361
+ }
362
+ */
363
+
364
+ CG_EXTERN CFStringRef __nullable CGColorSpaceGetName(CGColorSpaceRef cg_nullable space)
365
+ API_AVAILABLE(macos(10.13), ios(11.0));
366
+
367
+ /* Same as `CGColorSpaceGetName' but with ownership released to the caller. */
368
+ CG_EXTERN CFStringRef __nullable CGColorSpaceCopyName(CGColorSpaceRef cg_nullable space)
369
+ API_AVAILABLE(macos(10.6), ios(10.0));
370
+
371
+ /* Return the CFTypeID for CGColorSpaces. */
372
+
373
+ CG_EXTERN CFTypeID CGColorSpaceGetTypeID(void)
374
+ API_AVAILABLE(macos(10.2), ios(2.0));
375
+
376
+ /* Return the number of color components in the color space `space'. */
377
+
378
+ CG_EXTERN size_t CGColorSpaceGetNumberOfComponents(CGColorSpaceRef cg_nullable space)
379
+ API_AVAILABLE(macos(10.0), ios(2.0));
380
+
381
+ /* Return the color space model of `space'. */
382
+
383
+ CG_EXTERN CGColorSpaceModel CGColorSpaceGetModel(CGColorSpaceRef cg_nullable space)
384
+ API_AVAILABLE(macos(10.5), ios(2.0));
385
+
386
+ /* Return the base color space of `space' if `space' is a pattern or indexed
387
+ color space; otherwise, return NULL. To determine whether a color space
388
+ is an indexed or pattern color space, use `CGColorSpaceGetModel'. */
389
+
390
+ CG_EXTERN CGColorSpaceRef __nullable CGColorSpaceGetBaseColorSpace(CGColorSpaceRef cg_nullable space)
391
+ API_AVAILABLE(macos(10.5), ios(2.0));
392
+
393
+ /* Similar to 'CGColorSpaceGetBaseColorSpace' if `space' is a pattern or indexed
394
+ color space, in which case the retained base color space is returned.
395
+ In the case of a color space containing image specific metadata associated with
396
+ the gain map, a new color space without the metadata will be returned.
397
+ For all other color spaces this function will return NULL.
398
+ */
399
+
400
+ CG_EXTERN CGColorSpaceRef CGColorSpaceCopyBaseColorSpace(CGColorSpaceRef space)
401
+ API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), watchos(11.0));
402
+
403
+ /* Return the number of entries in the color table of `space' if `space' is
404
+ an indexed color space; otherwise, return 0. To determine whether a color
405
+ space is an indexed color space, use `CGColorSpaceGetModel'. */
406
+
407
+ CG_EXTERN size_t CGColorSpaceGetColorTableCount(CGColorSpaceRef cg_nullable space)
408
+ API_AVAILABLE(macos(10.5), ios(2.0));
409
+
410
+ /* Copy the entries in the color table of `space' to `table' if `space' is
411
+ an indexed color space; otherwise, do nothing. The array pointed to by
412
+ `table' should be at least as large as the number of entries in the color
413
+ table; the returned data is in the same format as that passed to
414
+ `CGColorSpaceCreateIndexed'. To determine whether a color space is an
415
+ indexed color space, use `CGColorSpaceGetModel'. */
416
+
417
+ CG_EXTERN void CGColorSpaceGetColorTable(CGColorSpaceRef cg_nullable space,
418
+ uint8_t * cg_nullable table) API_AVAILABLE(macos(10.5), ios(2.0));
419
+
420
+ /* Return a copy of the ICC profile data of `space', or NULL if the color space
421
+ doesn't have an ICC profile. */
422
+
423
+ CG_EXTERN CFDataRef __nullable CGColorSpaceCopyICCData(CGColorSpaceRef cg_nullable space)
424
+ API_AVAILABLE(macos(10.12), ios(10.0));
425
+
426
+ /* Return true if gamut of the RGB color space is greater than 85% of NTSC gamut */
427
+
428
+ CG_EXTERN bool CGColorSpaceIsWideGamutRGB(CGColorSpaceRef)
429
+ API_AVAILABLE(macos(10.12), ios(10.0));
430
+
431
+ /* Return true if color space uses transfer functions defined in ITU Rec.2100
432
+ Please use CGColorSpaceUsesITUR_2100TF instead */
433
+
434
+ CG_EXTERN bool CGColorSpaceIsHDR(CGColorSpaceRef)
435
+ API_AVAILABLE(macos(10.15), ios(13.0));
436
+
437
+ /* Return true if color space uses transfer functions defined in ITU Rec.2100 */
438
+
439
+ CG_EXTERN bool CGColorSpaceUsesITUR_2100TF(CGColorSpaceRef)
440
+ API_AVAILABLE(macos(11.0), ios(14.0));
441
+
442
+ CG_EXTERN bool CGColorSpaceIsPQBased(CGColorSpaceRef s)
443
+ API_AVAILABLE(macos(12.0), ios(15.0));
444
+
445
+ CG_EXTERN bool CGColorSpaceIsHLGBased(CGColorSpaceRef s)
446
+ API_AVAILABLE(macos(12.0), ios(15.0));
447
+
448
+
449
+ /* Return true if `space' can be used as a destination color space; false
450
+ otherwise. */
451
+
452
+ CG_EXTERN bool CGColorSpaceSupportsOutput(CGColorSpaceRef cg_nullable space)
453
+ API_AVAILABLE(macos(10.12), ios(10.0));
454
+
455
+ /* CGColorSpaceCopyPropertyList will return NULL for special color spaces
456
+ (e.g. kCGColorSpaceDeviceN or kCGColorSpacePattern), except Indexed Color Space */
457
+ CG_EXTERN CFPropertyListRef __nullable
458
+ CGColorSpaceCopyPropertyList(CGColorSpaceRef space)
459
+ API_AVAILABLE(macos(10.12), ios(10.0));
460
+
461
+ CG_EXTERN CGColorSpaceRef __nullable
462
+ CGColorSpaceCreateWithPropertyList(CFPropertyListRef plist)
463
+ API_AVAILABLE(macos(10.12), ios(10.0));
464
+
465
+ /* Return true if `space' uses extended range [-Inf, +Inf]; false
466
+ otherwise. */
467
+
468
+ CG_EXTERN bool CGColorSpaceUsesExtendedRange(CGColorSpaceRef cg_nullable space)
469
+ API_AVAILABLE(macos(10.12), ios(10.0));
470
+
471
+ /* Create a linearized copy of the color space if the color space is matrix based.
472
+ Return NULL if otherwise */
473
+ CG_EXTERN CGColorSpaceRef __nullable CGColorSpaceCreateLinearized(CGColorSpaceRef cg_nullable space)
474
+ API_AVAILABLE(macos(11.0), ios(14.0));
475
+
476
+ /* Create a copy of the color space which uses extended range [-Inf, +Inf] if the color space is
477
+ matrix based. Return NULL if otherwise */
478
+ CG_EXTERN CGColorSpaceRef __nullable CGColorSpaceCreateExtended(CGColorSpaceRef cg_nullable space)
479
+ API_AVAILABLE(macos(11.0), ios(14.0));
480
+
481
+ /* Create a linearized copy of the color space which uses extended range [-Inf, +Inf]
482
+ if the color space is matrix based. Return NULL if otherwise */
483
+ CG_EXTERN CGColorSpaceRef __nullable CGColorSpaceCreateExtendedLinearized(CGColorSpaceRef cg_nullable space)
484
+ API_AVAILABLE(macos(11.0), ios(14.0));
485
+
486
+ /* Create a copy of the color space which uses standard range [0.0, 1.0]. */
487
+ CG_EXTERN CGColorSpaceRef CGColorSpaceCreateCopyWithStandardRange(CGColorSpaceRef cg_nullable space)
488
+ API_AVAILABLE(macos(13.0), ios(16.0));
489
+
490
+ /* Deprecated functions */
491
+
492
+ /* Please use `CGColorSpaceCreateWithICCData' */
493
+ CG_EXTERN CGColorSpaceRef __nullable CGColorSpaceCreateWithICCProfile(CFDataRef cg_nullable data)
494
+ API_DEPRECATED("No longer supported", macos(10.5,10.13), ios(2.0,11.0));
495
+
496
+ /* Please use `CGColorSpaceCopyICCData' */
497
+ CG_EXTERN CFDataRef __nullable CGColorSpaceCopyICCProfile(CGColorSpaceRef cg_nullable space)
498
+ API_DEPRECATED("No longer supported", macos(10.5,10.13), ios(2.0,11.0));
499
+
500
+ /* Please use `CGColorSpaceCreateWithColorSyncProfile' */
501
+ CG_EXTERN CGColorSpaceRef __nullable
502
+ CGColorSpaceCreateWithPlatformColorSpace(const void * cg_nullable ref)
503
+ API_DEPRECATED("No longer supported", macos(10.0,12.0), ios(9.0,15.0));
504
+
505
+
506
+ CF_ASSUME_NONNULL_END
507
+
508
+ CF_IMPLICIT_BRIDGING_DISABLED
509
+
510
+ #endif /* CGCOLORSPACE_H_ */