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,504 @@
|
|
|
1
|
+
//
|
|
2
|
+
// UTType.h
|
|
3
|
+
//
|
|
4
|
+
// Copyright © 2020 Apple. All rights reserved.
|
|
5
|
+
//
|
|
6
|
+
|
|
7
|
+
#ifndef __UNIFORMTYPEIDENTIFIERS_UTTYPE__
|
|
8
|
+
#define __UNIFORMTYPEIDENTIFIERS_UTTYPE__
|
|
9
|
+
|
|
10
|
+
#import <Foundation/Foundation.h>
|
|
11
|
+
|
|
12
|
+
#import <UniformTypeIdentifiers/UTDefines.h>
|
|
13
|
+
#import <UniformTypeIdentifiers/UTTagClass.h>
|
|
14
|
+
|
|
15
|
+
__BEGIN_DECLS
|
|
16
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
17
|
+
UT_AVAILABLE_BEGIN
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
\brief A class representing a type in a type hierarchy.
|
|
21
|
+
|
|
22
|
+
Types may represent files on disk, abstract data types with no on-disk
|
|
23
|
+
representation, or even entirely unrelated hierarchical classification
|
|
24
|
+
systems such as hardware.
|
|
25
|
+
|
|
26
|
+
Older API that does not use \c UTType typically uses an untyped \c NSString
|
|
27
|
+
or \c CFStringRef to refer to a type by its identifier. To get the
|
|
28
|
+
identifier of a type for use with these APIs, use the \c identifier property
|
|
29
|
+
of this class.
|
|
30
|
+
|
|
31
|
+
\sa https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/understanding_utis/
|
|
32
|
+
*/
|
|
33
|
+
UT_EXPORT_CLASS UT_SUBCLASSING_RESTRICTED NS_SWIFT_SENDABLE @interface UTType : NSObject <NSCopying, NSSecureCoding>
|
|
34
|
+
+ (instancetype)new NS_UNAVAILABLE;
|
|
35
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
\brief Create a type given a type identifier.
|
|
39
|
+
|
|
40
|
+
\param identifier The type identifier.
|
|
41
|
+
|
|
42
|
+
\result A type, or \c nil if the type identifier is not known to the system.
|
|
43
|
+
*/
|
|
44
|
+
+ (nullable instancetype)typeWithIdentifier:(NSString *)identifier;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
\brief Create a type given a type identifier, optionally allowing identifiers that do not have an
|
|
48
|
+
active declaration on the current system.
|
|
49
|
+
|
|
50
|
+
When `allowUndeclared` is `YES`, this initializer can be used to obtain a type
|
|
51
|
+
object that keeps the "identity" of the input identifier even if no type with that
|
|
52
|
+
identifier is (currently) known to the system. In that case, the type is neither dynamic
|
|
53
|
+
nor declared, and has no conformances or tags (or any other properties).
|
|
54
|
+
|
|
55
|
+
If a type with the input identifier is known to the system, or if the input identifier is in
|
|
56
|
+
the dynamic namespace, it returns the same type object that \c typeWithIdentifier: would
|
|
57
|
+
return.
|
|
58
|
+
|
|
59
|
+
If `allowUndeclared` is `NO`, this initializer behaves identically to \c typeWithIdentifier:
|
|
60
|
+
given the same identifier.
|
|
61
|
+
|
|
62
|
+
One may use this, for instance, to create a concrete type object using an identifier that may
|
|
63
|
+
have been obtained from another system, and round-trip it through a subsystem without losing
|
|
64
|
+
the identity of the type.
|
|
65
|
+
|
|
66
|
+
If the input \c identifier is not a valid Uniform Type Identifier, the method returns \c nil .
|
|
67
|
+
See https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/understanding_utis/understand_utis_conc/understand_utis_conc.html#//apple_ref/doc/uid/TP40001319-CH202-SW2
|
|
68
|
+
|
|
69
|
+
\param identifier The type identifier.
|
|
70
|
+
|
|
71
|
+
\param allowUndeclared Whether to return an object if no type with the provided identifier
|
|
72
|
+
is known to the system.
|
|
73
|
+
|
|
74
|
+
\result A type object, or \c nil if the input \c identifier was not a Uniform Type Identifier.
|
|
75
|
+
*/
|
|
76
|
+
+ (nullable instancetype)typeWithIdentifier:(NSString *)identifier allowUndeclared:(BOOL)allowUndeclared
|
|
77
|
+
API_AVAILABLE(macos(27.0), ios(27.0), watchos(27.0), tvos(27.0), visionos(27.0));
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
\brief Create a type given a filename extension that conforms to
|
|
81
|
+
\c UTTypeData.
|
|
82
|
+
|
|
83
|
+
\param filenameExtension The filename extension for which a type is desired.
|
|
84
|
+
|
|
85
|
+
\result A type. If no types are known to the system with the specified
|
|
86
|
+
filename extension and conformance but the inputs were otherwise valid,
|
|
87
|
+
a dynamic type may be provided. If the inputs were not valid, returns
|
|
88
|
+
\c nil.
|
|
89
|
+
|
|
90
|
+
This method is equivalent to:
|
|
91
|
+
|
|
92
|
+
\code
|
|
93
|
+
[UTType typeWithTag:filenameExtension tagClass:UTTagClassFilenameExtension conformingToType:UTTypeData]
|
|
94
|
+
\endcode
|
|
95
|
+
|
|
96
|
+
To get the type of a file on disk, use the \c NSURLContentTypeKey property.
|
|
97
|
+
You should not attempt to derive the type of a file system object based
|
|
98
|
+
solely on its path extension.
|
|
99
|
+
*/
|
|
100
|
+
+ (nullable instancetype)typeWithFilenameExtension:(NSString *)filenameExtension;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
\brief Create a type given a filename extension.
|
|
104
|
+
|
|
105
|
+
\param filenameExtension The filename extension for which a type is desired.
|
|
106
|
+
\param supertype Another type that the resulting type must conform to.
|
|
107
|
+
Typically, you would pass \c UTTypeData or \c UTTypePackage.
|
|
108
|
+
|
|
109
|
+
\result A type. If no types are known to the system with the specified
|
|
110
|
+
filename extension and conformance but the inputs were otherwise valid,
|
|
111
|
+
a dynamic type may be provided. If the inputs were not valid, returns
|
|
112
|
+
\c nil.
|
|
113
|
+
|
|
114
|
+
This method is equivalent to:
|
|
115
|
+
|
|
116
|
+
\code
|
|
117
|
+
[UTType typeWithTag:filenameExtension tagClass:UTTagClassFilenameExtension conformingToType:supertype]
|
|
118
|
+
\endcode
|
|
119
|
+
|
|
120
|
+
To get the type of a file on disk, use the \c NSURLContentTypeKey property.
|
|
121
|
+
You should not attempt to derive the type of a file system object based
|
|
122
|
+
solely on its path extension.
|
|
123
|
+
*/
|
|
124
|
+
+ (nullable instancetype)typeWithFilenameExtension:(NSString *)filenameExtension conformingToType:(UTType *)supertype;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
\brief Create a type given a MIME type that conforms to \c UTTypeData.
|
|
128
|
+
|
|
129
|
+
\param mimeType The MIME type for which a type is desired.
|
|
130
|
+
|
|
131
|
+
\result A type. If no types are known to the system with the specified
|
|
132
|
+
MIME type and conformance but the inputs were otherwise valid, a dynamic
|
|
133
|
+
type may be provided. If the inputs were not valid, returns \c nil.
|
|
134
|
+
|
|
135
|
+
This method is equivalent to:
|
|
136
|
+
|
|
137
|
+
\code
|
|
138
|
+
[UTType typeWithTag:mimeType tagClass:UTTagClassMIMEType conformingToType:UTTypeData]
|
|
139
|
+
\endcode
|
|
140
|
+
*/
|
|
141
|
+
+ (nullable instancetype)typeWithMIMEType:(NSString *)mimeType;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
\brief Create a type given a MIME type.
|
|
145
|
+
|
|
146
|
+
\param mimeType The MIME type for which a type is desired.
|
|
147
|
+
\param supertype Another type that the resulting type must conform to.
|
|
148
|
+
Typically, you would pass \c UTTypeData.
|
|
149
|
+
|
|
150
|
+
\result A type. If no types are known to the system with the specified
|
|
151
|
+
MIME type and conformance but the inputs were otherwise valid, a dynamic
|
|
152
|
+
type may be provided. If the inputs were not valid, returns \c nil.
|
|
153
|
+
|
|
154
|
+
This method is equivalent to:
|
|
155
|
+
|
|
156
|
+
\code
|
|
157
|
+
[UTType typeWithTag:mimeType tagClass:UTTagClassMIMEType conformingToType:supertype]
|
|
158
|
+
\endcode
|
|
159
|
+
*/
|
|
160
|
+
+ (nullable instancetype)typeWithMIMEType:(NSString *)mimeType conformingToType:(UTType *)supertype;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
\brief The receiver's identifier.
|
|
164
|
+
|
|
165
|
+
A type is \em identified \em by its Uniform Type Identifier (UTI), a
|
|
166
|
+
reverse-DNS string such as \c "public.jpeg" or \c "com.adobe.pdf". The type
|
|
167
|
+
itself \em has a UTI, but is not itself the UTI. This terminology is not
|
|
168
|
+
consistently used across Apple's documentation.
|
|
169
|
+
*/
|
|
170
|
+
@property (readonly) NSString *identifier;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
\brief If available, the preferred (first available) tag of class
|
|
174
|
+
\c UTTagClassFilenameExtension.
|
|
175
|
+
|
|
176
|
+
Many uses of types require the generation of a filename (e.g. when saving a
|
|
177
|
+
file to disk.) If not \c nil, the value of this property is the best
|
|
178
|
+
available filename extension for the given type. The value of this property
|
|
179
|
+
is equivalent to, but more efficient than:
|
|
180
|
+
|
|
181
|
+
\code
|
|
182
|
+
type.tags[UTTagClassFilenameExtension].firstObject
|
|
183
|
+
\endcode
|
|
184
|
+
*/
|
|
185
|
+
@property (readonly, nullable) NSString *preferredFilenameExtension;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
\brief If available, the preferred (first available) tag of class
|
|
189
|
+
\c UTTagClassMIMEType.
|
|
190
|
+
|
|
191
|
+
If not \c nil, the value of this property is the best available MIME type
|
|
192
|
+
for the given type, according to its declaration. The value of this property
|
|
193
|
+
is equivalent to, but more efficient than:
|
|
194
|
+
|
|
195
|
+
\code
|
|
196
|
+
type.tags[UTTagClassMIMEType].firstObject
|
|
197
|
+
\endcode
|
|
198
|
+
*/
|
|
199
|
+
@property (readonly, nullable) NSString *preferredMIMEType;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
\brief The localized description of the type.
|
|
203
|
+
|
|
204
|
+
If the type does not provide a description, the system may search its
|
|
205
|
+
supertypes for one. Dynamic types never have localized descriptions even if
|
|
206
|
+
their supertypes do.
|
|
207
|
+
*/
|
|
208
|
+
@property (readonly, nullable) NSString *localizedDescription;
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
\brief The type's version.
|
|
212
|
+
|
|
213
|
+
Most types do not specify a version.
|
|
214
|
+
*/
|
|
215
|
+
@property (readonly, nullable) NSNumber *version;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
\brief The reference URL of the type.
|
|
219
|
+
|
|
220
|
+
A reference URL is a human-readable document describing a type. Most types
|
|
221
|
+
do not specify reference URLs.
|
|
222
|
+
|
|
223
|
+
\warning This URL is not validated in any way by the system, nor is its
|
|
224
|
+
scheme or structure guaranteed in any way.
|
|
225
|
+
*/
|
|
226
|
+
@property (readonly, nullable) NSURL *referenceURL;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
\brief Whether or not the receiver is a dynamically generated type.
|
|
230
|
+
|
|
231
|
+
Dynamic types are recognized by the system, but may not be directly declared
|
|
232
|
+
or claimed by an application. They are used when a file is encountered whose
|
|
233
|
+
metadata has no corresponding type known to the system.
|
|
234
|
+
|
|
235
|
+
A type cannot be both declared \em and dynamic.
|
|
236
|
+
*/
|
|
237
|
+
@property (readonly, getter=isDynamic) BOOL dynamic;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
\brief Whether or not the receiver is a type known to the system.
|
|
241
|
+
|
|
242
|
+
A type cannot be both declared \em and dynamic.
|
|
243
|
+
*/
|
|
244
|
+
@property (readonly, getter=isDeclared) BOOL declared;
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
\brief Whether or not the type is in the public domain.
|
|
248
|
+
|
|
249
|
+
Types in the public domain have identifiers starting with \c "public." and
|
|
250
|
+
are generally defined by a standards body or by convention. They are never
|
|
251
|
+
dynamic.
|
|
252
|
+
*/
|
|
253
|
+
@property (readonly, getter=isPublicType) BOOL publicType;
|
|
254
|
+
@end
|
|
255
|
+
|
|
256
|
+
#pragma mark -
|
|
257
|
+
|
|
258
|
+
@interface UTType (Conformance)
|
|
259
|
+
/**
|
|
260
|
+
\brief Tests for a conformance relationship between the receiver and another
|
|
261
|
+
type.
|
|
262
|
+
|
|
263
|
+
\param type The type against which conformance should be tested.
|
|
264
|
+
|
|
265
|
+
\result If the two types are equal, returns \c YES. If the receiver
|
|
266
|
+
conforms, directly or indirectly, to \a type, returns \c YES. Otherwise,
|
|
267
|
+
returns \c NO.
|
|
268
|
+
|
|
269
|
+
\sa -isSupertypeOfType:
|
|
270
|
+
\sa -isSubtypeOfType:
|
|
271
|
+
*/
|
|
272
|
+
- (BOOL)conformsToType:(UTType *)type;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
\brief Tests if the receiver is a supertype of another type.
|
|
276
|
+
|
|
277
|
+
\param type The type against which conformance should be tested.
|
|
278
|
+
|
|
279
|
+
\result If \a type conforms, directly or indirectly, to the receiver and is
|
|
280
|
+
not equal to it, returns \c YES. Otherwise, returns \c NO.
|
|
281
|
+
|
|
282
|
+
\sa -conformsToType:
|
|
283
|
+
\sa -isSubtypeOfType:
|
|
284
|
+
*/
|
|
285
|
+
- (BOOL)isSupertypeOfType:(UTType *)type;
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
\brief Tests if the receiver is a subtype of another type.
|
|
289
|
+
|
|
290
|
+
\param type The type against which conformance should be tested.
|
|
291
|
+
|
|
292
|
+
\result If the receiver conforms, directly or indirectly, to \a type and is
|
|
293
|
+
not equal to it, returns \c YES. Otherwise, returns \c NO.
|
|
294
|
+
|
|
295
|
+
\sa -conformsToType:
|
|
296
|
+
\sa -isSupertypeOfType:
|
|
297
|
+
*/
|
|
298
|
+
- (BOOL)isSubtypeOfType:(UTType *)type;
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
\brief The set of types to which the receiving type conforms, directly or
|
|
302
|
+
indirectly.
|
|
303
|
+
|
|
304
|
+
If you are just interested in checking if one type conforms to another, it
|
|
305
|
+
is more efficient to use \c -conformsToType: than this property.
|
|
306
|
+
*/
|
|
307
|
+
@property (readonly) NSSet<UTType *> *supertypes;
|
|
308
|
+
@end
|
|
309
|
+
|
|
310
|
+
#pragma mark -
|
|
311
|
+
|
|
312
|
+
@interface UTType (UTTagSpecification)
|
|
313
|
+
/**
|
|
314
|
+
\brief Create a type given a type tag.
|
|
315
|
+
|
|
316
|
+
\param tag The tag, such as the path extension, for which a type is desired.
|
|
317
|
+
\param tagClass The class of the tag, such as \c UTTagClassFilenameExtension.
|
|
318
|
+
\param supertype Another type that the resulting type must conform to. If
|
|
319
|
+
\c nil, no conformance is required.
|
|
320
|
+
|
|
321
|
+
\result A type. If no types are known to the system with the specified tag
|
|
322
|
+
but the inputs were otherwise valid, a dynamic type may be provided. If
|
|
323
|
+
the inputs were not valid, returns \c nil.
|
|
324
|
+
*/
|
|
325
|
+
+ (nullable instancetype)typeWithTag:(NSString *)tag tagClass:(NSString *)tagClass conformingToType:(nullable UTType *)supertype;
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
\brief Create an array of types given a type tag.
|
|
329
|
+
|
|
330
|
+
\param tag The tag, such as the path extension, for which a set of types is
|
|
331
|
+
desired.
|
|
332
|
+
\param tagClass The class of the tag, such as \c UTTagClassFilenameExtension.
|
|
333
|
+
\param supertype Another type that the resulting types must conform to. If
|
|
334
|
+
\c nil, no conformance is required.
|
|
335
|
+
|
|
336
|
+
\result An array of types, or the empty array if no such types were
|
|
337
|
+
available. If no types are known to the system with the specified tag
|
|
338
|
+
but the inputs were otherwise valid, a dynamic type may be provided.
|
|
339
|
+
*/
|
|
340
|
+
+ (NSArray<UTType *> *)typesWithTag:(NSString *)tag tagClass:(NSString *)tagClass conformingToType:(nullable UTType *)supertype;
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
\brief The tag specification dictionary of the type.
|
|
344
|
+
|
|
345
|
+
The system does not store tag information for non-standard tag classes. It
|
|
346
|
+
normalizes string values into arrays containing those strings. For instance,
|
|
347
|
+
a value of:
|
|
348
|
+
|
|
349
|
+
\code
|
|
350
|
+
{
|
|
351
|
+
"public.mime-type": "x/y",
|
|
352
|
+
"nonstandard-tag-class": "abc",
|
|
353
|
+
}
|
|
354
|
+
\endcode
|
|
355
|
+
|
|
356
|
+
Is normalized to:
|
|
357
|
+
|
|
358
|
+
\code
|
|
359
|
+
{
|
|
360
|
+
"public.mime-type": [ "x/y" ]
|
|
361
|
+
}
|
|
362
|
+
\endcode
|
|
363
|
+
|
|
364
|
+
If you are simply looking for the preferred filename extension or MIME
|
|
365
|
+
type of a type, it is more efficient for you to use the
|
|
366
|
+
\c preferredFilenameExtension and \c preferredMIMEType properties
|
|
367
|
+
respectively.
|
|
368
|
+
*/
|
|
369
|
+
@property (readonly) NSDictionary<NSString *, NSArray<NSString *> *> *tags;
|
|
370
|
+
@end
|
|
371
|
+
|
|
372
|
+
#pragma mark -
|
|
373
|
+
|
|
374
|
+
@interface UTType (LocalConstants)
|
|
375
|
+
/**
|
|
376
|
+
\brief Gets an active \c UTType corresponding to a type that is declared as
|
|
377
|
+
"exported" by the current process.
|
|
378
|
+
|
|
379
|
+
\param identifier The type identifier for which a type is desired.
|
|
380
|
+
|
|
381
|
+
\result A type.
|
|
382
|
+
|
|
383
|
+
Use this method to get types that are exported by your application. If
|
|
384
|
+
\a identifier does not correspond to any type known to the system, the
|
|
385
|
+
result is undefined.
|
|
386
|
+
|
|
387
|
+
Conformance to either \c UTTypeData or \c UTTypePackage is assumed.
|
|
388
|
+
|
|
389
|
+
You would generally use this method with \c dispatch_once():
|
|
390
|
+
|
|
391
|
+
\code
|
|
392
|
+
UTType *GetMyFileFormat(void) {
|
|
393
|
+
static UTType *result = nil;
|
|
394
|
+
|
|
395
|
+
static dispatch_once_t once;
|
|
396
|
+
dispatch_once(&once, ^ {
|
|
397
|
+
result = [UTType exportedTypeWithIdentifier:@"com.example.myfileformat"];
|
|
398
|
+
});
|
|
399
|
+
|
|
400
|
+
return result;
|
|
401
|
+
}
|
|
402
|
+
\endcode
|
|
403
|
+
*/
|
|
404
|
+
+ (UTType *)exportedTypeWithIdentifier:(NSString *)identifier;
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
\brief Gets an active \c UTType corresponding to a type that is declared as
|
|
408
|
+
"exported" by the current process.
|
|
409
|
+
|
|
410
|
+
\param identifier The type identifier for which a type is desired.
|
|
411
|
+
\param parentType A parent type that the resulting type is expected to
|
|
412
|
+
conform to.
|
|
413
|
+
|
|
414
|
+
\result A type.
|
|
415
|
+
|
|
416
|
+
Use this method to get types that are exported by your application. If
|
|
417
|
+
\a identifier does not correspond to any type known to the system, the
|
|
418
|
+
result is undefined.
|
|
419
|
+
|
|
420
|
+
You would generally use this method with \c dispatch_once():
|
|
421
|
+
|
|
422
|
+
\code
|
|
423
|
+
UTType *GetMyFileFormat(void) {
|
|
424
|
+
static UTType *result = nil;
|
|
425
|
+
|
|
426
|
+
static dispatch_once_t once;
|
|
427
|
+
dispatch_once(&once, ^ {
|
|
428
|
+
result = [UTType exportedTypeWithIdentifier:@"com.example.myfileformat" conformingToType:UTTypeData];
|
|
429
|
+
});
|
|
430
|
+
|
|
431
|
+
return result;
|
|
432
|
+
}
|
|
433
|
+
\endcode
|
|
434
|
+
*/
|
|
435
|
+
+ (UTType *)exportedTypeWithIdentifier:(NSString *)identifier conformingToType:(UTType *)parentType;
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
\brief Gets an active \c UTType corresponding to a type that is declared as
|
|
439
|
+
"imported" by the current process.
|
|
440
|
+
|
|
441
|
+
\param identifier The type identifier for which a type is desired.
|
|
442
|
+
|
|
443
|
+
\result A type whose identifier may or may not be equal to \a identifier,
|
|
444
|
+
but which is functionally equivalent.
|
|
445
|
+
|
|
446
|
+
Use this method to get types that are imported by your application. If
|
|
447
|
+
\a identifier does not correspond to any type known to the system, the
|
|
448
|
+
result is undefined.
|
|
449
|
+
|
|
450
|
+
Conformance to either \c UTTypeData or \c UTTypePackage is assumed.
|
|
451
|
+
|
|
452
|
+
You would generally use this method in the body of a funcion or method and
|
|
453
|
+
would \em not use \c dispatch_once() as the type can change over time:
|
|
454
|
+
|
|
455
|
+
\code
|
|
456
|
+
UTType *GetCompetitorFileFormat(void) {
|
|
457
|
+
return [UTType importedTypeWithIdentifier:@"com.example.competitorfileformat"];
|
|
458
|
+
}
|
|
459
|
+
\endcode
|
|
460
|
+
|
|
461
|
+
In the general case, this method returns a type with the same identifier,
|
|
462
|
+
but if that type has a preferred filename extension and \em another type is
|
|
463
|
+
the preferred type for that extension, then that \em other type is
|
|
464
|
+
substituted.
|
|
465
|
+
*/
|
|
466
|
+
+ (UTType *)importedTypeWithIdentifier:(NSString *)identifier;
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
\brief Gets an active \c UTType corresponding to a type that is declared as
|
|
470
|
+
"imported" by the current process.
|
|
471
|
+
|
|
472
|
+
\param identifier The type identifier for which a type is desired.
|
|
473
|
+
\param parentType A parent type that the resulting type is expected to
|
|
474
|
+
conform to.
|
|
475
|
+
|
|
476
|
+
\result A type whose identifier may or may not be equal to \a identifier,
|
|
477
|
+
but which is functionally equivalent.
|
|
478
|
+
|
|
479
|
+
Use this method to get types that are imported by your application. If
|
|
480
|
+
\a identifier does not correspond to any type known to the system, the
|
|
481
|
+
result is undefined.
|
|
482
|
+
|
|
483
|
+
You would generally use this method in the body of a funcion or method and
|
|
484
|
+
would \em not use \c dispatch_once() as the type can change over time:
|
|
485
|
+
|
|
486
|
+
\code
|
|
487
|
+
UTType *GetCompetitorFileFormat(void) {
|
|
488
|
+
return [UTType importedTypeWithIdentifier:@"com.example.competitorfileformat" conformingToType:UTTypeData];
|
|
489
|
+
}
|
|
490
|
+
\endcode
|
|
491
|
+
|
|
492
|
+
In the general case, this method returns a type with the same identifier,
|
|
493
|
+
but if that type has a preferred filename extension and \em another type is
|
|
494
|
+
the preferred type for that extension, then that \em other type is
|
|
495
|
+
substituted.
|
|
496
|
+
*/
|
|
497
|
+
+ (UTType *)importedTypeWithIdentifier:(NSString *)identifier conformingToType:(UTType *)parentType;
|
|
498
|
+
@end
|
|
499
|
+
|
|
500
|
+
UT_AVAILABLE_END
|
|
501
|
+
NS_ASSUME_NONNULL_END
|
|
502
|
+
__END_DECLS
|
|
503
|
+
|
|
504
|
+
#endif // __UNIFORMTYPEIDENTIFIERS_UTTYPE__
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//
|
|
2
|
+
// CLEssentialsAvailability.h
|
|
3
|
+
// LocationEssentials
|
|
4
|
+
//
|
|
5
|
+
// Created by Ilya Veygman on 2/6/25.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#pragma once
|
|
9
|
+
|
|
10
|
+
#ifdef __cplusplus
|
|
11
|
+
#define CLES_EXPORT extern "C" __attribute__((visibility ("default")))
|
|
12
|
+
#else
|
|
13
|
+
#define CLES_EXPORT extern __attribute__((visibility ("default")))
|
|
14
|
+
#endif
|