peachsim 0.1.1684 → 0.1.1700

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 (406) hide show
  1. package/cli/bridge-flow-runner.ts +61 -39
  2. package/cli/commands/agent-wrapper.ts +21 -10
  3. package/cli/commands/control.ts +27 -7
  4. package/cli/commands/coverage-swift.ts +72 -5
  5. package/cli/commands/coverage.ts +1 -1
  6. package/cli/commands/detect.ts +17 -4
  7. package/cli/commands/inspect/actions.ts +1 -0
  8. package/cli/commands/maestro-compare.ts +25 -99
  9. package/cli/commands/screenshot.ts +12 -0
  10. package/cli/help-core.ts +3 -4
  11. package/cli/maestro-compare.ts +172 -4
  12. package/cli/outbound-endpoints.ts +2 -10
  13. package/detox/index.ts +15 -0
  14. package/detox/launch-permissions.ts +169 -0
  15. package/dist-lib/agent-daemon-client.cjs +2 -2
  16. package/dist-lib/agent-events.cjs +2 -2
  17. package/dist-lib/attached-projects.cjs +2 -2
  18. package/dist-lib/auth/shared-session.cjs +2 -2
  19. package/dist-lib/backend-origin.cjs +2 -2
  20. package/dist-lib/beta.cjs +2 -2
  21. package/dist-lib/beta.mjs +1 -1
  22. package/dist-lib/bridge-constants.cjs +2 -2
  23. package/dist-lib/bridge-contract-input.cjs +2 -2
  24. package/dist-lib/bridge-contract-input.mjs +1 -1
  25. package/dist-lib/bridge-contract.cjs +2 -2
  26. package/dist-lib/bridge-contract.mjs +1 -1
  27. package/dist-lib/bundle-channel.cjs +6729 -3591
  28. package/dist-lib/capture-contract.cjs +2 -2
  29. package/dist-lib/capture-contract.mjs +1 -1
  30. package/dist-lib/cloud-contract.cjs +2 -2
  31. package/dist-lib/cloud-contract.mjs +1 -1
  32. package/dist-lib/cloud-test-args.cjs +2 -2
  33. package/dist-lib/cloud-test-args.mjs +1 -1
  34. package/dist-lib/cloud.cjs +2 -2
  35. package/dist-lib/cloud.mjs +1 -1
  36. package/dist-lib/config.cjs +2 -2
  37. package/dist-lib/config.mjs +1 -1
  38. package/dist-lib/detox/index.cjs +104 -3
  39. package/dist-lib/dev-bundle-resolution.cjs +208 -44
  40. package/dist-lib/expo-swift-bundle.cjs +3475 -2137
  41. package/dist-lib/expo-swift-metadata.cjs +2 -2
  42. package/dist-lib/expo-swift-metadata.mjs +1 -1
  43. package/dist-lib/home-paths.cjs +2 -2
  44. package/dist-lib/host/bridge-host.cjs +8970 -3652
  45. package/dist-lib/host/fetch-proxy-handler.cjs +332 -40
  46. package/dist-lib/host/fetch-proxy-overrides.cjs +2 -2
  47. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  48. package/dist-lib/host/replacement-module-handler.cjs +2 -2
  49. package/dist-lib/host/websocket-proxy.cjs +2 -2
  50. package/dist-lib/index.cjs +469 -143
  51. package/dist-lib/jump-to-source-babel.cjs +2 -2
  52. package/dist-lib/jump-to-source-native.cjs +2 -2
  53. package/dist-lib/kotlin-host.cjs +2 -2
  54. package/dist-lib/menu.cjs +2 -2
  55. package/dist-lib/menu.mjs +1 -1
  56. package/dist-lib/metro-fingerprint-registry.cjs +2 -2
  57. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  58. package/dist-lib/metro-production-bundle.cjs +2 -2
  59. package/dist-lib/metro-production-bundle.mjs +1 -1
  60. package/dist-lib/metro.cjs +465 -139
  61. package/dist-lib/native-app-identity-project.cjs +209 -86
  62. package/dist-lib/native-app-identity-project.mjs +251 -116
  63. package/dist-lib/native-app-identity.cjs +2 -2
  64. package/dist-lib/native-app-identity.mjs +1 -1
  65. package/dist-lib/native-firebase-metadata.cjs +2 -2
  66. package/dist-lib/native-firebase-metadata.mjs +1 -1
  67. package/dist-lib/plist.cjs +2 -2
  68. package/dist-lib/plist.mjs +1 -1
  69. package/dist-lib/profiles.cjs +2 -2
  70. package/dist-lib/public-brand.cjs +2 -2
  71. package/dist-lib/public-origins-lib-esm.json +27 -23
  72. package/dist-lib/public-origins-lib.json +221 -88
  73. package/dist-lib/react-native-host-modules.cjs +2 -2
  74. package/dist-lib/react-native-host-modules.mjs +1 -1
  75. package/dist-lib/reap-browser.cjs +2 -2
  76. package/dist-lib/scripts/dev-server-scanner.cjs +206 -31
  77. package/dist-lib/sdk.cjs +3 -3
  78. package/dist-lib/sdk.mjs +2 -2
  79. package/dist-lib/skills.cjs +20997 -16596
  80. package/dist-lib/swift-compile.cjs +3075 -459
  81. package/dist-lib/swift-compile.mjs +3028 -415
  82. package/dist-lib/swift-package.cjs +131 -69
  83. package/dist-lib/swift-package.mjs +126 -68
  84. package/dist-lib/swift-submit.cjs +2 -2
  85. package/dist-lib/swift-submit.mjs +1 -1
  86. package/dist-lib/swift-toolchain.cjs +31 -4
  87. package/dist-lib/swift.cjs +2 -2
  88. package/dist-lib/vite-swift.cjs +5049 -1704
  89. package/dist-lib/vite.cjs +261 -58
  90. package/dist-lib/worklet-executable.cjs +8 -5
  91. package/dist-lib/worklet-executable.mjs +7 -4
  92. package/dist-types/packages/peach-engine/src/engine/clipboardContract.d.ts +15 -1
  93. package/dist-types/packages/peach-engine/src/engine/font-config.d.ts +1 -1
  94. package/dist-types/packages/peach-engine/src/engine/node.d.ts +1 -0
  95. package/dist-types/packages/peach-engine/src/engine/scroll-pan-contacts.d.ts +3 -1
  96. package/dist-types/packages/peach-engine/src/engine/scroll.d.ts +7 -0
  97. package/dist-types/packages/peach-engine/src/engine/types.d.ts +2 -1
  98. package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +2 -2
  99. package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +3 -0
  100. package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +1 -0
  101. package/dist-types/packages/peach-engine/src/render-worker/scroll-mirror.d.ts +17 -0
  102. package/dist-types/packages/peach-engine/src/render-worker/worker-input-runtime.d.ts +2 -1
  103. package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +3 -0
  104. package/dist-types/packages/peach-globals/src/cameraBridgeContract.d.ts +1 -0
  105. package/dist-types/packages/peach-globals/src/clipboardBridgeContract.d.ts +6 -0
  106. package/dist-types/packages/peach-globals/src/index.d.ts +1 -1
  107. package/dist-types/packages/peach-globals/src/nodeContract.d.ts +3 -2
  108. package/dist-types/packages/peach-globals/src/replayBridgeContract.d.ts +1 -0
  109. package/dist-types/packages/peach-globals/src/shellHostBridgeContract.d.ts +3 -0
  110. package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -0
  111. package/dist-types/packages/peach-kit/src/materials/types.d.ts +1 -0
  112. package/package.json +1 -1
  113. package/runtime-companion.json +1 -1
  114. package/scripts/dev-server-scanner.ts +4 -0
  115. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Alpha.h +2282 -0
  116. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/BasicImageTypes.h +55 -0
  117. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Conversion.h +10551 -6
  118. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Convolution.h +4236 -3
  119. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Geometry.h +827 -8
  120. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Histogram.h +1369 -0
  121. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Morphology.h +1243 -0
  122. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Transform.h +1747 -0
  123. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage.h +291 -2
  124. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_CVUtilities.h +1283 -0
  125. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_Types.h +811 -91
  126. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_Utilities.h +1342 -25
  127. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/BNNS/bnns.h +2738 -0
  128. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/BNNS/bnns_constants.h +1685 -0
  129. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/BNNS/bnns_graph.h +913 -0
  130. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/BNNS/bnns_structures.h +1917 -0
  131. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/LinearAlgebra.h +23 -0
  132. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/arithmetic.h +209 -0
  133. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/base.h +104 -0
  134. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/linear_systems.h +77 -0
  135. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/matrix.h +554 -0
  136. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/norms.h +58 -0
  137. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/object.h +186 -0
  138. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/splat.h +86 -0
  139. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/vector.h +364 -0
  140. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Quadrature/Integration.h +195 -0
  141. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Quadrature/Quadrature.h +44 -0
  142. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/BLAS/BLAS.h +2330 -0
  143. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/BLAS/Types.h +123 -0
  144. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/Solve.h +8339 -0
  145. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/SolveImplementation.h +520 -0
  146. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/SolveImplementationTyped.h +1893 -0
  147. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/Sparse.h +10 -0
  148. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/blas_new.h +1098 -0
  149. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/cblas.h +859 -0
  150. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/cblas_new.h +1134 -0
  151. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/clapack.h +10555 -0
  152. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/fortran_blas.h +695 -0
  153. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/lapack.h +38526 -0
  154. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/lapack_types.h +60 -0
  155. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/lapack_version.h +20 -0
  156. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/thread_api.h +50 -0
  157. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vBasicOps.h +1218 -0
  158. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vBigNum.h +1458 -0
  159. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vDSP.h +10377 -0
  160. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vDSP_translate.h +167 -0
  161. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vForce.h +1243 -0
  162. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vecLib.h +114 -0
  163. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vecLibTypes.h +146 -0
  164. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vectorOps.h +1106 -0
  165. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vfp.h +294 -0
  166. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Headers/Accelerate.h +25 -1
  167. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFArray.h +673 -0
  168. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h +232 -0
  169. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h +827 -0
  170. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCalendar.h +121 -0
  171. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCharacterSet.h +387 -0
  172. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFData.h +79 -0
  173. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDate.h +122 -0
  174. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h +674 -0
  175. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFError.h +182 -0
  176. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFLocale.h +213 -0
  177. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFNotificationCenter.h +82 -0
  178. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFNumber.h +129 -0
  179. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFSet.h +491 -0
  180. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h +883 -2
  181. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFTimeZone.h +98 -0
  182. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +11 -220
  183. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h +2 -6
  184. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLAvailability.h +22 -0
  185. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBackgroundActivitySession.h +145 -0
  186. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconIdentityCondition.h +113 -0
  187. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconIdentityConstraint.h +34 -0
  188. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconRegion.h +225 -0
  189. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBody.h +26 -0
  190. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLCircularGeographicCondition.h +59 -0
  191. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLCircularRegion.h +64 -0
  192. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLCondition.h +48 -0
  193. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLError.h +52 -0
  194. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLErrorDomain.h +24 -0
  195. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLGeocoder.h +55 -0
  196. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLHeading.h +117 -0
  197. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocation.h +9 -0
  198. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager+CLVisitExtensions.h +45 -0
  199. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager.h +877 -0
  200. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManagerDelegate.h +225 -0
  201. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationPushServiceError.h +33 -0
  202. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationPushServiceExtension.h +28 -0
  203. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationUpdater.h +250 -0
  204. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitor.h +140 -0
  205. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitorConfiguration.h +77 -0
  206. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitoringEvent.h +184 -0
  207. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitoringRecord.h +57 -0
  208. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLPlacemark.h +98 -0
  209. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLRegion.h +123 -0
  210. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLServiceSession.h +211 -0
  211. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLVisit.h +66 -0
  212. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CoreLocation.h +46 -0
  213. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Modules/module.modulemap +7 -0
  214. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +98 -3
  215. package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceBase.h +52 -0
  216. package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceObjC.h +240 -0
  217. package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceRef.h +474 -0
  218. package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceTypes.h +66 -0
  219. package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Modules/module.modulemap +10 -0
  220. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4AccelerationStructure.h +9 -0
  221. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4Archive.h +16 -0
  222. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4ArgumentTable.h +17 -0
  223. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4BinaryFunction.h +13 -0
  224. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4BinaryFunctionDescriptor.h +14 -0
  225. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4BufferRange.h +79 -0
  226. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandAllocator.h +15 -0
  227. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandBuffer.h +17 -0
  228. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandEncoder.h +16 -0
  229. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandQueue.h +19 -0
  230. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommitFeedback.h +15 -0
  231. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4Compiler.h +13 -0
  232. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CompilerTask.h +13 -0
  233. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4ComputeCommandEncoder.h +19 -0
  234. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4ComputePipeline.h +13 -0
  235. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4Counters.h +19 -0
  236. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4FunctionDescriptor.h +13 -0
  237. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4LibraryDescriptor.h +13 -0
  238. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4LibraryFunctionDescriptor.h +13 -0
  239. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4LinkingDescriptor.h +13 -0
  240. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4MachineLearningCommandEncoder.h +17 -0
  241. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4MachineLearningPipeline.h +13 -0
  242. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4MeshRenderPipeline.h +13 -0
  243. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4PipelineDataSetSerializer.h +13 -0
  244. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4PipelineState.h +13 -0
  245. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4RenderCommandEncoder.h +17 -0
  246. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4RenderPass.h +17 -0
  247. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4RenderPipeline.h +13 -0
  248. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4SpecializedFunctionDescriptor.h +13 -0
  249. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4StitchedFunctionDescriptor.h +13 -0
  250. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4TileRenderPipeline.h +13 -0
  251. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAccelerationStructure.h +1212 -0
  252. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAccelerationStructureCommandEncoder.h +322 -0
  253. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAccelerationStructureTypes.h +224 -0
  254. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAllocation.h +22 -0
  255. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLArgument.h +279 -0
  256. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLArgumentEncoder.h +199 -0
  257. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBinaryArchive.h +142 -0
  258. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBlitCommandEncoder.h +266 -0
  259. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBlitPass.h +82 -0
  260. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBuffer.h +94 -0
  261. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCaptureManager.h +113 -0
  262. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCaptureScope.h +43 -0
  263. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCommandBuffer.h +449 -0
  264. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCommandEncoder.h +148 -0
  265. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCommandQueue.h +102 -0
  266. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLComputeCommandEncoder.h +350 -0
  267. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLComputePass.h +90 -0
  268. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h +274 -0
  269. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCounters.h +225 -0
  270. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDataType.h +232 -0
  271. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDefines.h +39 -0
  272. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDepthStencil.h +93 -0
  273. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDevice.h +1122 -0
  274. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDeviceCertification.h +29 -0
  275. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDrawable.h +36 -0
  276. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDynamicLibrary.h +81 -0
  277. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLEvent.h +79 -0
  278. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFence.h +22 -0
  279. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionConstantValues.h +30 -0
  280. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionDescriptor.h +95 -0
  281. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionHandle.h +29 -0
  282. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionLog.h +37 -0
  283. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionStitching.h +131 -0
  284. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLGPUAddress.h +19 -0
  285. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLHeap.h +284 -0
  286. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIOCommandBuffer.h +10 -0
  287. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIOCommandQueue.h +11 -0
  288. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIOCompressor.h +10 -0
  289. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIndirectCommandBuffer.h +157 -0
  290. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIndirectCommandEncoder.h +110 -0
  291. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIntersectionFunctionTable.h +186 -0
  292. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLLibrary.h +549 -0
  293. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLLinkedFunctions.h +57 -0
  294. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLLogState.h +65 -0
  295. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLParallelRenderCommandEncoder.h +77 -0
  296. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLPipeline.h +57 -0
  297. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLPixelFormat.h +342 -0
  298. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRasterizationRate.h +323 -0
  299. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRenderCommandEncoder.h +1068 -0
  300. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRenderPass.h +411 -0
  301. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRenderPipeline.h +788 -0
  302. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResidencySet.h +141 -0
  303. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResource.h +307 -0
  304. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResourceStateCommandEncoder.h +125 -0
  305. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResourceStatePass.h +85 -0
  306. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResourceViewPool.h +22 -0
  307. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLSampler.h +252 -0
  308. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLStageInputOutputDescriptor.h +158 -0
  309. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTensor.h +17 -0
  310. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTexture.h +460 -0
  311. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTextureViewPool.h +18 -0
  312. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTypes.h +125 -0
  313. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLVertexDescriptor.h +153 -0
  314. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLVisibleFunctionTable.h +45 -0
  315. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/Metal.h +94 -0
  316. package/sdk/ios/System/Library/Frameworks/Metal.framework/Modules/module.modulemap +6 -0
  317. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h +1 -0
  318. package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecBase.h +906 -3
  319. package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecCertificate.h +613 -0
  320. package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecItem.h +1284 -29
  321. package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecPolicy.h +441 -0
  322. package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecTrust.h +845 -0
  323. package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/Security.h +4 -0
  324. package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTDefines.h +35 -0
  325. package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTTagClass.h +33 -0
  326. package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTType.h +504 -0
  327. package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Headers/CLEssentialsAvailability.h +14 -0
  328. package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Headers/CLLocationEssentials.h +444 -0
  329. package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Headers/LocationEssentials.h +14 -0
  330. package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Modules/module.modulemap +14 -0
  331. package/sdk/ios/usr/include/AvailabilityMacros.h +3985 -0
  332. package/sdk/ios/usr/include/complex.h +167 -0
  333. package/sdk/ios/usr/include/copyfile.h +143 -0
  334. package/sdk/ios/usr/include/dispatch/dispatch.h +5 -0
  335. package/sdk/ios/usr/include/mach/mach_types.h +1 -0
  336. package/sdk/ios/usr/include/malloc/_malloc.h +143 -0
  337. package/sdk/ios/usr/include/malloc/_malloc_type.h +153 -0
  338. package/sdk/ios/usr/include/malloc/_platform.h +80 -0
  339. package/sdk/ios/usr/include/malloc/_ptrcheck.h +43 -0
  340. package/sdk/ios/usr/include/malloc/malloc.h +768 -0
  341. package/sdk/ios/usr/include/math.h +835 -2
  342. package/sdk/ios/usr/include/os/availability.h +168 -6
  343. package/sdk/ios/usr/include/os/base.h +351 -0
  344. package/sdk/ios/usr/include/os/clock.h +18 -0
  345. package/sdk/ios/usr/include/os/lock.h +232 -10
  346. package/sdk/ios/usr/include/os/log.h +521 -38
  347. package/sdk/ios/usr/include/os/object.h +320 -3
  348. package/sdk/ios/usr/include/os/trace.h +492 -0
  349. package/sdk/ios/usr/include/os/trace_base.h +167 -0
  350. package/sdk/ios/usr/include/os/workgroup.h +37 -0
  351. package/sdk/ios/usr/include/os/workgroup_base.h +91 -0
  352. package/sdk/ios/usr/include/os/workgroup_interval.h +156 -0
  353. package/sdk/ios/usr/include/os/workgroup_object.h +359 -0
  354. package/sdk/ios/usr/include/os/workgroup_parallel.h +76 -0
  355. package/sdk/ios/usr/include/sys/cdefs.h +38 -1
  356. package/sdk/ios/wasm/include/unistd.h +3 -0
  357. package/skills/contrast/SKILL.md +3 -0
  358. package/src/codex-client.ts +11 -6
  359. package/src/dev-bundle-resolution.ts +124 -48
  360. package/src/expo-native-workspace.ts +176 -0
  361. package/src/expo-swift-host.ts +161 -26
  362. package/src/expo-swift-ready.ts +14 -28
  363. package/src/expoSwiftContract.ts +4 -1
  364. package/src/generated/swift-c-predefines.json +2044 -0
  365. package/src/host/bridge-host.ts +5 -0
  366. package/src/installed-package-versions.ts +14 -1
  367. package/src/metro-project-root.ts +44 -33
  368. package/src/native-app-identity-project.ts +1 -0
  369. package/src/nitro-adapter.lock.json +916 -10
  370. package/src/nitro-adapter.ts +33 -24
  371. package/src/nitro-bundle.ts +108 -21
  372. package/src/nitro-compile.ts +36 -5
  373. package/src/nitro-source.ts +13 -3
  374. package/src/nitroAdapterContract.ts +100 -20
  375. package/src/nitroContract.ts +18 -2
  376. package/src/node-http-fetch.ts +116 -0
  377. package/src/packageVersionsContract.ts +46 -0
  378. package/src/serverDiscoveryContract.ts +1 -0
  379. package/src/settingsContract.ts +0 -30
  380. package/src/swift-binary-modules.ts +20 -5
  381. package/src/swift-compile.ts +598 -81
  382. package/src/swift-coverage/package.ts +3 -1
  383. package/src/swift-coverage/xcode-assets.ts +66 -5
  384. package/src/swift-coverage/xcode-packages.ts +11 -6
  385. package/src/swift-host.ts +347 -60
  386. package/src/swift-objc-compile.ts +52 -10
  387. package/src/swift-objc-metadata.ts +2 -2
  388. package/src/swift-objc-platform.ts +2 -2
  389. package/src/swift-objc-standin.ts +53 -13
  390. package/src/swift-package-manifest.ts +151 -28
  391. package/src/swift-package.ts +158 -75
  392. package/src/swift-packages.ts +141 -44
  393. package/src/swift-source-file.ts +10 -15
  394. package/src/swift-source-pods.ts +126 -41
  395. package/src/swift-standin-digest.ts +77 -0
  396. package/src/swift-standin-emit.ts +40 -4
  397. package/src/swift-standins.ts +154 -31
  398. package/src/swift-submit.ts +5 -0
  399. package/src/swift-toolchain.ts +38 -0
  400. package/src/swiftContract.ts +168 -75
  401. package/src/target-matcher.ts +15 -2
  402. package/src/vite-plugin.ts +0 -10
  403. package/src/worklet-executable.ts +7 -3
  404. package/src/xcode-json-project.ts +14 -2
  405. package/src/xcode-project.ts +215 -100
  406. package/src/settings-flags.ts +0 -107
@@ -0,0 +1,827 @@
1
+ /* CFBase.h
2
+ Copyright (c) 1998-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_CFBASE__)
11
+ #define __COREFOUNDATION_CFBASE__ 1
12
+
13
+ #include <stddef.h>
14
+
15
+ #if __has_include(<CoreFoundation/TargetConditionals.h>)
16
+ #include <CoreFoundation/TargetConditionals.h>
17
+ #else
18
+ #include <TargetConditionals.h>
19
+ #endif
20
+
21
+ #include <CoreFoundation/CFAvailability.h>
22
+
23
+ #if (defined(__CYGWIN32__) || defined(_WIN32)) && !defined(__WIN32__)
24
+ #define __WIN32__ 1
25
+ #endif
26
+
27
+ #if defined(_WIN64) && !defined(__WIN64__)
28
+ #define __WIN64__ 1
29
+ #endif
30
+
31
+ #if defined(__WIN64__) && !defined(__LLP64__)
32
+ #define __LLP64__ 1
33
+ #endif
34
+
35
+ #if defined(_MSC_VER) && defined(_M_IX86)
36
+ #define __i386__ 1
37
+ #endif
38
+
39
+ #if (defined(__i386__) || defined(__x86_64__)) && !defined(__LITTLE_ENDIAN__)
40
+ #define __LITTLE_ENDIAN__ 1
41
+ #endif
42
+
43
+ #if !defined(__BIG_ENDIAN__) && !defined(__LITTLE_ENDIAN__)
44
+ #error Do not know the endianess of this architecture
45
+ #endif
46
+
47
+ #if !(defined(__BIG_ENDIAN__) && __BIG_ENDIAN__) && !(defined(__LITTLE_ENDIAN__) && __LITTLE_ENDIAN__)
48
+ #error Both __BIG_ENDIAN__ and __LITTLE_ENDIAN__ cannot be false
49
+ #endif
50
+
51
+ #if (defined(__BIG_ENDIAN__) && __BIG_ENDIAN__) && (defined(__LITTLE_ENDIAN__) && __LITTLE_ENDIAN__)
52
+ #error Both __BIG_ENDIAN__ and __LITTLE_ENDIAN__ cannot be true
53
+ #endif
54
+
55
+ // Some compilers provide the capability to test if certain features are available. This macro provides a compatibility path for other compilers.
56
+ #ifndef __has_feature
57
+ #define __has_feature(x) 0
58
+ #endif
59
+
60
+ // Some compilers provide the capability to test if certain attributes are available. This macro provides a compatibility path for other compilers.
61
+ #ifndef __has_attribute
62
+ #define __has_attribute(x) 0
63
+ #endif
64
+
65
+ #ifndef __has_extension
66
+ #define __has_extension(x) 0
67
+ #endif
68
+
69
+ #if defined(__GNUC__) || TARGET_OS_WIN32
70
+ #include <stdint.h>
71
+ #include <stdbool.h>
72
+ #endif
73
+
74
+ #if __BLOCKS__ && (TARGET_OS_OSX || TARGET_OS_IPHONE)
75
+ #include <Block.h>
76
+ #endif
77
+
78
+ #ifndef CF_OPEN_SOURCE
79
+ #if defined(__CF_USE_FRAMEWORK_INCLUDES__) || (TARGET_OS_OSX || TARGET_OS_IPHONE)
80
+ #include <MacTypes.h>
81
+ #endif
82
+ #else
83
+ #if (TARGET_OS_OSX || TARGET_OS_IPHONE)
84
+ #include <libkern/OSTypes.h>
85
+ #endif
86
+ #endif
87
+
88
+ // from <malloc/malloc.h>
89
+ typedef unsigned long long CFAllocatorTypeID;
90
+
91
+ #if TARGET_OS_MAC
92
+ #include <malloc/_malloc.h>
93
+ #if defined(_MALLOC_TYPE_ENABLED) && _MALLOC_TYPE_ENABLED && defined(_MALLOC_TYPED)
94
+ #if defined(CF_BUILDING_CF) || defined(NSBUILDINGFOUNDATION)
95
+ // Enable TMO internally to Foundation/CoreFoundation whenever the system allocator enables it
96
+ #define CF_ENABLE_TYPED_MEMORY_OPERATIONS 1
97
+ #elif defined(__ENVIRONMENT_OS_VERSION_MIN_REQUIRED__) && \
98
+ ((TARGET_OS_IOS && __ENVIRONMENT_OS_VERSION_MIN_REQUIRED__ >= 190000) || \
99
+ (TARGET_OS_OSX && __ENVIRONMENT_OS_VERSION_MIN_REQUIRED__ >= 160000) || \
100
+ (TARGET_OS_VISION && __ENVIRONMENT_OS_VERSION_MIN_REQUIRED__ >= 30000) || \
101
+ (TARGET_OS_WATCH && __ENVIRONMENT_OS_VERSION_MIN_REQUIRED__ >= 120000) || \
102
+ (TARGET_OS_TV && __ENVIRONMENT_OS_VERSION_MIN_REQUIRED__ >= 190000))
103
+ // Only enable TMO if we're building with a deployment target >= iOS 19.0 (and aligned trains)
104
+ #define CF_ENABLE_TYPED_MEMORY_OPERATIONS 1
105
+ #endif
106
+ #endif /* defined(_MALLOC_TYPE_ENABLED) && _MALLOC_TYPE_ENABLED && defined(_MALLOC_TYPED) */
107
+ #endif /* TARGET_OS_MAC */
108
+
109
+ #if defined(CF_ENABLE_TYPED_MEMORY_OPERATIONS) && CF_ENABLE_TYPED_MEMORY_OPERATIONS
110
+ #define _CF_TYPED_ALLOC(override, type_param_pos) _MALLOC_TYPED(override, type_param_pos)
111
+ #define CF_HAS_TYPED_ALLOCATOR 1
112
+ #else
113
+ #define _CF_TYPED_ALLOC(override, type_param_pos)
114
+ #define CF_HAS_TYPED_ALLOCATOR 0
115
+ #endif
116
+
117
+ #if TARGET_OS_MAC
118
+ struct _malloc_zone_t;
119
+ #endif
120
+
121
+ #if !defined(__MACTYPES__)
122
+ #if !defined(_OS_OSTYPES_H)
123
+
124
+ typedef unsigned char Boolean;
125
+
126
+ typedef unsigned char UInt8;
127
+ typedef signed char SInt8;
128
+ typedef unsigned short UInt16;
129
+ typedef signed short SInt16;
130
+ typedef unsigned int UInt32;
131
+ typedef signed int SInt32;
132
+ typedef uint64_t UInt64;
133
+ typedef int64_t SInt64;
134
+ typedef SInt32 OSStatus;
135
+ #endif
136
+ typedef float Float32;
137
+ typedef double Float64;
138
+ typedef unsigned short UniChar;
139
+ typedef unsigned long UniCharCount;
140
+ typedef unsigned char * StringPtr;
141
+ typedef const unsigned char * ConstStringPtr;
142
+ typedef unsigned char Str255[256];
143
+ typedef const unsigned char * ConstStr255Param;
144
+ typedef SInt16 OSErr;
145
+ typedef SInt16 RegionCode;
146
+ typedef SInt16 LangCode;
147
+ typedef SInt16 ScriptCode;
148
+ typedef UInt32 FourCharCode;
149
+ typedef FourCharCode OSType;
150
+ typedef UInt8 Byte;
151
+ typedef SInt8 SignedByte;
152
+ #endif
153
+ #if !defined(__MACTYPES__) || (defined(UNIVERSAL_INTERFACES_VERSION) && UNIVERSAL_INTERFACES_VERSION < 0x0340)
154
+ typedef UInt32 UTF32Char;
155
+ typedef UInt16 UTF16Char;
156
+ typedef UInt8 UTF8Char;
157
+ #endif
158
+
159
+ #if !defined(CF_EXTERN_C_BEGIN)
160
+ #if defined(__cplusplus)
161
+ #define CF_EXTERN_C_BEGIN extern "C" {
162
+ #define CF_EXTERN_C_END }
163
+ #else
164
+ #define CF_EXTERN_C_BEGIN
165
+ #define CF_EXTERN_C_END
166
+ #endif
167
+ #endif
168
+
169
+ #if TARGET_OS_WIN32
170
+ #if defined(__cplusplus)
171
+ #define _CF_EXTERN extern "C"
172
+ #else
173
+ #define _CF_EXTERN extern
174
+ #endif
175
+
176
+ #if defined(_WINDLL)
177
+ #if defined(CoreFoundation_EXPORTS) || defined(CF_BUILDING_CF)
178
+ #define CF_EXPORT _CF_EXTERN __declspec(dllexport)
179
+ #else
180
+ #define CF_EXPORT _CF_EXTERN __declspec(dllimport)
181
+ #endif
182
+ #else
183
+ #define CF_EXPORT _CF_EXTERN
184
+ #endif
185
+ #else
186
+ #define CF_EXPORT extern
187
+ #endif
188
+
189
+ #if !defined(NULL)
190
+ #if defined(__GNUG__)
191
+ #define NULL __null
192
+ #elif defined(__cplusplus)
193
+ #define NULL 0
194
+ #else
195
+ #define NULL ((void *)0)
196
+ #endif
197
+ #endif
198
+
199
+ #if !defined(TRUE)
200
+ #define TRUE 1
201
+ #endif
202
+
203
+ #if !defined(FALSE)
204
+ #define FALSE 0
205
+ #endif
206
+
207
+ #if !defined(CF_INLINE)
208
+ #if defined(__GNUC__) && (__GNUC__ == 4) && !defined(DEBUG)
209
+ #define CF_INLINE static __inline__ __attribute__((always_inline))
210
+ #elif defined(__GNUC__)
211
+ #define CF_INLINE static __inline__
212
+ #elif defined(__cplusplus)
213
+ #define CF_INLINE static inline
214
+ #elif defined(_MSC_VER)
215
+ #define CF_INLINE static __inline
216
+ #elif TARGET_OS_WIN32
217
+ #define CF_INLINE static __inline__
218
+ #endif
219
+ #endif
220
+
221
+ // Marks functions which return a CF type that needs to be released by the caller but whose names are not consistent with CoreFoundation naming rules. The recommended fix to this is to rename the functions, but this macro can be used to let the clang static analyzer know of any exceptions that cannot be fixed.
222
+ // This macro is ONLY to be used in exceptional circumstances, not to annotate functions which conform to the CoreFoundation naming rules.
223
+ #ifndef CF_RETURNS_RETAINED
224
+ #if __has_feature(attribute_cf_returns_retained)
225
+ #define CF_RETURNS_RETAINED __attribute__((cf_returns_retained))
226
+ #else
227
+ #define CF_RETURNS_RETAINED
228
+ #endif
229
+ #endif
230
+
231
+ // Marks functions which return a CF type that may need to be retained by the caller but whose names are not consistent with CoreFoundation naming rules. The recommended fix to this is to rename the functions, but this macro can be used to let the clang static analyzer know of any exceptions that cannot be fixed.
232
+ // This macro is ONLY to be used in exceptional circumstances, not to annotate functions which conform to the CoreFoundation naming rules.
233
+ #ifndef CF_RETURNS_NOT_RETAINED
234
+ #if __has_feature(attribute_cf_returns_not_retained)
235
+ #define CF_RETURNS_NOT_RETAINED __attribute__((cf_returns_not_retained))
236
+ #else
237
+ #define CF_RETURNS_NOT_RETAINED
238
+ #endif
239
+ #endif
240
+
241
+ // Marks function arguments which are released by the callee.
242
+ #ifndef CF_RELEASES_ARGUMENT
243
+ #if __has_feature(attribute_cf_consumed)
244
+ #define CF_RELEASES_ARGUMENT __attribute__((cf_consumed))
245
+ #else
246
+ #define CF_RELEASES_ARGUMENT
247
+ #endif
248
+ #endif
249
+
250
+ // Compatibility
251
+ #ifndef CF_CONSUMED
252
+ #if __has_feature(attribute_cf_consumed)
253
+ #define CF_CONSUMED __attribute__((cf_consumed))
254
+ #else
255
+ #define CF_CONSUMED
256
+ #endif
257
+ #endif
258
+
259
+ // Marks functions which cannot be used when compiling in automatic reference counting mode.
260
+ #if __has_feature(objc_arc)
261
+ #define CF_AUTOMATED_REFCOUNT_UNAVAILABLE __attribute__((unavailable("not available in automatic reference counting mode")))
262
+ #else
263
+ #define CF_AUTOMATED_REFCOUNT_UNAVAILABLE
264
+ #endif
265
+
266
+ #ifndef CF_IMPLICIT_BRIDGING_ENABLED
267
+ #if __has_feature(arc_cf_code_audited)
268
+ #define CF_IMPLICIT_BRIDGING_ENABLED _Pragma("clang arc_cf_code_audited begin")
269
+ #else
270
+ #define CF_IMPLICIT_BRIDGING_ENABLED
271
+ #endif
272
+ #endif
273
+
274
+ #ifndef CF_IMPLICIT_BRIDGING_DISABLED
275
+ #if __has_feature(arc_cf_code_audited)
276
+ #define CF_IMPLICIT_BRIDGING_DISABLED _Pragma("clang arc_cf_code_audited end")
277
+ #else
278
+ #define CF_IMPLICIT_BRIDGING_DISABLED
279
+ #endif
280
+ #endif
281
+
282
+ #if __has_attribute(objc_bridge) && __has_feature(objc_bridge_id) && __has_feature(objc_bridge_id_on_typedefs)
283
+
284
+ #ifdef __OBJC__
285
+ @class NSArray;
286
+ @class NSAttributedString;
287
+ @class NSString;
288
+ @class NSNull;
289
+ @class NSCharacterSet;
290
+ @class NSData;
291
+ @class NSDate;
292
+ @class NSTimeZone;
293
+ @class NSDictionary;
294
+ @class NSError;
295
+ @class NSLocale;
296
+ @class NSNumber;
297
+ @class NSSet;
298
+ @class NSURL;
299
+ #endif
300
+
301
+ #define CF_BRIDGED_TYPE(T) __attribute__((objc_bridge(T)))
302
+ #define CF_BRIDGED_MUTABLE_TYPE(T) __attribute__((objc_bridge_mutable(T)))
303
+ #define CF_RELATED_TYPE(T,C,I) __attribute__((objc_bridge_related(T,C,I)))
304
+ #else
305
+ #define CF_BRIDGED_TYPE(T)
306
+ #define CF_BRIDGED_MUTABLE_TYPE(T)
307
+ #define CF_RELATED_TYPE(T,C,I)
308
+ #endif
309
+
310
+
311
+ #if __has_feature(assume_nonnull)
312
+ #define CF_ASSUME_NONNULL_BEGIN _Pragma("clang assume_nonnull begin")
313
+ #define CF_ASSUME_NONNULL_END _Pragma("clang assume_nonnull end")
314
+ #else
315
+ #define CF_ASSUME_NONNULL_BEGIN
316
+ #define CF_ASSUME_NONNULL_END
317
+ #endif
318
+
319
+
320
+ #if !__has_feature(nullability)
321
+ #ifndef _Nullable
322
+ #define _Nullable
323
+ #endif
324
+ #ifndef _Nonnull
325
+ #define _Nonnull
326
+ #endif
327
+ #ifndef _Null_unspecified
328
+ #define _Null_unspecified
329
+ #endif
330
+ #endif
331
+
332
+
333
+ #if __has_attribute(swift_private)
334
+ # define CF_REFINED_FOR_SWIFT __attribute__((swift_private))
335
+ #else
336
+ # define CF_REFINED_FOR_SWIFT
337
+ #endif
338
+
339
+
340
+ #if __has_attribute(swift_name)
341
+ # define CF_SWIFT_NAME(_name) __attribute__((swift_name(#_name)))
342
+ #else
343
+ # define CF_SWIFT_NAME(_name)
344
+ #endif
345
+
346
+ #if __has_attribute(__swift_attr__)
347
+ # define CF_SWIFT_UNAVAILABLE_FROM_ASYNC(msg) __attribute__((__swift_attr__("@_unavailableFromAsync(message: \"" msg "\")")))
348
+ #else
349
+ # define CF_SWIFT_UNAVAILABLE_FROM_ASYNC(msg)
350
+ #endif
351
+
352
+ #if __has_attribute(swift_attr)
353
+ # define CF_SWIFT_MAIN_ACTOR __attribute__((swift_attr("@MainActor")))
354
+ #else
355
+ # define CF_SWIFT_MAIN_ACTOR
356
+ #endif
357
+
358
+ #define __CF_HEADER_AUDIT_BEGIN_nullability _Pragma("clang assume_nonnull begin")
359
+ #define __CF_HEADER_AUDIT_END_nullability _Pragma("clang assume_nonnull end")
360
+
361
+ #if __SWIFT_ATTR_SUPPORTS_SENDABLE_DECLS
362
+ // Indicates that the thing it is applied to should be imported as 'Sendable' in Swift:
363
+ // * Type declarations are imported into Swift with a 'Sendable' conformance.
364
+ // * Block parameters are imported into Swift with an '@Sendable' function type. (Write it in the same place you would put 'CF_NOESCAPE'.)
365
+ // * 'id' parameters are imported into Swift as 'Sendable', not 'Any'.
366
+ // * Other object-type parameters are imported into Swift with an '& Sendable' requirement.
367
+ # define CF_SWIFT_SENDABLE __attribute__((swift_attr("@Sendable")))
368
+
369
+ // Indicates that the thing it is applied to should *not* be imported as 'Sendable' in Swift even if it normally would be.
370
+ # define CF_SWIFT_NONSENDABLE __attribute__((swift_attr("@_nonSendable")))
371
+
372
+ // Indicates that a specific member of an 'CF_SWIFT_UI_ACTOR'-isolated type is "threadsafe" and should be callable from outside the main actor.
373
+ # define CF_SWIFT_NONISOLATED __attribute__((swift_attr("nonisolated")))
374
+
375
+ # define __CF_HEADER_AUDIT_BEGIN_sendability _Pragma("clang attribute CF_HEADER_AUDIT_sendability.push (__attribute__((swift_attr(\"@_nonSendable(_assumed)\"))), apply_to = any(objc_interface, record, enum))")
376
+ # define __CF_HEADER_AUDIT_END_sendability _Pragma("clang attribute CF_HEADER_AUDIT_sendability.pop")
377
+ #else
378
+ # define CF_SWIFT_SENDABLE
379
+ # define CF_SWIFT_NONSENDABLE
380
+ # define CF_SWIFT_NONISOLATED
381
+
382
+ # define __CF_HEADER_AUDIT_BEGIN_sendability
383
+ # define __CF_HEADER_AUDIT_END_sendability
384
+ #endif
385
+
386
+ #define __CF_HEADER_AUDIT_BEGIN1(_1) __CF_HEADER_AUDIT_BEGIN_##_1
387
+ #define __CF_HEADER_AUDIT_BEGIN2(_1, _2) __CF_HEADER_AUDIT_BEGIN1(_1) __CF_HEADER_AUDIT_BEGIN1(_2)
388
+
389
+ #define __CF_HEADER_AUDIT_END1(_1) __CF_HEADER_AUDIT_END_##_1
390
+ #define __CF_HEADER_AUDIT_END2(_1, _2) __CF_HEADER_AUDIT_END1(_1) __CF_HEADER_AUDIT_END1(_2)
391
+
392
+ #define __CF_HEADER_AUDIT_GET_MACRO(_2, _1, NAME, ...) NAME
393
+
394
+ #define CF_HEADER_AUDIT_BEGIN(...) __CF_HEADER_AUDIT_GET_MACRO(__VA_ARGS__, __CF_HEADER_AUDIT_BEGIN2, __CF_HEADER_AUDIT_BEGIN1, 0)(__VA_ARGS__)
395
+ #define CF_HEADER_AUDIT_END(...) __CF_HEADER_AUDIT_GET_MACRO(__VA_ARGS__, __CF_HEADER_AUDIT_END2, __CF_HEADER_AUDIT_END1, 0)(__VA_ARGS__)
396
+
397
+ #if __has_attribute(noescape)
398
+ #define CF_NOESCAPE __attribute__((noescape))
399
+ #else
400
+ #define CF_NOESCAPE
401
+ #endif
402
+
403
+ #if __has_attribute(not_tail_called)
404
+ #define CF_NO_TAIL_CALL __attribute__((not_tail_called))
405
+ #else
406
+ #define CF_NO_TAIL_CALL
407
+ #endif
408
+
409
+ #if __has_attribute(warn_unused_result)
410
+ #define CF_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
411
+ #else
412
+ #define CF_WARN_UNUSED_RESULT
413
+ #endif
414
+
415
+ #if __has_attribute(fallthrough)
416
+ #define CF_FALLTHROUGH __attribute__((fallthrough))
417
+ #else
418
+ #define CF_FALLTHROUGH
419
+ #endif
420
+
421
+ #if !__has_feature(objc_generics_variance)
422
+ #ifndef __covariant
423
+ #define __covariant
424
+ #endif
425
+ #ifndef __contravariant
426
+ #define __contravariant
427
+ #endif
428
+ #endif
429
+
430
+
431
+ CF_EXTERN_C_BEGIN
432
+
433
+ CF_EXPORT const double kCFCoreFoundationVersionNumber;
434
+
435
+ #if TARGET_OS_MAC
436
+ #define kCFCoreFoundationVersionNumber10_0 196.40
437
+ #define kCFCoreFoundationVersionNumber10_0_3 196.50
438
+ #define kCFCoreFoundationVersionNumber10_1 226.00
439
+ #define kCFCoreFoundationVersionNumber10_1_1 226.00
440
+ /* Note the next three do not follow the usual numbering policy from the base release */
441
+ #define kCFCoreFoundationVersionNumber10_1_2 227.20
442
+ #define kCFCoreFoundationVersionNumber10_1_3 227.20
443
+ #define kCFCoreFoundationVersionNumber10_1_4 227.30
444
+ #define kCFCoreFoundationVersionNumber10_2 263.00
445
+ #define kCFCoreFoundationVersionNumber10_2_1 263.10
446
+ #define kCFCoreFoundationVersionNumber10_2_2 263.10
447
+ #define kCFCoreFoundationVersionNumber10_2_3 263.30
448
+ #define kCFCoreFoundationVersionNumber10_2_4 263.30
449
+ #define kCFCoreFoundationVersionNumber10_2_5 263.50
450
+ #define kCFCoreFoundationVersionNumber10_2_6 263.50
451
+ #define kCFCoreFoundationVersionNumber10_2_7 263.50
452
+ #define kCFCoreFoundationVersionNumber10_2_8 263.50
453
+ #define kCFCoreFoundationVersionNumber10_3 299.00
454
+ #define kCFCoreFoundationVersionNumber10_3_1 299.00
455
+ #define kCFCoreFoundationVersionNumber10_3_2 299.00
456
+ #define kCFCoreFoundationVersionNumber10_3_3 299.30
457
+ #define kCFCoreFoundationVersionNumber10_3_4 299.31
458
+ #define kCFCoreFoundationVersionNumber10_3_5 299.31
459
+ #define kCFCoreFoundationVersionNumber10_3_6 299.32
460
+ #define kCFCoreFoundationVersionNumber10_3_7 299.33
461
+ #define kCFCoreFoundationVersionNumber10_3_8 299.33
462
+ #define kCFCoreFoundationVersionNumber10_3_9 299.35
463
+ #define kCFCoreFoundationVersionNumber10_4 368.00
464
+ #define kCFCoreFoundationVersionNumber10_4_1 368.10
465
+ #define kCFCoreFoundationVersionNumber10_4_2 368.11
466
+ #define kCFCoreFoundationVersionNumber10_4_3 368.18
467
+ #define kCFCoreFoundationVersionNumber10_4_4_Intel 368.26
468
+ #define kCFCoreFoundationVersionNumber10_4_4_PowerPC 368.25
469
+ #define kCFCoreFoundationVersionNumber10_4_5_Intel 368.26
470
+ #define kCFCoreFoundationVersionNumber10_4_5_PowerPC 368.25
471
+ #define kCFCoreFoundationVersionNumber10_4_6_Intel 368.26
472
+ #define kCFCoreFoundationVersionNumber10_4_6_PowerPC 368.25
473
+ #define kCFCoreFoundationVersionNumber10_4_7 368.27
474
+ #define kCFCoreFoundationVersionNumber10_4_8 368.27
475
+ #define kCFCoreFoundationVersionNumber10_4_9 368.28
476
+ #define kCFCoreFoundationVersionNumber10_4_10 368.28
477
+ #define kCFCoreFoundationVersionNumber10_4_11 368.31
478
+ #define kCFCoreFoundationVersionNumber10_5 476.00
479
+ #define kCFCoreFoundationVersionNumber10_5_1 476.00
480
+ #define kCFCoreFoundationVersionNumber10_5_2 476.10
481
+ #define kCFCoreFoundationVersionNumber10_5_3 476.13
482
+ #define kCFCoreFoundationVersionNumber10_5_4 476.14
483
+ #define kCFCoreFoundationVersionNumber10_5_5 476.15
484
+ #define kCFCoreFoundationVersionNumber10_5_6 476.17
485
+ #define kCFCoreFoundationVersionNumber10_5_7 476.18
486
+ #define kCFCoreFoundationVersionNumber10_5_8 476.19
487
+ #define kCFCoreFoundationVersionNumber10_6 550.00
488
+ #define kCFCoreFoundationVersionNumber10_6_1 550.00
489
+ #define kCFCoreFoundationVersionNumber10_6_2 550.13
490
+ #define kCFCoreFoundationVersionNumber10_6_3 550.19
491
+ #define kCFCoreFoundationVersionNumber10_6_4 550.29
492
+ #define kCFCoreFoundationVersionNumber10_6_5 550.42
493
+ #define kCFCoreFoundationVersionNumber10_6_6 550.42
494
+ #define kCFCoreFoundationVersionNumber10_6_7 550.42
495
+ #define kCFCoreFoundationVersionNumber10_6_8 550.43
496
+ #define kCFCoreFoundationVersionNumber10_7 635.00
497
+ #define kCFCoreFoundationVersionNumber10_7_1 635.00
498
+ #define kCFCoreFoundationVersionNumber10_7_2 635.15
499
+ #define kCFCoreFoundationVersionNumber10_7_3 635.19
500
+ #define kCFCoreFoundationVersionNumber10_7_4 635.21
501
+ #define kCFCoreFoundationVersionNumber10_7_5 635.21
502
+ #define kCFCoreFoundationVersionNumber10_8 744.00
503
+ #define kCFCoreFoundationVersionNumber10_8_1 744.00
504
+ #define kCFCoreFoundationVersionNumber10_8_2 744.12
505
+ #define kCFCoreFoundationVersionNumber10_8_3 744.18
506
+ #define kCFCoreFoundationVersionNumber10_8_4 744.19
507
+ #define kCFCoreFoundationVersionNumber10_9 855.11
508
+ #define kCFCoreFoundationVersionNumber10_9_1 855.11
509
+ #define kCFCoreFoundationVersionNumber10_9_2 855.14
510
+ #define kCFCoreFoundationVersionNumber10_10 1151.16
511
+ #define kCFCoreFoundationVersionNumber10_10_1 1151.16
512
+ #define kCFCoreFoundationVersionNumber10_10_2 1152
513
+ #define kCFCoreFoundationVersionNumber10_10_3 1153.18
514
+ #define kCFCoreFoundationVersionNumber10_10_4 1153.18
515
+ #define kCFCoreFoundationVersionNumber10_10_5 1153.18
516
+ #define kCFCoreFoundationVersionNumber10_10_Max 1199
517
+ #define kCFCoreFoundationVersionNumber10_11 1253
518
+ #define kCFCoreFoundationVersionNumber10_11_1 1255.1
519
+ #define kCFCoreFoundationVersionNumber10_11_2 1256.14
520
+ #define kCFCoreFoundationVersionNumber10_11_3 1256.14
521
+ #define kCFCoreFoundationVersionNumber10_11_4 1258.1
522
+ #define kCFCoreFoundationVersionNumber10_11_Max 1299
523
+ #endif
524
+
525
+ #if TARGET_OS_IPHONE
526
+ #define kCFCoreFoundationVersionNumber_iPhoneOS_2_0 478.23
527
+ #define kCFCoreFoundationVersionNumber_iPhoneOS_2_1 478.26
528
+ #define kCFCoreFoundationVersionNumber_iPhoneOS_2_2 478.29
529
+ #define kCFCoreFoundationVersionNumber_iPhoneOS_3_0 478.47
530
+ #define kCFCoreFoundationVersionNumber_iPhoneOS_3_1 478.52
531
+ #define kCFCoreFoundationVersionNumber_iPhoneOS_3_2 478.61
532
+ #define kCFCoreFoundationVersionNumber_iOS_4_0 550.32
533
+ #define kCFCoreFoundationVersionNumber_iOS_4_1 550.38
534
+ #define kCFCoreFoundationVersionNumber_iOS_4_2 550.52
535
+ #define kCFCoreFoundationVersionNumber_iOS_4_3 550.52
536
+ #define kCFCoreFoundationVersionNumber_iOS_5_0 675.00
537
+ #define kCFCoreFoundationVersionNumber_iOS_5_1 690.10
538
+ #define kCFCoreFoundationVersionNumber_iOS_6_0 793.00
539
+ #define kCFCoreFoundationVersionNumber_iOS_6_1 793.00
540
+ #define kCFCoreFoundationVersionNumber_iOS_7_0 847.20
541
+ #define kCFCoreFoundationVersionNumber_iOS_7_1 847.24
542
+ #define kCFCoreFoundationVersionNumber_iOS_8_0 1140.1
543
+ #define kCFCoreFoundationVersionNumber_iOS_8_1 1141.14
544
+ #define kCFCoreFoundationVersionNumber_iOS_8_2 1142.16
545
+ #define kCFCoreFoundationVersionNumber_iOS_8_3 1144.17
546
+ #define kCFCoreFoundationVersionNumber_iOS_8_4 1145.15
547
+ #define kCFCoreFoundationVersionNumber_iOS_8_x_Max 1199
548
+ #define kCFCoreFoundationVersionNumber_iOS_9_0 1240.1
549
+ #define kCFCoreFoundationVersionNumber_iOS_9_1 1241.11
550
+ #define kCFCoreFoundationVersionNumber_iOS_9_2 1242.13
551
+ #define kCFCoreFoundationVersionNumber_iOS_9_3 1242.13
552
+ #define kCFCoreFoundationVersionNumber_iOS_9_4 1280.38
553
+ #define kCFCoreFoundationVersionNumber_iOS_9_x_Max 1299
554
+ #endif
555
+
556
+ #if defined(__LLP64__) && __LLP64__
557
+ typedef unsigned long long CFTypeID;
558
+ typedef unsigned long long CFOptionFlags;
559
+ typedef unsigned long long CFHashCode;
560
+ typedef signed long long CFIndex;
561
+ #else
562
+ typedef unsigned long CFTypeID;
563
+ typedef unsigned long CFOptionFlags;
564
+ typedef unsigned long CFHashCode;
565
+ typedef signed long CFIndex;
566
+ #endif
567
+
568
+ /* Base "type" of all "CF objects", and polymorphic functions on them */
569
+ typedef const CF_BRIDGED_TYPE(id) void * CFTypeRef;
570
+
571
+ typedef const struct CF_BRIDGED_TYPE(NSString) __CFString * CFStringRef;
572
+ typedef struct CF_BRIDGED_MUTABLE_TYPE(NSMutableString) __CFString * CFMutableStringRef;
573
+
574
+ /*
575
+ Type to mean any instance of a property list type;
576
+ currently, CFString, CFData, CFNumber, CFBoolean, CFDate,
577
+ CFArray, and CFDictionary.
578
+ */
579
+ typedef CF_BRIDGED_TYPE(id) CFTypeRef CFPropertyListRef;
580
+
581
+ /* Values returned from comparison functions */
582
+ typedef CF_ENUM(CFIndex, CFComparisonResult) {
583
+ kCFCompareLessThan = -1L,
584
+ kCFCompareEqualTo = 0,
585
+ kCFCompareGreaterThan = 1
586
+ };
587
+
588
+ /* A standard comparison function */
589
+ typedef CFComparisonResult (*CFComparatorFunction)(const void *val1, const void *val2, void *context);
590
+
591
+ /* Constant used by some functions to indicate failed searches. */
592
+ static const CFIndex kCFNotFound = -1;
593
+
594
+
595
+ /* Range type */
596
+ typedef struct {
597
+ CFIndex location;
598
+ CFIndex length;
599
+ } CFRange;
600
+
601
+ #if defined(CF_INLINE)
602
+ CF_INLINE CFRange CFRangeMake(CFIndex loc, CFIndex len) {
603
+ CFRange range;
604
+ range.location = loc;
605
+ range.length = len;
606
+ return range;
607
+ }
608
+ #else
609
+ #define CFRangeMake(LOC, LEN) __CFRangeMake(LOC, LEN)
610
+ #endif
611
+
612
+ /* Private; do not use */
613
+ CF_EXPORT
614
+ CFRange __CFRangeMake(CFIndex loc, CFIndex len);
615
+
616
+
617
+ /* Null representant */
618
+
619
+ typedef const struct CF_BRIDGED_TYPE(NSNull) __CFNull * CFNullRef;
620
+
621
+ CF_EXPORT
622
+ CFTypeID CFNullGetTypeID(void);
623
+
624
+ CF_EXPORT
625
+ const CFNullRef kCFNull; // the singleton null instance
626
+
627
+
628
+ /* Allocator API
629
+
630
+ Most of the time when specifying an allocator to Create functions, the NULL
631
+ argument indicates "use the default"; this is the same as using kCFAllocatorDefault
632
+ or the return value from CFAllocatorGetDefault(). This assures that you will use
633
+ the allocator in effect at that time.
634
+ */
635
+ typedef const struct CF_BRIDGED_TYPE(id) __CFAllocator * CFAllocatorRef;
636
+
637
+ /* This is a synonym for NULL, if you'd rather use a named constant. */
638
+ CF_EXPORT
639
+ const CFAllocatorRef kCFAllocatorDefault;
640
+
641
+ /* Default system allocator; you rarely need to use this. */
642
+ CF_EXPORT
643
+ const CFAllocatorRef kCFAllocatorSystemDefault;
644
+
645
+ /* This allocator uses malloc(), realloc(), and free(). This should not be
646
+ generally used; stick to kCFAllocatorDefault whenever possible. This
647
+ allocator is useful as the "bytesDeallocator" in CFData or
648
+ "contentsDeallocator" in CFString where the memory was obtained as a
649
+ result of malloc() type functions.
650
+ */
651
+ CF_EXPORT
652
+ const CFAllocatorRef kCFAllocatorMalloc;
653
+
654
+ /* This allocator explicitly uses the default malloc zone, returned by
655
+ malloc_default_zone(). It should only be used when an object is
656
+ safe to be allocated in non-scanned memory.
657
+ */
658
+ CF_EXPORT
659
+ const CFAllocatorRef kCFAllocatorMallocZone;
660
+
661
+ /* Null allocator which does nothing and allocates no memory. This allocator
662
+ is useful as the "bytesDeallocator" in CFData or "contentsDeallocator"
663
+ in CFString where the memory should not be freed.
664
+ */
665
+ CF_EXPORT
666
+ const CFAllocatorRef kCFAllocatorNull;
667
+
668
+ /* Special allocator argument to CFAllocatorCreate() which means
669
+ "use the functions given in the context to allocate the allocator
670
+ itself as well".
671
+ */
672
+ CF_EXPORT
673
+ const CFAllocatorRef kCFAllocatorUseContext;
674
+
675
+ typedef const void * (*CFAllocatorRetainCallBack)(const void *info);
676
+ typedef void (*CFAllocatorReleaseCallBack)(const void *info);
677
+ typedef CFStringRef (*CFAllocatorCopyDescriptionCallBack)(const void *info);
678
+ typedef void * (*CFAllocatorAllocateCallBack)(CFIndex allocSize, CFOptionFlags hint, void *info);
679
+ typedef void * (*CFAllocatorReallocateCallBack)(void *ptr, CFIndex newsize, CFOptionFlags hint, void *info);
680
+ typedef void (*CFAllocatorDeallocateCallBack)(void *ptr, void *info);
681
+ typedef CFIndex (*CFAllocatorPreferredSizeCallBack)(CFIndex size, CFOptionFlags hint, void *info);
682
+ typedef struct {
683
+ CFIndex version;
684
+ void * info;
685
+ CFAllocatorRetainCallBack retain;
686
+ CFAllocatorReleaseCallBack release;
687
+ CFAllocatorCopyDescriptionCallBack copyDescription;
688
+ CFAllocatorAllocateCallBack allocate;
689
+ CFAllocatorReallocateCallBack reallocate;
690
+ CFAllocatorDeallocateCallBack deallocate;
691
+ CFAllocatorPreferredSizeCallBack preferredSize;
692
+ } CFAllocatorContext;
693
+
694
+ CF_EXPORT
695
+ CFTypeID CFAllocatorGetTypeID(void);
696
+
697
+ /*
698
+ CFAllocatorSetDefault() sets the allocator that is used in the current
699
+ thread whenever NULL is specified as an allocator argument. This means
700
+ that most, if not all allocations will go through this allocator. It
701
+ also means that any allocator set as the default needs to be ready to
702
+ deal with arbitrary memory allocation requests; in addition, the size
703
+ and number of requests will change between releases.
704
+
705
+ An allocator set as the default will never be released, even if later
706
+ another allocator replaces it as the default. Not only is it impractical
707
+ for it to be released (as there might be caches created under the covers
708
+ that refer to the allocator), in general it's also safer and more
709
+ efficient to keep it around.
710
+
711
+ If you wish to use a custom allocator in a context, it's best to provide
712
+ it as the argument to the various creation functions rather than setting
713
+ it as the default. Setting the default allocator is not encouraged.
714
+
715
+ If you do set an allocator as the default, either do it for all time in
716
+ your app, or do it in a nested fashion (by restoring the previous allocator
717
+ when you exit your context). The latter might be appropriate for plug-ins
718
+ or libraries that wish to set the default allocator.
719
+ */
720
+ CF_EXPORT
721
+ void CFAllocatorSetDefault(CFAllocatorRef allocator);
722
+
723
+ CF_EXPORT
724
+ CFAllocatorRef CFAllocatorGetDefault(void);
725
+
726
+ CF_EXPORT
727
+ CFAllocatorRef CFAllocatorCreate(CFAllocatorRef allocator, CFAllocatorContext *context);
728
+
729
+ CF_EXPORT
730
+ CFAllocatorRef CFAllocatorCreateWithZone(CFAllocatorRef allocator, struct _malloc_zone_t *zone) API_UNAVAILABLE(macos, ios, watchos, tvos, visionos);
731
+
732
+ /* Typed allocator interfaces
733
+
734
+ These interfaces are provided to either serve as rewrite targets for the
735
+ compiler, or to be invoked internally to Foundation/CoreFoundation to
736
+ manually interfact with the typed allocator.
737
+ */
738
+
739
+ CF_EXPORT
740
+ void *CFAllocatorAllocateTyped(CFAllocatorRef allocator, CFIndex size, CFAllocatorTypeID descriptor, CFOptionFlags hint) API_AVAILABLE(macos(15.0), ios(18.0), watchos(11.0), tvos(18.0), visionos(2.0));
741
+
742
+ CF_EXPORT
743
+ void *CFAllocatorReallocateTyped(CFAllocatorRef allocator, void *ptr, CFIndex newsize, CFAllocatorTypeID descriptor, CFOptionFlags hint) API_AVAILABLE(macos(15.0), ios(18.0), watchos(11.0), tvos(18.0), visionos(2.0));
744
+
745
+ CF_EXPORT
746
+ void *CFAllocatorAllocateBytes(CFAllocatorRef allocator, CFIndex size, CFOptionFlags hint) API_AVAILABLE(macos(15.0), ios(18.0), watchos(11.0), tvos(18.0), visionos(2.0));
747
+
748
+ CF_EXPORT
749
+ void *CFAllocatorReallocateBytes(CFAllocatorRef allocator, void *ptr, CFIndex newsize, CFOptionFlags hint) API_AVAILABLE(macos(15.0), ios(18.0), watchos(11.0), tvos(18.0), visionos(2.0));
750
+
751
+ CF_EXPORT
752
+ void *CFAllocatorAllocate(CFAllocatorRef allocator, CFIndex size, CFOptionFlags hint) _CF_TYPED_ALLOC(CFAllocatorAllocateTyped, 2);
753
+
754
+ CF_EXPORT
755
+ void *CFAllocatorReallocate(CFAllocatorRef allocator, void *ptr, CFIndex newsize, CFOptionFlags hint) _CF_TYPED_ALLOC(CFAllocatorReallocateTyped, 3);
756
+
757
+ CF_EXPORT
758
+ void CFAllocatorDeallocate(CFAllocatorRef allocator, void *ptr);
759
+
760
+ CF_EXPORT
761
+ CFIndex CFAllocatorGetPreferredSizeForSize(CFAllocatorRef allocator, CFIndex size, CFOptionFlags hint);
762
+
763
+ CF_EXPORT
764
+ void CFAllocatorGetContext(CFAllocatorRef allocator, CFAllocatorContext *context);
765
+
766
+
767
+ /* Polymorphic CF functions */
768
+
769
+ CF_IMPLICIT_BRIDGING_ENABLED
770
+
771
+ CF_EXPORT
772
+ CFTypeID CFGetTypeID(CFTypeRef cf);
773
+
774
+ CF_EXPORT
775
+ CFStringRef CFCopyTypeIDDescription(CFTypeID type_id);
776
+
777
+ CF_EXPORT
778
+ CFTypeRef CFRetain(CFTypeRef cf);
779
+
780
+ CF_EXPORT
781
+ void CFRelease(CFTypeRef cf);
782
+
783
+ CF_EXPORT
784
+ CFTypeRef CFAutorelease(CFTypeRef CF_RELEASES_ARGUMENT arg) API_AVAILABLE(macos(10.9), ios(7.0), watchos(2.0), tvos(9.0));
785
+
786
+ CF_EXPORT
787
+ CFIndex CFGetRetainCount(CFTypeRef cf);
788
+
789
+ CF_EXPORT
790
+ Boolean CFEqual(CFTypeRef cf1, CFTypeRef cf2);
791
+
792
+ CF_EXPORT
793
+ CFHashCode CFHash(CFTypeRef cf);
794
+
795
+ CF_EXPORT
796
+ CFStringRef CFCopyDescription(CFTypeRef cf);
797
+
798
+ CF_EXPORT
799
+ CFAllocatorRef CFGetAllocator(CFTypeRef cf);
800
+
801
+ CF_IMPLICIT_BRIDGING_DISABLED
802
+
803
+ // This function is unavailable in ARC mode. On OS X 10.12 and later, this function simply returns the argument.
804
+ CF_EXPORT
805
+ CFTypeRef CFMakeCollectable(CFTypeRef cf) CF_AUTOMATED_REFCOUNT_UNAVAILABLE;
806
+
807
+ CF_EXTERN_C_END
808
+
809
+ #if __has_include(<ptrauth.h>)
810
+ #include <ptrauth.h>
811
+ #endif
812
+
813
+ #ifndef __ptrauth_objc_isa_pointer
814
+ #define __ptrauth_objc_isa_pointer
815
+ #endif
816
+
817
+ #define ISA_PTRAUTH_DISCRIMINATOR 0x6AE1
818
+ #if defined(__ptrauth_objc_isa_uintptr)
819
+ #define __ptrauth_cf_objc_isa_pointer __ptrauth_objc_isa_uintptr
820
+ #elif defined(__arm64e__) && defined(__PTRAUTH_INTRINSICS__) && __has_feature(ptrauth_objc_isa)
821
+ #define __ptrauth_cf_objc_isa_pointer __ptrauth_restricted_intptr(ptrauth_key_objc_isa_pointer, 1, ISA_PTRAUTH_DISCRIMINATOR)
822
+ #else
823
+ #define __ptrauth_cf_objc_isa_pointer
824
+ #endif
825
+
826
+ #endif /* ! __COREFOUNDATION_CFBASE__ */
827
+