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,305 @@
1
+ /* CFByteOrder.h
2
+ Copyright (c) 1995-2019, Apple Inc. and the Swift project authors
3
+
4
+ Portions Copyright (c) 2014-2019, Apple Inc. and the Swift project authors
5
+ Licensed under Apache License v2.0 with Runtime Library Exception
6
+ See http://swift.org/LICENSE.txt for license information
7
+ See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
8
+ */
9
+
10
+ #if !defined(__COREFOUNDATION_CFBYTEORDER__)
11
+ #define __COREFOUNDATION_CFBYTEORDER__ 1
12
+
13
+ #include <CoreFoundation/CFBase.h>
14
+ #if (TARGET_OS_OSX || TARGET_OS_IPHONE) && !defined(CF_USE_OSBYTEORDER_H)
15
+ #include <libkern/OSByteOrder.h>
16
+ #define CF_USE_OSBYTEORDER_H 1
17
+ #endif
18
+
19
+ CF_EXTERN_C_BEGIN
20
+
21
+ enum __CFByteOrder {
22
+ CFByteOrderUnknown,
23
+ CFByteOrderLittleEndian,
24
+ CFByteOrderBigEndian
25
+ };
26
+ typedef CFIndex CFByteOrder;
27
+
28
+ CF_INLINE CFByteOrder CFByteOrderGetCurrent(void) {
29
+ #if CF_USE_OSBYTEORDER_H
30
+ int32_t byteOrder = OSHostByteOrder();
31
+ switch (byteOrder) {
32
+ case OSLittleEndian: return CFByteOrderLittleEndian;
33
+ case OSBigEndian: return CFByteOrderBigEndian;
34
+ default: break;
35
+ }
36
+ return CFByteOrderUnknown;
37
+ #else
38
+ #if __LITTLE_ENDIAN__
39
+ return CFByteOrderLittleEndian;
40
+ #elif __BIG_ENDIAN__
41
+ return CFByteOrderBigEndian;
42
+ #else
43
+ return CFByteOrderUnknown;
44
+ #endif
45
+ #endif
46
+ }
47
+
48
+ CF_INLINE uint16_t CFSwapInt16(uint16_t arg) {
49
+ #if CF_USE_OSBYTEORDER_H
50
+ return OSSwapInt16(arg);
51
+ #else
52
+ uint16_t result;
53
+ result = (uint16_t)(((arg << 8) & 0xFF00) | ((arg >> 8) & 0xFF));
54
+ return result;
55
+ #endif
56
+ }
57
+
58
+ CF_INLINE uint32_t CFSwapInt32(uint32_t arg) {
59
+ #if CF_USE_OSBYTEORDER_H
60
+ return OSSwapInt32(arg);
61
+ #else
62
+ uint32_t result;
63
+ result = ((arg & 0xFF) << 24) | ((arg & 0xFF00) << 8) | ((arg >> 8) & 0xFF00) | ((arg >> 24) & 0xFF);
64
+ return result;
65
+ #endif
66
+ }
67
+
68
+ CF_INLINE uint64_t CFSwapInt64(uint64_t arg) {
69
+ #if CF_USE_OSBYTEORDER_H
70
+ return OSSwapInt64(arg);
71
+ #else
72
+ union CFSwap {
73
+ uint64_t sv;
74
+ uint32_t ul[2];
75
+ } tmp, result;
76
+ tmp.sv = arg;
77
+ result.ul[0] = CFSwapInt32(tmp.ul[1]);
78
+ result.ul[1] = CFSwapInt32(tmp.ul[0]);
79
+ return result.sv;
80
+ #endif
81
+ }
82
+
83
+ CF_INLINE uint16_t CFSwapInt16BigToHost(uint16_t arg) {
84
+ #if CF_USE_OSBYTEORDER_H
85
+ return OSSwapBigToHostInt16(arg);
86
+ #elif __BIG_ENDIAN__
87
+ return arg;
88
+ #else
89
+ return CFSwapInt16(arg);
90
+ #endif
91
+ }
92
+
93
+ CF_INLINE uint32_t CFSwapInt32BigToHost(uint32_t arg) {
94
+ #if CF_USE_OSBYTEORDER_H
95
+ return OSSwapBigToHostInt32(arg);
96
+ #elif __BIG_ENDIAN__
97
+ return arg;
98
+ #else
99
+ return CFSwapInt32(arg);
100
+ #endif
101
+ }
102
+
103
+ CF_INLINE uint64_t CFSwapInt64BigToHost(uint64_t arg) {
104
+ #if CF_USE_OSBYTEORDER_H
105
+ return OSSwapBigToHostInt64(arg);
106
+ #elif __BIG_ENDIAN__
107
+ return arg;
108
+ #else
109
+ return CFSwapInt64(arg);
110
+ #endif
111
+ }
112
+
113
+ CF_INLINE uint16_t CFSwapInt16HostToBig(uint16_t arg) {
114
+ #if CF_USE_OSBYTEORDER_H
115
+ return OSSwapHostToBigInt16(arg);
116
+ #elif __BIG_ENDIAN__
117
+ return arg;
118
+ #else
119
+ return CFSwapInt16(arg);
120
+ #endif
121
+ }
122
+
123
+ CF_INLINE uint32_t CFSwapInt32HostToBig(uint32_t arg) {
124
+ #if CF_USE_OSBYTEORDER_H
125
+ return OSSwapHostToBigInt32(arg);
126
+ #elif __BIG_ENDIAN__
127
+ return arg;
128
+ #else
129
+ return CFSwapInt32(arg);
130
+ #endif
131
+ }
132
+
133
+ CF_INLINE uint64_t CFSwapInt64HostToBig(uint64_t arg) {
134
+ #if CF_USE_OSBYTEORDER_H
135
+ return OSSwapHostToBigInt64(arg);
136
+ #elif __BIG_ENDIAN__
137
+ return arg;
138
+ #else
139
+ return CFSwapInt64(arg);
140
+ #endif
141
+ }
142
+
143
+ CF_INLINE uint16_t CFSwapInt16LittleToHost(uint16_t arg) {
144
+ #if CF_USE_OSBYTEORDER_H
145
+ return OSSwapLittleToHostInt16(arg);
146
+ #elif __LITTLE_ENDIAN__
147
+ return arg;
148
+ #else
149
+ return CFSwapInt16(arg);
150
+ #endif
151
+ }
152
+
153
+ CF_INLINE uint32_t CFSwapInt32LittleToHost(uint32_t arg) {
154
+ #if CF_USE_OSBYTEORDER_H
155
+ return OSSwapLittleToHostInt32(arg);
156
+ #elif __LITTLE_ENDIAN__
157
+ return arg;
158
+ #else
159
+ return CFSwapInt32(arg);
160
+ #endif
161
+ }
162
+
163
+ CF_INLINE uint64_t CFSwapInt64LittleToHost(uint64_t arg) {
164
+ #if CF_USE_OSBYTEORDER_H
165
+ return OSSwapLittleToHostInt64(arg);
166
+ #elif __LITTLE_ENDIAN__
167
+ return arg;
168
+ #else
169
+ return CFSwapInt64(arg);
170
+ #endif
171
+ }
172
+
173
+ CF_INLINE uint16_t CFSwapInt16HostToLittle(uint16_t arg) {
174
+ #if CF_USE_OSBYTEORDER_H
175
+ return OSSwapHostToLittleInt16(arg);
176
+ #elif __LITTLE_ENDIAN__
177
+ return arg;
178
+ #else
179
+ return CFSwapInt16(arg);
180
+ #endif
181
+ }
182
+
183
+ CF_INLINE uint32_t CFSwapInt32HostToLittle(uint32_t arg) {
184
+ #if CF_USE_OSBYTEORDER_H
185
+ return OSSwapHostToLittleInt32(arg);
186
+ #elif __LITTLE_ENDIAN__
187
+ return arg;
188
+ #else
189
+ return CFSwapInt32(arg);
190
+ #endif
191
+ }
192
+
193
+ CF_INLINE uint64_t CFSwapInt64HostToLittle(uint64_t arg) {
194
+ #if CF_USE_OSBYTEORDER_H
195
+ return OSSwapHostToLittleInt64(arg);
196
+ #elif __LITTLE_ENDIAN__
197
+ return arg;
198
+ #else
199
+ return CFSwapInt64(arg);
200
+ #endif
201
+ }
202
+
203
+ typedef struct {uint32_t v;} CFSwappedFloat32;
204
+ typedef struct {uint64_t v;} CFSwappedFloat64;
205
+
206
+ CF_INLINE CFSwappedFloat32 CFConvertFloat32HostToSwapped(Float32 arg) {
207
+ union CFSwap {
208
+ Float32 v;
209
+ CFSwappedFloat32 sv;
210
+ } result;
211
+ result.v = arg;
212
+ #if __LITTLE_ENDIAN__
213
+ result.sv.v = CFSwapInt32(result.sv.v);
214
+ #endif
215
+ return result.sv;
216
+ }
217
+
218
+ CF_INLINE Float32 CFConvertFloat32SwappedToHost(CFSwappedFloat32 arg) {
219
+ union CFSwap {
220
+ Float32 v;
221
+ CFSwappedFloat32 sv;
222
+ } result;
223
+ result.sv = arg;
224
+ #if __LITTLE_ENDIAN__
225
+ result.sv.v = CFSwapInt32(result.sv.v);
226
+ #endif
227
+ return result.v;
228
+ }
229
+
230
+ CF_INLINE CFSwappedFloat64 CFConvertFloat64HostToSwapped(Float64 arg) {
231
+ union CFSwap {
232
+ Float64 v;
233
+ CFSwappedFloat64 sv;
234
+ } result;
235
+ result.v = arg;
236
+ #if __LITTLE_ENDIAN__
237
+ result.sv.v = CFSwapInt64(result.sv.v);
238
+ #endif
239
+ return result.sv;
240
+ }
241
+
242
+ CF_INLINE Float64 CFConvertFloat64SwappedToHost(CFSwappedFloat64 arg) {
243
+ union CFSwap {
244
+ Float64 v;
245
+ CFSwappedFloat64 sv;
246
+ } result;
247
+ result.sv = arg;
248
+ #if __LITTLE_ENDIAN__
249
+ result.sv.v = CFSwapInt64(result.sv.v);
250
+ #endif
251
+ return result.v;
252
+ }
253
+
254
+ CF_INLINE CFSwappedFloat32 CFConvertFloatHostToSwapped(float arg) {
255
+ union CFSwap {
256
+ float v;
257
+ CFSwappedFloat32 sv;
258
+ } result;
259
+ result.v = arg;
260
+ #if __LITTLE_ENDIAN__
261
+ result.sv.v = CFSwapInt32(result.sv.v);
262
+ #endif
263
+ return result.sv;
264
+ }
265
+
266
+ CF_INLINE float CFConvertFloatSwappedToHost(CFSwappedFloat32 arg) {
267
+ union CFSwap {
268
+ float v;
269
+ CFSwappedFloat32 sv;
270
+ } result;
271
+ result.sv = arg;
272
+ #if __LITTLE_ENDIAN__
273
+ result.sv.v = CFSwapInt32(result.sv.v);
274
+ #endif
275
+ return result.v;
276
+ }
277
+
278
+ CF_INLINE CFSwappedFloat64 CFConvertDoubleHostToSwapped(double arg) {
279
+ union CFSwap {
280
+ double v;
281
+ CFSwappedFloat64 sv;
282
+ } result;
283
+ result.v = arg;
284
+ #if __LITTLE_ENDIAN__
285
+ result.sv.v = CFSwapInt64(result.sv.v);
286
+ #endif
287
+ return result.sv;
288
+ }
289
+
290
+ CF_INLINE double CFConvertDoubleSwappedToHost(CFSwappedFloat64 arg) {
291
+ union CFSwap {
292
+ double v;
293
+ CFSwappedFloat64 sv;
294
+ } result;
295
+ result.sv = arg;
296
+ #if __LITTLE_ENDIAN__
297
+ result.sv.v = CFSwapInt64(result.sv.v);
298
+ #endif
299
+ return result.v;
300
+ }
301
+
302
+ CF_EXTERN_C_END
303
+
304
+ #endif /* ! __COREFOUNDATION_CFBYTEORDER__ */
305
+
@@ -19,6 +19,7 @@
19
19
  #include <stddef.h>
20
20
  #include <stdbool.h>
21
21
 
22
+ #include <CoreFoundation/CFByteOrder.h>
22
23
  #include <CoreFoundation/CFCGTypes.h>
23
24
  #include <CoreFoundation/CFCalendar.h>
24
25
  #include <CoreFoundation/CFNumber.h>
@@ -63,6 +64,7 @@ typedef struct {
63
64
  extern CFUUIDRef CFUUIDCreateFromUUIDBytes(CFAllocatorRef alloc, CFUUIDBytes bytes);
64
65
  extern const CFStringRef kCFBundleExecutableKey;
65
66
  extern const CFStringRef kCFBundleIdentifierKey;
67
+ extern const CFStringRef kCFBundleNameKey;
66
68
  extern const CFStringRef kCFBundleVersionKey;
67
69
  #ifdef __cplusplus
68
70
  }
@@ -0,0 +1,204 @@
1
+ /* CoreGraphics - CGAffineTransform.h
2
+ Copyright (c) 1998-2011 Apple Inc.
3
+ All rights reserved. */
4
+
5
+ #ifndef CGAFFINETRANSFORM_H_
6
+ #define CGAFFINETRANSFORM_H_
7
+
8
+ #include <CoreGraphics/CGBase.h>
9
+ #include <CoreGraphics/CGGeometry.h>
10
+ #include <CoreFoundation/CFBase.h>
11
+
12
+ CF_IMPLICIT_BRIDGING_ENABLED
13
+
14
+ #ifndef CF_DEFINES_CG_TYPES
15
+ typedef struct CGAffineTransform CGAffineTransform;
16
+
17
+ struct CGAffineTransform {
18
+ CGFloat a, b, c, d;
19
+ CGFloat tx, ty;
20
+ };
21
+
22
+ #endif /* CF_DEFINES_CG_TYPES */
23
+
24
+ #ifndef CF_DEFINES_CGAFFINETRANSFORMCOMPONENTS
25
+ /* |------------------ CGAffineTransformComponents ----------------|
26
+ *
27
+ * | a b 0 | | sx 0 0 | | 1 0 0 | | cos(t) sin(t) 0 | | 1 0 0 |
28
+ * | c d 0 | = | 0 sy 0 | * | sh 1 0 | * |-sin(t) cos(t) 0 | * | 0 1 0 |
29
+ * | tx ty 1 | | 0 0 1 | | 0 0 1 | | 0 0 1 | | tx ty 1 |
30
+ * CGAffineTransform scale shear rotation translation
31
+ */
32
+
33
+ typedef struct CGAffineTransformComponents
34
+ {
35
+ /* initial scaling in X and Y dimensions. {sx,sy} */
36
+ /* Negative values indicate the image has been flipped in this dimension. */
37
+ CGSize scale;
38
+
39
+ /* shear distortion (sh). Turns rectangles to parallelograms. 0 for no shear. Typically 0. */
40
+ CGFloat horizontalShear;
41
+
42
+ /* Rotation angle in radians about the origin. (t) Sign convention for clockwise rotation */
43
+ /* may differ between various Apple frameworks based on origin placement. Please see discussion. */
44
+ CGFloat rotation;
45
+
46
+ /* Displacement from the origin (ty, ty) */
47
+ CGVector translation;
48
+ } CGAffineTransformComponents;
49
+
50
+ #endif /* CF_DEFINES_CGAFFINETRANSFORMCOMPONENTS */
51
+
52
+
53
+ /* The identity transform: [ 1 0 0 1 0 0 ]. */
54
+
55
+ CG_EXTERN const CGAffineTransform CGAffineTransformIdentity
56
+ API_AVAILABLE(macos(10.0), ios(2.0));
57
+
58
+ /* Return the transform [ a b c d tx ty ]. */
59
+
60
+ CG_EXTERN CGAffineTransform CG_PURE CGAffineTransformMake(CGFloat a, CGFloat b,
61
+ CGFloat c, CGFloat d, CGFloat tx, CGFloat ty)
62
+ API_AVAILABLE(macos(10.0), ios(2.0));
63
+
64
+ /* Return a transform which translates by `(tx, ty)':
65
+ t' = [ 1 0 0 1 tx ty ] */
66
+
67
+ CG_EXTERN CGAffineTransform CG_PURE CGAffineTransformMakeTranslation(CGFloat tx,
68
+ CGFloat ty) API_AVAILABLE(macos(10.0), ios(2.0));
69
+
70
+ /* Return a transform which scales by `(sx, sy)':
71
+ t' = [ sx 0 0 sy 0 0 ] */
72
+
73
+ CG_EXTERN CGAffineTransform CG_PURE CGAffineTransformMakeScale(CGFloat sx, CGFloat sy)
74
+ API_AVAILABLE(macos(10.0), ios(2.0));
75
+
76
+ /* Return a transform which rotates by `angle' radians:
77
+ t' = [ cos(angle) sin(angle) -sin(angle) cos(angle) 0 0 ] */
78
+
79
+ CG_EXTERN CGAffineTransform CG_PURE CGAffineTransformMakeRotation(CGFloat angle)
80
+ API_AVAILABLE(macos(10.0), ios(2.0));
81
+
82
+ /* Return true if `t' is the identity transform, false otherwise. */
83
+
84
+ CG_EXTERN bool CG_PURE CGAffineTransformIsIdentity(CGAffineTransform t)
85
+ API_AVAILABLE(macos(10.4), ios(2.0));
86
+
87
+ /* Translate `t' by `(tx, ty)' and return the result:
88
+ t' = [ 1 0 0 1 tx ty ] * t */
89
+
90
+ CG_EXTERN CGAffineTransform CG_PURE CGAffineTransformTranslate(CGAffineTransform t,
91
+ CGFloat tx, CGFloat ty) API_AVAILABLE(macos(10.0), ios(2.0));
92
+
93
+ /* Scale `t' by `(sx, sy)' and return the result:
94
+ t' = [ sx 0 0 sy 0 0 ] * t */
95
+
96
+ CG_EXTERN CGAffineTransform CG_PURE CGAffineTransformScale(CGAffineTransform t,
97
+ CGFloat sx, CGFloat sy) API_AVAILABLE(macos(10.0), ios(2.0));
98
+
99
+ /* Rotate `t' by `angle' radians and return the result:
100
+ t' = [ cos(angle) sin(angle) -sin(angle) cos(angle) 0 0 ] * t */
101
+
102
+ CG_EXTERN CGAffineTransform CG_PURE CGAffineTransformRotate(CGAffineTransform t,
103
+ CGFloat angle) API_AVAILABLE(macos(10.0), ios(2.0));
104
+
105
+ /* Invert `t' and return the result. If `t' has zero determinant, then `t'
106
+ is returned unchanged. */
107
+
108
+ CG_EXTERN CGAffineTransform CG_PURE CGAffineTransformInvert(CGAffineTransform t)
109
+ API_AVAILABLE(macos(10.0), ios(2.0));
110
+
111
+ /* Concatenate `t2' to `t1' and return the result:
112
+ t' = t1 * t2 */
113
+
114
+ CG_EXTERN CGAffineTransform CG_PURE CGAffineTransformConcat(CGAffineTransform t1,
115
+ CGAffineTransform t2) API_AVAILABLE(macos(10.0), ios(2.0));
116
+
117
+ /* Return true if `t1' and `t2' are equal, false otherwise. */
118
+
119
+ CG_EXTERN bool CG_PURE CGAffineTransformEqualToTransform(CGAffineTransform t1,
120
+ CGAffineTransform t2) API_AVAILABLE(macos(10.4), ios(2.0));
121
+
122
+ /* Transform `point' by `t' and return the result:
123
+ p' = p * t
124
+ where p = [ x y 1 ]. */
125
+
126
+ CG_EXTERN CGPoint CG_PURE CGPointApplyAffineTransform(CGPoint point,
127
+ CGAffineTransform t) API_AVAILABLE(macos(10.0), ios(2.0));
128
+
129
+ /* Transform `size' by `t' and return the result:
130
+ s' = s * t
131
+ where s = [ width height 0 ]. */
132
+
133
+ CG_EXTERN CGSize CG_PURE CGSizeApplyAffineTransform(CGSize size, CGAffineTransform t)
134
+ API_AVAILABLE(macos(10.0), ios(2.0));
135
+
136
+ /* Transform `rect' by `t' and return the result. Since affine transforms do
137
+ not preserve rectangles in general, this function returns the smallest
138
+ rectangle which contains the transformed corner points of `rect'. If `t'
139
+ consists solely of scales, flips and translations, then the returned
140
+ rectangle coincides with the rectangle constructed from the four
141
+ transformed corners. */
142
+
143
+ CG_EXTERN CGRect CG_PURE CGRectApplyAffineTransform(CGRect rect, CGAffineTransform t)
144
+ API_AVAILABLE(macos(10.4), ios(2.0));
145
+
146
+ /*! @abstract Decompose a CGAffineTransform into a scale * shear * rotation * translation
147
+ * @discussion This decomposition method may be used to provide insight into what a
148
+ * arbitrary CGAffineTransform does. This may be necessary, for example, because
149
+ * an algorithm would like to know what the scaling portion of a transform is before rotation,
150
+ * or perhaps because some part of a transform is undesired and your application would like
151
+ * to replace a portion of it with a different transformation.
152
+ *
153
+ * Since there are many ways to make a affine transform out of other affine transforms
154
+ * this method can not tell us the ordering of geometric steps used to create the original
155
+ * CGAffineTransform. It tells us what the transform does, not how it was made.
156
+ *
157
+ * @param transform The CGAffineTransform to decompose
158
+ * @return A decomposed set of geometric operations, the product of which is the CGAffineTransform. */
159
+ CG_EXTERN
160
+ CGAffineTransformComponents CG_PURE CGAffineTransformDecompose( CGAffineTransform transform )
161
+ CF_REFINED_FOR_SWIFT API_AVAILABLE(macos(13.0), ios(16.0));
162
+
163
+ /*! @abstract Create CGAffineTransform from scale * shear * rotation * translation CGAffineTransformComponents
164
+ * @param components The set of CGAffineTransformComponents to use to create a new CGAffineTransform
165
+ * @return A new CGAffineTransform built from the provided components */
166
+ CG_EXTERN
167
+ CGAffineTransform CG_PURE CGAffineTransformMakeWithComponents( CGAffineTransformComponents components )
168
+ CF_REFINED_FOR_SWIFT API_AVAILABLE(macos(13.0), ios(16.0));
169
+
170
+ /*** Definitions of inline functions. ***/
171
+
172
+ CG_INLINE CGAffineTransform
173
+ __CGAffineTransformMake(CGFloat a, CGFloat b, CGFloat c, CGFloat d,
174
+ CGFloat tx, CGFloat ty)
175
+ {
176
+ CGAffineTransform t;
177
+ t.a = a; t.b = b; t.c = c; t.d = d; t.tx = tx; t.ty = ty;
178
+ return t;
179
+ }
180
+ #define CGAffineTransformMake __CGAffineTransformMake
181
+
182
+ CG_INLINE CGPoint
183
+ __CGPointApplyAffineTransform(CGPoint point, CGAffineTransform t)
184
+ {
185
+ CGPoint p;
186
+ p.x = (CGFloat)((double)t.a * point.x + (double)t.c * point.y + t.tx);
187
+ p.y = (CGFloat)((double)t.b * point.x + (double)t.d * point.y + t.ty);
188
+ return p;
189
+ }
190
+ #define CGPointApplyAffineTransform __CGPointApplyAffineTransform
191
+
192
+ CG_INLINE CGSize
193
+ __CGSizeApplyAffineTransform(CGSize size, CGAffineTransform t)
194
+ {
195
+ CGSize s;
196
+ s.width = (CGFloat)((double)t.a * size.width + (double)t.c * size.height);
197
+ s.height = (CGFloat)((double)t.b * size.width + (double)t.d * size.height);
198
+ return s;
199
+ }
200
+ #define CGSizeApplyAffineTransform __CGSizeApplyAffineTransform
201
+
202
+ CF_IMPLICIT_BRIDGING_DISABLED
203
+
204
+ #endif /* CGAFFINETRANSFORM_H_ */