peachsim 0.1.2305 → 0.1.2363
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 +5 -0
- package/cli/cdp.ts +81 -0
- package/cli/cloud-box-artifact.ts +6 -1
- package/cli/cloud-client.ts +19 -0
- package/cli/command-registry.ts +1 -0
- package/cli/commands/box/bundle-plane.ts +28 -4
- package/cli/commands/box.ts +13 -8
- package/cli/commands/canvas.ts +752 -0
- package/cli/commands/cleanup.ts +2 -0
- package/cli/commands/control.ts +22 -6
- package/cli/commands/cpu-profile.ts +1 -80
- package/cli/commands/debug.ts +73 -5
- package/cli/commands/flow.ts +1 -1
- package/cli/commands/inspect/actions.ts +3 -1
- package/cli/commands/inspect/core.ts +18 -5
- package/cli/commands/inspect/settling.ts +20 -19
- package/cli/commands/inspect.ts +24 -14
- package/cli/commands/map.ts +31 -8
- package/cli/commands/platform.ts +89 -7
- package/cli/commands/serve.ts +66 -4
- package/cli/commands/shell-url.ts +25 -5
- package/cli/commands/task-trace.ts +234 -0
- package/cli/dev-build-freshness.ts +151 -49
- package/cli/drivers/linux-cocoapods.lock.json +303 -0
- package/cli/drivers/linux-cocoapods.ts +99 -0
- package/cli/drivers/playwright.ts +1 -5
- package/cli/internal-child-contract.ts +1 -0
- package/cli/internal-child.ts +6 -0
- package/cli/main.ts +6 -0
- package/cli/outbound-endpoints.ts +35 -2
- package/cli/output-redaction.ts +1 -1
- package/cli/remote-metro.ts +109 -0
- package/cli/task-trace.ts +166 -0
- package/cli/taskTraceContract.ts +53 -0
- package/cli/ws-bridge.ts +11 -4
- package/detox/gestures.ts +4 -4
- package/detox/index.ts +10 -3
- 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 +15224 -9251
- 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 +2 -2
- package/dist-lib/config.mjs +2 -2
- package/dist-lib/detox/index.cjs +79 -55
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +12523 -7211
- package/dist-lib/expo-swift-metadata.cjs +3 -1
- package/dist-lib/expo-swift-metadata.mjs +3 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +12629 -8646
- package/dist-lib/host/fetch-proxy-handler.cjs +432 -206
- 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 +17 -3
- package/dist-lib/index.cjs +2188 -805
- 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 +14 -12
- 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 +2177 -791
- package/dist-lib/native-app-identity-project.cjs +1372 -336
- package/dist-lib/native-app-identity-project.mjs +1480 -437
- package/dist-lib/native-app-identity.cjs +11 -1
- package/dist-lib/native-app-identity.mjs +11 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.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 +33 -26
- package/dist-lib/public-origins-lib.json +219 -124
- package/dist-lib/react-native-host-modules.cjs +26 -2
- package/dist-lib/react-native-host-modules.mjs +24 -2
- package/dist-lib/reap-browser.cjs +2 -2
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +42 -28
- package/dist-lib/sdk.mjs +42 -28
- package/dist-lib/skills.cjs +14042 -9679
- package/dist-lib/swift-compile.cjs +2066 -1691
- package/dist-lib/swift-compile.mjs +1942 -1566
- package/dist-lib/swift-package.cjs +18 -10
- package/dist-lib/swift-package.mjs +18 -10
- package/dist-lib/swift-submit.cjs +2 -2
- package/dist-lib/swift-submit.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +20 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +5345 -3573
- package/dist-lib/vite.cjs +2891 -2523
- package/dist-lib/worklet-executable.cjs +36 -10
- package/dist-lib/worklet-executable.mjs +36 -10
- package/dist-types/packages/peach-compat/src/stubs/native-seams/react-native-gesture-handler.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/cli-companion.d.ts +0 -1
- package/dist-types/packages/peach-engine/src/engine/android-stretch-effect.d.ts +0 -8
- package/dist-types/packages/peach-engine/src/engine/animated-driven-style.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/engine/animated.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/engine/animation-graph.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/engine/audioContract.d.ts +14 -0
- package/dist-types/packages/peach-engine/src/engine/canvaskit-api.d.ts +7 -4
- package/dist-types/packages/peach-engine/src/engine/core-layout-program.d.ts +19 -0
- package/dist-types/packages/peach-engine/src/engine/core-layout-transition.d.ts +31 -0
- package/dist-types/packages/peach-engine/src/engine/debug-channels.d.ts +86 -0
- package/dist-types/packages/peach-engine/src/engine/fiber-debug-metadata.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/generated/node-kind-contract.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/engine/glass-material.d.ts +3 -2
- package/dist-types/packages/peach-engine/src/engine/host-composite.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +5 -2
- package/dist-types/packages/peach-engine/src/engine/inspect-info.d.ts +0 -1
- package/dist-types/packages/peach-engine/src/engine/layout-animation-owner.d.ts +60 -0
- package/dist-types/packages/peach-engine/src/engine/liquid-glass-rect.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +8 -8
- package/dist-types/packages/peach-engine/src/engine/lottie-runtime.d.ts +4 -6
- package/dist-types/packages/peach-engine/src/engine/lottie-types.d.ts +14 -28
- package/dist-types/packages/peach-engine/src/engine/native-animation-driver.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/engine/native-animation-graph.d.ts +8 -10
- package/dist-types/packages/peach-engine/src/engine/native-layout.d.ts +8 -1
- package/dist-types/packages/peach-engine/src/engine/native-node-drive.d.ts +7 -0
- package/dist-types/packages/peach-engine/src/engine/native-node-geometry.d.ts +34 -0
- package/dist-types/packages/peach-engine/src/engine/native-node-record.d.ts +62 -0
- package/dist-types/packages/peach-engine/src/engine/native-node-style-input.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/engine/native-paint.d.ts +95 -0
- package/dist-types/packages/peach-engine/src/engine/{scroll-range.d.ts → native-scroll-geometry.d.ts} +5 -0
- package/dist-types/packages/peach-engine/src/engine/{scroll-platform.d.ts → native-scroll-personality.d.ts} +58 -72
- package/dist-types/packages/peach-engine/src/engine/native-scroll-tracker.d.ts +40 -0
- package/dist-types/packages/peach-engine/src/engine/native-style-store.d.ts +161 -0
- package/dist-types/packages/peach-engine/src/engine/native-text-style.d.ts +56 -0
- package/dist-types/packages/peach-engine/src/engine/native-trace.d.ts +18 -0
- package/dist-types/packages/peach-engine/src/engine/nativePaintContract.d.ts +68 -0
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +53 -112
- package/dist-types/packages/peach-engine/src/engine/paint-boundary-types.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/engine/portals.d.ts +20 -0
- package/dist-types/packages/peach-engine/src/engine/render-damage.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/rn-spring.d.ts +2 -9
- package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +201 -66
- package/dist-types/packages/peach-engine/src/engine/scroll-momentum-math.d.ts +10 -3
- package/dist-types/packages/peach-engine/src/engine/scroll.d.ts +5 -11
- package/dist-types/packages/peach-engine/src/engine/shell-owned-values.d.ts +8 -1
- package/dist-types/packages/peach-engine/src/engine/style-schema.d.ts +296 -0
- package/dist-types/packages/peach-engine/src/engine/text-line-break.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/text-metric-policy.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/engine/text-nested.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/text-paint-receipt.d.ts +2 -3
- package/dist-types/packages/peach-engine/src/engine/text-paint.d.ts +4 -1
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +18 -26
- package/dist-types/packages/peach-engine/src/engine/visible-frame.d.ts +1 -2
- package/dist-types/packages/peach-engine/src/engine/yoga-layout.d.ts +4 -2
- package/dist-types/packages/peach-engine/src/ios/apps/canvas-map-data.d.ts +40 -2
- package/dist-types/packages/peach-engine/src/ios/aux-home-scene.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/kernel/kernel.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/observability/types.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/permissions/system-permission-types.d.ts +2 -3
- package/dist-types/packages/peach-engine/src/platform/android-back-panel.d.ts +15 -55
- package/dist-types/packages/peach-engine/src/platform/personality.d.ts +110 -48
- package/dist-types/packages/peach-engine/src/react-native/gesture-touch-metadata.d.ts +14 -0
- package/dist-types/packages/peach-engine/src/react-native/layout-animation.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/remote-stream/client-config.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +9 -3
- package/dist-types/packages/peach-engine/src/render-worker/accessibilityHostContract.d.ts +65 -0
- package/dist-types/packages/peach-engine/src/render-worker/aux-surface-types.d.ts +33 -1
- 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-content-readyContract.d.ts +10 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-gpu.d.ts +5 -1
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +81 -9
- package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/layer-claims.d.ts +116 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/layer-fields.d.ts +57 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/layer-tree.d.ts +100 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/presentation-frame-layers.d.ts +42 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/presentation-layers.d.ts +49 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/render-tree.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/transition-program.d.ts +65 -0
- package/dist-types/packages/peach-engine/src/render-worker/gesture-arbitration-native.d.ts +17 -7
- package/dist-types/packages/peach-engine/src/render-worker/gesture-seam-protocol.d.ts +8 -1
- package/dist-types/packages/peach-engine/src/render-worker/graph-linked-value.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +32 -2
- package/dist-types/packages/peach-engine/src/render-worker/native-widgetContract.d.ts +35 -3
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +27 -3
- package/dist-types/packages/peach-engine/src/render-worker/scroll-mirror.d.ts +4 -3
- package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +14 -12
- package/dist-types/packages/peach-engine/src/render-worker/shell-tree-wire.d.ts +23 -3
- package/dist-types/packages/peach-engine/src/render-worker/test-bridge-protocol.d.ts +3 -2
- package/dist-types/packages/peach-engine/src/render-worker/text-inputContract.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/render-worker/tree-sync-port.d.ts +9 -0
- package/dist-types/packages/peach-engine/src/render-worker/webgpu-frame-transaction.d.ts +7 -2
- package/dist-types/packages/peach-engine/src/render-worker/webview-capture-protocol.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/worker-input-runtime.d.ts +4 -6
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +8 -13
- package/dist-types/packages/peach-engine/src/render-worker/worklet-wire.d.ts +9 -24
- package/dist-types/packages/peach-engine/src/settings/device-spec-bus.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/settings/devices.d.ts +3 -0
- package/dist-types/packages/peach-globals/src/electronBridgeContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/globalsContract.d.ts +33 -1
- package/dist-types/packages/peach-globals/src/imagePickerBridgeContract.d.ts +0 -1
- package/dist-types/packages/peach-globals/src/index.d.ts +1 -1
- package/dist-types/packages/peach-globals/src/lockstepCaptureBridgeContract.d.ts +7 -0
- package/dist-types/packages/peach-globals/src/nativeSurfaceContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/nodeContract.d.ts +3 -0
- package/dist-types/packages/peach-globals/src/performanceBridgeContract.d.ts +3 -1
- package/dist-types/packages/peach-globals/src/secure-item-store.d.ts +2 -1
- package/dist-types/packages/peach-globals/src/testBridgeContract.d.ts +11 -0
- package/dist-types/packages/peach-globals/src/timelineBridgeContract.d.ts +2 -1
- package/dist-types/packages/peach-globals/src/webViewBridgeContract.d.ts +65 -0
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +24 -1
- package/dist-types/packages/peach-kit/src/internal.d.ts +2 -1
- package/dist-types/packages/peach-kit/src/runtime.d.ts +2 -2
- package/dist-types/packages/peach-kit/src/transitions/screen-transition-math.d.ts +29 -4
- package/dist-types/packages/peach-kit/src/ui/hosting-safe-area.d.ts +1 -0
- package/dist-types/packages/peach-kit/src/ui/{popover-placement.d.ts → native-popover.d.ts} +13 -8
- package/dist-types/packages/peach-kit/src/ui/native-tab-selection.d.ts +39 -0
- package/dist-types/packages/peach-kit/src/ui/presentationContract.d.ts +21 -0
- package/dist-types/packages/peach-kit/src/ui/swift-layout-contract.d.ts +33 -0
- package/java-platform/licenses/android.txt +4 -0
- package/java-platform/licenses/jzlib.txt +28 -0
- package/java-platform/licenses/openjdk.txt +11 -2
- package/kotlin/README.md +5 -2
- package/kotlin/fork/NOTICE +7 -1
- package/kotlin/sdk.tar.gz +0 -0
- package/kotlin/toolchain.json +9 -9
- package/node-runtime.d.json.ts +4 -0
- package/node-runtime.json +1 -0
- package/package.json +4 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/AddressBook.framework/Headers/ABAddressBook.h +109 -0
- package/sdk/ios/System/Library/Frameworks/AddressBook.framework/Headers/ABGroup.h +41 -0
- package/sdk/ios/System/Library/Frameworks/AddressBook.framework/Headers/ABMultiValue.h +56 -0
- package/sdk/ios/System/Library/Frameworks/AddressBook.framework/Headers/ABPerson.h +208 -0
- package/sdk/ios/System/Library/Frameworks/AddressBook.framework/Headers/ABRecord.h +60 -0
- package/sdk/ios/System/Library/Frameworks/AddressBook.framework/Headers/ABSource.h +49 -0
- package/sdk/ios/System/Library/Frameworks/AddressBook.framework/Headers/AddressBook.h +53 -0
- package/sdk/ios/System/Library/Frameworks/AddressBook.framework/Headers/AddressBookDefines.h +24 -0
- package/sdk/ios/System/Library/Frameworks/AddressBook.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Modules/module.modulemap +13 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/CoreML.apinotes +95 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/CoreML.h +90 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLAllComputeDevices.h +30 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLArrayBatchProvider.h +33 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLBatchProvider.h +28 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLCPUComputeDevice.h +23 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLComputeDeviceProtocol.h +26 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLComputePlan.h +106 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLComputePlanCost.h +29 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLComputePlanDeviceUsage.h +29 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLCustomLayer.h +79 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLCustomModel.h +53 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLDictionaryConstraint.h +29 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLDictionaryFeatureProvider.h +39 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLExport.h +13 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLFeatureDescription.h +66 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLFeatureProvider.h +27 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLFeatureType.h +44 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLFeatureValue+MLImageConversion.h +96 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLFeatureValue.h +92 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLGPUComputeDevice.h +28 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLImageConstraint.h +40 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLImageSize.h +22 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLImageSizeConstraint.h +30 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLImageSizeConstraintType.h +19 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLKey.h +35 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLMetricKey.h +37 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModel+MLComputeDevice.h +30 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModel+MLModelCompilation.h +62 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModel+MLState.h +106 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModel.h +130 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelAsset.h +121 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelCollection.h +70 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelCollectionEntry.h +72 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelConfiguration.h +97 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelDescription.h +83 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelError.h +114 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelMetadataKeys.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelStructure.h +70 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelStructureNeuralNetwork.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelStructureNeuralNetworkLayer.h +35 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelStructurePipeline.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelStructureProgram.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelStructureProgramArgument.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelStructureProgramBinding.h +36 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelStructureProgramBlock.h +36 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelStructureProgramFunction.h +34 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelStructureProgramNamedValueType.h +33 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelStructureProgramOperation.h +38 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelStructureProgramValue.h +26 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelStructureProgramValueType.h +26 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLMultiArray.h +316 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLMultiArrayConstraint.h +34 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLMultiArrayShapeConstraint.h +28 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLMultiArrayShapeConstraintType.h +19 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLNeuralEngineComputeDevice.h +26 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLNumericConstraint.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLOptimizationHints.h +45 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLParameterDescription.h +33 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLParameterKey.h +85 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLPredictionOptions.h +94 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLReshapeFrequencyHint.h +18 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLSequence.h +38 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLSequenceConstraint.h +30 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLSpecializationStrategy.h +17 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLState.h +64 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLStateConstraint.h +30 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLTask.h +56 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLUpdateContext.h +41 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLUpdateProgressEvent.h +25 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLUpdateProgressHandlers.h +34 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLUpdateTask.h +62 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLWritable.h +22 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVMetalBuffer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVMetalBufferCache.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVMetalTexture.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVMetalTextureCache.h +2 -2
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSMetadata.h +4 -4
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKBaseEffect.h +159 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKEffectProperty.h +46 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKEffectPropertyFog.h +58 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKEffectPropertyLight.h +83 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKEffectPropertyMaterial.h +36 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKEffectPropertyTexture.h +62 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKEffectPropertyTransform.h +45 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKEffects.h +21 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKMath.h +19 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKMathTypes.h +167 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKMathUtils.h +48 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKMatrix3.h +535 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKMatrix4.h +1012 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKMatrixStack.h +130 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKModel.h +227 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKNamedEffect.h +14 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKQuaternion.h +340 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKReflectionMapEffect.h +143 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKSkyboxEffect.h +117 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKTextureLoader.h +357 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKVector2.h +483 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKVector3.h +307 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKVector4.h +587 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKView.h +129 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKViewController.h +102 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKit.apinotes +5 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKit.h +21 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKitBase.h +30 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKAddCarKeyPassConfiguration.h +35 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKAddIdentityDocumentConfiguration.h +134 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKAddPassButton.h +48 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKAddPassesViewController.h +56 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKAddPaymentPassRequest.h +88 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKAddPaymentPassViewController.h +68 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKAddSecureElementPassConfiguration.h +55 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKAddSecureElementPassViewController.h +56 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKAddShareablePassConfiguration.h +134 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKAutomaticReloadPaymentRequest.h +57 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKAutomaticReloadPaymentSummaryItem.h +31 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKBarcodeEventMetadataRequest.h +76 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKConstants.h +124 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKContact.h +43 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKDateComponentsRange.h +35 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKDeferredPaymentRequest.h +60 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKDeferredPaymentSummaryItem.h +30 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKDisbursementRequest.h +94 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKDisbursementSummaryItem.h +22 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKError.h +95 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityAuthorizationController.h +52 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityButton.h +68 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocument.h +33 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocumentDescriptor.h +83 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityElement.h +130 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityError.h +54 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityIntentToStore.h +40 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityRequest.h +47 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKInstantFundsOutFeeSummaryItem.h +28 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKIssuerProvisioningExtensionAuthorizationProviding.h +31 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKIssuerProvisioningExtensionHandler.h +41 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKIssuerProvisioningExtensionPassEntry.h +34 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKIssuerProvisioningExtensionPaymentPassEntry.h +37 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKIssuerProvisioningExtensionStatus.h +33 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKLabeledValue.h +28 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKObject.h +23 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPass.h +63 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPassLibrary.h +170 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPassRelevantDate.h +30 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPass_Types.h +25 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPayLaterValidator.h +44 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPayLaterView.h +72 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPayment.h +64 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentAuthorizationController.h +208 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentAuthorizationViewController.h +108 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentAuthorizationViewControllerDelegate.h +147 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentButton.h +55 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentInformationEventExtension.h +41 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentMerchantSession.h +29 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentMethod.h +59 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentPass.h +37 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentRequest.h +255 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentRequestStatus.h +171 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentSummaryItem.h +50 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentToken.h +49 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentTokenContext.h +59 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKRecurringPaymentRequest.h +60 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKRecurringPaymentSummaryItem.h +39 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKSecureElementPass.h +52 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKShareSecureElementPassViewController.h +81 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKShippingMethod.h +42 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKStoredValuePassBalance.h +37 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKStoredValuePassProperties.h +36 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKSuicaPassProperties.h +43 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKTransitPassProperties.h +34 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKVehicleConnectionSession.h +71 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PassKit.apinotes +68 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PassKit.h +187 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Modules/module.modulemap +8 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h +8 -8
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEAGLLayer.h +48 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEDRMetadata.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h +2 -2
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTimingFunction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAMetalLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATransaction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CoreAnimation.h +25 -12
- package/sdk/ios/System/Library/Frameworks/QuickLook.framework/Headers/QLPreviewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/React.framework/Headers/React.h +1 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Modules/module.modulemap +23 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSAdaptiveImageGlyph.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSAttributedString.h +1 -231
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSDataAsset.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSItemProvider+UIKitAdditions.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSLayoutManager.h +1 -375
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSParagraphStyle.h +1 -545
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSStringDrawing.h +1 -82
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSText.h +1 -74
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextAttachment.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextContainer.h +1 -210
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextContentManager.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextElement.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextLayoutFragment.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextLayoutManager.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextLineFragment.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextList.h +1 -194
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextListElement.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextRange.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextSelection.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextSelectionNavigation.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextStorage.h +1 -196
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextTable.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextViewportLayoutController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextViewportRenderingSurface.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibility.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityAdditions.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityConstants.h +0 -87
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityContainer.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityContentSizeCategoryImageAdjusting.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityIdentification.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityLocationDescriptor.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIActionSheet.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIActivity.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIActivityItemsConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAppearance.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIApplicationShortcutItem.h +3 -6
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIArrangementViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAttachmentBehavior.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBackgroundExtensionView.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBandSelectionInteraction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarButtonItemGroup.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarCommon.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICalendarSelection.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICalendarSelectionMultiDate.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICalendarSelectionSingleDate.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICalendarSelectionWeekOfYear.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICalendarView.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICanvasFeedbackGenerator.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICloudSharingController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionView.h +11 -11
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewCompositionalLayout.h +15 -15
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewFlowLayout.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewListCell.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewTransitionLayout.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewUpdateItem.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollisionBehavior.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIColorPickerViewController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIColorWell.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICommand.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContentSizeCategoryAdjusting.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContentUnavailableView.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuInteraction.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuSystem.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContextualAction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIConversationContext.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDataSourceTranslating.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDatePicker.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDeferredMenuElement.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocument.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentBrowserAction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentBrowserViewController.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentInteractionController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentMenuViewController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentPickerExtensionViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentPickerViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentProperties.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDragInteraction.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDragSession.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDropInteraction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDynamicAnimator.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDynamicBehavior.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIEditMenuInteraction.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIEventAttribution.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIEventAttributionView.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFieldBehavior.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFindInteraction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFindSession.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocus.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocusAnimationCoordinator.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocusDebugger.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocusMovementHint.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocusSystem.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFont.h +1 -86
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFontDescriptor.h +1 -198
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFontPickerViewController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGlassEffect.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGraphicsPDFRenderer.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGraphicsRenderer.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGravityBehavior.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGuidedAccess.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHinge.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHingeInteraction.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHoverEffect.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIInputSuggestion.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIInputView.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIInputViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIInteraction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKey.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKeyboardLayoutGuide.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKitDefines.h +1 -48
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILargeContentViewer.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILetterformAwareAdjusting.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILexicon.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIListContentConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILocalNotification.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILocalizedIndexedCollation.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMailConversationContext.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMainMenuSystem.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIManagedDocument.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuDisplayPreferences.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuElement.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuLeaf.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuSystem.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMessageConversationContext.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMotionEffect.h +3 -6
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UINavigationBar.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UINavigationController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIOpenURLContext.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPageControl.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPageControlProgress.h +4 -4
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPageViewController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPencilInteraction.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPhotoSearchSuggestion.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPickerView.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPointerAccessory.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPointerInteraction.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPointerLockState.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPointerRegion.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPointerStyle.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPopoverBackgroundView.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPopoverController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPopoverPresentationController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPopoverPresentationControllerSourceItem.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPresentationController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPress.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPressesEvent.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPreviewInteraction.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrintFormatter.h +4 -4
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrintInteractionController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrintPageRenderer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrintPaper.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrintServiceExtension.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrinter.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrinterPickerController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPushBehavior.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIReferenceLibraryViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIResponder.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneAccessory.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneAccessoryRegistration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneActivationConditions.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneClosureConfirmation.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneOptions.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneSession.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneSizeRestrictions.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneSystemProtectionManager.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneWindowingBehaviors.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScreenMode.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScreenshotService.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScribbleInteraction.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScrollEdgeElementContainerInteraction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScrollView.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchBar.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchContainerViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchDisplayController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchSuggestion.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchTextField.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISheetPresentationController.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISmartReplySuggestion.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISnapBehavior.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISplitViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISpringLoadedInteraction.h +4 -4
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISpringLoadedInteractionSupporting.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStandardTextCursorView.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStateRestoration.h +4 -4
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStatusBarManager.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStepper.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStoryboardPopoverSegue.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStoryboardSegue.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISwipeActionsConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISymbolContentTransition.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBar.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBarController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBarControllerSidebar.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabGroup.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabSidebarItem.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITableView.h +13 -13
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITableViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITableViewHeaderFooterView.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextChecker.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextCursorDropPositionAnimator.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextCursorView.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextDragPreviewRenderer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextDragging.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextDropping.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextFormattingCoordinator.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextFormattingViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextInput.h +12 -12
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextInputContext.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextInputTraits.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextInteraction.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextItem.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextLoupeSession.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextPasteConfigurationSupporting.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextPasteDelegate.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextSearching.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextSelectionDisplayInteraction.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextSelectionHighlightView.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITimingCurveProvider.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITimingParameters.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIToolTipInteraction.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIToolbar.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIToolbarAppearance.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITouch.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITrackingLayoutGuide.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITraitCollection.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIUpdateActionPhase.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIUpdateInfo.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIUpdateLink.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h +5 -5
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIVibrancyEffect.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIVideoEditorController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewAnimating.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h +6 -6
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewControllerTransitionCoordinator.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewControllerTransitioning.h +4 -4
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewReservedRegion.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIVisualEffect.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWebView.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowScene.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneActivationAction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneDragInteraction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneGeometryPreferencesIOS.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWritingToolsCoordinator.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/NSAttributedString.h +231 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/NSLayoutManager.h +375 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/NSParagraphStyle.h +545 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/NSStringDrawing.h +82 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/NSText.h +74 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/NSTextContainer.h +210 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/NSTextList.h +194 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/NSTextStorage.h +196 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/UIFont.h +86 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/UIFontDescriptor.h +198 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/UIKitDefines.h +48 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/UIKitText.h +11 -11
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Modules/module.modulemap +11 -11
- package/sdk/ios/System/Library/Frameworks/UIKitTypes.framework/Headers/UIAccessibilityTraits.h +91 -0
- package/sdk/ios/System/Library/Frameworks/UIKitTypes.framework/Headers/UIKitTypes.apinotes +43 -0
- package/sdk/ios/System/Library/Frameworks/UIKitTypes.framework/Headers/UIKitTypes.h +1 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTBase.h +48 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTCompressionProperties.h +1686 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTCompressionSession.h +509 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTDecompressionProperties.h +548 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTDecompressionSession.h +577 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTErrors.h +144 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTFrameProcessor.h +134 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTFrameProcessorConfiguration.h +68 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTFrameProcessorErrors.h +60 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTFrameProcessorFrame.h +82 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTFrameProcessorParameters.h +48 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTFrameProcessor_FrameRateConversion.h +207 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTFrameProcessor_LowLatencyFrameInterpolation.h +171 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTFrameProcessor_LowLatencySuperResolutionScaler.h +143 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTFrameProcessor_MotionBlur.h +207 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTFrameProcessor_OpticalFlow.h +172 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTFrameProcessor_SuperResolutionScaler.h +245 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTFrameProcessor_TemporalNoiseFilter.h +161 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTFrameSilo.h +177 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTHDRPerFrameMetadataGenerationSession.h +116 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTMotionEstimationSession.h +176 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTMotionEstimationSessionProperties.h +76 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTMultiPassStorage.h +96 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTPixelRotationProperties.h +75 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTPixelRotationSession.h +111 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTPixelTransferProperties.h +231 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTPixelTransferSession.h +123 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTSession.h +151 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTUtilities.h +146 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTVideoEncoderList.h +74 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VideoToolbox.apinotes +197 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VideoToolbox.h +41 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNCalculateImageAestheticsScoresRequest.h +32 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNClassifyImageRequest.h +69 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNCoreMLRequest.h +93 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDefines.h +24 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectAnimalBodyPoseRequest.h +49 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectBarcodesRequest.h +85 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectContoursRequest.h +60 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectDocumentSegmentationRequest.h +33 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectFaceCaptureQualityRequest.h +46 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectFaceLandmarksRequest.h +61 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectFaceRectanglesRequest.h +47 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectHorizonRequest.h +35 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectHumanBodyPose3DRequest.h +67 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectHumanBodyPoseRequest.h +194 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectHumanHandPoseRequest.h +200 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectHumanRectanglesRequest.h +53 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectRectanglesRequest.h +66 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectTextRectanglesRequest.h +40 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectTrajectoriesRequest.h +71 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectedPoint.h +55 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNError.h +42 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNFaceLandmarks.h +188 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNFaceObservationAccepting.h +32 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNGenerateAttentionBasedSaliencyImageRequest.h +42 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNGenerateForegroundInstanceMaskRequest.h +34 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNGenerateImageFeaturePrintRequest.h +53 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNGenerateObjectnessBasedSaliencyImageRequest.h +41 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNGenerateOpticalFlowRequest.h +89 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNGeneratePersonInstanceMaskRequest.h +34 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNGeneratePersonSegmentationRequest.h +67 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNGeometry.h +323 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNGeometryUtils.h +95 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNHumanBodyRecognizedPoint3D.h +26 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNImageRegistrationRequest.h +67 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNObservation.h +994 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNRecognizeAnimalsRequest.h +61 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNRecognizeTextRequest.h +109 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNRecognizedPoint3D.h +34 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNRequest.h +197 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNRequestHandler.h +419 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNRequestRevisionProviding.h +26 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNStatefulRequest.h +49 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNTargetedImageRequest.h +302 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNTrackHomographicImageRegistrationRequest.h +46 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNTrackObjectRequest.h +53 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNTrackOpticalFlowRequest.h +106 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNTrackRectangleRequest.h +56 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNTrackTranslationalImageRegistrationRequest.h +45 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNTrackingRequest.h +72 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNTypes.h +201 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNUtils.h +198 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNVideoProcessor.h +133 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/Vision.apinotes +130 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/Vision.h +67 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Modules/module.modulemap +7 -0
- package/sdk/ios/usr/include/AssertMacros.h +1463 -0
- package/sdk/ios/usr/include/_modules/_os_lock.h +33 -0
- package/sdk/ios/usr/include/libkern/OSCacheControl.h +66 -0
- package/sdk/ios/usr/include/os.modulemap +1 -1
- package/sdk/ios/usr/include/pthread/pthread_spis.h +105 -0
- package/sdk/ios/usr/include/pthread_spis.h +105 -0
- package/sdk/ios/usr/lib/swift/Foundation.swiftmodule/arm64-apple-ios-simulator.swiftinterface +4 -0
- package/sdk/ios/wasm/include/pthread/sched.h +3 -0
- package/sdk/ios/wasm/include/pthread.h +7 -0
- package/sdk/ios/wasm/include/sched.h +9 -0
- package/sdk/ios/wasm/include/sys/mman.h +2 -2
- package/sdk/ios/wasm/include/sys/poll.h +3 -0
- package/sdk/ios/wasm/include/tgmath.h +5 -0
- package/sdk/ios/wasm/include/unistd.h +5 -1
- package/skills/contrast/SKILL.md +1 -0
- package/skills/peach-debug/SKILL.md +43 -1
- package/skills/peach-debug/references/events.md +14 -1
- package/src/android-autolinking.ts +5 -18
- package/src/answeredNativePackages.ts +24 -5
- package/src/app-config.ts +12 -1
- package/src/assetCatalogContract.ts +3 -39
- package/src/autolinker-process.ts +82 -0
- package/src/bazel-project.ts +1133 -0
- package/src/bridge-contract.ts +3 -0
- package/src/case-insensitive-header-overlay.ts +99 -0
- package/src/config.ts +5 -0
- package/src/device-catalog.ts +9 -0
- package/src/expo-autolinking.ts +12 -15
- package/src/expo-native-prebuilt.ts +28 -5
- package/src/expo-native-workspace.ts +91 -23
- package/src/expo-swift-host.ts +190 -57
- package/src/expo-swift-ready.ts +8 -0
- package/src/expo-workspace-exclusion.ts +96 -27
- package/src/flow-graph-layout.ts +166 -0
- package/src/git-repo-env.ts +7 -0
- package/src/host/app-package-handler.ts +5 -0
- package/src/host/bridge-host.ts +3 -1
- package/src/host/hostname-resolver.ts +55 -2
- package/src/host/staged-host-files.ts +17 -1
- package/src/host/websocket-proxy.ts +19 -2
- package/src/java-static-imports.ts +68 -0
- package/src/kotlin-jvm-sources.ts +35 -0
- package/src/kotlinSdkContract.ts +3 -1
- package/src/launchMetadataContract.ts +8 -0
- package/src/metro-hot-update.ts +68 -0
- package/src/native-app-identity-project.ts +35 -7
- package/src/native-app-identity.ts +32 -0
- package/src/native-package-slice-build.ts +35 -9
- package/src/native-package-slice.ts +10 -4
- package/src/native-slices.ts +1 -1
- package/src/native-static-libraries.ts +51 -23
- package/src/nitro-adapter.lock.json +265 -265
- package/src/nitro-app-providers.ts +28 -0
- package/src/nitro-bundle.ts +4 -41
- package/src/nitro-compile.ts +450 -76
- package/src/nitro-source.ts +585 -114
- package/src/nitro-superset.lock.json +4 -4
- package/src/node-runtime.ts +27 -0
- package/src/nodeRuntimeContract.ts +5 -0
- package/src/one-sdk-bundle.ts +15 -3
- package/src/one-sdk-preparation.ts +69 -9
- package/src/oneSdkContract.ts +13 -2
- package/src/podspec-sources.ts +376 -1814
- package/src/portable-expo-contract.ts +7 -2
- package/src/portable-expo-workspace.ts +7 -2
- package/src/process-group.ts +13 -0
- package/src/react-bridge-importers.ts +1 -0
- package/src/react-native-autolinking.ts +13 -43
- package/src/react-native-bridge-modules.ts +3 -3
- package/src/react-native-core-build.ts +6 -0
- package/src/react-native-host-modules.ts +37 -3
- package/src/reap-browser.ts +1 -0
- package/src/sfSymbolMetricsContract.ts +0 -53
- package/src/sim-client.ts +8 -2
- package/src/storekit-test-store.ts +49 -0
- package/src/stub-pattern-matcher.ts +4 -26
- package/src/swift-compile-budget.ts +42 -0
- package/src/swift-compile.ts +780 -658
- package/src/swift-compiler-digest.ts +2 -0
- package/src/swift-cxx-reachable.ts +20 -21
- package/src/swift-distribution.lock.json +18 -12
- package/src/swift-guest-compile.ts +38 -21
- package/src/swift-guest-image-ledger.ts +28 -19
- package/src/swift-guest-source-inputs.ts +5 -1
- package/src/swift-host.ts +90 -23
- package/src/swift-objc-compile.ts +117 -29
- package/src/swift-objc-standin.ts +12 -1
- package/src/swift-package-manifest.ts +18 -1
- package/src/swift-package.ts +26 -8
- package/src/swift-packages.ts +66 -27
- package/src/swift-resource-class-names.ts +44 -0
- package/src/swift-root-lock.ts +50 -15
- package/src/swift-shared-sdk.ts +2 -4
- package/src/swift-source-file.ts +6 -0
- package/src/swift-standin-emit.ts +10 -0
- package/src/swift-standins.ts +351 -66
- package/src/swift-submit.ts +6 -1
- package/src/swift-toolchain.ts +19 -0
- package/src/swift-wasm-prune.ts +15 -8
- package/src/swiftContract.ts +4 -5
- package/src/turbo-bundle.ts +1 -1
- package/src/turbo-codegen-intake.ts +8 -5
- package/src/turbo-compile.ts +2 -1
- package/src/turbo-runtime.lock.json +24 -24
- package/src/turbo-source.ts +2162 -280
- package/src/vite-plugin-swift.ts +3 -2
- package/src/wasm-optimize.ts +14 -10
- package/src/worker-system-chunks.ts +31 -3
- package/src/worklet-kernel.ts +56 -9
- package/src/worklets-babel.ts +8 -1
- package/src/xcode-header-search.ts +9 -0
- package/src/xcode-project.ts +82 -6
- package/dist-types/packages/peach-engine/src/engine/ios-fast-scroll.d.ts +0 -16
- package/dist-types/packages/peach-engine/src/engine/scroll-pan-contacts.d.ts +0 -12
- package/dist-types/packages/peach-engine/src/engine/scroll-velocity.d.ts +0 -15
- /package/dist-types/packages/{peach-engine → peach-compat}/src/react-bridge.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2363 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1154,9 +1154,9 @@ __export(native_app_identity_project_exports, {
|
|
|
1154
1154
|
readNativeAppIdentityFromXcodeTarget: () => readNativeAppIdentityFromXcodeTarget
|
|
1155
1155
|
});
|
|
1156
1156
|
module.exports = __toCommonJS(native_app_identity_project_exports);
|
|
1157
|
-
var
|
|
1157
|
+
var import_node_fs5 = __toESM(require("node:fs"), 1);
|
|
1158
1158
|
var import_node_module = require("node:module");
|
|
1159
|
-
var
|
|
1159
|
+
var import_node_path8 = __toESM(require("node:path"), 1);
|
|
1160
1160
|
|
|
1161
1161
|
// src/android-string-value.ts
|
|
1162
1162
|
function compileAndroidStringValue(text2, where) {
|
|
@@ -1696,31 +1696,37 @@ function readKeychainAccessGroups(dictionary, resolve) {
|
|
|
1696
1696
|
function nonEmptyString(value) {
|
|
1697
1697
|
return typeof value === "string" && value.length > 0 ? value : null;
|
|
1698
1698
|
}
|
|
1699
|
-
function readGoogleSignInConfiguration(
|
|
1699
|
+
function readGoogleSignInConfiguration(plist4, resources) {
|
|
1700
1700
|
const clientIds = {};
|
|
1701
1701
|
for (const [file, value] of Object.entries(resources)) {
|
|
1702
1702
|
if (isRecord(value) && typeof value.CLIENT_ID === "string")
|
|
1703
1703
|
clientIds[file.split("/").pop()?.replace(/\.plist$/, "") ?? file] = value.CLIENT_ID;
|
|
1704
1704
|
}
|
|
1705
1705
|
const urlSchemes = [];
|
|
1706
|
-
for (const entry of Array.isArray(
|
|
1706
|
+
for (const entry of Array.isArray(plist4.CFBundleURLTypes) ? plist4.CFBundleURLTypes : []) {
|
|
1707
1707
|
if (!isRecord(entry) || !Array.isArray(entry.CFBundleURLSchemes)) continue;
|
|
1708
1708
|
for (const scheme of entry.CFBundleURLSchemes)
|
|
1709
1709
|
if (typeof scheme === "string") urlSchemes.push(scheme);
|
|
1710
1710
|
}
|
|
1711
1711
|
return {
|
|
1712
|
-
clientId:
|
|
1713
|
-
serverClientId:
|
|
1714
|
-
hostedDomain:
|
|
1715
|
-
openIDRealm:
|
|
1712
|
+
clientId: plist4.GIDClientID,
|
|
1713
|
+
serverClientId: plist4.GIDServerClientID,
|
|
1714
|
+
hostedDomain: plist4.GIDHostedDomain,
|
|
1715
|
+
openIDRealm: plist4.GIDOpenIDRealm,
|
|
1716
1716
|
urlSchemes,
|
|
1717
1717
|
clientIds
|
|
1718
1718
|
};
|
|
1719
1719
|
}
|
|
1720
|
-
function plistString(
|
|
1721
|
-
const match =
|
|
1720
|
+
function plistString(plist4, key) {
|
|
1721
|
+
const match = plist4.match(new RegExp(`<key>${key}</key>\\s*<string>([^<]*)</string>`));
|
|
1722
1722
|
return match ? match[1].trim() : null;
|
|
1723
1723
|
}
|
|
1724
|
+
function resolvePlistStrings(value, settings) {
|
|
1725
|
+
const resolve = (item) => typeof item === "string" ? resolveBuildSetting(item, settings) ?? item : Array.isArray(item) ? item.map(resolve) : isRecord(item) ? resolvePlistStrings(item, settings) : item;
|
|
1726
|
+
return Object.fromEntries(
|
|
1727
|
+
Object.entries(value).map(([key, item]) => [key, resolve(item)])
|
|
1728
|
+
);
|
|
1729
|
+
}
|
|
1724
1730
|
function resolveBuildSetting(value, settings, depth = 0) {
|
|
1725
1731
|
if (depth > 8) return null;
|
|
1726
1732
|
let unresolved = false;
|
|
@@ -1788,9 +1794,9 @@ function appTargetReleaseSettings(pbxproj, targetName, infoPlistRelativePath) {
|
|
|
1788
1794
|
candidates.push({ name: match[1], settings });
|
|
1789
1795
|
}
|
|
1790
1796
|
const plistMatch = (settings) => {
|
|
1791
|
-
const
|
|
1792
|
-
if (!
|
|
1793
|
-
const normalized =
|
|
1797
|
+
const plist4 = settings.INFOPLIST_FILE;
|
|
1798
|
+
if (!plist4) return false;
|
|
1799
|
+
const normalized = plist4.replace(/^"|"$/g, "");
|
|
1794
1800
|
return normalized === infoPlistRelativePath || infoPlistRelativePath.endsWith(`/${normalized}`) || normalized.endsWith(`/${infoPlistRelativePath}`);
|
|
1795
1801
|
};
|
|
1796
1802
|
const named = (settings) => resolveBuildSetting(settings.PRODUCT_NAME ?? "", settings) === targetName;
|
|
@@ -1803,10 +1809,10 @@ function appTargetReleaseSettings(pbxproj, targetName, infoPlistRelativePath) {
|
|
|
1803
1809
|
var APP_DELEGATE_PATH_RE = /(?:^|\/)(?:ios\/)?([^/]+)\/AppDelegate\.(?:swift|mm|m)$/;
|
|
1804
1810
|
function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri) {
|
|
1805
1811
|
const pbxprojPath = Object.keys(files).find(
|
|
1806
|
-
(
|
|
1812
|
+
(path9) => /(?:^|\/)ios\/[^/]+\.xcodeproj\/project\.pbxproj$/.test(path9)
|
|
1807
1813
|
) ?? Object.keys(files).find(
|
|
1808
|
-
(
|
|
1809
|
-
) ?? Object.keys(files).find((
|
|
1814
|
+
(path9) => /(?:^|\/)[^/]+\.xcodeproj\/project\.pbxproj$/.test(path9)
|
|
1815
|
+
) ?? Object.keys(files).find((path9) => /(?:^|\/)project\.pbxproj$/.test(path9));
|
|
1810
1816
|
if (!pbxprojPath) return null;
|
|
1811
1817
|
const pbxproj = files[pbxprojPath];
|
|
1812
1818
|
let objects = {};
|
|
@@ -1848,7 +1854,7 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
|
|
|
1848
1854
|
} else if (applicationTargetNames.size === 1) {
|
|
1849
1855
|
targetName = [...applicationTargetNames][0];
|
|
1850
1856
|
} else if (applicationTargetNames.size > 1) {
|
|
1851
|
-
const delegateTargets = Object.keys(files).filter((
|
|
1857
|
+
const delegateTargets = Object.keys(files).filter((path9) => !path9.includes("/Pods/")).map((path9) => path9.match(APP_DELEGATE_PATH_RE)?.[1]).filter(
|
|
1852
1858
|
(name) => typeof name === "string" && applicationTargetNames.has(name)
|
|
1853
1859
|
);
|
|
1854
1860
|
if (delegateTargets.length === 1) {
|
|
@@ -1903,41 +1909,41 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
|
|
|
1903
1909
|
);
|
|
1904
1910
|
if (legacy) Object.assign(settings, legacy);
|
|
1905
1911
|
}
|
|
1906
|
-
let
|
|
1912
|
+
let plist4;
|
|
1907
1913
|
const infoPlistPath = settings.INFOPLIST_FILE;
|
|
1908
1914
|
if (infoPlistPath) {
|
|
1909
1915
|
const normalized = infoPlistPath.replace(/^"|"$/g, "");
|
|
1910
|
-
|
|
1916
|
+
plist4 = files[`ios/${normalized}`] ?? files[normalized] ?? Object.entries(files).find(([k]) => k.endsWith(`/${normalized}`))?.[1];
|
|
1911
1917
|
}
|
|
1912
|
-
if (!
|
|
1913
|
-
|
|
1918
|
+
if (!plist4) {
|
|
1919
|
+
plist4 = files[`ios/${targetName}/Info.plist`] ?? files[`${targetName}/Info.plist`] ?? Object.entries(files).find(([k]) => k.endsWith(`/${targetName}/Info.plist`))?.[1];
|
|
1914
1920
|
}
|
|
1915
|
-
if (!
|
|
1921
|
+
if (!plist4) return null;
|
|
1916
1922
|
const bundleIdentifier = identityFieldFrom(
|
|
1917
1923
|
settings,
|
|
1918
|
-
plistString(
|
|
1924
|
+
plistString(plist4, "CFBundleIdentifier"),
|
|
1919
1925
|
settings.PRODUCT_BUNDLE_IDENTIFIER
|
|
1920
1926
|
);
|
|
1921
1927
|
if (!bundleIdentifier) return null;
|
|
1922
1928
|
const appVersion = identityFieldFrom(
|
|
1923
1929
|
settings,
|
|
1924
|
-
plistString(
|
|
1930
|
+
plistString(plist4, "CFBundleShortVersionString"),
|
|
1925
1931
|
settings.MARKETING_VERSION
|
|
1926
1932
|
);
|
|
1927
1933
|
const buildVersion = identityFieldFrom(
|
|
1928
1934
|
settings,
|
|
1929
|
-
plistString(
|
|
1935
|
+
plistString(plist4, "CFBundleVersion"),
|
|
1930
1936
|
settings.CURRENT_PROJECT_VERSION
|
|
1931
1937
|
);
|
|
1932
1938
|
if (!appVersion || !buildVersion) return null;
|
|
1933
1939
|
const bundleName = identityFieldFrom(
|
|
1934
1940
|
settings,
|
|
1935
|
-
plistString(
|
|
1941
|
+
plistString(plist4, "CFBundleName"),
|
|
1936
1942
|
settings.PRODUCT_NAME
|
|
1937
1943
|
) ?? resolvedIdentityField(resolveBuildSetting(settings.PRODUCT_NAME ?? "", settings)) ?? resolvedIdentityField(targetName);
|
|
1938
1944
|
if (!bundleName) return null;
|
|
1939
|
-
const applicationName = identityFieldFrom(settings, plistString(
|
|
1940
|
-
const dictionary = parseInfoPlist(
|
|
1945
|
+
const applicationName = identityFieldFrom(settings, plistString(plist4, "CFBundleDisplayName"), void 0) ?? bundleName;
|
|
1946
|
+
const dictionary = parseInfoPlist(plist4);
|
|
1941
1947
|
if (!isRecord(dictionary)) throw new Error("native app Info.plist is not a dictionary");
|
|
1942
1948
|
let keychainAccessGroups;
|
|
1943
1949
|
if (settings.CODE_SIGN_ENTITLEMENTS) {
|
|
@@ -2089,7 +2095,7 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
|
|
|
2089
2095
|
if (Object.hasOwn(files, file)) return [file];
|
|
2090
2096
|
const prefix = file === "" ? "" : `${file.replace(/\/$/, "")}/`;
|
|
2091
2097
|
return paths.filter(
|
|
2092
|
-
(
|
|
2098
|
+
(path9) => path9.startsWith(prefix) && !/(?:^|\/)\./.test(path9.slice(prefix.length))
|
|
2093
2099
|
);
|
|
2094
2100
|
},
|
|
2095
2101
|
join,
|
|
@@ -2100,7 +2106,7 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
|
|
|
2100
2106
|
}
|
|
2101
2107
|
const rootModuleName = readRootModuleName(
|
|
2102
2108
|
Object.entries(files).filter(
|
|
2103
|
-
([
|
|
2109
|
+
([path9]) => !path9.includes("/Pods/") && (/(?:^|\/)(?:ios\/)?AppDelegate\.(?:swift|mm|m)$/.test(path9) || path9.match(APP_DELEGATE_PATH_RE)?.[1] === targetName)
|
|
2104
2110
|
).map(([, source]) => source)
|
|
2105
2111
|
);
|
|
2106
2112
|
return {
|
|
@@ -2113,6 +2119,7 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
|
|
|
2113
2119
|
...typeof dictionary.UIViewControllerBasedStatusBarAppearance === "boolean" ? {
|
|
2114
2120
|
viewControllerBasedStatusBarAppearance: dictionary.UIViewControllerBasedStatusBarAppearance
|
|
2115
2121
|
} : {},
|
|
2122
|
+
sceneManifest: isRecord(dictionary.UIApplicationSceneManifest) ? resolvePlistStrings(dictionary.UIApplicationSceneManifest, settings) : null,
|
|
2116
2123
|
...dtPlatformVersion === void 0 ? {} : { dtPlatformVersion },
|
|
2117
2124
|
bundleName,
|
|
2118
2125
|
appVersion,
|
|
@@ -2204,6 +2211,24 @@ var import_node_crypto = require("node:crypto");
|
|
|
2204
2211
|
var SWIFT_HOST_COMPILER_RELEASE = "swift-6.4.0-RELEASE-custom-81b2c791c27276bf";
|
|
2205
2212
|
var SWIFT_HOST_COMPILER_ID = "81b2c791c27276bf";
|
|
2206
2213
|
var compilerArchives = {
|
|
2214
|
+
"swift-6.4.0-RELEASE-custom-cbd9cef4b408cc96": {
|
|
2215
|
+
identity: "cbd9cef4b408cc96",
|
|
2216
|
+
archive: "tar.zst",
|
|
2217
|
+
hosts: {
|
|
2218
|
+
"darwin-arm64": {
|
|
2219
|
+
checksum: "97ed2a6b10ae85e73422656fe7b44fdbd5e2343d7082ef2cb39476847988e615",
|
|
2220
|
+
manifest: "49c8002809ba90b16e2619653994bc776b5bc7ef26b98796233d8b425515b734"
|
|
2221
|
+
},
|
|
2222
|
+
"linux-x64": {
|
|
2223
|
+
checksum: "b404cffaa55b783098056cce0ef568d864bc92910dafa89dd0650d0e9d019918",
|
|
2224
|
+
manifest: "19c333d87f2ffc5c716e0561b3bcb0c2a6c6015ccd4a404a739099c6aa3b898f"
|
|
2225
|
+
},
|
|
2226
|
+
"linux-arm64": {
|
|
2227
|
+
checksum: "47d8572b0438f100494edaeb4c7b24fbf5c627d7d02a09fcd68a95c6d2d780f5",
|
|
2228
|
+
manifest: "b27a2bccb5a8a0988414951b3b4a4cd9d3acc315694f59ae4c166c2f41282171"
|
|
2229
|
+
}
|
|
2230
|
+
}
|
|
2231
|
+
},
|
|
2207
2232
|
"swift-6.4.0-RELEASE-custom-fb42d2535739dfd2": {
|
|
2208
2233
|
identity: "fb42d2535739dfd2",
|
|
2209
2234
|
archive: "tar.zst",
|
|
@@ -2519,11 +2544,904 @@ var NATIVE_GRAPH_INPUTS = {
|
|
|
2519
2544
|
var NATIVE_GRAPH_ID = (0, import_node_crypto.createHash)("sha256").update(JSON.stringify(NATIVE_GRAPH_INPUTS)).digest("hex");
|
|
2520
2545
|
|
|
2521
2546
|
// src/xcode-project.ts
|
|
2522
|
-
var
|
|
2523
|
-
var
|
|
2524
|
-
var
|
|
2525
|
-
var
|
|
2547
|
+
var import_node_child_process4 = require("node:child_process");
|
|
2548
|
+
var import_node_crypto4 = require("node:crypto");
|
|
2549
|
+
var import_node_fs4 = __toESM(require("node:fs"), 1);
|
|
2550
|
+
var import_node_path7 = __toESM(require("node:path"), 1);
|
|
2551
|
+
var import_plist3 = __toESM(require("plist"), 1);
|
|
2552
|
+
|
|
2553
|
+
// src/bazel-project.ts
|
|
2554
|
+
var import_node_child_process = require("node:child_process");
|
|
2555
|
+
var import_node_crypto2 = require("node:crypto");
|
|
2556
|
+
var import_node_fs = __toESM(require("node:fs"), 1);
|
|
2557
|
+
var import_node_os = __toESM(require("node:os"), 1);
|
|
2558
|
+
var import_node_path = __toESM(require("node:path"), 1);
|
|
2526
2559
|
var import_plist2 = __toESM(require("plist"), 1);
|
|
2560
|
+
var LIBRARY_RULES = /* @__PURE__ */ new Set(["swift_library", "objc_library", "cc_library"]);
|
|
2561
|
+
var QUERIED_RULES = [
|
|
2562
|
+
"swift_library",
|
|
2563
|
+
"objc_library",
|
|
2564
|
+
"cc_library",
|
|
2565
|
+
"genrule",
|
|
2566
|
+
"filegroup",
|
|
2567
|
+
"alias",
|
|
2568
|
+
"apple_resource_bundle",
|
|
2569
|
+
"rust_static_library",
|
|
2570
|
+
"apple_static_xcframework_import",
|
|
2571
|
+
"apple_dynamic_xcframework_import",
|
|
2572
|
+
"apple_intent_library"
|
|
2573
|
+
];
|
|
2574
|
+
var NATIVE_SOURCE = /\.(?:m|mm|c|cc|cpp|cxx|S)$/;
|
|
2575
|
+
var HEADER = /\.(?:h|hh|hpp|hxx|inc|inl|ipp)$/;
|
|
2576
|
+
var PRODUCTS = import_node_path.default.join(".build", "peach-bazel", "Products");
|
|
2577
|
+
function isBazelPackage(input) {
|
|
2578
|
+
return /^BUILD(?:\.bazel)?$/.test(import_node_path.default.basename(input)) && import_node_fs.default.statSync(input).isFile();
|
|
2579
|
+
}
|
|
2580
|
+
function workspaceRoot(buildFile) {
|
|
2581
|
+
for (let dir = import_node_path.default.dirname(buildFile); ; dir = import_node_path.default.dirname(dir)) {
|
|
2582
|
+
if (["MODULE.bazel", "WORKSPACE", "WORKSPACE.bazel"].some(
|
|
2583
|
+
(name) => import_node_fs.default.existsSync(import_node_path.default.join(dir, name))
|
|
2584
|
+
))
|
|
2585
|
+
return dir;
|
|
2586
|
+
if (import_node_path.default.dirname(dir) === dir)
|
|
2587
|
+
throw new Error(`${buildFile} is not inside a bazel workspace`);
|
|
2588
|
+
}
|
|
2589
|
+
}
|
|
2590
|
+
function bazelBinary(root) {
|
|
2591
|
+
const pinned = import_node_path.default.join(root, ".bazelversion");
|
|
2592
|
+
if (!import_node_fs.default.existsSync(pinned)) return "bazel";
|
|
2593
|
+
const version = import_node_fs.default.readFileSync(pinned, "utf8").trim();
|
|
2594
|
+
const platform = import_node_os.default.platform() === "darwin" ? "darwin" : "linux";
|
|
2595
|
+
const arch = import_node_os.default.arch() === "arm64" ? "arm64" : "x86_64";
|
|
2596
|
+
const name = `bazel-${version}-${platform}-${arch}`;
|
|
2597
|
+
const binary = import_node_path.default.join(import_node_os.default.homedir(), ".peach", "cache", "bazel", name);
|
|
2598
|
+
if (import_node_fs.default.existsSync(binary)) return binary;
|
|
2599
|
+
const url = `https://github.com/bazelbuild/bazel/releases/download/${version}/${name}`;
|
|
2600
|
+
import_node_fs.default.mkdirSync(import_node_path.default.dirname(binary), { recursive: true });
|
|
2601
|
+
const partial = `${binary}.${process.pid}.partial`;
|
|
2602
|
+
(0, import_node_child_process.execFileSync)("curl", ["-fsSL", "-o", partial, url]);
|
|
2603
|
+
const expected = (0, import_node_child_process.execFileSync)("curl", ["-fsSL", `${url}.sha256`], {
|
|
2604
|
+
encoding: "utf8"
|
|
2605
|
+
}).split(/\s/)[0];
|
|
2606
|
+
const actual = (0, import_node_crypto2.createHash)("sha256").update(import_node_fs.default.readFileSync(partial)).digest("hex");
|
|
2607
|
+
if (actual !== expected) {
|
|
2608
|
+
import_node_fs.default.rmSync(partial, { force: true });
|
|
2609
|
+
throw new Error(`${url} digest ${actual} differs from its release ${expected}`);
|
|
2610
|
+
}
|
|
2611
|
+
import_node_fs.default.chmodSync(partial, 493);
|
|
2612
|
+
import_node_fs.default.renameSync(partial, binary);
|
|
2613
|
+
return binary;
|
|
2614
|
+
}
|
|
2615
|
+
function parseRule(raw) {
|
|
2616
|
+
if (!isRecord(raw) || !isRecord(raw.target) || !isRecord(raw.target.rule)) return null;
|
|
2617
|
+
const rule = raw.target.rule;
|
|
2618
|
+
if (typeof rule.name !== "string" || typeof rule.ruleClass !== "string") return null;
|
|
2619
|
+
const attrs = /* @__PURE__ */ new Map();
|
|
2620
|
+
for (const attribute of Array.isArray(rule.attribute) ? rule.attribute : []) {
|
|
2621
|
+
if (!isRecord(attribute) || typeof attribute.name !== "string") continue;
|
|
2622
|
+
attrs.set(attribute.name, {
|
|
2623
|
+
list: Array.isArray(attribute.stringListValue) ? attribute.stringListValue.filter((item) => typeof item === "string") : [],
|
|
2624
|
+
value: typeof attribute.stringValue === "string" ? attribute.stringValue : null,
|
|
2625
|
+
bool: typeof attribute.booleanValue === "boolean" ? attribute.booleanValue : null
|
|
2626
|
+
});
|
|
2627
|
+
}
|
|
2628
|
+
return {
|
|
2629
|
+
label: rule.name,
|
|
2630
|
+
ruleClass: rule.ruleClass,
|
|
2631
|
+
attrs,
|
|
2632
|
+
outputs: Array.isArray(rule.ruleOutput) ? rule.ruleOutput.filter((item) => typeof item === "string") : []
|
|
2633
|
+
};
|
|
2634
|
+
}
|
|
2635
|
+
function graphInputsDigest(root) {
|
|
2636
|
+
const hash = (0, import_node_crypto2.createHash)("sha256");
|
|
2637
|
+
const visit = (dir) => {
|
|
2638
|
+
for (const entry of import_node_fs.default.readdirSync(dir, { withFileTypes: true }).sort((a, b) => a.name.localeCompare(b.name))) {
|
|
2639
|
+
if (entry.name.startsWith(".") || entry.name.startsWith("bazel-")) continue;
|
|
2640
|
+
const full = import_node_path.default.join(dir, entry.name);
|
|
2641
|
+
if (entry.isDirectory()) visit(full);
|
|
2642
|
+
else if (/^(?:BUILD(?:\.bazel)?|MODULE\.bazel(?:\.lock)?|WORKSPACE(?:\.bazel)?|\.bazelrc|\.bazelversion)$/.test(
|
|
2643
|
+
entry.name
|
|
2644
|
+
) || entry.name.endsWith(".bzl"))
|
|
2645
|
+
hash.update(import_node_path.default.relative(root, full)).update("\0").update(import_node_fs.default.readFileSync(full));
|
|
2646
|
+
}
|
|
2647
|
+
};
|
|
2648
|
+
visit(root);
|
|
2649
|
+
for (const file of [".bazelrc", ".bazelversion"])
|
|
2650
|
+
if (import_node_fs.default.existsSync(import_node_path.default.join(root, file)))
|
|
2651
|
+
hash.update(file).update(import_node_fs.default.readFileSync(import_node_path.default.join(root, file)));
|
|
2652
|
+
return hash.digest("hex");
|
|
2653
|
+
}
|
|
2654
|
+
var graphs = /* @__PURE__ */ new Map();
|
|
2655
|
+
function configurationFlags(configuration) {
|
|
2656
|
+
return [
|
|
2657
|
+
"-c",
|
|
2658
|
+
configuration === "Release" ? "opt" : "dbg",
|
|
2659
|
+
"--cpu=ios_sim_arm64",
|
|
2660
|
+
"--platforms=@build_bazel_apple_support//platforms:ios_sim_arm64",
|
|
2661
|
+
// generators run the developer's tools, as their own builds find them
|
|
2662
|
+
"--action_env=PATH"
|
|
2663
|
+
];
|
|
2664
|
+
}
|
|
2665
|
+
var GRAPH_FORMAT = 4;
|
|
2666
|
+
function bazelGraph(root, label, configuration) {
|
|
2667
|
+
const key = JSON.stringify([root, label, configuration]);
|
|
2668
|
+
const cached = graphs.get(key);
|
|
2669
|
+
if (cached) return cached;
|
|
2670
|
+
const flags = configurationFlags(configuration);
|
|
2671
|
+
const digest = (0, import_node_crypto2.createHash)("sha256").update(JSON.stringify([GRAPH_FORMAT, label, flags, QUERIED_RULES])).update(graphInputsDigest(root)).digest("hex").slice(0, 24);
|
|
2672
|
+
const file = import_node_path.default.join(root, ".build", "peach-bazel", `graph-${digest}.json`);
|
|
2673
|
+
const bazel = bazelBinary(root);
|
|
2674
|
+
const run2 = (args) => (0, import_node_child_process.execFileSync)(bazel, args, {
|
|
2675
|
+
cwd: root,
|
|
2676
|
+
encoding: "utf8",
|
|
2677
|
+
maxBuffer: 1 << 30,
|
|
2678
|
+
stdio: ["ignore", "pipe", "pipe"]
|
|
2679
|
+
});
|
|
2680
|
+
if (!import_node_fs.default.existsSync(file)) {
|
|
2681
|
+
const application = run2(["query", label, "--output=streamed_jsonproto"]);
|
|
2682
|
+
const app2 = parseRule({ target: JSON.parse(application.trim().split("\n")[0]) });
|
|
2683
|
+
if (!app2?.ruleClass.endsWith("_application"))
|
|
2684
|
+
throw new Error(
|
|
2685
|
+
`${label} is a ${app2?.ruleClass ?? "missing rule"}, not an application`
|
|
2686
|
+
);
|
|
2687
|
+
const deps = app2.attrs.get("deps")?.list ?? [];
|
|
2688
|
+
if (deps.length === 0) throw new Error(`${label} links no libraries`);
|
|
2689
|
+
const infoplists = app2.attrs.get("infoplists")?.list ?? [];
|
|
2690
|
+
const query = `kind("${QUERIED_RULES.join("|")}", deps(set(${deps.join(" ")})))${infoplists.length > 0 ? ` + set(${infoplists.join(" ")})` : ""}`;
|
|
2691
|
+
const output2 = run2(["cquery", query, ...flags, "--output=jsonproto"]);
|
|
2692
|
+
const defaults = run2([
|
|
2693
|
+
"cquery",
|
|
2694
|
+
query,
|
|
2695
|
+
...flags,
|
|
2696
|
+
"--output=starlark",
|
|
2697
|
+
'--starlark:expr=str(target.label) + "\\t" + " ".join([f.short_path for f in target.files.to_list() if not f.is_source])'
|
|
2698
|
+
]);
|
|
2699
|
+
const info2 = run2(["info", "output_base", "execution_root"]);
|
|
2700
|
+
const bin = run2(["cquery", deps[0], ...flags, "--output=files"]).split("\n").find((line) => line.includes("/bin/"));
|
|
2701
|
+
if (!bin) throw new Error(`bazel cquery names no output for ${deps[0]}`);
|
|
2702
|
+
import_node_fs.default.mkdirSync(import_node_path.default.dirname(file), { recursive: true });
|
|
2703
|
+
import_node_fs.default.writeFileSync(
|
|
2704
|
+
`${file}.partial`,
|
|
2705
|
+
JSON.stringify({
|
|
2706
|
+
application,
|
|
2707
|
+
cquery: output2,
|
|
2708
|
+
defaults,
|
|
2709
|
+
info: info2,
|
|
2710
|
+
bin: bin.slice(0, bin.indexOf("/bin/") + 4)
|
|
2711
|
+
})
|
|
2712
|
+
);
|
|
2713
|
+
import_node_fs.default.renameSync(`${file}.partial`, file);
|
|
2714
|
+
}
|
|
2715
|
+
const stored = JSON.parse(import_node_fs.default.readFileSync(file, "utf8"));
|
|
2716
|
+
if (!isRecord(stored) || typeof stored.application !== "string" || typeof stored.cquery !== "string" || typeof stored.defaults !== "string" || typeof stored.info !== "string" || typeof stored.bin !== "string")
|
|
2717
|
+
throw new Error(`${file} is not a bazel graph`);
|
|
2718
|
+
const app = parseRule({
|
|
2719
|
+
target: JSON.parse(stored.application.trim().split("\n")[0])
|
|
2720
|
+
});
|
|
2721
|
+
const appDeps = (app.attrs.get("deps")?.list ?? []).map(
|
|
2722
|
+
(dep) => canonicalLabel(dep, label)
|
|
2723
|
+
);
|
|
2724
|
+
const parsed = JSON.parse(stored.cquery);
|
|
2725
|
+
if (!isRecord(parsed) || !Array.isArray(parsed.results))
|
|
2726
|
+
throw new Error(`bazel cquery for ${label} returned no results`);
|
|
2727
|
+
const configurationOf = (raw) => isRecord(raw) && isRecord(raw.configuration) ? raw.configuration.checksum : null;
|
|
2728
|
+
const top = parsed.results.find((raw) => parseRule(raw)?.label === appDeps[0]);
|
|
2729
|
+
if (!top) throw new Error(`bazel cquery did not configure ${appDeps[0]}`);
|
|
2730
|
+
const rules2 = /* @__PURE__ */ new Map();
|
|
2731
|
+
for (const raw of parsed.results) {
|
|
2732
|
+
if (configurationOf(raw) !== configurationOf(top)) continue;
|
|
2733
|
+
const rule = parseRule(raw);
|
|
2734
|
+
if (rule) rules2.set(rule.label, rule);
|
|
2735
|
+
}
|
|
2736
|
+
for (const line of stored.defaults.split("\n")) {
|
|
2737
|
+
const [raw, list2] = line.split(" ");
|
|
2738
|
+
const rule = raw ? rules2.get(raw.replace(/^@@\/\//, "//")) : void 0;
|
|
2739
|
+
if (!rule || rule.outputs.length > 0 || LIBRARY_RULES.has(rule.ruleClass) || rule.ruleClass === "filegroup" || rule.ruleClass === "alias")
|
|
2740
|
+
continue;
|
|
2741
|
+
const { repo, pkg } = splitLabel(rule.label);
|
|
2742
|
+
const prefix = `${repo ? `../${repo}/` : ""}${pkg ? `${pkg}/` : ""}`;
|
|
2743
|
+
rule.outputs = (list2 ?? "").split(" ").filter((file2) => file2.startsWith(prefix)).map((file2) => `${repo ? `@@${repo}` : ""}//${pkg}:${file2.slice(prefix.length)}`);
|
|
2744
|
+
}
|
|
2745
|
+
const info = Object.fromEntries(
|
|
2746
|
+
stored.info.trim().split("\n").map((line) => {
|
|
2747
|
+
const at = line.indexOf(": ");
|
|
2748
|
+
return [line.slice(0, at), line.slice(at + 2)];
|
|
2749
|
+
})
|
|
2750
|
+
);
|
|
2751
|
+
const graph = {
|
|
2752
|
+
rules: rules2,
|
|
2753
|
+
app,
|
|
2754
|
+
appDeps,
|
|
2755
|
+
outputBase: info.output_base ?? "",
|
|
2756
|
+
outputs: import_node_path.default.join(info.execution_root ?? "", stored.bin),
|
|
2757
|
+
bin: import_node_path.default.join(root, ".build", "peach-bazel", "bin"),
|
|
2758
|
+
minimumOS: app.attrs.get("minimum_os_version")?.value || null
|
|
2759
|
+
};
|
|
2760
|
+
graphs.set(key, graph);
|
|
2761
|
+
return graph;
|
|
2762
|
+
}
|
|
2763
|
+
function splitLabel(label) {
|
|
2764
|
+
const match = /^(?:@@?([^/]*))?\/\/([^:]*):(.+)$/.exec(label);
|
|
2765
|
+
if (!match) throw new Error(`not a bazel label: ${label}`);
|
|
2766
|
+
return { repo: match[1] ?? "", pkg: match[2], name: match[3] };
|
|
2767
|
+
}
|
|
2768
|
+
function canonicalLabel(label, from) {
|
|
2769
|
+
if (label.startsWith("@") || label.startsWith("//")) {
|
|
2770
|
+
return label.includes(":") ? label : `${label}:${label.slice(label.lastIndexOf("/") + 1)}`;
|
|
2771
|
+
}
|
|
2772
|
+
const { repo, pkg } = splitLabel(from);
|
|
2773
|
+
return `${repo ? `@@${repo}` : ""}//${pkg}:${label.replace(/^:/, "")}`;
|
|
2774
|
+
}
|
|
2775
|
+
var BazelFiles = class {
|
|
2776
|
+
constructor(graph, root) {
|
|
2777
|
+
this.graph = graph;
|
|
2778
|
+
this.root = root;
|
|
2779
|
+
for (const rule of graph.rules.values())
|
|
2780
|
+
for (const output2 of rule.outputs) this.generated.add(output2);
|
|
2781
|
+
}
|
|
2782
|
+
generated = /* @__PURE__ */ new Set();
|
|
2783
|
+
repoDir(repo) {
|
|
2784
|
+
if (repo === "") return this.root;
|
|
2785
|
+
const external = import_node_path.default.join(this.graph.outputBase, "external");
|
|
2786
|
+
for (const name of [repo, `${repo}+`])
|
|
2787
|
+
if (import_node_fs.default.existsSync(import_node_path.default.join(external, name))) return import_node_path.default.join(external, name);
|
|
2788
|
+
throw new Error(`bazel external repository ${repo} is not fetched`);
|
|
2789
|
+
}
|
|
2790
|
+
/** the package directory in the source tree, or under bazel-bin for outputs. */
|
|
2791
|
+
packageDirs(label) {
|
|
2792
|
+
const { repo, pkg } = splitLabel(label);
|
|
2793
|
+
const source = import_node_path.default.join(this.repoDir(repo), pkg);
|
|
2794
|
+
const bin = repo ? import_node_path.default.join(this.graph.bin, "external", import_node_path.default.basename(this.repoDir(repo)), pkg) : import_node_path.default.join(this.graph.bin, pkg);
|
|
2795
|
+
return [source, bin];
|
|
2796
|
+
}
|
|
2797
|
+
path(label) {
|
|
2798
|
+
const { repo, pkg, name } = splitLabel(label);
|
|
2799
|
+
if (this.generated.has(label)) {
|
|
2800
|
+
const [, bin] = this.packageDirs(label);
|
|
2801
|
+
return import_node_path.default.join(bin, name);
|
|
2802
|
+
}
|
|
2803
|
+
return import_node_path.default.join(this.repoDir(repo), pkg, name);
|
|
2804
|
+
}
|
|
2805
|
+
/** files a label list names: filegroups, aliases and rule outputs expanded. */
|
|
2806
|
+
expand(labels, from) {
|
|
2807
|
+
const files = [];
|
|
2808
|
+
const visit = (raw, owner, seen) => {
|
|
2809
|
+
const label = canonicalLabel(raw, owner);
|
|
2810
|
+
if (seen.has(label)) return;
|
|
2811
|
+
seen.add(label);
|
|
2812
|
+
const rule = this.graph.rules.get(label);
|
|
2813
|
+
if (!rule) {
|
|
2814
|
+
files.push(this.path(label));
|
|
2815
|
+
return;
|
|
2816
|
+
}
|
|
2817
|
+
if (rule.ruleClass === "alias") {
|
|
2818
|
+
const actual = rule.attrs.get("actual")?.value;
|
|
2819
|
+
if (actual) visit(actual, label, seen);
|
|
2820
|
+
} else if (rule.ruleClass === "filegroup")
|
|
2821
|
+
for (const item of rule.attrs.get("srcs")?.list ?? []) visit(item, label, seen);
|
|
2822
|
+
else for (const output2 of rule.outputs) files.push(this.path(output2));
|
|
2823
|
+
};
|
|
2824
|
+
for (const label of labels) visit(label, from, /* @__PURE__ */ new Set());
|
|
2825
|
+
return [...new Set(files)];
|
|
2826
|
+
}
|
|
2827
|
+
};
|
|
2828
|
+
function readBazelAppTarget(buildFile, targetName, configurationName, options = {}) {
|
|
2829
|
+
if (!targetName)
|
|
2830
|
+
throw new Error(
|
|
2831
|
+
`${buildFile}: pass --target with the ios_application the bazel package builds`
|
|
2832
|
+
);
|
|
2833
|
+
const root = import_node_fs.default.realpathSync.native(workspaceRoot(import_node_fs.default.realpathSync.native(buildFile)));
|
|
2834
|
+
const pkg = import_node_path.default.relative(root, import_node_path.default.dirname(import_node_fs.default.realpathSync.native(buildFile)));
|
|
2835
|
+
const label = `//${pkg.split(import_node_path.default.sep).join("/")}:${targetName}`;
|
|
2836
|
+
const configuration = configurationName ?? "Debug";
|
|
2837
|
+
const graph = bazelGraph(root, label, configuration);
|
|
2838
|
+
const files = new BazelFiles(graph, root);
|
|
2839
|
+
const ruleOf = (raw, from) => {
|
|
2840
|
+
let rule = graph.rules.get(canonicalLabel(raw, from));
|
|
2841
|
+
while (rule?.ruleClass === "alias")
|
|
2842
|
+
rule = graph.rules.get(
|
|
2843
|
+
canonicalLabel(rule.attrs.get("actual")?.value ?? "", rule.label)
|
|
2844
|
+
);
|
|
2845
|
+
if (!rule) throw new Error(`${from} depends on ${raw}, which bazel did not configure`);
|
|
2846
|
+
return rule;
|
|
2847
|
+
};
|
|
2848
|
+
const appLibraries = graph.appDeps.map((dep) => ruleOf(dep, label)).filter((rule) => LIBRARY_RULES.has(rule.ruleClass));
|
|
2849
|
+
const appLabels = new Set(appLibraries.map((rule) => rule.label));
|
|
2850
|
+
const minimumOS = graph.minimumOS ?? "15.0";
|
|
2851
|
+
const order = [];
|
|
2852
|
+
const placed = /* @__PURE__ */ new Set();
|
|
2853
|
+
const depsOf = (rule) => (rule.attrs.get("deps")?.list ?? []).map((dep) => ruleOf(dep, rule.label)).filter((dep) => LIBRARY_RULES.has(dep.ruleClass));
|
|
2854
|
+
const place = (rule) => {
|
|
2855
|
+
if (placed.has(rule.label)) return;
|
|
2856
|
+
placed.add(rule.label);
|
|
2857
|
+
for (const dep of depsOf(rule)) place(dep);
|
|
2858
|
+
order.push(rule);
|
|
2859
|
+
};
|
|
2860
|
+
for (const rule of appLibraries) place(rule);
|
|
2861
|
+
const propagated = /* @__PURE__ */ new Map();
|
|
2862
|
+
const propagatedOf = (rule) => {
|
|
2863
|
+
const known = propagated.get(rule.label);
|
|
2864
|
+
if (known) return known;
|
|
2865
|
+
const own = {
|
|
2866
|
+
includes: (rule.attrs.get("includes")?.list ?? []).flatMap(
|
|
2867
|
+
(include) => files.packageDirs(rule.label).map((dir) => import_node_path.default.normalize(import_node_path.default.join(dir, include)))
|
|
2868
|
+
),
|
|
2869
|
+
defines: rule.attrs.get("defines")?.list ?? [],
|
|
2870
|
+
moduleMaps: ["objc_library", "cc_library"].includes(rule.ruleClass) ? [moduleMapOf(rule)] : []
|
|
2871
|
+
};
|
|
2872
|
+
const merged = {
|
|
2873
|
+
includes: [...own.includes],
|
|
2874
|
+
defines: [...own.defines],
|
|
2875
|
+
moduleMaps: [...own.moduleMaps]
|
|
2876
|
+
};
|
|
2877
|
+
for (const dep of depsOf(rule)) {
|
|
2878
|
+
const inherited = propagatedOf(dep);
|
|
2879
|
+
merged.includes.push(...inherited.includes);
|
|
2880
|
+
merged.defines.push(...inherited.defines);
|
|
2881
|
+
merged.moduleMaps.push(...inherited.moduleMaps);
|
|
2882
|
+
}
|
|
2883
|
+
const result = {
|
|
2884
|
+
includes: [...new Set(merged.includes)],
|
|
2885
|
+
defines: [...new Set(merged.defines)],
|
|
2886
|
+
moduleMaps: [...new Set(merged.moduleMaps)]
|
|
2887
|
+
};
|
|
2888
|
+
propagated.set(rule.label, result);
|
|
2889
|
+
return result;
|
|
2890
|
+
};
|
|
2891
|
+
const debug = configuration !== "Release";
|
|
2892
|
+
const products = import_node_path.default.join(root, PRODUCTS);
|
|
2893
|
+
const resources = [];
|
|
2894
|
+
const resourceNames = {};
|
|
2895
|
+
const moduleNameOf = (rule) => rule.attrs.get("module_name")?.value || splitLabel(rule.label).pkg.concat("_", splitLabel(rule.label).name).replace(/[^A-Za-z0-9_]/g, "_");
|
|
2896
|
+
const moduleMapOf = (rule) => import_node_path.default.join(products, "modulemaps", moduleNameOf(rule), "module.modulemap");
|
|
2897
|
+
const idOf = (rule) => `${root}/BUILD#${rule.label}`;
|
|
2898
|
+
const collectData = (rule) => {
|
|
2899
|
+
for (const raw of rule.attrs.get("data")?.list ?? []) {
|
|
2900
|
+
const target = graph.rules.get(canonicalLabel(raw, rule.label));
|
|
2901
|
+
if (target?.ruleClass === "apple_resource_bundle") {
|
|
2902
|
+
const bundle = `${target.attrs.get("bundle_name")?.value || splitLabel(target.label).name}.bundle`;
|
|
2903
|
+
for (const file of files.expand(
|
|
2904
|
+
target.attrs.get("resources")?.list ?? [],
|
|
2905
|
+
target.label
|
|
2906
|
+
)) {
|
|
2907
|
+
resources.push(file);
|
|
2908
|
+
resourceNames[file] = import_node_path.default.posix.join(bundle, import_node_path.default.basename(file));
|
|
2909
|
+
}
|
|
2910
|
+
continue;
|
|
2911
|
+
}
|
|
2912
|
+
for (const file of files.expand([raw], rule.label)) resources.push(file);
|
|
2913
|
+
}
|
|
2914
|
+
};
|
|
2915
|
+
const moduleTarget = (rule) => {
|
|
2916
|
+
const moduleName = moduleNameOf(rule);
|
|
2917
|
+
const srcs = files.expand(rule.attrs.get("srcs")?.list ?? [], rule.label);
|
|
2918
|
+
const deps = depsOf(rule);
|
|
2919
|
+
const inherited = deps.map(propagatedOf);
|
|
2920
|
+
const includes = [
|
|
2921
|
+
.../* @__PURE__ */ new Set([
|
|
2922
|
+
...propagatedOf(rule).includes,
|
|
2923
|
+
...inherited.flatMap((value) => value.includes)
|
|
2924
|
+
])
|
|
2925
|
+
];
|
|
2926
|
+
const defines = [
|
|
2927
|
+
.../* @__PURE__ */ new Set([
|
|
2928
|
+
...rule.attrs.get("local_defines")?.list ?? [],
|
|
2929
|
+
...propagatedOf(rule).defines
|
|
2930
|
+
])
|
|
2931
|
+
];
|
|
2932
|
+
collectData(rule);
|
|
2933
|
+
const copts = rule.ruleClass === "swift_library" ? rule.attrs.get("copts")?.list ?? [] : shellTokens(rule.attrs.get("copts")?.list ?? []);
|
|
2934
|
+
const base = {
|
|
2935
|
+
id: idOf(rule),
|
|
2936
|
+
name: moduleName,
|
|
2937
|
+
targetIdentity: rule.label,
|
|
2938
|
+
targetDependencies: deps.map((dep) => dep.label),
|
|
2939
|
+
moduleName,
|
|
2940
|
+
resources: [],
|
|
2941
|
+
resourceNames: {},
|
|
2942
|
+
copiedFiles: [],
|
|
2943
|
+
generatedInfoPlist: false,
|
|
2944
|
+
languageMode: 5,
|
|
2945
|
+
mainActorIsolation: false,
|
|
2946
|
+
iosDeploymentTarget: minimumOS,
|
|
2947
|
+
// rules_apple compiles catalogs with actool but never generates symbols
|
|
2948
|
+
assetSettings: {
|
|
2949
|
+
IPHONEOS_DEPLOYMENT_TARGET: minimumOS,
|
|
2950
|
+
ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOLS: "NO"
|
|
2951
|
+
},
|
|
2952
|
+
packageProducts: []
|
|
2953
|
+
};
|
|
2954
|
+
if (rule.ruleClass === "swift_library") {
|
|
2955
|
+
const sources = srcs.filter((file) => file.endsWith(".swift"));
|
|
2956
|
+
const packageName = rule.attrs.get("package_name")?.value;
|
|
2957
|
+
const importer = [
|
|
2958
|
+
...includes.flatMap((dir) => ["-Xcc", `-I${dir}`]),
|
|
2959
|
+
...inherited.flatMap((value) => value.defines).flatMap((define) => ["-Xcc", `-D${define}`]),
|
|
2960
|
+
// rules_swift hands swift each clang dependency's module map
|
|
2961
|
+
...[...new Set(inherited.flatMap((value) => value.moduleMaps))].flatMap((map) => [
|
|
2962
|
+
"-Xcc",
|
|
2963
|
+
`-fmodule-map-file=${map}`
|
|
2964
|
+
])
|
|
2965
|
+
];
|
|
2966
|
+
return {
|
|
2967
|
+
...base,
|
|
2968
|
+
sources,
|
|
2969
|
+
allSources: sources,
|
|
2970
|
+
defines: [
|
|
2971
|
+
...debug ? ["DEBUG"] : [],
|
|
2972
|
+
...copts.flatMap(
|
|
2973
|
+
(flag, at) => flag === "-D" ? [copts[at + 1]] : flag.startsWith("-D") ? [flag.slice(2)] : []
|
|
2974
|
+
)
|
|
2975
|
+
],
|
|
2976
|
+
swift: {
|
|
2977
|
+
flags: [
|
|
2978
|
+
...debug ? ["-Onone", "-enable-testing"] : ["-O"],
|
|
2979
|
+
...copts.filter(
|
|
2980
|
+
(flag, at) => !flag.startsWith("-D") && copts[at - 1] !== "-D"
|
|
2981
|
+
),
|
|
2982
|
+
...importer,
|
|
2983
|
+
// the package rules_swift names only when asked
|
|
2984
|
+
...packageName ? ["-package-name", packageName] : []
|
|
2985
|
+
],
|
|
2986
|
+
includePaths: [],
|
|
2987
|
+
cxxInterop: false,
|
|
2988
|
+
cxxStandard: null,
|
|
2989
|
+
compatibility: null
|
|
2990
|
+
}
|
|
2991
|
+
};
|
|
2992
|
+
}
|
|
2993
|
+
const hdrs = files.expand(
|
|
2994
|
+
[
|
|
2995
|
+
...rule.attrs.get("hdrs")?.list ?? [],
|
|
2996
|
+
...rule.attrs.get("textual_hdrs")?.list ?? []
|
|
2997
|
+
],
|
|
2998
|
+
rule.label
|
|
2999
|
+
);
|
|
3000
|
+
const units = srcs.filter((file) => NATIVE_SOURCE.test(file));
|
|
3001
|
+
const objc = rule.ruleClass === "objc_library";
|
|
3002
|
+
const modular = objc && rule.attrs.get("enable_modules")?.bool === true;
|
|
3003
|
+
const moduleMap = moduleMapOf(rule);
|
|
3004
|
+
const published = hdrs.filter((file) => HEADER.test(file));
|
|
3005
|
+
const textual = new Set(
|
|
3006
|
+
files.expand(rule.attrs.get("textual_hdrs")?.list ?? [], rule.label)
|
|
3007
|
+
);
|
|
3008
|
+
const text2 = `module ${moduleName} {
|
|
3009
|
+
${published.map(
|
|
3010
|
+
(file) => ` ${textual.has(file) ? "textual header" : "header"} "${import_node_path.default.relative(import_node_path.default.dirname(moduleMap), file)}"
|
|
3011
|
+
`
|
|
3012
|
+
).join("")} export *
|
|
3013
|
+
}
|
|
3014
|
+
`;
|
|
3015
|
+
import_node_fs.default.mkdirSync(import_node_path.default.dirname(moduleMap), { recursive: true });
|
|
3016
|
+
if (!import_node_fs.default.existsSync(moduleMap) || import_node_fs.default.readFileSync(moduleMap, "utf8") !== text2)
|
|
3017
|
+
import_node_fs.default.writeFileSync(moduleMap, text2);
|
|
3018
|
+
const clangDefines = [...debug ? ["DEBUG=1"] : [], ...defines].map(
|
|
3019
|
+
(define) => `-D${define}`
|
|
3020
|
+
);
|
|
3021
|
+
return {
|
|
3022
|
+
...base,
|
|
3023
|
+
sources: [],
|
|
3024
|
+
allSources: units,
|
|
3025
|
+
defines: [],
|
|
3026
|
+
objc: {
|
|
3027
|
+
alwayslink: rule.attrs.get("alwayslink")?.bool === true,
|
|
3028
|
+
headers: [
|
|
3029
|
+
.../* @__PURE__ */ new Set([...published, ...srcs.filter((file) => HEADER.test(file))])
|
|
3030
|
+
],
|
|
3031
|
+
publicHeaders: published,
|
|
3032
|
+
flattensPublicHeaders: false,
|
|
3033
|
+
prefixHeader: null,
|
|
3034
|
+
bridgingHeader: null,
|
|
3035
|
+
headerSearchPaths: includes,
|
|
3036
|
+
// bazel's execroot and output tree are quote include roots
|
|
3037
|
+
userHeaderSearchPaths: [root, graph.bin],
|
|
3038
|
+
frameworkSearchPaths: [products],
|
|
3039
|
+
flags: [
|
|
3040
|
+
objc ? "-fobjc-arc" : "-fno-objc-arc",
|
|
3041
|
+
...modular ? ["-fmodules"] : [],
|
|
3042
|
+
...clangDefines,
|
|
3043
|
+
...copts.filter((flag) => !CXX_STANDARD.test(flag))
|
|
3044
|
+
],
|
|
3045
|
+
importerFlags: [...modular ? ["-fmodules"] : [], ...clangDefines],
|
|
3046
|
+
// apple clang keeps c++ and objective-c++ units out of modules unless asked
|
|
3047
|
+
cxxFlags: [
|
|
3048
|
+
...modular ? ["-fno-cxx-modules"] : [],
|
|
3049
|
+
// copts reach every unit, and a c++ standard among them governs the c++ ones
|
|
3050
|
+
...copts.filter((flag) => CXX_STANDARD.test(flag)),
|
|
3051
|
+
...shellTokens(rule.attrs.get("cxxopts")?.list ?? [])
|
|
3052
|
+
],
|
|
3053
|
+
fileFlags: {},
|
|
3054
|
+
headerMaps: [],
|
|
3055
|
+
productHeaders: { [moduleMap]: moduleMap }
|
|
3056
|
+
}
|
|
3057
|
+
};
|
|
3058
|
+
};
|
|
3059
|
+
const built = order.map((rule) => ({ rule, module: moduleTarget(rule) }));
|
|
3060
|
+
const appParts = built.filter(({ rule }) => appLabels.has(rule.label));
|
|
3061
|
+
const swiftParts = appParts.filter(({ module: module2 }) => module2.sources.length > 0);
|
|
3062
|
+
const clangParts = appParts.filter(({ module: module2 }) => module2.objc);
|
|
3063
|
+
if (swiftParts.length > 1 || clangParts.length > 1)
|
|
3064
|
+
throw new Error(
|
|
3065
|
+
`${label} links ${swiftParts.length} swift and ${clangParts.length} clang libraries directly; one app module of each is modeled`
|
|
3066
|
+
);
|
|
3067
|
+
const named = swiftParts[0]?.module ?? appParts[0].module;
|
|
3068
|
+
const appModule = {
|
|
3069
|
+
...named,
|
|
3070
|
+
id: idOf(graph.app),
|
|
3071
|
+
name: targetName,
|
|
3072
|
+
targetIdentity: graph.app.label,
|
|
3073
|
+
targetDependencies: [
|
|
3074
|
+
...new Set(appParts.flatMap(({ module: module2 }) => module2.targetDependencies))
|
|
3075
|
+
].filter((dep) => !appLabels.has(dep)),
|
|
3076
|
+
allSources: appParts.flatMap(({ module: module2 }) => module2.allSources),
|
|
3077
|
+
...clangParts[0]?.module.objc ? { objc: clangParts[0].module.objc } : {}
|
|
3078
|
+
};
|
|
3079
|
+
const frameworks = built.filter(({ rule }) => !appLabels.has(rule.label)).map(({ module: module2 }) => module2);
|
|
3080
|
+
const binaryFrameworks = [
|
|
3081
|
+
...new Map(
|
|
3082
|
+
order.flatMap(
|
|
3083
|
+
(rule) => (rule.attrs.get("deps")?.list ?? []).map((dep) => ruleOf(dep, rule.label))
|
|
3084
|
+
).filter((dep) => dep.ruleClass.endsWith("_xcframework_import")).flatMap((dep) => {
|
|
3085
|
+
const bundle = files.expand(dep.attrs.get("xcframework_imports")?.list ?? [], dep.label).map(
|
|
3086
|
+
(file) => file.slice(0, file.indexOf(".xcframework/") + ".xcframework".length)
|
|
3087
|
+
).find((file) => file.endsWith(".xcframework"));
|
|
3088
|
+
return bundle ? [[import_node_path.default.basename(bundle, ".xcframework"), bundle]] : [];
|
|
3089
|
+
})
|
|
3090
|
+
)
|
|
3091
|
+
].map(([name, file]) => ({
|
|
3092
|
+
name,
|
|
3093
|
+
path: file
|
|
3094
|
+
}));
|
|
3095
|
+
const rustCrateOf = (rule) => {
|
|
3096
|
+
const crateRoot = files.expand(
|
|
3097
|
+
[rule.attrs.get("crate_root")?.value ?? ""],
|
|
3098
|
+
rule.label
|
|
3099
|
+
)[0];
|
|
3100
|
+
let dir = crateRoot ? import_node_path.default.dirname(crateRoot) : root;
|
|
3101
|
+
while (!import_node_fs.default.existsSync(import_node_path.default.join(dir, "Cargo.toml")) && dir.startsWith(`${root}${import_node_path.default.sep}`))
|
|
3102
|
+
dir = import_node_path.default.dirname(dir);
|
|
3103
|
+
const manifest = import_node_path.default.join(dir, "Cargo.toml");
|
|
3104
|
+
if (!import_node_fs.default.existsSync(manifest))
|
|
3105
|
+
throw new Error(`${rule.label} has no Cargo.toml around its crate root`);
|
|
3106
|
+
return { manifest, features: rule.attrs.get("crate_features")?.list ?? [] };
|
|
3107
|
+
};
|
|
3108
|
+
const sdkFrameworks = [
|
|
3109
|
+
...new Set(
|
|
3110
|
+
order.flatMap((rule) => [
|
|
3111
|
+
...rule.attrs.get("sdk_frameworks")?.list ?? [],
|
|
3112
|
+
...rule.attrs.get("weak_sdk_frameworks")?.list ?? []
|
|
3113
|
+
])
|
|
3114
|
+
)
|
|
3115
|
+
].sort();
|
|
3116
|
+
const infoPlistFiles = files.expand(
|
|
3117
|
+
graph.app.attrs.get("infoplists")?.list ?? [],
|
|
3118
|
+
graph.app.label
|
|
3119
|
+
);
|
|
3120
|
+
const absent = () => [
|
|
3121
|
+
...infoPlistFiles,
|
|
3122
|
+
...[...frameworks, appModule].flatMap((module2) => [
|
|
3123
|
+
...module2.allSources,
|
|
3124
|
+
...module2.objc?.headers ?? []
|
|
3125
|
+
])
|
|
3126
|
+
].filter((file) => !import_node_fs.default.existsSync(file));
|
|
3127
|
+
const mirror = () => {
|
|
3128
|
+
for (const rule of graph.rules.values())
|
|
3129
|
+
for (const output2 of rule.outputs) {
|
|
3130
|
+
const target = files.path(output2);
|
|
3131
|
+
if (target.endsWith(".a")) continue;
|
|
3132
|
+
const source = import_node_path.default.join(graph.outputs, import_node_path.default.relative(graph.bin, target));
|
|
3133
|
+
if (!import_node_fs.default.existsSync(source)) continue;
|
|
3134
|
+
const from = import_node_fs.default.statSync(source);
|
|
3135
|
+
const to = import_node_fs.default.existsSync(target) ? import_node_fs.default.statSync(target) : null;
|
|
3136
|
+
if (to && to.mtimeMs === from.mtimeMs && to.size === from.size) continue;
|
|
3137
|
+
import_node_fs.default.rmSync(target, { recursive: true, force: true });
|
|
3138
|
+
import_node_fs.default.mkdirSync(import_node_path.default.dirname(target), { recursive: true });
|
|
3139
|
+
import_node_fs.default.cpSync(source, target, {
|
|
3140
|
+
recursive: true,
|
|
3141
|
+
dereference: true,
|
|
3142
|
+
preserveTimestamps: true
|
|
3143
|
+
});
|
|
3144
|
+
}
|
|
3145
|
+
};
|
|
3146
|
+
mirror();
|
|
3147
|
+
if (options.prepareGeneratedSources && absent().length > 0) {
|
|
3148
|
+
const owners = /* @__PURE__ */ new Map();
|
|
3149
|
+
for (const rule of graph.rules.values())
|
|
3150
|
+
for (const output2 of rule.outputs) owners.set(files.path(output2), rule.label);
|
|
3151
|
+
const generators = [
|
|
3152
|
+
...new Set(absent().flatMap((file) => owners.get(file) ?? []))
|
|
3153
|
+
].sort();
|
|
3154
|
+
if (generators.length > 0)
|
|
3155
|
+
(0, import_node_child_process.execFileSync)(
|
|
3156
|
+
bazelBinary(root),
|
|
3157
|
+
["build", ...configurationFlags(configuration), ...generators],
|
|
3158
|
+
{ cwd: root, stdio: ["ignore", "pipe", "pipe"], maxBuffer: 1 << 28 }
|
|
3159
|
+
);
|
|
3160
|
+
mirror();
|
|
3161
|
+
}
|
|
3162
|
+
const missing = options.requireSources === false ? [] : absent();
|
|
3163
|
+
if (missing.length > 0)
|
|
3164
|
+
throw new Error(
|
|
3165
|
+
`bazel generates ${missing.length} sources this app compiles that are not built: ${missing.slice(0, 5).map((file) => import_node_path.default.relative(root, file)).join(", ")}`
|
|
3166
|
+
);
|
|
3167
|
+
const archives = /* @__PURE__ */ new Map();
|
|
3168
|
+
for (const rule of order) {
|
|
3169
|
+
for (const dep of rule.attrs.get("deps")?.list ?? []) {
|
|
3170
|
+
const owner = ruleOf(dep, rule.label);
|
|
3171
|
+
if (owner.ruleClass !== "rust_static_library") continue;
|
|
3172
|
+
const crate = owner.attrs.get("crate_name")?.value || splitLabel(owner.label).name;
|
|
3173
|
+
const entry = archives.get(owner.label) ?? {
|
|
3174
|
+
library: `lib${crate}.a`,
|
|
3175
|
+
holders: [],
|
|
3176
|
+
rustCrate: rustCrateOf(owner)
|
|
3177
|
+
};
|
|
3178
|
+
entry.holders.push(rule);
|
|
3179
|
+
archives.set(owner.label, entry);
|
|
3180
|
+
}
|
|
3181
|
+
for (const raw of rule.attrs.get("srcs")?.list ?? []) {
|
|
3182
|
+
const label2 = canonicalLabel(raw, rule.label);
|
|
3183
|
+
for (const archive of files.expand([raw], rule.label).filter((file) => file.endsWith(".a"))) {
|
|
3184
|
+
const owner = [...graph.rules.values()].find(
|
|
3185
|
+
(item) => item.outputs.some((output2) => files.path(output2) === archive)
|
|
3186
|
+
);
|
|
3187
|
+
const key = owner?.label ?? label2;
|
|
3188
|
+
const entry = archives.get(key) ?? {
|
|
3189
|
+
library: import_node_path.default.basename(archive),
|
|
3190
|
+
holders: []
|
|
3191
|
+
};
|
|
3192
|
+
if (!entry.holders.includes(rule)) entry.holders.push(rule);
|
|
3193
|
+
archives.set(key, entry);
|
|
3194
|
+
}
|
|
3195
|
+
}
|
|
3196
|
+
}
|
|
3197
|
+
const appIncludes = new Set(
|
|
3198
|
+
archives.size === 0 ? [] : [...frameworks, appModule].flatMap(
|
|
3199
|
+
(module2) => [
|
|
3200
|
+
...module2.allSources.filter((file) => !file.endsWith(".swift")),
|
|
3201
|
+
...module2.objc?.headers ?? []
|
|
3202
|
+
].filter((file) => import_node_fs.default.existsSync(file)).flatMap(
|
|
3203
|
+
(file) => [
|
|
3204
|
+
...import_node_fs.default.readFileSync(file, "utf8").matchAll(/^\s*#\s*(?:include|import)\s*[<"]([^>"\n]+)[>"]/gm)
|
|
3205
|
+
].map((match) => match[1])
|
|
3206
|
+
)
|
|
3207
|
+
)
|
|
3208
|
+
);
|
|
3209
|
+
for (const [label2, { library, holders, rustCrate }] of archives) {
|
|
3210
|
+
const linkers = new Set(holders);
|
|
3211
|
+
for (const rule of order)
|
|
3212
|
+
if (depsOf(rule).some((dep) => holders.includes(dep))) linkers.add(rule);
|
|
3213
|
+
const headers = [...linkers].flatMap((rule) => {
|
|
3214
|
+
const includes = propagatedOf(rule).includes;
|
|
3215
|
+
return files.expand(
|
|
3216
|
+
[
|
|
3217
|
+
...rule.attrs.get("hdrs")?.list ?? [],
|
|
3218
|
+
...rule.attrs.get("textual_hdrs")?.list ?? []
|
|
3219
|
+
],
|
|
3220
|
+
rule.label
|
|
3221
|
+
).filter((file) => /\.(?:h|hh|hpp|hxx|inc)$/.test(file)).map((file) => {
|
|
3222
|
+
const include = includes.find((dir) => file.startsWith(`${dir}${import_node_path.default.sep}`));
|
|
3223
|
+
return {
|
|
3224
|
+
file,
|
|
3225
|
+
name: include ? import_node_path.default.relative(include, file) : import_node_path.default.basename(file)
|
|
3226
|
+
};
|
|
3227
|
+
});
|
|
3228
|
+
});
|
|
3229
|
+
const name = `${splitLabel(label2).name}`;
|
|
3230
|
+
const imported = new Set(
|
|
3231
|
+
[...linkers].filter((rule) => rule.attrs.get("module_name")?.value).flatMap((rule) => files.expand(rule.attrs.get("hdrs")?.list ?? [], rule.label))
|
|
3232
|
+
);
|
|
3233
|
+
const entries = headers.filter(
|
|
3234
|
+
(header) => imported.has(header.file) || [...appIncludes].some(
|
|
3235
|
+
(include) => header.name === include || header.name.endsWith(`/${include}`)
|
|
3236
|
+
)
|
|
3237
|
+
);
|
|
3238
|
+
const bundle = import_node_path.default.join(products, "archives", `${name}.xcframework`);
|
|
3239
|
+
const slice = import_node_path.default.join(bundle, "ios-arm64-simulator");
|
|
3240
|
+
const contents = new Map([
|
|
3241
|
+
[
|
|
3242
|
+
"Info.plist",
|
|
3243
|
+
import_plist2.default.build({
|
|
3244
|
+
AvailableLibraries: [
|
|
3245
|
+
{
|
|
3246
|
+
LibraryIdentifier: "ios-arm64-simulator",
|
|
3247
|
+
LibraryPath: library,
|
|
3248
|
+
HeadersPath: "Headers",
|
|
3249
|
+
SupportedArchitectures: ["arm64"],
|
|
3250
|
+
SupportedPlatform: "ios",
|
|
3251
|
+
SupportedPlatformVariant: "simulator"
|
|
3252
|
+
}
|
|
3253
|
+
],
|
|
3254
|
+
CFBundlePackageType: "XFWK",
|
|
3255
|
+
XCFrameworkFormatVersion: "1.0"
|
|
3256
|
+
})
|
|
3257
|
+
],
|
|
3258
|
+
// c library headers may lean on the standard ones their callers include first
|
|
3259
|
+
[
|
|
3260
|
+
import_node_path.default.join("ios-arm64-simulator", "Headers", `${name}.h`),
|
|
3261
|
+
[
|
|
3262
|
+
"#include <stddef.h>",
|
|
3263
|
+
"#include <stdio.h>",
|
|
3264
|
+
...entries.map((header) => `#include "${header.name}"`)
|
|
3265
|
+
].join("\n") + "\n"
|
|
3266
|
+
],
|
|
3267
|
+
[
|
|
3268
|
+
import_node_path.default.join("ios-arm64-simulator", "Headers", "module.modulemap"),
|
|
3269
|
+
`module ${name} {
|
|
3270
|
+
header "${name}.h"
|
|
3271
|
+
export *
|
|
3272
|
+
}
|
|
3273
|
+
`
|
|
3274
|
+
],
|
|
3275
|
+
...headers.map(
|
|
3276
|
+
(header) => [
|
|
3277
|
+
import_node_path.default.join("ios-arm64-simulator", "Headers", header.name),
|
|
3278
|
+
import_node_fs.default.readFileSync(header.file)
|
|
3279
|
+
]
|
|
3280
|
+
)
|
|
3281
|
+
]);
|
|
3282
|
+
const digest = (0, import_node_crypto2.createHash)("sha256").update(
|
|
3283
|
+
JSON.stringify(
|
|
3284
|
+
[...contents].map(([file, bytes]) => [
|
|
3285
|
+
file,
|
|
3286
|
+
(0, import_node_crypto2.createHash)("sha256").update(bytes).digest("hex")
|
|
3287
|
+
])
|
|
3288
|
+
)
|
|
3289
|
+
).digest("hex");
|
|
3290
|
+
const stamp = import_node_path.default.join(bundle, ".peach-digest");
|
|
3291
|
+
if (!import_node_fs.default.existsSync(stamp) || import_node_fs.default.readFileSync(stamp, "utf8") !== digest) {
|
|
3292
|
+
import_node_fs.default.rmSync(bundle, { recursive: true, force: true });
|
|
3293
|
+
for (const [file, bytes] of contents) {
|
|
3294
|
+
import_node_fs.default.mkdirSync(import_node_path.default.dirname(import_node_path.default.join(bundle, file)), { recursive: true });
|
|
3295
|
+
import_node_fs.default.writeFileSync(import_node_path.default.join(bundle, file), bytes);
|
|
3296
|
+
}
|
|
3297
|
+
import_node_fs.default.writeFileSync(import_node_path.default.join(slice, library), "");
|
|
3298
|
+
import_node_fs.default.writeFileSync(stamp, digest);
|
|
3299
|
+
}
|
|
3300
|
+
binaryFrameworks.push({ name, path: bundle, rustCrate });
|
|
3301
|
+
}
|
|
3302
|
+
const appName = splitLabel(graph.app.label).name;
|
|
3303
|
+
const executableName = graph.app.attrs.get("executable_name")?.value || appName;
|
|
3304
|
+
const bundleName = graph.app.attrs.get("bundle_name")?.value || appName;
|
|
3305
|
+
const bundleId = graph.app.attrs.get("bundle_id")?.value ?? "";
|
|
3306
|
+
const substitutions = {
|
|
3307
|
+
BUNDLE_NAME: bundleName,
|
|
3308
|
+
EXECUTABLE_NAME: executableName,
|
|
3309
|
+
PRODUCT_NAME: bundleName,
|
|
3310
|
+
TARGET_NAME: appName,
|
|
3311
|
+
PRODUCT_BUNDLE_IDENTIFIER: bundleId,
|
|
3312
|
+
PRODUCT_BUNDLE_PACKAGE_TYPE: "APPL"
|
|
3313
|
+
};
|
|
3314
|
+
const substitute = (value) => typeof value === "string" ? value.replace(
|
|
3315
|
+
/\$[({](\w+)(?::rfc1034identifier)?[)}]/g,
|
|
3316
|
+
(whole, key) => substitutions[key] ?? whole
|
|
3317
|
+
) : Array.isArray(value) ? value.map(substitute) : value && typeof value === "object" && !(value instanceof Date) && !Buffer.isBuffer(value) ? Object.fromEntries(
|
|
3318
|
+
Object.entries(value).map(([key, item]) => [key, substitute(item)])
|
|
3319
|
+
) : value;
|
|
3320
|
+
const infoPlistReady = infoPlistFiles.every((file) => import_node_fs.default.existsSync(file));
|
|
3321
|
+
const info = {};
|
|
3322
|
+
for (const file of infoPlistReady ? infoPlistFiles : []) {
|
|
3323
|
+
const fragment = import_plist2.default.parse(import_node_fs.default.readFileSync(file, "utf8"));
|
|
3324
|
+
if (!fragment || typeof fragment !== "object" || Array.isArray(fragment) || fragment instanceof Date || Buffer.isBuffer(fragment))
|
|
3325
|
+
throw new Error(`${file} is not a plist dictionary`);
|
|
3326
|
+
for (const [key, value] of Object.entries(fragment)) {
|
|
3327
|
+
const next = substitute(value);
|
|
3328
|
+
if (key in info && JSON.stringify(info[key]) !== JSON.stringify(next))
|
|
3329
|
+
throw new Error(
|
|
3330
|
+
`${graph.app.label} infoplists set ${key} twice with different values`
|
|
3331
|
+
);
|
|
3332
|
+
info[key] = next;
|
|
3333
|
+
}
|
|
3334
|
+
}
|
|
3335
|
+
const families = graph.app.attrs.get("families")?.list ?? ["iphone"];
|
|
3336
|
+
Object.assign(info, {
|
|
3337
|
+
CFBundleIdentifier: bundleId,
|
|
3338
|
+
CFBundleExecutable: executableName,
|
|
3339
|
+
CFBundleName: bundleName,
|
|
3340
|
+
CFBundlePackageType: "APPL",
|
|
3341
|
+
CFBundleSupportedPlatforms: ["iPhoneSimulator"],
|
|
3342
|
+
MinimumOSVersion: minimumOS,
|
|
3343
|
+
UIDeviceFamily: families.map((family) => family === "ipad" ? 2 : 1)
|
|
3344
|
+
});
|
|
3345
|
+
const buildFiles = [
|
|
3346
|
+
...new Set(
|
|
3347
|
+
order.map((rule) => import_node_path.default.join(files.packageDirs(rule.label)[0], "BUILD"))
|
|
3348
|
+
)
|
|
3349
|
+
].map((file) => import_node_fs.default.existsSync(file) ? file : `${file}.bazel`).filter((file) => import_node_fs.default.existsSync(file));
|
|
3350
|
+
return {
|
|
3351
|
+
...appModule,
|
|
3352
|
+
resources: [...new Set(resources)],
|
|
3353
|
+
resourceNames,
|
|
3354
|
+
sourceLinkGraph: {
|
|
3355
|
+
entry: appModule.id,
|
|
3356
|
+
targets: [
|
|
3357
|
+
{
|
|
3358
|
+
id: appModule.id,
|
|
3359
|
+
sourceTarget: appModule.moduleName,
|
|
3360
|
+
productName: `${targetName}.app`,
|
|
3361
|
+
productType: "com.apple.product-type.application",
|
|
3362
|
+
installName: null,
|
|
3363
|
+
buildVersion: { platform: "iphonesimulator", minimumOS, sdk: null },
|
|
3364
|
+
machOType: "mh_execute",
|
|
3365
|
+
linkerFlags: appLibraries.flatMap(
|
|
3366
|
+
(rule) => shellTokens(rule.attrs.get("linkopts")?.list ?? [])
|
|
3367
|
+
),
|
|
3368
|
+
dependencies: appModule.targetDependencies.map((dep) => ({
|
|
3369
|
+
target: idOf(ruleOf(dep, label)),
|
|
3370
|
+
attributes: []
|
|
3371
|
+
}))
|
|
3372
|
+
},
|
|
3373
|
+
...built.filter(({ rule }) => !appLabels.has(rule.label)).map(({ rule, module: module2 }) => ({
|
|
3374
|
+
id: module2.id,
|
|
3375
|
+
sourceTarget: module2.allSources.length > 0 ? module2.moduleName : null,
|
|
3376
|
+
productName: `${module2.moduleName}.framework`,
|
|
3377
|
+
productType: "com.apple.product-type.framework.static",
|
|
3378
|
+
installName: null,
|
|
3379
|
+
buildVersion: { platform: "iphonesimulator", minimumOS, sdk: null },
|
|
3380
|
+
machOType: "staticlib",
|
|
3381
|
+
linkerFlags: shellTokens(rule.attrs.get("linkopts")?.list ?? []),
|
|
3382
|
+
dependencies: depsOf(rule).map((dep) => ({
|
|
3383
|
+
target: idOf(dep),
|
|
3384
|
+
attributes: []
|
|
3385
|
+
}))
|
|
3386
|
+
}))
|
|
3387
|
+
]
|
|
3388
|
+
},
|
|
3389
|
+
rootDir: root,
|
|
3390
|
+
projectFiles: buildFiles.sort(),
|
|
3391
|
+
projectDirs: [root],
|
|
3392
|
+
infoPlist: infoPlistReady ? import_plist2.default.build(info) : null,
|
|
3393
|
+
infoPlistFile: null,
|
|
3394
|
+
postBundleScripts: [],
|
|
3395
|
+
appIconName: "",
|
|
3396
|
+
developmentRegion: "en",
|
|
3397
|
+
frameworks,
|
|
3398
|
+
resourceProducts: [],
|
|
3399
|
+
linkedProducts: [],
|
|
3400
|
+
localPackageDirs: [],
|
|
3401
|
+
binaryFrameworks,
|
|
3402
|
+
sdkFrameworks,
|
|
3403
|
+
packageResolved: [],
|
|
3404
|
+
appTargets: [targetName],
|
|
3405
|
+
configuration,
|
|
3406
|
+
settings: (key) => key === "PRODUCT_MODULE_NAME" ? appModule.moduleName : key === "IPHONEOS_DEPLOYMENT_TARGET" ? minimumOS : key === "PRODUCT_BUNDLE_IDENTIFIER" ? graph.app.attrs.get("bundle_id")?.value ?? "" : "",
|
|
3407
|
+
cocoapods: null
|
|
3408
|
+
};
|
|
3409
|
+
}
|
|
3410
|
+
var CXX_STANDARD = /^-std=(?:c|gnu)\+\+/;
|
|
3411
|
+
function shellTokens(options) {
|
|
3412
|
+
return options.flatMap((option) => {
|
|
3413
|
+
const words = [];
|
|
3414
|
+
let word = "";
|
|
3415
|
+
let started = false;
|
|
3416
|
+
let quote = null;
|
|
3417
|
+
for (let at = 0; at < option.length; at++) {
|
|
3418
|
+
const char = option[at];
|
|
3419
|
+
if (quote === "'") {
|
|
3420
|
+
if (char === "'") quote = null;
|
|
3421
|
+
else word += char;
|
|
3422
|
+
} else if (char === "\\" && at + 1 < option.length) {
|
|
3423
|
+
word += option[++at];
|
|
3424
|
+
started = true;
|
|
3425
|
+
} else if (quote === '"') {
|
|
3426
|
+
if (char === '"') quote = null;
|
|
3427
|
+
else word += char;
|
|
3428
|
+
} else if (char === "'" || char === '"') {
|
|
3429
|
+
quote = char;
|
|
3430
|
+
started = true;
|
|
3431
|
+
} else if (/\s/.test(char)) {
|
|
3432
|
+
if (started) words.push(word);
|
|
3433
|
+
word = "";
|
|
3434
|
+
started = false;
|
|
3435
|
+
} else {
|
|
3436
|
+
word += char;
|
|
3437
|
+
started = true;
|
|
3438
|
+
}
|
|
3439
|
+
}
|
|
3440
|
+
if (quote) throw new Error(`unterminated quotation in bazel option: ${option}`);
|
|
3441
|
+
if (started) words.push(word);
|
|
3442
|
+
return words;
|
|
3443
|
+
});
|
|
3444
|
+
}
|
|
2527
3445
|
|
|
2528
3446
|
// src/ios-sdk-frameworks.json
|
|
2529
3447
|
var ios_sdk_frameworks_default = {
|
|
@@ -2817,26 +3735,26 @@ var ios_sdk_frameworks_default = {
|
|
|
2817
3735
|
};
|
|
2818
3736
|
|
|
2819
3737
|
// src/prepared-xcode-phases.ts
|
|
2820
|
-
var
|
|
2821
|
-
var
|
|
2822
|
-
var
|
|
3738
|
+
var import_node_crypto3 = require("node:crypto");
|
|
3739
|
+
var import_node_fs2 = __toESM(require("node:fs"), 1);
|
|
3740
|
+
var import_node_path2 = __toESM(require("node:path"), 1);
|
|
2823
3741
|
var workspaces = /* @__PURE__ */ new Map();
|
|
2824
3742
|
var recording;
|
|
2825
3743
|
function relativeFile(root, file) {
|
|
2826
|
-
const relative =
|
|
2827
|
-
if (!relative || relative === ".." || relative.startsWith(`..${
|
|
3744
|
+
const relative = import_node_path2.default.relative(root, file);
|
|
3745
|
+
if (!relative || relative === ".." || relative.startsWith(`..${import_node_path2.default.sep}`) || import_node_path2.default.isAbsolute(relative))
|
|
2828
3746
|
throw new Error(`prepared Xcode output is outside its workspace: ${file}`);
|
|
2829
|
-
return relative.split(
|
|
3747
|
+
return relative.split(import_node_path2.default.sep).join("/");
|
|
2830
3748
|
}
|
|
2831
3749
|
function output(root, file) {
|
|
2832
3750
|
const relative = relativeFile(root, file);
|
|
2833
|
-
const stat =
|
|
3751
|
+
const stat = import_node_fs2.default.statSync(file, { throwIfNoEntry: false });
|
|
2834
3752
|
if (!stat) return { path: relative, sha256: null };
|
|
2835
3753
|
if (!stat.isFile()) throw new Error(`prepared Xcode output is not a file: ${file}`);
|
|
2836
|
-
relativeFile(root,
|
|
2837
|
-
const bytes =
|
|
3754
|
+
relativeFile(root, import_node_fs2.default.realpathSync(file));
|
|
3755
|
+
const bytes = import_node_fs2.default.readFileSync(file);
|
|
2838
3756
|
const prefix = Buffer.from(root);
|
|
2839
|
-
const hash = (0,
|
|
3757
|
+
const hash = (0, import_node_crypto3.createHash)("sha256");
|
|
2840
3758
|
let offset = 0;
|
|
2841
3759
|
for (let index = bytes.indexOf(prefix); index !== -1; index = bytes.indexOf(prefix, offset)) {
|
|
2842
3760
|
hash.update(bytes.subarray(offset, index)).update("\0workspace\0");
|
|
@@ -2850,8 +3768,8 @@ function output(root, file) {
|
|
|
2850
3768
|
}
|
|
2851
3769
|
function preparedXcodePhase(project, target, phase, configuration, outputs, recorded) {
|
|
2852
3770
|
const root = recording?.root ?? [...workspaces.keys()].find((root2) => {
|
|
2853
|
-
const relative =
|
|
2854
|
-
return relative !== ".." && !relative.startsWith(`..${
|
|
3771
|
+
const relative = import_node_path2.default.relative(root2, project);
|
|
3772
|
+
return relative !== ".." && !relative.startsWith(`..${import_node_path2.default.sep}`) && !import_node_path2.default.isAbsolute(relative);
|
|
2855
3773
|
});
|
|
2856
3774
|
if (!root) return false;
|
|
2857
3775
|
const entry = {
|
|
@@ -2886,27 +3804,27 @@ function preparedXcodePhase(project, target, phase, configuration, outputs, reco
|
|
|
2886
3804
|
}
|
|
2887
3805
|
|
|
2888
3806
|
// src/swift-binary-modules.ts
|
|
2889
|
-
var
|
|
2890
|
-
var
|
|
3807
|
+
var import_node_fs3 = __toESM(require("node:fs"), 1);
|
|
3808
|
+
var import_node_path4 = __toESM(require("node:path"), 1);
|
|
2891
3809
|
|
|
2892
3810
|
// src/home-paths.ts
|
|
2893
|
-
var
|
|
2894
|
-
var
|
|
3811
|
+
var import_node_os2 = require("node:os");
|
|
3812
|
+
var import_node_path3 = __toESM(require("node:path"), 1);
|
|
2895
3813
|
var PEACH_HOME_ENV = "PEACH_HOME";
|
|
2896
3814
|
function ambientHomeDir() {
|
|
2897
|
-
return
|
|
3815
|
+
return import_node_path3.default.join((0, import_node_os2.homedir)(), ".peach");
|
|
2898
3816
|
}
|
|
2899
3817
|
function rnxHomeDir() {
|
|
2900
3818
|
const override = process.env[PEACH_HOME_ENV];
|
|
2901
|
-
return override && override.length > 0 ?
|
|
3819
|
+
return override && override.length > 0 ? import_node_path3.default.resolve(override) : ambientHomeDir();
|
|
2902
3820
|
}
|
|
2903
3821
|
function cacheDir() {
|
|
2904
|
-
return
|
|
3822
|
+
return import_node_path3.default.join(rnxHomeDir(), "cache");
|
|
2905
3823
|
}
|
|
2906
3824
|
var DAEMON_LOCKFILE_MAX_BYTES = 16 * 1024;
|
|
2907
3825
|
|
|
2908
3826
|
// src/swift-binary-modules.ts
|
|
2909
|
-
var cacheDir2 =
|
|
3827
|
+
var cacheDir2 = import_node_path4.default.join(cacheDir(), "swift-binary-modules");
|
|
2910
3828
|
function frameworkModules(paths) {
|
|
2911
3829
|
const modules = /* @__PURE__ */ new Set();
|
|
2912
3830
|
for (const file of paths) {
|
|
@@ -2916,21 +3834,21 @@ function frameworkModules(paths) {
|
|
|
2916
3834
|
return [...modules].sort();
|
|
2917
3835
|
}
|
|
2918
3836
|
function localSwiftBinaryModules(dir) {
|
|
2919
|
-
if (!
|
|
2920
|
-
const slices =
|
|
3837
|
+
if (!import_node_fs3.default.existsSync(dir)) return [];
|
|
3838
|
+
const slices = import_node_fs3.default.readdirSync(dir, { withFileTypes: true }).filter((slice) => slice.isDirectory());
|
|
2921
3839
|
const frameworks = frameworkModules(
|
|
2922
3840
|
slices.flatMap(
|
|
2923
|
-
(slice) =>
|
|
3841
|
+
(slice) => import_node_fs3.default.readdirSync(import_node_path4.default.join(dir, slice.name)).map((entry) => `${slice.name}/${entry}`)
|
|
2924
3842
|
)
|
|
2925
3843
|
);
|
|
2926
3844
|
if (frameworks.length > 0) return frameworks;
|
|
2927
3845
|
const modules = /* @__PURE__ */ new Set();
|
|
2928
3846
|
for (const slice of slices) {
|
|
2929
|
-
const headers =
|
|
2930
|
-
if (!
|
|
2931
|
-
for (const file of
|
|
2932
|
-
if (
|
|
2933
|
-
const module2 = moduleMapName(
|
|
3847
|
+
const headers = import_node_path4.default.join(dir, slice.name, "Headers");
|
|
3848
|
+
if (!import_node_fs3.default.existsSync(headers)) continue;
|
|
3849
|
+
for (const file of import_node_fs3.default.readdirSync(headers, { recursive: true, encoding: "utf8" })) {
|
|
3850
|
+
if (import_node_path4.default.basename(file) !== "module.modulemap") continue;
|
|
3851
|
+
const module2 = moduleMapName(import_node_fs3.default.readFileSync(import_node_path4.default.join(headers, file), "utf8"));
|
|
2934
3852
|
if (module2) modules.add(module2);
|
|
2935
3853
|
}
|
|
2936
3854
|
}
|
|
@@ -2938,7 +3856,7 @@ function localSwiftBinaryModules(dir) {
|
|
|
2938
3856
|
}
|
|
2939
3857
|
|
|
2940
3858
|
// src/swift-coverage/provenance.ts
|
|
2941
|
-
var swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"
|
|
3859
|
+
var swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"a19fe4c5e2efe18bbc3ece544ff2c8be660170d63274cccb0ab58e53083050e4","swift-package.ts":"851417572ca9aff699ad368bdc3ff05309b0256e483d40812b9c0beb869d0a5b","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"dec93d0206df8efbd9f538d1f3e3f6173f6eb022cb9ad6b02271481db7578d77","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"d61be5d97c018bef4cf2a423f3625bac9757ab2c8e8541a00a4f29ebf048640f","xcode-project.ts":"5f6ae143588b07818af5ab1800ea8f8286d0fabc65af9ea19738716647502e4a","xcode-target-members.ts":"2f25aaf5a3aa34395983c75935491c06bd68554c47ff1cb06b49c79499c03db0","xcode-json-project.ts":"41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6","openstep-plist.ts":"74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3"}') : swiftCoverageSourceDigests((0, import_node_path.join)(__sootsim_import_meta_dirname, ".."));
|
|
2942
3860
|
|
|
2943
3861
|
// src/swift-coverage/xcode-asset-symbols.ts
|
|
2944
3862
|
var silentTypes = /* @__PURE__ */ new Set([
|
|
@@ -3122,10 +4040,16 @@ var assetSymbolSettingKeys = [
|
|
|
3122
4040
|
];
|
|
3123
4041
|
|
|
3124
4042
|
// src/swift-package-manifest.ts
|
|
3125
|
-
var
|
|
3126
|
-
var
|
|
4043
|
+
var import_node_child_process3 = require("node:child_process");
|
|
4044
|
+
var import_node_path5 = __toESM(require("node:path"), 1);
|
|
3127
4045
|
var import_node_util2 = require("node:util");
|
|
3128
4046
|
|
|
4047
|
+
// src/git-repo-env.ts
|
|
4048
|
+
var UNATTENDED_GIT_ENV = {
|
|
4049
|
+
GIT_TERMINAL_PROMPT: "0",
|
|
4050
|
+
GIT_SSH_COMMAND: process.env.GIT_SSH_COMMAND ?? "ssh -o BatchMode=yes"
|
|
4051
|
+
};
|
|
4052
|
+
|
|
3129
4053
|
// src/swift-compile.ts
|
|
3130
4054
|
var v5 = __toESM(require("valibot"), 1);
|
|
3131
4055
|
|
|
@@ -3323,7 +4247,7 @@ var LOWERING = ["--memory64-lowering", "--table64-lowering"];
|
|
|
3323
4247
|
var WASM_LOWER_IDENTITY = `binaryen ${import_wasm_opt.BINARYEN_VERSION} narrow ${LOWERING.join(" ")} ${FEATURES.join(",")} unoptimized-names`;
|
|
3324
4248
|
|
|
3325
4249
|
// src/swift-icu.ts
|
|
3326
|
-
var
|
|
4250
|
+
var import_node_child_process2 = require("node:child_process");
|
|
3327
4251
|
var import_node_util = require("node:util");
|
|
3328
4252
|
var import_node_zlib = require("node:zlib");
|
|
3329
4253
|
|
|
@@ -3333,7 +4257,7 @@ var VERSION = 1;
|
|
|
3333
4257
|
var SWIFT_ICU_PACKED = `picu${VERSION}`;
|
|
3334
4258
|
|
|
3335
4259
|
// src/swift-icu.ts
|
|
3336
|
-
var run = (0, import_node_util.promisify)(
|
|
4260
|
+
var run = (0, import_node_util.promisify)(import_node_child_process2.execFile);
|
|
3337
4261
|
var deflate = (0, import_node_util.promisify)(import_node_zlib.gzip);
|
|
3338
4262
|
var compressBrotli = (0, import_node_util.promisify)(import_node_zlib.brotliCompress);
|
|
3339
4263
|
var inflateGzip = (0, import_node_util.promisify)(import_node_zlib.gunzip);
|
|
@@ -3366,7 +4290,8 @@ var OPTIONAL_FRAMEWORK_DEPENDENCIES = {
|
|
|
3366
4290
|
RiveRuntime: ["MetalKit"],
|
|
3367
4291
|
MetalKit: ["ModelIO"],
|
|
3368
4292
|
DatadogInternal: [],
|
|
3369
|
-
|
|
4293
|
+
// Kronos resolves hosts with CFHost, which iOS Foundation re-exports without an import
|
|
4294
|
+
DatadogCore: ["DatadogInternal", "CFNetwork"],
|
|
3370
4295
|
DatadogLogs: ["DatadogCore"],
|
|
3371
4296
|
DatadogRUM: ["DatadogCore"],
|
|
3372
4297
|
DatadogTrace: ["DatadogCore"],
|
|
@@ -3413,7 +4338,12 @@ var FOUNDATION_IMPLICIT_MODULES = [
|
|
|
3413
4338
|
var FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
|
|
3414
4339
|
(module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
|
|
3415
4340
|
).join("");
|
|
3416
|
-
var compilerSourceDigest = true ? "
|
|
4341
|
+
var compilerSourceDigest = true ? "eb9ff9bcb5a3add7d39d8e2fab7bd78e5831318b3e729adcc5f7414fca1e40e2" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
4342
|
+
var C_WORDS = new Set(
|
|
4343
|
+
"auto bool break case char const continue default do double else enum extern false float for goto if inline int long register restrict return short signed sizeof static struct switch true typedef union unsigned void volatile while YES NO NULL nil Nil id self super instancetype".split(
|
|
4344
|
+
" "
|
|
4345
|
+
)
|
|
4346
|
+
);
|
|
3417
4347
|
var CORE_FOUNDATION_HANDLE_IMPORTS = [
|
|
3418
4348
|
"CFAllocator",
|
|
3419
4349
|
"CFArray",
|
|
@@ -3453,14 +4383,44 @@ var SHARED_ARTIFACT_BUDGET_BYTES = 4 * 1024 ** 3;
|
|
|
3453
4383
|
|
|
3454
4384
|
// src/answeredNativePackages.ts
|
|
3455
4385
|
var import_node_async_hooks = require("node:async_hooks");
|
|
4386
|
+
|
|
4387
|
+
// src/launchMetadataContract.ts
|
|
4388
|
+
var LAUNCH_METADATA_KEYS_PATH = "node/launch-metadata-keys.json";
|
|
4389
|
+
var LAUNCH_METADATA_KEYS = [
|
|
4390
|
+
"appFonts",
|
|
4391
|
+
"appSplash",
|
|
4392
|
+
"appCatalog",
|
|
4393
|
+
"appBundleResources",
|
|
4394
|
+
"nativeAppIdentity",
|
|
4395
|
+
"nativeFirebase",
|
|
4396
|
+
"expoSwift",
|
|
4397
|
+
"expoWidgets",
|
|
4398
|
+
"expoKotlin",
|
|
4399
|
+
"nitro",
|
|
4400
|
+
"turbo",
|
|
4401
|
+
"widgetExtension",
|
|
4402
|
+
"appManifest",
|
|
4403
|
+
"packageVersions",
|
|
4404
|
+
"dotEnv",
|
|
4405
|
+
"env"
|
|
4406
|
+
];
|
|
4407
|
+
var LAUNCH_METADATA_KEYS_BEFORE_RUNTIME_STATED_THEM = LAUNCH_METADATA_KEYS.filter((key) => key !== "widgetExtension");
|
|
4408
|
+
|
|
4409
|
+
// src/answeredNativePackages.ts
|
|
4410
|
+
var runtimeLaunchMetadataKeysFile = {
|
|
4411
|
+
path: LAUNCH_METADATA_KEYS_PATH,
|
|
4412
|
+
contents: `${JSON.stringify(LAUNCH_METADATA_KEYS)}
|
|
4413
|
+
`
|
|
4414
|
+
};
|
|
3456
4415
|
var unansweredStore = new import_node_async_hooks.AsyncLocalStorage();
|
|
4416
|
+
var answeredStore = new import_node_async_hooks.AsyncLocalStorage();
|
|
3457
4417
|
|
|
3458
4418
|
// src/swift-package-manifest.ts
|
|
3459
|
-
var cacheDir3 =
|
|
3460
|
-
var execFileAsync = (0, import_node_util2.promisify)(
|
|
4419
|
+
var cacheDir3 = import_node_path5.default.join(cacheDir(), "swift-manifests");
|
|
4420
|
+
var execFileAsync = (0, import_node_util2.promisify)(import_node_child_process3.execFile);
|
|
3461
4421
|
|
|
3462
4422
|
// src/xcode-json-project.ts
|
|
3463
|
-
var
|
|
4423
|
+
var import_node_path6 = __toESM(require("node:path"), 1);
|
|
3464
4424
|
var import_json5 = __toESM(require_lib(), 1);
|
|
3465
4425
|
var isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
3466
4426
|
var text = (value) => typeof value === "string" ? value : void 0;
|
|
@@ -3518,7 +4478,7 @@ var PHASE_ISA = {
|
|
|
3518
4478
|
function readXcodeJsonProject(xcodeproj, source) {
|
|
3519
4479
|
const json = import_json5.default.parse(source);
|
|
3520
4480
|
if (!isJsonObject(json)) throw new Error(`${xcodeproj}/project.xcproj is not an object`);
|
|
3521
|
-
const projectDir =
|
|
4481
|
+
const projectDir = import_node_path6.default.dirname(xcodeproj);
|
|
3522
4482
|
const objects = {};
|
|
3523
4483
|
let next = 0;
|
|
3524
4484
|
const add = (entry, id) => {
|
|
@@ -3531,7 +4491,7 @@ function readXcodeJsonProject(xcodeproj, source) {
|
|
|
3531
4491
|
const base = /^<([A-Z]+)>\/(.*)$/.exec(raw);
|
|
3532
4492
|
if (base) {
|
|
3533
4493
|
if (base[1] === "PROJECT")
|
|
3534
|
-
return { sourceTree: "<absolute>", path:
|
|
4494
|
+
return { sourceTree: "<absolute>", path: import_node_path6.default.join(projectDir, base[2]) };
|
|
3535
4495
|
if (base[1] === "PRODUCTS")
|
|
3536
4496
|
return { sourceTree: "BUILT_PRODUCTS_DIR", path: base[2] };
|
|
3537
4497
|
return null;
|
|
@@ -3539,7 +4499,7 @@ function readXcodeJsonProject(xcodeproj, source) {
|
|
|
3539
4499
|
const unescaped = raw.replaceAll("\\<", "<");
|
|
3540
4500
|
if (unescaped.startsWith("/")) return { sourceTree: "<absolute>", path: unescaped };
|
|
3541
4501
|
if (unescaped.startsWith("~")) return null;
|
|
3542
|
-
return groupDir === null ? null : { sourceTree: "<absolute>", path:
|
|
4502
|
+
return groupDir === null ? null : { sourceTree: "<absolute>", path: import_node_path6.default.join(groupDir, unescaped) };
|
|
3543
4503
|
};
|
|
3544
4504
|
const memberships = [];
|
|
3545
4505
|
const folders = [];
|
|
@@ -3550,7 +4510,7 @@ function readXcodeJsonProject(xcodeproj, source) {
|
|
|
3550
4510
|
const kind = text(entry.kind) ?? "file-reference";
|
|
3551
4511
|
const raw = text(entry.path) ?? "";
|
|
3552
4512
|
const located = raw === "" ? null : locate(raw, parent.dir);
|
|
3553
|
-
const name = text(entry.name) ??
|
|
4513
|
+
const name = text(entry.name) ?? import_node_path6.default.basename(raw);
|
|
3554
4514
|
const node = { id: "", name, dir: null, parent, children: [] };
|
|
3555
4515
|
if (kind === "group" || kind === "variant-group" || kind === "version-group") {
|
|
3556
4516
|
node.dir = raw === "" ? parent.dir : located?.sourceTree === "<absolute>" ? located.path : null;
|
|
@@ -3671,7 +4631,7 @@ function readXcodeJsonProject(xcodeproj, source) {
|
|
|
3671
4631
|
if (!isObject(entry)) continue;
|
|
3672
4632
|
const repository = text(entry.repository);
|
|
3673
4633
|
const local = text(entry.path);
|
|
3674
|
-
const name = local !== void 0 ?
|
|
4634
|
+
const name = local !== void 0 ? import_node_path6.default.basename(import_node_path6.default.resolve(import_node_path6.default.dirname(xcodeproj), local)) : import_node_path6.default.basename(repository ?? "").replace(/\.git$/, "");
|
|
3675
4635
|
const id = text(entry.kind) === "local" && local !== void 0 ? add({ isa: "XCLocalSwiftPackageReference", relativePath: local }) : add({
|
|
3676
4636
|
isa: "XCRemoteSwiftPackageReference",
|
|
3677
4637
|
repositoryURL: repository ?? "",
|
|
@@ -3892,28 +4852,28 @@ var CONDITIONS = {
|
|
|
3892
4852
|
variant: "normal"
|
|
3893
4853
|
};
|
|
3894
4854
|
function walkFiles(dir) {
|
|
3895
|
-
if (!
|
|
4855
|
+
if (!import_node_fs4.default.existsSync(dir)) return [];
|
|
3896
4856
|
const out = [];
|
|
3897
|
-
for (const entry of
|
|
4857
|
+
for (const entry of import_node_fs4.default.readdirSync(dir, { withFileTypes: true }).sort((left, right) => left.name.localeCompare(right.name))) {
|
|
3898
4858
|
if (entry.name.startsWith(".")) continue;
|
|
3899
|
-
const full =
|
|
4859
|
+
const full = import_node_path7.default.join(dir, entry.name);
|
|
3900
4860
|
if (entry.isDirectory()) out.push(...walkFiles(full));
|
|
3901
4861
|
else if (entry.isFile()) out.push(full);
|
|
3902
4862
|
}
|
|
3903
4863
|
return out;
|
|
3904
4864
|
}
|
|
3905
|
-
var isDirectory = (dir) =>
|
|
4865
|
+
var isDirectory = (dir) => import_node_fs4.default.existsSync(dir) && import_node_fs4.default.statSync(dir).isDirectory();
|
|
3906
4866
|
function readXcconfig(file, read) {
|
|
3907
|
-
if (read.includes(file) || !
|
|
4867
|
+
if (read.includes(file) || !import_node_fs4.default.existsSync(file)) return {};
|
|
3908
4868
|
read.push(file);
|
|
3909
4869
|
const settings = {};
|
|
3910
|
-
for (const raw of
|
|
4870
|
+
for (const raw of import_node_fs4.default.readFileSync(file, "utf8").split("\n")) {
|
|
3911
4871
|
const line = raw.replace(/\/\/.*$/, "").trim();
|
|
3912
4872
|
const include = /^#include\??\s+"([^"]+)"/.exec(line);
|
|
3913
4873
|
if (include) {
|
|
3914
4874
|
Object.assign(
|
|
3915
4875
|
settings,
|
|
3916
|
-
readXcconfig(
|
|
4876
|
+
readXcconfig(import_node_path7.default.resolve(import_node_path7.default.dirname(file), include[1]), read)
|
|
3917
4877
|
);
|
|
3918
4878
|
continue;
|
|
3919
4879
|
}
|
|
@@ -3963,22 +4923,22 @@ function decodeXml(text2) {
|
|
|
3963
4923
|
return text2.replaceAll(""", '"').replaceAll("'", "'").replaceAll("<", "<").replaceAll(">", ">").replaceAll("&", "&");
|
|
3964
4924
|
}
|
|
3965
4925
|
function workspaceReferences(workspace) {
|
|
3966
|
-
const data =
|
|
3967
|
-
if (!
|
|
4926
|
+
const data = import_node_path7.default.join(workspace, "contents.xcworkspacedata");
|
|
4927
|
+
if (!import_node_fs4.default.existsSync(data))
|
|
3968
4928
|
throw new Error(`${workspace} has no contents.xcworkspacedata`);
|
|
3969
|
-
const container =
|
|
4929
|
+
const container = import_node_path7.default.dirname(workspace);
|
|
3970
4930
|
const locate = (location, base) => {
|
|
3971
4931
|
const colon = location.indexOf(":");
|
|
3972
4932
|
const kind = location.slice(0, colon);
|
|
3973
4933
|
const rest = location.slice(colon + 1);
|
|
3974
|
-
if (kind === "group") return
|
|
3975
|
-
if (kind === "container" || kind === "self") return
|
|
3976
|
-
if (kind === "absolute") return
|
|
3977
|
-
throw new Error(`${
|
|
4934
|
+
if (kind === "group") return import_node_path7.default.resolve(base, rest);
|
|
4935
|
+
if (kind === "container" || kind === "self") return import_node_path7.default.resolve(container, rest);
|
|
4936
|
+
if (kind === "absolute") return import_node_path7.default.resolve(rest);
|
|
4937
|
+
throw new Error(`${import_node_path7.default.basename(workspace)} has an unsupported location ${location}`);
|
|
3978
4938
|
};
|
|
3979
4939
|
const groups = [container];
|
|
3980
4940
|
const references = [];
|
|
3981
|
-
for (const [, closing, tag, attributes, selfClosing] of
|
|
4941
|
+
for (const [, closing, tag, attributes, selfClosing] of import_node_fs4.default.readFileSync(data, "utf8").matchAll(/<(\/?)(Group|FileRef)\b([^>]*?)(\/?)>/g)) {
|
|
3982
4942
|
if (closing) {
|
|
3983
4943
|
if (tag === "Group") groups.pop();
|
|
3984
4944
|
continue;
|
|
@@ -4029,8 +4989,8 @@ function remotePackageRequirements(projects) {
|
|
|
4029
4989
|
var loaded = /* @__PURE__ */ new Map();
|
|
4030
4990
|
function xcodeProjectFile(xcodeproj) {
|
|
4031
4991
|
for (const name of ["project.pbxproj", "project.xcproj"]) {
|
|
4032
|
-
const file =
|
|
4033
|
-
if (
|
|
4992
|
+
const file = import_node_path7.default.join(xcodeproj, name);
|
|
4993
|
+
if (import_node_fs4.default.existsSync(file)) return file;
|
|
4034
4994
|
}
|
|
4035
4995
|
return null;
|
|
4036
4996
|
}
|
|
@@ -4038,8 +4998,8 @@ function loadProject(xcodeproj) {
|
|
|
4038
4998
|
const projectFile = xcodeProjectFile(xcodeproj);
|
|
4039
4999
|
if (!projectFile)
|
|
4040
5000
|
throw new Error(`${xcodeproj} has no project.pbxproj or project.xcproj`);
|
|
4041
|
-
const source =
|
|
4042
|
-
const digest = (0,
|
|
5001
|
+
const source = import_node_fs4.default.readFileSync(projectFile, "utf8");
|
|
5002
|
+
const digest = (0, import_node_crypto4.createHash)("sha256").update(source).digest("hex");
|
|
4043
5003
|
const cached = loaded.get(projectFile);
|
|
4044
5004
|
if (cached?.digest === digest) return cached.project;
|
|
4045
5005
|
const root = projectFile.endsWith(".xcproj") ? readXcodeJsonProject(xcodeproj, source) : parseOpenStepPlist(source);
|
|
@@ -4055,10 +5015,10 @@ function loadProject(xcodeproj) {
|
|
|
4055
5015
|
if (!project || project.isa !== "PBXProject") {
|
|
4056
5016
|
throw new Error(`${projectFile} has no PBXProject root`);
|
|
4057
5017
|
}
|
|
4058
|
-
const projectDir =
|
|
4059
|
-
|
|
5018
|
+
const projectDir = import_node_fs4.default.realpathSync.native(
|
|
5019
|
+
import_node_path7.default.resolve(import_node_path7.default.dirname(xcodeproj), str(project.projectDirPath) ?? "")
|
|
4060
5020
|
);
|
|
4061
|
-
const resolvePath = xcodePathResolver(objects, projectDir,
|
|
5021
|
+
const resolvePath = xcodePathResolver(objects, projectDir, import_node_path7.default.join);
|
|
4062
5022
|
const result = {
|
|
4063
5023
|
xcodeproj,
|
|
4064
5024
|
projectFile,
|
|
@@ -4076,7 +5036,7 @@ var developerDir;
|
|
|
4076
5036
|
function selectedDeveloperDir() {
|
|
4077
5037
|
developerDir ??= process.platform === "darwin" ? (
|
|
4078
5038
|
// runner-toolchain-platform: darwin
|
|
4079
|
-
(0,
|
|
5039
|
+
(0, import_node_child_process4.execFileSync)("xcode-select", ["-p"], {
|
|
4080
5040
|
encoding: "utf8",
|
|
4081
5041
|
stdio: ["ignore", "pipe", "pipe"]
|
|
4082
5042
|
}).trim()
|
|
@@ -4106,8 +5066,8 @@ function targetSettings(ref, configuration, builtins, options = {}, overrides =
|
|
|
4106
5066
|
const relative = str(config.baseConfigurationReferenceRelativePath);
|
|
4107
5067
|
const own = isDict(config.buildSettings) ? config.buildSettings : {};
|
|
4108
5068
|
const directory = anchor ? project.resolvePath(anchor) : null;
|
|
4109
|
-
const baseFile = base ? project.resolvePath(base) : directory && relative ?
|
|
4110
|
-
if (options.requireSources !== false && (base || anchor || relative) && (!baseFile || !
|
|
5069
|
+
const baseFile = base ? project.resolvePath(base) : directory && relative ? import_node_path7.default.resolve(directory, relative) : null;
|
|
5070
|
+
if (options.requireSources !== false && (base || anchor || relative) && (!baseFile || !import_node_fs4.default.existsSync(baseFile)))
|
|
4111
5071
|
throw new Error(
|
|
4112
5072
|
`Unable to open base configuration reference file '${baseFile ?? base ?? relative ?? anchor}'`
|
|
4113
5073
|
);
|
|
@@ -4198,26 +5158,26 @@ function scriptCommand(shell, script) {
|
|
|
4198
5158
|
return [executable, ...args, "-c", script];
|
|
4199
5159
|
}
|
|
4200
5160
|
function expandSearchPath(directory, rules2) {
|
|
4201
|
-
if (
|
|
5161
|
+
if (import_node_path7.default.basename(directory) !== "**") return [directory];
|
|
4202
5162
|
const expanded = [];
|
|
4203
5163
|
const seen = /* @__PURE__ */ new Set();
|
|
4204
|
-
const queue = [
|
|
5164
|
+
const queue = [import_node_path7.default.dirname(directory)];
|
|
4205
5165
|
for (let at = 0; at < queue.length; at++) {
|
|
4206
5166
|
const current = queue[at];
|
|
4207
5167
|
let real;
|
|
4208
5168
|
try {
|
|
4209
|
-
real =
|
|
5169
|
+
real = import_node_fs4.default.realpathSync.native(current);
|
|
4210
5170
|
} catch {
|
|
4211
5171
|
continue;
|
|
4212
5172
|
}
|
|
4213
|
-
if (!
|
|
5173
|
+
if (!import_node_fs4.default.statSync(real).isDirectory() || seen.has(real)) continue;
|
|
4214
5174
|
seen.add(real);
|
|
4215
5175
|
expanded.push(current);
|
|
4216
|
-
for (const entry of
|
|
5176
|
+
for (const entry of import_node_fs4.default.readdirSync(real, { withFileTypes: true }).sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0)) {
|
|
4217
5177
|
if (entry.isSymbolicLink() ? !rules2.followLinks : !entry.isDirectory()) continue;
|
|
4218
5178
|
if (rules2.excluded.some((pattern) => pattern.test(entry.name)) && !rules2.included.some((pattern) => pattern.test(entry.name)))
|
|
4219
5179
|
continue;
|
|
4220
|
-
queue.push(
|
|
5180
|
+
queue.push(import_node_path7.default.join(current, entry.name));
|
|
4221
5181
|
}
|
|
4222
5182
|
}
|
|
4223
5183
|
return expanded;
|
|
@@ -4288,7 +5248,7 @@ function shellAssetCatalogs(script, settings, projectDir) {
|
|
|
4288
5248
|
for (const token of tokens) {
|
|
4289
5249
|
if (token.startsWith("-")) break;
|
|
4290
5250
|
const file = resolve(token);
|
|
4291
|
-
if (file?.endsWith(".xcassets")) catalogs.push(
|
|
5251
|
+
if (file?.endsWith(".xcassets")) catalogs.push(import_node_path7.default.resolve(projectDir, file));
|
|
4292
5252
|
}
|
|
4293
5253
|
}
|
|
4294
5254
|
return catalogs;
|
|
@@ -4333,14 +5293,14 @@ function shellCopies(script, settings, projectDir) {
|
|
|
4333
5293
|
if (operands.length !== 2 || operands.some((operand) => operand.startsWith("-")))
|
|
4334
5294
|
return [];
|
|
4335
5295
|
copies.push({
|
|
4336
|
-
from:
|
|
4337
|
-
to:
|
|
5296
|
+
from: import_node_path7.default.resolve(projectDir, operands[0]),
|
|
5297
|
+
to: import_node_path7.default.resolve(projectDir, operands[1])
|
|
4338
5298
|
});
|
|
4339
5299
|
}
|
|
4340
5300
|
return copies;
|
|
4341
5301
|
}
|
|
4342
5302
|
function fileListEntries(file, absolute) {
|
|
4343
|
-
return
|
|
5303
|
+
return import_node_fs4.default.readFileSync(file, "utf8").split(/\r?\n/).map((line) => line.trim()).filter((line) => line !== "" && !line.startsWith("#")).map(absolute);
|
|
4344
5304
|
}
|
|
4345
5305
|
function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
4346
5306
|
const { project, target, id: targetId } = ref;
|
|
@@ -4354,7 +5314,7 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
|
4354
5314
|
const copiedFiles = [];
|
|
4355
5315
|
let generatedInfoPlist = false;
|
|
4356
5316
|
const declaredInfoPlist = settings("INFOPLIST_FILE");
|
|
4357
|
-
const infoPlistOutput = declaredInfoPlist ?
|
|
5317
|
+
const infoPlistOutput = declaredInfoPlist ? import_node_path7.default.resolve(project.projectDir, declaredInfoPlist) : null;
|
|
4358
5318
|
const isPreparedOutput = (file) => file === infoPlistOutput || options.requireSources !== false && file.endsWith(".swift");
|
|
4359
5319
|
for (const phaseId of list(target.buildPhases)) {
|
|
4360
5320
|
const phase = project.object(phaseId);
|
|
@@ -4369,7 +5329,7 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
|
4369
5329
|
copiedFiles.push(
|
|
4370
5330
|
...shellCopies(str(phase.shellScript) ?? "", settings, project.projectDir)
|
|
4371
5331
|
);
|
|
4372
|
-
const absolute = (raw) =>
|
|
5332
|
+
const absolute = (raw) => import_node_path7.default.resolve(project.projectDir, expand(raw, settings));
|
|
4373
5333
|
const inputs = list(phase.inputPaths).map(absolute);
|
|
4374
5334
|
const outputs = list(phase.outputPaths).map(absolute);
|
|
4375
5335
|
const fileLists = /* @__PURE__ */ new Map();
|
|
@@ -4378,7 +5338,7 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
|
4378
5338
|
kind === "INPUT" ? phase.inputFileListPaths : phase.outputFileListPaths
|
|
4379
5339
|
).map((raw) => {
|
|
4380
5340
|
const file = absolute(raw);
|
|
4381
|
-
if (!
|
|
5341
|
+
if (!import_node_fs4.default.existsSync(file)) {
|
|
4382
5342
|
return { file, entries: [] };
|
|
4383
5343
|
}
|
|
4384
5344
|
return { file, entries: fileListEntries(file, absolute) };
|
|
@@ -4399,7 +5359,7 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
|
4399
5359
|
...fileLists.get("OUTPUT").map((item) => item.file)
|
|
4400
5360
|
];
|
|
4401
5361
|
if (allOutputs.some((file) => file.endsWith(".swift") || file === infoPlistOutput)) {
|
|
4402
|
-
for (const file of inputFiles) if (
|
|
5362
|
+
for (const file of inputFiles) if (import_node_fs4.default.existsSync(file)) projectInputs.add(file);
|
|
4403
5363
|
}
|
|
4404
5364
|
if (options.prepareGeneratedSources === true && allOutputs.some(isPreparedOutput)) {
|
|
4405
5365
|
const configuration = settings("CONFIGURATION");
|
|
@@ -4412,10 +5372,10 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
|
4412
5372
|
false
|
|
4413
5373
|
))
|
|
4414
5374
|
continue;
|
|
4415
|
-
const phaseDir =
|
|
5375
|
+
const phaseDir = import_node_path7.default.join(settings("TARGET_TEMP_DIR"), `Script-${phaseId}`);
|
|
4416
5376
|
for (const lists of fileLists.values())
|
|
4417
5377
|
for (const { file } of lists)
|
|
4418
|
-
if (!
|
|
5378
|
+
if (!import_node_fs4.default.existsSync(file))
|
|
4419
5379
|
throw new Error(
|
|
4420
5380
|
`${targetName}: Run Script "${script}" missing file list ${file}`
|
|
4421
5381
|
);
|
|
@@ -4434,25 +5394,25 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
|
4434
5394
|
const lists = fileLists.get(kind);
|
|
4435
5395
|
env[`SCRIPT_${kind}_FILE_LIST_COUNT`] = String(lists.length);
|
|
4436
5396
|
lists.forEach((_item, index) => {
|
|
4437
|
-
env[`SCRIPT_${kind}_FILE_LIST_${index}`] =
|
|
5397
|
+
env[`SCRIPT_${kind}_FILE_LIST_${index}`] = import_node_path7.default.join(
|
|
4438
5398
|
phaseDir,
|
|
4439
5399
|
`${kind}-${index}.xcfilelist`
|
|
4440
5400
|
);
|
|
4441
5401
|
});
|
|
4442
5402
|
}
|
|
4443
|
-
const signature = (0,
|
|
5403
|
+
const signature = (0, import_node_crypto4.createHash)("sha256").update(
|
|
4444
5404
|
JSON.stringify([phase, [...settingKeys].map((key2) => [key2, settings(key2)])])
|
|
4445
5405
|
);
|
|
4446
5406
|
for (const file of inputFiles) {
|
|
4447
5407
|
signature.update(file);
|
|
4448
|
-
if (
|
|
4449
|
-
const stat =
|
|
5408
|
+
if (import_node_fs4.default.existsSync(file)) {
|
|
5409
|
+
const stat = import_node_fs4.default.statSync(file);
|
|
4450
5410
|
signature.update(`${stat.mtimeMs}:${stat.ctimeMs}:${stat.size}`);
|
|
4451
5411
|
} else signature.update("missing");
|
|
4452
5412
|
}
|
|
4453
5413
|
const stamp = signature.digest("hex");
|
|
4454
5414
|
const key = `${project.projectFile}:${targetId}:${phaseId}:${settings("CONFIGURATION")}`;
|
|
4455
|
-
if (preparedSourcePhases.get(key) === stamp && allOutputs.every((file) =>
|
|
5415
|
+
if (preparedSourcePhases.get(key) === stamp && allOutputs.every((file) => import_node_fs4.default.existsSync(file))) {
|
|
4456
5416
|
preparedXcodePhase(
|
|
4457
5417
|
project.projectFile,
|
|
4458
5418
|
targetId,
|
|
@@ -4463,25 +5423,46 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
|
4463
5423
|
);
|
|
4464
5424
|
continue;
|
|
4465
5425
|
}
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
5426
|
+
import_node_fs4.default.mkdirSync(phaseDir, { recursive: true });
|
|
5427
|
+
import_node_fs4.default.mkdirSync(settings("BUILT_PRODUCTS_DIR"), { recursive: true });
|
|
5428
|
+
import_node_fs4.default.mkdirSync(settings("DERIVED_FILE_DIR"), { recursive: true });
|
|
4469
5429
|
for (const output2 of allOutputs)
|
|
4470
|
-
|
|
5430
|
+
import_node_fs4.default.mkdirSync(import_node_path7.default.dirname(output2), { recursive: true });
|
|
4471
5431
|
for (const [kind, lists] of fileLists)
|
|
4472
5432
|
lists.forEach((item, index) => {
|
|
4473
|
-
|
|
5433
|
+
import_node_fs4.default.writeFileSync(
|
|
4474
5434
|
env[`SCRIPT_${kind}_FILE_LIST_${index}`],
|
|
4475
5435
|
`${item.entries.join("\n")}
|
|
4476
5436
|
`
|
|
4477
5437
|
);
|
|
4478
5438
|
});
|
|
5439
|
+
const rawScript = str(phase.shellScript) ?? "";
|
|
5440
|
+
if (rawScript.includes("generate-modules-provider")) {
|
|
5441
|
+
const preloadPath = import_node_path7.default.join(phaseDir, "expo-scan-timeout.cjs");
|
|
5442
|
+
import_node_fs4.default.mkdirSync(phaseDir, { recursive: true });
|
|
5443
|
+
import_node_fs4.default.writeFileSync(
|
|
5444
|
+
preloadPath,
|
|
5445
|
+
[
|
|
5446
|
+
"const cp = require('node:child_process');",
|
|
5447
|
+
"const orig = cp.execFile;",
|
|
5448
|
+
"cp.execFile = function (file, args, options, callback) {",
|
|
5449
|
+
" if (typeof file === 'string' && file.endsWith('ExpoModulesMacros') && Array.isArray(args) && args[0] === 'scan-modules' && options && typeof options === 'object' && typeof options.timeout === 'number' && options.timeout > 0 && options.timeout < 60000) {",
|
|
5450
|
+
" options = { ...options, timeout: 60000 };",
|
|
5451
|
+
" }",
|
|
5452
|
+
" return orig.call(this, file, args, options, callback);",
|
|
5453
|
+
"};",
|
|
5454
|
+
""
|
|
5455
|
+
].join("\n")
|
|
5456
|
+
);
|
|
5457
|
+
const quoted = `"${preloadPath.replace(/["\\]/g, "\\$&")}"`;
|
|
5458
|
+
env.NODE_OPTIONS = [env.NODE_OPTIONS, `--require ${quoted}`].filter(Boolean).join(" ");
|
|
5459
|
+
}
|
|
4479
5460
|
try {
|
|
4480
5461
|
const [shell, ...args] = scriptCommand(
|
|
4481
5462
|
str(phase.shellPath) ?? "/bin/sh",
|
|
4482
|
-
|
|
5463
|
+
rawScript
|
|
4483
5464
|
);
|
|
4484
|
-
(0,
|
|
5465
|
+
(0, import_node_child_process4.execFileSync)(shell, args, {
|
|
4485
5466
|
cwd: project.projectDir,
|
|
4486
5467
|
env,
|
|
4487
5468
|
stdio: ["ignore", "pipe", "pipe"],
|
|
@@ -4497,7 +5478,7 @@ ${output2}`
|
|
|
4497
5478
|
);
|
|
4498
5479
|
}
|
|
4499
5480
|
const missing = allOutputs.filter(
|
|
4500
|
-
(file) => file === infoPlistOutput && !
|
|
5481
|
+
(file) => file === infoPlistOutput && !import_node_fs4.default.existsSync(file)
|
|
4501
5482
|
);
|
|
4502
5483
|
if (missing.length > 0)
|
|
4503
5484
|
throw new Error(
|
|
@@ -4516,9 +5497,9 @@ ${output2}`
|
|
|
4516
5497
|
}
|
|
4517
5498
|
project.visitMembers(
|
|
4518
5499
|
targetId,
|
|
4519
|
-
xcodePathResolver(project.objects, project.projectDir,
|
|
4520
|
-
(file) => isDirectory(file) ? walkFiles(file) :
|
|
4521
|
-
|
|
5500
|
+
xcodePathResolver(project.objects, project.projectDir, import_node_path7.default.join, settings),
|
|
5501
|
+
(file) => isDirectory(file) ? walkFiles(file) : import_node_fs4.default.existsSync(file) ? [file] : [],
|
|
5502
|
+
import_node_path7.default.join,
|
|
4522
5503
|
(file, kind, bundleName) => {
|
|
4523
5504
|
if (kind === "header") {
|
|
4524
5505
|
headers.add(file);
|
|
@@ -4529,9 +5510,9 @@ ${output2}`
|
|
|
4529
5510
|
if (bundleName) resourceNames[file] = bundleName;
|
|
4530
5511
|
return;
|
|
4531
5512
|
}
|
|
4532
|
-
if (!
|
|
5513
|
+
if (!import_node_fs4.default.existsSync(file)) {
|
|
4533
5514
|
if (options.requireSources === false) return;
|
|
4534
|
-
const script = scriptForOutput.get(
|
|
5515
|
+
const script = scriptForOutput.get(import_node_path7.default.normalize(file));
|
|
4535
5516
|
throw new Error(
|
|
4536
5517
|
script ? `${targetName}: missing generated source ${file} (Run Script "${script}" declares it in outputPaths; run the script or check in its output)` : `${targetName}: missing source ${file}`
|
|
4537
5518
|
);
|
|
@@ -4542,17 +5523,17 @@ ${output2}`
|
|
|
4542
5523
|
);
|
|
4543
5524
|
if (options.prepareGeneratedSources && options.requireSources !== false) {
|
|
4544
5525
|
const interfaceFiles = [...resources].filter(
|
|
4545
|
-
(file) => /\.(storyboard|xib)$/.test(file) && !file.split(
|
|
5526
|
+
(file) => /\.(storyboard|xib)$/.test(file) && !file.split(import_node_path7.default.sep).some((part) => part.endsWith(".bundle"))
|
|
4546
5527
|
);
|
|
4547
5528
|
if (process.platform !== "darwin") {
|
|
4548
5529
|
let launchName = settings("INFOPLIST_KEY_UILaunchStoryboardName");
|
|
4549
|
-
if (!launchName && infoPlistOutput &&
|
|
4550
|
-
const info =
|
|
5530
|
+
if (!launchName && infoPlistOutput && import_node_fs4.default.existsSync(infoPlistOutput)) {
|
|
5531
|
+
const info = import_plist3.default.parse(import_node_fs4.default.readFileSync(infoPlistOutput, "utf8"));
|
|
4551
5532
|
const declared = isRecord(info) ? info.UILaunchStoryboardName : void 0;
|
|
4552
5533
|
if (typeof declared === "string") launchName = expand(declared, settings);
|
|
4553
5534
|
}
|
|
4554
5535
|
const runtimeInterfaceFiles = interfaceFiles.filter(
|
|
4555
|
-
(file) =>
|
|
5536
|
+
(file) => import_node_path7.default.basename(file, import_node_path7.default.extname(file)) !== launchName
|
|
4556
5537
|
);
|
|
4557
5538
|
if (runtimeInterfaceFiles.length > 0)
|
|
4558
5539
|
throw new Error(
|
|
@@ -4563,13 +5544,13 @@ ${output2}`
|
|
|
4563
5544
|
}
|
|
4564
5545
|
const interfaceOutputs = /* @__PURE__ */ new Set();
|
|
4565
5546
|
for (const file of interfaceFiles) {
|
|
4566
|
-
const localization = file.split(
|
|
5547
|
+
const localization = file.split(import_node_path7.default.sep).findLast((part) => part.endsWith(".lproj")) ?? "";
|
|
4567
5548
|
const extension = file.endsWith(".storyboard") ? ".storyboardc" : ".nib";
|
|
4568
|
-
const output2 =
|
|
5549
|
+
const output2 = import_node_path7.default.join(
|
|
4569
5550
|
settings("DERIVED_FILE_DIR"),
|
|
4570
5551
|
"InterfaceBuilder",
|
|
4571
5552
|
localization,
|
|
4572
|
-
|
|
5553
|
+
import_node_path7.default.basename(file, import_node_path7.default.extname(file)) + extension
|
|
4573
5554
|
);
|
|
4574
5555
|
if (interfaceOutputs.has(output2))
|
|
4575
5556
|
throw new Error(`${targetName}: duplicate Interface Builder output ${output2}`);
|
|
@@ -4591,18 +5572,18 @@ ${output2}`
|
|
|
4591
5572
|
const inputs = JSON.stringify({
|
|
4592
5573
|
args,
|
|
4593
5574
|
developer: settings("DEVELOPER_DIR"),
|
|
4594
|
-
source: (0,
|
|
5575
|
+
source: (0, import_node_crypto4.createHash)("sha256").update(import_node_fs4.default.readFileSync(file)).digest("hex")
|
|
4595
5576
|
});
|
|
4596
|
-
if (!
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
(0,
|
|
5577
|
+
if (!import_node_fs4.default.existsSync(output2) || !import_node_fs4.default.existsSync(stamp) || import_node_fs4.default.readFileSync(stamp, "utf8") !== inputs) {
|
|
5578
|
+
import_node_fs4.default.rmSync(output2, { recursive: true, force: true });
|
|
5579
|
+
import_node_fs4.default.rmSync(stamp, { force: true });
|
|
5580
|
+
import_node_fs4.default.mkdirSync(import_node_path7.default.dirname(output2), { recursive: true });
|
|
5581
|
+
(0, import_node_child_process4.execFileSync)("xcrun", args, {
|
|
4601
5582
|
cwd: project.projectDir,
|
|
4602
5583
|
stdio: ["ignore", "pipe", "pipe"],
|
|
4603
5584
|
timeout: runScriptTimeoutMs
|
|
4604
5585
|
});
|
|
4605
|
-
|
|
5586
|
+
import_node_fs4.default.writeFileSync(stamp, inputs);
|
|
4606
5587
|
}
|
|
4607
5588
|
projectInputs.add(file);
|
|
4608
5589
|
resources.delete(file);
|
|
@@ -4619,13 +5600,13 @@ ${output2}`
|
|
|
4619
5600
|
for (const definition of definitions) {
|
|
4620
5601
|
const configuredLanguage = settings("INTENTS_CODEGEN_LANGUAGE");
|
|
4621
5602
|
const language = !configuredLanguage || configuredLanguage === "Automatic" ? sources.size > 0 ? "Swift" : "Objective-C" : configuredLanguage;
|
|
4622
|
-
const output2 =
|
|
5603
|
+
const output2 = import_node_path7.default.join(
|
|
4623
5604
|
settings("DERIVED_FILE_DIR"),
|
|
4624
5605
|
"IntentDefinitionGenerated",
|
|
4625
|
-
|
|
5606
|
+
import_node_path7.default.basename(definition, ".intentdefinition")
|
|
4626
5607
|
);
|
|
4627
|
-
|
|
4628
|
-
|
|
5608
|
+
import_node_fs4.default.rmSync(output2, { recursive: true, force: true });
|
|
5609
|
+
import_node_fs4.default.mkdirSync(output2, { recursive: true });
|
|
4629
5610
|
const args = [
|
|
4630
5611
|
"intentbuilderc",
|
|
4631
5612
|
"generate",
|
|
@@ -4644,11 +5625,37 @@ ${output2}`
|
|
|
4644
5625
|
args.push("-swiftVersion", settings("SWIFT_VERSION") || "5.0");
|
|
4645
5626
|
if (settings("DEFINES_MODULE") === "YES")
|
|
4646
5627
|
args.push("-moduleName", settings("PRODUCT_MODULE_NAME"));
|
|
4647
|
-
(0,
|
|
5628
|
+
(0, import_node_child_process4.execFileSync)("xcrun", args, {
|
|
4648
5629
|
cwd: project.projectDir,
|
|
4649
5630
|
stdio: ["ignore", "pipe", "pipe"],
|
|
4650
5631
|
timeout: runScriptTimeoutMs
|
|
4651
5632
|
});
|
|
5633
|
+
const compiled = import_node_path7.default.join(
|
|
5634
|
+
settings("DERIVED_FILE_DIR"),
|
|
5635
|
+
"IntentDefinitionCompiled",
|
|
5636
|
+
definition.split(import_node_path7.default.sep).findLast((part) => part.endsWith(".lproj")) ?? ""
|
|
5637
|
+
);
|
|
5638
|
+
import_node_fs4.default.rmSync(compiled, { recursive: true, force: true });
|
|
5639
|
+
import_node_fs4.default.mkdirSync(compiled, { recursive: true });
|
|
5640
|
+
(0, import_node_child_process4.execFileSync)(
|
|
5641
|
+
"xcrun",
|
|
5642
|
+
[
|
|
5643
|
+
"intentbuilderc",
|
|
5644
|
+
"compile",
|
|
5645
|
+
"-input",
|
|
5646
|
+
definition,
|
|
5647
|
+
"-output",
|
|
5648
|
+
compiled,
|
|
5649
|
+
"-classPrefix",
|
|
5650
|
+
settings("PROJECT_CLASS_PREFIX")
|
|
5651
|
+
],
|
|
5652
|
+
{
|
|
5653
|
+
cwd: project.projectDir,
|
|
5654
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
5655
|
+
timeout: runScriptTimeoutMs
|
|
5656
|
+
}
|
|
5657
|
+
);
|
|
5658
|
+
resources.add(import_node_path7.default.join(compiled, import_node_path7.default.basename(definition)));
|
|
4652
5659
|
projectInputs.add(definition);
|
|
4653
5660
|
for (const file of walkFiles(output2)) {
|
|
4654
5661
|
allSources.add(file);
|
|
@@ -4670,37 +5677,37 @@ ${output2}`
|
|
|
4670
5677
|
function commonAncestor(dirs) {
|
|
4671
5678
|
let common = dirs[0];
|
|
4672
5679
|
for (const dir of dirs) {
|
|
4673
|
-
while (common !==
|
|
4674
|
-
common =
|
|
5680
|
+
while (common !== import_node_path7.default.dirname(common) && import_node_path7.default.relative(common, dir).startsWith(".."))
|
|
5681
|
+
common = import_node_path7.default.dirname(common);
|
|
4675
5682
|
}
|
|
4676
5683
|
return common;
|
|
4677
5684
|
}
|
|
4678
|
-
var isPodsProject = (xcodeproj) =>
|
|
5685
|
+
var isPodsProject = (xcodeproj) => import_node_path7.default.basename(xcodeproj) === "Pods.xcodeproj" && import_node_path7.default.basename(import_node_path7.default.dirname(xcodeproj)) === "Pods";
|
|
4679
5686
|
function installedPodsSandbox(pods) {
|
|
4680
|
-
const podfileLock =
|
|
4681
|
-
const manifestLock =
|
|
4682
|
-
if (!
|
|
5687
|
+
const podfileLock = import_node_path7.default.join(import_node_path7.default.dirname(pods), "Podfile.lock");
|
|
5688
|
+
const manifestLock = import_node_path7.default.join(pods, "Manifest.lock");
|
|
5689
|
+
if (!import_node_fs4.default.existsSync(podfileLock))
|
|
4683
5690
|
throw new Error(
|
|
4684
|
-
`${pods} has no ${podfileLock}: run \`pod install\` in ${
|
|
5691
|
+
`${pods} has no ${podfileLock}: run \`pod install\` in ${import_node_path7.default.dirname(pods)}`
|
|
4685
5692
|
);
|
|
4686
|
-
if (!
|
|
5693
|
+
if (!import_node_fs4.default.existsSync(manifestLock) || !import_node_fs4.default.readFileSync(manifestLock).equals(import_node_fs4.default.readFileSync(podfileLock)))
|
|
4687
5694
|
throw new Error(
|
|
4688
|
-
`The sandbox is not in sync with the Podfile.lock: ${manifestLock} differs from ${podfileLock}. Run \`pod install\` in ${
|
|
5695
|
+
`The sandbox is not in sync with the Podfile.lock: ${manifestLock} differs from ${podfileLock}. Run \`pod install\` in ${import_node_path7.default.dirname(pods)}`
|
|
4689
5696
|
);
|
|
4690
5697
|
const specChecksums = {};
|
|
4691
|
-
const lines =
|
|
5698
|
+
const lines = import_node_fs4.default.readFileSync(manifestLock, "utf8").split("\n");
|
|
4692
5699
|
const start = lines.indexOf("SPEC CHECKSUMS:");
|
|
4693
5700
|
for (const line of start === -1 ? [] : lines.slice(start + 1)) {
|
|
4694
5701
|
const entry = /^ {2}"?([^":]+)"?: ([0-9a-f]+)$/.exec(line);
|
|
4695
5702
|
if (!entry) break;
|
|
4696
5703
|
specChecksums[entry[1]] = entry[2];
|
|
4697
5704
|
}
|
|
4698
|
-
const specs =
|
|
5705
|
+
const specs = import_node_path7.default.join(pods, "Local Podspecs");
|
|
4699
5706
|
return {
|
|
4700
5707
|
podfileLock,
|
|
4701
5708
|
manifestLock,
|
|
4702
5709
|
specChecksums,
|
|
4703
|
-
localPodspecs: isDirectory(specs) ?
|
|
5710
|
+
localPodspecs: isDirectory(specs) ? import_node_fs4.default.readdirSync(specs).filter((name) => name.endsWith(".podspec.json")).sort().map((name) => import_node_path7.default.join(specs, name)) : []
|
|
4704
5711
|
};
|
|
4705
5712
|
}
|
|
4706
5713
|
function workspaceProjects(xcodeprojOrWorkspace, installedPods = false) {
|
|
@@ -4712,14 +5719,14 @@ function workspaceProjects(xcodeprojOrWorkspace, installedPods = false) {
|
|
|
4712
5719
|
if (!xcodeProjectFile(xcodeproj)) {
|
|
4713
5720
|
if (installedPods && isPodsProject(xcodeproj))
|
|
4714
5721
|
throw new Error(
|
|
4715
|
-
`${
|
|
5722
|
+
`${import_node_path7.default.basename(xcodeprojOrWorkspace)} builds ${xcodeproj}, which is not installed: run \`pod install\` in ${import_node_path7.default.dirname(import_node_path7.default.dirname(xcodeproj))}`
|
|
4716
5723
|
);
|
|
4717
5724
|
return;
|
|
4718
5725
|
}
|
|
4719
|
-
const key =
|
|
4720
|
-
if (projectAt.has(key) || !installedPods && key.split(
|
|
5726
|
+
const key = import_node_fs4.default.realpathSync.native(xcodeproj);
|
|
5727
|
+
if (projectAt.has(key) || !installedPods && key.split(import_node_path7.default.sep).includes("Pods"))
|
|
4721
5728
|
return;
|
|
4722
|
-
if (isPodsProject(key)) cocoapods = installedPodsSandbox(
|
|
5729
|
+
if (isPodsProject(key)) cocoapods = installedPodsSandbox(import_node_path7.default.dirname(key));
|
|
4723
5730
|
const project = loadProject(key);
|
|
4724
5731
|
projectAt.set(key, project);
|
|
4725
5732
|
projects.push(project);
|
|
@@ -4735,12 +5742,12 @@ function workspaceProjects(xcodeprojOrWorkspace, installedPods = false) {
|
|
|
4735
5742
|
for (const reference of listed)
|
|
4736
5743
|
if (reference.endsWith(".xcodeproj")) addProject(reference);
|
|
4737
5744
|
if (projects.length === 0) {
|
|
4738
|
-
throw new Error(`${
|
|
5745
|
+
throw new Error(`${import_node_path7.default.basename(xcodeprojOrWorkspace)} lists no Xcode project`);
|
|
4739
5746
|
}
|
|
4740
|
-
const podfile =
|
|
4741
|
-
if (installedPods && !cocoapods &&
|
|
5747
|
+
const podfile = import_node_path7.default.join(import_node_path7.default.dirname(xcodeprojOrWorkspace), "Podfile");
|
|
5748
|
+
if (installedPods && !cocoapods && import_node_fs4.default.existsSync(podfile))
|
|
4742
5749
|
throw new Error(
|
|
4743
|
-
`${podfile} is not installed into ${
|
|
5750
|
+
`${podfile} is not installed into ${import_node_path7.default.basename(xcodeprojOrWorkspace)}: run \`pod install\` in ${import_node_path7.default.dirname(podfile)} and open the workspace it writes`
|
|
4744
5751
|
);
|
|
4745
5752
|
return { listed, projects, projectAt, cocoapods };
|
|
4746
5753
|
}
|
|
@@ -4778,7 +5785,7 @@ function listXcodeAppTargets(xcodeprojOrWorkspace, options = {}) {
|
|
|
4778
5785
|
return workspaceProjects(xcodeprojOrWorkspace).projects.flatMap(projectTargets).filter((ref) => isIosAppTarget(ref, options)).map((ref) => str(ref.target.name) ?? ref.id);
|
|
4779
5786
|
}
|
|
4780
5787
|
function defaultXcodeAppTarget(xcodeproj) {
|
|
4781
|
-
const project = loadProject(
|
|
5788
|
+
const project = loadProject(import_node_fs4.default.realpathSync.native(xcodeproj));
|
|
4782
5789
|
for (const [id, target] of Object.entries(project.objects)) {
|
|
4783
5790
|
if (!isDict(target) || target.isa !== "PBXNativeTarget") continue;
|
|
4784
5791
|
if (isIosAppTarget({ project, id, target }, { requireSources: false }))
|
|
@@ -4786,30 +5793,30 @@ function defaultXcodeAppTarget(xcodeproj) {
|
|
|
4786
5793
|
}
|
|
4787
5794
|
}
|
|
4788
5795
|
function readXcodeScheme(xcodeprojOrWorkspace, scheme) {
|
|
4789
|
-
const container =
|
|
5796
|
+
const container = import_node_fs4.default.realpathSync.native(xcodeprojOrWorkspace);
|
|
4790
5797
|
const { projects } = workspaceProjects(container);
|
|
4791
5798
|
const containers = [
|
|
4792
5799
|
.../* @__PURE__ */ new Set([container, ...projects.map((project2) => project2.xcodeproj)])
|
|
4793
5800
|
];
|
|
4794
5801
|
const found = containers.flatMap(
|
|
4795
5802
|
(dir) => [
|
|
4796
|
-
|
|
4797
|
-
...isDirectory(
|
|
5803
|
+
import_node_path7.default.join(dir, "xcshareddata"),
|
|
5804
|
+
...isDirectory(import_node_path7.default.join(dir, "xcuserdata")) ? import_node_fs4.default.readdirSync(import_node_path7.default.join(dir, "xcuserdata")).sort().map((user) => import_node_path7.default.join(dir, "xcuserdata", user)) : []
|
|
4798
5805
|
].map((data) => ({
|
|
4799
5806
|
dir,
|
|
4800
|
-
file:
|
|
5807
|
+
file: import_node_path7.default.join(data, "xcschemes", `${scheme}.xcscheme`)
|
|
4801
5808
|
}))
|
|
4802
|
-
).find((candidate) =>
|
|
5809
|
+
).find((candidate) => import_node_fs4.default.existsSync(candidate.file));
|
|
4803
5810
|
if (!found) {
|
|
4804
5811
|
const known = containers.flatMap(
|
|
4805
|
-
(dir) =>
|
|
5812
|
+
(dir) => import_node_fs4.default.existsSync(import_node_path7.default.join(dir, "xcshareddata", "xcschemes")) ? import_node_fs4.default.readdirSync(import_node_path7.default.join(dir, "xcshareddata", "xcschemes")).filter((name2) => name2.endsWith(".xcscheme")).map((name2) => name2.slice(0, -".xcscheme".length)).sort() : []
|
|
4806
5813
|
);
|
|
4807
5814
|
throw new Error(
|
|
4808
|
-
`${
|
|
5815
|
+
`${import_node_path7.default.basename(container)} has no scheme ${scheme}; it shares ${known.join(", ") || "none"}`
|
|
4809
5816
|
);
|
|
4810
5817
|
}
|
|
4811
5818
|
const launch = /<LaunchAction\b([^>]*)>([\s\S]*?)<\/LaunchAction>/.exec(
|
|
4812
|
-
|
|
5819
|
+
import_node_fs4.default.readFileSync(found.file, "utf8")
|
|
4813
5820
|
);
|
|
4814
5821
|
const attribute = (text2, name2) => {
|
|
4815
5822
|
const value = new RegExp(`\\b${name2}\\s*=\\s*"([^"]*)"`).exec(text2)?.[1];
|
|
@@ -4822,12 +5829,12 @@ function readXcodeScheme(xcodeprojOrWorkspace, scheme) {
|
|
|
4822
5829
|
if (!configuration || !blueprint || !referenced?.startsWith("container:")) {
|
|
4823
5830
|
throw new Error(`scheme ${scheme} runs no application target`);
|
|
4824
5831
|
}
|
|
4825
|
-
const projectPath =
|
|
4826
|
-
|
|
5832
|
+
const projectPath = import_node_path7.default.resolve(
|
|
5833
|
+
import_node_path7.default.dirname(found.dir),
|
|
4827
5834
|
referenced.slice("container:".length)
|
|
4828
5835
|
);
|
|
4829
5836
|
const project = projects.find(
|
|
4830
|
-
(candidate) =>
|
|
5837
|
+
(candidate) => import_node_fs4.default.existsSync(projectPath) && candidate.xcodeproj === import_node_fs4.default.realpathSync.native(projectPath)
|
|
4831
5838
|
);
|
|
4832
5839
|
const target = project && projectTargets(project).find((ref) => ref.id === blueprint);
|
|
4833
5840
|
const name = target && str(target.target.name);
|
|
@@ -4847,26 +5854,26 @@ function readXcodeScheme(xcodeprojOrWorkspace, scheme) {
|
|
|
4847
5854
|
var NativeAppTargetSelectionError = class extends Error {
|
|
4848
5855
|
};
|
|
4849
5856
|
function selectIosAppTarget(projectRoot, iosTarget) {
|
|
4850
|
-
const nested =
|
|
4851
|
-
const iosRoot =
|
|
4852
|
-
const entries =
|
|
5857
|
+
const nested = import_node_path7.default.join(projectRoot, "ios");
|
|
5858
|
+
const iosRoot = import_node_fs4.default.existsSync(nested) ? nested : projectRoot;
|
|
5859
|
+
const entries = import_node_fs4.default.readdirSync(iosRoot, { withFileTypes: true });
|
|
4853
5860
|
const projects = (entries.some((entry) => entry.isDirectory() && entry.name.endsWith(".xcodeproj")) ? entries.filter((entry) => entry.isDirectory() && entry.name.endsWith(".xcodeproj")).map((entry) => ({
|
|
4854
|
-
xcodeproj:
|
|
5861
|
+
xcodeproj: import_node_path7.default.join(iosRoot, entry.name),
|
|
4855
5862
|
workspace: null
|
|
4856
5863
|
})) : entries.filter((entry) => entry.isDirectory() && entry.name.endsWith(".xcworkspace")).flatMap((entry) => {
|
|
4857
|
-
const workspace =
|
|
5864
|
+
const workspace = import_node_path7.default.join(iosRoot, entry.name);
|
|
4858
5865
|
return workspaceReferences(workspace).map((xcodeproj2) => ({
|
|
4859
5866
|
xcodeproj: xcodeproj2,
|
|
4860
5867
|
workspace
|
|
4861
5868
|
}));
|
|
4862
5869
|
}).filter(
|
|
4863
|
-
({ xcodeproj: xcodeproj2 }) => xcodeproj2.endsWith(".xcodeproj") && !xcodeproj2.split(
|
|
5870
|
+
({ xcodeproj: xcodeproj2 }) => xcodeproj2.endsWith(".xcodeproj") && !xcodeproj2.split(import_node_path7.default.sep).includes("Pods") && import_node_fs4.default.existsSync(xcodeproj2)
|
|
4864
5871
|
).filter(
|
|
4865
5872
|
({ xcodeproj: xcodeproj2 }) => listXcodeAppTargets(xcodeproj2, { requireSources: false }).length > 0
|
|
4866
5873
|
)).map(({ xcodeproj: xcodeproj2, workspace }) => ({
|
|
4867
5874
|
xcodeproj: xcodeproj2,
|
|
4868
5875
|
workspace,
|
|
4869
|
-
name:
|
|
5876
|
+
name: import_node_path7.default.basename(xcodeproj2)
|
|
4870
5877
|
}));
|
|
4871
5878
|
if (projects.length === 0) return null;
|
|
4872
5879
|
if (projects.length > 1 && !iosTarget) {
|
|
@@ -4905,13 +5912,13 @@ function selectIosAppTarget(projectRoot, iosTarget) {
|
|
|
4905
5912
|
if (!target) throw new Error("native app identity has no iOS application target");
|
|
4906
5913
|
if (!iosTarget) {
|
|
4907
5914
|
const workspace = xcodeproj.replace(/\.xcodeproj$/, ".xcworkspace");
|
|
4908
|
-
const container =
|
|
5915
|
+
const container = import_node_fs4.default.existsSync(workspace) ? workspace : xcodeproj;
|
|
4909
5916
|
const hasScheme = [container, xcodeproj].some((dir) => {
|
|
4910
|
-
if (
|
|
5917
|
+
if (import_node_fs4.default.existsSync(import_node_path7.default.join(dir, "xcshareddata", "xcschemes", `${target}.xcscheme`)))
|
|
4911
5918
|
return true;
|
|
4912
|
-
const users =
|
|
4913
|
-
return
|
|
4914
|
-
(user) =>
|
|
5919
|
+
const users = import_node_path7.default.join(dir, "xcuserdata");
|
|
5920
|
+
return import_node_fs4.default.existsSync(users) && import_node_fs4.default.readdirSync(users).some(
|
|
5921
|
+
(user) => import_node_fs4.default.existsSync(import_node_path7.default.join(users, user, "xcschemes", `${target}.xcscheme`))
|
|
4915
5922
|
);
|
|
4916
5923
|
});
|
|
4917
5924
|
if (hasScheme) target = readXcodeScheme(container, target).target;
|
|
@@ -4922,8 +5929,8 @@ function selectIosAppTarget(projectRoot, iosTarget) {
|
|
|
4922
5929
|
);
|
|
4923
5930
|
return { xcodeproj, target, workspace: project.workspace };
|
|
4924
5931
|
}
|
|
4925
|
-
var workspaceResolvedFile = (xcodeprojOrWorkspace) =>
|
|
4926
|
-
xcodeprojOrWorkspace.endsWith(".xcworkspace") ? xcodeprojOrWorkspace :
|
|
5932
|
+
var workspaceResolvedFile = (xcodeprojOrWorkspace) => import_node_path7.default.join(
|
|
5933
|
+
xcodeprojOrWorkspace.endsWith(".xcworkspace") ? xcodeprojOrWorkspace : import_node_path7.default.join(xcodeprojOrWorkspace, "project.xcworkspace"),
|
|
4927
5934
|
"xcshareddata",
|
|
4928
5935
|
"swiftpm",
|
|
4929
5936
|
"Package.resolved"
|
|
@@ -4938,7 +5945,9 @@ var SwiftPackageResolutionRequired = class extends Error {
|
|
|
4938
5945
|
}
|
|
4939
5946
|
};
|
|
4940
5947
|
function readXcodeAppTarget(input, targetName, configurationName, options = {}) {
|
|
4941
|
-
|
|
5948
|
+
if (isBazelPackage(input))
|
|
5949
|
+
return readBazelAppTarget(input, targetName, configurationName, options);
|
|
5950
|
+
const xcodeprojOrWorkspace = import_node_fs4.default.realpathSync.native(input);
|
|
4942
5951
|
const workspace = xcodeprojOrWorkspace.endsWith(".xcworkspace") ? xcodeprojOrWorkspace : null;
|
|
4943
5952
|
const { listed, projects, projectAt, cocoapods } = workspaceProjects(
|
|
4944
5953
|
xcodeprojOrWorkspace,
|
|
@@ -4949,7 +5958,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
4949
5958
|
(ref) => isIosAppTarget(ref, options) || targetName !== void 0 && ref.target.name === targetName && ref.target.productType === APP_EXTENSION
|
|
4950
5959
|
);
|
|
4951
5960
|
const appTargetNames = appTargets.map((ref) => str(ref.target.name) ?? ref.id);
|
|
4952
|
-
const container =
|
|
5961
|
+
const container = import_node_path7.default.basename(xcodeprojOrWorkspace);
|
|
4953
5962
|
const named = targetName ? appTargets.filter((ref) => ref.target.name === targetName) : appTargets;
|
|
4954
5963
|
if (named.length !== 1) {
|
|
4955
5964
|
if (appTargets.length === 0)
|
|
@@ -4970,15 +5979,15 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
4970
5979
|
for (const ref of allTargets) {
|
|
4971
5980
|
const product = ref.project.object(str(ref.target.productReference));
|
|
4972
5981
|
const file = str(product?.path);
|
|
4973
|
-
if (file && !byProduct.has(
|
|
4974
|
-
byProduct.set(
|
|
5982
|
+
if (file && !byProduct.has(import_node_path7.default.basename(file)))
|
|
5983
|
+
byProduct.set(import_node_path7.default.basename(file), ref);
|
|
4975
5984
|
}
|
|
4976
5985
|
const proxied = (project, proxyId) => {
|
|
4977
5986
|
const proxy = project.object(proxyId);
|
|
4978
5987
|
if (proxy?.isa !== "PBXContainerItemProxy") return void 0;
|
|
4979
5988
|
const portal = str(proxy.containerPortal);
|
|
4980
5989
|
const portalPath = project.resolvePath(portal ?? "");
|
|
4981
|
-
const owner = project.object(portal)?.isa === "PBXProject" ? project : portalPath &&
|
|
5990
|
+
const owner = project.object(portal)?.isa === "PBXProject" ? project : portalPath && import_node_fs4.default.existsSync(portalPath) ? projectAt.get(import_node_fs4.default.realpathSync.native(portalPath)) : void 0;
|
|
4982
5991
|
const remote = str(proxy.remoteGlobalIDString);
|
|
4983
5992
|
if (!owner || !remote) return void 0;
|
|
4984
5993
|
return projectTargets(owner).find(
|
|
@@ -4995,7 +6004,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
4995
6004
|
const buildFile = project.object(buildFileId);
|
|
4996
6005
|
if (!buildFile || !xcodeBuildFileBuildsForIos(buildFile)) continue;
|
|
4997
6006
|
const file = project.object(str(buildFile.fileRef));
|
|
4998
|
-
const resolved = file?.isa === "PBXReferenceProxy" ? proxied(project, str(file.remoteRef)) : file && str(file.sourceTree) === "BUILT_PRODUCTS_DIR" ? byProduct.get(
|
|
6007
|
+
const resolved = file?.isa === "PBXReferenceProxy" ? proxied(project, str(file.remoteRef)) : file && str(file.sourceTree) === "BUILT_PRODUCTS_DIR" ? byProduct.get(import_node_path7.default.basename(str(file.path) ?? "")) : void 0;
|
|
4999
6008
|
if (resolved)
|
|
5000
6009
|
found.push({
|
|
5001
6010
|
target: resolved,
|
|
@@ -5076,7 +6085,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5076
6085
|
const otherProduct = productName(other);
|
|
5077
6086
|
for (const { file, visibility } of headerPhase(other)) {
|
|
5078
6087
|
if (visibility === "Project") continue;
|
|
5079
|
-
const key = `${otherProduct}/${
|
|
6088
|
+
const key = `${otherProduct}/${import_node_path7.default.basename(file)}`;
|
|
5080
6089
|
if (!headers.has(key)) headers.set(key, file);
|
|
5081
6090
|
}
|
|
5082
6091
|
}
|
|
@@ -5106,8 +6115,8 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5106
6115
|
ref.project.visitMembers(
|
|
5107
6116
|
ref.id,
|
|
5108
6117
|
ref.project.resolvePath,
|
|
5109
|
-
(file) => isDirectory(file) ? walkFiles(file) :
|
|
5110
|
-
|
|
6118
|
+
(file) => isDirectory(file) ? walkFiles(file) : import_node_fs4.default.existsSync(file) ? [file] : [],
|
|
6119
|
+
import_node_path7.default.join,
|
|
5111
6120
|
(file, kind) => {
|
|
5112
6121
|
if (kind === "header") found.push(file);
|
|
5113
6122
|
}
|
|
@@ -5123,12 +6132,12 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5123
6132
|
for (const ref of projectTargets(project)) {
|
|
5124
6133
|
const product = productName(ref);
|
|
5125
6134
|
for (const { file, visibility } of headerPhase(ref)) {
|
|
5126
|
-
const name =
|
|
6135
|
+
const name = import_node_path7.default.basename(file);
|
|
5127
6136
|
if (!entries.has(name))
|
|
5128
6137
|
entries.set(name, visibility !== "Project" ? `${product}/${name}` : file);
|
|
5129
6138
|
}
|
|
5130
6139
|
for (const file of synchronizedHeaders(ref)) {
|
|
5131
|
-
const name =
|
|
6140
|
+
const name = import_node_path7.default.basename(file);
|
|
5132
6141
|
if (!entries.has(name)) entries.set(name, file);
|
|
5133
6142
|
}
|
|
5134
6143
|
}
|
|
@@ -5138,7 +6147,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5138
6147
|
if (folder === null) continue;
|
|
5139
6148
|
for (const file of walkFiles(folder)) {
|
|
5140
6149
|
if (!HEADER_FILE.test(file)) continue;
|
|
5141
|
-
const name =
|
|
6150
|
+
const name = import_node_path7.default.basename(file);
|
|
5142
6151
|
if (!entries.has(name)) entries.set(name, file);
|
|
5143
6152
|
}
|
|
5144
6153
|
}
|
|
@@ -5146,18 +6155,18 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5146
6155
|
for (const id of Object.keys(project.objects)) {
|
|
5147
6156
|
if (project.object(id)?.isa !== "PBXFileReference") continue;
|
|
5148
6157
|
const file = project.resolvePath(id);
|
|
5149
|
-
if (file && HEADER_FILE.test(file) && !entries.has(
|
|
5150
|
-
entries.set(
|
|
6158
|
+
if (file && HEADER_FILE.test(file) && !entries.has(import_node_path7.default.basename(file)))
|
|
6159
|
+
entries.set(import_node_path7.default.basename(file), file);
|
|
5151
6160
|
}
|
|
5152
6161
|
const map = [...entries];
|
|
5153
6162
|
projectHeaderMaps.set(project, map);
|
|
5154
6163
|
return map;
|
|
5155
6164
|
};
|
|
5156
6165
|
const xcconfigs = /* @__PURE__ */ new Set();
|
|
5157
|
-
const buildDir = (project) =>
|
|
6166
|
+
const buildDir = (project) => import_node_path7.default.join(project.projectDir, ".build/peach-xcode/Build");
|
|
5158
6167
|
const workspaceBuild = {
|
|
5159
|
-
SYMROOT:
|
|
5160
|
-
OBJROOT:
|
|
6168
|
+
SYMROOT: import_node_path7.default.join(buildDir(app.project), "Products"),
|
|
6169
|
+
OBJROOT: import_node_path7.default.join(buildDir(app.project), "Intermediates.noindex")
|
|
5161
6170
|
};
|
|
5162
6171
|
const moduleTarget = (ref) => {
|
|
5163
6172
|
const name = str(ref.target.name) ?? ref.id;
|
|
@@ -5172,20 +6181,23 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5172
6181
|
TARGET_NAME: name,
|
|
5173
6182
|
TARGETNAME: "$(TARGET_NAME)",
|
|
5174
6183
|
PROJECT: "$(PROJECT_NAME)",
|
|
5175
|
-
PROJECT_NAME:
|
|
6184
|
+
PROJECT_NAME: import_node_path7.default.basename(ref.project.xcodeproj, ".xcodeproj"),
|
|
5176
6185
|
PROJECT_CLASS_PREFIX: isDict(ref.project.project.attributes) ? str(ref.project.project.attributes.CLASSPREFIX) ?? "" : "",
|
|
5177
6186
|
PROJECT_FILE_PATH: ref.project.xcodeproj,
|
|
5178
6187
|
SRCROOT: ref.project.projectDir,
|
|
5179
6188
|
SOURCE_ROOT: ref.project.projectDir,
|
|
5180
6189
|
PROJECT_DIR: ref.project.projectDir,
|
|
5181
|
-
SYMROOT:
|
|
6190
|
+
SYMROOT: import_node_path7.default.join(buildDir(ref.project), "Products"),
|
|
5182
6191
|
BUILD_DIR: "$(SYMROOT)",
|
|
5183
6192
|
BUILD_ROOT: "$(SYMROOT)",
|
|
5184
|
-
OBJROOT:
|
|
6193
|
+
OBJROOT: import_node_path7.default.join(buildDir(ref.project), "Intermediates.noindex"),
|
|
5185
6194
|
CONFIGURATION_BUILD_DIR: "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)",
|
|
5186
6195
|
BUILT_PRODUCTS_DIR: "$(CONFIGURATION_BUILD_DIR)",
|
|
5187
6196
|
TARGET_BUILD_DIR: "$(CONFIGURATION_BUILD_DIR)",
|
|
5188
|
-
|
|
6197
|
+
DWARF_DSYM_FOLDER_PATH: "$(CONFIGURATION_BUILD_DIR)",
|
|
6198
|
+
DWARF_DSYM_FILE_NAME: "$(FULL_PRODUCT_NAME).dSYM",
|
|
6199
|
+
FULL_PRODUCT_NAME: str(ref.project.object(str(ref.target.productReference))?.path) ?? "",
|
|
6200
|
+
UNLOCALIZED_RESOURCES_FOLDER_PATH: "$(FULL_PRODUCT_NAME)",
|
|
5189
6201
|
CONTENTS_FOLDER_PATH: "$(UNLOCALIZED_RESOURCES_FOLDER_PATH)",
|
|
5190
6202
|
FRAMEWORKS_FOLDER_PATH: "$(CONTENTS_FOLDER_PATH)/Frameworks",
|
|
5191
6203
|
PROJECT_TEMP_DIR: "$(OBJROOT)/$(PROJECT_NAME).build",
|
|
@@ -5223,7 +6235,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5223
6235
|
xcconfigs
|
|
5224
6236
|
);
|
|
5225
6237
|
const searchRules = recursiveSearchRules(settings2);
|
|
5226
|
-
const absolute = (file) =>
|
|
6238
|
+
const absolute = (file) => import_node_path7.default.resolve(ref.project.projectDir, file);
|
|
5227
6239
|
const framework = FRAMEWORK_PRODUCTS.has(str(ref.target.productType) ?? "");
|
|
5228
6240
|
const product = settings2("PRODUCT_NAME");
|
|
5229
6241
|
const moduleName = applyOperator(settings2("PRODUCT_MODULE_NAME"), "c99extidentifier");
|
|
@@ -5254,7 +6266,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5254
6266
|
`${name}: Swift compatibility header phase has no Swift producer sources`
|
|
5255
6267
|
);
|
|
5256
6268
|
const building = options.prepareGeneratedSources && options.requireSources !== false;
|
|
5257
|
-
const versioning = building && allSources.length > 0 && settings2("VERSIONING_SYSTEM") === "apple-generic" ?
|
|
6269
|
+
const versioning = building && allSources.length > 0 && settings2("VERSIONING_SYSTEM") === "apple-generic" ? import_node_path7.default.join(settings2("DERIVED_FILE_DIR"), `${product}_vers.c`) : null;
|
|
5258
6270
|
if (versioning) {
|
|
5259
6271
|
const version = settings2("CURRENT_PROJECT_VERSION");
|
|
5260
6272
|
const custom = [
|
|
@@ -5267,7 +6279,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5267
6279
|
].filter((key) => settings2(key));
|
|
5268
6280
|
if (custom.length)
|
|
5269
6281
|
throw new Error(
|
|
5270
|
-
`${name}: Xcode generates ${
|
|
6282
|
+
`${name}: Xcode generates ${import_node_path7.default.basename(versioning)} with ${custom.join(", ")}; peach does not model VERSION_INFO_* overrides`
|
|
5271
6283
|
);
|
|
5272
6284
|
const symbol = product.replace(/^[^A-Za-z_]/, "_").replace(/[^A-Za-z0-9_]/g, "_");
|
|
5273
6285
|
const [major, minor] = version.split(".");
|
|
@@ -5280,9 +6292,9 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5280
6292
|
` const double ${symbol}VersionNumber __attribute__ ((used)) = (double)${number2};`,
|
|
5281
6293
|
""
|
|
5282
6294
|
].join("\n");
|
|
5283
|
-
if (!
|
|
5284
|
-
|
|
5285
|
-
|
|
6295
|
+
if (!import_node_fs4.default.existsSync(versioning) || import_node_fs4.default.readFileSync(versioning, "utf8") !== unit) {
|
|
6296
|
+
import_node_fs4.default.mkdirSync(import_node_path7.default.dirname(versioning), { recursive: true });
|
|
6297
|
+
import_node_fs4.default.writeFileSync(versioning, unit);
|
|
5286
6298
|
}
|
|
5287
6299
|
allSources.push(versioning);
|
|
5288
6300
|
}
|
|
@@ -5301,7 +6313,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5301
6313
|
const headerFiles = headerPhase(ref);
|
|
5302
6314
|
const ownHeaders = /* @__PURE__ */ new Map();
|
|
5303
6315
|
for (const { file, visibility } of headerFiles) {
|
|
5304
|
-
const name2 =
|
|
6316
|
+
const name2 = import_node_path7.default.basename(file);
|
|
5305
6317
|
const published = visibility !== "Project";
|
|
5306
6318
|
if (!ownHeaders.has(name2))
|
|
5307
6319
|
ownHeaders.set(name2, published ? `${product}/${name2}` : file);
|
|
@@ -5309,27 +6321,27 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5309
6321
|
ownHeaders.set(`${product}/${name2}`, file);
|
|
5310
6322
|
}
|
|
5311
6323
|
for (const file of synchronizedHeaders(ref)) {
|
|
5312
|
-
const name2 =
|
|
6324
|
+
const name2 = import_node_path7.default.basename(file);
|
|
5313
6325
|
if (ownHeaders.has(name2)) continue;
|
|
5314
6326
|
ownHeaders.set(name2, file);
|
|
5315
6327
|
const qualified = `${product}/${name2}`;
|
|
5316
6328
|
if (!ownHeaders.has(qualified)) ownHeaders.set(qualified, file);
|
|
5317
6329
|
}
|
|
5318
6330
|
const nonFrameworkHeaders = nonFrameworkHeadersOf(ref.project);
|
|
5319
|
-
const wrapper =
|
|
6331
|
+
const wrapper = import_node_path7.default.join(settings2("BUILT_PRODUCTS_DIR"), `${product}.framework`);
|
|
5320
6332
|
const moduleMap = (settings2("DEFINES_MODULE") === "YES" || !framework) && settings2("MODULEMAP_FILE") ? absolute(settings2("MODULEMAP_FILE")) : null;
|
|
5321
|
-
const frameworkUmbrella = !compatibility && framework && members.sources.length > 0 && moduleMap ?
|
|
5322
|
-
const frameworkCompatibility = frameworkUmbrella && moduleMap &&
|
|
6333
|
+
const frameworkUmbrella = !compatibility && framework && members.sources.length > 0 && moduleMap ? import_node_path7.default.join(import_node_path7.default.dirname(moduleMap), `${moduleName}-umbrella.h`) : null;
|
|
6334
|
+
const frameworkCompatibility = frameworkUmbrella && moduleMap && import_node_fs4.default.existsSync(moduleMap) && import_node_fs4.default.existsSync(frameworkUmbrella) ? {
|
|
5323
6335
|
framework: true,
|
|
5324
6336
|
moduleMap,
|
|
5325
6337
|
umbrella: frameworkUmbrella,
|
|
5326
|
-
outputModuleMap:
|
|
5327
|
-
outputUmbrella:
|
|
6338
|
+
outputModuleMap: import_node_path7.default.join(wrapper, "Modules", "module.modulemap"),
|
|
6339
|
+
outputUmbrella: import_node_path7.default.join(
|
|
5328
6340
|
wrapper,
|
|
5329
6341
|
"Headers",
|
|
5330
|
-
|
|
6342
|
+
import_node_path7.default.basename(frameworkUmbrella)
|
|
5331
6343
|
),
|
|
5332
|
-
outputHeader:
|
|
6344
|
+
outputHeader: import_node_path7.default.join(
|
|
5333
6345
|
wrapper,
|
|
5334
6346
|
"Headers",
|
|
5335
6347
|
settings2("SWIFT_OBJC_INTERFACE_HEADER_NAME") || `${moduleName}-Swift.h`
|
|
@@ -5343,10 +6355,10 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5343
6355
|
outputUmbrella: compatibility.outputUmbrella,
|
|
5344
6356
|
outputHeader: compatibility.outputHeader
|
|
5345
6357
|
} : frameworkCompatibility;
|
|
5346
|
-
const podHeaders = !framework && isPodsProject(ref.project.xcodeproj) && moduleMap &&
|
|
6358
|
+
const podHeaders = !framework && isPodsProject(ref.project.xcodeproj) && moduleMap && import_node_path7.default.relative(import_node_path7.default.join(ref.project.projectDir, "Headers", "Public"), moduleMap).split(import_node_path7.default.sep)[0] !== ".." && import_node_fs4.default.existsSync(moduleMap) ? import_node_fs4.default.readdirSync(import_node_path7.default.dirname(moduleMap)).flatMap((entry) => {
|
|
5347
6359
|
if (!/\.(h|hh|hpp|hxx|modulemap)$/.test(entry)) return [];
|
|
5348
|
-
const file =
|
|
5349
|
-
return
|
|
6360
|
+
const file = import_node_path7.default.join(import_node_path7.default.dirname(moduleMap), entry);
|
|
6361
|
+
return import_node_fs4.default.existsSync(file) ? [file] : [];
|
|
5350
6362
|
}) : [];
|
|
5351
6363
|
const fileFlags = {};
|
|
5352
6364
|
for (const phaseId of list(ref.target.buildPhases)) {
|
|
@@ -5366,6 +6378,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5366
6378
|
}
|
|
5367
6379
|
const cStandard = settings2("GCC_C_LANGUAGE_STANDARD");
|
|
5368
6380
|
const cxxStandard = settings2("CLANG_CXX_LANGUAGE_STANDARD");
|
|
6381
|
+
const packageName = settings2("SWIFT_PACKAGE_NAME");
|
|
5369
6382
|
return {
|
|
5370
6383
|
settings: settings2,
|
|
5371
6384
|
keys,
|
|
@@ -5397,6 +6410,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5397
6410
|
...settingList(settings2("SWIFT_OPTIMIZATION_LEVEL")),
|
|
5398
6411
|
// xcode's Swift.xcspec defaults bare slash regex literals on before Swift 6
|
|
5399
6412
|
...swiftVersion < 6 && settings2("SWIFT_ENABLE_BARE_SLASH_REGEX") !== "NO" ? ["-enable-bare-slash-regex"] : [],
|
|
6413
|
+
...packageName ? ["-package-name", packageName] : [],
|
|
5400
6414
|
...settingList(settings2("OTHER_SWIFT_FLAGS"))
|
|
5401
6415
|
],
|
|
5402
6416
|
includePaths: settingList(settings2("SWIFT_INCLUDE_PATHS")).map(absolute),
|
|
@@ -5407,6 +6421,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5407
6421
|
} : {},
|
|
5408
6422
|
...native ? {
|
|
5409
6423
|
objc: {
|
|
6424
|
+
flattensPublicHeaders: true,
|
|
5410
6425
|
publicHeaders: [
|
|
5411
6426
|
...headerFiles.flatMap(
|
|
5412
6427
|
({ file, visibility }) => visibility === "Public" ? [file] : []
|
|
@@ -5421,15 +6436,15 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5421
6436
|
// xcode searches its products' include directory before
|
|
5422
6437
|
// HEADER_SEARCH_PATHS and the target's derived sources after.
|
|
5423
6438
|
headerSearchPaths: [
|
|
5424
|
-
|
|
6439
|
+
import_node_path7.default.join(settings2("BUILT_PRODUCTS_DIR"), "include"),
|
|
5425
6440
|
...settingList(settings2("HEADER_SEARCH_PATHS")).flatMap(
|
|
5426
6441
|
(raw) => expandSearchPath(absolute(raw), searchRules)
|
|
5427
6442
|
),
|
|
5428
|
-
|
|
6443
|
+
import_node_path7.default.join(
|
|
5429
6444
|
`${settings2("DERIVED_FILE_DIR")}-normal`,
|
|
5430
6445
|
settings2("CURRENT_ARCH")
|
|
5431
6446
|
),
|
|
5432
|
-
|
|
6447
|
+
import_node_path7.default.join(settings2("DERIVED_FILE_DIR"), settings2("CURRENT_ARCH")),
|
|
5433
6448
|
settings2("DERIVED_FILE_DIR")
|
|
5434
6449
|
],
|
|
5435
6450
|
userHeaderSearchPaths: settingList(
|
|
@@ -5479,10 +6494,10 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5479
6494
|
...headerFiles.flatMap(
|
|
5480
6495
|
({ file, visibility }) => visibility === "Project" ? [] : [
|
|
5481
6496
|
[
|
|
5482
|
-
|
|
6497
|
+
import_node_path7.default.join(
|
|
5483
6498
|
wrapper,
|
|
5484
6499
|
visibility === "Public" ? "Headers" : "PrivateHeaders",
|
|
5485
|
-
|
|
6500
|
+
import_node_path7.default.basename(file)
|
|
5486
6501
|
),
|
|
5487
6502
|
file
|
|
5488
6503
|
]
|
|
@@ -5496,7 +6511,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5496
6511
|
return [];
|
|
5497
6512
|
const destination = expand(
|
|
5498
6513
|
str(phase.dstPath) ?? "",
|
|
5499
|
-
(name2) => name2 === "PUBLIC_HEADERS_FOLDER_PATH" ?
|
|
6514
|
+
(name2) => name2 === "PUBLIC_HEADERS_FOLDER_PATH" ? import_node_path7.default.join(wrapper, "Headers") : name2 === "PRIVATE_HEADERS_FOLDER_PATH" ? import_node_path7.default.join(wrapper, "PrivateHeaders") : settings2(name2)
|
|
5500
6515
|
);
|
|
5501
6516
|
return list(phase.files).flatMap((id) => {
|
|
5502
6517
|
const file = ref.project.resolvePath(
|
|
@@ -5504,17 +6519,17 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5504
6519
|
);
|
|
5505
6520
|
return file && HEADER_FILE.test(file) ? [
|
|
5506
6521
|
[
|
|
5507
|
-
|
|
6522
|
+
import_node_path7.default.resolve(
|
|
5508
6523
|
settings2("BUILT_PRODUCTS_DIR"),
|
|
5509
6524
|
destination,
|
|
5510
|
-
|
|
6525
|
+
import_node_path7.default.basename(file)
|
|
5511
6526
|
),
|
|
5512
6527
|
file
|
|
5513
6528
|
]
|
|
5514
6529
|
] : [];
|
|
5515
6530
|
});
|
|
5516
6531
|
}),
|
|
5517
|
-
...moduleMap ? [[
|
|
6532
|
+
...moduleMap ? [[import_node_path7.default.join(wrapper, "Modules", "module.modulemap"), moduleMap]] : []
|
|
5518
6533
|
]) : Object.fromEntries([
|
|
5519
6534
|
...podHeaders.map((file) => [file, file]),
|
|
5520
6535
|
...moduleMap ? [[moduleMap, moduleMap]] : []
|
|
@@ -5525,8 +6540,13 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5525
6540
|
};
|
|
5526
6541
|
};
|
|
5527
6542
|
const builtTargets = order.map((ref) => ({ ref, ...moduleTarget(ref) }));
|
|
5528
|
-
for (const { ref, module: module3 } of builtTargets)
|
|
5529
|
-
module3.targetDependencies =
|
|
6543
|
+
for (const { ref, module: module3, settings: settings2 } of builtTargets)
|
|
6544
|
+
module3.targetDependencies = [
|
|
6545
|
+
.../* @__PURE__ */ new Set([
|
|
6546
|
+
...dependenciesOf(ref),
|
|
6547
|
+
...frameworkFlagLinks(ref, settings2("OTHER_LDFLAGS")).map((link) => link.target)
|
|
6548
|
+
])
|
|
6549
|
+
].flatMap((dependency) => {
|
|
5530
6550
|
const target = builtTargets.find((candidate) => candidate.ref === dependency);
|
|
5531
6551
|
return target ? [target.module.targetIdentity] : [];
|
|
5532
6552
|
});
|
|
@@ -5546,7 +6566,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5546
6566
|
const frameworkTargets = selectedTargets.filter((target) => target !== builtTargets.at(-1)).filter(({ ref }) => MODULE_PRODUCTS.has(str(ref.target.productType) ?? "")).map(({ ref, module: module3 }) => ({ ref, framework: module3 }));
|
|
5547
6567
|
const frameworks = frameworkTargets.map(({ framework }) => framework);
|
|
5548
6568
|
const podSourceDirs = builtTargets.slice(0, -1).flatMap(
|
|
5549
|
-
({ ref, module: module3 }) => isPodsProject(ref.project.xcodeproj) ? [...module3.allSources, ...module3.objc?.headers ?? []].map((file) =>
|
|
6569
|
+
({ ref, module: module3 }) => isPodsProject(ref.project.xcodeproj) ? [...module3.allSources, ...module3.objc?.headers ?? []].map((file) => import_node_path7.default.dirname(file)).filter((dir) => import_node_fs4.default.existsSync(dir)) : []
|
|
5550
6570
|
);
|
|
5551
6571
|
const expandValue = (value, settings2) => {
|
|
5552
6572
|
if (typeof value === "string") return expand(value, settings2);
|
|
@@ -5567,7 +6587,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5567
6587
|
const phase = owner.ref.project.object(phaseId);
|
|
5568
6588
|
if (phase?.isa !== "PBXShellScriptBuildPhase" || str(phase.name) !== "[CP] Copy Pods Resources")
|
|
5569
6589
|
continue;
|
|
5570
|
-
const absolute = (raw) =>
|
|
6590
|
+
const absolute = (raw) => import_node_path7.default.resolve(owner.ref.project.projectDir, expand(raw, owner.settings));
|
|
5571
6591
|
const entries = (paths) => paths.flatMap((raw) => {
|
|
5572
6592
|
const file = absolute(raw);
|
|
5573
6593
|
xcconfigs.add(file);
|
|
@@ -5583,7 +6603,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5583
6603
|
].filter((file) => file.endsWith(".bundle"));
|
|
5584
6604
|
if (inputs.length !== outputs.length)
|
|
5585
6605
|
throw new Error(`${owner.module.name}: resource bundle copy lists differ`);
|
|
5586
|
-
const destinationRoot =
|
|
6606
|
+
const destinationRoot = import_node_path7.default.join(
|
|
5587
6607
|
owner.settings("TARGET_BUILD_DIR"),
|
|
5588
6608
|
owner.settings("UNLOCALIZED_RESOURCES_FOLDER_PATH")
|
|
5589
6609
|
);
|
|
@@ -5592,24 +6612,24 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5592
6612
|
const file = str(
|
|
5593
6613
|
target.ref.project.object(str(target.ref.target.productReference))?.path
|
|
5594
6614
|
);
|
|
5595
|
-
return file &&
|
|
6615
|
+
return file && import_node_path7.default.join(target.settings("TARGET_BUILD_DIR"), file) === input2;
|
|
5596
6616
|
});
|
|
5597
6617
|
if (!product && !isDirectory(input2))
|
|
5598
6618
|
throw new Error(
|
|
5599
6619
|
`${owner.module.name}: resource bundle input has no selected producer: ${input2}`
|
|
5600
6620
|
);
|
|
5601
|
-
const destination =
|
|
5602
|
-
if (destination === ".." || destination.startsWith(`..${
|
|
6621
|
+
const destination = import_node_path7.default.relative(destinationRoot, outputs[index]);
|
|
6622
|
+
if (destination === ".." || destination.startsWith(`..${import_node_path7.default.sep}`) || import_node_path7.default.isAbsolute(destination) || import_node_path7.default.basename(input2) !== import_node_path7.default.basename(destination))
|
|
5603
6623
|
throw new Error(
|
|
5604
6624
|
`${owner.module.name}: invalid resource bundle copy destination`
|
|
5605
6625
|
);
|
|
5606
|
-
const infoFile = product ?
|
|
6626
|
+
const infoFile = product ? import_node_path7.default.resolve(
|
|
5607
6627
|
product.ref.project.projectDir,
|
|
5608
6628
|
product.settings("INFOPLIST_FILE")
|
|
5609
6629
|
) : null;
|
|
5610
6630
|
if (infoFile) xcconfigs.add(infoFile);
|
|
5611
6631
|
const prefix = owner.ref === app ? "" : `Frameworks/${owner.module.moduleName}.framework/`;
|
|
5612
|
-
const bundlePath = prefix + destination.split(
|
|
6632
|
+
const bundlePath = prefix + destination.split(import_node_path7.default.sep).join("/");
|
|
5613
6633
|
if (resourceProducts.some((resource) => resource.path === bundlePath))
|
|
5614
6634
|
throw new Error(
|
|
5615
6635
|
`${owner.module.name}: duplicate resource bundle destination ${bundlePath}`
|
|
@@ -5618,24 +6638,24 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5618
6638
|
path: bundlePath,
|
|
5619
6639
|
...product ? {
|
|
5620
6640
|
resources: product.module.resources,
|
|
5621
|
-
infoPlist:
|
|
6641
|
+
infoPlist: import_plist3.default.build(
|
|
5622
6642
|
expandValue(
|
|
5623
|
-
|
|
6643
|
+
import_plist3.default.parse(import_node_fs4.default.readFileSync(infoFile, "utf8")),
|
|
5624
6644
|
product.settings
|
|
5625
6645
|
)
|
|
5626
6646
|
)
|
|
5627
6647
|
} : {
|
|
5628
|
-
resources:
|
|
6648
|
+
resources: import_node_fs4.default.readdirSync(input2, { recursive: true, withFileTypes: true }).filter((entry) => entry.isFile()).map((entry) => import_node_path7.default.join(entry.parentPath, entry.name)).sort(),
|
|
5629
6649
|
sourceRoot: input2
|
|
5630
6650
|
}
|
|
5631
6651
|
});
|
|
5632
6652
|
}
|
|
5633
6653
|
}
|
|
5634
6654
|
}
|
|
5635
|
-
const infoPlistFile = settings("INFOPLIST_FILE") ?
|
|
5636
|
-
const entitlementsFile = settings("CODE_SIGN_ENTITLEMENTS") ?
|
|
6655
|
+
const infoPlistFile = settings("INFOPLIST_FILE") ? import_node_path7.default.resolve(app.project.projectDir, settings("INFOPLIST_FILE")) : null;
|
|
6656
|
+
const entitlementsFile = settings("CODE_SIGN_ENTITLEMENTS") ? import_node_path7.default.resolve(app.project.projectDir, settings("CODE_SIGN_ENTITLEMENTS")) : null;
|
|
5637
6657
|
const infoPlistPending = module2.generatedInfoPlist && !options.prepareGeneratedSources;
|
|
5638
|
-
const sourceInfo = infoPlistFile && !infoPlistPending ?
|
|
6658
|
+
const sourceInfo = infoPlistFile && !infoPlistPending ? import_plist3.default.parse(import_node_fs4.default.readFileSync(infoPlistFile, "utf8")) : {};
|
|
5639
6659
|
if (!sourceInfo || typeof sourceInfo !== "object" || Array.isArray(sourceInfo) || sourceInfo instanceof Date || Buffer.isBuffer(sourceInfo)) {
|
|
5640
6660
|
throw new Error(`${module2.name} Info.plist must contain a dictionary`);
|
|
5641
6661
|
}
|
|
@@ -5660,7 +6680,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5660
6680
|
}
|
|
5661
6681
|
const bundleIdentifier = settings("PRODUCT_BUNDLE_IDENTIFIER") || (typeof info.CFBundleIdentifier === "string" ? info.CFBundleIdentifier : "");
|
|
5662
6682
|
const keychainAccessGroups = entitlementsFile ? readKeychainAccessGroups(
|
|
5663
|
-
|
|
6683
|
+
import_plist3.default.parse(import_node_fs4.default.readFileSync(entitlementsFile, "utf8")),
|
|
5664
6684
|
(value) => expand(value, (key) => {
|
|
5665
6685
|
if (key === "AppIdentifierPrefix") return "FAKETEAMID.";
|
|
5666
6686
|
if (key === "TeamIdentifierPrefix") return "";
|
|
@@ -5698,7 +6718,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5698
6718
|
};
|
|
5699
6719
|
}
|
|
5700
6720
|
const localPackageDirs = [
|
|
5701
|
-
...listed.filter((reference) =>
|
|
6721
|
+
...listed.filter((reference) => import_node_fs4.default.existsSync(import_node_path7.default.join(reference, "Package.swift"))),
|
|
5702
6722
|
...projects.flatMap(
|
|
5703
6723
|
(project) => Object.entries(project.objects).flatMap(([id, entry]) => {
|
|
5704
6724
|
if (!isDict(entry)) return [];
|
|
@@ -5708,19 +6728,19 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5708
6728
|
const packages = [];
|
|
5709
6729
|
while (pending.length > 0) {
|
|
5710
6730
|
const dir = pending.pop();
|
|
5711
|
-
if (
|
|
6731
|
+
if (import_node_fs4.default.existsSync(import_node_path7.default.join(dir, "Package.swift"))) {
|
|
5712
6732
|
packages.push(dir);
|
|
5713
6733
|
continue;
|
|
5714
6734
|
}
|
|
5715
6735
|
if (!isDirectory(dir)) continue;
|
|
5716
|
-
for (const child of
|
|
6736
|
+
for (const child of import_node_fs4.default.readdirSync(dir, { withFileTypes: true }))
|
|
5717
6737
|
if (child.isDirectory() && !child.name.startsWith("."))
|
|
5718
|
-
pending.push(
|
|
6738
|
+
pending.push(import_node_path7.default.join(dir, child.name));
|
|
5719
6739
|
}
|
|
5720
6740
|
return packages;
|
|
5721
6741
|
}
|
|
5722
|
-
const candidate = entry.isa === "XCLocalSwiftPackageReference" ?
|
|
5723
|
-
return candidate &&
|
|
6742
|
+
const candidate = entry.isa === "XCLocalSwiftPackageReference" ? import_node_path7.default.resolve(project.projectDir, str(entry.relativePath) ?? "") : entry.isa === "PBXFileReference" ? project.resolvePath(id) : null;
|
|
6743
|
+
return candidate && import_node_fs4.default.existsSync(import_node_path7.default.join(candidate, "Package.swift")) ? [candidate] : [];
|
|
5724
6744
|
})
|
|
5725
6745
|
)
|
|
5726
6746
|
];
|
|
@@ -5750,7 +6770,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5750
6770
|
if ((flag === "-framework" || flag === "-weak_framework") && name)
|
|
5751
6771
|
sdkFrameworks.add(name);
|
|
5752
6772
|
});
|
|
5753
|
-
const absolute = (raw) =>
|
|
6773
|
+
const absolute = (raw) => import_node_path7.default.resolve(ref.project.projectDir, expand(raw, settings2));
|
|
5754
6774
|
const requested = options.nativeModules;
|
|
5755
6775
|
const includeBinary = (name, dir) => {
|
|
5756
6776
|
if (!requested || nativeTargets.has(ref) || requested.includes(name) || dir.endsWith(".xcframework") && localSwiftBinaryModules(dir).some((module3) => requested.includes(module3)))
|
|
@@ -5762,14 +6782,14 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5762
6782
|
for (const directory of expandSearchPath(absolute(raw), searchRules)) {
|
|
5763
6783
|
if (frameworkSearchDirectories.has(directory)) continue;
|
|
5764
6784
|
frameworkSearchDirectories.add(directory);
|
|
5765
|
-
if (!
|
|
6785
|
+
if (!import_node_fs4.default.statSync(directory, { throwIfNoEntry: false })?.isDirectory() || /\.sdk\/(?:System|Developer)\/Library\/Frameworks\/?$/.test(directory))
|
|
5766
6786
|
continue;
|
|
5767
|
-
for (const entry of
|
|
6787
|
+
for (const entry of import_node_fs4.default.readdirSync(directory, { withFileTypes: true })) {
|
|
5768
6788
|
const name = /^(.+)\.framework$/.exec(entry.name)?.[1];
|
|
5769
6789
|
if (!name || byProduct.has(entry.name) || searchedFrameworks.has(name))
|
|
5770
6790
|
continue;
|
|
5771
|
-
const file =
|
|
5772
|
-
if (
|
|
6791
|
+
const file = import_node_path7.default.join(directory, entry.name);
|
|
6792
|
+
if (import_node_fs4.default.statSync(file, { throwIfNoEntry: false })?.isDirectory())
|
|
5773
6793
|
searchedFrameworks.set(name, file);
|
|
5774
6794
|
}
|
|
5775
6795
|
}
|
|
@@ -5777,9 +6797,9 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5777
6797
|
}
|
|
5778
6798
|
for (const raw of settingList(settings2("SWIFT_INCLUDE_PATHS"))) {
|
|
5779
6799
|
const dir = absolute(raw);
|
|
5780
|
-
const modulemap =
|
|
5781
|
-
if (!
|
|
5782
|
-
const name = moduleMapName(
|
|
6800
|
+
const modulemap = import_node_path7.default.join(dir, "module.modulemap");
|
|
6801
|
+
if (!import_node_fs4.default.existsSync(modulemap)) continue;
|
|
6802
|
+
const name = moduleMapName(import_node_fs4.default.readFileSync(modulemap, "utf8"));
|
|
5783
6803
|
if (name && !binaryFrameworks.has(name)) includeBinary(name, dir);
|
|
5784
6804
|
}
|
|
5785
6805
|
for (const phaseId of list(ref.target.buildPhases)) {
|
|
@@ -5788,7 +6808,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5788
6808
|
const inputs = list(phase.inputPaths).map(absolute);
|
|
5789
6809
|
for (const raw of list(phase.inputFileListPaths)) {
|
|
5790
6810
|
const file = absolute(raw);
|
|
5791
|
-
if (!
|
|
6811
|
+
if (!import_node_fs4.default.existsSync(file)) continue;
|
|
5792
6812
|
xcconfigs.add(file);
|
|
5793
6813
|
inputs.push(...fileListEntries(file, absolute));
|
|
5794
6814
|
}
|
|
@@ -5853,7 +6873,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5853
6873
|
...productAttributes.get(dependencyId)?.length ? { attributes: productAttributes.get(dependencyId) } : {},
|
|
5854
6874
|
source: reference?.isa === "XCRemoteSwiftPackageReference" ? { kind: "remote", url: str(reference.repositoryURL) ?? "" } : reference?.isa === "XCLocalSwiftPackageReference" ? {
|
|
5855
6875
|
kind: "local",
|
|
5856
|
-
dir:
|
|
6876
|
+
dir: import_node_path7.default.resolve(
|
|
5857
6877
|
project.projectDir,
|
|
5858
6878
|
str(reference.relativePath) ?? ""
|
|
5859
6879
|
)
|
|
@@ -5887,10 +6907,10 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5887
6907
|
continue;
|
|
5888
6908
|
}
|
|
5889
6909
|
if (tree === "BUILT_PRODUCTS_DIR" || tree === "DEVELOPER_DIR" || // a target in the workspace builds it, so it exists only after that build
|
|
5890
|
-
byProduct.has(
|
|
6910
|
+
byProduct.has(import_node_path7.default.basename(rawPath)))
|
|
5891
6911
|
continue;
|
|
5892
6912
|
const resolved = fileId ? project.resolvePath(fileId) : null;
|
|
5893
|
-
if (fileId && resolved !== null && !
|
|
6913
|
+
if (fileId && resolved !== null && !import_node_fs4.default.existsSync(resolved)) {
|
|
5894
6914
|
if (!ios_sdk_frameworks_default.frameworks.includes(name))
|
|
5895
6915
|
throw new Error(
|
|
5896
6916
|
`${str(target.name) ?? "target"}: linked framework ${name} (${fileId}) points at missing ${resolved} in ${project.projectFile}`
|
|
@@ -5917,7 +6937,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5917
6937
|
({ product }) => !options.nativeModules || nativeTargets.has(built.ref) || options.nativeModules.includes(product)
|
|
5918
6938
|
);
|
|
5919
6939
|
const resolvedFile = workspaceResolvedFile(xcodeprojOrWorkspace);
|
|
5920
|
-
let packageResolved =
|
|
6940
|
+
let packageResolved = import_node_fs4.default.existsSync(resolvedFile) ? [import_node_fs4.default.realpathSync.native(resolvedFile)] : [...new Set(localPackageDirs.map((dir) => import_node_path7.default.join(dir, "Package.resolved")))].filter((file) => import_node_fs4.default.existsSync(file)).map((file) => import_node_fs4.default.realpathSync.native(file)).sort();
|
|
5921
6941
|
if (packageResolved.length === 0) {
|
|
5922
6942
|
const requirements = remotePackageRequirements(projects);
|
|
5923
6943
|
if (requirements.length > 0) {
|
|
@@ -5968,19 +6988,19 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5968
6988
|
} : {},
|
|
5969
6989
|
rootDir: commonAncestor(
|
|
5970
6990
|
[
|
|
5971
|
-
workspace ?
|
|
6991
|
+
workspace ? import_node_path7.default.dirname(workspace) : app.project.projectDir,
|
|
5972
6992
|
...used.map((project) => project.projectDir),
|
|
5973
6993
|
...localPackageDirs,
|
|
5974
6994
|
...linkedProducts.flatMap(
|
|
5975
|
-
({ source }) => source.kind === "local" &&
|
|
6995
|
+
({ source }) => source.kind === "local" && import_node_fs4.default.existsSync(source.dir) ? [source.dir] : []
|
|
5976
6996
|
),
|
|
5977
6997
|
...new Set(podSourceDirs),
|
|
5978
6998
|
// a target's own files may sit beside the project, such as an asset
|
|
5979
6999
|
// catalog one folder up, and xcode builds them from there
|
|
5980
7000
|
...new Set(
|
|
5981
|
-
[...module2.allSources, ...module2.resources].filter((file) =>
|
|
7001
|
+
[...module2.allSources, ...module2.resources].filter((file) => import_node_fs4.default.existsSync(file)).map((file) => import_node_path7.default.dirname(file))
|
|
5982
7002
|
)
|
|
5983
|
-
].map((dir) =>
|
|
7003
|
+
].map((dir) => import_node_fs4.default.realpathSync.native(dir))
|
|
5984
7004
|
),
|
|
5985
7005
|
projectFiles: [
|
|
5986
7006
|
.../* @__PURE__ */ new Set([
|
|
@@ -5992,7 +7012,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5992
7012
|
].sort(),
|
|
5993
7013
|
projectDirs: [...new Set(used.map((project) => project.projectDir))].sort(),
|
|
5994
7014
|
appIconName: settings("ASSETCATALOG_COMPILER_APPICON_NAME"),
|
|
5995
|
-
infoPlist: infoPlistPending ? null :
|
|
7015
|
+
infoPlist: infoPlistPending ? null : import_plist3.default.build(info),
|
|
5996
7016
|
infoPlistFile,
|
|
5997
7017
|
...keychainAccessGroups === void 0 ? {} : { keychainAccessGroups },
|
|
5998
7018
|
postBundleScripts,
|
|
@@ -6001,7 +7021,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
6001
7021
|
resourceProducts,
|
|
6002
7022
|
linkedProducts,
|
|
6003
7023
|
localPackageDirs: [
|
|
6004
|
-
...new Set(localPackageDirs.map((dir) =>
|
|
7024
|
+
...new Set(localPackageDirs.map((dir) => import_node_fs4.default.realpathSync.native(dir)))
|
|
6005
7025
|
].sort(),
|
|
6006
7026
|
binaryFrameworks: [...binaryFrameworks].map(([name, file]) => ({ name, path: file })).sort((left, right) => left.name.localeCompare(right.name)),
|
|
6007
7027
|
sdkFrameworks: [...sdkFrameworks].filter(
|
|
@@ -6019,8 +7039,12 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
6019
7039
|
function nonEmptyString2(value) {
|
|
6020
7040
|
return typeof value === "string" && value.length > 0 ? value : void 0;
|
|
6021
7041
|
}
|
|
6022
|
-
|
|
6023
|
-
|
|
7042
|
+
var SDK_BEFORE_SCENE_REQUIREMENT = "26.0";
|
|
7043
|
+
function stampNativeBuildSdk(identity, buildSdkVersion = NATIVE_GRAPH_SDK_VERSION) {
|
|
7044
|
+
const dtPlatformVersion = identity.dtPlatformVersion ?? selectNativeAppIdentityReader(identity.platform, {
|
|
7045
|
+
ios: () => identity.sceneManifest ? buildSdkVersion : SDK_BEFORE_SCENE_REQUIREMENT,
|
|
7046
|
+
android: () => buildSdkVersion
|
|
7047
|
+
})();
|
|
6024
7048
|
return {
|
|
6025
7049
|
...identity,
|
|
6026
7050
|
dtPlatformVersion,
|
|
@@ -6030,7 +7054,7 @@ function stampNativeBuildSdk(identity) {
|
|
|
6030
7054
|
}
|
|
6031
7055
|
};
|
|
6032
7056
|
}
|
|
6033
|
-
function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSource) {
|
|
7057
|
+
function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSource, buildSdkVersion) {
|
|
6034
7058
|
if (app.infoPlist === null)
|
|
6035
7059
|
throw new Error(
|
|
6036
7060
|
"native app Info.plist is generated by a build phase and was not prepared"
|
|
@@ -6102,9 +7126,9 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
|
|
|
6102
7126
|
const rtcAppGroupIdentifier = nonEmptyString2(dictionary.RTCAppGroupIdentifier);
|
|
6103
7127
|
const screenShareExtensionBundleId = typeof dictionary.ScreenShareExtensionBundleId === "string" ? dictionary.ScreenShareExtensionBundleId : void 0;
|
|
6104
7128
|
const rootModuleName = readRootModuleName(
|
|
6105
|
-
app.allSources.filter((file) => /Delegate\.(?:swift|mm|m)$/.test(file) &&
|
|
7129
|
+
app.allSources.filter((file) => /Delegate\.(?:swift|mm|m)$/.test(file) && import_node_fs5.default.existsSync(file)).map((file) => import_node_fs5.default.readFileSync(file, "utf8"))
|
|
6106
7130
|
);
|
|
6107
|
-
|
|
7131
|
+
const identity = {
|
|
6108
7132
|
...app.keychainAccessGroups === void 0 ? {} : { keychainAccessGroups: app.keychainAccessGroups },
|
|
6109
7133
|
applicationName,
|
|
6110
7134
|
...applicationDisplayName ? { applicationDisplayName } : {},
|
|
@@ -6115,6 +7139,7 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
|
|
|
6115
7139
|
...typeof dictionary.UIViewControllerBasedStatusBarAppearance === "boolean" ? {
|
|
6116
7140
|
viewControllerBasedStatusBarAppearance: dictionary.UIViewControllerBasedStatusBarAppearance
|
|
6117
7141
|
} : {},
|
|
7142
|
+
sceneManifest: isRecord(dictionary.UIApplicationSceneManifest) ? dictionary.UIApplicationSceneManifest : null,
|
|
6118
7143
|
...typeof dictionary.DTPlatformVersion === "string" ? { dtPlatformVersion: dictionary.DTPlatformVersion } : {},
|
|
6119
7144
|
bundleName,
|
|
6120
7145
|
appVersion,
|
|
@@ -6124,7 +7149,7 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
|
|
|
6124
7149
|
googleSignIn: readGoogleSignInConfiguration(
|
|
6125
7150
|
dictionary,
|
|
6126
7151
|
Object.fromEntries(
|
|
6127
|
-
app.resources.filter((file) => file.endsWith(".plist")).map((file) => [file, parseInfoPlist(
|
|
7152
|
+
app.resources.filter((file) => file.endsWith(".plist")).map((file) => [file, parseInfoPlist(import_node_fs5.default.readFileSync(file, "utf8"))])
|
|
6128
7153
|
)
|
|
6129
7154
|
),
|
|
6130
7155
|
supportedInterfaceOrientations,
|
|
@@ -6134,11 +7159,11 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
|
|
|
6134
7159
|
bundleIcons: resolveNativeBundleIcons(icons, catalogAlternateNames, (value) => value),
|
|
6135
7160
|
appIconArtwork: resolveNativeAppIconArtwork(
|
|
6136
7161
|
app.resources,
|
|
6137
|
-
(file) =>
|
|
7162
|
+
(file) => import_node_fs5.default.readFileSync(file, "utf8"),
|
|
6138
7163
|
(file) => {
|
|
6139
|
-
const extension =
|
|
7164
|
+
const extension = import_node_path8.default.extname(file).toLowerCase();
|
|
6140
7165
|
const contentType = extension === ".jpg" || extension === ".jpeg" ? "image/jpeg" : extension === ".webp" ? "image/webp" : "image/png";
|
|
6141
|
-
return `data:${contentType};base64,${
|
|
7166
|
+
return `data:${contentType};base64,${import_node_fs5.default.readFileSync(file).toString("base64")}`;
|
|
6142
7167
|
},
|
|
6143
7168
|
icons,
|
|
6144
7169
|
app.appIconName,
|
|
@@ -6155,12 +7180,19 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
|
|
|
6155
7180
|
backgroundTaskIdentifiers,
|
|
6156
7181
|
backgroundModes,
|
|
6157
7182
|
appIntentIdentifiers
|
|
6158
|
-
}
|
|
7183
|
+
};
|
|
7184
|
+
return stampNativeBuildSdk(identity, buildSdkVersion);
|
|
6159
7185
|
}
|
|
6160
|
-
function readNativeAppIdentityFromProject(projectRoot, platform, parseInfoPlist = parsePlistSource, iosTarget, androidMergedManifest, environment) {
|
|
7186
|
+
function readNativeAppIdentityFromProject(projectRoot, platform, parseInfoPlist = parsePlistSource, iosTarget, androidMergedManifest, environment, buildSdkVersion) {
|
|
6161
7187
|
const read = selectNativeAppIdentityReader(platform, {
|
|
6162
7188
|
android: () => readAndroidNativeAppIdentity(projectRoot, androidMergedManifest),
|
|
6163
|
-
ios: () => readIosNativeAppIdentity(
|
|
7189
|
+
ios: () => readIosNativeAppIdentity(
|
|
7190
|
+
projectRoot,
|
|
7191
|
+
parseInfoPlist,
|
|
7192
|
+
iosTarget,
|
|
7193
|
+
environment,
|
|
7194
|
+
buildSdkVersion
|
|
7195
|
+
)
|
|
6164
7196
|
});
|
|
6165
7197
|
return read ? read() : null;
|
|
6166
7198
|
}
|
|
@@ -6168,11 +7200,11 @@ function readNativeAppIdentityFromSources(projectRoot, platform, parseInfoPlist,
|
|
|
6168
7200
|
const read = selectNativeAppIdentityReader(platform, {
|
|
6169
7201
|
android: () => null,
|
|
6170
7202
|
ios: () => {
|
|
6171
|
-
const nested =
|
|
6172
|
-
const iosRoot =
|
|
7203
|
+
const nested = import_node_path8.default.join(projectRoot, "ios");
|
|
7204
|
+
const iosRoot = import_node_fs5.default.existsSync(nested) ? nested : projectRoot;
|
|
6173
7205
|
const prefix = iosRoot === nested ? "ios/" : "";
|
|
6174
7206
|
const files = {};
|
|
6175
|
-
for (const entry of
|
|
7207
|
+
for (const entry of import_node_fs5.default.readdirSync(iosRoot, { withFileTypes: true })) {
|
|
6176
7208
|
if (entry.name === "Pods") continue;
|
|
6177
7209
|
if (entry.isDirectory()) {
|
|
6178
7210
|
const names = entry.name.endsWith(".xcodeproj") ? ["project.pbxproj"] : [
|
|
@@ -6180,17 +7212,17 @@ function readNativeAppIdentityFromSources(projectRoot, platform, parseInfoPlist,
|
|
|
6180
7212
|
"AppDelegate.swift",
|
|
6181
7213
|
"AppDelegate.mm",
|
|
6182
7214
|
"AppDelegate.m",
|
|
6183
|
-
...
|
|
7215
|
+
...import_node_fs5.default.readdirSync(import_node_path8.default.join(iosRoot, entry.name)).filter((name) => name.endsWith(".entitlements"))
|
|
6184
7216
|
];
|
|
6185
7217
|
for (const name of names) {
|
|
6186
7218
|
const relative = `${prefix}${entry.name}/${name}`;
|
|
6187
|
-
const file =
|
|
6188
|
-
if (
|
|
7219
|
+
const file = import_node_path8.default.join(projectRoot, relative);
|
|
7220
|
+
if (import_node_fs5.default.existsSync(file)) files[relative] = import_node_fs5.default.readFileSync(file, "utf8");
|
|
6189
7221
|
}
|
|
6190
7222
|
} else if (/AppDelegate\.(?:swift|mm|m)$|\.entitlements$/.test(entry.name)) {
|
|
6191
7223
|
const relative = `${prefix}${entry.name}`;
|
|
6192
|
-
const file =
|
|
6193
|
-
if (
|
|
7224
|
+
const file = import_node_path8.default.join(projectRoot, relative);
|
|
7225
|
+
if (import_node_fs5.default.existsSync(file)) files[relative] = import_node_fs5.default.readFileSync(file, "utf8");
|
|
6194
7226
|
}
|
|
6195
7227
|
}
|
|
6196
7228
|
const identity = extractNativeAppIdentityFromFiles(
|
|
@@ -6207,41 +7239,41 @@ function readNativeAppIdentityFromSources(projectRoot, platform, parseInfoPlist,
|
|
|
6207
7239
|
function readAndroidNativeAppIdentity(projectRoot, androidMergedManifest) {
|
|
6208
7240
|
const files = {};
|
|
6209
7241
|
if (androidMergedManifest) {
|
|
6210
|
-
const file =
|
|
6211
|
-
if (!
|
|
6212
|
-
files[androidMergedManifest] =
|
|
7242
|
+
const file = import_node_path8.default.resolve(projectRoot, androidMergedManifest);
|
|
7243
|
+
if (!import_node_fs5.default.existsSync(file)) return null;
|
|
7244
|
+
files[androidMergedManifest] = import_node_fs5.default.readFileSync(file, "utf8");
|
|
6213
7245
|
} else {
|
|
6214
|
-
const androidRoot =
|
|
6215
|
-
if (!
|
|
7246
|
+
const androidRoot = import_node_path8.default.join(projectRoot, "android");
|
|
7247
|
+
if (!import_node_fs5.default.existsSync(androidRoot)) return null;
|
|
6216
7248
|
const collect = (directory) => {
|
|
6217
|
-
for (const entry of
|
|
6218
|
-
const file =
|
|
7249
|
+
for (const entry of import_node_fs5.default.readdirSync(directory, { withFileTypes: true })) {
|
|
7250
|
+
const file = import_node_path8.default.join(directory, entry.name);
|
|
6219
7251
|
if (entry.isDirectory()) collect(file);
|
|
6220
7252
|
else if (entry.isFile() && entry.name === "AndroidManifest.xml")
|
|
6221
|
-
files[
|
|
7253
|
+
files[import_node_path8.default.relative(projectRoot, file).split(import_node_path8.default.sep).join("/")] = import_node_fs5.default.readFileSync(file, "utf8");
|
|
6222
7254
|
}
|
|
6223
7255
|
};
|
|
6224
|
-
for (const module2 of
|
|
7256
|
+
for (const module2 of import_node_fs5.default.readdirSync(androidRoot, { withFileTypes: true })) {
|
|
6225
7257
|
if (!module2.isDirectory()) continue;
|
|
6226
|
-
const outputs =
|
|
7258
|
+
const outputs = import_node_path8.default.join(
|
|
6227
7259
|
androidRoot,
|
|
6228
7260
|
module2.name,
|
|
6229
7261
|
"build/intermediates/merged_manifests"
|
|
6230
7262
|
);
|
|
6231
|
-
if (
|
|
7263
|
+
if (import_node_fs5.default.existsSync(outputs)) collect(outputs);
|
|
6232
7264
|
}
|
|
6233
7265
|
}
|
|
6234
7266
|
for (const manifest of Object.keys(files)) {
|
|
6235
7267
|
const resourceDirectory = androidMergedResourceValuesDirectory(manifest);
|
|
6236
7268
|
if (!resourceDirectory) continue;
|
|
6237
|
-
const absolute =
|
|
6238
|
-
if (!
|
|
6239
|
-
for (const entry of
|
|
7269
|
+
const absolute = import_node_path8.default.resolve(projectRoot, resourceDirectory);
|
|
7270
|
+
if (!import_node_fs5.default.existsSync(absolute)) continue;
|
|
7271
|
+
for (const entry of import_node_fs5.default.readdirSync(absolute, { withFileTypes: true })) {
|
|
6240
7272
|
if (!entry.isDirectory() || !/^values(?:-|$)/.test(entry.name)) continue;
|
|
6241
|
-
for (const resource of
|
|
7273
|
+
for (const resource of import_node_fs5.default.readdirSync(import_node_path8.default.join(absolute, entry.name))) {
|
|
6242
7274
|
if (!resource.endsWith(".xml")) continue;
|
|
6243
7275
|
const file = `${resourceDirectory}/${entry.name}/${resource}`;
|
|
6244
|
-
files[file] =
|
|
7276
|
+
files[file] = import_node_fs5.default.readFileSync(import_node_path8.default.resolve(projectRoot, file), "utf8");
|
|
6245
7277
|
}
|
|
6246
7278
|
}
|
|
6247
7279
|
}
|
|
@@ -6254,11 +7286,15 @@ function readAndroidNativeAppIdentity(projectRoot, androidMergedManifest) {
|
|
|
6254
7286
|
androidMergedManifest
|
|
6255
7287
|
);
|
|
6256
7288
|
}
|
|
6257
|
-
function readIosNativeAppIdentity(projectRoot, parseInfoPlist, iosTarget, environment) {
|
|
7289
|
+
function readIosNativeAppIdentity(projectRoot, parseInfoPlist, iosTarget, environment, buildSdkVersion) {
|
|
6258
7290
|
const app = readIosAppTarget(projectRoot, iosTarget, environment);
|
|
6259
7291
|
if (!app) return null;
|
|
6260
|
-
const identity = readNativeAppIdentityFromXcodeTarget(
|
|
6261
|
-
|
|
7292
|
+
const identity = readNativeAppIdentityFromXcodeTarget(
|
|
7293
|
+
app,
|
|
7294
|
+
parseInfoPlist,
|
|
7295
|
+
buildSdkVersion
|
|
7296
|
+
);
|
|
7297
|
+
const projectManifestPath = import_node_path8.default.join(projectRoot, "package.json");
|
|
6262
7298
|
const projectRequire = (0, import_node_module.createRequire)(projectManifestPath);
|
|
6263
7299
|
let reanimatedManifestPath;
|
|
6264
7300
|
try {
|
|
@@ -6272,22 +7308,22 @@ function readIosNativeAppIdentity(projectRoot, parseInfoPlist, iosTarget, enviro
|
|
|
6272
7308
|
throw error;
|
|
6273
7309
|
}
|
|
6274
7310
|
const installedManifest = JSON.parse(
|
|
6275
|
-
|
|
7311
|
+
import_node_fs5.default.readFileSync(reanimatedManifestPath, "utf8")
|
|
6276
7312
|
);
|
|
6277
7313
|
const installedVersion = isRecord(installedManifest) ? nonEmptyString2(installedManifest.version) : void 0;
|
|
6278
7314
|
if (!installedVersion) throw new Error("Reanimated package version is malformed");
|
|
6279
7315
|
if (Number.parseInt(installedVersion, 10) < 4) return identity;
|
|
6280
7316
|
const defaults = JSON.parse(
|
|
6281
|
-
|
|
6282
|
-
|
|
6283
|
-
|
|
7317
|
+
import_node_fs5.default.readFileSync(
|
|
7318
|
+
import_node_path8.default.join(
|
|
7319
|
+
import_node_path8.default.dirname(reanimatedManifestPath),
|
|
6284
7320
|
"src/featureFlags/staticFlags.json"
|
|
6285
7321
|
),
|
|
6286
7322
|
"utf8"
|
|
6287
7323
|
)
|
|
6288
7324
|
);
|
|
6289
7325
|
if (!isRecord(defaults)) throw new Error("Reanimated static flags are malformed");
|
|
6290
|
-
const manifest = JSON.parse(
|
|
7326
|
+
const manifest = JSON.parse(import_node_fs5.default.readFileSync(projectManifestPath, "utf8"));
|
|
6291
7327
|
const reanimated = isRecord(manifest) ? manifest.reanimated : void 0;
|
|
6292
7328
|
const overrides = isRecord(reanimated) ? reanimated.staticFeatureFlags : void 0;
|
|
6293
7329
|
if (overrides !== void 0 && !isRecord(overrides)) {
|