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
@@ -0,0 +1,211 @@
1
+ //
2
+ // CLServiceSession.h
3
+ // CoreLocation
4
+ //
5
+ // Created by Siraj Abidi on 04/11/24.
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), tvos(18.0), visionos(2.0)) API_UNAVAILABLE(macos)
14
+ typedef NS_ENUM(NSInteger, CLServiceSessionAuthorizationRequirement) {
15
+ CLServiceSessionAuthorizationRequirementNone = 0,
16
+ CLServiceSessionAuthorizationRequirementWhenInUse,
17
+ CLServiceSessionAuthorizationRequirementAlways API_UNAVAILABLE(tvos),
18
+ } NS_REFINED_FOR_SWIFT;
19
+
20
+ API_AVAILABLE(ios(18.0), watchos(11.0), tvos(18.0), visionos(2.0)) API_UNAVAILABLE(macos) NS_REFINED_FOR_SWIFT
21
+ @interface CLServiceSessionDiagnostic : NSObject
22
+ /*
23
+ * authorizationDenied
24
+ *
25
+ * Discussion:
26
+ * True if the session will be suspended while the app has been denied
27
+ * location authorization.
28
+ *
29
+ */
30
+ @property (nonatomic, readonly) BOOL authorizationDenied;
31
+
32
+ /*
33
+ * authorizationDeniedGlobally
34
+ *
35
+ * Discussion:
36
+ * True if the session will be suspended while the user has disabled Location
37
+ * Services system-wide.
38
+ *
39
+ */
40
+ @property (nonatomic, readonly) BOOL authorizationDeniedGlobally;
41
+
42
+ /*
43
+ * authorizationRestricted
44
+ *
45
+ * Discussion:
46
+ * True if session will be suspended while the app lacks authorization,
47
+ * and authorization changes are prevented by parental restrictions,
48
+ * MDM configuration, or other factors.
49
+ *
50
+ */
51
+ @property (nonatomic, readonly) BOOL authorizationRestricted;
52
+
53
+ /*
54
+ * insufficientlyInUse
55
+ *
56
+ * Discussion:
57
+ * True if the session will be suspended while the app is not sufficiently
58
+ * in-use.
59
+ *
60
+ */
61
+ @property (nonatomic, readonly) BOOL insufficientlyInUse;
62
+
63
+ /*
64
+ * serviceSessionRequired
65
+ *
66
+ * Discussion:
67
+ * True if LocationServices are disabled because the app has adopted CLRequireExplicitServiceSession
68
+ * info.plist key but no CLServiceSession requiring authorization is outstanding yet.
69
+ *
70
+ */
71
+ @property (nonatomic, readonly) BOOL serviceSessionRequired;
72
+
73
+ /*
74
+ * fullAccuracyDenied
75
+ *
76
+ * Discussion:
77
+ * True if a session requiring FullAccuracy has been denied full accuracy due to user decision.
78
+ *
79
+ */
80
+ @property (nonatomic, readonly) BOOL fullAccuracyDenied;
81
+
82
+ /*
83
+ * alwaysAuthorizationDenied
84
+ *
85
+ * Discussion:
86
+ * True if a session requiring Always authorization has been denied Always due to user decision.
87
+ *
88
+ */
89
+ @property (nonatomic, readonly) BOOL alwaysAuthorizationDenied;
90
+
91
+ /*
92
+ * authorizationRequestInProgress
93
+ *
94
+ * Discussion:
95
+ * True if the system is requesting authorization from the user on behalf of the app, but no response has been received yet.
96
+ *
97
+ */
98
+ @property (nonatomic, readonly) BOOL authorizationRequestInProgress;
99
+
100
+ @end
101
+
102
+ CL_EXTERN
103
+ API_AVAILABLE(ios(18.0), watchos(11.0), tvos(18.0), visionos(2.0)) API_UNAVAILABLE(macos) NS_REFINED_FOR_SWIFT
104
+ @interface CLServiceSession : NSObject
105
+ - (instancetype)init NS_UNAVAILABLE;
106
+ + (instancetype)new NS_UNAVAILABLE;
107
+
108
+
109
+ /*
110
+ * sessionRequiringAuthorization:
111
+ *
112
+ * Discussion:
113
+ * Creates a CLServiceSession instance with specified authorization requirement.
114
+ *
115
+ * authorizationRequirement: Passing None for authorization requirement
116
+ * creates a session object which does not seek authorization from the user,
117
+ * but meets a requested Explicit Service Session requirement if authorization
118
+ * has already been obtained.
119
+ *
120
+ * Passing an authorization requirement other than .none will cause
121
+ * Location Services to seek the corresponding level of authorization
122
+ * from the user when possible.
123
+ *
124
+ * Like a CLBackgroundActivitySession instance, a CLServiceSession
125
+ * instance should be created while in-use, or immediately when launched
126
+ * in the background if a matching session was held when previously
127
+ * running. If an instance is created that does not meet either
128
+ * requirement, it will yield the .insufficientlyInUse diagnostic until
129
+ * the app returns to the foreground (off-course to receive updates use the below
130
+ * variant which specifies a handler)
131
+ *
132
+ * Note: A CLServiceSession instance with an authorization requirement of
133
+ * .always must be held, and reporting no relevant diagnostic properties,
134
+ * whenever Always authorization is to be leveraged. An app with Always
135
+ * authorization, but which is not holding such a CLServiceSession will
136
+ * not be able to receive CLLocationUpdate.liveUpdates() or CLMonitor.events()
137
+ * when it is not in-use. So be careful to take one when the user
138
+ * configures always-operation, and retake it promptly during launch
139
+ * after background termination.
140
+ *
141
+ */
142
+ + (CLServiceSession *)sessionRequiringAuthorization:(CLServiceSessionAuthorizationRequirement)authorizationRequirement API_AVAILABLE(ios(18.0), watchos(11.0), tvos(18.0), visionos(2.0)) API_UNAVAILABLE(macos);
143
+
144
+ /* sessionRequiringAuthorization:queue:handler:
145
+ * Discussion:
146
+ * Creates a CLServiceSession instance with specified authorization requirement.
147
+ * Session behaves the same as decribed for sessionRequiringAuthorization:
148
+ *
149
+ * queue: Specifies the queue to which the handler is submitted for receiving
150
+ * diagnostic updates
151
+ *
152
+ * handler: Specifies the block that will be invoked with each diagnostic update.
153
+ *
154
+ */
155
+ + (CLServiceSession *)sessionRequiringAuthorization:(CLServiceSessionAuthorizationRequirement)authorizationRequirement
156
+ queue:(dispatch_queue_t)queue
157
+ handler:(void(^)(CLServiceSessionDiagnostic *diagnostic))handler API_AVAILABLE(ios(18.0), watchos(11.0), tvos(18.0), visionos(2.0)) API_UNAVAILABLE(macos);
158
+
159
+
160
+ /*
161
+ * sessionRequiringAuthorization:fullAccuracyPurposeKey:
162
+ *
163
+ * Discussion:
164
+ * Creates a CLServiceSession instance with specified authorization requirement
165
+ * and fullAccuracy Purpose Key
166
+ *
167
+ * authorizationRequirement:
168
+ * Same as applicable for sessionRequiringAuthorization: i.e Passing an
169
+ * authorization requirement other than .none will cause Location Services
170
+ * to seek the corresponding level of authorization from the user when possible.
171
+ *
172
+ * fullAccuracyPurposeKey:
173
+ * Names a string in the NSLocationTemporaryUsageDescriptionDictionary.
174
+ * Location Services will request temporary full accuracy authorization
175
+ * from the user using this string if necessary while this session is
176
+ * outstanding.
177
+ *
178
+ */
179
+ + (CLServiceSession *)sessionRequiringAuthorization:(CLServiceSessionAuthorizationRequirement)authorizationRequirement
180
+ fullAccuracyPurposeKey:(nonnull NSString *)purposeKey API_AVAILABLE(ios(18.0), watchos(11.0), tvos(18.0), visionos(2.0)) API_UNAVAILABLE(macos);
181
+
182
+
183
+
184
+ /*
185
+ * sessionRequiringAuthorization:fullAccuracyPurposeKey:queue:handler:
186
+ *
187
+ * Discussion:
188
+ * Creates a CLServiceSession instance with specified authorization requirement
189
+ * and fullAccuracy Purpose Key same as sessionRequiringAuthorization:fullAccuracyPurposeKey:
190
+ *
191
+ * This variant allows to specify a queue to which specified callback handler
192
+ * will be submitted for receiving diagnostic updates.
193
+ */
194
+ + (CLServiceSession *)sessionRequiringAuthorization:(CLServiceSessionAuthorizationRequirement)authorizationRequirement
195
+ fullAccuracyPurposeKey:(nonnull NSString *)purposeKey
196
+ queue:(dispatch_queue_t)queue
197
+ handler:(void(^)(CLServiceSessionDiagnostic *diagnostic))handler API_AVAILABLE(ios(18.0), watchos(11.0), tvos(18.0), visionos(2.0)) API_UNAVAILABLE(macos);
198
+
199
+
200
+ /*
201
+ * invalidate
202
+ *
203
+ * Discussion:
204
+ * Ends the session immediately. Once the session is
205
+ * invalidated it cannot become active again.
206
+ */
207
+ - (void)invalidate API_AVAILABLE(ios(18.0), watchos(11.0), tvos(18.0), visionos(2.0)) API_UNAVAILABLE(macos);
208
+
209
+ @end
210
+
211
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,66 @@
1
+ /*
2
+ * CLVisit.h
3
+ * CoreLocation
4
+ *
5
+ * Copyright (c) 2014 Apple Inc. All rights reserved.
6
+ *
7
+ */
8
+
9
+ #pragma once
10
+
11
+ #import <Foundation/Foundation.h>
12
+ #import <CoreLocation/CLLocation.h>
13
+
14
+ #import <CoreLocation/CLAvailability.h>
15
+
16
+ NS_ASSUME_NONNULL_BEGIN
17
+
18
+ /*
19
+ * CLVisit
20
+ *
21
+ * Discussion
22
+ * An instance of this class represents a possibly open-ended event
23
+ * during which the device was at the specified coordinate.
24
+ */
25
+ CL_EXTERN
26
+ API_AVAILABLE(ios(8.0), macos(10.15)) API_UNAVAILABLE(watchos, tvos, visionos)
27
+ @interface CLVisit : NSObject <NSSecureCoding, NSCopying>
28
+
29
+ /*
30
+ * arrivalDate
31
+ *
32
+ * Discussion:
33
+ * The date when the visit began. This may be equal to [NSDate
34
+ * distantPast] if the true arrival date isn't available.
35
+ */
36
+ @property (nonatomic, readonly, copy) NSDate *arrivalDate;
37
+
38
+ /*
39
+ * departureDate
40
+ *
41
+ * Discussion:
42
+ * The date when the visit ended. This is equal to [NSDate
43
+ * distantFuture] if the device hasn't yet left.
44
+ */
45
+ @property (nonatomic, readonly, copy) NSDate *departureDate;
46
+
47
+ /*
48
+ * coordinate
49
+ *
50
+ * Discussion:
51
+ * The center of the region which the device is visiting.
52
+ */
53
+ @property (nonatomic, readonly) CLLocationCoordinate2D coordinate;
54
+
55
+ /*
56
+ *
57
+ * horizontalAccuracy
58
+ *
59
+ * Discussion:
60
+ * An estimate of the radius (in meters) of the region which the
61
+ * device is visiting.
62
+ */
63
+ @property (nonatomic, readonly) CLLocationAccuracy horizontalAccuracy;
64
+ @end
65
+
66
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,46 @@
1
+ /*
2
+ * CoreLocation.h
3
+ * CoreLocation
4
+ *
5
+ * Copyright (c) 2008-2010 Apple Inc. All rights reserved.
6
+ *
7
+ */
8
+
9
+
10
+ #ifndef __CORELOCATION__
11
+ #define __CORELOCATION__
12
+
13
+ #ifndef __CL_INDIRECT__
14
+ #define __CL_INDIRECT__
15
+ #endif
16
+
17
+ #import <CoreLocation/CLAvailability.h>
18
+ #import <CoreLocation/CLErrorDomain.h>
19
+ #import <CoreLocation/CLError.h>
20
+ #import <CoreLocation/CLRegion.h>
21
+ #import <CoreLocation/CLCondition.h>
22
+ #import <CoreLocation/CLCircularRegion.h>
23
+ #import <CoreLocation/CLCircularGeographicCondition.h>
24
+ #import <CoreLocation/CLBeaconRegion.h>
25
+ #import <CoreLocation/CLBeaconIdentityConstraint.h>
26
+ #import <CoreLocation/CLBeaconIdentityCondition.h>
27
+ #import <CoreLocation/CLHeading.h>
28
+ #import <CoreLocation/CLLocation.h>
29
+ #import <CoreLocation/CLLocationManager.h>
30
+ #import <CoreLocation/CLLocationManagerDelegate.h>
31
+ #import <CoreLocation/CLLocationManager+CLVisitExtensions.h>
32
+ #import <CoreLocation/CLPlacemark.h>
33
+ #import <CoreLocation/CLGeocoder.h>
34
+ #import <CoreLocation/CLVisit.h>
35
+ #import <CoreLocation/CLLocationPushServiceExtension.h>
36
+ #import <CoreLocation/CLLocationPushServiceError.h>
37
+ #import <CoreLocation/CLLocationUpdater.h>
38
+ #import <CoreLocation/CLMonitoringEvent.h>
39
+ #import <CoreLocation/CLMonitoringRecord.h>
40
+ #import <CoreLocation/CLMonitorConfiguration.h>
41
+ #import <CoreLocation/CLMonitor.h>
42
+ #import <CoreLocation/CLBackgroundActivitySession.h>
43
+ #import <CoreLocation/CLServiceSession.h>
44
+ #import <CoreLocation/CLBody.h>
45
+
46
+ #endif /* __CORELOCATION__ */
@@ -0,0 +1,7 @@
1
+ framework module CoreLocation /*[extern_c]*/ {
2
+ umbrella header "CoreLocation.h"
3
+ export *
4
+ module * {
5
+ export *
6
+ }
7
+ }
@@ -11,6 +11,7 @@
11
11
  #include <limits.h>
12
12
  #include <assert.h>
13
13
  #include <unistd.h>
14
+ #include <uuid/uuid.h>
14
15
  #include <TargetConditionals.h>
15
16
  #import <objc/NSObject.h>
16
17
  #import <dispatch/dispatch.h>
@@ -68,7 +69,6 @@ typedef void NSUncaughtExceptionHandler(NSException * _Nonnull exception);
68
69
  #define FOUNDATION_STATIC_INLINE static inline
69
70
  #define NS_INLINE static inline
70
71
  #define CF_EXPORT extern
71
- #define CF_INLINE static inline
72
72
  #define OBJC_EXPORT extern
73
73
  #define NS_ASSUME_NONNULL_BEGIN _Pragma("clang assume_nonnull begin")
74
74
  #define NS_ASSUME_NONNULL_END _Pragma("clang assume_nonnull end")
@@ -118,7 +118,6 @@ typedef void NSUncaughtExceptionHandler(NSException * _Nonnull exception);
118
118
  #define CF_TYPED_ENUM _NS_TYPED_ENUM
119
119
  #define CF_TYPED_EXTENSIBLE_ENUM _NS_TYPED_EXTENSIBLE_ENUM
120
120
  #define CF_STRING_ENUM _NS_TYPED_ENUM
121
- #define CF_EXTENSIBLE_STRING_ENUM _NS_TYPED_EXTENSIBLE_ENUM
122
121
  #define NS_SWIFT_NAME(_name) __attribute__((swift_name(#_name)))
123
122
  #define CF_SWIFT_NAME(_name) __attribute__((swift_name(#_name)))
124
123
  #define NS_SWIFT_UNAVAILABLE(_msg) __attribute__((availability(swift, unavailable, message=_msg)))
@@ -325,6 +324,7 @@ __attribute__((swift_bridge("Swift.String")))
325
324
  - (NSComparisonResult)compare:(NSString *)string options:(NSStringCompareOptions)mask;
326
325
  @property (readonly) float floatValue;
327
326
  - (nullable instancetype)initWithUTF8String:(const char *)nullTerminatedCString NS_FORMAT_ARGUMENT(1);
327
+ - (NSString *)substringFromIndex:(NSUInteger)from;
328
328
  - (NSString *)substringWithRange:(NSRange)range;
329
329
  - (NSRange)rangeOfComposedCharacterSequencesForRange:(NSRange)range __attribute__((availability(macos,introduced=10.5), availability(ios,introduced=2.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
330
330
  @end
@@ -381,6 +381,7 @@ __attribute__((swift_bridge("Swift.Array")))
381
381
  - (void)enumerateObjectsUsingBlock:(void (NS_NOESCAPE ^)(ObjectType obj, NSUInteger idx, BOOL *stop))block __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=4.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
382
382
  @end
383
383
  @interface NSMutableArray<ObjectType> : NSArray<ObjectType>
384
+ - (void)setObject:(ObjectType)obj atIndexedSubscript:(NSUInteger)idx __attribute__((availability(macos,introduced=10.8), availability(ios,introduced=6.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
384
385
  - (void)removeObjectIdenticalTo:(ObjectType)anObject;
385
386
  - (void)removeObjectIdenticalTo:(ObjectType)anObject inRange:(NSRange)range;
386
387
  + (instancetype)arrayWithCapacity:(NSUInteger)numItems;
@@ -573,6 +574,7 @@ __attribute__((swift_bridge("Data")))
573
574
  - (void)appendBytes:(const void *)bytes length:(NSUInteger)length;
574
575
  @property (readonly) void *mutableBytes NS_RETURNS_INNER_POINTER;
575
576
  @property NSUInteger length;
577
+ + (nullable instancetype)dataWithCapacity:(NSUInteger)aNumItems;
576
578
  + (nullable instancetype)dataWithLength:(NSUInteger)length;
577
579
  @end
578
580
  @interface NSMutableData (NSExtendedMutableData)
@@ -789,6 +791,8 @@ typedef struct __attribute__((objc_bridge(id))) __SecTrust *SecTrustRef;
789
791
  @end
790
792
  __attribute__((swift_bridge("UUID")))
791
793
  @interface NSUUID : NSObject <NSCopying, NSSecureCoding>
794
+ + (instancetype)UUID;
795
+ - (void)getUUIDBytes:(uuid_t _Nonnull)uuid;
792
796
  @property (readonly, copy) NSString *UUIDString;
793
797
  @end
794
798
  __attribute__((swift_bridge("IndexPath")))
@@ -823,6 +827,8 @@ __attribute__((swift_bridge("Locale")))
823
827
  @end
824
828
  __attribute__((swift_bridge("TimeZone")))
825
829
  @interface NSTimeZone : NSObject <NSCopying, NSSecureCoding>
830
+ @property (class, readonly, copy) NSTimeZone *localTimeZone;
831
+ @property (nullable, readonly, copy) NSString *abbreviation;
826
832
  + (instancetype)timeZoneForSecondsFromGMT:(NSInteger)seconds;
827
833
  @end
828
834
  __attribute__((swift_bridge("Calendar")))
@@ -837,6 +843,7 @@ __attribute__((swift_bridge("Notification")))
837
843
  NS_SWIFT_NAME(NotificationCenter)
838
844
  @interface NSNotificationCenter : NSObject
839
845
  - (void)postNotificationName:(NSNotificationName)aName object:(nullable id)anObject;
846
+ - (void)postNotificationName:(NSNotificationName)aName object:(nullable id)anObject userInfo:(nullable NSDictionary *)aUserInfo;
840
847
  - (void)removeObserver:(id)observer name:(nullable NSNotificationName)aName object:(nullable id)anObject;
841
848
  - (void)addObserver:(id)observer selector:(SEL)aSelector name:(nullable NSNotificationName)aName object:(nullable id)anObject;
842
849
  @property (class, readonly, strong) NSNotificationCenter *defaultCenter;
@@ -852,6 +859,8 @@ FOUNDATION_EXPORT NSFileAttributeKey const NSFileSize;
852
859
  FOUNDATION_EXPORT NSFileAttributeKey const NSFileCreationDate;
853
860
  FOUNDATION_EXPORT NSFileAttributeKey const NSFileModificationDate;
854
861
  FOUNDATION_EXPORT NSFileAttributeKey const NSFileProtectionKey __attribute__((availability(ios,introduced=4.0)));
862
+ FOUNDATION_EXPORT NSFileAttributeKey const NSFileSystemSize;
863
+ FOUNDATION_EXPORT NSFileAttributeKey const NSFileSystemFreeSize;
855
864
  typedef NSString *NSFileProtectionType NS_TYPED_ENUM;
856
865
  FOUNDATION_EXPORT NSFileProtectionType const NSFileProtectionNone __attribute__((availability(ios,introduced=4.0)));
857
866
  FOUNDATION_EXPORT NSFileProtectionType const NSFileProtectionComplete __attribute__((availability(ios,introduced=4.0)));
@@ -919,6 +928,12 @@ NS_SWIFT_NAME(Bundle)
919
928
  @interface NSBundle : NSObject
920
929
  - (nullable NSString *)pathForResource:(nullable NSString *)name ofType:(nullable NSString *)ext;
921
930
  - (nullable id)objectForInfoDictionaryKey:(NSString *)key;
931
+ #if defined(__swift__)
932
+ @property (nullable, readonly, copy) NSURL *appStoreReceiptURL __attribute__((availability(macos,introduced=10.7,deprecated=15.0,message="Use AppTransaction.shared and Transaction.all from StoreKit.framework instead"), availability(ios,introduced=7.0,deprecated=18.0,message="Use AppTransaction.shared and Transaction.all from StoreKit.framework instead"), availability(watchos,introduced=2.0,deprecated=11.0,message="Use AppTransaction.shared and Transaction.all from StoreKit.framework instead"), availability(tvos,introduced=9.0,deprecated=18.0,message="Use AppTransaction.shared and Transaction.all from StoreKit.framework instead")));
933
+ #else
934
+ @property (nullable, readonly, copy) NSURL *appStoreReceiptURL __attribute__((availability(macos,introduced=10.7), availability(ios,introduced=7.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
935
+ #endif
936
+ @property (readonly, copy) NSString *bundlePath;
922
937
  @property (nullable, readonly, copy) NSString *executablePath;
923
938
  @property (nullable, readonly, copy) NSDictionary<NSString *, id> *infoDictionary;
924
939
  @property (class, readonly, strong) NSBundle *mainBundle;
@@ -979,6 +994,7 @@ NS_SWIFT_NAME(Thread)
979
994
  @property (nullable, copy) NSString *name __attribute__((availability(ios,introduced=2.0)));
980
995
  - (instancetype)initWithTarget:(id)target selector:(SEL)selector object:(nullable id)argument __attribute__((availability(ios,introduced=2.0)));
981
996
  - (void)start __attribute__((availability(ios,introduced=2.0)));
997
+ @property (readonly, getter=isCancelled) BOOL cancelled __attribute__((availability(macos,introduced=10.5), availability(ios,introduced=2.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
982
998
  - (void)cancel __attribute__((availability(ios,introduced=2.0)));
983
999
  + (void)sleepForTimeInterval:(NSTimeInterval)ti NS_SWIFT_UNAVAILABLE_FROM_ASYNC("Use Task.sleep(until:clock:) instead.");
984
1000
  @property (readonly) BOOL isMainThread __attribute__((availability(macos,introduced=10.5), availability(ios,introduced=2.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
@@ -1030,6 +1046,7 @@ typedef NS_OPTIONS(NSUInteger, NSSearchPathDomainMask) {
1030
1046
  NSSystemDomainMask = 8,
1031
1047
  NSAllDomainsMask = 0x0ffff
1032
1048
  };
1049
+ FOUNDATION_EXPORT NSString *NSHomeDirectory(void);
1033
1050
  FOUNDATION_EXPORT NSArray<NSString *> *NSSearchPathForDirectoriesInDomains(NSSearchPathDirectory directory, NSSearchPathDomainMask domainMask, BOOL expandTilde);
1034
1051
  NS_SWIFT_NAME(FileManager)
1035
1052
  typedef NS_OPTIONS(NSUInteger, NSDirectoryEnumerationOptions) {
@@ -1093,6 +1110,7 @@ typedef NS_ENUM(NSUInteger, NSKeyValueChange) {
1093
1110
  - (nullable NSArray<NSString *> *)contentsOfDirectoryAtPath:(NSString *)path error:(NSError **)error __attribute__((availability(ios,introduced=2.0)));
1094
1111
  - (nullable NSArray<NSString *> *)subpathsOfDirectoryAtPath:(NSString *)path error:(NSError **)error;
1095
1112
  - (nullable NSDictionary<NSFileAttributeKey, id> *)attributesOfItemAtPath:(NSString *)path error:(NSError **)error;
1113
+ - (nullable NSDictionary<NSFileAttributeKey, id> *)attributesOfFileSystemForPath:(NSString *)path error:(NSError **)error __attribute__((availability(macos,introduced=10.5), availability(ios,introduced=2.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
1096
1114
  - (BOOL)fileExistsAtPath:(NSString *)path;
1097
1115
  - (BOOL)copyItemAtPath:(NSString *)srcPath toPath:(NSString *)dstPath error:(NSError **)error __attribute__((availability(macos,introduced=10.5), availability(ios,introduced=2.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
1098
1116
  - (nullable NSData *)contentsAtPath:(NSString *)path;
@@ -1118,6 +1136,7 @@ NS_SWIFT_NAME(ProcessInfo)
1118
1136
  @property (readonly) unsigned long long physicalMemory __attribute__((availability(macos,introduced=10.5), availability(ios,introduced=2.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
1119
1137
  @property (class, readonly, strong) NSProcessInfo *processInfo;
1120
1138
  @property (copy) NSString *processName;
1139
+ @property (readonly) int processIdentifier;
1121
1140
  @property (readonly, copy) NSDictionary<NSString *, NSString *> *environment;
1122
1141
  @property (readonly) NSUInteger processorCount __attribute__((availability(ios,introduced=2.0)));
1123
1142
  @end
@@ -1359,6 +1378,102 @@ typedef NS_OPTIONS(NSUInteger, NSMatchingFlags) {
1359
1378
  + (nullable NSRegularExpression *)regularExpressionWithPattern:(NSString *)pattern options:(NSRegularExpressionOptions)options error:(NSError **)error;
1360
1379
  - (void)enumerateMatchesInString:(NSString *)string options:(NSMatchingOptions)options range:(NSRange)range usingBlock:(void (NS_NOESCAPE ^)(NSTextCheckingResult * _Nullable result, NSMatchingFlags flags, BOOL *stop))block;
1361
1380
  @end
1381
+ typedef struct NS_SWIFT_SENDABLE {
1382
+ /// The major release number, such as 10 in version 10.9.3.
1383
+ NSInteger majorVersion;
1384
+ /// The minor release number, such as 9 in version 10.9.3.
1385
+ NSInteger minorVersion;
1386
+ /// The update release number, such as 3 in version 10.9.3.
1387
+ NSInteger patchVersion;
1388
+ } NSOperatingSystemVersion NS_SWIFT_NAME(OperatingSystemVersion);
1389
+ @interface NSComparisonPredicate : NSPredicate
1390
+ @end
1391
+ NS_SWIFT_NAME(LengthFormatter)
1392
+ @interface NSLengthFormatter : NSFormatter
1393
+ @end
1394
+ NS_SWIFT_NAME(MassFormatter)
1395
+ @interface NSMassFormatter : NSFormatter
1396
+ @end
1397
+ NS_SWIFT_NAME(EnergyFormatter)
1398
+ @interface NSEnergyFormatter : NSFormatter
1399
+ @end
1400
+ /// Defines the type of comparison for a comparison predicate.
1401
+ typedef NS_ENUM(NSUInteger, NSPredicateOperatorType) {
1402
+ /// A less-than predicate.
1403
+ NSLessThanPredicateOperatorType NS_SWIFT_NAME(lessThan) = 0,
1404
+ /// A less-than-or-equal-to predicate.
1405
+ NSLessThanOrEqualToPredicateOperatorType NS_SWIFT_NAME(lessThanOrEqualTo),
1406
+ /// A greater-than predicate.
1407
+ NSGreaterThanPredicateOperatorType NS_SWIFT_NAME(greaterThan),
1408
+ /// A greater-than-or-equal-to predicate.
1409
+ NSGreaterThanOrEqualToPredicateOperatorType NS_SWIFT_NAME(greaterThanOrEqualTo),
1410
+ /// An equal-to predicate.
1411
+ NSEqualToPredicateOperatorType NS_SWIFT_NAME(equalTo),
1412
+ /// A not-equal-to predicate.
1413
+ NSNotEqualToPredicateOperatorType NS_SWIFT_NAME(notEqualTo),
1414
+ /// A full regular expression matching predicate.
1415
+ NSMatchesPredicateOperatorType NS_SWIFT_NAME(matches),
1416
+ /// A simple subset of the `MATCHES` predicate, similar in behavior to SQL `LIKE`.
1417
+ NSLikePredicateOperatorType NS_SWIFT_NAME(like),
1418
+ /// A begins-with predicate.
1419
+ NSBeginsWithPredicateOperatorType NS_SWIFT_NAME(beginsWith),
1420
+ /// An ends-with predicate.
1421
+ NSEndsWithPredicateOperatorType NS_SWIFT_NAME(endsWith),
1422
+ /// A predicate to determine if the left hand side is in the right hand side. For strings, returns `YES` if the left hand side is a substring of the right hand side. For collections, returns `YES` if the left hand side is in the right hand side.
1423
+ NSInPredicateOperatorType NS_SWIFT_NAME(in),
1424
+ /// A predicate that uses a custom selector that takes a single argument and returns a `BOOL` value. The selector is invoked on the left hand side with the right hand side as the argument.
1425
+ NSCustomSelectorPredicateOperatorType NS_SWIFT_NAME(customSelector),
1426
+ /// A predicate to determine if the left hand side contains the right hand side. Returns `YES` if `[lhs contains rhs]`; the left hand side must be an `NSExpression` object that evaluates to a collection.
1427
+ NSContainsPredicateOperatorType NS_SWIFT_NAME(contains) API_AVAILABLE(macos(10.5), ios(3.0), watchos(2.0), tvos(9.0)) = 99,
1428
+ /// A predicate to determine if the left hand side lies at or between bounds specified by the right hand side. The right hand side must be an array in which the first element sets the lower bound and the second element the upper, inclusive.
1429
+ NSBetweenPredicateOperatorType NS_SWIFT_NAME(between) API_AVAILABLE(macos(10.5), ios(3.0), watchos(2.0), tvos(9.0))
1430
+ } NS_SWIFT_NAME(NSComparisonPredicate.Operator);
1431
+
1432
+
1433
+ /// The units supported by the `NSLengthFormatter` class.
1434
+ typedef NS_ENUM(NSInteger, NSLengthFormatterUnit) {
1435
+ /// The millimeter unit.
1436
+ NSLengthFormatterUnitMillimeter = 8,
1437
+ /// The centimeter unit.
1438
+ NSLengthFormatterUnitCentimeter = 9,
1439
+ /// The meter unit.
1440
+ NSLengthFormatterUnitMeter = 11,
1441
+ /// The kilometer unit.
1442
+ NSLengthFormatterUnitKilometer = 14,
1443
+ /// The inch unit.
1444
+ NSLengthFormatterUnitInch = (5 << 8) + 1,
1445
+ /// The foot unit.
1446
+ NSLengthFormatterUnitFoot = (5 << 8) + 2,
1447
+ /// The yard unit.
1448
+ NSLengthFormatterUnitYard = (5 << 8) + 3,
1449
+ /// The mile unit.
1450
+ NSLengthFormatterUnitMile = (5 << 8) + 4,
1451
+ } NS_SWIFT_NAME(LengthFormatter.Unit) API_AVAILABLE(macos(10.10), ios(8.0), watchos(2.0), tvos(9.0));
1452
+
1453
+ /// The units supported by the `NSMassFormatter` class.
1454
+ typedef NS_ENUM(NSInteger, NSMassFormatterUnit) {
1455
+ /// The gram unit.
1456
+ NSMassFormatterUnitGram = 11,
1457
+ /// The kilogram unit.
1458
+ NSMassFormatterUnitKilogram = 14,
1459
+ /// The ounce unit.
1460
+ NSMassFormatterUnitOunce = (6 << 8) + 1,
1461
+ /// The pound unit.
1462
+ NSMassFormatterUnitPound = (6 << 8) + 2,
1463
+ /// The stone unit.
1464
+ NSMassFormatterUnitStone = (6 << 8) + 3,
1465
+ } NS_SWIFT_NAME(MassFormatter.Unit) API_AVAILABLE(macos(10.10), ios(8.0), watchos(2.0), tvos(9.0));
1466
+ /// The units supported by the `NSEnergyFormatter` class.
1467
+ typedef NS_ENUM(NSInteger, NSEnergyFormatterUnit) {
1468
+ /// The joule unit.
1469
+ NSEnergyFormatterUnitJoule = 11,
1470
+ /// The kilojoule unit.
1471
+ NSEnergyFormatterUnitKilojoule = 14,
1472
+ /// The calorie unit (chemistry "calories", abbreviated "cal").
1473
+ NSEnergyFormatterUnitCalorie = (7 << 8) + 1,
1474
+ /// The kilocalorie unit (kilocalories in general, abbreviated "kcal", or "C" in some locales when `isForFoodEnergyUse` is set to `YES`).
1475
+ NSEnergyFormatterUnitKilocalorie = (7 << 8) + 2,
1476
+ } NS_SWIFT_NAME(EnergyFormatter.Unit) API_AVAILABLE(macos(10.10), ios(8.0), watchos(2.0), tvos(9.0));
1362
1477
  NS_ROOT_CLASS
1363
1478
  @interface NSProxy <NSObject>
1364
1479
  + (id)alloc;
@@ -0,0 +1,52 @@
1
+ /*
2
+ * IOSurfaceBase.h
3
+ * IOSurface
4
+ *
5
+ * Copyright 2006-2017 Apple Inc. All rights reserved.
6
+ *
7
+ */
8
+
9
+ #ifndef IOSURFACE_BASE_H
10
+ #define IOSURFACE_BASE_H
11
+
12
+ #include <sys/cdefs.h>
13
+
14
+ #include <Availability.h>
15
+ #include <TargetConditionals.h>
16
+
17
+ #if defined(IOSFC_BUILDING_IOSFC)
18
+ # define IOSFC_DEPRECATED_MSG(s)
19
+ # define IOSFC_IOS_DEPRECATED_MSG(s)
20
+ #else /* !defined(IOSFC_BUILDING_IOSFC) */
21
+ # define IOSFC_DEPRECATED_MSG(s) DEPRECATED_MSG_ATTRIBUTE(s)
22
+ #if TARGET_OS_IPHONE
23
+ # define IOSFC_IOS_DEPRECATED_MSG(s) DEPRECATED_MSG_ATTRIBUTE(s)
24
+ #else
25
+ # define IOSFC_IOS_DEPRECATED_MSG(s)
26
+ #endif
27
+ #endif /* !defined(IOSFC_BUILDING_IOSFC) */
28
+
29
+ #if __has_feature(objc_class_property)
30
+ #define IOSFC_SWIFT_NAME(name) __attribute__((swift_name(#name)))
31
+ #else
32
+ #define IOSFC_SWIFT_NAME(name)
33
+ #endif
34
+
35
+ #if defined(__SWIFT_ATTR_SUPPORTS_SENDABLE_DECLS) && __SWIFT_ATTR_SUPPORTS_SENDABLE_DECLS
36
+ // The typedef or struct should be imported as 'Sendable' in Swift
37
+ #define IOSFC_SWIFT_SENDABLE __attribute__((swift_attr("@Sendable")))
38
+ // The typedef or struct should *not* be imported as 'Sendable' in Swift even if it normally would be
39
+ #define IOSFC_SWIFT_NONSENDABLE __attribute__((swift_attr("@_nonSendable")))
40
+ #else
41
+ #define IOSFC_SWIFT_SENDABLE
42
+ #define IOSFC_SWIFT_NONSENDABLE
43
+ #endif // __SWIFT_ATTR_SUPPORTS_SENDABLE_DECLS
44
+
45
+ #include <mach/kern_return.h>
46
+ #include <mach/mach_types.h>
47
+ #include <CoreFoundation/CoreFoundation.h>
48
+ #if TARGET_OS_OSX
49
+ #include <xpc/xpc.h>
50
+ #endif
51
+
52
+ #endif