peachsim 0.1.1744 → 0.1.1801
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/README.md +28 -28
- package/cli/account-gate.ts +97 -0
- package/cli/app-catalog.ts +24 -0
- package/cli/app-stubs.ts +7 -0
- package/cli/auth.ts +48 -18
- package/cli/bin.ts +35 -2
- package/cli/bridge-flow-runner.ts +174 -6
- package/cli/cloud-dispatch.ts +0 -3
- package/cli/command-registry.ts +2 -6
- package/cli/commands/auth.ts +68 -3
- package/cli/commands/compat.ts +1116 -0
- package/cli/commands/control.ts +90 -13
- package/cli/commands/coverage.ts +85 -116
- package/cli/commands/detox.ts +20 -20
- package/cli/commands/device.ts +31 -27
- package/cli/commands/doctor.ts +76 -1032
- package/cli/commands/flow.ts +80 -41
- package/cli/commands/guest-host.ts +2 -2
- package/cli/commands/inspect/core.ts +8 -7
- package/cli/commands/inspect/settling.ts +60 -25
- package/cli/commands/inspect/wait-ready.ts +6 -4
- package/cli/commands/inspect/wait-selector.ts +32 -18
- package/cli/commands/inspect.ts +8 -6
- package/cli/commands/kotlin.ts +15 -6
- package/cli/commands/logout.ts +4 -2
- package/cli/commands/maestro-compare.ts +19 -37
- package/cli/commands/maestro-generate.ts +4 -4
- package/cli/commands/maestro.ts +56 -37
- package/cli/commands/package.ts +136 -57
- package/cli/commands/preview.ts +10 -1
- package/cli/commands/{film.ts → record-three.ts} +33 -28
- package/cli/commands/record.ts +41 -39
- package/cli/commands/screenshots.ts +4 -0
- package/cli/commands/setup.ts +38 -1
- package/cli/commands/shell-url.ts +49 -24
- package/cli/commands/swift.ts +29 -11
- package/cli/commands/test.ts +43 -13
- package/cli/commands/upload.ts +12 -9
- package/cli/drivers/playwright-core-pin.ts +2 -2
- package/cli/flow-export.ts +1 -1
- package/cli/flow-file.ts +1 -1
- package/cli/internal-child.ts +3 -8
- package/cli/maestro-compare.ts +73 -7
- package/cli/maestro-js.ts +1 -1
- package/cli/maestro-report.ts +1 -1
- package/cli/maestro-workspace.ts +66 -4
- package/cli/main.ts +22 -55
- package/cli/native-input.ts +13 -20
- package/cli/outbound-endpoints.ts +40 -7
- package/cli/output-redaction.ts +8 -3
- package/cli/packaged-app-launcher.ts +40 -28
- package/cli/prompt.ts +20 -0
- package/cli/recording-access.ts +7 -7
- package/cli/run-registry.ts +1 -1
- package/cli/scene-video.ts +0 -4
- package/cli/ws-bridge.ts +7 -4
- package/detox/index.ts +293 -50
- package/detox/jest-preset.cjs +6 -0
- package/detox/launch-permissions.ts +1 -21
- 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 +2 -8
- package/dist-lib/bridge-contract.mjs +2 -7
- package/dist-lib/bundle-channel.cjs +45273 -38265
- package/dist-lib/capture-contract.cjs +37 -14
- package/dist-lib/capture-contract.mjs +36 -13
- 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 +2 -2
- package/dist-lib/cloud.mjs +2 -2
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +562 -126
- package/dist-lib/detox/jest-preset.cjs +6 -0
- package/dist-lib/dev-bundle-resolution.cjs +18 -13
- package/dist-lib/expo-swift-bundle.cjs +28566 -23874
- package/dist-lib/expo-swift-metadata.cjs +104 -2
- package/dist-lib/expo-swift-metadata.mjs +104 -2
- package/dist-lib/home-paths.cjs +8 -5
- package/dist-lib/host/bridge-host.cjs +36618 -29846
- package/dist-lib/host/fetch-proxy-handler.cjs +23 -20
- 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 +5 -2
- package/dist-lib/index.cjs +1921 -1549
- 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 +21 -7
- package/dist-lib/menu.mjs +21 -7
- 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 +1877 -1584
- package/dist-lib/native-app-identity-project.cjs +1274 -951
- package/dist-lib/native-app-identity-project.mjs +1414 -963
- package/dist-lib/native-app-identity.cjs +64 -58
- package/dist-lib/native-app-identity.mjs +64 -58
- 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 +79 -33
- package/dist-lib/public-origins-lib-static.json +1 -1
- package/dist-lib/public-origins-lib.json +484 -280
- package/dist-lib/react-native-host-modules.cjs +3 -1
- package/dist-lib/react-native-host-modules.mjs +3 -1
- package/dist-lib/reap-browser.cjs +23 -26
- package/dist-lib/scripts/dev-server-scanner.cjs +13 -10
- package/dist-lib/sdk.cjs +69 -36
- package/dist-lib/sdk.mjs +69 -36
- package/dist-lib/skills.cjs +33781 -27141
- package/dist-lib/swift-compile.cjs +3759 -2520
- package/dist-lib/swift-compile.mjs +3680 -2441
- package/dist-lib/swift-package.cjs +33 -1
- package/dist-lib/swift-package.mjs +31 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +102 -5
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +16480 -14579
- package/dist-lib/vite.cjs +269 -295
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-compat/src/secure-item-store.d.ts +38 -0
- package/dist-types/packages/peach-compat/src/stubs/ring-mode-state.d.ts +4 -0
- package/dist-types/packages/peach-compat/src/stubs/screen-transition-math.d.ts +21 -12
- package/dist-types/packages/peach-engine/src/billing/plans.d.ts +1 -2
- package/dist-types/packages/peach-engine/src/capture/browser-composite-provider.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/capture/browser-composite.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/animated-driven-style.d.ts +10 -10
- package/dist-types/packages/peach-engine/src/engine/animated.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/animation-graph.d.ts +6 -2
- package/dist-types/packages/peach-engine/src/engine/canvaskit-api.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/canvaskit-renderer.d.ts +3 -2
- package/dist-types/packages/peach-engine/src/engine/fiber-debug-metadata.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/lottie-runtime.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/engine/native-animation-driver.d.ts +18 -1
- package/dist-types/packages/peach-engine/src/engine/native-layout.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/nativeReplayContract.d.ts +71 -0
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +31 -3
- package/dist-types/packages/peach-engine/src/engine/paint-boundary-types.d.ts +0 -1
- package/dist-types/packages/peach-engine/src/engine/paint-boundary.d.ts +7 -2
- package/dist-types/packages/peach-engine/src/engine/portals.d.ts +2 -4
- package/dist-types/packages/peach-engine/src/engine/render-damage.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +7 -1
- package/dist-types/packages/peach-engine/src/engine/scroll-momentum-math.d.ts +3 -3
- package/dist-types/packages/peach-engine/src/engine/scroll-velocity.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/scroll.d.ts +10 -0
- package/dist-types/packages/peach-engine/src/engine/secureItemHostContract.d.ts +30 -0
- package/dist-types/packages/peach-engine/src/engine/shell-owned-values.d.ts +55 -0
- package/dist-types/packages/peach-engine/src/engine/text-first-baseline.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +85 -26
- package/dist-types/packages/peach-engine/src/graphite-stats-fields.d.ts +28 -0
- package/dist-types/packages/peach-engine/src/ios/apps/canvas-map-data.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/ios/aux-home-scene.d.ts +3 -4
- package/dist-types/packages/peach-engine/src/ios/aux-shell-animated-sources.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/ios/home-app-catalog.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/ios/photo-store.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/ios/photoLibraryContract.d.ts +15 -0
- package/dist-types/packages/peach-engine/src/ios/shell-controller-types.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/metro-asset-path.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/react-native/platform-colors.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/render-worker/canvaskit-webgpu.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/canvaskit-worker-init.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +31 -12
- package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/scroll-drag-presentation.d.ts +23 -0
- package/dist-types/packages/peach-engine/src/render-worker/expo-widgetContract.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/render-worker/expo-widgets-activityContract.d.ts +15 -0
- package/dist-types/packages/peach-engine/src/render-worker/graph-linked-value.d.ts +3 -1
- package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +12 -2
- package/dist-types/packages/peach-engine/src/render-worker/image-pixel-contract.d.ts +12 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +30 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-widgetContract.d.ts +4 -1
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +15 -9
- package/dist-types/packages/peach-engine/src/render-worker/scroll-mirror-tenant.d.ts +3 -1
- package/dist-types/packages/peach-engine/src/render-worker/scroll-mirror.d.ts +24 -0
- package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +8 -4
- package/dist-types/packages/peach-engine/src/render-worker/shell-scene-schema.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/render-worker/shell-tree-wire.d.ts +3 -2
- package/dist-types/packages/peach-engine/src/render-worker/text-inputContract.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/tree-sync-port.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/worker-input-runtime.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +10 -1
- package/dist-types/packages/peach-engine/src/render-worker/worklet-sab.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/rolldown-production-module.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/settings/devices.d.ts +4 -0
- package/dist-types/packages/peach-globals/src/eventBridgeContract.d.ts +1 -1
- package/dist-types/packages/peach-globals/src/lockstepCaptureBridgeContract.d.ts +7 -0
- package/dist-types/packages/peach-globals/src/nodeContract.d.ts +3 -1
- package/dist-types/packages/peach-globals/src/recordingBridgeContract.d.ts +5 -1
- package/dist-types/packages/peach-globals/src/shellBridgeContract.d.ts +2 -0
- package/dist-types/packages/peach-globals/src/testBridgeContract.d.ts +3 -1
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +23 -1
- package/dist-types/packages/peach-kit/src/internal.d.ts +2 -1
- package/dist-types/packages/peach-kit/src/ui/hosting-safe-area.d.ts +2 -0
- package/dist-types/packages/peach-kit/src/ui/keyboard-toolbar.d.ts +5 -0
- package/install.sh +20 -1
- package/package.json +6 -5
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h +629 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionDeprecated.h +90 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h +256 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h +1006 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVFAudio.apinotes +246 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVFAudio.h +5 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAnimation.h +52 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioSession.h +11 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVBase.h +264 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h +88 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h +1360 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSessionPreset.h +167 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.h +13 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMediaFormat.h +508 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataItem.h +1 -1
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerItem.h +31 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVSampleBufferDisplayLayer.h +18 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVCaptureDeviceDirectionCoordinator.h +113 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVCaptureEvent.h +82 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVCaptureEventInteraction.h +114 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVCaptureEventSound.h +50 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVError.h +51 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVInputPickerInteraction.h +93 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVInterstitialTimeRange.h +39 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVKit.apinotes +112 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVKit.h +110 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVKitDefines.h +79 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVKitTypes.h +54 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVLegibleMediaOptionsMenuController.h +193 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPictureInPictureController.h +271 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPictureInPictureController_AVSampleBufferDisplayLayerSupport.h +135 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPictureInPictureController_VideoCallSupport.h +66 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPlaybackRouteSelecting.h +46 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPlaybackSpeed.h +71 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPlaybackUserInterfaceControllable.h +551 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPlayerItem+AVKitAdditions.h +42 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPlayerViewController.h +704 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVRoutePickerView.h +186 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccount.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountCredential.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountStore.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountType.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreAudioTypes.framework/Headers/AudioSessionTypes.h +104 -0
- package/sdk/ios/System/Library/Frameworks/CoreAudioTypes.framework/Headers/CoreAudioBaseTypes.h +1621 -0
- package/sdk/ios/System/Library/Frameworks/CoreAudioTypes.framework/Headers/CoreAudioTypes.apinotes +42 -0
- package/sdk/ios/System/Library/Frameworks/CoreAudioTypes.framework/Headers/CoreAudioTypes.h +9 -0
- package/sdk/ios/System/Library/Frameworks/CoreAudioTypes.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBAttribute.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBCentralManager.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBCharacteristic.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBDescriptor.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBManager.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBPeer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBPeripheral.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBService.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBUUID.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSFetchRequest.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectID.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectModel.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreCoordinator.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreRequest.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFRunLoop.h +195 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFSocket.h +220 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h +501 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +3 -18
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconIdentityConstraint.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconRegion.h +2 -2
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLCircularRegion.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLGeocoder.h +2 -2
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLHeading.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager+CLVisitExtensions.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLPlacemark.h +2 -2
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLRegion.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLVisit.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMBase.h +443 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMFormatDescription.h +8 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMSync.h +996 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMTime.h +9 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CoreMedia.h +3 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFMessage.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFPayload.h +2 -2
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFReaderSession.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCReaderSession.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCellularData.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTTelephonyNetworkInfo.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFont.h +1811 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFontCollection.h +360 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFontManager.h +574 -17
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFontManagerErrors.h +109 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFrame.h +336 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFramesetter.h +203 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTGlyphInfo.h +264 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTLine.h +531 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTParagraphStyle.h +496 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTRubyAnnotation.h +326 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTRun.h +547 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTRunDelegate.h +213 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTStringAttributes.h +496 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTTextTab.h +158 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTTypesetter.h +286 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CoreText.h +80 -1
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/SFNTLayoutTypes.h +1833 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/SFNTTypes.h +482 -0
- package/sdk/ios/System/Library/Frameworks/DeviceDiscoveryUI.framework/Headers/DDDevicePickerViewController.h +41 -0
- package/sdk/ios/System/Library/Frameworks/DeviceDiscoveryUI.framework/Headers/DeviceDiscoveryUI.h +9 -0
- package/sdk/ios/System/Library/Frameworks/DeviceDiscoveryUI.framework/Headers/DeviceDiscoveryUIDefines.h +14 -0
- package/sdk/ios/System/Library/Frameworks/DeviceDiscoveryUI.framework/Modules/DeviceDiscoveryUI.swiftcrossimport/SwiftUI.swiftoverlay +4 -0
- package/sdk/ios/System/Library/Frameworks/DeviceDiscoveryUI.framework/Modules/module.modulemap +9 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +49 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h +2 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSRegularExpression.h +15 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSUbiquitousKeyValueStore.h +30 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKAchievement.h +3 -3
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKBasePlayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKChallenge.h +6 -6
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKGameCenterViewController.h +4 -4
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKLocalPlayer.h +6 -6
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKMatchmaker.h +2 -2
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKNotificationBanner.h +1 -1
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKPlayer.h +3 -3
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKSavedGame.h +2 -2
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKTurnBasedMatch.h +4 -4
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKTurnBasedMatchmakerViewController.h +3 -3
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKActivitySummary.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKActivitySummaryQuery.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKCategorySample.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKClinicalType.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKHealthStore.h +6 -6
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKObject.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKObjectType.h +5 -5
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKObserverQuery.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantity.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantitySample.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuery.h +14 -14
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKSample.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKSampleQuery.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKStatistics.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKStatisticsQuery.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKUnit.h +20 -20
- package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceObjC.h +1 -1
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageAnimation.h +2 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageDestination.h +2 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageMetadata.h +2 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageProperties.h +2 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageSource.h +2 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/ImageIOBase.h +6 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSBase.h +195 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSContext.h +245 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSContextRef.h +178 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSExport.h +151 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSManagedValue.h +81 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSObjectRef.h +755 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSStringRef.h +148 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSStringRefCF.h +60 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSTypedArray.h +180 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSValue.h +824 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSValueRef.h +555 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSVirtualMachine.h +92 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JavaScript.h +37 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JavaScriptCore.h +38 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/WebKitAvailability.h +36 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Modules/module.modulemap +8 -0
- package/sdk/ios/System/Library/Frameworks/MobileCoreServices.framework/Headers/UTType.h +19 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCAdvertiserAssistant.h +76 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCBrowserViewController.h +88 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCError.h +34 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCNearbyServiceAdvertiser.h +84 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCNearbyServiceBrowser.h +94 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCPeerID.h +37 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCSession.h +215 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MultipeerConnectivity.apinotes +5 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MultipeerConnectivity.h +15 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Modules/module.modulemap +7 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEHotspotHelper.h +1 -1
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEHotspotNetwork.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEmitterCell.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEmitterLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAGradientLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAReplicatorLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAScrollLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAShapeLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATextLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATiledLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATransformLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAValueFunction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/ModelIO.h +6 -6
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNAction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNAudioSource.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNCamera.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNConstraint.h +2 -2
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNGeometry.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNHitTest.h +2 -2
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNLight.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNMaterial.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNMaterialProperty.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNNode.h +4 -4
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNParametricGeometry.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNParticleSystem.h +2 -2
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNScene.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNTransaction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNView.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SceneKitDeprecated.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSLayoutManager.h +14 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSParagraphStyle.h +172 -27
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSText.h +59 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextContainer.h +13 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextList.h +63 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextStorage.h +10 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSToolbar+UIKitAdditions.h +142 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityConstants.h +20 -20
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAction.h +103 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h +6 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICommand.h +131 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIEvent.h +8 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFont.h +80 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFontDescriptor.h +191 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGeometry.h +259 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizer.h +9 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizerSubclass.h +5 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHoverGestureRecognizer.h +6 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIInteraction.h +37 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes +4248 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h +66 -102
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKitDefines.h +55 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILayoutGuide.h +62 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h +283 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuDisplayPreferences.h +27 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuElement.h +86 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuLeaf.h +68 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITouch.h +1 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITraitCollection.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIView.h +3 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Modules/module.modulemap +2 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/UIKitText.apinotes +135 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Modules/module.modulemap +8 -0
- package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTAdditions.h +167 -0
- package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTCoreTypes.h +1332 -0
- package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UniformTypeIdentifiers.apinotes +53 -0
- package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UniformTypeIdentifiers.h +18 -0
- package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/NSString+UserNotifications.h +19 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNError.h +29 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotification.h +27 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationAction.h +69 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationActionIcon.h +23 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationAttachment.h +44 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationAttributedMessageContext.h +24 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationCategory.h +82 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h +152 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationRequest.h +34 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationResponse.h +41 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationServiceExtension.h +27 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationSettings.h +90 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationSound.h +45 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationTrigger.h +64 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNUserNotificationCenter.h +107 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes +17 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.h +23 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WCDefines.h +14 -0
- package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WCError.h +38 -0
- package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WCSession.h +200 -0
- package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WCSessionFile.h +30 -0
- package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WCSessionUserInfoTransfer.h +22 -0
- package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WatchConnectivity.apinotes +19 -0
- package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WatchConnectivity.h +15 -0
- package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/NSAttributedString.h +120 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKBackForwardList.h +77 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKBackForwardListItem.h +54 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContentRuleList.h +37 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContentRuleListStore.h +47 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContentWorld.h +87 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContentWorldConfiguration.h +71 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContextMenuElementInfo.h +47 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKDOMNodeSnapshot.h +57 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKDataDetectorTypes.h +60 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKDownload.h +67 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKDownloadDelegate.h +146 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKError.h +71 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFindConfiguration.h +52 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFindResult.h +41 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFormInfo.h +63 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFoundation.h +72 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFrameInfo.h +62 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKHTTPCookieStore.h +108 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKImmersiveEnvironment.h +50 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKImmersiveEnvironmentDelegate.h +69 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKJSHandle.h +80 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKNavigation.h +45 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKNavigationAction.h +118 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKNavigationDelegate.h +219 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKNavigationResponse.h +60 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKOpenPanelParameters.h +47 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPDFConfiguration.h +49 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPreferences.h +117 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPreviewActionItem.h +39 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPreviewActionItemIdentifiers.h +38 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPreviewElementInfo.h +43 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKProcessPool.h +39 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKScriptMessage.h +64 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKScriptMessageHandler.h +52 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKScriptMessageHandlerWithReply.h +95 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKSecurityOrigin.h +57 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKSnapshotConfiguration.h +59 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKUIDelegate.h +316 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKURLSchemeHandler.h +61 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKURLSchemeTask.h +75 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKUserContentController.h +162 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKUserScript.h +76 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtension.h +237 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionAction.h +164 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionCommand.h +106 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionContext.h +790 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionController.h +255 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionControllerConfiguration.h +89 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionControllerDelegate.h +207 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionDataRecord.h +90 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionDataType.h +43 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionMatchPattern.h +175 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionMessagePort.h +99 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionPermission.h +95 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionTab.h +396 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionTabConfiguration.h +94 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionWindow.h +170 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionWindowConfiguration.h +87 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebView.h +800 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebViewConfiguration.h +275 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebpagePreferences.h +150 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebsiteDataRecord.h +90 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebsiteDataStore.h +137 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWindowFeatures.h +72 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WebKit.apinotes +204 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WebKit.h +93 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WebKitLegacy.h +3 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/WiFiAware.framework/Modules/WiFiAware.swiftmodule/arm64-apple-ios-simulator.swiftinterface +605 -0
- package/sdk/ios/System/Library/Frameworks/_DeviceDiscoveryUI_SwiftUI.framework/Modules/_DeviceDiscoveryUI_SwiftUI.swiftmodule/arm64-apple-ios-simulator.swiftinterface +79 -0
- package/sdk/ios/usr/include/MacTypes.h +8 -0
- package/sdk/ios/usr/include/objc/NSObjCRuntime.h +5 -0
- package/sdk/ios/wasm/include/fcntl.h +1 -0
- package/sdk/ios/wasm/include/pthread.h +2 -0
- package/sdk/ios/wasm/include/stdlib.h +1 -0
- package/sdk/native-hashes.json +11 -1
- package/skills/contrast/SKILL.md +4 -9
- package/skills/peach-perf/SKILL.md +3 -1
- package/skills/peach-perf/references/profiling.md +1 -1
- package/skills/peach-test/SKILL.md +20 -17
- package/skills/peach-test/references/detox.md +7 -7
- package/skills/peach-test/references/maestro.md +20 -18
- package/src/admitted-mac-build.ts +7 -0
- package/src/android-autolinking.ts +2 -2
- package/src/android-drawables.ts +5 -5
- package/src/android-string-value.ts +1 -1
- package/src/android-strings.ts +1 -1
- package/src/android-theme.ts +2 -2
- package/src/appPackageContract.ts +1 -1
- package/src/bridge-contract.ts +12 -16
- package/src/build-cache.ts +65 -0
- package/src/bundle-channel.mjs +69 -9
- package/src/capture-contract.ts +55 -17
- package/src/chromium-admission.ts +24 -21
- package/src/conformance-comparison-contract.ts +105 -40
- package/src/dev-bundle-resolution.ts +23 -10
- package/src/device-catalog.ts +35 -2
- package/src/disk-cleanup.ts +18 -8
- package/src/expo-autolinking.ts +24 -0
- package/src/expo-discovery-cache.ts +168 -23
- package/src/expo-native-workspace.ts +551 -191
- package/src/expo-swift-host.ts +711 -314
- package/src/expo-swift-ready.ts +39 -5
- package/src/expo-widget-assets.ts +2 -2
- package/src/expo-widgets-bundle.ts +56 -0
- package/src/expo-workspace-exclusion.ts +62 -0
- package/src/expoSwiftContract.ts +27 -4
- package/src/forked-script-contract.ts +3 -0
- package/src/home-paths.ts +10 -6
- package/src/host/bridge-host.ts +27 -0
- package/src/host/network-policy.ts +1 -1
- package/src/kotlin-app.ts +9 -11
- package/src/kotlin-host.ts +2 -2
- package/src/launchMetadataContract.ts +5 -0
- package/src/menu.ts +19 -5
- package/src/native-app-identity-project.ts +35 -49
- package/src/native-app-identity.ts +5 -6
- package/src/native-firebase-config.ts +10 -48
- package/src/native-prebuilt.ts +3 -2
- package/src/native-slices.ts +39 -0
- package/src/native-static-libraries.ts +73 -0
- package/src/nitro-adapter.lock.json +249 -249
- package/src/nitro-adapter.ts +16 -5
- package/src/nitro-bundle.ts +35 -16
- package/src/nitro-compile.ts +254 -16
- package/src/nitro-compiler-digest.ts +39 -0
- package/src/nitro-dependencies.ts +368 -28
- package/src/nitro-source.ts +432 -77
- package/src/nitro-superset.lock.json +27 -36
- package/src/nitro-superset.ts +6 -0
- package/src/nitroAdapterContract.ts +52 -0
- package/src/nitroContract.ts +40 -4
- package/src/numbered-lock.ts +2 -2
- package/src/one-native-app-accent.ts +32 -0
- package/src/one-widget-discovery.ts +6 -1
- package/src/one-widget-metadata.ts +2 -2
- package/src/portable-expo-contract.ts +103 -0
- package/src/portable-expo-workspace.ts +94 -0
- package/src/prepared-native-inventory.ts +93 -0
- package/src/prepared-xcode-phases.ts +194 -0
- package/src/process-group.ts +8 -15
- package/src/process-table.ts +117 -0
- package/src/react-native-bridge-modules.ts +240 -14
- package/src/react-native-coverage/native-typescript-parser.ts +11 -2
- package/src/react-native-coverage/verified-reach.ts +12 -6
- package/src/react-native-host-modules.ts +2 -0
- package/src/reap-browser.ts +13 -9
- package/src/retired-cache-directory.ts +34 -0
- package/src/runtime-assets.ts +1 -0
- package/src/screenshots/orchestrate.ts +4 -0
- package/src/screenshots/schema.ts +2 -2
- package/src/storageSnapshotContract.ts +9 -2
- package/src/stub-pattern-matcher.ts +53 -19
- package/src/swift-compile.ts +1011 -327
- package/src/swift-compiler-digest.ts +3 -0
- package/src/swift-coverage/indexing.ts +1 -1
- package/src/swift-coverage/xcode-asset-symbols.ts +72 -39
- package/src/swift-coverage/xcode-assets.ts +2 -1
- package/src/swift-cxx-declarations.ts +114 -130
- package/src/swift-cxx-standin.ts +3 -3
- package/src/swift-darwin-records.ts +88 -0
- package/src/swift-distribution.lock.json +15 -12
- package/src/swift-distribution.ts +25 -9
- package/src/swift-host.ts +443 -142
- package/src/swift-icu.ts +72 -4
- package/src/swift-link-roots.ts +2 -0
- package/src/swift-objc-compile.ts +312 -65
- package/src/swift-objc-import.ts +8 -1
- package/src/swift-objc-standin.ts +20 -2
- package/src/swift-package-manifest.ts +189 -57
- package/src/swift-package.ts +51 -0
- package/src/swift-packages.ts +117 -45
- package/src/swift-pdf-raster.ts +7 -4
- package/src/swift-project-user.ts +183 -0
- package/src/swift-reproducible.ts +26 -0
- package/src/swift-root-lock.ts +34 -62
- package/src/swift-shared-sdk.ts +232 -21
- package/src/swift-source-pods.ts +9 -2
- package/src/swift-standin-emit.ts +248 -7
- package/src/swift-standins.ts +130 -108
- package/src/swift-submit.ts +3 -0
- package/src/swift-toolchain.ts +109 -8
- package/src/swift-wasm-prune.ts +210 -55
- package/src/swiftContract.ts +14 -0
- package/src/swiftGuestImageContract.ts +113 -0
- package/src/turbo-bundle.ts +5 -8
- package/src/turbo-codegen-intake.ts +134 -0
- package/src/turbo-compile.ts +198 -21
- package/src/turbo-native-libraries.ts +98 -0
- package/src/turbo-runtime.lock.json +25 -18
- package/src/turbo-source.ts +1519 -147
- package/src/vite-plugin-one.ts +25 -3
- package/src/vite-plugin-swift.ts +5 -1
- package/src/vite-plugin.ts +40 -18
- package/src/worker-system-chunks.ts +103 -15
- package/src/worklets-babel.ts +50 -29
- package/src/xcode-header-search.ts +15 -5
- package/src/xcode-project.ts +444 -88
- package/src/xcode-target-members.ts +72 -63
- package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/scroll-drag-resample.d.ts +0 -44
package/src/swift-packages.ts
CHANGED
|
@@ -9,12 +9,15 @@
|
|
|
9
9
|
// stand-in for stay missing with their reason; the targets beside them still
|
|
10
10
|
// compile.
|
|
11
11
|
|
|
12
|
-
import {
|
|
12
|
+
import { execFile } from 'node:child_process'
|
|
13
13
|
import { createHash } from 'node:crypto'
|
|
14
14
|
import fs from 'node:fs'
|
|
15
15
|
import path from 'node:path'
|
|
16
|
+
import { setTimeout as sleep } from 'node:timers/promises'
|
|
17
|
+
import { promisify } from 'node:util'
|
|
16
18
|
import { cacheDir } from './home-paths'
|
|
17
19
|
import { tryAcquireNumberedLock } from './numbered-lock'
|
|
20
|
+
import { preparedSwiftCheckouts, preparedSwiftPin } from './prepared-xcode-phases'
|
|
18
21
|
import {
|
|
19
22
|
isSwiftNativeTranslationUnit,
|
|
20
23
|
swiftImplicitResourcePaths,
|
|
@@ -23,6 +26,8 @@ import {
|
|
|
23
26
|
type SwiftTargetDependency,
|
|
24
27
|
} from './swift-package'
|
|
25
28
|
import {
|
|
29
|
+
prepareSwiftPackageManifest,
|
|
30
|
+
SwiftManifestPreparationRequired,
|
|
26
31
|
swiftPackageManifest,
|
|
27
32
|
swiftProductDependency,
|
|
28
33
|
swiftTargetFiles,
|
|
@@ -132,6 +137,8 @@ const placeholderPackage = (pkg: LoadedPackage) =>
|
|
|
132
137
|
|
|
133
138
|
/** dependency checkouts belong to peach, isolated by the canonical app root. */
|
|
134
139
|
export function remoteSwiftCheckouts(root: string): string {
|
|
140
|
+
const prepared = preparedSwiftCheckouts(root)
|
|
141
|
+
if (prepared) return prepared
|
|
135
142
|
const key = createHash('sha256')
|
|
136
143
|
.update(fs.realpathSync(root))
|
|
137
144
|
.digest('hex')
|
|
@@ -173,7 +180,7 @@ const BINARY = 'is a binary framework'
|
|
|
173
180
|
// several unsupported targets, and fixing one must not reveal a hidden next one.
|
|
174
181
|
const blockers = (reasons: readonly string[][]): string[] => [...new Set(reasons.flat())]
|
|
175
182
|
|
|
176
|
-
interface Pin {
|
|
183
|
+
export interface Pin {
|
|
177
184
|
location: string
|
|
178
185
|
revision: string
|
|
179
186
|
}
|
|
@@ -223,7 +230,7 @@ function resolvedPins(data: unknown): ResolvedPin[] | null {
|
|
|
223
230
|
return out
|
|
224
231
|
}
|
|
225
232
|
|
|
226
|
-
function readPins(resolved: readonly string[]): Map<string, Pin> {
|
|
233
|
+
export function readPins(resolved: readonly string[]): Map<string, Pin> {
|
|
227
234
|
const out = new Map<string, Pin>()
|
|
228
235
|
const owners = new Map<string, string>()
|
|
229
236
|
for (const file of resolved) {
|
|
@@ -249,17 +256,24 @@ function readPins(resolved: readonly string[]): Map<string, Pin> {
|
|
|
249
256
|
}
|
|
250
257
|
|
|
251
258
|
const verified = new Set<string>()
|
|
259
|
+
const execFileAsync = promisify(execFile)
|
|
260
|
+
|
|
261
|
+
type Git = (cwd: string, ...args: string[]) => Promise<string>
|
|
252
262
|
|
|
253
263
|
// submodule paths that name a url in .gitmodules. a gitlink without an entry
|
|
254
264
|
// cannot resolve, so it is left out instead of failing the fetch.
|
|
255
|
-
function resolvableSubmodulePaths(
|
|
256
|
-
dir: string,
|
|
257
|
-
git: (cwd: string, ...args: string[]) => string,
|
|
258
|
-
): string[] {
|
|
265
|
+
async function resolvableSubmodulePaths(dir: string, git: Git): Promise<string[]> {
|
|
259
266
|
if (!fs.existsSync(path.join(dir, '.gitmodules'))) return []
|
|
260
267
|
let raw: string
|
|
261
268
|
try {
|
|
262
|
-
raw = git(
|
|
269
|
+
raw = await git(
|
|
270
|
+
dir,
|
|
271
|
+
'config',
|
|
272
|
+
'--file',
|
|
273
|
+
'.gitmodules',
|
|
274
|
+
'--get-regexp',
|
|
275
|
+
'^submodule\\.',
|
|
276
|
+
)
|
|
263
277
|
} catch {
|
|
264
278
|
return []
|
|
265
279
|
}
|
|
@@ -277,7 +291,7 @@ function resolvableSubmodulePaths(
|
|
|
277
291
|
.map((entry) => entry.path!)
|
|
278
292
|
if (named.length === 0) return []
|
|
279
293
|
const gitlinks = new Set(
|
|
280
|
-
git(dir, 'ls-files', '--stage', '--', ...named)
|
|
294
|
+
(await git(dir, 'ls-files', '--stage', '--', ...named))
|
|
281
295
|
.split('\n')
|
|
282
296
|
.filter((line) => line.startsWith('160000 '))
|
|
283
297
|
.map((line) => line.slice(line.indexOf('\t') + 1)),
|
|
@@ -288,27 +302,45 @@ function resolvableSubmodulePaths(
|
|
|
288
302
|
// a shallow checkout of exactly the pinned revision, reused while HEAD is it.
|
|
289
303
|
// submodules check out at the commits the pinned revision records, as xcode
|
|
290
304
|
// does; without this a package like secp256k1.swift leaves its C sources empty.
|
|
291
|
-
|
|
305
|
+
// git runs off the event loop and never prompts for credentials.
|
|
306
|
+
async function fetchCheckout(
|
|
307
|
+
checkouts: string,
|
|
308
|
+
identity: string,
|
|
309
|
+
pin: Pin,
|
|
310
|
+
signal: AbortSignal | undefined,
|
|
311
|
+
): Promise<void> {
|
|
292
312
|
const dir = path.join(checkouts, identity)
|
|
293
|
-
|
|
294
|
-
const
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
313
|
+
if (preparedSwiftPin(checkouts, identity, pin.location, pin.revision)) return
|
|
314
|
+
const key = checkoutKey(dir, pin)
|
|
315
|
+
const git: Git = async (cwd, ...args) =>
|
|
316
|
+
(
|
|
317
|
+
await execFileAsync('git', ['-C', cwd, ...args], {
|
|
318
|
+
encoding: 'utf8',
|
|
319
|
+
env: { ...process.env, GIT_TERMINAL_PROMPT: '0' },
|
|
320
|
+
signal,
|
|
321
|
+
})
|
|
322
|
+
).stdout.trim()
|
|
323
|
+
const lock = async () => {
|
|
324
|
+
let release = tryAcquireNumberedLock(`${dir}.lock`)
|
|
325
|
+
while (!release) {
|
|
326
|
+
await sleep(25, undefined, { signal })
|
|
327
|
+
release = tryAcquireNumberedLock(`${dir}.lock`)
|
|
328
|
+
}
|
|
329
|
+
return release
|
|
330
|
+
}
|
|
299
331
|
// an interrupted clone leaves a .git without a HEAD commit, which counts as no checkout
|
|
300
|
-
const head = (at = dir) => {
|
|
332
|
+
const head = async (at = dir) => {
|
|
301
333
|
if (!fs.existsSync(path.join(at, '.git'))) return ''
|
|
302
334
|
try {
|
|
303
|
-
return git(at, 'rev-parse', 'HEAD')
|
|
335
|
+
return await git(at, 'rev-parse', 'HEAD')
|
|
304
336
|
} catch {
|
|
305
337
|
return ''
|
|
306
338
|
}
|
|
307
339
|
}
|
|
308
340
|
// a verified pin stays verified only while HEAD is still it: requesting
|
|
309
341
|
// revisions A then B then A must refetch A, not return the B checkout.
|
|
310
|
-
if (verified.has(key) && head() === pin.revision) return
|
|
311
|
-
if (head() !== pin.revision) {
|
|
342
|
+
if (verified.has(key) && (await head()) === pin.revision) return
|
|
343
|
+
if ((await head()) !== pin.revision) {
|
|
312
344
|
// staging dirs of killed runs are never reused
|
|
313
345
|
for (const name of fs.readdirSync(checkouts)) {
|
|
314
346
|
if (!name.startsWith(`${identity}.tmp-`)) continue
|
|
@@ -323,19 +355,15 @@ function checkout(checkouts: string, identity: string, pin: Pin): string {
|
|
|
323
355
|
fs.rmSync(staging, { recursive: true, force: true })
|
|
324
356
|
fs.mkdirSync(staging, { recursive: true })
|
|
325
357
|
try {
|
|
326
|
-
git(staging, 'init', '-q')
|
|
327
|
-
git(staging, 'fetch', '-q', '--depth', '1', pin.location, pin.revision)
|
|
328
|
-
git(staging, 'checkout', '-q', 'FETCH_HEAD')
|
|
358
|
+
await git(staging, 'init', '-q')
|
|
359
|
+
await git(staging, 'fetch', '-q', '--depth', '1', pin.location, pin.revision)
|
|
360
|
+
await git(staging, 'checkout', '-q', 'FETCH_HEAD')
|
|
329
361
|
// the final dir changes only under a per-package lock, so the head check
|
|
330
362
|
// and the replacement are one step: a tree published by another run is
|
|
331
363
|
// kept as is and a stale publisher never removes it
|
|
332
|
-
|
|
333
|
-
while (!release) {
|
|
334
|
-
Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, 25)
|
|
335
|
-
release = tryAcquireNumberedLock(`${dir}.lock`)
|
|
336
|
-
}
|
|
364
|
+
const release = await lock()
|
|
337
365
|
try {
|
|
338
|
-
if (head() !== pin.revision) {
|
|
366
|
+
if ((await head()) !== pin.revision) {
|
|
339
367
|
const aside = `${dir}.tmp-old-${process.pid}-${Date.now()}`
|
|
340
368
|
if (fs.existsSync(dir)) fs.renameSync(dir, aside)
|
|
341
369
|
fs.renameSync(staging, dir)
|
|
@@ -365,21 +393,17 @@ function checkout(checkouts: string, identity: string, pin: Pin): string {
|
|
|
365
393
|
// stale gitlink without a .gitmodules entry (gifu's GifuDocs) stays an empty
|
|
366
394
|
// dir, and a .gitmodules entry whose path the tree has no gitlink for
|
|
367
395
|
// (apollo-ios's docs/renderer) is skipped, instead of failing the fetch.
|
|
368
|
-
|
|
369
|
-
while (!submoduleRelease) {
|
|
370
|
-
Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, 25)
|
|
371
|
-
submoduleRelease = tryAcquireNumberedLock(`${dir}.lock`)
|
|
372
|
-
}
|
|
396
|
+
const submoduleRelease = await lock()
|
|
373
397
|
try {
|
|
374
398
|
try {
|
|
375
|
-
git(dir, 'remote', 'set-url', 'origin', pin.location)
|
|
399
|
+
await git(dir, 'remote', 'set-url', 'origin', pin.location)
|
|
376
400
|
} catch {
|
|
377
|
-
git(dir, 'remote', 'add', 'origin', pin.location)
|
|
401
|
+
await git(dir, 'remote', 'add', 'origin', pin.location)
|
|
378
402
|
}
|
|
379
|
-
const submodules = resolvableSubmodulePaths(dir, git)
|
|
403
|
+
const submodules = await resolvableSubmodulePaths(dir, git)
|
|
380
404
|
if (submodules.length > 0) {
|
|
381
|
-
git(dir, 'submodule', 'sync', '--recursive', '-q')
|
|
382
|
-
git(
|
|
405
|
+
await git(dir, 'submodule', 'sync', '--recursive', '-q')
|
|
406
|
+
await git(
|
|
383
407
|
dir,
|
|
384
408
|
'submodule',
|
|
385
409
|
'update',
|
|
@@ -402,6 +426,26 @@ function checkout(checkouts: string, identity: string, pin: Pin): string {
|
|
|
402
426
|
submoduleRelease()
|
|
403
427
|
}
|
|
404
428
|
verified.add(key)
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
const checkoutKey = (dir: string, pin: Pin) => `${dir}\0${pin.revision}`
|
|
432
|
+
|
|
433
|
+
// the checkout prefetch fetched: resolution reads manifests synchronously, so
|
|
434
|
+
// a pin that was never fetched is a caller that skipped the prefetch. the
|
|
435
|
+
// verified set is per process and another run may have replaced the shared
|
|
436
|
+
// dir with another revision since, so the detached HEAD (the pinned sha after
|
|
437
|
+
// `checkout FETCH_HEAD`) must still be the pin.
|
|
438
|
+
function fetchedCheckout(checkouts: string, identity: string, pin: Pin): string {
|
|
439
|
+
const dir = path.join(checkouts, identity)
|
|
440
|
+
const head = path.join(dir, '.git', 'HEAD')
|
|
441
|
+
if (
|
|
442
|
+
!verified.has(checkoutKey(dir, pin)) ||
|
|
443
|
+
!fs.existsSync(head) ||
|
|
444
|
+
fs.readFileSync(head, 'utf8').trim() !== pin.revision
|
|
445
|
+
)
|
|
446
|
+
throw new Error(
|
|
447
|
+
`${identity} at ${pin.revision} was not fetched; await prefetchSwiftCheckouts first`,
|
|
448
|
+
)
|
|
405
449
|
return dir
|
|
406
450
|
}
|
|
407
451
|
|
|
@@ -417,15 +461,32 @@ interface LoadedPackage {
|
|
|
417
461
|
* build. run script phases read checkouts from disk, so they need them
|
|
418
462
|
* before the resolver runs for the compile.
|
|
419
463
|
*/
|
|
420
|
-
export function prefetchSwiftCheckouts(
|
|
464
|
+
export async function prefetchSwiftCheckouts(
|
|
421
465
|
rootDir: string,
|
|
422
466
|
resolved: readonly string[],
|
|
423
|
-
|
|
467
|
+
signal?: AbortSignal,
|
|
468
|
+
): Promise<void> {
|
|
424
469
|
const pins = resolved.length > 0 ? readPins(resolved) : null
|
|
425
470
|
if (!pins) return
|
|
426
471
|
const checkouts = remoteSwiftCheckouts(rootDir)
|
|
427
472
|
fs.mkdirSync(checkouts, { recursive: true })
|
|
428
|
-
for (const [identity, pin] of pins)
|
|
473
|
+
for (const [identity, pin] of pins)
|
|
474
|
+
await fetchCheckout(checkouts, identity, pin, signal)
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
export async function resolveSwiftPackagesAsync(
|
|
478
|
+
options: Parameters<typeof resolveSwiftPackages>[0],
|
|
479
|
+
): Promise<SwiftPackages> {
|
|
480
|
+
// evaluate only manifests reached by the graph; an unused broken package
|
|
481
|
+
// must not stop a build. restart with each newly cached manifest.
|
|
482
|
+
for (;;) {
|
|
483
|
+
try {
|
|
484
|
+
return resolveSwiftPackages({ ...options, requirePrepared: true })
|
|
485
|
+
} catch (error) {
|
|
486
|
+
if (!(error instanceof SwiftManifestPreparationRequired)) throw error
|
|
487
|
+
await prepareSwiftPackageManifest(error.dir)
|
|
488
|
+
}
|
|
489
|
+
}
|
|
429
490
|
}
|
|
430
491
|
|
|
431
492
|
/**
|
|
@@ -449,6 +510,7 @@ export function resolveSwiftPackages(options: {
|
|
|
449
510
|
* in that product's closure records the module as a client.
|
|
450
511
|
*/
|
|
451
512
|
owners?: readonly { module: string; products: readonly SwiftLinkedProduct[] }[]
|
|
513
|
+
requirePrepared?: boolean
|
|
452
514
|
}): SwiftPackages {
|
|
453
515
|
const { rootDir, resolved, products, localDirs } = options
|
|
454
516
|
const provided = options.provided ?? new Set<string>()
|
|
@@ -479,7 +541,11 @@ export function resolveSwiftPackages(options: {
|
|
|
479
541
|
if (cached !== undefined) return cached
|
|
480
542
|
let loaded: LoadedPackage | string
|
|
481
543
|
if (source.kind === 'local') {
|
|
482
|
-
loaded = {
|
|
544
|
+
loaded = {
|
|
545
|
+
source: key,
|
|
546
|
+
remote: false,
|
|
547
|
+
manifest: swiftPackageManifest(key, undefined, options.requirePrepared),
|
|
548
|
+
}
|
|
483
549
|
} else {
|
|
484
550
|
const identity = swiftPackageIdentity(source.url)
|
|
485
551
|
const pin = pins?.get(identity)
|
|
@@ -492,7 +558,11 @@ export function resolveSwiftPackages(options: {
|
|
|
492
558
|
loaded = {
|
|
493
559
|
source: source.url,
|
|
494
560
|
remote: true,
|
|
495
|
-
manifest: swiftPackageManifest(
|
|
561
|
+
manifest: swiftPackageManifest(
|
|
562
|
+
fetchedCheckout(checkouts, identity, pin),
|
|
563
|
+
undefined,
|
|
564
|
+
options.requirePrepared,
|
|
565
|
+
),
|
|
496
566
|
}
|
|
497
567
|
}
|
|
498
568
|
}
|
|
@@ -520,7 +590,9 @@ export function resolveSwiftPackages(options: {
|
|
|
520
590
|
// guest targets build for the simulated device from the declared manifest;
|
|
521
591
|
// host targets (macros) build for the machine running the compiler.
|
|
522
592
|
const manifestFor = (pkg: LoadedPackage, side: BuildSide) =>
|
|
523
|
-
side === 'guest'
|
|
593
|
+
side === 'guest'
|
|
594
|
+
? pkg.manifest
|
|
595
|
+
: swiftPackageManifest(pkg.manifest.dir, hostPlatform, options.requirePrepared)
|
|
524
596
|
const preservePackage = (
|
|
525
597
|
pkg: LoadedPackage,
|
|
526
598
|
roots: readonly string[],
|
package/src/swift-pdf-raster.ts
CHANGED
|
@@ -11,7 +11,8 @@ import os from 'node:os'
|
|
|
11
11
|
import path from 'node:path'
|
|
12
12
|
import { cacheDir } from './home-paths'
|
|
13
13
|
|
|
14
|
-
// draws the pdf's first page at 3x into a transparent png.
|
|
14
|
+
// draws the pdf's first page at 3x into a transparent png. a bitmap context is
|
|
15
|
+
// already y-up like the pdf page, so only scale. the media box
|
|
15
16
|
// is the point size (actool's 1x), so 3x pixels over scale 3 is that size.
|
|
16
17
|
const RASTER_SWIFT = `import Foundation
|
|
17
18
|
import CoreGraphics
|
|
@@ -29,8 +30,7 @@ if width <= 0 || height <= 0 || width > 12000 || height > 12000 { exit(3) }
|
|
|
29
30
|
let space = CGColorSpaceCreateDeviceRGB()
|
|
30
31
|
guard let ctx = CGContext(data: nil, width: width, height: height, bitsPerComponent: 8, bytesPerRow: 0, space: space, bitmapInfo: CGImageAlphaInfo.premultipliedLast.rawValue) else { exit(4) }
|
|
31
32
|
ctx.interpolationQuality = .high
|
|
32
|
-
ctx.
|
|
33
|
-
ctx.scaleBy(x: scale, y: -scale)
|
|
33
|
+
ctx.scaleBy(x: scale, y: scale)
|
|
34
34
|
ctx.translateBy(x: -box.origin.x, y: -box.origin.y)
|
|
35
35
|
ctx.drawPDFPage(page)
|
|
36
36
|
guard let image = ctx.makeImage() else { exit(5) }
|
|
@@ -85,7 +85,10 @@ function rasterBinary(): string {
|
|
|
85
85
|
*/
|
|
86
86
|
export function rasterizePdfFile(diskPath: string, pdfSha256: string): { bytes: Buffer } {
|
|
87
87
|
const binary = rasterBinary()
|
|
88
|
-
const cached = path.join(
|
|
88
|
+
const cached = path.join(
|
|
89
|
+
cacheDir(),
|
|
90
|
+
`swift-pdf-png-${createHash('sha256').update(RASTER_SWIFT).digest('hex').slice(0, 16)}-${pdfSha256}.png`,
|
|
91
|
+
)
|
|
89
92
|
try {
|
|
90
93
|
return { bytes: fs.readFileSync(cached) }
|
|
91
94
|
} catch {
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { execFileSync } from 'node:child_process'
|
|
2
|
+
import {
|
|
3
|
+
chmodSync,
|
|
4
|
+
existsSync,
|
|
5
|
+
mkdirSync,
|
|
6
|
+
readdirSync,
|
|
7
|
+
readFileSync,
|
|
8
|
+
realpathSync,
|
|
9
|
+
rmSync,
|
|
10
|
+
statSync,
|
|
11
|
+
} from 'node:fs'
|
|
12
|
+
import path from 'node:path'
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* the unprivileged user the compilers that read project sources run as, and
|
|
16
|
+
* the environment they start from. a project's manifests, macros and build
|
|
17
|
+
* products execute inside those compilers, so the host decides what they can
|
|
18
|
+
* see: it hands over an environment without its own credentials and a user
|
|
19
|
+
* that cannot read the host's processes.
|
|
20
|
+
*/
|
|
21
|
+
export interface SwiftProjectUser {
|
|
22
|
+
uid: number
|
|
23
|
+
gid: number
|
|
24
|
+
env: NodeJS.ProcessEnv
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** the spawn options of one project compile: identity, home, temporary and xdg directories, swiftpm caches. */
|
|
28
|
+
export interface SwiftProjectProcess {
|
|
29
|
+
uid: number
|
|
30
|
+
gid: number
|
|
31
|
+
env: Record<string, string>
|
|
32
|
+
cacheOptions: string[]
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// takes ownership of the build root and gives the user a fresh home beside it,
|
|
36
|
+
// outside the files a project writes, with its own swiftpm caches. -P never
|
|
37
|
+
// follows a link a previous project left out of the tree.
|
|
38
|
+
export function prepareSwiftProjectProcess(
|
|
39
|
+
root: string,
|
|
40
|
+
user: SwiftProjectUser,
|
|
41
|
+
): SwiftProjectProcess {
|
|
42
|
+
const home = `${root}.project-home`
|
|
43
|
+
rmSync(home, { recursive: true, force: true })
|
|
44
|
+
const tmp = path.join(home, 'tmp')
|
|
45
|
+
const swiftpm = path.join(home, 'swiftpm')
|
|
46
|
+
mkdirSync(tmp, { recursive: true })
|
|
47
|
+
const caches = ['cache', 'config', 'security'].map((name) => path.join(swiftpm, name))
|
|
48
|
+
for (const directory of caches) mkdirSync(directory, { recursive: true })
|
|
49
|
+
execFileSync('chown', ['-R', '-P', `${user.uid}:${user.gid}`, root, home])
|
|
50
|
+
// other users' processes in the container cannot enter the tree
|
|
51
|
+
chmodSync(root, 0o700)
|
|
52
|
+
chmodSync(home, 0o700)
|
|
53
|
+
return {
|
|
54
|
+
uid: user.uid,
|
|
55
|
+
gid: user.gid,
|
|
56
|
+
env: {
|
|
57
|
+
HOME: home,
|
|
58
|
+
TMPDIR: tmp,
|
|
59
|
+
XDG_CONFIG_HOME: path.join(home, '.config'),
|
|
60
|
+
XDG_CACHE_HOME: path.join(home, '.cache'),
|
|
61
|
+
XDG_DATA_HOME: path.join(home, '.local', 'share'),
|
|
62
|
+
},
|
|
63
|
+
cacheOptions: [
|
|
64
|
+
...['cache', 'config', 'security'].flatMap((name) => [
|
|
65
|
+
`--${name}-path`,
|
|
66
|
+
path.join(swiftpm, name),
|
|
67
|
+
]),
|
|
68
|
+
'--disable-keychain',
|
|
69
|
+
],
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// kill(-1) as the project user signals every process that user owns but the
|
|
74
|
+
// caller, and fails only when there is none. nothing the project started can
|
|
75
|
+
// change the tree once this returns.
|
|
76
|
+
export function endSwiftProjectProcesses(user: SwiftProjectUser): void {
|
|
77
|
+
execFileSync('sh', ['-c', 'kill -s KILL -- -1 2>/dev/null || true'], {
|
|
78
|
+
uid: user.uid,
|
|
79
|
+
gid: user.gid,
|
|
80
|
+
})
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// the real path of a file the host is about to read as itself: inside the build
|
|
84
|
+
// root and owned by the project user, so a link or hard link a project planted
|
|
85
|
+
// cannot make the host read, and publish, one of its own files.
|
|
86
|
+
export function projectOutputFile(
|
|
87
|
+
root: string,
|
|
88
|
+
file: string,
|
|
89
|
+
user: SwiftProjectUser,
|
|
90
|
+
): string {
|
|
91
|
+
const real = realpathSync(file)
|
|
92
|
+
const base = realpathSync(root)
|
|
93
|
+
const stat = statSync(real)
|
|
94
|
+
if (!real.startsWith(base + path.sep) || !stat.isFile() || stat.uid !== user.uid) {
|
|
95
|
+
throw new Error(`swift-compile: project output ${file} is not a file of its build`)
|
|
96
|
+
}
|
|
97
|
+
return real
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// removes every link in the build root outside `.build`, before the host
|
|
101
|
+
// writes or reads files there as itself: a project's link at a path the host
|
|
102
|
+
// writes would otherwise redirect that write, or the read that follows, at a
|
|
103
|
+
// host file. `.build` is the compilers' own tree and the host reads one
|
|
104
|
+
// verified file from it. the `.peach-modules-*` directories are the host's own
|
|
105
|
+
// links to its modules; the host rebuilds them when absent.
|
|
106
|
+
export function removeProjectLinks(root: string): void {
|
|
107
|
+
const pending = [root]
|
|
108
|
+
for (let directory = pending.pop(); directory; directory = pending.pop()) {
|
|
109
|
+
for (const entry of readdirSync(directory, { withFileTypes: true })) {
|
|
110
|
+
const full = path.join(directory, entry.name)
|
|
111
|
+
if (directory === root && entry.name === '.build') continue
|
|
112
|
+
if (directory === root && entry.name.startsWith('.peach-modules-')) {
|
|
113
|
+
rmSync(full, { recursive: true, force: true })
|
|
114
|
+
} else if (entry.isSymbolicLink()) rmSync(full)
|
|
115
|
+
else if (entry.isDirectory()) pending.push(full)
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// whether a process owned by the project user still exists. a zombie holds no
|
|
121
|
+
// memory or files and only waits for its parent, so it does not count.
|
|
122
|
+
function projectProcessesRemain(user: SwiftProjectUser): boolean {
|
|
123
|
+
for (const entry of readdirSync('/proc')) {
|
|
124
|
+
if (!/^\d+$/.test(entry)) continue
|
|
125
|
+
try {
|
|
126
|
+
if (statSync(`/proc/${entry}`).uid !== user.uid) continue
|
|
127
|
+
const stat = readFileSync(`/proc/${entry}/stat`, 'utf8')
|
|
128
|
+
if (stat.slice(stat.lastIndexOf(')') + 2, stat.lastIndexOf(')') + 3) !== 'Z')
|
|
129
|
+
return true
|
|
130
|
+
} catch {
|
|
131
|
+
// the process exited between the listing and the read
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
return false
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
// the directories any user can create files in, outside the build root.
|
|
138
|
+
const SHARED_TEMPORARY_DIRECTORIES = ['/tmp', '/var/tmp', '/dev/shm']
|
|
139
|
+
|
|
140
|
+
// returns the container to the state before a project's compilers ran: no
|
|
141
|
+
// process of the project user, nothing it owns in the build root, its home or
|
|
142
|
+
// the shared temporary directories. the next project's compilers run as the
|
|
143
|
+
// same user, so whatever this leaves would be theirs to read or build into.
|
|
144
|
+
// the host runs it while no project process is alive, so removing as itself
|
|
145
|
+
// follows no link a project can still change.
|
|
146
|
+
export function resetSwiftProjectState(root: string, user: SwiftProjectUser): void {
|
|
147
|
+
for (let attempt = 0; projectProcessesRemain(user); attempt++) {
|
|
148
|
+
if (attempt === 50) {
|
|
149
|
+
throw new Error('swift-compile: project processes would not end')
|
|
150
|
+
}
|
|
151
|
+
endSwiftProjectProcesses(user)
|
|
152
|
+
Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, 20)
|
|
153
|
+
}
|
|
154
|
+
for (const entry of readdirSync(root)) {
|
|
155
|
+
rmSync(path.join(root, entry), { recursive: true, force: true })
|
|
156
|
+
}
|
|
157
|
+
rmSync(`${root}.project-home`, { recursive: true, force: true })
|
|
158
|
+
execFileSync('find', [
|
|
159
|
+
...SHARED_TEMPORARY_DIRECTORIES.filter((directory) => existsSync(directory)),
|
|
160
|
+
'-xdev',
|
|
161
|
+
'-ignore_readdir_race',
|
|
162
|
+
'-user',
|
|
163
|
+
String(user.uid),
|
|
164
|
+
'-delete',
|
|
165
|
+
])
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
// runs one project build on a state no earlier project touched and leaves none
|
|
169
|
+
// behind. without a project user the host runs the compilers itself and there
|
|
170
|
+
// is nothing to reset.
|
|
171
|
+
export async function withFreshSwiftProjectState<T>(
|
|
172
|
+
root: string,
|
|
173
|
+
user: SwiftProjectUser | undefined,
|
|
174
|
+
work: () => Promise<T>,
|
|
175
|
+
): Promise<T> {
|
|
176
|
+
if (!user) return work()
|
|
177
|
+
resetSwiftProjectState(root, user)
|
|
178
|
+
try {
|
|
179
|
+
return await work()
|
|
180
|
+
} finally {
|
|
181
|
+
resetSwiftProjectState(root, user)
|
|
182
|
+
}
|
|
183
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { realpathSync } from 'node:fs'
|
|
2
|
+
import os from 'node:os'
|
|
3
|
+
|
|
4
|
+
// a wasm names its inputs by the paths they compiled from, so its bytes would
|
|
5
|
+
// depend on the host user, cache directory and checkout path. every build maps
|
|
6
|
+
// those roots to fixed names in swiftc and clang (the last matching map wins,
|
|
7
|
+
// so the home directory comes first and the specific roots after it). the maps
|
|
8
|
+
// cover debug info, __FILE__ and coverage paths alike.
|
|
9
|
+
export function swiftReproducibleBuildFlags(
|
|
10
|
+
roots: readonly (readonly [root: string, name: string])[],
|
|
11
|
+
): string[] {
|
|
12
|
+
return [[os.homedir(), 'home'] as const, ...roots]
|
|
13
|
+
.flatMap(([root, name]) =>
|
|
14
|
+
[...new Set([root, realpathSync(root)])].map((from) => `${from}=/peach/${name}`),
|
|
15
|
+
)
|
|
16
|
+
.flatMap((map) => [
|
|
17
|
+
'-Xswiftc',
|
|
18
|
+
'-file-prefix-map',
|
|
19
|
+
'-Xswiftc',
|
|
20
|
+
map,
|
|
21
|
+
'-Xcc',
|
|
22
|
+
`-ffile-prefix-map=${map}`,
|
|
23
|
+
'-Xcxx',
|
|
24
|
+
`-ffile-prefix-map=${map}`,
|
|
25
|
+
])
|
|
26
|
+
}
|