peachsim 0.1.1674 → 0.1.1692

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 (350) hide show
  1. package/cli/commands/control.ts +13 -1
  2. package/cli/commands/coverage-swift.ts +150 -27
  3. package/cli/commands/coverage.ts +219 -20
  4. package/cli/commands/detect.ts +10 -6
  5. package/cli/commands/inspect/actions.ts +1 -0
  6. package/cli/commands/inspect/core.ts +2 -0
  7. package/cli/commands/inspect/wait-ready.ts +7 -0
  8. package/cli/commands/screenshot.ts +12 -0
  9. package/cli/outbound-endpoints.ts +12 -0
  10. package/detox/index.ts +11 -1
  11. package/detox/jest-environment.cjs +14 -0
  12. package/dist-lib/agent-daemon-client.cjs +1 -1
  13. package/dist-lib/agent-events.cjs +1 -1
  14. package/dist-lib/attached-projects.cjs +1 -1
  15. package/dist-lib/auth/shared-session.cjs +1 -1
  16. package/dist-lib/backend-origin.cjs +1 -1
  17. package/dist-lib/beta.cjs +1 -1
  18. package/dist-lib/beta.mjs +1 -1
  19. package/dist-lib/bridge-constants.cjs +1 -1
  20. package/dist-lib/bridge-contract-input.cjs +1 -1
  21. package/dist-lib/bridge-contract-input.mjs +1 -1
  22. package/dist-lib/bridge-contract.cjs +1 -1
  23. package/dist-lib/bridge-contract.mjs +1 -1
  24. package/dist-lib/bundle-channel.cjs +4833 -2432
  25. package/dist-lib/capture-contract.cjs +1 -1
  26. package/dist-lib/capture-contract.mjs +1 -1
  27. package/dist-lib/cloud-contract.cjs +1 -1
  28. package/dist-lib/cloud-contract.mjs +1 -1
  29. package/dist-lib/cloud-test-args.cjs +1 -1
  30. package/dist-lib/cloud-test-args.mjs +1 -1
  31. package/dist-lib/cloud.cjs +1 -1
  32. package/dist-lib/cloud.mjs +1 -1
  33. package/dist-lib/config.cjs +1 -1
  34. package/dist-lib/config.mjs +1 -1
  35. package/dist-lib/detox/index.cjs +6 -4
  36. package/dist-lib/detox/jest-environment.cjs +14 -0
  37. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  38. package/dist-lib/expo-swift-bundle.cjs +3785 -1737
  39. package/dist-lib/expo-swift-metadata.cjs +1 -1
  40. package/dist-lib/expo-swift-metadata.mjs +1 -1
  41. package/dist-lib/home-paths.cjs +1 -1
  42. package/dist-lib/host/bridge-host.cjs +4253 -2205
  43. package/dist-lib/host/fetch-proxy-handler.cjs +20 -7
  44. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  45. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  46. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  47. package/dist-lib/host/websocket-proxy.cjs +1 -1
  48. package/dist-lib/index.cjs +2065 -796
  49. package/dist-lib/jump-to-source-babel.cjs +1 -1
  50. package/dist-lib/jump-to-source-native.cjs +1 -1
  51. package/dist-lib/kotlin-host.cjs +1 -1
  52. package/dist-lib/menu.cjs +1 -1
  53. package/dist-lib/menu.mjs +1 -1
  54. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  55. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  56. package/dist-lib/metro-production-bundle.cjs +1 -1
  57. package/dist-lib/metro-production-bundle.mjs +1 -1
  58. package/dist-lib/metro.cjs +6325 -4287
  59. package/dist-lib/native-app-identity-project.cjs +192 -55
  60. package/dist-lib/native-app-identity-project.mjs +235 -86
  61. package/dist-lib/native-app-identity.cjs +1 -1
  62. package/dist-lib/native-app-identity.mjs +1 -1
  63. package/dist-lib/native-firebase-metadata.cjs +1 -1
  64. package/dist-lib/native-firebase-metadata.mjs +1 -1
  65. package/dist-lib/plist.cjs +1 -1
  66. package/dist-lib/plist.mjs +1 -1
  67. package/dist-lib/profiles.cjs +1 -1
  68. package/dist-lib/public-brand.cjs +1 -1
  69. package/dist-lib/public-origins-lib-esm.json +27 -23
  70. package/dist-lib/public-origins-lib-static.json +1 -1
  71. package/dist-lib/public-origins-lib.json +156 -87
  72. package/dist-lib/react-native-host-modules.cjs +1 -1
  73. package/dist-lib/react-native-host-modules.mjs +1 -1
  74. package/dist-lib/reap-browser.cjs +2 -2
  75. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  76. package/dist-lib/sdk.cjs +3 -2
  77. package/dist-lib/sdk.mjs +3 -2
  78. package/dist-lib/skills.cjs +5036 -2833
  79. package/dist-lib/swift-compile.cjs +2937 -437
  80. package/dist-lib/swift-compile.mjs +2932 -435
  81. package/dist-lib/swift-package.cjs +137 -49
  82. package/dist-lib/swift-package.mjs +132 -49
  83. package/dist-lib/swift-submit.cjs +1 -1
  84. package/dist-lib/swift-submit.mjs +1 -1
  85. package/dist-lib/swift-toolchain.cjs +26 -11
  86. package/dist-lib/swift.cjs +1 -1
  87. package/dist-lib/vite-swift.cjs +6005 -1725
  88. package/dist-lib/vite.cjs +1911 -776
  89. package/dist-lib/worklet-executable.cjs +7 -4
  90. package/dist-lib/worklet-executable.mjs +7 -4
  91. package/dist-types/packages/peach-engine/src/engine/canvaskit-api.d.ts +1 -1
  92. package/dist-types/packages/peach-engine/src/engine/clipboardContract.d.ts +24 -2
  93. package/dist-types/packages/peach-engine/src/preview/upload-protocol.d.ts +11 -3
  94. package/dist-types/packages/peach-engine/src/webview-automation-host.d.ts +6 -0
  95. package/dist-types/packages/peach-globals/src/clipboardBridgeContract.d.ts +8 -0
  96. package/dist-types/packages/peach-globals/src/index.d.ts +1 -1
  97. package/dist-types/packages/peach-globals/src/nodeContract.d.ts +3 -2
  98. package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -0
  99. package/package.json +1 -1
  100. package/runtime-companion.json +1 -1
  101. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +60 -2
  102. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLAvailability.h +22 -0
  103. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBackgroundActivitySession.h +145 -0
  104. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconIdentityCondition.h +113 -0
  105. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconIdentityConstraint.h +34 -0
  106. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconRegion.h +225 -0
  107. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBody.h +26 -0
  108. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLCircularGeographicCondition.h +59 -0
  109. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLCircularRegion.h +64 -0
  110. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLCondition.h +48 -0
  111. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLError.h +52 -0
  112. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLErrorDomain.h +24 -0
  113. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLGeocoder.h +55 -0
  114. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLHeading.h +117 -0
  115. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocation.h +9 -0
  116. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager+CLVisitExtensions.h +45 -0
  117. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager.h +877 -0
  118. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManagerDelegate.h +225 -0
  119. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationPushServiceError.h +33 -0
  120. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationPushServiceExtension.h +28 -0
  121. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationUpdater.h +250 -0
  122. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitor.h +140 -0
  123. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitorConfiguration.h +77 -0
  124. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitoringEvent.h +184 -0
  125. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitoringRecord.h +57 -0
  126. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLPlacemark.h +98 -0
  127. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLRegion.h +123 -0
  128. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLServiceSession.h +211 -0
  129. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLVisit.h +66 -0
  130. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CoreLocation.h +46 -0
  131. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Modules/module.modulemap +7 -0
  132. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +117 -2
  133. package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceBase.h +52 -0
  134. package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceObjC.h +240 -0
  135. package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceRef.h +474 -0
  136. package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceTypes.h +66 -0
  137. package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Modules/module.modulemap +10 -0
  138. package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFComposeAssistantViewController.h +29 -0
  139. package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMailComposeControllerDeferredAction.h +14 -0
  140. package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMailComposeViewController.h +162 -0
  141. package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMailDraft.h +24 -0
  142. package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMessageComposeViewController+UPI.h +31 -0
  143. package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMessageComposeViewController.h +169 -0
  144. package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MessageUI.h +13 -0
  145. package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Modules/module.modulemap +11 -0
  146. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4AccelerationStructure.h +9 -0
  147. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4Archive.h +16 -0
  148. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4ArgumentTable.h +17 -0
  149. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4BinaryFunction.h +13 -0
  150. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4BinaryFunctionDescriptor.h +14 -0
  151. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4BufferRange.h +79 -0
  152. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandAllocator.h +15 -0
  153. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandBuffer.h +17 -0
  154. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandEncoder.h +16 -0
  155. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandQueue.h +19 -0
  156. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommitFeedback.h +15 -0
  157. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4Compiler.h +13 -0
  158. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CompilerTask.h +13 -0
  159. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4ComputeCommandEncoder.h +19 -0
  160. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4ComputePipeline.h +13 -0
  161. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4Counters.h +19 -0
  162. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4FunctionDescriptor.h +13 -0
  163. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4LibraryDescriptor.h +13 -0
  164. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4LibraryFunctionDescriptor.h +13 -0
  165. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4LinkingDescriptor.h +13 -0
  166. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4MachineLearningCommandEncoder.h +17 -0
  167. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4MachineLearningPipeline.h +13 -0
  168. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4MeshRenderPipeline.h +13 -0
  169. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4PipelineDataSetSerializer.h +13 -0
  170. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4PipelineState.h +13 -0
  171. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4RenderCommandEncoder.h +17 -0
  172. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4RenderPass.h +17 -0
  173. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4RenderPipeline.h +13 -0
  174. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4SpecializedFunctionDescriptor.h +13 -0
  175. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4StitchedFunctionDescriptor.h +13 -0
  176. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4TileRenderPipeline.h +13 -0
  177. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAccelerationStructure.h +1212 -0
  178. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAccelerationStructureCommandEncoder.h +322 -0
  179. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAccelerationStructureTypes.h +224 -0
  180. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAllocation.h +22 -0
  181. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLArgument.h +279 -0
  182. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLArgumentEncoder.h +199 -0
  183. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBinaryArchive.h +142 -0
  184. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBlitCommandEncoder.h +266 -0
  185. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBlitPass.h +82 -0
  186. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBuffer.h +94 -0
  187. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCaptureManager.h +113 -0
  188. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCaptureScope.h +43 -0
  189. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCommandBuffer.h +449 -0
  190. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCommandEncoder.h +148 -0
  191. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCommandQueue.h +102 -0
  192. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLComputeCommandEncoder.h +350 -0
  193. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLComputePass.h +90 -0
  194. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h +274 -0
  195. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCounters.h +225 -0
  196. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDataType.h +232 -0
  197. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDefines.h +39 -0
  198. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDepthStencil.h +93 -0
  199. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDevice.h +1122 -0
  200. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDeviceCertification.h +29 -0
  201. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDrawable.h +36 -0
  202. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDynamicLibrary.h +81 -0
  203. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLEvent.h +79 -0
  204. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFence.h +22 -0
  205. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionConstantValues.h +30 -0
  206. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionDescriptor.h +95 -0
  207. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionHandle.h +29 -0
  208. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionLog.h +37 -0
  209. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionStitching.h +131 -0
  210. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLGPUAddress.h +19 -0
  211. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLHeap.h +284 -0
  212. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIOCommandBuffer.h +10 -0
  213. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIOCommandQueue.h +11 -0
  214. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIOCompressor.h +10 -0
  215. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIndirectCommandBuffer.h +157 -0
  216. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIndirectCommandEncoder.h +110 -0
  217. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIntersectionFunctionTable.h +186 -0
  218. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLLibrary.h +549 -0
  219. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLLinkedFunctions.h +57 -0
  220. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLLogState.h +65 -0
  221. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLParallelRenderCommandEncoder.h +77 -0
  222. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLPipeline.h +57 -0
  223. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLPixelFormat.h +342 -0
  224. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRasterizationRate.h +323 -0
  225. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRenderCommandEncoder.h +1068 -0
  226. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRenderPass.h +411 -0
  227. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRenderPipeline.h +788 -0
  228. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResidencySet.h +141 -0
  229. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResource.h +307 -0
  230. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResourceStateCommandEncoder.h +125 -0
  231. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResourceStatePass.h +85 -0
  232. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResourceViewPool.h +22 -0
  233. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLSampler.h +252 -0
  234. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLStageInputOutputDescriptor.h +158 -0
  235. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTensor.h +17 -0
  236. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTexture.h +460 -0
  237. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTextureViewPool.h +18 -0
  238. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTypes.h +125 -0
  239. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLVertexDescriptor.h +153 -0
  240. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLVisibleFunctionTable.h +45 -0
  241. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/Metal.h +94 -0
  242. package/sdk/ios/System/Library/Frameworks/Metal.framework/Modules/module.modulemap +6 -0
  243. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h +10 -0
  244. package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTDefines.h +35 -0
  245. package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTTagClass.h +33 -0
  246. package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTType.h +504 -0
  247. package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Headers/CLEssentialsAvailability.h +14 -0
  248. package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Headers/CLLocationEssentials.h +444 -0
  249. package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Headers/LocationEssentials.h +14 -0
  250. package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Modules/module.modulemap +14 -0
  251. package/sdk/ios/usr/include/arm/param.h +151 -0
  252. package/sdk/ios/usr/include/complex.h +167 -0
  253. package/sdk/ios/usr/include/dispatch/dispatch.h +8 -0
  254. package/sdk/ios/usr/include/dlfcn.h +1 -2
  255. package/sdk/ios/usr/include/mach/mach_types.h +1 -0
  256. package/sdk/ios/usr/include/machine/param.h +42 -0
  257. package/sdk/ios/usr/include/math.h +835 -2
  258. package/sdk/ios/usr/include/net/if.h +1 -2
  259. package/sdk/ios/usr/include/peach/pthread.h +4 -4
  260. package/sdk/ios/usr/include/pthread/qos.h +304 -0
  261. package/sdk/ios/usr/include/sys/_types/_fd_clr.h +31 -0
  262. package/sdk/ios/usr/include/sys/_types/_fd_copy.h +31 -0
  263. package/sdk/ios/usr/include/sys/_types/_fd_def.h +121 -0
  264. package/sdk/ios/usr/include/sys/_types/_fd_isset.h +31 -0
  265. package/sdk/ios/usr/include/sys/_types/_fd_set.h +31 -0
  266. package/sdk/ios/usr/include/sys/_types/_fd_setsize.h +31 -0
  267. package/sdk/ios/usr/include/sys/_types/_fd_zero.h +31 -0
  268. package/sdk/ios/usr/include/sys/cdefs.h +3 -1
  269. package/sdk/ios/usr/include/sys/param.h +235 -0
  270. package/sdk/ios/usr/include/sys/proc.h +1 -0
  271. package/sdk/ios/usr/include/sys/qos.h +151 -12
  272. package/sdk/ios/wasm/include/__typedef_sigset_t.h +7 -0
  273. package/sdk/ios/wasm/include/fcntl.h +11 -0
  274. package/sdk/ios/wasm/include/mach/machine/boolean.h +2 -0
  275. package/sdk/ios/wasm/include/mach/machine/exception.h +5 -0
  276. package/sdk/ios/wasm/include/mach/machine/kern_return.h +2 -0
  277. package/sdk/ios/wasm/include/mach/machine/processor_info.h +2 -0
  278. package/sdk/ios/wasm/include/mach/machine/rpc.h +2 -0
  279. package/sdk/ios/wasm/include/mach/machine/thread_state.h +3 -0
  280. package/sdk/ios/wasm/include/mach/machine/thread_status.h +3 -0
  281. package/sdk/ios/wasm/include/mach/machine/vm_param.h +3 -0
  282. package/sdk/ios/wasm/include/mach/machine/vm_types.h +18 -0
  283. package/sdk/ios/wasm/include/machine/_types.h +153 -0
  284. package/sdk/ios/wasm/include/machine/endian.h +2 -0
  285. package/sdk/ios/wasm/include/machine/limits.h +2 -0
  286. package/sdk/ios/wasm/include/machine/types.h +30 -0
  287. package/sdk/ios/wasm/include/poll.h +8 -0
  288. package/sdk/ios/wasm/include/pthread.h +50 -0
  289. package/sdk/ios/wasm/include/signal.h +72 -0
  290. package/sdk/ios/wasm/include/stdlib.h +3 -0
  291. package/sdk/ios/wasm/include/string.h +10 -0
  292. package/sdk/ios/wasm/include/sys/_pthread/_pthread_attr_t.h +7 -0
  293. package/sdk/ios/wasm/include/sys/_pthread/_pthread_t.h +7 -0
  294. package/sdk/ios/wasm/include/sys/mman.h +122 -0
  295. package/sdk/ios/wasm/include/sys/select.h +37 -0
  296. package/sdk/ios/wasm/include/sys/signal.h +259 -0
  297. package/sdk/ios/wasm/include/sys/socket.h +8 -0
  298. package/sdk/ios/wasm/include/sys/types.h +14 -0
  299. package/sdk/ios/wasm/include/sys/ucontext.h +1 -0
  300. package/sdk/ios/wasm/include/sys/uio.h +11 -0
  301. package/sdk/ios/wasm/include/sys/wait.h +89 -0
  302. package/sdk/ios/wasm/include/time.h +8 -0
  303. package/sdk/ios/wasm/include/unistd.h +17 -0
  304. package/src/bridge-contract.ts +2 -0
  305. package/src/chromium-admission.ts +10 -5
  306. package/src/device-catalog.ts +4 -4
  307. package/src/generated/swift-c-predefines.json +1988 -0
  308. package/src/host/fetch-proxy-handler.ts +20 -0
  309. package/src/metro-plugin.ts +5 -2
  310. package/src/nitro-adapter.lock.json +6 -6
  311. package/src/nitro-bundle.ts +1 -0
  312. package/src/nitro-compile.ts +67 -2
  313. package/src/nitroContract.ts +18 -2
  314. package/src/numbered-lock.ts +72 -0
  315. package/src/react-native-coverage/capability-reference-resolution.ts +62 -5
  316. package/src/react-native-coverage/capability-source-references.ts +50 -13
  317. package/src/react-native-coverage/native-source-credit.ts +126 -0
  318. package/src/react-native-coverage/native-source-ranges-file.ts +38 -0
  319. package/src/react-native-coverage/native-surface.ts +49 -0
  320. package/src/react-native-coverage/verified-reach.ts +22 -2
  321. package/src/runtime-assets.ts +17 -0
  322. package/src/swift-compile.ts +530 -97
  323. package/src/swift-coverage/indexing.ts +17 -1
  324. package/src/swift-coverage/package.ts +3 -1
  325. package/src/swift-coverage/sdk.ts +71 -0
  326. package/src/swift-coverage/source.ts +74 -2
  327. package/src/swift-coverage/types.ts +6 -0
  328. package/src/swift-coverage/xcode-assets.ts +62 -2
  329. package/src/swift-coverage/xcode-packages.ts +11 -6
  330. package/src/swift-distribution.lock.json +12 -12
  331. package/src/swift-host.ts +457 -62
  332. package/src/swift-objc-compile.ts +26 -26
  333. package/src/swift-objc-metadata.ts +2 -8
  334. package/src/swift-objc-platform.ts +53 -0
  335. package/src/swift-objc-standin.ts +66 -12
  336. package/src/swift-package-manifest.ts +196 -28
  337. package/src/swift-package.ts +186 -60
  338. package/src/swift-packages.ts +298 -88
  339. package/src/swift-source-file.ts +10 -15
  340. package/src/swift-source-pods.ts +288 -0
  341. package/src/swift-standins.ts +87 -13
  342. package/src/swift-submit.ts +5 -0
  343. package/src/swift-toolchain.ts +32 -10
  344. package/src/swiftContract.ts +160 -75
  345. package/src/target-matcher.ts +15 -2
  346. package/src/vite-plugin-one.ts +5 -4
  347. package/src/worker-system-chunks.ts +7 -1
  348. package/src/worklet-executable.ts +7 -3
  349. package/src/xcode-json-project.ts +14 -2
  350. package/src/xcode-project.ts +193 -69
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1674 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1692 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -393,12 +393,15 @@ function compileWorkletExecutables(source, onInsert) {
393
393
  if (typeof offset !== "number") throw new Error("peach: worklet code has no offset");
394
394
  return { offset, text: `, __peachExecutable: (${body})` };
395
395
  });
396
- let compiled = source;
396
+ const parts = [];
397
+ let cursor = source.length;
397
398
  for (const edit of edits.sort((a, b) => b.offset - a.offset)) {
398
399
  onInsert?.(edit.offset, edit.text);
399
- compiled = compiled.slice(0, edit.offset) + edit.text + compiled.slice(edit.offset);
400
+ parts.push(source.slice(edit.offset, cursor), edit.text);
401
+ cursor = edit.offset;
400
402
  }
401
- return compiled;
403
+ parts.push(source.slice(0, cursor));
404
+ return parts.reverse().join("");
402
405
  }
403
406
  // Annotate the CommonJS export names for ESM import in node:
404
407
  0 && (module.exports = {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1674 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1692 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/worklet-executable.ts
4
4
  import { parse } from "acorn";
@@ -368,12 +368,15 @@ function compileWorkletExecutables(source, onInsert) {
368
368
  if (typeof offset !== "number") throw new Error("peach: worklet code has no offset");
369
369
  return { offset, text: `, __peachExecutable: (${body})` };
370
370
  });
371
- let compiled = source;
371
+ const parts = [];
372
+ let cursor = source.length;
372
373
  for (const edit of edits.sort((a, b) => b.offset - a.offset)) {
373
374
  onInsert?.(edit.offset, edit.text);
374
- compiled = compiled.slice(0, edit.offset) + edit.text + compiled.slice(edit.offset);
375
+ parts.push(source.slice(edit.offset, cursor), edit.text);
376
+ cursor = edit.offset;
375
377
  }
376
- return compiled;
378
+ parts.push(source.slice(0, cursor));
379
+ return parts.reverse().join("");
377
380
  }
378
381
  export {
379
382
  compileWorkletExecutables,
@@ -76,7 +76,7 @@ export interface CanvasKitSwiftImageExports {
76
76
  _peach_imagesource_frame(source: number, index: number): number;
77
77
  _peach_imagesource_release(source: number): void;
78
78
  _peach_bitmap_composite(target: number, source: number, width: number, height: number, row: number, mode: number, info: number, flags: number, spans: number, spanCount: number, mask: number): number;
79
- _peach_bitmap_coverage(commands: number, count: number, width: number, height: number, flatness: number, evenOdd: number): number;
79
+ _peach_bitmap_coverage(commands: number, count: number, width: number, height: number, flatness: number, evenOdd: number, imageQuad: number): number;
80
80
  _peach_bitmap_thin_stroke(commands: number, count: number, width: number, height: number, lineWidth: number, flatness: number): number;
81
81
  _peach_bitmap_clip(commands: number, count: number, width: number, height: number, flatness: number, rule: number, mask: number, combine: number): number;
82
82
  _peach_bitmap_fill(target: number, width: number, height: number, row: number, color: number, spans: number, spanCount: number): number;
@@ -1,16 +1,35 @@
1
1
  import { type SyncReplyBuffer } from '../render-worker/nativeSyncReplyContract.d.ts';
2
- import type { SootSimClipboardPresence } from '../../../peach-globals/src/index.d.ts';
2
+ import type { SootSimClipboardPresence, SootSimClipboardImageData } from '../../../peach-globals/src/index.d.ts';
3
3
  export type ClipboardSyncOperation = {
4
4
  type: 'read';
5
5
  } | {
6
6
  type: 'presence';
7
+ } | {
8
+ type: 'read-image';
9
+ } | {
10
+ type: 'write-image';
11
+ image: SootSimClipboardImageData | null;
12
+ } | {
13
+ type: 'read-url';
14
+ } | {
15
+ type: 'write-url';
16
+ url: string | null;
7
17
  } | {
8
18
  type: 'write';
9
19
  text: string | null;
10
20
  };
11
21
  export type ClipboardSyncResponse = {
22
+ ok: true;
23
+ image: {
24
+ base64: string;
25
+ scale: number;
26
+ } | null;
27
+ } | {
12
28
  ok: true;
13
29
  text: string | null;
30
+ } | {
31
+ ok: true;
32
+ url: string | null;
14
33
  } | {
15
34
  ok: true;
16
35
  presence: SootSimClipboardPresence;
@@ -20,5 +39,8 @@ export type ClipboardSyncResponse = {
20
39
  };
21
40
  export declare function createClipboardSyncReply(): SharedArrayBuffer;
22
41
  export declare function completeClipboardSyncReply(reply: SyncReplyBuffer, response: ClipboardSyncResponse): void;
23
- export declare function decodeClipboardSyncResponse(response: unknown): string | null;
42
+ export declare function decodeClipboardSyncResponse(response: unknown, field?: 'text' | 'url'): string | null;
24
43
  export declare function decodeClipboardPresenceResponse(response: unknown): SootSimClipboardPresence;
44
+ export declare function isClipboardImageData(value: unknown): value is SootSimClipboardImageData | null;
45
+ export declare function encodeClipboardImageResponse(image: SootSimClipboardImageData | null): ClipboardSyncResponse;
46
+ export declare function decodeClipboardImageResponse(response: unknown): SootSimClipboardImageData | null;
@@ -1,7 +1,7 @@
1
- import type { RemotePeerIdentity } from '../remote-stream/cloud-display.d.ts';
2
- import type { PreviewBundleStripDescriptor } from './bundle-variantContract.d.ts';
1
+ import { type PreviewCaptureKind } from '../../../peach-globals/src/index.d.ts';
2
+ import { type RemotePeerIdentity } from '../remote-stream/cloud-display.d.ts';
3
+ import { type PreviewBundleStripDescriptor } from './bundle-variantContract.d.ts';
3
4
  import type { TraceFrameStats } from './trace.d.ts';
4
- import type { PreviewCaptureKind } from '../../../peach-globals/src/index.d.ts';
5
5
  export type PreviewUploadShareKind = 'flow' | 'build';
6
6
  export type PreviewUploadDeviceSpec = {
7
7
  model?: string;
@@ -108,6 +108,14 @@ export type PreviewUploadInitRequest = {
108
108
  pullRequestNumber?: number;
109
109
  pullRequestTitle?: string;
110
110
  };
111
+ export type PreviewUploadInitParseResult = {
112
+ ok: true;
113
+ value: PreviewUploadInitRequest;
114
+ } | {
115
+ ok: false;
116
+ path: string;
117
+ };
118
+ export declare function parsePreviewUploadInitRequest(value: unknown): PreviewUploadInitParseResult;
111
119
  export type PreviewUploadPresignedSlot = {
112
120
  putUrl: string;
113
121
  objectKey: string;
@@ -15,6 +15,11 @@ export type WebViewLoadResult = {
15
15
  } | {
16
16
  kind: 'restrictedPort';
17
17
  };
18
+ export declare function webViewNetworkError(kind: 'refused' | 'restrictedPort'): {
19
+ domain: string;
20
+ code: number;
21
+ description: string;
22
+ };
18
23
  export type WebViewLoadObservation = {
19
24
  frameName: string;
20
25
  instanceId: string;
@@ -115,6 +120,7 @@ export type WebViewAutomationHelpers = {
115
120
  evaluationScripts: typeof webViewEvaluationScripts;
116
121
  isAppScheme: typeof isAppSchemeUrl;
117
122
  isSameDocument: typeof isSameDocumentRequest;
123
+ networkError: typeof webViewNetworkError;
118
124
  redirectRequestHeaders: typeof redirectRequestHeaders;
119
125
  };
120
126
  export declare const webViewAutomationHelpers: WebViewAutomationHelpers;
@@ -1,3 +1,7 @@
1
+ export interface SootSimClipboardImageData {
2
+ bytes: ArrayBuffer;
3
+ scale: number;
4
+ }
1
5
  export interface SootSimClipboardImage {
2
6
  bytes: ArrayBuffer;
3
7
  mimeType: string;
@@ -29,6 +33,10 @@ export interface SootSimClipboardBridge {
29
33
  readPresence(): Promise<SootSimClipboardPresence>;
30
34
  readItems(): Promise<SootSimClipboardSnapshot>;
31
35
  writeItems(items: SootSimClipboardItems): Promise<void>;
36
+ readImageDataSync(): SootSimClipboardImageData | null;
37
+ writeImageDataSync(image: SootSimClipboardImageData | null): void;
38
+ readURLSync(): string | null;
39
+ writeURLSync(url: string | null): void;
32
40
  readStringSync(): string | null;
33
41
  writeStringSync(text: string | null): void;
34
42
  readText(): Promise<string>;
@@ -15,7 +15,7 @@ export type { SootSimDetectedBarcode, PeachCameraPhotoOptions, PeachCameraPhotoR
15
15
  export type { SootSimVideoSource, SootSimVideoStatus, SootSimVideoEvent, SootSimVideoBridge, } from './videoBridgeContract.d.ts';
16
16
  export type { SootSimSpeechSynthesisUtterance, SootSimSpeechSynthesisEvent, SootSimSpeechSynthesisBridge, } from './speechSynthesisBridgeContract.d.ts';
17
17
  export type { SootSimAudioRecorderOptions, SootSimAudioRecorderCommand, SootSimAudioRecorderSnapshot, SootSimAudioRecorderBridge, SootSimMediaSessionBridge, } from './audioBridgeContract.d.ts';
18
- export type { SootSimClipboardImage, SootSimClipboardChange, SootSimClipboardBridge, SootSimClipboardPresence, SootSimClipboardItems, SootSimClipboardSnapshot, } from './clipboardBridgeContract.d.ts';
18
+ export type { SootSimClipboardImage, SootSimClipboardImageData, SootSimClipboardChange, SootSimClipboardBridge, SootSimClipboardPresence, SootSimClipboardItems, SootSimClipboardSnapshot, } from './clipboardBridgeContract.d.ts';
19
19
  export type { SootSimHostStorageBridge } from './hostStorageBridgeContract.d.ts';
20
20
  export type { SootSimImagePickerAsset, SootSimImagePickerResult, SootSimImagePickerOptions, ShellNativeEvaluationOwner, SootSimImagePickerBridge, SootSimImageCropperSpec, SootSimImageCropperBridge, } from './imagePickerBridgeContract.d.ts';
21
21
  export type { SootSimAndroidPickerDay, SootSimAndroidPickerButton, SootSimAndroidDateTimePickerSpec, SootSimAndroidDateTimePickerResult, SootSimAndroidDateTimePickerBridge, } from './androidDateTimePickerBridgeContract.d.ts';
@@ -34,8 +34,9 @@ export interface SootSimNativePresentationInfo {
34
34
  timeOrigin: number | 'unknown';
35
35
  };
36
36
  }
37
- export interface SootSimTapResult extends Partial<Omit<SootSimTapRefusal, 'hit'>> {
37
+ export interface SootSimTapResult extends Partial<Omit<SootSimTapRefusal, 'hit' | 'requestedTargetMatched'>> {
38
38
  hit: boolean;
39
+ requestedTargetMatched?: SootSimTapTargetVerification['requestedTargetMatched'];
39
40
  presentationAtDown?: SootSimNativePresentationInfo;
40
41
  presentationAtUp?: SootSimNativePresentationInfo;
41
42
  type?: string;
@@ -427,7 +428,7 @@ export interface PeachAccessibilityNode {
427
428
  };
428
429
  children: PeachAccessibilityNode[];
429
430
  }
430
- export type PeachSwiftUiAccessibility = Pick<PeachAccessibilityNode, 'testID' | 'role'> & Required<Pick<PeachAccessibilityNode, 'inputLabels' | 'traits'>>;
431
+ export type PeachSwiftUiAccessibility = Pick<PeachAccessibilityNode, 'testID'> & Partial<Pick<PeachAccessibilityNode, 'role'>> & Required<Pick<PeachAccessibilityNode, 'inputLabels' | 'traits'>>;
431
432
  export type PeachDebugSnapshotOperation = 'snapshot' | 'snapshots' | 'diff' | 'clearSnapshots';
432
433
  export interface SootSimTargetMatcher {
433
434
  type: 'id' | 'text' | 'label' | 'type' | 'role';
@@ -134,6 +134,7 @@ export interface BottomTabBarProps {
134
134
  hasScrollEdgeEffect?: boolean;
135
135
  materialKey?: string;
136
136
  bottomAccessory?: BottomTabAccessoryRenderer;
137
+ bottomAccessorySizing?: 'fill';
137
138
  onBottomInsetChange?: (inset: number) => void;
138
139
  isMinimized?: boolean;
139
140
  minimizeProgress?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "peachsim",
3
- "version": "0.1.1674",
3
+ "version": "0.1.1692",
4
4
  "description": "Vite and Metro plugins, testing drivers, and SDK exports for peach.",
5
5
  "author": "Tamagui LLC",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -1 +1 @@
1
- {"abi":1,"sha256":"24766e3afc21d3c7b319b6d6db0422d93f64ecd0af7147a8ef16d16b5cb4e9a8","file":"node/cli-24766e3afc21d3c7b319b6d6db0422d93f64ecd0af7147a8ef16d16b5cb4e9a8.cjs"}
1
+ {"abi":1,"sha256":"0aa1bb93377f2ed084f869ab161285ff9e1c638510065738c97f0cbe806bb630","file":"node/cli-0aa1bb93377f2ed084f869ab161285ff9e1c638510065738c97f0cbe806bb630.cjs"}
@@ -1,4 +1,13 @@
1
1
  #pragma once
2
+ // CFBase.h reaches os/availability.h through CFAvailability.h.
3
+ #include <os/availability.h>
4
+ #ifndef CF_RETURNS_RETAINED
5
+ #if __has_feature(attribute_cf_returns_retained)
6
+ #define CF_RETURNS_RETAINED __attribute__((cf_returns_retained))
7
+ #else
8
+ #define CF_RETURNS_RETAINED
9
+ #endif
10
+ #endif
2
11
  // darwin sys/cdefs.h spells these; the wasi libc has no such header.
3
12
  #ifndef __nullable
4
13
  #define __nullable _Nullable
@@ -49,8 +58,9 @@
49
58
  #endif
50
59
  #endif
51
60
  typedef unsigned char Boolean;
52
- typedef unsigned int UInt32;
61
+ typedef unsigned char UInt8;
53
62
  typedef int32_t SInt32;
63
+ typedef unsigned int UInt32;
54
64
  typedef SInt32 OSStatus;
55
65
  typedef unsigned long CFOptionFlags;
56
66
  typedef signed long CFIndex;
@@ -126,7 +136,56 @@ typedef CF_ENUM(CFIndex, CFPropertyListFormat) {
126
136
  };
127
137
  CFUUIDRef CFUUIDCreate(CFAllocatorRef alloc);
128
138
  CFStringRef CFUUIDCreateString(CFAllocatorRef alloc, CFUUIDRef uuid);
139
+ typedef struct {
140
+ UInt8 byte0;
141
+ UInt8 byte1;
142
+ UInt8 byte2;
143
+ UInt8 byte3;
144
+ UInt8 byte4;
145
+ UInt8 byte5;
146
+ UInt8 byte6;
147
+ UInt8 byte7;
148
+ UInt8 byte8;
149
+ UInt8 byte9;
150
+ UInt8 byte10;
151
+ UInt8 byte11;
152
+ UInt8 byte12;
153
+ UInt8 byte13;
154
+ UInt8 byte14;
155
+ UInt8 byte15;
156
+ } CFUUIDBytes;
157
+ extern CFUUIDRef CFUUIDCreateFromUUIDBytes(CFAllocatorRef alloc, CFUUIDBytes bytes);
129
158
  CFStringRef CFErrorCopyDescription(CFErrorRef err) __attribute__((availability(macos,introduced=10.5), availability(ios,introduced=2.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
159
+ typedef UInt32 CFStringEncoding;
160
+ typedef CF_ENUM(CFStringEncoding, CFStringBuiltInEncodings) {
161
+ kCFStringEncodingMacRoman = 0,
162
+ kCFStringEncodingWindowsLatin1 = 0x0500,
163
+ kCFStringEncodingISOLatin1 = 0x0201,
164
+ kCFStringEncodingNextStepLatin = 0x0B01,
165
+ kCFStringEncodingASCII = 0x0600,
166
+ kCFStringEncodingUnicode = 0x0100,
167
+ kCFStringEncodingUTF8 = 0x08000100,
168
+ kCFStringEncodingNonLossyASCII = 0x0BFF,
169
+
170
+ kCFStringEncodingUTF16 = 0x0100,
171
+ kCFStringEncodingUTF16BE = 0x10000100,
172
+ kCFStringEncodingUTF16LE = 0x14000100,
173
+
174
+ kCFStringEncodingUTF32 = 0x0c000100,
175
+ kCFStringEncodingUTF32BE = 0x18000100,
176
+ kCFStringEncodingUTF32LE = 0x1c000100
177
+ };
178
+ #if defined(__GNUC__) && (__GNUC__*10+__GNUC_MINOR__ >= 42) && defined(__APPLE_CC__) && (__APPLE_CC__ > 1) && !defined(__INTEL_COMPILER) && TARGET_OS_MAC
179
+ #define CF_FORMAT_FUNCTION(F,A) __attribute__((format(CFString, F, A)))
180
+ #define CF_FORMAT_ARGUMENT(A) __attribute__((format_arg(A)))
181
+ #else
182
+ #define CF_FORMAT_FUNCTION(F,A)
183
+ #define CF_FORMAT_ARGUMENT(A)
184
+ #endif
185
+ extern CFStringRef CFStringCreateWithFormatAndArguments(CFAllocatorRef alloc, CFDictionaryRef formatOptions, CFStringRef format, va_list arguments) CF_FORMAT_FUNCTION(3,0);
186
+ extern CFStringRef CFStringCreateWithCString(CFAllocatorRef alloc, const char *cStr, CFStringEncoding encoding) CF_FORMAT_ARGUMENT(2);
187
+ extern CFIndex CFStringGetLength(CFStringRef theString);
188
+ extern Boolean CFStringGetCString(CFStringRef theString, char *buffer, CFIndex bufferSize, CFStringEncoding encoding);
130
189
  #pragma clang arc_cf_code_audited end
131
190
  #ifdef __cplusplus
132
191
  }
@@ -232,7 +291,6 @@ extern CFNumberType CFNumberGetType(CFNumberRef number);
232
291
  }
233
292
  #endif
234
293
  extern CFComparisonResult CFStringCompare(CFStringRef theString1, CFStringRef theString2, CFStringCompareFlags compareOptions);
235
- typedef unsigned char UInt8;
236
294
  extern CFStringRef __CFStringMakeConstantString(const char *cStr);
237
295
  #define CFSTR(cStr) __CFStringMakeConstantString("" cStr "")
238
296
  extern CFStringRef CFCopyDescription(CFTypeRef cf);
@@ -0,0 +1,22 @@
1
+ /*
2
+ * CLAvailability.h
3
+ * CoreLocation
4
+ *
5
+ * Copyright 2011 Apple Inc. All rights reserved.
6
+ *
7
+ */
8
+
9
+ /*
10
+ #ifndef __CL_INDIRECT__
11
+ #error "Please #include <CoreLocation/CoreLocation.h> instead of this file directly."
12
+ #endif // __CL_INDIRECT__
13
+ */
14
+
15
+ #import <Availability.h>
16
+ #import <os/availability.h>
17
+
18
+ #ifdef __cplusplus
19
+ #define CL_EXTERN extern "C" __attribute__((visibility ("default")))
20
+ #else
21
+ #define CL_EXTERN extern __attribute__((visibility ("default")))
22
+ #endif
@@ -0,0 +1,145 @@
1
+ //
2
+ // CLBackgroundActivitySession.h
3
+ // CoreLocation
4
+ //
5
+ // Created by Siraj Abidi on 02/20/23.
6
+ //
7
+
8
+ #import <Foundation/Foundation.h>
9
+ #import <CoreLocation/CLAvailability.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+
13
+ API_AVAILABLE(ios(18.0), watchos(11.0)) API_UNAVAILABLE(macos) NS_REFINED_FOR_SWIFT
14
+ @interface CLBackgroundActivitySessionDiagnostic : NSObject
15
+ /*
16
+ * authorizationDenied
17
+ *
18
+ * Discussion:
19
+ * True if the session will be suspended while the app has been denied
20
+ * location authorization.
21
+ *
22
+ */
23
+ @property (nonatomic, readonly) BOOL authorizationDenied;
24
+
25
+ /*
26
+ * authorizationDeniedGlobally
27
+ *
28
+ * Discussion:
29
+ * True if the session will be suspended while the user has disabled Location
30
+ * Services system-wide.
31
+ *
32
+ */
33
+ @property (nonatomic, readonly) BOOL authorizationDeniedGlobally;
34
+
35
+ /*
36
+ * authorizationRestricted
37
+ *
38
+ * Discussion:
39
+ * True if session will be suspended while the app lacks authorization,
40
+ * and authorization changes are prevented by parental restrictions,
41
+ * MDM configuration, or other factors.
42
+ */
43
+ @property (nonatomic, readonly) BOOL authorizationRestricted;
44
+
45
+ /*
46
+ * insufficientlyInUse
47
+ *
48
+ * Discussion:
49
+ * True if the session will be suspended while the app is not sufficiently
50
+ * in-use.
51
+ *
52
+ */
53
+ @property (nonatomic, readonly) BOOL insufficientlyInUse;
54
+
55
+ /*
56
+ * serviceSessionRequired
57
+ *
58
+ * Discussion:
59
+ * True if LocationServices are disabled because the app has adopted CLRequireExplicitServiceSession
60
+ * info.plist key but no CLServiceSession requiring authorization is outstanding yet.
61
+ *
62
+ */
63
+ @property (nonatomic, readonly) BOOL serviceSessionRequired API_AVAILABLE(macos(15.0), ios(18.0)) API_UNAVAILABLE(watchos, tvos);
64
+
65
+ /*
66
+ * authorizationRequestInProgress
67
+ *
68
+ * Discussion:
69
+ * True if the system is requesting authorization from the user on behalf of the app, but no response has been received yet.
70
+ *
71
+ */
72
+ @property (nonatomic, readonly) BOOL authorizationRequestInProgress API_AVAILABLE(macos(15.0), ios(18.0)) API_UNAVAILABLE(watchos, tvos);
73
+ @end
74
+
75
+ CL_EXTERN
76
+ API_AVAILABLE(ios(17.0), watchos(10.0)) API_UNAVAILABLE(macos) NS_REFINED_FOR_SWIFT
77
+ @interface CLBackgroundActivitySession : NSObject
78
+ - (instancetype)init NS_UNAVAILABLE;
79
+ + (instancetype)new NS_UNAVAILABLE;
80
+
81
+ /*
82
+ * invalidate
83
+ *
84
+ * Discussion:
85
+ * Ends the session immediately. Any UI giving visual attestation
86
+ * to this background session will also be terminated. Once the
87
+ * session is invalidated it cannot become active again.
88
+ */
89
+ - (void)invalidate API_AVAILABLE(ios(17.0), watchos(10.0), visionos(1.0)) API_UNAVAILABLE(macos);
90
+
91
+ /* backgroundActivitySession
92
+ * Discussion:
93
+ * Starts a background activity session allowing a When-In-Use
94
+ * authorized app to receive location updates or monitoring events. Provides
95
+ * user visibility about the background activity by displaying the Blue
96
+ * StatusBar/Pill and allowing the navigation back to this app by tapping
97
+ * the displayed UI.
98
+ *
99
+ * Session creation will always yield a session object but it may or may
100
+ * not be active based on the following circumstances:
101
+ *
102
+ * - A session may only be active for an app which has effective authorization.
103
+ * - A session may only be active for an app which includes Location in its
104
+ * UIBackgroundModes.
105
+ * - A new session may only become active while the app is foregrounded and
106
+ * in direct use.
107
+ * - An active session may continue when the app enters the background even
108
+ * if the app stops running.
109
+ * - An active session may be resumed immediately with this method when the
110
+ * app is next run, even in the background.
111
+ * - However, such a session which is not resumed immediately on next run
112
+ * will end and will need to qualify to become active again if still desired.
113
+ *
114
+ * When a session is active, the app remains in-use, so When-In-Use
115
+ * authorization will remain effective, and both Updater and Monitor
116
+ * APIs will be available.
117
+
118
+ * Note: the app is responsible for resuming an active session with this
119
+ * method immediately upon background launch if it wishes the session
120
+ * to remain active.
121
+ *
122
+ * Calling invalidate on the session will terminate it and render it
123
+ * immediately inactive.
124
+ *
125
+ * This session does not deliver diagnostic properties. Use
126
+ * -backgroundActivitySessionWithQueue:handler: to get diagnostic updates.
127
+ *
128
+ */
129
+ + (instancetype)backgroundActivitySession API_AVAILABLE(ios(17.0), watchos(10.0)) API_UNAVAILABLE(macos);
130
+
131
+ /* backgroundActivitySessionWithQueue:handler:
132
+ * Discussion:
133
+ * Starts a background activity session while delivering diagnostic
134
+ * updates to the handler.
135
+ *
136
+ * queue: Specifies the queue to which the handler is submitted with each
137
+ * available diagnostic.
138
+ * handler: Specifies the block that will be invoked with each update.
139
+ *
140
+ * See -backgroundActivitySession for more details
141
+ */
142
+ + (instancetype)backgroundActivitySessionWithQueue:(dispatch_queue_t)queue handler:(void(^)(CLBackgroundActivitySessionDiagnostic * diagnostic))handler API_AVAILABLE(ios(18.0), watchos(11.0)) API_UNAVAILABLE(macos);
143
+
144
+ @end
145
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,113 @@
1
+ /*
2
+ * CLBeaconIdentityCondition.h
3
+ * CoreLocation
4
+ *
5
+ * Copyright (c) 2023 Apple Inc. All rights reserved.
6
+ *
7
+ */
8
+
9
+ #pragma once
10
+
11
+ #import <Foundation/Foundation.h>
12
+ #import <CoreLocation/CLAvailability.h>
13
+ #import <CoreLocation/CLCondition.h>
14
+
15
+ NS_ASSUME_NONNULL_BEGIN
16
+
17
+ /*
18
+ * CLBeaconMajorValue
19
+ *
20
+ * Discussion:
21
+ * Type represents the most significant value in a beacon.
22
+ *
23
+ */
24
+ typedef uint16_t CLBeaconMajorValue;
25
+
26
+ /*
27
+ * CLBeaconMinorValue
28
+ *
29
+ * Discussion:
30
+ * Type represents the least significant value in a beacon.
31
+ *
32
+ */
33
+ typedef uint16_t CLBeaconMinorValue;
34
+
35
+
36
+ /*
37
+ * CLBeaconIdentityCondition
38
+ *
39
+ * Discussion:
40
+ * A condition that describes the identity caracteristics of a beacon.
41
+ *
42
+ * A beacon identity is defined by UUID, major and minor values.
43
+ * UUID must be specified. If only UUID is specified, the major and
44
+ * minor values will be wildcarded and any beacons with the same
45
+ * UUID will satisfy the condition. Similarly if only UUID and
46
+ * major value are specified, the minor value will be wildcarded
47
+ * and any beacons with the same UUID and major value will satisfy
48
+ * the condition.
49
+ *
50
+ */
51
+ NS_REFINED_FOR_SWIFT
52
+ CL_EXTERN
53
+ API_AVAILABLE(macos(14.0), ios(17.0)) API_UNAVAILABLE(watchos, tvos, visionos)
54
+ @interface CLBeaconIdentityCondition : CLCondition<NSCopying, NSSecureCoding>
55
+ /*
56
+ * UUID
57
+ *
58
+ * Discussion:
59
+ * UUID associated with the beacon.
60
+ *
61
+ */
62
+ @property (readonly, nonatomic, copy) NSUUID *UUID;
63
+
64
+ /*
65
+ * major
66
+ *
67
+ * Discussion:
68
+ * Most significant value associated with the beacon.
69
+ *
70
+ */
71
+ @property (readonly, nonatomic, copy, nullable) NSNumber *major NS_REFINED_FOR_SWIFT;
72
+
73
+ /*
74
+ * minor
75
+ *
76
+ * Discussion:
77
+ * Least significant value associated with the beacon.
78
+ *
79
+ */
80
+ @property (readonly, nonatomic, copy, nullable) NSNumber *minor NS_REFINED_FOR_SWIFT;
81
+
82
+ /*
83
+ * initWithUUID:
84
+ *
85
+ * Discussion:
86
+ * Initialize a beacon identity condition with a UUID. Major and
87
+ * minor values will be wildcarded.
88
+ *
89
+ */
90
+ - (instancetype)initWithUUID:(NSUUID *)uuid;
91
+
92
+ /*
93
+ * initWithUUID:major:
94
+ *
95
+ * Discussion:
96
+ * Initialize a beacon identity condition with a UUID and major
97
+ * value. Minor value will be wildcarded.
98
+ *
99
+ */
100
+ - (instancetype)initWithUUID:(NSUUID *)uuid major:(CLBeaconMajorValue)major;
101
+
102
+ /*
103
+ * initWithUUID:major:minor:
104
+ *
105
+ * Discussion:
106
+ * Initialize a beacon identity condition with a UUID, major, and
107
+ * minor values.
108
+ *
109
+ */
110
+ - (instancetype)initWithUUID:(NSUUID *)uuid major:(CLBeaconMajorValue)major minor:(CLBeaconMinorValue)minor;
111
+ @end
112
+
113
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,34 @@
1
+ /*
2
+ * CLBeaconIdentityConstraint.h
3
+ * CoreLocation
4
+ *
5
+ * Copyright (c) 2023 Apple Inc. All rights reserved.
6
+ *
7
+ */
8
+
9
+ #pragma once
10
+
11
+ #import <Foundation/Foundation.h>
12
+ #import <CoreLocation/CLAvailability.h>
13
+ #import <CoreLocation/CLCondition.h>
14
+ #import <CoreLocation/CLBeaconIdentityCondition.h>
15
+
16
+ NS_ASSUME_NONNULL_BEGIN
17
+
18
+ /*
19
+ * @brief
20
+ * CLBeaconIdentityConstraint
21
+ *
22
+ * @discussion
23
+ * Refer to \ref CLBeaconIdentityCondition for more details.
24
+ */
25
+
26
+ CL_EXTERN
27
+ API_DEPRECATED_WITH_REPLACEMENT("Use CLBeaconIdentityCondition", macos(10.15, API_TO_BE_DEPRECATED), ios(13.0, API_TO_BE_DEPRECATED))
28
+ API_UNAVAILABLE(watchos, tvos)
29
+ API_UNAVAILABLE(visionos)
30
+ @interface CLBeaconIdentityConstraint : CLBeaconIdentityCondition<NSCopying, NSSecureCoding>
31
+
32
+ @end
33
+
34
+ NS_ASSUME_NONNULL_END