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.
- package/cli/commands/coverage-swift.ts +72 -5
- package/cli/commands/inspect/actions.ts +1 -0
- package/cli/commands/screenshot.ts +12 -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 +2252 -1462
- 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 +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +1762 -995
- 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 +2184 -1417
- package/dist-lib/host/fetch-proxy-handler.cjs +3 -3
- 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 +175 -69
- 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 +174 -68
- package/dist-lib/native-app-identity-project.cjs +163 -51
- package/dist-lib/native-app-identity-project.mjs +206 -82
- 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 +26 -23
- package/dist-lib/public-origins-lib.json +74 -61
- 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 +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +2 -2
- package/dist-lib/sdk.mjs +2 -2
- package/dist-lib/skills.cjs +2633 -1840
- package/dist-lib/swift-compile.cjs +2478 -100
- package/dist-lib/swift-compile.mjs +2475 -100
- package/dist-lib/swift-package.cjs +108 -50
- package/dist-lib/swift-package.mjs +104 -50
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +3979 -985
- package/dist-lib/vite.cjs +12 -18
- package/dist-lib/worklet-executable.cjs +7 -4
- package/dist-lib/worklet-executable.mjs +7 -4
- package/dist-types/packages/peach-engine/src/engine/clipboardContract.d.ts +15 -1
- package/dist-types/packages/peach-globals/src/clipboardBridgeContract.d.ts +6 -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/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +9 -0
- 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 +96 -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/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/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/complex.h +167 -0
- package/sdk/ios/usr/include/dispatch/dispatch.h +5 -0
- package/sdk/ios/usr/include/mach/mach_types.h +1 -0
- package/sdk/ios/usr/include/math.h +835 -2
- package/sdk/ios/usr/include/sys/cdefs.h +0 -1
- package/src/generated/swift-c-predefines.json +1988 -0
- package/src/nitro-bundle.ts +1 -0
- package/src/nitro-compile.ts +4 -0
- package/src/nitroContract.ts +18 -2
- package/src/swift-compile.ts +446 -49
- package/src/swift-coverage/package.ts +3 -1
- package/src/swift-coverage/xcode-assets.ts +62 -2
- package/src/swift-coverage/xcode-packages.ts +11 -6
- package/src/swift-host.ts +333 -57
- package/src/swift-objc-compile.ts +20 -5
- package/src/swift-objc-standin.ts +21 -11
- package/src/swift-package-manifest.ts +151 -28
- package/src/swift-package.ts +134 -58
- package/src/swift-packages.ts +141 -44
- package/src/swift-source-file.ts +10 -15
- package/src/swift-standins.ts +87 -13
- package/src/swift-submit.ts +5 -0
- package/src/swiftContract.ts +160 -75
- package/src/target-matcher.ts +15 -2
- package/src/worklet-executable.ts +7 -3
- package/src/xcode-json-project.ts +14 -2
- package/src/xcode-project.ts +154 -59
|
@@ -0,0 +1,444 @@
|
|
|
1
|
+
//
|
|
2
|
+
// CLLocationEssentials.h
|
|
3
|
+
// CoreLocation
|
|
4
|
+
//
|
|
5
|
+
// Created by Ilya Veygman on 2/24/25.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#ifndef CLLocationEssentials_h
|
|
9
|
+
#define CLLocationEssentials_h
|
|
10
|
+
|
|
11
|
+
#import <Availability.h>
|
|
12
|
+
#import <Foundation/Foundation.h>
|
|
13
|
+
#import <_LocationEssentials/CLEssentialsAvailability.h>
|
|
14
|
+
|
|
15
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
16
|
+
|
|
17
|
+
/*
|
|
18
|
+
* CLLocationDegrees
|
|
19
|
+
*
|
|
20
|
+
* Discussion:
|
|
21
|
+
* Type used to represent a latitude or longitude coordinate in degrees under the WGS 84 reference
|
|
22
|
+
* frame. The degree can be positive (North and East) or negative (South and West).
|
|
23
|
+
*/
|
|
24
|
+
typedef double CLLocationDegrees;
|
|
25
|
+
|
|
26
|
+
/*
|
|
27
|
+
* CLLocationAccuracy
|
|
28
|
+
*
|
|
29
|
+
* Discussion:
|
|
30
|
+
* Type used to represent a location accuracy level in meters. The lower the value in meters, the
|
|
31
|
+
* more physically precise the location is. A negative accuracy value indicates an invalid location.
|
|
32
|
+
*/
|
|
33
|
+
typedef double CLLocationAccuracy;
|
|
34
|
+
|
|
35
|
+
/*
|
|
36
|
+
* CLLocationSpeed
|
|
37
|
+
*
|
|
38
|
+
* Discussion:
|
|
39
|
+
* Type used to represent the speed in meters per second.
|
|
40
|
+
*/
|
|
41
|
+
typedef double CLLocationSpeed;
|
|
42
|
+
|
|
43
|
+
/*
|
|
44
|
+
* CLLocationSpeedAccuracy
|
|
45
|
+
*
|
|
46
|
+
* Discussion:
|
|
47
|
+
* Type used to represent a speed accuracy level in meters/second. The lower the value the more
|
|
48
|
+
* precise the speed is. A negative accuracy value indicates an invalid speed.
|
|
49
|
+
*/
|
|
50
|
+
typedef double CLLocationSpeedAccuracy;
|
|
51
|
+
|
|
52
|
+
/*
|
|
53
|
+
* CLLocationDirection
|
|
54
|
+
*
|
|
55
|
+
* Discussion:
|
|
56
|
+
* Type used to represent the direction in degrees from 0 to 359.9. A negative value indicates an
|
|
57
|
+
* invalid direction.
|
|
58
|
+
*/
|
|
59
|
+
typedef double CLLocationDirection;
|
|
60
|
+
|
|
61
|
+
/*
|
|
62
|
+
* CLLocationDirectionAccuracy
|
|
63
|
+
*
|
|
64
|
+
* Discussion:
|
|
65
|
+
* Type used to represent a direction accuracy in degrees. The lower the value the more precise the
|
|
66
|
+
* direction is. A negative accuracy value indicates an invalid direction.
|
|
67
|
+
*/
|
|
68
|
+
typedef double CLLocationDirectionAccuracy;
|
|
69
|
+
|
|
70
|
+
/*
|
|
71
|
+
* CLLocationCoordinate2D
|
|
72
|
+
*
|
|
73
|
+
* Discussion:
|
|
74
|
+
* A structure that contains a geographical coordinate.
|
|
75
|
+
*
|
|
76
|
+
* Fields:
|
|
77
|
+
* latitude:
|
|
78
|
+
* The latitude in degrees.
|
|
79
|
+
* longitude:
|
|
80
|
+
* The longitude in degrees.
|
|
81
|
+
*/
|
|
82
|
+
struct CLLocationCoordinate2D {
|
|
83
|
+
CLLocationDegrees latitude;
|
|
84
|
+
CLLocationDegrees longitude;
|
|
85
|
+
};
|
|
86
|
+
typedef struct CLLocationCoordinate2D CLLocationCoordinate2D;
|
|
87
|
+
|
|
88
|
+
/*
|
|
89
|
+
* CLLocationDistance
|
|
90
|
+
*
|
|
91
|
+
* Discussion:
|
|
92
|
+
* Type used to represent a distance in meters.
|
|
93
|
+
*/
|
|
94
|
+
typedef double CLLocationDistance;
|
|
95
|
+
|
|
96
|
+
/*
|
|
97
|
+
* kCLDistanceFilterNone
|
|
98
|
+
*
|
|
99
|
+
* Discussion:
|
|
100
|
+
* Use as the distanceFilter property for CLLocationManager. This indicates
|
|
101
|
+
* to the location service that no minimum movement filter is desired - ie, client will be informed
|
|
102
|
+
* of any movement.
|
|
103
|
+
*/
|
|
104
|
+
CLES_EXPORT const CLLocationDistance kCLDistanceFilterNone;
|
|
105
|
+
|
|
106
|
+
/*
|
|
107
|
+
* kCLLocationAccuracy<x>
|
|
108
|
+
*
|
|
109
|
+
* Discussion:
|
|
110
|
+
* Used to specify the accuracy level desired. The location service will try its best to achieve
|
|
111
|
+
* your desired accuracy. However, it is not guaranteed. To optimize
|
|
112
|
+
* power performance, be sure to specify an appropriate accuracy for your usage scenario (eg,
|
|
113
|
+
* use a large accuracy value when only a coarse location is needed).
|
|
114
|
+
*/
|
|
115
|
+
CLES_EXPORT const CLLocationAccuracy kCLLocationAccuracyBestForNavigation API_AVAILABLE(ios(4.0), macos(10.7));
|
|
116
|
+
CLES_EXPORT const CLLocationAccuracy kCLLocationAccuracyBest;
|
|
117
|
+
CLES_EXPORT const CLLocationAccuracy kCLLocationAccuracyNearestTenMeters;
|
|
118
|
+
CLES_EXPORT const CLLocationAccuracy kCLLocationAccuracyHundredMeters;
|
|
119
|
+
CLES_EXPORT const CLLocationAccuracy kCLLocationAccuracyKilometer;
|
|
120
|
+
CLES_EXPORT const CLLocationAccuracy kCLLocationAccuracyThreeKilometers;
|
|
121
|
+
|
|
122
|
+
/*
|
|
123
|
+
* kCLLocationAccuracyReduced
|
|
124
|
+
*
|
|
125
|
+
* Discussion:
|
|
126
|
+
* If you set your CLLocationManager's desiredAccuracy property to
|
|
127
|
+
* this value, locations delivered to your delegate in response to
|
|
128
|
+
* startUpdatingLocation or requestLocation will have their
|
|
129
|
+
* accuracy reduced. The locations you receive will match the
|
|
130
|
+
* locations your app would have received if the user had decided
|
|
131
|
+
* not to grant your app authorization for precise location.
|
|
132
|
+
*/
|
|
133
|
+
CLES_EXPORT const CLLocationAccuracy kCLLocationAccuracyReduced API_AVAILABLE(ios(14.0), macos(11.0), watchos(7.0), tvos(14.0));
|
|
134
|
+
|
|
135
|
+
/*
|
|
136
|
+
* CLLocationDistanceMax
|
|
137
|
+
*
|
|
138
|
+
* Discussion:
|
|
139
|
+
* Used to specify the maximum CLLocationDistance
|
|
140
|
+
*/
|
|
141
|
+
CLES_EXPORT const CLLocationDistance CLLocationDistanceMax API_AVAILABLE(ios(6.0), macos(10.14));
|
|
142
|
+
|
|
143
|
+
/*
|
|
144
|
+
* CLTimeIntervalMax
|
|
145
|
+
*
|
|
146
|
+
* Discussion:
|
|
147
|
+
* Used to specify the maximum NSTimeInterval
|
|
148
|
+
*/
|
|
149
|
+
CLES_EXPORT const NSTimeInterval CLTimeIntervalMax API_AVAILABLE(ios(6.0), macos(10.14));
|
|
150
|
+
|
|
151
|
+
/*
|
|
152
|
+
* kCLLocationCoordinate2DInvalid
|
|
153
|
+
*
|
|
154
|
+
* Discussion:
|
|
155
|
+
* Used to specify an invalid CLLocationCoordinate2D.
|
|
156
|
+
*/
|
|
157
|
+
CLES_EXPORT const CLLocationCoordinate2D kCLLocationCoordinate2DInvalid API_AVAILABLE(ios(4.0), macos(10.7));
|
|
158
|
+
|
|
159
|
+
#ifdef __cplusplus
|
|
160
|
+
extern "C" {
|
|
161
|
+
#endif
|
|
162
|
+
|
|
163
|
+
/*
|
|
164
|
+
* CLLocationCoordinate2DIsValid
|
|
165
|
+
*
|
|
166
|
+
* Discussion:
|
|
167
|
+
* Returns YES if the specified coordinate is valid, NO otherwise.
|
|
168
|
+
*/
|
|
169
|
+
CLES_EXPORT
|
|
170
|
+
BOOL CLLocationCoordinate2DIsValid(CLLocationCoordinate2D coord) API_AVAILABLE(ios(4.0), macos(10.7));
|
|
171
|
+
|
|
172
|
+
/*
|
|
173
|
+
* CLLocationCoordinate2DMake:
|
|
174
|
+
*
|
|
175
|
+
* Discussion:
|
|
176
|
+
* Returns a new CLLocationCoordinate2D at the given latitude and longitude
|
|
177
|
+
*/
|
|
178
|
+
CLES_EXPORT
|
|
179
|
+
CLLocationCoordinate2D CLLocationCoordinate2DMake(CLLocationDegrees latitude, CLLocationDegrees longitude) API_AVAILABLE(ios(4.0), macos(10.7));
|
|
180
|
+
|
|
181
|
+
#ifdef __cplusplus
|
|
182
|
+
}
|
|
183
|
+
#endif
|
|
184
|
+
|
|
185
|
+
/*
|
|
186
|
+
* CLFloor
|
|
187
|
+
*
|
|
188
|
+
* Discussion:
|
|
189
|
+
* Encapsulates the information about a floor.
|
|
190
|
+
*/
|
|
191
|
+
CLES_EXPORT
|
|
192
|
+
API_AVAILABLE(ios(8.0), macos(10.15))
|
|
193
|
+
@interface CLFloor : NSObject <NSCopying, NSSecureCoding>
|
|
194
|
+
|
|
195
|
+
/*
|
|
196
|
+
* level
|
|
197
|
+
*
|
|
198
|
+
* Discussion:
|
|
199
|
+
* This is a logical representation that will vary on definition from building-to-building.
|
|
200
|
+
* Floor 0 will always represent the floor designated as "ground".
|
|
201
|
+
* This number may be negative to designate floors below the ground floor
|
|
202
|
+
* and positive to indicate floors above the ground floor.
|
|
203
|
+
* It is not intended to match any numbering that might actually be used in the building.
|
|
204
|
+
* It is erroneous to use as an estimate of altitude.
|
|
205
|
+
*/
|
|
206
|
+
@property(readonly, nonatomic) NSInteger level;
|
|
207
|
+
|
|
208
|
+
@end
|
|
209
|
+
|
|
210
|
+
/*
|
|
211
|
+
* CLLocationSourceInformation
|
|
212
|
+
*
|
|
213
|
+
* Discussion:
|
|
214
|
+
* For a CLLocation, represents information about the source of the location, including whether it came from a simulator
|
|
215
|
+
*/
|
|
216
|
+
CLES_EXPORT
|
|
217
|
+
API_AVAILABLE(ios(15.0), watchos(8.0), tvos(15.0), macos(12.0))
|
|
218
|
+
@interface CLLocationSourceInformation : NSObject <NSCopying, NSSecureCoding>
|
|
219
|
+
|
|
220
|
+
- (instancetype)initWithSoftwareSimulationState:(BOOL)isSoftware
|
|
221
|
+
andExternalAccessoryState:(BOOL)isAccessory;
|
|
222
|
+
|
|
223
|
+
/*
|
|
224
|
+
* isSimulatedBySoftware
|
|
225
|
+
*
|
|
226
|
+
* Discussion:
|
|
227
|
+
* Set to YES if this location was detected as being generated by a software simulator, such as Xcode
|
|
228
|
+
*/
|
|
229
|
+
@property(readonly, nonatomic) BOOL isSimulatedBySoftware;
|
|
230
|
+
|
|
231
|
+
/*
|
|
232
|
+
* isProducedByAccessory
|
|
233
|
+
*
|
|
234
|
+
* Discussion:
|
|
235
|
+
* Set to YES if this location was generated from an external accessory, such as CarPlay or an MFi accessory
|
|
236
|
+
*/
|
|
237
|
+
@property(readonly, nonatomic) BOOL isProducedByAccessory;
|
|
238
|
+
@end
|
|
239
|
+
|
|
240
|
+
/*
|
|
241
|
+
* CLLocation
|
|
242
|
+
*
|
|
243
|
+
* Discussion:
|
|
244
|
+
* Represents a geographical coordinate along with accuracy and timestamp information.
|
|
245
|
+
*/
|
|
246
|
+
CLES_EXPORT
|
|
247
|
+
NS_SWIFT_SENDABLE API_AVAILABLE(macos(10.6), ios(2.0))
|
|
248
|
+
@interface CLLocation : NSObject <NSCopying, NSSecureCoding>
|
|
249
|
+
{
|
|
250
|
+
@private
|
|
251
|
+
id _internal;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/*
|
|
255
|
+
* initWithLatitude:longitude:
|
|
256
|
+
*
|
|
257
|
+
* Discussion:
|
|
258
|
+
* Initialize with the specified latitude and longitude.
|
|
259
|
+
*/
|
|
260
|
+
- (instancetype)initWithLatitude:(CLLocationDegrees)latitude
|
|
261
|
+
longitude:(CLLocationDegrees)longitude;
|
|
262
|
+
|
|
263
|
+
/*
|
|
264
|
+
* initWithCoordinate:altitude:horizontalAccuracy:verticalAccuracy:timestamp:
|
|
265
|
+
*
|
|
266
|
+
* Discussion:
|
|
267
|
+
* Initialize with the specified parameters.
|
|
268
|
+
*/
|
|
269
|
+
- (instancetype)initWithCoordinate:(CLLocationCoordinate2D)coordinate
|
|
270
|
+
altitude:(CLLocationDistance)altitude
|
|
271
|
+
horizontalAccuracy:(CLLocationAccuracy)hAccuracy
|
|
272
|
+
verticalAccuracy:(CLLocationAccuracy)vAccuracy
|
|
273
|
+
timestamp:(NSDate *)timestamp;
|
|
274
|
+
|
|
275
|
+
/*
|
|
276
|
+
* initWithCoordinate:altitude:horizontalAccuracy:verticalAccuracy:course:speed:timestamp:
|
|
277
|
+
*
|
|
278
|
+
* Discussion:
|
|
279
|
+
* Initialize with the specified parameters.
|
|
280
|
+
*/
|
|
281
|
+
- (instancetype)initWithCoordinate:(CLLocationCoordinate2D)coordinate
|
|
282
|
+
altitude:(CLLocationDistance)altitude
|
|
283
|
+
horizontalAccuracy:(CLLocationAccuracy)hAccuracy
|
|
284
|
+
verticalAccuracy:(CLLocationAccuracy)vAccuracy
|
|
285
|
+
course:(CLLocationDirection)course
|
|
286
|
+
speed:(CLLocationSpeed)speed
|
|
287
|
+
timestamp:(NSDate *)timestamp API_AVAILABLE(ios(4.2), macos(10.7));
|
|
288
|
+
|
|
289
|
+
/*
|
|
290
|
+
* initWithCoordinate:altitude:horizontalAccuracy:verticalAccuracy:course:courseAccuracy:speed:speedAccuracy:timestamp:
|
|
291
|
+
*
|
|
292
|
+
* Discussion:
|
|
293
|
+
* Initialize with the specified parameters.
|
|
294
|
+
*/
|
|
295
|
+
- (instancetype)initWithCoordinate:(CLLocationCoordinate2D)coordinate
|
|
296
|
+
altitude:(CLLocationDistance)altitude
|
|
297
|
+
horizontalAccuracy:(CLLocationAccuracy)hAccuracy
|
|
298
|
+
verticalAccuracy:(CLLocationAccuracy)vAccuracy
|
|
299
|
+
course:(CLLocationDirection)course
|
|
300
|
+
courseAccuracy:(CLLocationDirectionAccuracy)courseAccuracy
|
|
301
|
+
speed:(CLLocationSpeed)speed
|
|
302
|
+
speedAccuracy:(CLLocationSpeedAccuracy)speedAccuracy
|
|
303
|
+
timestamp:(NSDate *)timestamp API_AVAILABLE(ios(13.4), macos(10.15.4), watchos(6.2), tvos(13.4));
|
|
304
|
+
|
|
305
|
+
/*
|
|
306
|
+
* initWithCoordinate:altitude:horizontalAccuracy:verticalAccuracy:course:courseAccuracy:speed:speedAccuracy:timestamp:sourceInfo
|
|
307
|
+
*
|
|
308
|
+
* Discussion:
|
|
309
|
+
* Initialize with the specified parameters.
|
|
310
|
+
*/
|
|
311
|
+
- (instancetype)initWithCoordinate:(CLLocationCoordinate2D)coordinate
|
|
312
|
+
altitude:(CLLocationDistance)altitude
|
|
313
|
+
horizontalAccuracy:(CLLocationAccuracy)hAccuracy
|
|
314
|
+
verticalAccuracy:(CLLocationAccuracy)vAccuracy
|
|
315
|
+
course:(CLLocationDirection)course
|
|
316
|
+
courseAccuracy:(CLLocationDirectionAccuracy)courseAccuracy
|
|
317
|
+
speed:(CLLocationSpeed)speed
|
|
318
|
+
speedAccuracy:(CLLocationSpeedAccuracy)speedAccuracy
|
|
319
|
+
timestamp:(NSDate *)timestamp
|
|
320
|
+
sourceInfo:(CLLocationSourceInformation*)sourceInfo API_AVAILABLE(ios(15.0), watchos(8.0), tvos(15.0), macos(12.0));
|
|
321
|
+
|
|
322
|
+
/*
|
|
323
|
+
* coordinate
|
|
324
|
+
*
|
|
325
|
+
* Discussion:
|
|
326
|
+
* Returns the coordinate of the current location.
|
|
327
|
+
*/
|
|
328
|
+
@property(readonly, nonatomic) CLLocationCoordinate2D coordinate;
|
|
329
|
+
|
|
330
|
+
/*
|
|
331
|
+
* altitude
|
|
332
|
+
*
|
|
333
|
+
* Discussion:
|
|
334
|
+
* Returns the altitude of the location. Can be positive (above sea level) or negative (below sea level).
|
|
335
|
+
*/
|
|
336
|
+
@property(readonly, nonatomic) CLLocationDistance altitude;
|
|
337
|
+
|
|
338
|
+
/*
|
|
339
|
+
* ellipsoidalAltitude
|
|
340
|
+
*
|
|
341
|
+
* Discussion:
|
|
342
|
+
* Returns the ellipsoidal altitude of the location under the WGS 84 reference frame.
|
|
343
|
+
* Can be positive or negative.
|
|
344
|
+
*/
|
|
345
|
+
@property(readonly, nonatomic) CLLocationDistance ellipsoidalAltitude API_AVAILABLE(ios(15), macos(12), watchos(8), tvos(15));
|
|
346
|
+
|
|
347
|
+
/*
|
|
348
|
+
* horizontalAccuracy
|
|
349
|
+
*
|
|
350
|
+
* Discussion:
|
|
351
|
+
* Returns the horizontal accuracy of the location. Negative if the lateral location is invalid.
|
|
352
|
+
*/
|
|
353
|
+
@property(readonly, nonatomic) CLLocationAccuracy horizontalAccuracy;
|
|
354
|
+
|
|
355
|
+
/*
|
|
356
|
+
* verticalAccuracy
|
|
357
|
+
*
|
|
358
|
+
* Discussion:
|
|
359
|
+
* Returns the vertical accuracy of the location. Negative if the altitude is invalid.
|
|
360
|
+
*/
|
|
361
|
+
@property(readonly, nonatomic) CLLocationAccuracy verticalAccuracy;
|
|
362
|
+
|
|
363
|
+
/*
|
|
364
|
+
* course
|
|
365
|
+
*
|
|
366
|
+
* Discussion:
|
|
367
|
+
* Returns the course of the location in degrees true North. Negative if course is invalid.
|
|
368
|
+
*
|
|
369
|
+
* Range:
|
|
370
|
+
* 0.0 - 359.9 degrees, 0 being true North
|
|
371
|
+
*/
|
|
372
|
+
@property(readonly, nonatomic) CLLocationDirection course API_AVAILABLE(ios(2.2), macos(10.7));
|
|
373
|
+
|
|
374
|
+
/*
|
|
375
|
+
* courseAccuracy
|
|
376
|
+
*
|
|
377
|
+
* Discussion:
|
|
378
|
+
* Returns the course accuracy of the location in degrees. Returns negative if course is invalid.
|
|
379
|
+
*/
|
|
380
|
+
@property(readonly, nonatomic) CLLocationDirectionAccuracy courseAccuracy API_AVAILABLE(ios(13.4), macos(10.15.4), watchos(6.2), tvos(13.4));
|
|
381
|
+
|
|
382
|
+
/*
|
|
383
|
+
* speed
|
|
384
|
+
*
|
|
385
|
+
* Discussion:
|
|
386
|
+
* Returns the speed of the location in m/s. Negative if speed is invalid.
|
|
387
|
+
*/
|
|
388
|
+
@property(readonly, nonatomic) CLLocationSpeed speed API_AVAILABLE(ios(2.2), macos(10.7));
|
|
389
|
+
|
|
390
|
+
/*
|
|
391
|
+
* speedAccuracy
|
|
392
|
+
*
|
|
393
|
+
* Discussion:
|
|
394
|
+
* Returns the speed accuracy of the location in m/s. Returns -1 if invalid.
|
|
395
|
+
*/
|
|
396
|
+
@property(readonly, nonatomic) CLLocationSpeedAccuracy speedAccuracy API_AVAILABLE(macos(10.15), ios(10.0), watchos(3.0), tvos(10.0));
|
|
397
|
+
|
|
398
|
+
/*
|
|
399
|
+
* timestamp
|
|
400
|
+
*
|
|
401
|
+
* Discussion:
|
|
402
|
+
* Returns the timestamp when this location was determined.
|
|
403
|
+
*/
|
|
404
|
+
@property(readonly, nonatomic, copy) NSDate *timestamp;
|
|
405
|
+
|
|
406
|
+
/*
|
|
407
|
+
* floor
|
|
408
|
+
*
|
|
409
|
+
* Discussion:
|
|
410
|
+
* Contains information about the logical floor that you are on
|
|
411
|
+
* in the current building if you are inside a supported venue.
|
|
412
|
+
* This will be nil if the floor is unavailable.
|
|
413
|
+
*/
|
|
414
|
+
@property(readonly, nonatomic, copy, nullable) CLFloor *floor API_AVAILABLE(ios(8.0), macos(10.15));
|
|
415
|
+
|
|
416
|
+
/*
|
|
417
|
+
* sourceInformation
|
|
418
|
+
*
|
|
419
|
+
* Discussion:
|
|
420
|
+
* Contains information about the source of this location.
|
|
421
|
+
*/
|
|
422
|
+
@property(readonly, nonatomic, nullable) CLLocationSourceInformation *sourceInformation API_AVAILABLE(ios(15.0), watchos(8.0), tvos(15.0), macos(12.0));
|
|
423
|
+
|
|
424
|
+
/*
|
|
425
|
+
* getDistanceFrom:
|
|
426
|
+
*
|
|
427
|
+
* Discussion:
|
|
428
|
+
* Deprecated. Use -distanceFromLocation: instead.
|
|
429
|
+
*/
|
|
430
|
+
- (CLLocationDistance)getDistanceFrom:(const CLLocation *)location API_DEPRECATED_WITH_REPLACEMENT("-distanceFromLocation:", ios(2.0, 3.2), macos(10.15, 10.15)) API_UNAVAILABLE(watchos, tvos, visionos);
|
|
431
|
+
/*
|
|
432
|
+
* distanceFromLocation:
|
|
433
|
+
*
|
|
434
|
+
* Discussion:
|
|
435
|
+
* Returns the lateral distance between two locations.
|
|
436
|
+
*/
|
|
437
|
+
- (CLLocationDistance)distanceFromLocation:(const CLLocation *)location API_AVAILABLE(ios(3.2), macos(10.6));
|
|
438
|
+
|
|
439
|
+
@end
|
|
440
|
+
|
|
441
|
+
NS_ASSUME_NONNULL_END
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
#endif /* CLLocationEssentials_h */
|
package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Headers/LocationEssentials.h
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//
|
|
2
|
+
// LocationEssentials.h
|
|
3
|
+
// LocationEssentials
|
|
4
|
+
//
|
|
5
|
+
// Created by Ilya Veygman on 2/25/25.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#ifndef LocationEssentials_h
|
|
9
|
+
#define LocationEssentials_h
|
|
10
|
+
|
|
11
|
+
#import <_LocationEssentials/CLEssentialsAvailability.h>
|
|
12
|
+
#import <_LocationEssentials/CLLocationEssentials.h>
|
|
13
|
+
|
|
14
|
+
#endif /* LocationEssentials_h */
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2002-2013 Apple Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* @APPLE_LICENSE_HEADER_START@
|
|
5
|
+
*
|
|
6
|
+
* The contents of this file constitute Original Code as defined in and
|
|
7
|
+
* are subject to the Apple Public Source License Version 1.1 (the
|
|
8
|
+
* "License"). You may not use this file except in compliance with the
|
|
9
|
+
* License. Please obtain a copy of the License at
|
|
10
|
+
* http://www.apple.com/publicsource and read it before using this file.
|
|
11
|
+
*
|
|
12
|
+
* This Original Code and all software distributed under the License are
|
|
13
|
+
* distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
|
|
14
|
+
* EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
|
|
15
|
+
* INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
|
|
16
|
+
* FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
|
|
17
|
+
* License for the specific language governing rights and limitations
|
|
18
|
+
* under the License.
|
|
19
|
+
*
|
|
20
|
+
* @APPLE_LICENSE_HEADER_END@
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/******************************************************************************
|
|
24
|
+
* *
|
|
25
|
+
* File: complex.h *
|
|
26
|
+
* *
|
|
27
|
+
* Contains: prototypes and macros germane to C99 complex math. *
|
|
28
|
+
* *
|
|
29
|
+
******************************************************************************/
|
|
30
|
+
|
|
31
|
+
#ifndef __COMPLEX_H__
|
|
32
|
+
#define __COMPLEX_H__
|
|
33
|
+
|
|
34
|
+
#include <sys/cdefs.h>
|
|
35
|
+
|
|
36
|
+
#undef complex
|
|
37
|
+
#define complex _Complex
|
|
38
|
+
#undef _Complex_I
|
|
39
|
+
/* Constant expression of type const float _Complex */
|
|
40
|
+
#define _Complex_I (__extension__ 1.0iF)
|
|
41
|
+
#undef I
|
|
42
|
+
#define I _Complex_I
|
|
43
|
+
|
|
44
|
+
#if (__STDC_VERSION__ > 199901L || __DARWIN_C_LEVEL >= __DARWIN_C_FULL) \
|
|
45
|
+
&& defined __clang__
|
|
46
|
+
|
|
47
|
+
/* Complex initializer macros. These are a C11 feature, but are also provided
|
|
48
|
+
as an extension in C99 so long as strict POSIX conformance is not
|
|
49
|
+
requested. They are available only when building with the llvm-clang
|
|
50
|
+
compiler, as there is no way to support them with the gcc-4.2 frontend.
|
|
51
|
+
These may be used for static initialization of complex values, like so:
|
|
52
|
+
|
|
53
|
+
static const float complex someVariable = CMPLXF(1.0, INFINITY);
|
|
54
|
+
|
|
55
|
+
they may, of course, be used outside of static contexts as well. */
|
|
56
|
+
|
|
57
|
+
#define CMPLX(__real,__imag) \
|
|
58
|
+
_Pragma("clang diagnostic push") \
|
|
59
|
+
_Pragma("clang diagnostic ignored \"-Wcomplex-component-init\"") \
|
|
60
|
+
(double _Complex){(__real),(__imag)} \
|
|
61
|
+
_Pragma("clang diagnostic pop")
|
|
62
|
+
|
|
63
|
+
#define CMPLXF(__real,__imag) \
|
|
64
|
+
_Pragma("clang diagnostic push") \
|
|
65
|
+
_Pragma("clang diagnostic ignored \"-Wcomplex-component-init\"") \
|
|
66
|
+
(float _Complex){(__real),(__imag)} \
|
|
67
|
+
_Pragma("clang diagnostic pop")
|
|
68
|
+
|
|
69
|
+
#define CMPLXL(__real,__imag) \
|
|
70
|
+
_Pragma("clang diagnostic push") \
|
|
71
|
+
_Pragma("clang diagnostic ignored \"-Wcomplex-component-init\"") \
|
|
72
|
+
(long double _Complex){(__real),(__imag)} \
|
|
73
|
+
_Pragma("clang diagnostic pop")
|
|
74
|
+
|
|
75
|
+
#endif /* End C11 features. */
|
|
76
|
+
|
|
77
|
+
__BEGIN_DECLS
|
|
78
|
+
extern float complex cacosf(float complex);
|
|
79
|
+
extern double complex cacos(double complex);
|
|
80
|
+
extern long double complex cacosl(long double complex);
|
|
81
|
+
|
|
82
|
+
extern float complex casinf(float complex);
|
|
83
|
+
extern double complex casin(double complex);
|
|
84
|
+
extern long double complex casinl(long double complex);
|
|
85
|
+
|
|
86
|
+
extern float complex catanf(float complex);
|
|
87
|
+
extern double complex catan(double complex);
|
|
88
|
+
extern long double complex catanl(long double complex);
|
|
89
|
+
|
|
90
|
+
extern float complex ccosf(float complex);
|
|
91
|
+
extern double complex ccos(double complex);
|
|
92
|
+
extern long double complex ccosl(long double complex);
|
|
93
|
+
|
|
94
|
+
extern float complex csinf(float complex);
|
|
95
|
+
extern double complex csin(double complex);
|
|
96
|
+
extern long double complex csinl(long double complex);
|
|
97
|
+
|
|
98
|
+
extern float complex ctanf(float complex);
|
|
99
|
+
extern double complex ctan(double complex);
|
|
100
|
+
extern long double complex ctanl(long double complex);
|
|
101
|
+
|
|
102
|
+
extern float complex cacoshf(float complex);
|
|
103
|
+
extern double complex cacosh(double complex);
|
|
104
|
+
extern long double complex cacoshl(long double complex);
|
|
105
|
+
|
|
106
|
+
extern float complex casinhf(float complex);
|
|
107
|
+
extern double complex casinh(double complex);
|
|
108
|
+
extern long double complex casinhl(long double complex);
|
|
109
|
+
|
|
110
|
+
extern float complex catanhf(float complex);
|
|
111
|
+
extern double complex catanh(double complex);
|
|
112
|
+
extern long double complex catanhl(long double complex);
|
|
113
|
+
|
|
114
|
+
extern float complex ccoshf(float complex);
|
|
115
|
+
extern double complex ccosh(double complex);
|
|
116
|
+
extern long double complex ccoshl(long double complex);
|
|
117
|
+
|
|
118
|
+
extern float complex csinhf(float complex);
|
|
119
|
+
extern double complex csinh(double complex);
|
|
120
|
+
extern long double complex csinhl(long double complex);
|
|
121
|
+
|
|
122
|
+
extern float complex ctanhf(float complex);
|
|
123
|
+
extern double complex ctanh(double complex);
|
|
124
|
+
extern long double complex ctanhl(long double complex);
|
|
125
|
+
|
|
126
|
+
extern float complex cexpf(float complex);
|
|
127
|
+
extern double complex cexp(double complex);
|
|
128
|
+
extern long double complex cexpl(long double complex);
|
|
129
|
+
|
|
130
|
+
extern float complex clogf(float complex);
|
|
131
|
+
extern double complex clog(double complex);
|
|
132
|
+
extern long double complex clogl(long double complex);
|
|
133
|
+
|
|
134
|
+
extern float cabsf(float complex);
|
|
135
|
+
extern double cabs(double complex);
|
|
136
|
+
extern long double cabsl(long double complex);
|
|
137
|
+
|
|
138
|
+
extern float complex cpowf(float complex, float complex);
|
|
139
|
+
extern double complex cpow(double complex, double complex);
|
|
140
|
+
extern long double complex cpowl(long double complex, long double complex);
|
|
141
|
+
|
|
142
|
+
extern float complex csqrtf(float complex);
|
|
143
|
+
extern double complex csqrt(double complex);
|
|
144
|
+
extern long double complex csqrtl(long double complex);
|
|
145
|
+
|
|
146
|
+
extern float cargf(float complex);
|
|
147
|
+
extern double carg(double complex);
|
|
148
|
+
extern long double cargl(long double complex);
|
|
149
|
+
|
|
150
|
+
extern float cimagf(float complex);
|
|
151
|
+
extern double cimag(double complex);
|
|
152
|
+
extern long double cimagl(long double complex);
|
|
153
|
+
|
|
154
|
+
extern float complex conjf(float complex);
|
|
155
|
+
extern double complex conj(double complex);
|
|
156
|
+
extern long double complex conjl(long double complex);
|
|
157
|
+
|
|
158
|
+
extern float complex cprojf(float complex);
|
|
159
|
+
extern double complex cproj(double complex);
|
|
160
|
+
extern long double complex cprojl(long double complex);
|
|
161
|
+
|
|
162
|
+
extern float crealf(float complex);
|
|
163
|
+
extern double creal(double complex);
|
|
164
|
+
extern long double creall(long double complex);
|
|
165
|
+
__END_DECLS
|
|
166
|
+
|
|
167
|
+
#endif /* __COMPLEX_H__ */
|
|
@@ -40,6 +40,9 @@ typedef NSObject<OS_dispatch_group> *dispatch_group_t;
|
|
|
40
40
|
@protocol OS_dispatch_semaphore <OS_dispatch_object>
|
|
41
41
|
@end
|
|
42
42
|
typedef NSObject<OS_dispatch_semaphore> *dispatch_semaphore_t;
|
|
43
|
+
@protocol OS_dispatch_data <OS_dispatch_object>
|
|
44
|
+
@end
|
|
45
|
+
typedef NSObject<OS_dispatch_data> *dispatch_data_t;
|
|
43
46
|
#elif defined(__cplusplus)
|
|
44
47
|
typedef struct dispatch_object_s {
|
|
45
48
|
private:
|
|
@@ -56,6 +59,7 @@ typedef struct dispatch_source_s : public dispatch_object_s {} *dispatch_source_
|
|
|
56
59
|
typedef struct dispatch_queue_attr_s : public dispatch_object_s {} *dispatch_queue_attr_t;
|
|
57
60
|
typedef struct dispatch_group_s : public dispatch_object_s {} *dispatch_group_t;
|
|
58
61
|
typedef struct dispatch_semaphore_s : public dispatch_object_s {} *dispatch_semaphore_t;
|
|
62
|
+
typedef struct dispatch_data_s : public dispatch_object_s {} *dispatch_data_t;
|
|
59
63
|
#else
|
|
60
64
|
typedef struct dispatch_queue_s *dispatch_queue_t;
|
|
61
65
|
typedef dispatch_queue_t dispatch_queue_global_t;
|
|
@@ -65,6 +69,7 @@ typedef struct dispatch_source_s *dispatch_source_t;
|
|
|
65
69
|
typedef struct dispatch_queue_attr_s *dispatch_queue_attr_t;
|
|
66
70
|
typedef struct dispatch_group_s *dispatch_group_t;
|
|
67
71
|
typedef struct dispatch_semaphore_s *dispatch_semaphore_t;
|
|
72
|
+
typedef struct dispatch_data_s *dispatch_data_t;
|
|
68
73
|
typedef union {
|
|
69
74
|
struct _os_object_s *_os_obj;
|
|
70
75
|
struct dispatch_object_s *_do;
|
|
@@ -12,6 +12,7 @@ typedef int thread_state_flavor_t;
|
|
|
12
12
|
typedef natural_t mach_port_t;
|
|
13
13
|
typedef mach_port_t task_t;
|
|
14
14
|
typedef mach_port_t task_name_t;
|
|
15
|
+
typedef mach_port_t task_id_token_t;
|
|
15
16
|
typedef mach_port_t host_t;
|
|
16
17
|
typedef mach_port_t memory_object_name_t;
|
|
17
18
|
typedef mach_port_t thread_t;
|