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.
- package/cli/commands/control.ts +13 -1
- package/cli/commands/coverage-swift.ts +150 -27
- package/cli/commands/coverage.ts +219 -20
- package/cli/commands/detect.ts +10 -6
- package/cli/commands/inspect/actions.ts +1 -0
- package/cli/commands/inspect/core.ts +2 -0
- package/cli/commands/inspect/wait-ready.ts +7 -0
- package/cli/commands/screenshot.ts +12 -0
- package/cli/outbound-endpoints.ts +12 -0
- package/detox/index.ts +11 -1
- package/detox/jest-environment.cjs +14 -0
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +4833 -2432
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +6 -4
- package/dist-lib/detox/jest-environment.cjs +14 -0
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +3785 -1737
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +4253 -2205
- package/dist-lib/host/fetch-proxy-handler.cjs +20 -7
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +2065 -796
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +6325 -4287
- package/dist-lib/native-app-identity-project.cjs +192 -55
- package/dist-lib/native-app-identity-project.mjs +235 -86
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +27 -23
- package/dist-lib/public-origins-lib-static.json +1 -1
- package/dist-lib/public-origins-lib.json +156 -87
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +2 -2
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +3 -2
- package/dist-lib/sdk.mjs +3 -2
- package/dist-lib/skills.cjs +5036 -2833
- package/dist-lib/swift-compile.cjs +2937 -437
- package/dist-lib/swift-compile.mjs +2932 -435
- package/dist-lib/swift-package.cjs +137 -49
- package/dist-lib/swift-package.mjs +132 -49
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +26 -11
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +6005 -1725
- package/dist-lib/vite.cjs +1911 -776
- package/dist-lib/worklet-executable.cjs +7 -4
- package/dist-lib/worklet-executable.mjs +7 -4
- package/dist-types/packages/peach-engine/src/engine/canvaskit-api.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/clipboardContract.d.ts +24 -2
- package/dist-types/packages/peach-engine/src/preview/upload-protocol.d.ts +11 -3
- package/dist-types/packages/peach-engine/src/webview-automation-host.d.ts +6 -0
- package/dist-types/packages/peach-globals/src/clipboardBridgeContract.d.ts +8 -0
- package/dist-types/packages/peach-globals/src/index.d.ts +1 -1
- package/dist-types/packages/peach-globals/src/nodeContract.d.ts +3 -2
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +60 -2
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLAvailability.h +22 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBackgroundActivitySession.h +145 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconIdentityCondition.h +113 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconIdentityConstraint.h +34 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconRegion.h +225 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBody.h +26 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLCircularGeographicCondition.h +59 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLCircularRegion.h +64 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLCondition.h +48 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLError.h +52 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLErrorDomain.h +24 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLGeocoder.h +55 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLHeading.h +117 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocation.h +9 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager+CLVisitExtensions.h +45 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager.h +877 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManagerDelegate.h +225 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationPushServiceError.h +33 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationPushServiceExtension.h +28 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationUpdater.h +250 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitor.h +140 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitorConfiguration.h +77 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitoringEvent.h +184 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitoringRecord.h +57 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLPlacemark.h +98 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLRegion.h +123 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLServiceSession.h +211 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLVisit.h +66 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CoreLocation.h +46 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Modules/module.modulemap +7 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +117 -2
- package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceBase.h +52 -0
- package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceObjC.h +240 -0
- package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceRef.h +474 -0
- package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceTypes.h +66 -0
- package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Modules/module.modulemap +10 -0
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFComposeAssistantViewController.h +29 -0
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMailComposeControllerDeferredAction.h +14 -0
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMailComposeViewController.h +162 -0
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMailDraft.h +24 -0
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMessageComposeViewController+UPI.h +31 -0
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMessageComposeViewController.h +169 -0
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MessageUI.h +13 -0
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Modules/module.modulemap +11 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4AccelerationStructure.h +9 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4Archive.h +16 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4ArgumentTable.h +17 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4BinaryFunction.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4BinaryFunctionDescriptor.h +14 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4BufferRange.h +79 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandAllocator.h +15 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandBuffer.h +17 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandEncoder.h +16 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandQueue.h +19 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommitFeedback.h +15 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4Compiler.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CompilerTask.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4ComputeCommandEncoder.h +19 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4ComputePipeline.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4Counters.h +19 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4FunctionDescriptor.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4LibraryDescriptor.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4LibraryFunctionDescriptor.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4LinkingDescriptor.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4MachineLearningCommandEncoder.h +17 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4MachineLearningPipeline.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4MeshRenderPipeline.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4PipelineDataSetSerializer.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4PipelineState.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4RenderCommandEncoder.h +17 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4RenderPass.h +17 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4RenderPipeline.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4SpecializedFunctionDescriptor.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4StitchedFunctionDescriptor.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4TileRenderPipeline.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAccelerationStructure.h +1212 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAccelerationStructureCommandEncoder.h +322 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAccelerationStructureTypes.h +224 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAllocation.h +22 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLArgument.h +279 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLArgumentEncoder.h +199 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBinaryArchive.h +142 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBlitCommandEncoder.h +266 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBlitPass.h +82 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBuffer.h +94 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCaptureManager.h +113 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCaptureScope.h +43 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCommandBuffer.h +449 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCommandEncoder.h +148 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCommandQueue.h +102 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLComputeCommandEncoder.h +350 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLComputePass.h +90 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h +274 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCounters.h +225 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDataType.h +232 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDefines.h +39 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDepthStencil.h +93 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDevice.h +1122 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDeviceCertification.h +29 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDrawable.h +36 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDynamicLibrary.h +81 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLEvent.h +79 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFence.h +22 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionConstantValues.h +30 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionDescriptor.h +95 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionHandle.h +29 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionLog.h +37 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionStitching.h +131 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLGPUAddress.h +19 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLHeap.h +284 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIOCommandBuffer.h +10 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIOCommandQueue.h +11 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIOCompressor.h +10 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIndirectCommandBuffer.h +157 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIndirectCommandEncoder.h +110 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIntersectionFunctionTable.h +186 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLLibrary.h +549 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLLinkedFunctions.h +57 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLLogState.h +65 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLParallelRenderCommandEncoder.h +77 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLPipeline.h +57 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLPixelFormat.h +342 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRasterizationRate.h +323 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRenderCommandEncoder.h +1068 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRenderPass.h +411 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRenderPipeline.h +788 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResidencySet.h +141 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResource.h +307 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResourceStateCommandEncoder.h +125 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResourceStatePass.h +85 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResourceViewPool.h +22 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLSampler.h +252 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLStageInputOutputDescriptor.h +158 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTensor.h +17 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTexture.h +460 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTextureViewPool.h +18 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTypes.h +125 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLVertexDescriptor.h +153 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLVisibleFunctionTable.h +45 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/Metal.h +94 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h +10 -0
- package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTDefines.h +35 -0
- package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTTagClass.h +33 -0
- package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTType.h +504 -0
- package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Headers/CLEssentialsAvailability.h +14 -0
- package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Headers/CLLocationEssentials.h +444 -0
- package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Headers/LocationEssentials.h +14 -0
- package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Modules/module.modulemap +14 -0
- package/sdk/ios/usr/include/arm/param.h +151 -0
- package/sdk/ios/usr/include/complex.h +167 -0
- package/sdk/ios/usr/include/dispatch/dispatch.h +8 -0
- package/sdk/ios/usr/include/dlfcn.h +1 -2
- package/sdk/ios/usr/include/mach/mach_types.h +1 -0
- package/sdk/ios/usr/include/machine/param.h +42 -0
- package/sdk/ios/usr/include/math.h +835 -2
- package/sdk/ios/usr/include/net/if.h +1 -2
- package/sdk/ios/usr/include/peach/pthread.h +4 -4
- package/sdk/ios/usr/include/pthread/qos.h +304 -0
- package/sdk/ios/usr/include/sys/_types/_fd_clr.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_fd_copy.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_fd_def.h +121 -0
- package/sdk/ios/usr/include/sys/_types/_fd_isset.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_fd_set.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_fd_setsize.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_fd_zero.h +31 -0
- package/sdk/ios/usr/include/sys/cdefs.h +3 -1
- package/sdk/ios/usr/include/sys/param.h +235 -0
- package/sdk/ios/usr/include/sys/proc.h +1 -0
- package/sdk/ios/usr/include/sys/qos.h +151 -12
- package/sdk/ios/wasm/include/__typedef_sigset_t.h +7 -0
- package/sdk/ios/wasm/include/fcntl.h +11 -0
- package/sdk/ios/wasm/include/mach/machine/boolean.h +2 -0
- package/sdk/ios/wasm/include/mach/machine/exception.h +5 -0
- package/sdk/ios/wasm/include/mach/machine/kern_return.h +2 -0
- package/sdk/ios/wasm/include/mach/machine/processor_info.h +2 -0
- package/sdk/ios/wasm/include/mach/machine/rpc.h +2 -0
- package/sdk/ios/wasm/include/mach/machine/thread_state.h +3 -0
- package/sdk/ios/wasm/include/mach/machine/thread_status.h +3 -0
- package/sdk/ios/wasm/include/mach/machine/vm_param.h +3 -0
- package/sdk/ios/wasm/include/mach/machine/vm_types.h +18 -0
- package/sdk/ios/wasm/include/machine/_types.h +153 -0
- package/sdk/ios/wasm/include/machine/endian.h +2 -0
- package/sdk/ios/wasm/include/machine/limits.h +2 -0
- package/sdk/ios/wasm/include/machine/types.h +30 -0
- package/sdk/ios/wasm/include/poll.h +8 -0
- package/sdk/ios/wasm/include/pthread.h +50 -0
- package/sdk/ios/wasm/include/signal.h +72 -0
- package/sdk/ios/wasm/include/stdlib.h +3 -0
- package/sdk/ios/wasm/include/string.h +10 -0
- package/sdk/ios/wasm/include/sys/_pthread/_pthread_attr_t.h +7 -0
- package/sdk/ios/wasm/include/sys/_pthread/_pthread_t.h +7 -0
- package/sdk/ios/wasm/include/sys/mman.h +122 -0
- package/sdk/ios/wasm/include/sys/select.h +37 -0
- package/sdk/ios/wasm/include/sys/signal.h +259 -0
- package/sdk/ios/wasm/include/sys/socket.h +8 -0
- package/sdk/ios/wasm/include/sys/types.h +14 -0
- package/sdk/ios/wasm/include/sys/ucontext.h +1 -0
- package/sdk/ios/wasm/include/sys/uio.h +11 -0
- package/sdk/ios/wasm/include/sys/wait.h +89 -0
- package/sdk/ios/wasm/include/time.h +8 -0
- package/sdk/ios/wasm/include/unistd.h +17 -0
- package/src/bridge-contract.ts +2 -0
- package/src/chromium-admission.ts +10 -5
- package/src/device-catalog.ts +4 -4
- package/src/generated/swift-c-predefines.json +1988 -0
- package/src/host/fetch-proxy-handler.ts +20 -0
- package/src/metro-plugin.ts +5 -2
- package/src/nitro-adapter.lock.json +6 -6
- package/src/nitro-bundle.ts +1 -0
- package/src/nitro-compile.ts +67 -2
- package/src/nitroContract.ts +18 -2
- package/src/numbered-lock.ts +72 -0
- package/src/react-native-coverage/capability-reference-resolution.ts +62 -5
- package/src/react-native-coverage/capability-source-references.ts +50 -13
- package/src/react-native-coverage/native-source-credit.ts +126 -0
- package/src/react-native-coverage/native-source-ranges-file.ts +38 -0
- package/src/react-native-coverage/native-surface.ts +49 -0
- package/src/react-native-coverage/verified-reach.ts +22 -2
- package/src/runtime-assets.ts +17 -0
- package/src/swift-compile.ts +530 -97
- package/src/swift-coverage/indexing.ts +17 -1
- package/src/swift-coverage/package.ts +3 -1
- package/src/swift-coverage/sdk.ts +71 -0
- package/src/swift-coverage/source.ts +74 -2
- package/src/swift-coverage/types.ts +6 -0
- package/src/swift-coverage/xcode-assets.ts +62 -2
- package/src/swift-coverage/xcode-packages.ts +11 -6
- package/src/swift-distribution.lock.json +12 -12
- package/src/swift-host.ts +457 -62
- package/src/swift-objc-compile.ts +26 -26
- package/src/swift-objc-metadata.ts +2 -8
- package/src/swift-objc-platform.ts +53 -0
- package/src/swift-objc-standin.ts +66 -12
- package/src/swift-package-manifest.ts +196 -28
- package/src/swift-package.ts +186 -60
- package/src/swift-packages.ts +298 -88
- package/src/swift-source-file.ts +10 -15
- package/src/swift-source-pods.ts +288 -0
- package/src/swift-standins.ts +87 -13
- package/src/swift-submit.ts +5 -0
- package/src/swift-toolchain.ts +32 -10
- package/src/swiftContract.ts +160 -75
- package/src/target-matcher.ts +15 -2
- package/src/vite-plugin-one.ts +5 -4
- package/src/worker-system-chunks.ts +7 -1
- package/src/worklet-executable.ts +7 -3
- package/src/xcode-json-project.ts +14 -2
- package/src/xcode-project.ts +193 -69
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* CLBeaconRegion.h
|
|
3
|
+
* CoreLocation
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) 2012 Apple Inc. All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
#import <CoreLocation/CLRegion.h>
|
|
11
|
+
#import <CoreLocation/CLAvailability.h>
|
|
12
|
+
#import <CoreLocation/CLBeaconIdentityConstraint.h>
|
|
13
|
+
|
|
14
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
15
|
+
|
|
16
|
+
/*
|
|
17
|
+
* CLBeaconRegion
|
|
18
|
+
*
|
|
19
|
+
* Discussion:
|
|
20
|
+
* A region containing similar beacons.
|
|
21
|
+
*
|
|
22
|
+
* Such a region can be defined by UUID, major and minor values.
|
|
23
|
+
* UUID must be specified. If only UUID is specified, the major and
|
|
24
|
+
* minor values will be wildcarded and the region will match any
|
|
25
|
+
* beacons with the same UUID. Similarly if only UUID and major
|
|
26
|
+
* value are specified, the minor value will be wildcarded and the
|
|
27
|
+
* region will match against any beacons with the same UUID and
|
|
28
|
+
* major value.
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
CL_EXTERN
|
|
32
|
+
API_DEPRECATED_WITH_REPLACEMENT("Use CLBeaconIdentityCondition", macos(10.15, API_TO_BE_DEPRECATED), ios(7.0, API_TO_BE_DEPRECATED))
|
|
33
|
+
API_UNAVAILABLE(watchos, tvos)
|
|
34
|
+
API_UNAVAILABLE(visionos)
|
|
35
|
+
|
|
36
|
+
@interface CLBeaconRegion : CLRegion
|
|
37
|
+
|
|
38
|
+
/*
|
|
39
|
+
* initWithUUID:identifier:
|
|
40
|
+
*
|
|
41
|
+
* Discussion:
|
|
42
|
+
* Initialize a beacon region with a UUID. Major and minor values will be wildcarded.
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
- (instancetype)initWithUUID:(NSUUID *)uuid identifier:(NSString *)identifier API_AVAILABLE(ios(13.0), macos(10.15)) API_UNAVAILABLE(watchos, tvos, visionos);
|
|
46
|
+
- (instancetype)initWithProximityUUID:(NSUUID *)proximityUUID identifier:(NSString *)identifier API_DEPRECATED_WITH_REPLACEMENT("-initWithUUID:identifier:", ios(7.0, 13.0), macos(10.15, 10.15)) API_UNAVAILABLE(visionos);
|
|
47
|
+
|
|
48
|
+
/*
|
|
49
|
+
* initWithUUID:major:identifier:
|
|
50
|
+
*
|
|
51
|
+
* Discussion:
|
|
52
|
+
* Initialize a beacon region with a UUID and major value. Minor value will be wildcarded.
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
- (instancetype)initWithUUID:(NSUUID *)uuid major:(CLBeaconMajorValue)major identifier:(NSString *)identifier API_AVAILABLE(ios(13.0), macos(10.15)) API_UNAVAILABLE(watchos, tvos, visionos);
|
|
56
|
+
- (instancetype)initWithProximityUUID:(NSUUID *)proximityUUID major:(CLBeaconMajorValue)major identifier:(NSString *)identifier API_DEPRECATED_WITH_REPLACEMENT("-initWithUUID:major:identifier:", ios(7.0, 13.0), macos(10.15, 10.15)) API_UNAVAILABLE(visionos);
|
|
57
|
+
|
|
58
|
+
/*
|
|
59
|
+
* initWithUUID:major:minor:identifier:
|
|
60
|
+
*
|
|
61
|
+
* Discussion:
|
|
62
|
+
* Initialize a beacon region identified by a UUID, major and minor values.
|
|
63
|
+
*
|
|
64
|
+
*/
|
|
65
|
+
- (instancetype)initWithUUID:(NSUUID *)uuid major:(CLBeaconMajorValue)major minor:(CLBeaconMinorValue)minor identifier:(NSString *)identifier API_AVAILABLE(ios(13.0), macos(10.15)) API_UNAVAILABLE(watchos, tvos, visionos);
|
|
66
|
+
- (instancetype)initWithProximityUUID:(NSUUID *)proximityUUID major:(CLBeaconMajorValue)major minor:(CLBeaconMinorValue)minor identifier:(NSString *)identifier API_DEPRECATED_WITH_REPLACEMENT("-initWithUUID:major:identifier:", ios(7.0, 13.0), macos(10.15, 10.15)) API_UNAVAILABLE(visionos);
|
|
67
|
+
|
|
68
|
+
/*
|
|
69
|
+
* initWithBeaconIdentityConstraint:identifier:
|
|
70
|
+
*
|
|
71
|
+
* Discussion:
|
|
72
|
+
* Initialize a beacon region described by a beacon identity
|
|
73
|
+
* constraint.
|
|
74
|
+
*
|
|
75
|
+
*/
|
|
76
|
+
- (instancetype)initWithBeaconIdentityConstraint:(CLBeaconIdentityConstraint *)beaconIdentityConstraint identifier:(NSString *)identifier API_AVAILABLE(ios(13.0), macos(10.15)) API_UNAVAILABLE(watchos, tvos, visionos);
|
|
77
|
+
|
|
78
|
+
/*
|
|
79
|
+
* peripheralDataWithMeasuredPower:
|
|
80
|
+
*
|
|
81
|
+
* Discussion:
|
|
82
|
+
* This dictionary can be used to advertise the current device as a beacon when
|
|
83
|
+
* used in conjunction with CoreBluetooth's CBPeripheralManager startAdvertising: method.
|
|
84
|
+
* The dictionary will contain data that represents the current region in addition to a measured power value.
|
|
85
|
+
*
|
|
86
|
+
* measuredPower is the RSSI of the device observed from one meter in its intended environment.
|
|
87
|
+
* This value is optional, but should be specified to achieve the best ranging performance.
|
|
88
|
+
* If not specified, it will default to a pre-determined value for the device.
|
|
89
|
+
*
|
|
90
|
+
*/
|
|
91
|
+
- (NSMutableDictionary<NSString *, id> *)peripheralDataWithMeasuredPower:(nullable NSNumber *)measuredPower;
|
|
92
|
+
|
|
93
|
+
/*
|
|
94
|
+
* beaconIdentityConstraint
|
|
95
|
+
*
|
|
96
|
+
* Discussion:
|
|
97
|
+
* Returns a CLBeaconIdentityConstraint describing the beacons this region monitors.
|
|
98
|
+
*/
|
|
99
|
+
@property (readonly, nonatomic, copy) CLBeaconIdentityConstraint *beaconIdentityConstraint API_AVAILABLE(ios(13.0), macos(10.15)) API_UNAVAILABLE(watchos, tvos, visionos);
|
|
100
|
+
|
|
101
|
+
/*
|
|
102
|
+
* UUID
|
|
103
|
+
*
|
|
104
|
+
* Discussion:
|
|
105
|
+
* UUID associated with the region.
|
|
106
|
+
*
|
|
107
|
+
*/
|
|
108
|
+
@property (readonly, nonatomic, copy) NSUUID *UUID API_AVAILABLE(ios(13.0), macos(10.15)) API_UNAVAILABLE(watchos, tvos, visionos);
|
|
109
|
+
@property (readonly, nonatomic, copy) NSUUID *proximityUUID API_DEPRECATED_WITH_REPLACEMENT("-UUID", ios(7.0, 13.0), macos(10.15, 10.15)) API_UNAVAILABLE(visionos);
|
|
110
|
+
|
|
111
|
+
/*
|
|
112
|
+
* major
|
|
113
|
+
*
|
|
114
|
+
* Discussion:
|
|
115
|
+
* Most significant value associated with the region. If a major value wasn't specified, this will be nil.
|
|
116
|
+
*
|
|
117
|
+
*/
|
|
118
|
+
@property (readonly, nonatomic, copy, nullable) NSNumber *major;
|
|
119
|
+
|
|
120
|
+
/*
|
|
121
|
+
* minor
|
|
122
|
+
*
|
|
123
|
+
* Discussion:
|
|
124
|
+
* Least significant value associated with the region. If a minor value wasn't specified, this will be nil.
|
|
125
|
+
*
|
|
126
|
+
*/
|
|
127
|
+
@property (readonly, nonatomic, copy, nullable) NSNumber *minor;
|
|
128
|
+
|
|
129
|
+
/*
|
|
130
|
+
* notifyEntryStateOnDisplay
|
|
131
|
+
*
|
|
132
|
+
* Discussion:
|
|
133
|
+
* App will be launched and the delegate will be notified via locationManager:didDetermineState:forRegion:
|
|
134
|
+
* when the device's screen is turned on and the user is in the region. By default, this is NO.
|
|
135
|
+
*/
|
|
136
|
+
@property (atomic, assign) BOOL notifyEntryStateOnDisplay;
|
|
137
|
+
|
|
138
|
+
@end
|
|
139
|
+
|
|
140
|
+
@class CLBeaconInternal;
|
|
141
|
+
|
|
142
|
+
/*
|
|
143
|
+
* CLBeacon
|
|
144
|
+
*
|
|
145
|
+
* Discussion:
|
|
146
|
+
* A single beacon within a CLBeaconRegion.
|
|
147
|
+
*
|
|
148
|
+
*/
|
|
149
|
+
API_AVAILABLE(ios(7.0), macos(10.15)) API_UNAVAILABLE(watchos, tvos, visionos)
|
|
150
|
+
@interface CLBeacon : NSObject <NSCopying, NSSecureCoding>
|
|
151
|
+
{
|
|
152
|
+
@package
|
|
153
|
+
CLBeaconInternal *_internal;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/*
|
|
157
|
+
* timestamp
|
|
158
|
+
*
|
|
159
|
+
* Discussion:
|
|
160
|
+
* The time when this beacon was observed.
|
|
161
|
+
*
|
|
162
|
+
*/
|
|
163
|
+
@property (readonly, nonatomic, copy) NSDate *timestamp API_AVAILABLE(ios(13.0), macos(10.15)) API_UNAVAILABLE(watchos, tvos, visionos);
|
|
164
|
+
|
|
165
|
+
/*
|
|
166
|
+
* UUID
|
|
167
|
+
*
|
|
168
|
+
* Discussion:
|
|
169
|
+
* UUID associated with the beacon.
|
|
170
|
+
*
|
|
171
|
+
*/
|
|
172
|
+
@property (readonly, nonatomic, copy) NSUUID *UUID API_AVAILABLE(ios(13.0), macos(10.15)) API_UNAVAILABLE(watchos, tvos, visionos);
|
|
173
|
+
@property (readonly, nonatomic, copy) NSUUID *proximityUUID API_DEPRECATED_WITH_REPLACEMENT("-UUID", ios(7.0, 13.0), macos(10.15, 10.15)) API_UNAVAILABLE(visionos);
|
|
174
|
+
|
|
175
|
+
/*
|
|
176
|
+
* major
|
|
177
|
+
*
|
|
178
|
+
* Discussion:
|
|
179
|
+
* Most significant value associated with the beacon.
|
|
180
|
+
*
|
|
181
|
+
*/
|
|
182
|
+
@property (readonly, nonatomic, copy) NSNumber *major;
|
|
183
|
+
|
|
184
|
+
/*
|
|
185
|
+
* minor
|
|
186
|
+
*
|
|
187
|
+
* Discussion:
|
|
188
|
+
* Least significant value associated with the beacon.
|
|
189
|
+
*
|
|
190
|
+
*/
|
|
191
|
+
@property (readonly, nonatomic, copy) NSNumber *minor;
|
|
192
|
+
|
|
193
|
+
/*
|
|
194
|
+
* proximity
|
|
195
|
+
*
|
|
196
|
+
* Discussion:
|
|
197
|
+
* Proximity of the beacon from the device.
|
|
198
|
+
*
|
|
199
|
+
*/
|
|
200
|
+
@property (readonly, nonatomic) CLProximity proximity;
|
|
201
|
+
|
|
202
|
+
/*
|
|
203
|
+
* accuracy
|
|
204
|
+
*
|
|
205
|
+
* Discussion:
|
|
206
|
+
* Represents an one sigma horizontal accuracy in meters where the measuring device's location is
|
|
207
|
+
* referenced at the beaconing device. This value is heavily subject to variations in an RF environment.
|
|
208
|
+
* A negative accuracy value indicates the proximity is unknown.
|
|
209
|
+
*
|
|
210
|
+
*/
|
|
211
|
+
@property (readonly, nonatomic) CLLocationAccuracy accuracy;
|
|
212
|
+
|
|
213
|
+
/*
|
|
214
|
+
* rssi
|
|
215
|
+
*
|
|
216
|
+
* Discussion:
|
|
217
|
+
* Received signal strength in decibels of the specified beacon.
|
|
218
|
+
* This value is an average of the RSSI samples collected since this beacon was last reported.
|
|
219
|
+
*
|
|
220
|
+
*/
|
|
221
|
+
@property (readonly, nonatomic) NSInteger rssi;
|
|
222
|
+
|
|
223
|
+
@end
|
|
224
|
+
|
|
225
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* CLBody.h
|
|
3
|
+
* CoreLocation
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2026 Apple, Inc. All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
#import <CoreLocation/CLAvailability.h>
|
|
10
|
+
#import <Foundation/Foundation.h>
|
|
11
|
+
|
|
12
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
13
|
+
|
|
14
|
+
/*
|
|
15
|
+
* CLBodyIdentifiable
|
|
16
|
+
*
|
|
17
|
+
* Discussion:
|
|
18
|
+
* A protocol that objects adopt to identify a body for heading calculations.
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
CL_EXTERN
|
|
22
|
+
API_AVAILABLE(ios(27.0), macos(27.0), watchos(27.0), tvos(27.0), visionos(27.0))
|
|
23
|
+
@protocol CLBodyIdentifiable <NSObject>
|
|
24
|
+
@end
|
|
25
|
+
|
|
26
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
//
|
|
2
|
+
// CLCircularGeographicCondition.h
|
|
3
|
+
// CoreLocation
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2023 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#pragma once
|
|
9
|
+
|
|
10
|
+
#import <Foundation/Foundation.h>
|
|
11
|
+
#import <CoreLocation/CLLocation.h>
|
|
12
|
+
#import <CoreLocation/CLCondition.h>
|
|
13
|
+
|
|
14
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
15
|
+
|
|
16
|
+
NS_REFINED_FOR_SWIFT
|
|
17
|
+
CL_EXTERN
|
|
18
|
+
API_AVAILABLE(macos(14.0), ios(17.0)) API_UNAVAILABLE(watchos, tvos, visionos)
|
|
19
|
+
|
|
20
|
+
/*
|
|
21
|
+
* @brief
|
|
22
|
+
* CLCircularGeographicCondition
|
|
23
|
+
*
|
|
24
|
+
@discussion
|
|
25
|
+
* Circular geographic condition defined by center(lat, lon) and radius
|
|
26
|
+
*/
|
|
27
|
+
@interface CLCircularGeographicCondition : CLCondition<NSSecureCoding>
|
|
28
|
+
|
|
29
|
+
/*
|
|
30
|
+
* @brief
|
|
31
|
+
* center
|
|
32
|
+
*
|
|
33
|
+
@discussion
|
|
34
|
+
* The center of the circular geographic condition
|
|
35
|
+
*/
|
|
36
|
+
@property (readonly) CLLocationCoordinate2D center;
|
|
37
|
+
|
|
38
|
+
/*
|
|
39
|
+
* @brief
|
|
40
|
+
* radius
|
|
41
|
+
*
|
|
42
|
+
* @discussion
|
|
43
|
+
* The radius of the circular geographic condition
|
|
44
|
+
*/
|
|
45
|
+
@property (readonly) CLLocationDistance radius;
|
|
46
|
+
|
|
47
|
+
/*
|
|
48
|
+
* @brief
|
|
49
|
+
* initWithCenter:radius
|
|
50
|
+
*
|
|
51
|
+
* @discussion
|
|
52
|
+
* Returns an instance of circular geographic condition initialized
|
|
53
|
+
* with given center and radius
|
|
54
|
+
*/
|
|
55
|
+
-(instancetype) initWithCenter:(CLLocationCoordinate2D)center radius:(CLLocationDistance)radius;
|
|
56
|
+
|
|
57
|
+
@end
|
|
58
|
+
|
|
59
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* CLCircularRegion.h
|
|
3
|
+
* CoreLocation
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) 2012 Apple Inc. All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
#import <CoreLocation/CLRegion.h>
|
|
11
|
+
#import <CoreLocation/CLLocation.h>
|
|
12
|
+
#import <CoreLocation/CLAvailability.h>
|
|
13
|
+
|
|
14
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
15
|
+
|
|
16
|
+
/*
|
|
17
|
+
* CLCircularRegion
|
|
18
|
+
*
|
|
19
|
+
* Discussion:
|
|
20
|
+
* A circular geographic area.
|
|
21
|
+
*/
|
|
22
|
+
CL_EXTERN
|
|
23
|
+
API_DEPRECATED_WITH_REPLACEMENT("Use CLCircularGeographicCondition", macos(10.10, API_TO_BE_DEPRECATED), ios(7.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED), tvos(9.0, API_TO_BE_DEPRECATED)) API_UNAVAILABLE(visionos)
|
|
24
|
+
@interface CLCircularRegion : CLRegion
|
|
25
|
+
|
|
26
|
+
/*
|
|
27
|
+
* initWithCenter:radius:identifier:
|
|
28
|
+
*
|
|
29
|
+
* Discussion:
|
|
30
|
+
* Initialize a region. center gives the coordinates of center of the region, while radius gives
|
|
31
|
+
* the distance in meters between the center and the region's boundary. identifier is a description
|
|
32
|
+
* for the region that could be displayed to the user, and ideally should be chosen by the user.
|
|
33
|
+
*/
|
|
34
|
+
- (instancetype)initWithCenter:(CLLocationCoordinate2D)center
|
|
35
|
+
radius:(CLLocationDistance)radius
|
|
36
|
+
identifier:(NSString *)identifier;
|
|
37
|
+
|
|
38
|
+
/*
|
|
39
|
+
* center
|
|
40
|
+
*
|
|
41
|
+
* Discussion:
|
|
42
|
+
* Returns the coordinate of the center of the region.
|
|
43
|
+
*/
|
|
44
|
+
@property (readonly, atomic) CLLocationCoordinate2D center;
|
|
45
|
+
|
|
46
|
+
/*
|
|
47
|
+
* radius
|
|
48
|
+
*
|
|
49
|
+
* Discussion:
|
|
50
|
+
* Returns the radius of the region.
|
|
51
|
+
*/
|
|
52
|
+
@property (readonly, atomic) CLLocationDistance radius;
|
|
53
|
+
|
|
54
|
+
/*
|
|
55
|
+
* containsCoordinate:
|
|
56
|
+
*
|
|
57
|
+
* Discussion:
|
|
58
|
+
* Returns YES if the coordinate lies inside the region, and NO otherwise.
|
|
59
|
+
*/
|
|
60
|
+
- (BOOL)containsCoordinate:(CLLocationCoordinate2D)coordinate;
|
|
61
|
+
|
|
62
|
+
@end
|
|
63
|
+
|
|
64
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
//
|
|
2
|
+
// CLCondition.h
|
|
3
|
+
// CLCondition
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2021 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
#pragma once
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
#import <CoreLocation/CLAvailability.h>
|
|
11
|
+
|
|
12
|
+
#if ((defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && \
|
|
13
|
+
__MAC_OS_X_VERSION_MIN_REQUIRED >= __MAC_14_0) || \
|
|
14
|
+
(defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && \
|
|
15
|
+
__IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_17_0) || \
|
|
16
|
+
(defined(__TV_OS_VERSION_MIN_REQUIRED) && \
|
|
17
|
+
__TV_OS_VERSION_MIN_REQUIRED >= __TVOS_17_0) || \
|
|
18
|
+
(defined(__WATCH_OS_VERSION_MIN_REQUIRED) && \
|
|
19
|
+
__WATCH_OS_VERSION_MIN_REQUIRED >= __WATCHOS_10_0) || \
|
|
20
|
+
(defined(__VISION_OS_VERSION_MIN_REQUIRED) && \
|
|
21
|
+
__VISION_OS_VERSION_MIN_REQUIRED >= __VISIONOS_2_0)) //To prevent iPadOS apps from crashing in visionOS
|
|
22
|
+
#define CL_TARGET_SUPPORTS_CONDITIONS 1
|
|
23
|
+
#else
|
|
24
|
+
#define CL_TARGET_SUPPORTS_CONDITIONS 0
|
|
25
|
+
#endif
|
|
26
|
+
|
|
27
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
28
|
+
|
|
29
|
+
CL_EXTERN
|
|
30
|
+
|
|
31
|
+
/* Discussion:
|
|
32
|
+
* Abstract base class from which all other conditions are derived from.
|
|
33
|
+
*
|
|
34
|
+
* Note:
|
|
35
|
+
* Do not derive from this class xor its subclasses. Passing instances
|
|
36
|
+
* custom conditions will result in unintended behavior.
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
NS_REFINED_FOR_SWIFT NS_SWIFT_SENDABLE
|
|
40
|
+
API_AVAILABLE(macos(14.0), ios(17.0)) API_UNAVAILABLE(watchos, tvos, visionos)
|
|
41
|
+
@interface CLCondition : NSObject<NSSecureCoding, NSCopying>
|
|
42
|
+
|
|
43
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
44
|
+
+ (instancetype)new NS_UNAVAILABLE;
|
|
45
|
+
|
|
46
|
+
@end
|
|
47
|
+
|
|
48
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* CLError.h
|
|
3
|
+
* CoreLocation
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) 2008-2010 Apple Inc. All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
#import <CoreLocation/CLAvailability.h>
|
|
11
|
+
|
|
12
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
13
|
+
|
|
14
|
+
/*
|
|
15
|
+
* CLError
|
|
16
|
+
*
|
|
17
|
+
* Discussion:
|
|
18
|
+
* Error returned as code to NSError from CoreLocation.
|
|
19
|
+
*/
|
|
20
|
+
typedef NS_ENUM(NSInteger, CLError) {
|
|
21
|
+
kCLErrorLocationUnknown = 0, // location is currently unknown, but CL will keep trying
|
|
22
|
+
kCLErrorDenied, // Access to location or ranging has been denied by the user
|
|
23
|
+
kCLErrorNetwork, // general, network-related error
|
|
24
|
+
kCLErrorHeadingFailure, // heading could not be determined
|
|
25
|
+
kCLErrorRegionMonitoringDenied, // Location region monitoring has been denied by the user
|
|
26
|
+
kCLErrorRegionMonitoringFailure, // A registered region cannot be monitored
|
|
27
|
+
kCLErrorRegionMonitoringSetupDelayed, // CL could not immediately initialize region monitoring
|
|
28
|
+
kCLErrorRegionMonitoringResponseDelayed, // While events for this fence will be delivered, delivery will not occur immediately
|
|
29
|
+
kCLErrorGeocodeFoundNoResult, // A geocode request yielded no result
|
|
30
|
+
kCLErrorGeocodeFoundPartialResult, // A geocode request yielded a partial result
|
|
31
|
+
kCLErrorGeocodeCanceled, // A geocode request was cancelled
|
|
32
|
+
kCLErrorDeferredFailed, // Deferred mode failed
|
|
33
|
+
kCLErrorDeferredNotUpdatingLocation, // Deferred mode failed because location updates disabled or paused
|
|
34
|
+
kCLErrorDeferredAccuracyTooLow, // Deferred mode not supported for the requested accuracy
|
|
35
|
+
kCLErrorDeferredDistanceFiltered, // Deferred mode does not support distance filters
|
|
36
|
+
kCLErrorDeferredCanceled, // Deferred mode request canceled a previous request
|
|
37
|
+
kCLErrorRangingUnavailable, // Ranging cannot be performed
|
|
38
|
+
kCLErrorRangingFailure, // General ranging failure
|
|
39
|
+
kCLErrorPromptDeclined, // Authorization request not presented to user
|
|
40
|
+
kCLErrorHistoricalLocationError, // Historical Locations set up error
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/*
|
|
44
|
+
* kCLErrorUserInfoAlternateRegionKey
|
|
45
|
+
*
|
|
46
|
+
* Discussion:
|
|
47
|
+
* When an error with code kCLErrorRegionMonitoringResponseDelayed is received, this key may be populated
|
|
48
|
+
* in the userInfo dictionary. The value is a CLRegion that the location service can more effectively monitor.
|
|
49
|
+
*/
|
|
50
|
+
CL_EXTERN NSString *const kCLErrorUserInfoAlternateRegionKey NS_AVAILABLE(10_7, 5_0) API_UNAVAILABLE(watchos, tvos);
|
|
51
|
+
|
|
52
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* CLErrorDomain.h
|
|
3
|
+
* CoreLocation
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2008 Apple, Inc. All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
#import <CoreLocation/CLAvailability.h>
|
|
10
|
+
#import <Foundation/Foundation.h>
|
|
11
|
+
|
|
12
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
13
|
+
|
|
14
|
+
/*
|
|
15
|
+
* kCLErrorDomain
|
|
16
|
+
*
|
|
17
|
+
* Discussion:
|
|
18
|
+
* Error returned as the domain to NSError from CoreLocation.
|
|
19
|
+
*
|
|
20
|
+
* The file CLError.h defines constants for the errors in kCLErrorDomain.
|
|
21
|
+
*/
|
|
22
|
+
CL_EXTERN NSString *const kCLErrorDomain;
|
|
23
|
+
|
|
24
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* CLGeocoder.h
|
|
3
|
+
* CoreLocation
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) 2010 Apple Inc. All rights reserved.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <CoreLocation/CLLocation.h>
|
|
10
|
+
#import <CoreLocation/CLAvailability.h>
|
|
11
|
+
|
|
12
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
13
|
+
|
|
14
|
+
@class CLRegion;
|
|
15
|
+
@class CLPlacemark;
|
|
16
|
+
@class CLGeocoderInternal;
|
|
17
|
+
@class CNPostalAddress;
|
|
18
|
+
|
|
19
|
+
// geocoding handler, CLPlacemarks are provided in order of most confident to least confident
|
|
20
|
+
typedef void (^CLGeocodeCompletionHandler)(NSArray< CLPlacemark *> * __nullable placemarks, NSError * __nullable error);
|
|
21
|
+
|
|
22
|
+
CL_EXTERN
|
|
23
|
+
API_DEPRECATED("Use MapKit", ios(5.0, 26.0), macos(10.8, 26.0))
|
|
24
|
+
@interface CLGeocoder : NSObject
|
|
25
|
+
{
|
|
26
|
+
@private
|
|
27
|
+
CLGeocoderInternal *_internal;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@property (nonatomic, readonly, getter=isGeocoding) BOOL geocoding;
|
|
31
|
+
|
|
32
|
+
// reverse geocode requests
|
|
33
|
+
- (void)reverseGeocodeLocation:(CLLocation *)location completionHandler:(CLGeocodeCompletionHandler)completionHandler API_DEPRECATED("Use MKReverseGeocodingRequest", ios(5.0, 26.0), macos(10.8, 26.0));
|
|
34
|
+
- (void)reverseGeocodeLocation:(CLLocation *)location preferredLocale:(nullable NSLocale *)locale completionHandler:(CLGeocodeCompletionHandler)completionHandler API_DEPRECATED("Use MKReverseGeocodingRequest", ios(11.0, 26.0), macos(10.13, 26.0), watchos(4.0, 26.0), tvos(11.0, 26.0));
|
|
35
|
+
|
|
36
|
+
// forward geocode requests
|
|
37
|
+
// geocodeAddressDictionary:completionHandler: takes an address dictionary as defined by the AddressBook framework.
|
|
38
|
+
// You can obtain an address dictionary from an ABPerson by retrieving the kABPersonAddressProperty property.
|
|
39
|
+
// Alternately, one can be constructed using the kABPersonAddress* keys defined in <AddressBook/ABPerson.h>.
|
|
40
|
+
- (void)geocodeAddressDictionary:(NSDictionary *)addressDictionary completionHandler:(CLGeocodeCompletionHandler)completionHandler API_DEPRECATED("Use MKReverseGeocodingRequest", macos(10.8, 10.13), ios(5.0, 11.0), watchos(1.0, 4.0)) API_UNAVAILABLE(visionos);
|
|
41
|
+
- (void)geocodeAddressString:(NSString *)addressString inRegion:(nullable CLRegion *)region completionHandler:(CLGeocodeCompletionHandler)completionHandler API_UNAVAILABLE(visionos);
|
|
42
|
+
- (void)geocodeAddressString:(NSString *)addressString inRegion:(nullable CLRegion *)region preferredLocale:(nullable NSLocale *)locale completionHandler:(CLGeocodeCompletionHandler)completionHandler API_DEPRECATED("Use MKGeocodingRequest", macos(10.13, 26.0), ios(11.0, 26.0), watchos(4.0, 26.0), tvos(11.0, 26.0)) API_UNAVAILABLE(visionos);
|
|
43
|
+
- (void)geocodeAddressString:(NSString *)addressString inRegionCenteredAt:(CLLocationCoordinate2D)centroid inRegionRadius:(CLLocationDistance)radius preferredLocale:(nullable NSLocale *)locale completionHandler:(CLGeocodeCompletionHandler)completionHandler API_DEPRECATED("Use MKGeocodingRequest", visionos(1.0, 26.0)) API_UNAVAILABLE(ios, macos, tvos, watchos);
|
|
44
|
+
- (void)geocodeAddressString:(NSString *)addressString completionHandler:(CLGeocodeCompletionHandler)completionHandler API_DEPRECATED("Use MKGeocodingRequest", ios(5.0, 26.0), macos(10.8, 26.0));
|
|
45
|
+
|
|
46
|
+
- (void)cancelGeocode API_DEPRECATED("Use MKGeocodingRequest", ios(5.0, 26.0), macos(10.8, 26.0));
|
|
47
|
+
|
|
48
|
+
@end
|
|
49
|
+
|
|
50
|
+
@interface CLGeocoder (ContactsAdditions)
|
|
51
|
+
- (void)geocodePostalAddress:(CNPostalAddress *)postalAddress completionHandler:(CLGeocodeCompletionHandler)completionHandler API_DEPRECATED("Use MKReverseGeocodingRequest", ios(11.0, 26.0), macos(10.13, 26.0), watchos(4.0, 26.0)) API_UNAVAILABLE(tvos);
|
|
52
|
+
- (void)geocodePostalAddress:(CNPostalAddress *)postalAddress preferredLocale:(nullable NSLocale *)locale completionHandler:(CLGeocodeCompletionHandler)completionHandler API_DEPRECATED("Use MKReverseGeocodingRequest", macos(10.13, 26.0), ios(11.0, 26.0), watchos(4.0, 26.0)) API_UNAVAILABLE(tvos);
|
|
53
|
+
@end
|
|
54
|
+
|
|
55
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* CLHeading.h
|
|
3
|
+
* CoreLocation
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2008 Apple, Inc. All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
#import <CoreLocation/CLAvailability.h>
|
|
10
|
+
#import <CoreLocation/CLLocation.h>
|
|
11
|
+
#import <Foundation/Foundation.h>
|
|
12
|
+
|
|
13
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
14
|
+
|
|
15
|
+
/*
|
|
16
|
+
* CLHeadingComponentValue
|
|
17
|
+
*
|
|
18
|
+
* Discussion:
|
|
19
|
+
* Type represents a geomagnetic value, measured in microteslas, relative to a device axis in three dimensional space.
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
typedef double CLHeadingComponentValue;
|
|
23
|
+
|
|
24
|
+
/*
|
|
25
|
+
* kCLHeadingFilterNone
|
|
26
|
+
*
|
|
27
|
+
* Discussion:
|
|
28
|
+
* Use as the headingFilter property for CLLocationManager. This indicates
|
|
29
|
+
* to the heading service that no minimum movement filter is desired - ie, client will be informed
|
|
30
|
+
* of any movement.
|
|
31
|
+
*/
|
|
32
|
+
CL_EXTERN const CLLocationDegrees kCLHeadingFilterNone;
|
|
33
|
+
|
|
34
|
+
/*
|
|
35
|
+
* CLHeading
|
|
36
|
+
*
|
|
37
|
+
* Discussion:
|
|
38
|
+
* Represents a vector pointing to magnetic North constructed from axis component values x, y, and z. An accuracy of the heading calculation is also provided along with timestamp information.
|
|
39
|
+
*/
|
|
40
|
+
CL_EXTERN
|
|
41
|
+
API_AVAILABLE(macos(10.7), ios(3.0), watchos(2.0)) API_UNAVAILABLE(tvos, visionos)
|
|
42
|
+
@interface CLHeading : NSObject <NSCopying, NSSecureCoding>
|
|
43
|
+
{
|
|
44
|
+
@private
|
|
45
|
+
id _internal;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/*
|
|
49
|
+
* magneticHeading
|
|
50
|
+
*
|
|
51
|
+
* Discussion:
|
|
52
|
+
* Represents the direction in degrees, where 0 degrees is magnetic North. The direction is referenced from the top of the device regardless of device orientation as well as the orientation of the user interface.
|
|
53
|
+
*
|
|
54
|
+
* Range:
|
|
55
|
+
* 0.0 - 359.9 degrees, 0 being magnetic North
|
|
56
|
+
*/
|
|
57
|
+
@property(readonly, nonatomic) CLLocationDirection magneticHeading;
|
|
58
|
+
|
|
59
|
+
/*
|
|
60
|
+
* trueHeading
|
|
61
|
+
*
|
|
62
|
+
* Discussion:
|
|
63
|
+
* Represents the direction in degrees, where 0 degrees is true North. The direction is referenced
|
|
64
|
+
* from the top of the device regardless of device orientation as well as the orientation of the
|
|
65
|
+
* user interface.
|
|
66
|
+
*
|
|
67
|
+
* Range:
|
|
68
|
+
* 0.0 - 359.9 degrees, 0 being true North
|
|
69
|
+
*/
|
|
70
|
+
@property(readonly, nonatomic) CLLocationDirection trueHeading;
|
|
71
|
+
|
|
72
|
+
/*
|
|
73
|
+
* headingAccuracy
|
|
74
|
+
*
|
|
75
|
+
* Discussion:
|
|
76
|
+
* Represents the maximum deviation of where the magnetic heading may differ from the actual geomagnetic heading in degrees. A negative value indicates an invalid heading.
|
|
77
|
+
*/
|
|
78
|
+
@property(readonly, nonatomic) CLLocationDirection headingAccuracy;
|
|
79
|
+
|
|
80
|
+
/*
|
|
81
|
+
* x
|
|
82
|
+
*
|
|
83
|
+
* Discussion:
|
|
84
|
+
* Returns a raw value for the geomagnetism measured in the x-axis.
|
|
85
|
+
*
|
|
86
|
+
*/
|
|
87
|
+
@property(readonly, nonatomic) CLHeadingComponentValue x;
|
|
88
|
+
|
|
89
|
+
/*
|
|
90
|
+
* y
|
|
91
|
+
*
|
|
92
|
+
* Discussion:
|
|
93
|
+
* Returns a raw value for the geomagnetism measured in the y-axis.
|
|
94
|
+
*
|
|
95
|
+
*/
|
|
96
|
+
@property(readonly, nonatomic) CLHeadingComponentValue y;
|
|
97
|
+
|
|
98
|
+
/*
|
|
99
|
+
* z
|
|
100
|
+
*
|
|
101
|
+
* Discussion:
|
|
102
|
+
* Returns a raw value for the geomagnetism measured in the z-axis.
|
|
103
|
+
*
|
|
104
|
+
*/
|
|
105
|
+
@property(readonly, nonatomic) CLHeadingComponentValue z;
|
|
106
|
+
|
|
107
|
+
/*
|
|
108
|
+
* timestamp
|
|
109
|
+
*
|
|
110
|
+
* Discussion:
|
|
111
|
+
* Returns a timestamp for when the magnetic heading was determined.
|
|
112
|
+
*/
|
|
113
|
+
@property(readonly, nonatomic, copy) NSDate *timestamp;
|
|
114
|
+
|
|
115
|
+
@end
|
|
116
|
+
|
|
117
|
+
NS_ASSUME_NONNULL_END
|