peachsim 0.1.1684 → 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 (254) hide show
  1. package/cli/commands/coverage-swift.ts +72 -5
  2. package/cli/commands/inspect/actions.ts +1 -0
  3. package/cli/commands/screenshot.ts +12 -0
  4. package/dist-lib/agent-daemon-client.cjs +1 -1
  5. package/dist-lib/agent-events.cjs +1 -1
  6. package/dist-lib/attached-projects.cjs +1 -1
  7. package/dist-lib/auth/shared-session.cjs +1 -1
  8. package/dist-lib/backend-origin.cjs +1 -1
  9. package/dist-lib/beta.cjs +1 -1
  10. package/dist-lib/beta.mjs +1 -1
  11. package/dist-lib/bridge-constants.cjs +1 -1
  12. package/dist-lib/bridge-contract-input.cjs +1 -1
  13. package/dist-lib/bridge-contract-input.mjs +1 -1
  14. package/dist-lib/bridge-contract.cjs +1 -1
  15. package/dist-lib/bridge-contract.mjs +1 -1
  16. package/dist-lib/bundle-channel.cjs +2252 -1462
  17. package/dist-lib/capture-contract.cjs +1 -1
  18. package/dist-lib/capture-contract.mjs +1 -1
  19. package/dist-lib/cloud-contract.cjs +1 -1
  20. package/dist-lib/cloud-contract.mjs +1 -1
  21. package/dist-lib/cloud-test-args.cjs +1 -1
  22. package/dist-lib/cloud-test-args.mjs +1 -1
  23. package/dist-lib/cloud.cjs +1 -1
  24. package/dist-lib/cloud.mjs +1 -1
  25. package/dist-lib/config.cjs +1 -1
  26. package/dist-lib/config.mjs +1 -1
  27. package/dist-lib/detox/index.cjs +1 -1
  28. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  29. package/dist-lib/expo-swift-bundle.cjs +1762 -995
  30. package/dist-lib/expo-swift-metadata.cjs +1 -1
  31. package/dist-lib/expo-swift-metadata.mjs +1 -1
  32. package/dist-lib/home-paths.cjs +1 -1
  33. package/dist-lib/host/bridge-host.cjs +2184 -1417
  34. package/dist-lib/host/fetch-proxy-handler.cjs +3 -3
  35. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  36. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  37. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  38. package/dist-lib/host/websocket-proxy.cjs +1 -1
  39. package/dist-lib/index.cjs +175 -69
  40. package/dist-lib/jump-to-source-babel.cjs +1 -1
  41. package/dist-lib/jump-to-source-native.cjs +1 -1
  42. package/dist-lib/kotlin-host.cjs +1 -1
  43. package/dist-lib/menu.cjs +1 -1
  44. package/dist-lib/menu.mjs +1 -1
  45. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  46. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  47. package/dist-lib/metro-production-bundle.cjs +1 -1
  48. package/dist-lib/metro-production-bundle.mjs +1 -1
  49. package/dist-lib/metro.cjs +174 -68
  50. package/dist-lib/native-app-identity-project.cjs +163 -51
  51. package/dist-lib/native-app-identity-project.mjs +206 -82
  52. package/dist-lib/native-app-identity.cjs +1 -1
  53. package/dist-lib/native-app-identity.mjs +1 -1
  54. package/dist-lib/native-firebase-metadata.cjs +1 -1
  55. package/dist-lib/native-firebase-metadata.mjs +1 -1
  56. package/dist-lib/plist.cjs +1 -1
  57. package/dist-lib/plist.mjs +1 -1
  58. package/dist-lib/profiles.cjs +1 -1
  59. package/dist-lib/public-brand.cjs +1 -1
  60. package/dist-lib/public-origins-lib-esm.json +26 -23
  61. package/dist-lib/public-origins-lib.json +74 -61
  62. package/dist-lib/react-native-host-modules.cjs +1 -1
  63. package/dist-lib/react-native-host-modules.mjs +1 -1
  64. package/dist-lib/reap-browser.cjs +1 -1
  65. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  66. package/dist-lib/sdk.cjs +2 -2
  67. package/dist-lib/sdk.mjs +2 -2
  68. package/dist-lib/skills.cjs +2633 -1840
  69. package/dist-lib/swift-compile.cjs +2478 -100
  70. package/dist-lib/swift-compile.mjs +2475 -100
  71. package/dist-lib/swift-package.cjs +108 -50
  72. package/dist-lib/swift-package.mjs +104 -50
  73. package/dist-lib/swift-submit.cjs +1 -1
  74. package/dist-lib/swift-submit.mjs +1 -1
  75. package/dist-lib/swift-toolchain.cjs +1 -1
  76. package/dist-lib/swift.cjs +1 -1
  77. package/dist-lib/vite-swift.cjs +3979 -985
  78. package/dist-lib/vite.cjs +12 -18
  79. package/dist-lib/worklet-executable.cjs +7 -4
  80. package/dist-lib/worklet-executable.mjs +7 -4
  81. package/dist-types/packages/peach-engine/src/engine/clipboardContract.d.ts +15 -1
  82. package/dist-types/packages/peach-globals/src/clipboardBridgeContract.d.ts +6 -0
  83. package/dist-types/packages/peach-globals/src/index.d.ts +1 -1
  84. package/dist-types/packages/peach-globals/src/nodeContract.d.ts +3 -2
  85. package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -0
  86. package/package.json +1 -1
  87. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +9 -0
  88. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLAvailability.h +22 -0
  89. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBackgroundActivitySession.h +145 -0
  90. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconIdentityCondition.h +113 -0
  91. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconIdentityConstraint.h +34 -0
  92. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconRegion.h +225 -0
  93. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBody.h +26 -0
  94. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLCircularGeographicCondition.h +59 -0
  95. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLCircularRegion.h +64 -0
  96. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLCondition.h +48 -0
  97. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLError.h +52 -0
  98. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLErrorDomain.h +24 -0
  99. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLGeocoder.h +55 -0
  100. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLHeading.h +117 -0
  101. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocation.h +9 -0
  102. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager+CLVisitExtensions.h +45 -0
  103. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager.h +877 -0
  104. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManagerDelegate.h +225 -0
  105. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationPushServiceError.h +33 -0
  106. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationPushServiceExtension.h +28 -0
  107. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationUpdater.h +250 -0
  108. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitor.h +140 -0
  109. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitorConfiguration.h +77 -0
  110. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitoringEvent.h +184 -0
  111. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitoringRecord.h +57 -0
  112. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLPlacemark.h +98 -0
  113. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLRegion.h +123 -0
  114. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLServiceSession.h +211 -0
  115. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLVisit.h +66 -0
  116. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CoreLocation.h +46 -0
  117. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Modules/module.modulemap +7 -0
  118. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +96 -2
  119. package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceBase.h +52 -0
  120. package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceObjC.h +240 -0
  121. package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceRef.h +474 -0
  122. package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceTypes.h +66 -0
  123. package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Modules/module.modulemap +10 -0
  124. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4AccelerationStructure.h +9 -0
  125. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4Archive.h +16 -0
  126. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4ArgumentTable.h +17 -0
  127. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4BinaryFunction.h +13 -0
  128. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4BinaryFunctionDescriptor.h +14 -0
  129. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4BufferRange.h +79 -0
  130. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandAllocator.h +15 -0
  131. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandBuffer.h +17 -0
  132. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandEncoder.h +16 -0
  133. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandQueue.h +19 -0
  134. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommitFeedback.h +15 -0
  135. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4Compiler.h +13 -0
  136. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CompilerTask.h +13 -0
  137. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4ComputeCommandEncoder.h +19 -0
  138. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4ComputePipeline.h +13 -0
  139. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4Counters.h +19 -0
  140. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4FunctionDescriptor.h +13 -0
  141. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4LibraryDescriptor.h +13 -0
  142. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4LibraryFunctionDescriptor.h +13 -0
  143. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4LinkingDescriptor.h +13 -0
  144. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4MachineLearningCommandEncoder.h +17 -0
  145. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4MachineLearningPipeline.h +13 -0
  146. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4MeshRenderPipeline.h +13 -0
  147. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4PipelineDataSetSerializer.h +13 -0
  148. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4PipelineState.h +13 -0
  149. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4RenderCommandEncoder.h +17 -0
  150. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4RenderPass.h +17 -0
  151. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4RenderPipeline.h +13 -0
  152. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4SpecializedFunctionDescriptor.h +13 -0
  153. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4StitchedFunctionDescriptor.h +13 -0
  154. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4TileRenderPipeline.h +13 -0
  155. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAccelerationStructure.h +1212 -0
  156. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAccelerationStructureCommandEncoder.h +322 -0
  157. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAccelerationStructureTypes.h +224 -0
  158. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAllocation.h +22 -0
  159. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLArgument.h +279 -0
  160. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLArgumentEncoder.h +199 -0
  161. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBinaryArchive.h +142 -0
  162. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBlitCommandEncoder.h +266 -0
  163. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBlitPass.h +82 -0
  164. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBuffer.h +94 -0
  165. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCaptureManager.h +113 -0
  166. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCaptureScope.h +43 -0
  167. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCommandBuffer.h +449 -0
  168. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCommandEncoder.h +148 -0
  169. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCommandQueue.h +102 -0
  170. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLComputeCommandEncoder.h +350 -0
  171. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLComputePass.h +90 -0
  172. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h +274 -0
  173. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCounters.h +225 -0
  174. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDataType.h +232 -0
  175. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDefines.h +39 -0
  176. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDepthStencil.h +93 -0
  177. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDevice.h +1122 -0
  178. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDeviceCertification.h +29 -0
  179. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDrawable.h +36 -0
  180. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDynamicLibrary.h +81 -0
  181. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLEvent.h +79 -0
  182. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFence.h +22 -0
  183. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionConstantValues.h +30 -0
  184. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionDescriptor.h +95 -0
  185. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionHandle.h +29 -0
  186. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionLog.h +37 -0
  187. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionStitching.h +131 -0
  188. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLGPUAddress.h +19 -0
  189. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLHeap.h +284 -0
  190. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIOCommandBuffer.h +10 -0
  191. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIOCommandQueue.h +11 -0
  192. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIOCompressor.h +10 -0
  193. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIndirectCommandBuffer.h +157 -0
  194. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIndirectCommandEncoder.h +110 -0
  195. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIntersectionFunctionTable.h +186 -0
  196. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLLibrary.h +549 -0
  197. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLLinkedFunctions.h +57 -0
  198. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLLogState.h +65 -0
  199. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLParallelRenderCommandEncoder.h +77 -0
  200. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLPipeline.h +57 -0
  201. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLPixelFormat.h +342 -0
  202. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRasterizationRate.h +323 -0
  203. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRenderCommandEncoder.h +1068 -0
  204. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRenderPass.h +411 -0
  205. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRenderPipeline.h +788 -0
  206. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResidencySet.h +141 -0
  207. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResource.h +307 -0
  208. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResourceStateCommandEncoder.h +125 -0
  209. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResourceStatePass.h +85 -0
  210. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResourceViewPool.h +22 -0
  211. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLSampler.h +252 -0
  212. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLStageInputOutputDescriptor.h +158 -0
  213. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTensor.h +17 -0
  214. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTexture.h +460 -0
  215. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTextureViewPool.h +18 -0
  216. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTypes.h +125 -0
  217. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLVertexDescriptor.h +153 -0
  218. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLVisibleFunctionTable.h +45 -0
  219. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/Metal.h +94 -0
  220. package/sdk/ios/System/Library/Frameworks/Metal.framework/Modules/module.modulemap +6 -0
  221. package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTDefines.h +35 -0
  222. package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTTagClass.h +33 -0
  223. package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTType.h +504 -0
  224. package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Headers/CLEssentialsAvailability.h +14 -0
  225. package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Headers/CLLocationEssentials.h +444 -0
  226. package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Headers/LocationEssentials.h +14 -0
  227. package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Modules/module.modulemap +14 -0
  228. package/sdk/ios/usr/include/complex.h +167 -0
  229. package/sdk/ios/usr/include/dispatch/dispatch.h +5 -0
  230. package/sdk/ios/usr/include/mach/mach_types.h +1 -0
  231. package/sdk/ios/usr/include/math.h +835 -2
  232. package/sdk/ios/usr/include/sys/cdefs.h +0 -1
  233. package/src/generated/swift-c-predefines.json +1988 -0
  234. package/src/nitro-bundle.ts +1 -0
  235. package/src/nitro-compile.ts +4 -0
  236. package/src/nitroContract.ts +18 -2
  237. package/src/swift-compile.ts +446 -49
  238. package/src/swift-coverage/package.ts +3 -1
  239. package/src/swift-coverage/xcode-assets.ts +62 -2
  240. package/src/swift-coverage/xcode-packages.ts +11 -6
  241. package/src/swift-host.ts +333 -57
  242. package/src/swift-objc-compile.ts +20 -5
  243. package/src/swift-objc-standin.ts +21 -11
  244. package/src/swift-package-manifest.ts +151 -28
  245. package/src/swift-package.ts +134 -58
  246. package/src/swift-packages.ts +141 -44
  247. package/src/swift-source-file.ts +10 -15
  248. package/src/swift-standins.ts +87 -13
  249. package/src/swift-submit.ts +5 -0
  250. package/src/swiftContract.ts +160 -75
  251. package/src/target-matcher.ts +15 -2
  252. package/src/worklet-executable.ts +7 -3
  253. package/src/xcode-json-project.ts +14 -2
  254. package/src/xcode-project.ts +154 -59
package/dist-lib/vite.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1684 | (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 __create = Object.create;
@@ -655,7 +655,6 @@ var LAZY_STUB_PATTERNS = [
655
655
  "@azesmway/react-native-unity",
656
656
  "@azzapp/react-native-skia-video",
657
657
  "@batch.com/react-native-plugin",
658
- "@bravemobile/react-native-code-push",
659
658
  "@bugsnag/react-native",
660
659
  "@bugsnag/react-native-performance",
661
660
  "@callstack/react-native-bottom-tabs",
@@ -735,7 +734,6 @@ var LAZY_STUB_PATTERNS = [
735
734
  "react-native-adjust",
736
735
  "react-native-advanced-input-mask",
737
736
  "react-native-agora",
738
- "react-native-amplitude-analytics",
739
737
  "react-native-android-location-enabler",
740
738
  "react-native-android-widget",
741
739
  "react-native-animateable-text",
@@ -814,6 +812,7 @@ var LAZY_STUB_PATTERNS = [
814
812
  "react-native-share-menu",
815
813
  "react-native-shared-element",
816
814
  "react-native-simple-toast",
815
+ "react-native-skia",
817
816
  "react-native-spinkit",
818
817
  "react-native-ssl-public-key-pinning",
819
818
  "react-native-star-io10",
@@ -2467,6 +2466,7 @@ var NATIVE_STUB_PACKAGE_NAMES = [
2467
2466
  "react-native-simple-biometrics",
2468
2467
  "react-native-simple-toast",
2469
2468
  "react-native-siri-shortcut",
2469
+ "react-native-skia",
2470
2470
  "react-native-smart-splash-screen",
2471
2471
  "react-native-snackbar",
2472
2472
  "react-native-social-share",
@@ -5294,24 +5294,18 @@ var RNX_FORKED_SCRIPT_ENV = "PEACH_RUNS_FORKED_SCRIPTS";
5294
5294
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
5295
5295
  var import_node_fs6 = __toESM(require("node:fs"), 1);
5296
5296
  var import_node_path6 = __toESM(require("node:path"), 1);
5297
- function readPackageFile(root, file, maxBytes) {
5298
- const canonicalRoot = import_node_fs6.default.realpathSync(root);
5299
- const relative2 = import_node_path6.default.relative(canonicalRoot, import_node_fs6.default.realpathSync(file));
5297
+ function packageInputPath(canonicalRoot, file) {
5298
+ const canonicalFile = import_node_fs6.default.realpathSync(file);
5299
+ const relative2 = import_node_path6.default.relative(canonicalRoot, canonicalFile);
5300
5300
  if (relative2 === ".." || relative2.startsWith(`..${import_node_path6.default.sep}`) || import_node_path6.default.isAbsolute(relative2)) {
5301
5301
  throw new Error(`swift input escapes the selected package: ${file}`);
5302
5302
  }
5303
- let ancestor = import_node_path6.default.resolve(file);
5304
- while (ancestor !== canonicalRoot) {
5305
- if (import_node_fs6.default.lstatSync(ancestor).isSymbolicLink()) {
5306
- throw new Error(`swift input is a symlink: ${ancestor}`);
5307
- }
5308
- const parent = import_node_path6.default.dirname(ancestor);
5309
- if (parent === ancestor)
5310
- throw new Error(`swift input escapes the selected package: ${file}`);
5311
- ancestor = parent;
5312
- }
5313
- const expected = import_node_fs6.default.statSync(file);
5314
- const fd = import_node_fs6.default.openSync(file, import_node_fs6.default.constants.O_RDONLY | import_node_fs6.default.constants.O_NOFOLLOW);
5303
+ return canonicalFile;
5304
+ }
5305
+ function readPackageFile(root, file, maxBytes) {
5306
+ const canonicalFile = packageInputPath(import_node_fs6.default.realpathSync(root), file);
5307
+ const expected = import_node_fs6.default.statSync(canonicalFile);
5308
+ const fd = import_node_fs6.default.openSync(canonicalFile, import_node_fs6.default.constants.O_RDONLY | import_node_fs6.default.constants.O_NOFOLLOW);
5315
5309
  try {
5316
5310
  const stat = import_node_fs6.default.fstatSync(fd);
5317
5311
  if (stat.dev !== expected.dev || stat.ino !== expected.ino) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1684 | (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.1684 | (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,
@@ -1,9 +1,14 @@
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;
7
12
  } | {
8
13
  type: 'read-url';
9
14
  } | {
@@ -14,6 +19,12 @@ export type ClipboardSyncOperation = {
14
19
  text: string | null;
15
20
  };
16
21
  export type ClipboardSyncResponse = {
22
+ ok: true;
23
+ image: {
24
+ base64: string;
25
+ scale: number;
26
+ } | null;
27
+ } | {
17
28
  ok: true;
18
29
  text: string | null;
19
30
  } | {
@@ -30,3 +41,6 @@ export declare function createClipboardSyncReply(): SharedArrayBuffer;
30
41
  export declare function completeClipboardSyncReply(reply: SyncReplyBuffer, response: ClipboardSyncResponse): void;
31
42
  export declare function decodeClipboardSyncResponse(response: unknown, field?: 'text' | 'url'): string | null;
32
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,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,8 @@ 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;
32
38
  readURLSync(): string | null;
33
39
  writeURLSync(url: string | null): void;
34
40
  readStringSync(): string | null;
@@ -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.1684",
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,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
@@ -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