peachsim 0.1.2306 → 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 +15093 -9243
- 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 +12391 -7202
- 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 +12497 -8637
- package/dist-lib/host/fetch-proxy-handler.cjs +431 -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 +2187 -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 +2176 -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 +13910 -9670
- 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 +5344 -3572
- package/dist-lib/vite.cjs +2890 -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/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 +50 -22
- 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 +2027 -271
- 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,10 +1,11 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2363 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
9
|
var __commonJS = (cb, mod) => function __require() {
|
|
9
10
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
11
|
};
|
|
@@ -24,6 +25,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
25
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
26
|
mod
|
|
26
27
|
));
|
|
28
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
27
29
|
|
|
28
30
|
// ../../node_modules/json5/lib/unicode.js
|
|
29
31
|
var require_unicode = __commonJS({
|
|
@@ -1138,9 +1140,9 @@ var require_lib = __commonJS({
|
|
|
1138
1140
|
});
|
|
1139
1141
|
|
|
1140
1142
|
// src/native-app-identity-project.ts
|
|
1141
|
-
import
|
|
1143
|
+
import fs19 from "node:fs";
|
|
1142
1144
|
import { createRequire } from "node:module";
|
|
1143
|
-
import
|
|
1145
|
+
import path38 from "node:path";
|
|
1144
1146
|
|
|
1145
1147
|
// src/android-string-value.ts
|
|
1146
1148
|
function compileAndroidStringValue(text2, where) {
|
|
@@ -1680,31 +1682,37 @@ function readKeychainAccessGroups(dictionary, resolve) {
|
|
|
1680
1682
|
function nonEmptyString(value) {
|
|
1681
1683
|
return typeof value === "string" && value.length > 0 ? value : null;
|
|
1682
1684
|
}
|
|
1683
|
-
function readGoogleSignInConfiguration(
|
|
1685
|
+
function readGoogleSignInConfiguration(plist4, resources) {
|
|
1684
1686
|
const clientIds = {};
|
|
1685
1687
|
for (const [file, value] of Object.entries(resources)) {
|
|
1686
1688
|
if (isRecord(value) && typeof value.CLIENT_ID === "string")
|
|
1687
1689
|
clientIds[file.split("/").pop()?.replace(/\.plist$/, "") ?? file] = value.CLIENT_ID;
|
|
1688
1690
|
}
|
|
1689
1691
|
const urlSchemes = [];
|
|
1690
|
-
for (const entry of Array.isArray(
|
|
1692
|
+
for (const entry of Array.isArray(plist4.CFBundleURLTypes) ? plist4.CFBundleURLTypes : []) {
|
|
1691
1693
|
if (!isRecord(entry) || !Array.isArray(entry.CFBundleURLSchemes)) continue;
|
|
1692
1694
|
for (const scheme of entry.CFBundleURLSchemes)
|
|
1693
1695
|
if (typeof scheme === "string") urlSchemes.push(scheme);
|
|
1694
1696
|
}
|
|
1695
1697
|
return {
|
|
1696
|
-
clientId:
|
|
1697
|
-
serverClientId:
|
|
1698
|
-
hostedDomain:
|
|
1699
|
-
openIDRealm:
|
|
1698
|
+
clientId: plist4.GIDClientID,
|
|
1699
|
+
serverClientId: plist4.GIDServerClientID,
|
|
1700
|
+
hostedDomain: plist4.GIDHostedDomain,
|
|
1701
|
+
openIDRealm: plist4.GIDOpenIDRealm,
|
|
1700
1702
|
urlSchemes,
|
|
1701
1703
|
clientIds
|
|
1702
1704
|
};
|
|
1703
1705
|
}
|
|
1704
|
-
function plistString(
|
|
1705
|
-
const match =
|
|
1706
|
+
function plistString(plist4, key) {
|
|
1707
|
+
const match = plist4.match(new RegExp(`<key>${key}</key>\\s*<string>([^<]*)</string>`));
|
|
1706
1708
|
return match ? match[1].trim() : null;
|
|
1707
1709
|
}
|
|
1710
|
+
function resolvePlistStrings(value, settings) {
|
|
1711
|
+
const resolve = (item) => typeof item === "string" ? resolveBuildSetting(item, settings) ?? item : Array.isArray(item) ? item.map(resolve) : isRecord(item) ? resolvePlistStrings(item, settings) : item;
|
|
1712
|
+
return Object.fromEntries(
|
|
1713
|
+
Object.entries(value).map(([key, item]) => [key, resolve(item)])
|
|
1714
|
+
);
|
|
1715
|
+
}
|
|
1708
1716
|
function resolveBuildSetting(value, settings, depth = 0) {
|
|
1709
1717
|
if (depth > 8) return null;
|
|
1710
1718
|
let unresolved = false;
|
|
@@ -1772,9 +1780,9 @@ function appTargetReleaseSettings(pbxproj, targetName, infoPlistRelativePath) {
|
|
|
1772
1780
|
candidates.push({ name: match[1], settings });
|
|
1773
1781
|
}
|
|
1774
1782
|
const plistMatch = (settings) => {
|
|
1775
|
-
const
|
|
1776
|
-
if (!
|
|
1777
|
-
const normalized =
|
|
1783
|
+
const plist4 = settings.INFOPLIST_FILE;
|
|
1784
|
+
if (!plist4) return false;
|
|
1785
|
+
const normalized = plist4.replace(/^"|"$/g, "");
|
|
1778
1786
|
return normalized === infoPlistRelativePath || infoPlistRelativePath.endsWith(`/${normalized}`) || normalized.endsWith(`/${infoPlistRelativePath}`);
|
|
1779
1787
|
};
|
|
1780
1788
|
const named = (settings) => resolveBuildSetting(settings.PRODUCT_NAME ?? "", settings) === targetName;
|
|
@@ -1787,10 +1795,10 @@ function appTargetReleaseSettings(pbxproj, targetName, infoPlistRelativePath) {
|
|
|
1787
1795
|
var APP_DELEGATE_PATH_RE = /(?:^|\/)(?:ios\/)?([^/]+)\/AppDelegate\.(?:swift|mm|m)$/;
|
|
1788
1796
|
function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri) {
|
|
1789
1797
|
const pbxprojPath = Object.keys(files).find(
|
|
1790
|
-
(
|
|
1798
|
+
(path39) => /(?:^|\/)ios\/[^/]+\.xcodeproj\/project\.pbxproj$/.test(path39)
|
|
1791
1799
|
) ?? Object.keys(files).find(
|
|
1792
|
-
(
|
|
1793
|
-
) ?? Object.keys(files).find((
|
|
1800
|
+
(path39) => /(?:^|\/)[^/]+\.xcodeproj\/project\.pbxproj$/.test(path39)
|
|
1801
|
+
) ?? Object.keys(files).find((path39) => /(?:^|\/)project\.pbxproj$/.test(path39));
|
|
1794
1802
|
if (!pbxprojPath) return null;
|
|
1795
1803
|
const pbxproj = files[pbxprojPath];
|
|
1796
1804
|
let objects = {};
|
|
@@ -1832,7 +1840,7 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
|
|
|
1832
1840
|
} else if (applicationTargetNames.size === 1) {
|
|
1833
1841
|
targetName = [...applicationTargetNames][0];
|
|
1834
1842
|
} else if (applicationTargetNames.size > 1) {
|
|
1835
|
-
const delegateTargets = Object.keys(files).filter((
|
|
1843
|
+
const delegateTargets = Object.keys(files).filter((path39) => !path39.includes("/Pods/")).map((path39) => path39.match(APP_DELEGATE_PATH_RE)?.[1]).filter(
|
|
1836
1844
|
(name) => typeof name === "string" && applicationTargetNames.has(name)
|
|
1837
1845
|
);
|
|
1838
1846
|
if (delegateTargets.length === 1) {
|
|
@@ -1887,41 +1895,41 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
|
|
|
1887
1895
|
);
|
|
1888
1896
|
if (legacy) Object.assign(settings, legacy);
|
|
1889
1897
|
}
|
|
1890
|
-
let
|
|
1898
|
+
let plist4;
|
|
1891
1899
|
const infoPlistPath = settings.INFOPLIST_FILE;
|
|
1892
1900
|
if (infoPlistPath) {
|
|
1893
1901
|
const normalized = infoPlistPath.replace(/^"|"$/g, "");
|
|
1894
|
-
|
|
1902
|
+
plist4 = files[`ios/${normalized}`] ?? files[normalized] ?? Object.entries(files).find(([k]) => k.endsWith(`/${normalized}`))?.[1];
|
|
1895
1903
|
}
|
|
1896
|
-
if (!
|
|
1897
|
-
|
|
1904
|
+
if (!plist4) {
|
|
1905
|
+
plist4 = files[`ios/${targetName}/Info.plist`] ?? files[`${targetName}/Info.plist`] ?? Object.entries(files).find(([k]) => k.endsWith(`/${targetName}/Info.plist`))?.[1];
|
|
1898
1906
|
}
|
|
1899
|
-
if (!
|
|
1907
|
+
if (!plist4) return null;
|
|
1900
1908
|
const bundleIdentifier = identityFieldFrom(
|
|
1901
1909
|
settings,
|
|
1902
|
-
plistString(
|
|
1910
|
+
plistString(plist4, "CFBundleIdentifier"),
|
|
1903
1911
|
settings.PRODUCT_BUNDLE_IDENTIFIER
|
|
1904
1912
|
);
|
|
1905
1913
|
if (!bundleIdentifier) return null;
|
|
1906
1914
|
const appVersion = identityFieldFrom(
|
|
1907
1915
|
settings,
|
|
1908
|
-
plistString(
|
|
1916
|
+
plistString(plist4, "CFBundleShortVersionString"),
|
|
1909
1917
|
settings.MARKETING_VERSION
|
|
1910
1918
|
);
|
|
1911
1919
|
const buildVersion = identityFieldFrom(
|
|
1912
1920
|
settings,
|
|
1913
|
-
plistString(
|
|
1921
|
+
plistString(plist4, "CFBundleVersion"),
|
|
1914
1922
|
settings.CURRENT_PROJECT_VERSION
|
|
1915
1923
|
);
|
|
1916
1924
|
if (!appVersion || !buildVersion) return null;
|
|
1917
1925
|
const bundleName = identityFieldFrom(
|
|
1918
1926
|
settings,
|
|
1919
|
-
plistString(
|
|
1927
|
+
plistString(plist4, "CFBundleName"),
|
|
1920
1928
|
settings.PRODUCT_NAME
|
|
1921
1929
|
) ?? resolvedIdentityField(resolveBuildSetting(settings.PRODUCT_NAME ?? "", settings)) ?? resolvedIdentityField(targetName);
|
|
1922
1930
|
if (!bundleName) return null;
|
|
1923
|
-
const applicationName = identityFieldFrom(settings, plistString(
|
|
1924
|
-
const dictionary = parseInfoPlist(
|
|
1931
|
+
const applicationName = identityFieldFrom(settings, plistString(plist4, "CFBundleDisplayName"), void 0) ?? bundleName;
|
|
1932
|
+
const dictionary = parseInfoPlist(plist4);
|
|
1925
1933
|
if (!isRecord(dictionary)) throw new Error("native app Info.plist is not a dictionary");
|
|
1926
1934
|
let keychainAccessGroups;
|
|
1927
1935
|
if (settings.CODE_SIGN_ENTITLEMENTS) {
|
|
@@ -2073,7 +2081,7 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
|
|
|
2073
2081
|
if (Object.hasOwn(files, file)) return [file];
|
|
2074
2082
|
const prefix = file === "" ? "" : `${file.replace(/\/$/, "")}/`;
|
|
2075
2083
|
return paths.filter(
|
|
2076
|
-
(
|
|
2084
|
+
(path39) => path39.startsWith(prefix) && !/(?:^|\/)\./.test(path39.slice(prefix.length))
|
|
2077
2085
|
);
|
|
2078
2086
|
},
|
|
2079
2087
|
join8,
|
|
@@ -2084,7 +2092,7 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
|
|
|
2084
2092
|
}
|
|
2085
2093
|
const rootModuleName = readRootModuleName(
|
|
2086
2094
|
Object.entries(files).filter(
|
|
2087
|
-
([
|
|
2095
|
+
([path39]) => !path39.includes("/Pods/") && (/(?:^|\/)(?:ios\/)?AppDelegate\.(?:swift|mm|m)$/.test(path39) || path39.match(APP_DELEGATE_PATH_RE)?.[1] === targetName)
|
|
2088
2096
|
).map(([, source]) => source)
|
|
2089
2097
|
);
|
|
2090
2098
|
return {
|
|
@@ -2097,6 +2105,7 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
|
|
|
2097
2105
|
...typeof dictionary.UIViewControllerBasedStatusBarAppearance === "boolean" ? {
|
|
2098
2106
|
viewControllerBasedStatusBarAppearance: dictionary.UIViewControllerBasedStatusBarAppearance
|
|
2099
2107
|
} : {},
|
|
2108
|
+
sceneManifest: isRecord(dictionary.UIApplicationSceneManifest) ? resolvePlistStrings(dictionary.UIApplicationSceneManifest, settings) : null,
|
|
2100
2109
|
...dtPlatformVersion === void 0 ? {} : { dtPlatformVersion },
|
|
2101
2110
|
bundleName,
|
|
2102
2111
|
appVersion,
|
|
@@ -2183,20 +2192,29 @@ function parsePlistSource(source) {
|
|
|
2183
2192
|
|
|
2184
2193
|
// src/swift-objc-standin.ts
|
|
2185
2194
|
import { execFileSync as execFileSync2, spawnSync as spawnSync2 } from "node:child_process";
|
|
2186
|
-
import { createHash as
|
|
2187
|
-
import
|
|
2188
|
-
import
|
|
2195
|
+
import { createHash as createHash3 } from "node:crypto";
|
|
2196
|
+
import fs3 from "node:fs";
|
|
2197
|
+
import path7 from "node:path";
|
|
2198
|
+
|
|
2199
|
+
// src/case-insensitive-header-overlay.ts
|
|
2200
|
+
import { createHash } from "node:crypto";
|
|
2201
|
+
import fs from "node:fs";
|
|
2202
|
+
import path2 from "node:path";
|
|
2203
|
+
|
|
2204
|
+
// src/write-build-file.ts
|
|
2205
|
+
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
2206
|
+
import path from "node:path";
|
|
2189
2207
|
|
|
2190
2208
|
// src/swift-objc-platform.ts
|
|
2191
2209
|
import { spawnSync } from "node:child_process";
|
|
2192
|
-
import
|
|
2210
|
+
import path4 from "node:path";
|
|
2193
2211
|
|
|
2194
2212
|
// src/swift-toolchain.ts
|
|
2195
2213
|
import { execFile, execFileSync, spawn } from "node:child_process";
|
|
2196
|
-
import { createHash } from "node:crypto";
|
|
2197
|
-
import
|
|
2214
|
+
import { createHash as createHash2 } from "node:crypto";
|
|
2215
|
+
import fs2 from "node:fs";
|
|
2198
2216
|
import os from "node:os";
|
|
2199
|
-
import
|
|
2217
|
+
import path3 from "node:path";
|
|
2200
2218
|
import { pipeline } from "node:stream/promises";
|
|
2201
2219
|
import { fileURLToPath } from "node:url";
|
|
2202
2220
|
import { promisify } from "node:util";
|
|
@@ -2204,6 +2222,24 @@ import zlib from "node:zlib";
|
|
|
2204
2222
|
var SWIFT_HOST_COMPILER_RELEASE = "swift-6.4.0-RELEASE-custom-81b2c791c27276bf";
|
|
2205
2223
|
var SWIFT_HOST_COMPILER_ID = "81b2c791c27276bf";
|
|
2206
2224
|
var compilerArchives = {
|
|
2225
|
+
"swift-6.4.0-RELEASE-custom-cbd9cef4b408cc96": {
|
|
2226
|
+
identity: "cbd9cef4b408cc96",
|
|
2227
|
+
archive: "tar.zst",
|
|
2228
|
+
hosts: {
|
|
2229
|
+
"darwin-arm64": {
|
|
2230
|
+
checksum: "97ed2a6b10ae85e73422656fe7b44fdbd5e2343d7082ef2cb39476847988e615",
|
|
2231
|
+
manifest: "49c8002809ba90b16e2619653994bc776b5bc7ef26b98796233d8b425515b734"
|
|
2232
|
+
},
|
|
2233
|
+
"linux-x64": {
|
|
2234
|
+
checksum: "b404cffaa55b783098056cce0ef568d864bc92910dafa89dd0650d0e9d019918",
|
|
2235
|
+
manifest: "19c333d87f2ffc5c716e0561b3bcb0c2a6c6015ccd4a404a739099c6aa3b898f"
|
|
2236
|
+
},
|
|
2237
|
+
"linux-arm64": {
|
|
2238
|
+
checksum: "47d8572b0438f100494edaeb4c7b24fbf5c627d7d02a09fcd68a95c6d2d780f5",
|
|
2239
|
+
manifest: "b27a2bccb5a8a0988414951b3b4a4cd9d3acc315694f59ae4c166c2f41282171"
|
|
2240
|
+
}
|
|
2241
|
+
}
|
|
2242
|
+
},
|
|
2207
2243
|
"swift-6.4.0-RELEASE-custom-fb42d2535739dfd2": {
|
|
2208
2244
|
identity: "fb42d2535739dfd2",
|
|
2209
2245
|
archive: "tar.zst",
|
|
@@ -2459,11 +2495,11 @@ var compilerArchives = {
|
|
|
2459
2495
|
};
|
|
2460
2496
|
|
|
2461
2497
|
// src/swift-objc-sdk.ts
|
|
2462
|
-
import
|
|
2498
|
+
import path6 from "node:path";
|
|
2463
2499
|
|
|
2464
2500
|
// src/swift-objc-sdk-tree.ts
|
|
2465
|
-
import { readdirSync, readFileSync } from "node:fs";
|
|
2466
|
-
import
|
|
2501
|
+
import { readdirSync, readFileSync as readFileSync2 } from "node:fs";
|
|
2502
|
+
import path5 from "node:path";
|
|
2467
2503
|
|
|
2468
2504
|
// src/swift-objc-sdk.ts
|
|
2469
2505
|
var IOS_SDK_TARGET = "arm64-apple-ios16.0-simulator";
|
|
@@ -2523,14 +2559,907 @@ var NATIVE_GRAPH_INPUTS = {
|
|
|
2523
2559
|
compiler: "Apple Swift version 6.4 (swiftlang-6.4.0.34.1 clang-2100.3.34.1)",
|
|
2524
2560
|
target: IOS_SDK_TARGET
|
|
2525
2561
|
};
|
|
2526
|
-
var NATIVE_GRAPH_ID =
|
|
2562
|
+
var NATIVE_GRAPH_ID = createHash3("sha256").update(JSON.stringify(NATIVE_GRAPH_INPUTS)).digest("hex");
|
|
2527
2563
|
|
|
2528
2564
|
// src/xcode-project.ts
|
|
2529
|
-
import { execFileSync as
|
|
2530
|
-
import { createHash as
|
|
2531
|
-
import
|
|
2532
|
-
import
|
|
2565
|
+
import { execFileSync as execFileSync15 } from "node:child_process";
|
|
2566
|
+
import { createHash as createHash22 } from "node:crypto";
|
|
2567
|
+
import fs18 from "node:fs";
|
|
2568
|
+
import path37 from "node:path";
|
|
2569
|
+
import plist3 from "plist";
|
|
2570
|
+
|
|
2571
|
+
// src/bazel-project.ts
|
|
2572
|
+
import { execFileSync as execFileSync3 } from "node:child_process";
|
|
2573
|
+
import { createHash as createHash4 } from "node:crypto";
|
|
2574
|
+
import fs4 from "node:fs";
|
|
2575
|
+
import os2 from "node:os";
|
|
2576
|
+
import path8 from "node:path";
|
|
2533
2577
|
import plist2 from "plist";
|
|
2578
|
+
var LIBRARY_RULES = /* @__PURE__ */ new Set(["swift_library", "objc_library", "cc_library"]);
|
|
2579
|
+
var QUERIED_RULES = [
|
|
2580
|
+
"swift_library",
|
|
2581
|
+
"objc_library",
|
|
2582
|
+
"cc_library",
|
|
2583
|
+
"genrule",
|
|
2584
|
+
"filegroup",
|
|
2585
|
+
"alias",
|
|
2586
|
+
"apple_resource_bundle",
|
|
2587
|
+
"rust_static_library",
|
|
2588
|
+
"apple_static_xcframework_import",
|
|
2589
|
+
"apple_dynamic_xcframework_import",
|
|
2590
|
+
"apple_intent_library"
|
|
2591
|
+
];
|
|
2592
|
+
var NATIVE_SOURCE = /\.(?:m|mm|c|cc|cpp|cxx|S)$/;
|
|
2593
|
+
var HEADER = /\.(?:h|hh|hpp|hxx|inc|inl|ipp)$/;
|
|
2594
|
+
var PRODUCTS = path8.join(".build", "peach-bazel", "Products");
|
|
2595
|
+
function isBazelPackage(input) {
|
|
2596
|
+
return /^BUILD(?:\.bazel)?$/.test(path8.basename(input)) && fs4.statSync(input).isFile();
|
|
2597
|
+
}
|
|
2598
|
+
function workspaceRoot(buildFile) {
|
|
2599
|
+
for (let dir = path8.dirname(buildFile); ; dir = path8.dirname(dir)) {
|
|
2600
|
+
if (["MODULE.bazel", "WORKSPACE", "WORKSPACE.bazel"].some(
|
|
2601
|
+
(name) => fs4.existsSync(path8.join(dir, name))
|
|
2602
|
+
))
|
|
2603
|
+
return dir;
|
|
2604
|
+
if (path8.dirname(dir) === dir)
|
|
2605
|
+
throw new Error(`${buildFile} is not inside a bazel workspace`);
|
|
2606
|
+
}
|
|
2607
|
+
}
|
|
2608
|
+
function bazelBinary(root) {
|
|
2609
|
+
const pinned = path8.join(root, ".bazelversion");
|
|
2610
|
+
if (!fs4.existsSync(pinned)) return "bazel";
|
|
2611
|
+
const version = fs4.readFileSync(pinned, "utf8").trim();
|
|
2612
|
+
const platform = os2.platform() === "darwin" ? "darwin" : "linux";
|
|
2613
|
+
const arch = os2.arch() === "arm64" ? "arm64" : "x86_64";
|
|
2614
|
+
const name = `bazel-${version}-${platform}-${arch}`;
|
|
2615
|
+
const binary = path8.join(os2.homedir(), ".peach", "cache", "bazel", name);
|
|
2616
|
+
if (fs4.existsSync(binary)) return binary;
|
|
2617
|
+
const url = `https://github.com/bazelbuild/bazel/releases/download/${version}/${name}`;
|
|
2618
|
+
fs4.mkdirSync(path8.dirname(binary), { recursive: true });
|
|
2619
|
+
const partial = `${binary}.${process.pid}.partial`;
|
|
2620
|
+
execFileSync3("curl", ["-fsSL", "-o", partial, url]);
|
|
2621
|
+
const expected = execFileSync3("curl", ["-fsSL", `${url}.sha256`], {
|
|
2622
|
+
encoding: "utf8"
|
|
2623
|
+
}).split(/\s/)[0];
|
|
2624
|
+
const actual = createHash4("sha256").update(fs4.readFileSync(partial)).digest("hex");
|
|
2625
|
+
if (actual !== expected) {
|
|
2626
|
+
fs4.rmSync(partial, { force: true });
|
|
2627
|
+
throw new Error(`${url} digest ${actual} differs from its release ${expected}`);
|
|
2628
|
+
}
|
|
2629
|
+
fs4.chmodSync(partial, 493);
|
|
2630
|
+
fs4.renameSync(partial, binary);
|
|
2631
|
+
return binary;
|
|
2632
|
+
}
|
|
2633
|
+
function parseRule(raw) {
|
|
2634
|
+
if (!isRecord(raw) || !isRecord(raw.target) || !isRecord(raw.target.rule)) return null;
|
|
2635
|
+
const rule = raw.target.rule;
|
|
2636
|
+
if (typeof rule.name !== "string" || typeof rule.ruleClass !== "string") return null;
|
|
2637
|
+
const attrs = /* @__PURE__ */ new Map();
|
|
2638
|
+
for (const attribute of Array.isArray(rule.attribute) ? rule.attribute : []) {
|
|
2639
|
+
if (!isRecord(attribute) || typeof attribute.name !== "string") continue;
|
|
2640
|
+
attrs.set(attribute.name, {
|
|
2641
|
+
list: Array.isArray(attribute.stringListValue) ? attribute.stringListValue.filter((item) => typeof item === "string") : [],
|
|
2642
|
+
value: typeof attribute.stringValue === "string" ? attribute.stringValue : null,
|
|
2643
|
+
bool: typeof attribute.booleanValue === "boolean" ? attribute.booleanValue : null
|
|
2644
|
+
});
|
|
2645
|
+
}
|
|
2646
|
+
return {
|
|
2647
|
+
label: rule.name,
|
|
2648
|
+
ruleClass: rule.ruleClass,
|
|
2649
|
+
attrs,
|
|
2650
|
+
outputs: Array.isArray(rule.ruleOutput) ? rule.ruleOutput.filter((item) => typeof item === "string") : []
|
|
2651
|
+
};
|
|
2652
|
+
}
|
|
2653
|
+
function graphInputsDigest(root) {
|
|
2654
|
+
const hash = createHash4("sha256");
|
|
2655
|
+
const visit = (dir) => {
|
|
2656
|
+
for (const entry of fs4.readdirSync(dir, { withFileTypes: true }).sort((a, b) => a.name.localeCompare(b.name))) {
|
|
2657
|
+
if (entry.name.startsWith(".") || entry.name.startsWith("bazel-")) continue;
|
|
2658
|
+
const full = path8.join(dir, entry.name);
|
|
2659
|
+
if (entry.isDirectory()) visit(full);
|
|
2660
|
+
else if (/^(?:BUILD(?:\.bazel)?|MODULE\.bazel(?:\.lock)?|WORKSPACE(?:\.bazel)?|\.bazelrc|\.bazelversion)$/.test(
|
|
2661
|
+
entry.name
|
|
2662
|
+
) || entry.name.endsWith(".bzl"))
|
|
2663
|
+
hash.update(path8.relative(root, full)).update("\0").update(fs4.readFileSync(full));
|
|
2664
|
+
}
|
|
2665
|
+
};
|
|
2666
|
+
visit(root);
|
|
2667
|
+
for (const file of [".bazelrc", ".bazelversion"])
|
|
2668
|
+
if (fs4.existsSync(path8.join(root, file)))
|
|
2669
|
+
hash.update(file).update(fs4.readFileSync(path8.join(root, file)));
|
|
2670
|
+
return hash.digest("hex");
|
|
2671
|
+
}
|
|
2672
|
+
var graphs = /* @__PURE__ */ new Map();
|
|
2673
|
+
function configurationFlags(configuration) {
|
|
2674
|
+
return [
|
|
2675
|
+
"-c",
|
|
2676
|
+
configuration === "Release" ? "opt" : "dbg",
|
|
2677
|
+
"--cpu=ios_sim_arm64",
|
|
2678
|
+
"--platforms=@build_bazel_apple_support//platforms:ios_sim_arm64",
|
|
2679
|
+
// generators run the developer's tools, as their own builds find them
|
|
2680
|
+
"--action_env=PATH"
|
|
2681
|
+
];
|
|
2682
|
+
}
|
|
2683
|
+
var GRAPH_FORMAT = 4;
|
|
2684
|
+
function bazelGraph(root, label, configuration) {
|
|
2685
|
+
const key = JSON.stringify([root, label, configuration]);
|
|
2686
|
+
const cached = graphs.get(key);
|
|
2687
|
+
if (cached) return cached;
|
|
2688
|
+
const flags = configurationFlags(configuration);
|
|
2689
|
+
const digest = createHash4("sha256").update(JSON.stringify([GRAPH_FORMAT, label, flags, QUERIED_RULES])).update(graphInputsDigest(root)).digest("hex").slice(0, 24);
|
|
2690
|
+
const file = path8.join(root, ".build", "peach-bazel", `graph-${digest}.json`);
|
|
2691
|
+
const bazel = bazelBinary(root);
|
|
2692
|
+
const run2 = (args) => execFileSync3(bazel, args, {
|
|
2693
|
+
cwd: root,
|
|
2694
|
+
encoding: "utf8",
|
|
2695
|
+
maxBuffer: 1 << 30,
|
|
2696
|
+
stdio: ["ignore", "pipe", "pipe"]
|
|
2697
|
+
});
|
|
2698
|
+
if (!fs4.existsSync(file)) {
|
|
2699
|
+
const application = run2(["query", label, "--output=streamed_jsonproto"]);
|
|
2700
|
+
const app2 = parseRule({ target: JSON.parse(application.trim().split("\n")[0]) });
|
|
2701
|
+
if (!app2?.ruleClass.endsWith("_application"))
|
|
2702
|
+
throw new Error(
|
|
2703
|
+
`${label} is a ${app2?.ruleClass ?? "missing rule"}, not an application`
|
|
2704
|
+
);
|
|
2705
|
+
const deps = app2.attrs.get("deps")?.list ?? [];
|
|
2706
|
+
if (deps.length === 0) throw new Error(`${label} links no libraries`);
|
|
2707
|
+
const infoplists = app2.attrs.get("infoplists")?.list ?? [];
|
|
2708
|
+
const query = `kind("${QUERIED_RULES.join("|")}", deps(set(${deps.join(" ")})))${infoplists.length > 0 ? ` + set(${infoplists.join(" ")})` : ""}`;
|
|
2709
|
+
const output2 = run2(["cquery", query, ...flags, "--output=jsonproto"]);
|
|
2710
|
+
const defaults = run2([
|
|
2711
|
+
"cquery",
|
|
2712
|
+
query,
|
|
2713
|
+
...flags,
|
|
2714
|
+
"--output=starlark",
|
|
2715
|
+
'--starlark:expr=str(target.label) + "\\t" + " ".join([f.short_path for f in target.files.to_list() if not f.is_source])'
|
|
2716
|
+
]);
|
|
2717
|
+
const info2 = run2(["info", "output_base", "execution_root"]);
|
|
2718
|
+
const bin = run2(["cquery", deps[0], ...flags, "--output=files"]).split("\n").find((line) => line.includes("/bin/"));
|
|
2719
|
+
if (!bin) throw new Error(`bazel cquery names no output for ${deps[0]}`);
|
|
2720
|
+
fs4.mkdirSync(path8.dirname(file), { recursive: true });
|
|
2721
|
+
fs4.writeFileSync(
|
|
2722
|
+
`${file}.partial`,
|
|
2723
|
+
JSON.stringify({
|
|
2724
|
+
application,
|
|
2725
|
+
cquery: output2,
|
|
2726
|
+
defaults,
|
|
2727
|
+
info: info2,
|
|
2728
|
+
bin: bin.slice(0, bin.indexOf("/bin/") + 4)
|
|
2729
|
+
})
|
|
2730
|
+
);
|
|
2731
|
+
fs4.renameSync(`${file}.partial`, file);
|
|
2732
|
+
}
|
|
2733
|
+
const stored = JSON.parse(fs4.readFileSync(file, "utf8"));
|
|
2734
|
+
if (!isRecord(stored) || typeof stored.application !== "string" || typeof stored.cquery !== "string" || typeof stored.defaults !== "string" || typeof stored.info !== "string" || typeof stored.bin !== "string")
|
|
2735
|
+
throw new Error(`${file} is not a bazel graph`);
|
|
2736
|
+
const app = parseRule({
|
|
2737
|
+
target: JSON.parse(stored.application.trim().split("\n")[0])
|
|
2738
|
+
});
|
|
2739
|
+
const appDeps = (app.attrs.get("deps")?.list ?? []).map(
|
|
2740
|
+
(dep) => canonicalLabel(dep, label)
|
|
2741
|
+
);
|
|
2742
|
+
const parsed = JSON.parse(stored.cquery);
|
|
2743
|
+
if (!isRecord(parsed) || !Array.isArray(parsed.results))
|
|
2744
|
+
throw new Error(`bazel cquery for ${label} returned no results`);
|
|
2745
|
+
const configurationOf = (raw) => isRecord(raw) && isRecord(raw.configuration) ? raw.configuration.checksum : null;
|
|
2746
|
+
const top = parsed.results.find((raw) => parseRule(raw)?.label === appDeps[0]);
|
|
2747
|
+
if (!top) throw new Error(`bazel cquery did not configure ${appDeps[0]}`);
|
|
2748
|
+
const rules2 = /* @__PURE__ */ new Map();
|
|
2749
|
+
for (const raw of parsed.results) {
|
|
2750
|
+
if (configurationOf(raw) !== configurationOf(top)) continue;
|
|
2751
|
+
const rule = parseRule(raw);
|
|
2752
|
+
if (rule) rules2.set(rule.label, rule);
|
|
2753
|
+
}
|
|
2754
|
+
for (const line of stored.defaults.split("\n")) {
|
|
2755
|
+
const [raw, list2] = line.split(" ");
|
|
2756
|
+
const rule = raw ? rules2.get(raw.replace(/^@@\/\//, "//")) : void 0;
|
|
2757
|
+
if (!rule || rule.outputs.length > 0 || LIBRARY_RULES.has(rule.ruleClass) || rule.ruleClass === "filegroup" || rule.ruleClass === "alias")
|
|
2758
|
+
continue;
|
|
2759
|
+
const { repo, pkg } = splitLabel(rule.label);
|
|
2760
|
+
const prefix = `${repo ? `../${repo}/` : ""}${pkg ? `${pkg}/` : ""}`;
|
|
2761
|
+
rule.outputs = (list2 ?? "").split(" ").filter((file2) => file2.startsWith(prefix)).map((file2) => `${repo ? `@@${repo}` : ""}//${pkg}:${file2.slice(prefix.length)}`);
|
|
2762
|
+
}
|
|
2763
|
+
const info = Object.fromEntries(
|
|
2764
|
+
stored.info.trim().split("\n").map((line) => {
|
|
2765
|
+
const at = line.indexOf(": ");
|
|
2766
|
+
return [line.slice(0, at), line.slice(at + 2)];
|
|
2767
|
+
})
|
|
2768
|
+
);
|
|
2769
|
+
const graph = {
|
|
2770
|
+
rules: rules2,
|
|
2771
|
+
app,
|
|
2772
|
+
appDeps,
|
|
2773
|
+
outputBase: info.output_base ?? "",
|
|
2774
|
+
outputs: path8.join(info.execution_root ?? "", stored.bin),
|
|
2775
|
+
bin: path8.join(root, ".build", "peach-bazel", "bin"),
|
|
2776
|
+
minimumOS: app.attrs.get("minimum_os_version")?.value || null
|
|
2777
|
+
};
|
|
2778
|
+
graphs.set(key, graph);
|
|
2779
|
+
return graph;
|
|
2780
|
+
}
|
|
2781
|
+
function splitLabel(label) {
|
|
2782
|
+
const match = /^(?:@@?([^/]*))?\/\/([^:]*):(.+)$/.exec(label);
|
|
2783
|
+
if (!match) throw new Error(`not a bazel label: ${label}`);
|
|
2784
|
+
return { repo: match[1] ?? "", pkg: match[2], name: match[3] };
|
|
2785
|
+
}
|
|
2786
|
+
function canonicalLabel(label, from) {
|
|
2787
|
+
if (label.startsWith("@") || label.startsWith("//")) {
|
|
2788
|
+
return label.includes(":") ? label : `${label}:${label.slice(label.lastIndexOf("/") + 1)}`;
|
|
2789
|
+
}
|
|
2790
|
+
const { repo, pkg } = splitLabel(from);
|
|
2791
|
+
return `${repo ? `@@${repo}` : ""}//${pkg}:${label.replace(/^:/, "")}`;
|
|
2792
|
+
}
|
|
2793
|
+
var BazelFiles = class {
|
|
2794
|
+
constructor(graph, root) {
|
|
2795
|
+
this.graph = graph;
|
|
2796
|
+
this.root = root;
|
|
2797
|
+
__publicField(this, "generated", /* @__PURE__ */ new Set());
|
|
2798
|
+
for (const rule of graph.rules.values())
|
|
2799
|
+
for (const output2 of rule.outputs) this.generated.add(output2);
|
|
2800
|
+
}
|
|
2801
|
+
repoDir(repo) {
|
|
2802
|
+
if (repo === "") return this.root;
|
|
2803
|
+
const external = path8.join(this.graph.outputBase, "external");
|
|
2804
|
+
for (const name of [repo, `${repo}+`])
|
|
2805
|
+
if (fs4.existsSync(path8.join(external, name))) return path8.join(external, name);
|
|
2806
|
+
throw new Error(`bazel external repository ${repo} is not fetched`);
|
|
2807
|
+
}
|
|
2808
|
+
/** the package directory in the source tree, or under bazel-bin for outputs. */
|
|
2809
|
+
packageDirs(label) {
|
|
2810
|
+
const { repo, pkg } = splitLabel(label);
|
|
2811
|
+
const source = path8.join(this.repoDir(repo), pkg);
|
|
2812
|
+
const bin = repo ? path8.join(this.graph.bin, "external", path8.basename(this.repoDir(repo)), pkg) : path8.join(this.graph.bin, pkg);
|
|
2813
|
+
return [source, bin];
|
|
2814
|
+
}
|
|
2815
|
+
path(label) {
|
|
2816
|
+
const { repo, pkg, name } = splitLabel(label);
|
|
2817
|
+
if (this.generated.has(label)) {
|
|
2818
|
+
const [, bin] = this.packageDirs(label);
|
|
2819
|
+
return path8.join(bin, name);
|
|
2820
|
+
}
|
|
2821
|
+
return path8.join(this.repoDir(repo), pkg, name);
|
|
2822
|
+
}
|
|
2823
|
+
/** files a label list names: filegroups, aliases and rule outputs expanded. */
|
|
2824
|
+
expand(labels, from) {
|
|
2825
|
+
const files = [];
|
|
2826
|
+
const visit = (raw, owner, seen) => {
|
|
2827
|
+
const label = canonicalLabel(raw, owner);
|
|
2828
|
+
if (seen.has(label)) return;
|
|
2829
|
+
seen.add(label);
|
|
2830
|
+
const rule = this.graph.rules.get(label);
|
|
2831
|
+
if (!rule) {
|
|
2832
|
+
files.push(this.path(label));
|
|
2833
|
+
return;
|
|
2834
|
+
}
|
|
2835
|
+
if (rule.ruleClass === "alias") {
|
|
2836
|
+
const actual = rule.attrs.get("actual")?.value;
|
|
2837
|
+
if (actual) visit(actual, label, seen);
|
|
2838
|
+
} else if (rule.ruleClass === "filegroup")
|
|
2839
|
+
for (const item of rule.attrs.get("srcs")?.list ?? []) visit(item, label, seen);
|
|
2840
|
+
else for (const output2 of rule.outputs) files.push(this.path(output2));
|
|
2841
|
+
};
|
|
2842
|
+
for (const label of labels) visit(label, from, /* @__PURE__ */ new Set());
|
|
2843
|
+
return [...new Set(files)];
|
|
2844
|
+
}
|
|
2845
|
+
};
|
|
2846
|
+
function readBazelAppTarget(buildFile, targetName, configurationName, options = {}) {
|
|
2847
|
+
if (!targetName)
|
|
2848
|
+
throw new Error(
|
|
2849
|
+
`${buildFile}: pass --target with the ios_application the bazel package builds`
|
|
2850
|
+
);
|
|
2851
|
+
const root = fs4.realpathSync.native(workspaceRoot(fs4.realpathSync.native(buildFile)));
|
|
2852
|
+
const pkg = path8.relative(root, path8.dirname(fs4.realpathSync.native(buildFile)));
|
|
2853
|
+
const label = `//${pkg.split(path8.sep).join("/")}:${targetName}`;
|
|
2854
|
+
const configuration = configurationName ?? "Debug";
|
|
2855
|
+
const graph = bazelGraph(root, label, configuration);
|
|
2856
|
+
const files = new BazelFiles(graph, root);
|
|
2857
|
+
const ruleOf = (raw, from) => {
|
|
2858
|
+
let rule = graph.rules.get(canonicalLabel(raw, from));
|
|
2859
|
+
while (rule?.ruleClass === "alias")
|
|
2860
|
+
rule = graph.rules.get(
|
|
2861
|
+
canonicalLabel(rule.attrs.get("actual")?.value ?? "", rule.label)
|
|
2862
|
+
);
|
|
2863
|
+
if (!rule) throw new Error(`${from} depends on ${raw}, which bazel did not configure`);
|
|
2864
|
+
return rule;
|
|
2865
|
+
};
|
|
2866
|
+
const appLibraries = graph.appDeps.map((dep) => ruleOf(dep, label)).filter((rule) => LIBRARY_RULES.has(rule.ruleClass));
|
|
2867
|
+
const appLabels = new Set(appLibraries.map((rule) => rule.label));
|
|
2868
|
+
const minimumOS = graph.minimumOS ?? "15.0";
|
|
2869
|
+
const order = [];
|
|
2870
|
+
const placed = /* @__PURE__ */ new Set();
|
|
2871
|
+
const depsOf = (rule) => (rule.attrs.get("deps")?.list ?? []).map((dep) => ruleOf(dep, rule.label)).filter((dep) => LIBRARY_RULES.has(dep.ruleClass));
|
|
2872
|
+
const place = (rule) => {
|
|
2873
|
+
if (placed.has(rule.label)) return;
|
|
2874
|
+
placed.add(rule.label);
|
|
2875
|
+
for (const dep of depsOf(rule)) place(dep);
|
|
2876
|
+
order.push(rule);
|
|
2877
|
+
};
|
|
2878
|
+
for (const rule of appLibraries) place(rule);
|
|
2879
|
+
const propagated = /* @__PURE__ */ new Map();
|
|
2880
|
+
const propagatedOf = (rule) => {
|
|
2881
|
+
const known = propagated.get(rule.label);
|
|
2882
|
+
if (known) return known;
|
|
2883
|
+
const own = {
|
|
2884
|
+
includes: (rule.attrs.get("includes")?.list ?? []).flatMap(
|
|
2885
|
+
(include) => files.packageDirs(rule.label).map((dir) => path8.normalize(path8.join(dir, include)))
|
|
2886
|
+
),
|
|
2887
|
+
defines: rule.attrs.get("defines")?.list ?? [],
|
|
2888
|
+
moduleMaps: ["objc_library", "cc_library"].includes(rule.ruleClass) ? [moduleMapOf(rule)] : []
|
|
2889
|
+
};
|
|
2890
|
+
const merged = {
|
|
2891
|
+
includes: [...own.includes],
|
|
2892
|
+
defines: [...own.defines],
|
|
2893
|
+
moduleMaps: [...own.moduleMaps]
|
|
2894
|
+
};
|
|
2895
|
+
for (const dep of depsOf(rule)) {
|
|
2896
|
+
const inherited = propagatedOf(dep);
|
|
2897
|
+
merged.includes.push(...inherited.includes);
|
|
2898
|
+
merged.defines.push(...inherited.defines);
|
|
2899
|
+
merged.moduleMaps.push(...inherited.moduleMaps);
|
|
2900
|
+
}
|
|
2901
|
+
const result = {
|
|
2902
|
+
includes: [...new Set(merged.includes)],
|
|
2903
|
+
defines: [...new Set(merged.defines)],
|
|
2904
|
+
moduleMaps: [...new Set(merged.moduleMaps)]
|
|
2905
|
+
};
|
|
2906
|
+
propagated.set(rule.label, result);
|
|
2907
|
+
return result;
|
|
2908
|
+
};
|
|
2909
|
+
const debug = configuration !== "Release";
|
|
2910
|
+
const products = path8.join(root, PRODUCTS);
|
|
2911
|
+
const resources = [];
|
|
2912
|
+
const resourceNames = {};
|
|
2913
|
+
const moduleNameOf = (rule) => rule.attrs.get("module_name")?.value || splitLabel(rule.label).pkg.concat("_", splitLabel(rule.label).name).replace(/[^A-Za-z0-9_]/g, "_");
|
|
2914
|
+
const moduleMapOf = (rule) => path8.join(products, "modulemaps", moduleNameOf(rule), "module.modulemap");
|
|
2915
|
+
const idOf = (rule) => `${root}/BUILD#${rule.label}`;
|
|
2916
|
+
const collectData = (rule) => {
|
|
2917
|
+
for (const raw of rule.attrs.get("data")?.list ?? []) {
|
|
2918
|
+
const target = graph.rules.get(canonicalLabel(raw, rule.label));
|
|
2919
|
+
if (target?.ruleClass === "apple_resource_bundle") {
|
|
2920
|
+
const bundle = `${target.attrs.get("bundle_name")?.value || splitLabel(target.label).name}.bundle`;
|
|
2921
|
+
for (const file of files.expand(
|
|
2922
|
+
target.attrs.get("resources")?.list ?? [],
|
|
2923
|
+
target.label
|
|
2924
|
+
)) {
|
|
2925
|
+
resources.push(file);
|
|
2926
|
+
resourceNames[file] = path8.posix.join(bundle, path8.basename(file));
|
|
2927
|
+
}
|
|
2928
|
+
continue;
|
|
2929
|
+
}
|
|
2930
|
+
for (const file of files.expand([raw], rule.label)) resources.push(file);
|
|
2931
|
+
}
|
|
2932
|
+
};
|
|
2933
|
+
const moduleTarget = (rule) => {
|
|
2934
|
+
const moduleName = moduleNameOf(rule);
|
|
2935
|
+
const srcs = files.expand(rule.attrs.get("srcs")?.list ?? [], rule.label);
|
|
2936
|
+
const deps = depsOf(rule);
|
|
2937
|
+
const inherited = deps.map(propagatedOf);
|
|
2938
|
+
const includes = [
|
|
2939
|
+
.../* @__PURE__ */ new Set([
|
|
2940
|
+
...propagatedOf(rule).includes,
|
|
2941
|
+
...inherited.flatMap((value) => value.includes)
|
|
2942
|
+
])
|
|
2943
|
+
];
|
|
2944
|
+
const defines = [
|
|
2945
|
+
.../* @__PURE__ */ new Set([
|
|
2946
|
+
...rule.attrs.get("local_defines")?.list ?? [],
|
|
2947
|
+
...propagatedOf(rule).defines
|
|
2948
|
+
])
|
|
2949
|
+
];
|
|
2950
|
+
collectData(rule);
|
|
2951
|
+
const copts = rule.ruleClass === "swift_library" ? rule.attrs.get("copts")?.list ?? [] : shellTokens(rule.attrs.get("copts")?.list ?? []);
|
|
2952
|
+
const base = {
|
|
2953
|
+
id: idOf(rule),
|
|
2954
|
+
name: moduleName,
|
|
2955
|
+
targetIdentity: rule.label,
|
|
2956
|
+
targetDependencies: deps.map((dep) => dep.label),
|
|
2957
|
+
moduleName,
|
|
2958
|
+
resources: [],
|
|
2959
|
+
resourceNames: {},
|
|
2960
|
+
copiedFiles: [],
|
|
2961
|
+
generatedInfoPlist: false,
|
|
2962
|
+
languageMode: 5,
|
|
2963
|
+
mainActorIsolation: false,
|
|
2964
|
+
iosDeploymentTarget: minimumOS,
|
|
2965
|
+
// rules_apple compiles catalogs with actool but never generates symbols
|
|
2966
|
+
assetSettings: {
|
|
2967
|
+
IPHONEOS_DEPLOYMENT_TARGET: minimumOS,
|
|
2968
|
+
ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOLS: "NO"
|
|
2969
|
+
},
|
|
2970
|
+
packageProducts: []
|
|
2971
|
+
};
|
|
2972
|
+
if (rule.ruleClass === "swift_library") {
|
|
2973
|
+
const sources = srcs.filter((file) => file.endsWith(".swift"));
|
|
2974
|
+
const packageName = rule.attrs.get("package_name")?.value;
|
|
2975
|
+
const importer = [
|
|
2976
|
+
...includes.flatMap((dir) => ["-Xcc", `-I${dir}`]),
|
|
2977
|
+
...inherited.flatMap((value) => value.defines).flatMap((define) => ["-Xcc", `-D${define}`]),
|
|
2978
|
+
// rules_swift hands swift each clang dependency's module map
|
|
2979
|
+
...[...new Set(inherited.flatMap((value) => value.moduleMaps))].flatMap((map) => [
|
|
2980
|
+
"-Xcc",
|
|
2981
|
+
`-fmodule-map-file=${map}`
|
|
2982
|
+
])
|
|
2983
|
+
];
|
|
2984
|
+
return {
|
|
2985
|
+
...base,
|
|
2986
|
+
sources,
|
|
2987
|
+
allSources: sources,
|
|
2988
|
+
defines: [
|
|
2989
|
+
...debug ? ["DEBUG"] : [],
|
|
2990
|
+
...copts.flatMap(
|
|
2991
|
+
(flag, at) => flag === "-D" ? [copts[at + 1]] : flag.startsWith("-D") ? [flag.slice(2)] : []
|
|
2992
|
+
)
|
|
2993
|
+
],
|
|
2994
|
+
swift: {
|
|
2995
|
+
flags: [
|
|
2996
|
+
...debug ? ["-Onone", "-enable-testing"] : ["-O"],
|
|
2997
|
+
...copts.filter(
|
|
2998
|
+
(flag, at) => !flag.startsWith("-D") && copts[at - 1] !== "-D"
|
|
2999
|
+
),
|
|
3000
|
+
...importer,
|
|
3001
|
+
// the package rules_swift names only when asked
|
|
3002
|
+
...packageName ? ["-package-name", packageName] : []
|
|
3003
|
+
],
|
|
3004
|
+
includePaths: [],
|
|
3005
|
+
cxxInterop: false,
|
|
3006
|
+
cxxStandard: null,
|
|
3007
|
+
compatibility: null
|
|
3008
|
+
}
|
|
3009
|
+
};
|
|
3010
|
+
}
|
|
3011
|
+
const hdrs = files.expand(
|
|
3012
|
+
[
|
|
3013
|
+
...rule.attrs.get("hdrs")?.list ?? [],
|
|
3014
|
+
...rule.attrs.get("textual_hdrs")?.list ?? []
|
|
3015
|
+
],
|
|
3016
|
+
rule.label
|
|
3017
|
+
);
|
|
3018
|
+
const units = srcs.filter((file) => NATIVE_SOURCE.test(file));
|
|
3019
|
+
const objc = rule.ruleClass === "objc_library";
|
|
3020
|
+
const modular = objc && rule.attrs.get("enable_modules")?.bool === true;
|
|
3021
|
+
const moduleMap = moduleMapOf(rule);
|
|
3022
|
+
const published = hdrs.filter((file) => HEADER.test(file));
|
|
3023
|
+
const textual = new Set(
|
|
3024
|
+
files.expand(rule.attrs.get("textual_hdrs")?.list ?? [], rule.label)
|
|
3025
|
+
);
|
|
3026
|
+
const text2 = `module ${moduleName} {
|
|
3027
|
+
${published.map(
|
|
3028
|
+
(file) => ` ${textual.has(file) ? "textual header" : "header"} "${path8.relative(path8.dirname(moduleMap), file)}"
|
|
3029
|
+
`
|
|
3030
|
+
).join("")} export *
|
|
3031
|
+
}
|
|
3032
|
+
`;
|
|
3033
|
+
fs4.mkdirSync(path8.dirname(moduleMap), { recursive: true });
|
|
3034
|
+
if (!fs4.existsSync(moduleMap) || fs4.readFileSync(moduleMap, "utf8") !== text2)
|
|
3035
|
+
fs4.writeFileSync(moduleMap, text2);
|
|
3036
|
+
const clangDefines = [...debug ? ["DEBUG=1"] : [], ...defines].map(
|
|
3037
|
+
(define) => `-D${define}`
|
|
3038
|
+
);
|
|
3039
|
+
return {
|
|
3040
|
+
...base,
|
|
3041
|
+
sources: [],
|
|
3042
|
+
allSources: units,
|
|
3043
|
+
defines: [],
|
|
3044
|
+
objc: {
|
|
3045
|
+
alwayslink: rule.attrs.get("alwayslink")?.bool === true,
|
|
3046
|
+
headers: [
|
|
3047
|
+
.../* @__PURE__ */ new Set([...published, ...srcs.filter((file) => HEADER.test(file))])
|
|
3048
|
+
],
|
|
3049
|
+
publicHeaders: published,
|
|
3050
|
+
flattensPublicHeaders: false,
|
|
3051
|
+
prefixHeader: null,
|
|
3052
|
+
bridgingHeader: null,
|
|
3053
|
+
headerSearchPaths: includes,
|
|
3054
|
+
// bazel's execroot and output tree are quote include roots
|
|
3055
|
+
userHeaderSearchPaths: [root, graph.bin],
|
|
3056
|
+
frameworkSearchPaths: [products],
|
|
3057
|
+
flags: [
|
|
3058
|
+
objc ? "-fobjc-arc" : "-fno-objc-arc",
|
|
3059
|
+
...modular ? ["-fmodules"] : [],
|
|
3060
|
+
...clangDefines,
|
|
3061
|
+
...copts.filter((flag) => !CXX_STANDARD.test(flag))
|
|
3062
|
+
],
|
|
3063
|
+
importerFlags: [...modular ? ["-fmodules"] : [], ...clangDefines],
|
|
3064
|
+
// apple clang keeps c++ and objective-c++ units out of modules unless asked
|
|
3065
|
+
cxxFlags: [
|
|
3066
|
+
...modular ? ["-fno-cxx-modules"] : [],
|
|
3067
|
+
// copts reach every unit, and a c++ standard among them governs the c++ ones
|
|
3068
|
+
...copts.filter((flag) => CXX_STANDARD.test(flag)),
|
|
3069
|
+
...shellTokens(rule.attrs.get("cxxopts")?.list ?? [])
|
|
3070
|
+
],
|
|
3071
|
+
fileFlags: {},
|
|
3072
|
+
headerMaps: [],
|
|
3073
|
+
productHeaders: { [moduleMap]: moduleMap }
|
|
3074
|
+
}
|
|
3075
|
+
};
|
|
3076
|
+
};
|
|
3077
|
+
const built = order.map((rule) => ({ rule, module: moduleTarget(rule) }));
|
|
3078
|
+
const appParts = built.filter(({ rule }) => appLabels.has(rule.label));
|
|
3079
|
+
const swiftParts = appParts.filter(({ module }) => module.sources.length > 0);
|
|
3080
|
+
const clangParts = appParts.filter(({ module }) => module.objc);
|
|
3081
|
+
if (swiftParts.length > 1 || clangParts.length > 1)
|
|
3082
|
+
throw new Error(
|
|
3083
|
+
`${label} links ${swiftParts.length} swift and ${clangParts.length} clang libraries directly; one app module of each is modeled`
|
|
3084
|
+
);
|
|
3085
|
+
const named = swiftParts[0]?.module ?? appParts[0].module;
|
|
3086
|
+
const appModule = {
|
|
3087
|
+
...named,
|
|
3088
|
+
id: idOf(graph.app),
|
|
3089
|
+
name: targetName,
|
|
3090
|
+
targetIdentity: graph.app.label,
|
|
3091
|
+
targetDependencies: [
|
|
3092
|
+
...new Set(appParts.flatMap(({ module }) => module.targetDependencies))
|
|
3093
|
+
].filter((dep) => !appLabels.has(dep)),
|
|
3094
|
+
allSources: appParts.flatMap(({ module }) => module.allSources),
|
|
3095
|
+
...clangParts[0]?.module.objc ? { objc: clangParts[0].module.objc } : {}
|
|
3096
|
+
};
|
|
3097
|
+
const frameworks = built.filter(({ rule }) => !appLabels.has(rule.label)).map(({ module }) => module);
|
|
3098
|
+
const binaryFrameworks = [
|
|
3099
|
+
...new Map(
|
|
3100
|
+
order.flatMap(
|
|
3101
|
+
(rule) => (rule.attrs.get("deps")?.list ?? []).map((dep) => ruleOf(dep, rule.label))
|
|
3102
|
+
).filter((dep) => dep.ruleClass.endsWith("_xcframework_import")).flatMap((dep) => {
|
|
3103
|
+
const bundle = files.expand(dep.attrs.get("xcframework_imports")?.list ?? [], dep.label).map(
|
|
3104
|
+
(file) => file.slice(0, file.indexOf(".xcframework/") + ".xcframework".length)
|
|
3105
|
+
).find((file) => file.endsWith(".xcframework"));
|
|
3106
|
+
return bundle ? [[path8.basename(bundle, ".xcframework"), bundle]] : [];
|
|
3107
|
+
})
|
|
3108
|
+
)
|
|
3109
|
+
].map(([name, file]) => ({
|
|
3110
|
+
name,
|
|
3111
|
+
path: file
|
|
3112
|
+
}));
|
|
3113
|
+
const rustCrateOf = (rule) => {
|
|
3114
|
+
const crateRoot = files.expand(
|
|
3115
|
+
[rule.attrs.get("crate_root")?.value ?? ""],
|
|
3116
|
+
rule.label
|
|
3117
|
+
)[0];
|
|
3118
|
+
let dir = crateRoot ? path8.dirname(crateRoot) : root;
|
|
3119
|
+
while (!fs4.existsSync(path8.join(dir, "Cargo.toml")) && dir.startsWith(`${root}${path8.sep}`))
|
|
3120
|
+
dir = path8.dirname(dir);
|
|
3121
|
+
const manifest = path8.join(dir, "Cargo.toml");
|
|
3122
|
+
if (!fs4.existsSync(manifest))
|
|
3123
|
+
throw new Error(`${rule.label} has no Cargo.toml around its crate root`);
|
|
3124
|
+
return { manifest, features: rule.attrs.get("crate_features")?.list ?? [] };
|
|
3125
|
+
};
|
|
3126
|
+
const sdkFrameworks = [
|
|
3127
|
+
...new Set(
|
|
3128
|
+
order.flatMap((rule) => [
|
|
3129
|
+
...rule.attrs.get("sdk_frameworks")?.list ?? [],
|
|
3130
|
+
...rule.attrs.get("weak_sdk_frameworks")?.list ?? []
|
|
3131
|
+
])
|
|
3132
|
+
)
|
|
3133
|
+
].sort();
|
|
3134
|
+
const infoPlistFiles = files.expand(
|
|
3135
|
+
graph.app.attrs.get("infoplists")?.list ?? [],
|
|
3136
|
+
graph.app.label
|
|
3137
|
+
);
|
|
3138
|
+
const absent = () => [
|
|
3139
|
+
...infoPlistFiles,
|
|
3140
|
+
...[...frameworks, appModule].flatMap((module) => [
|
|
3141
|
+
...module.allSources,
|
|
3142
|
+
...module.objc?.headers ?? []
|
|
3143
|
+
])
|
|
3144
|
+
].filter((file) => !fs4.existsSync(file));
|
|
3145
|
+
const mirror = () => {
|
|
3146
|
+
for (const rule of graph.rules.values())
|
|
3147
|
+
for (const output2 of rule.outputs) {
|
|
3148
|
+
const target = files.path(output2);
|
|
3149
|
+
if (target.endsWith(".a")) continue;
|
|
3150
|
+
const source = path8.join(graph.outputs, path8.relative(graph.bin, target));
|
|
3151
|
+
if (!fs4.existsSync(source)) continue;
|
|
3152
|
+
const from = fs4.statSync(source);
|
|
3153
|
+
const to = fs4.existsSync(target) ? fs4.statSync(target) : null;
|
|
3154
|
+
if (to && to.mtimeMs === from.mtimeMs && to.size === from.size) continue;
|
|
3155
|
+
fs4.rmSync(target, { recursive: true, force: true });
|
|
3156
|
+
fs4.mkdirSync(path8.dirname(target), { recursive: true });
|
|
3157
|
+
fs4.cpSync(source, target, {
|
|
3158
|
+
recursive: true,
|
|
3159
|
+
dereference: true,
|
|
3160
|
+
preserveTimestamps: true
|
|
3161
|
+
});
|
|
3162
|
+
}
|
|
3163
|
+
};
|
|
3164
|
+
mirror();
|
|
3165
|
+
if (options.prepareGeneratedSources && absent().length > 0) {
|
|
3166
|
+
const owners = /* @__PURE__ */ new Map();
|
|
3167
|
+
for (const rule of graph.rules.values())
|
|
3168
|
+
for (const output2 of rule.outputs) owners.set(files.path(output2), rule.label);
|
|
3169
|
+
const generators = [
|
|
3170
|
+
...new Set(absent().flatMap((file) => owners.get(file) ?? []))
|
|
3171
|
+
].sort();
|
|
3172
|
+
if (generators.length > 0)
|
|
3173
|
+
execFileSync3(
|
|
3174
|
+
bazelBinary(root),
|
|
3175
|
+
["build", ...configurationFlags(configuration), ...generators],
|
|
3176
|
+
{ cwd: root, stdio: ["ignore", "pipe", "pipe"], maxBuffer: 1 << 28 }
|
|
3177
|
+
);
|
|
3178
|
+
mirror();
|
|
3179
|
+
}
|
|
3180
|
+
const missing = options.requireSources === false ? [] : absent();
|
|
3181
|
+
if (missing.length > 0)
|
|
3182
|
+
throw new Error(
|
|
3183
|
+
`bazel generates ${missing.length} sources this app compiles that are not built: ${missing.slice(0, 5).map((file) => path8.relative(root, file)).join(", ")}`
|
|
3184
|
+
);
|
|
3185
|
+
const archives = /* @__PURE__ */ new Map();
|
|
3186
|
+
for (const rule of order) {
|
|
3187
|
+
for (const dep of rule.attrs.get("deps")?.list ?? []) {
|
|
3188
|
+
const owner = ruleOf(dep, rule.label);
|
|
3189
|
+
if (owner.ruleClass !== "rust_static_library") continue;
|
|
3190
|
+
const crate = owner.attrs.get("crate_name")?.value || splitLabel(owner.label).name;
|
|
3191
|
+
const entry = archives.get(owner.label) ?? {
|
|
3192
|
+
library: `lib${crate}.a`,
|
|
3193
|
+
holders: [],
|
|
3194
|
+
rustCrate: rustCrateOf(owner)
|
|
3195
|
+
};
|
|
3196
|
+
entry.holders.push(rule);
|
|
3197
|
+
archives.set(owner.label, entry);
|
|
3198
|
+
}
|
|
3199
|
+
for (const raw of rule.attrs.get("srcs")?.list ?? []) {
|
|
3200
|
+
const label2 = canonicalLabel(raw, rule.label);
|
|
3201
|
+
for (const archive of files.expand([raw], rule.label).filter((file) => file.endsWith(".a"))) {
|
|
3202
|
+
const owner = [...graph.rules.values()].find(
|
|
3203
|
+
(item) => item.outputs.some((output2) => files.path(output2) === archive)
|
|
3204
|
+
);
|
|
3205
|
+
const key = owner?.label ?? label2;
|
|
3206
|
+
const entry = archives.get(key) ?? {
|
|
3207
|
+
library: path8.basename(archive),
|
|
3208
|
+
holders: []
|
|
3209
|
+
};
|
|
3210
|
+
if (!entry.holders.includes(rule)) entry.holders.push(rule);
|
|
3211
|
+
archives.set(key, entry);
|
|
3212
|
+
}
|
|
3213
|
+
}
|
|
3214
|
+
}
|
|
3215
|
+
const appIncludes = new Set(
|
|
3216
|
+
archives.size === 0 ? [] : [...frameworks, appModule].flatMap(
|
|
3217
|
+
(module) => [
|
|
3218
|
+
...module.allSources.filter((file) => !file.endsWith(".swift")),
|
|
3219
|
+
...module.objc?.headers ?? []
|
|
3220
|
+
].filter((file) => fs4.existsSync(file)).flatMap(
|
|
3221
|
+
(file) => [
|
|
3222
|
+
...fs4.readFileSync(file, "utf8").matchAll(/^\s*#\s*(?:include|import)\s*[<"]([^>"\n]+)[>"]/gm)
|
|
3223
|
+
].map((match) => match[1])
|
|
3224
|
+
)
|
|
3225
|
+
)
|
|
3226
|
+
);
|
|
3227
|
+
for (const [label2, { library, holders, rustCrate }] of archives) {
|
|
3228
|
+
const linkers = new Set(holders);
|
|
3229
|
+
for (const rule of order)
|
|
3230
|
+
if (depsOf(rule).some((dep) => holders.includes(dep))) linkers.add(rule);
|
|
3231
|
+
const headers = [...linkers].flatMap((rule) => {
|
|
3232
|
+
const includes = propagatedOf(rule).includes;
|
|
3233
|
+
return files.expand(
|
|
3234
|
+
[
|
|
3235
|
+
...rule.attrs.get("hdrs")?.list ?? [],
|
|
3236
|
+
...rule.attrs.get("textual_hdrs")?.list ?? []
|
|
3237
|
+
],
|
|
3238
|
+
rule.label
|
|
3239
|
+
).filter((file) => /\.(?:h|hh|hpp|hxx|inc)$/.test(file)).map((file) => {
|
|
3240
|
+
const include = includes.find((dir) => file.startsWith(`${dir}${path8.sep}`));
|
|
3241
|
+
return {
|
|
3242
|
+
file,
|
|
3243
|
+
name: include ? path8.relative(include, file) : path8.basename(file)
|
|
3244
|
+
};
|
|
3245
|
+
});
|
|
3246
|
+
});
|
|
3247
|
+
const name = `${splitLabel(label2).name}`;
|
|
3248
|
+
const imported = new Set(
|
|
3249
|
+
[...linkers].filter((rule) => rule.attrs.get("module_name")?.value).flatMap((rule) => files.expand(rule.attrs.get("hdrs")?.list ?? [], rule.label))
|
|
3250
|
+
);
|
|
3251
|
+
const entries = headers.filter(
|
|
3252
|
+
(header) => imported.has(header.file) || [...appIncludes].some(
|
|
3253
|
+
(include) => header.name === include || header.name.endsWith(`/${include}`)
|
|
3254
|
+
)
|
|
3255
|
+
);
|
|
3256
|
+
const bundle = path8.join(products, "archives", `${name}.xcframework`);
|
|
3257
|
+
const slice = path8.join(bundle, "ios-arm64-simulator");
|
|
3258
|
+
const contents = new Map([
|
|
3259
|
+
[
|
|
3260
|
+
"Info.plist",
|
|
3261
|
+
plist2.build({
|
|
3262
|
+
AvailableLibraries: [
|
|
3263
|
+
{
|
|
3264
|
+
LibraryIdentifier: "ios-arm64-simulator",
|
|
3265
|
+
LibraryPath: library,
|
|
3266
|
+
HeadersPath: "Headers",
|
|
3267
|
+
SupportedArchitectures: ["arm64"],
|
|
3268
|
+
SupportedPlatform: "ios",
|
|
3269
|
+
SupportedPlatformVariant: "simulator"
|
|
3270
|
+
}
|
|
3271
|
+
],
|
|
3272
|
+
CFBundlePackageType: "XFWK",
|
|
3273
|
+
XCFrameworkFormatVersion: "1.0"
|
|
3274
|
+
})
|
|
3275
|
+
],
|
|
3276
|
+
// c library headers may lean on the standard ones their callers include first
|
|
3277
|
+
[
|
|
3278
|
+
path8.join("ios-arm64-simulator", "Headers", `${name}.h`),
|
|
3279
|
+
[
|
|
3280
|
+
"#include <stddef.h>",
|
|
3281
|
+
"#include <stdio.h>",
|
|
3282
|
+
...entries.map((header) => `#include "${header.name}"`)
|
|
3283
|
+
].join("\n") + "\n"
|
|
3284
|
+
],
|
|
3285
|
+
[
|
|
3286
|
+
path8.join("ios-arm64-simulator", "Headers", "module.modulemap"),
|
|
3287
|
+
`module ${name} {
|
|
3288
|
+
header "${name}.h"
|
|
3289
|
+
export *
|
|
3290
|
+
}
|
|
3291
|
+
`
|
|
3292
|
+
],
|
|
3293
|
+
...headers.map(
|
|
3294
|
+
(header) => [
|
|
3295
|
+
path8.join("ios-arm64-simulator", "Headers", header.name),
|
|
3296
|
+
fs4.readFileSync(header.file)
|
|
3297
|
+
]
|
|
3298
|
+
)
|
|
3299
|
+
]);
|
|
3300
|
+
const digest = createHash4("sha256").update(
|
|
3301
|
+
JSON.stringify(
|
|
3302
|
+
[...contents].map(([file, bytes]) => [
|
|
3303
|
+
file,
|
|
3304
|
+
createHash4("sha256").update(bytes).digest("hex")
|
|
3305
|
+
])
|
|
3306
|
+
)
|
|
3307
|
+
).digest("hex");
|
|
3308
|
+
const stamp = path8.join(bundle, ".peach-digest");
|
|
3309
|
+
if (!fs4.existsSync(stamp) || fs4.readFileSync(stamp, "utf8") !== digest) {
|
|
3310
|
+
fs4.rmSync(bundle, { recursive: true, force: true });
|
|
3311
|
+
for (const [file, bytes] of contents) {
|
|
3312
|
+
fs4.mkdirSync(path8.dirname(path8.join(bundle, file)), { recursive: true });
|
|
3313
|
+
fs4.writeFileSync(path8.join(bundle, file), bytes);
|
|
3314
|
+
}
|
|
3315
|
+
fs4.writeFileSync(path8.join(slice, library), "");
|
|
3316
|
+
fs4.writeFileSync(stamp, digest);
|
|
3317
|
+
}
|
|
3318
|
+
binaryFrameworks.push({ name, path: bundle, rustCrate });
|
|
3319
|
+
}
|
|
3320
|
+
const appName = splitLabel(graph.app.label).name;
|
|
3321
|
+
const executableName = graph.app.attrs.get("executable_name")?.value || appName;
|
|
3322
|
+
const bundleName = graph.app.attrs.get("bundle_name")?.value || appName;
|
|
3323
|
+
const bundleId = graph.app.attrs.get("bundle_id")?.value ?? "";
|
|
3324
|
+
const substitutions = {
|
|
3325
|
+
BUNDLE_NAME: bundleName,
|
|
3326
|
+
EXECUTABLE_NAME: executableName,
|
|
3327
|
+
PRODUCT_NAME: bundleName,
|
|
3328
|
+
TARGET_NAME: appName,
|
|
3329
|
+
PRODUCT_BUNDLE_IDENTIFIER: bundleId,
|
|
3330
|
+
PRODUCT_BUNDLE_PACKAGE_TYPE: "APPL"
|
|
3331
|
+
};
|
|
3332
|
+
const substitute = (value) => typeof value === "string" ? value.replace(
|
|
3333
|
+
/\$[({](\w+)(?::rfc1034identifier)?[)}]/g,
|
|
3334
|
+
(whole, key) => substitutions[key] ?? whole
|
|
3335
|
+
) : Array.isArray(value) ? value.map(substitute) : value && typeof value === "object" && !(value instanceof Date) && !Buffer.isBuffer(value) ? Object.fromEntries(
|
|
3336
|
+
Object.entries(value).map(([key, item]) => [key, substitute(item)])
|
|
3337
|
+
) : value;
|
|
3338
|
+
const infoPlistReady = infoPlistFiles.every((file) => fs4.existsSync(file));
|
|
3339
|
+
const info = {};
|
|
3340
|
+
for (const file of infoPlistReady ? infoPlistFiles : []) {
|
|
3341
|
+
const fragment = plist2.parse(fs4.readFileSync(file, "utf8"));
|
|
3342
|
+
if (!fragment || typeof fragment !== "object" || Array.isArray(fragment) || fragment instanceof Date || Buffer.isBuffer(fragment))
|
|
3343
|
+
throw new Error(`${file} is not a plist dictionary`);
|
|
3344
|
+
for (const [key, value] of Object.entries(fragment)) {
|
|
3345
|
+
const next = substitute(value);
|
|
3346
|
+
if (key in info && JSON.stringify(info[key]) !== JSON.stringify(next))
|
|
3347
|
+
throw new Error(
|
|
3348
|
+
`${graph.app.label} infoplists set ${key} twice with different values`
|
|
3349
|
+
);
|
|
3350
|
+
info[key] = next;
|
|
3351
|
+
}
|
|
3352
|
+
}
|
|
3353
|
+
const families = graph.app.attrs.get("families")?.list ?? ["iphone"];
|
|
3354
|
+
Object.assign(info, {
|
|
3355
|
+
CFBundleIdentifier: bundleId,
|
|
3356
|
+
CFBundleExecutable: executableName,
|
|
3357
|
+
CFBundleName: bundleName,
|
|
3358
|
+
CFBundlePackageType: "APPL",
|
|
3359
|
+
CFBundleSupportedPlatforms: ["iPhoneSimulator"],
|
|
3360
|
+
MinimumOSVersion: minimumOS,
|
|
3361
|
+
UIDeviceFamily: families.map((family) => family === "ipad" ? 2 : 1)
|
|
3362
|
+
});
|
|
3363
|
+
const buildFiles = [
|
|
3364
|
+
...new Set(
|
|
3365
|
+
order.map((rule) => path8.join(files.packageDirs(rule.label)[0], "BUILD"))
|
|
3366
|
+
)
|
|
3367
|
+
].map((file) => fs4.existsSync(file) ? file : `${file}.bazel`).filter((file) => fs4.existsSync(file));
|
|
3368
|
+
return {
|
|
3369
|
+
...appModule,
|
|
3370
|
+
resources: [...new Set(resources)],
|
|
3371
|
+
resourceNames,
|
|
3372
|
+
sourceLinkGraph: {
|
|
3373
|
+
entry: appModule.id,
|
|
3374
|
+
targets: [
|
|
3375
|
+
{
|
|
3376
|
+
id: appModule.id,
|
|
3377
|
+
sourceTarget: appModule.moduleName,
|
|
3378
|
+
productName: `${targetName}.app`,
|
|
3379
|
+
productType: "com.apple.product-type.application",
|
|
3380
|
+
installName: null,
|
|
3381
|
+
buildVersion: { platform: "iphonesimulator", minimumOS, sdk: null },
|
|
3382
|
+
machOType: "mh_execute",
|
|
3383
|
+
linkerFlags: appLibraries.flatMap(
|
|
3384
|
+
(rule) => shellTokens(rule.attrs.get("linkopts")?.list ?? [])
|
|
3385
|
+
),
|
|
3386
|
+
dependencies: appModule.targetDependencies.map((dep) => ({
|
|
3387
|
+
target: idOf(ruleOf(dep, label)),
|
|
3388
|
+
attributes: []
|
|
3389
|
+
}))
|
|
3390
|
+
},
|
|
3391
|
+
...built.filter(({ rule }) => !appLabels.has(rule.label)).map(({ rule, module }) => ({
|
|
3392
|
+
id: module.id,
|
|
3393
|
+
sourceTarget: module.allSources.length > 0 ? module.moduleName : null,
|
|
3394
|
+
productName: `${module.moduleName}.framework`,
|
|
3395
|
+
productType: "com.apple.product-type.framework.static",
|
|
3396
|
+
installName: null,
|
|
3397
|
+
buildVersion: { platform: "iphonesimulator", minimumOS, sdk: null },
|
|
3398
|
+
machOType: "staticlib",
|
|
3399
|
+
linkerFlags: shellTokens(rule.attrs.get("linkopts")?.list ?? []),
|
|
3400
|
+
dependencies: depsOf(rule).map((dep) => ({
|
|
3401
|
+
target: idOf(dep),
|
|
3402
|
+
attributes: []
|
|
3403
|
+
}))
|
|
3404
|
+
}))
|
|
3405
|
+
]
|
|
3406
|
+
},
|
|
3407
|
+
rootDir: root,
|
|
3408
|
+
projectFiles: buildFiles.sort(),
|
|
3409
|
+
projectDirs: [root],
|
|
3410
|
+
infoPlist: infoPlistReady ? plist2.build(info) : null,
|
|
3411
|
+
infoPlistFile: null,
|
|
3412
|
+
postBundleScripts: [],
|
|
3413
|
+
appIconName: "",
|
|
3414
|
+
developmentRegion: "en",
|
|
3415
|
+
frameworks,
|
|
3416
|
+
resourceProducts: [],
|
|
3417
|
+
linkedProducts: [],
|
|
3418
|
+
localPackageDirs: [],
|
|
3419
|
+
binaryFrameworks,
|
|
3420
|
+
sdkFrameworks,
|
|
3421
|
+
packageResolved: [],
|
|
3422
|
+
appTargets: [targetName],
|
|
3423
|
+
configuration,
|
|
3424
|
+
settings: (key) => key === "PRODUCT_MODULE_NAME" ? appModule.moduleName : key === "IPHONEOS_DEPLOYMENT_TARGET" ? minimumOS : key === "PRODUCT_BUNDLE_IDENTIFIER" ? graph.app.attrs.get("bundle_id")?.value ?? "" : "",
|
|
3425
|
+
cocoapods: null
|
|
3426
|
+
};
|
|
3427
|
+
}
|
|
3428
|
+
var CXX_STANDARD = /^-std=(?:c|gnu)\+\+/;
|
|
3429
|
+
function shellTokens(options) {
|
|
3430
|
+
return options.flatMap((option) => {
|
|
3431
|
+
const words = [];
|
|
3432
|
+
let word = "";
|
|
3433
|
+
let started = false;
|
|
3434
|
+
let quote = null;
|
|
3435
|
+
for (let at = 0; at < option.length; at++) {
|
|
3436
|
+
const char = option[at];
|
|
3437
|
+
if (quote === "'") {
|
|
3438
|
+
if (char === "'") quote = null;
|
|
3439
|
+
else word += char;
|
|
3440
|
+
} else if (char === "\\" && at + 1 < option.length) {
|
|
3441
|
+
word += option[++at];
|
|
3442
|
+
started = true;
|
|
3443
|
+
} else if (quote === '"') {
|
|
3444
|
+
if (char === '"') quote = null;
|
|
3445
|
+
else word += char;
|
|
3446
|
+
} else if (char === "'" || char === '"') {
|
|
3447
|
+
quote = char;
|
|
3448
|
+
started = true;
|
|
3449
|
+
} else if (/\s/.test(char)) {
|
|
3450
|
+
if (started) words.push(word);
|
|
3451
|
+
word = "";
|
|
3452
|
+
started = false;
|
|
3453
|
+
} else {
|
|
3454
|
+
word += char;
|
|
3455
|
+
started = true;
|
|
3456
|
+
}
|
|
3457
|
+
}
|
|
3458
|
+
if (quote) throw new Error(`unterminated quotation in bazel option: ${option}`);
|
|
3459
|
+
if (started) words.push(word);
|
|
3460
|
+
return words;
|
|
3461
|
+
});
|
|
3462
|
+
}
|
|
2534
3463
|
|
|
2535
3464
|
// src/ios-sdk-frameworks.json
|
|
2536
3465
|
var ios_sdk_frameworks_default = {
|
|
@@ -2824,26 +3753,26 @@ var ios_sdk_frameworks_default = {
|
|
|
2824
3753
|
};
|
|
2825
3754
|
|
|
2826
3755
|
// src/prepared-xcode-phases.ts
|
|
2827
|
-
import { createHash as
|
|
2828
|
-
import
|
|
2829
|
-
import
|
|
3756
|
+
import { createHash as createHash5 } from "node:crypto";
|
|
3757
|
+
import fs5 from "node:fs";
|
|
3758
|
+
import path9 from "node:path";
|
|
2830
3759
|
var workspaces = /* @__PURE__ */ new Map();
|
|
2831
3760
|
var recording;
|
|
2832
3761
|
function relativeFile(root, file) {
|
|
2833
|
-
const relative2 =
|
|
2834
|
-
if (!relative2 || relative2 === ".." || relative2.startsWith(`..${
|
|
3762
|
+
const relative2 = path9.relative(root, file);
|
|
3763
|
+
if (!relative2 || relative2 === ".." || relative2.startsWith(`..${path9.sep}`) || path9.isAbsolute(relative2))
|
|
2835
3764
|
throw new Error(`prepared Xcode output is outside its workspace: ${file}`);
|
|
2836
|
-
return relative2.split(
|
|
3765
|
+
return relative2.split(path9.sep).join("/");
|
|
2837
3766
|
}
|
|
2838
3767
|
function output(root, file) {
|
|
2839
3768
|
const relative2 = relativeFile(root, file);
|
|
2840
|
-
const stat =
|
|
3769
|
+
const stat = fs5.statSync(file, { throwIfNoEntry: false });
|
|
2841
3770
|
if (!stat) return { path: relative2, sha256: null };
|
|
2842
3771
|
if (!stat.isFile()) throw new Error(`prepared Xcode output is not a file: ${file}`);
|
|
2843
|
-
relativeFile(root,
|
|
2844
|
-
const bytes =
|
|
3772
|
+
relativeFile(root, fs5.realpathSync(file));
|
|
3773
|
+
const bytes = fs5.readFileSync(file);
|
|
2845
3774
|
const prefix = Buffer.from(root);
|
|
2846
|
-
const hash =
|
|
3775
|
+
const hash = createHash5("sha256");
|
|
2847
3776
|
let offset = 0;
|
|
2848
3777
|
for (let index = bytes.indexOf(prefix); index !== -1; index = bytes.indexOf(prefix, offset)) {
|
|
2849
3778
|
hash.update(bytes.subarray(offset, index)).update("\0workspace\0");
|
|
@@ -2857,8 +3786,8 @@ function output(root, file) {
|
|
|
2857
3786
|
}
|
|
2858
3787
|
function preparedXcodePhase(project, target, phase, configuration, outputs, recorded) {
|
|
2859
3788
|
const root = recording?.root ?? [...workspaces.keys()].find((root2) => {
|
|
2860
|
-
const relative2 =
|
|
2861
|
-
return relative2 !== ".." && !relative2.startsWith(`..${
|
|
3789
|
+
const relative2 = path9.relative(root2, project);
|
|
3790
|
+
return relative2 !== ".." && !relative2.startsWith(`..${path9.sep}`) && !path9.isAbsolute(relative2);
|
|
2862
3791
|
});
|
|
2863
3792
|
if (!root) return false;
|
|
2864
3793
|
const entry = {
|
|
@@ -2893,30 +3822,30 @@ function preparedXcodePhase(project, target, phase, configuration, outputs, reco
|
|
|
2893
3822
|
}
|
|
2894
3823
|
|
|
2895
3824
|
// src/swift-binary-modules.ts
|
|
2896
|
-
import { createHash as
|
|
2897
|
-
import
|
|
2898
|
-
import
|
|
3825
|
+
import { createHash as createHash6 } from "node:crypto";
|
|
3826
|
+
import fs7 from "node:fs";
|
|
3827
|
+
import path11 from "node:path";
|
|
2899
3828
|
|
|
2900
3829
|
// src/home-paths.ts
|
|
2901
3830
|
import { randomUUID } from "node:crypto";
|
|
2902
|
-
import
|
|
3831
|
+
import fs6 from "node:fs";
|
|
2903
3832
|
import { homedir } from "node:os";
|
|
2904
|
-
import
|
|
3833
|
+
import path10 from "node:path";
|
|
2905
3834
|
var PEACH_HOME_ENV = "PEACH_HOME";
|
|
2906
3835
|
function ambientHomeDir() {
|
|
2907
|
-
return
|
|
3836
|
+
return path10.join(homedir(), ".peach");
|
|
2908
3837
|
}
|
|
2909
3838
|
function rnxHomeDir() {
|
|
2910
3839
|
const override = process.env[PEACH_HOME_ENV];
|
|
2911
|
-
return override && override.length > 0 ?
|
|
3840
|
+
return override && override.length > 0 ? path10.resolve(override) : ambientHomeDir();
|
|
2912
3841
|
}
|
|
2913
3842
|
function cacheDir() {
|
|
2914
|
-
return
|
|
3843
|
+
return path10.join(rnxHomeDir(), "cache");
|
|
2915
3844
|
}
|
|
2916
3845
|
var DAEMON_LOCKFILE_MAX_BYTES = 16 * 1024;
|
|
2917
3846
|
|
|
2918
3847
|
// src/swift-binary-modules.ts
|
|
2919
|
-
var cacheDir2 =
|
|
3848
|
+
var cacheDir2 = path11.join(cacheDir(), "swift-binary-modules");
|
|
2920
3849
|
function frameworkModules(paths) {
|
|
2921
3850
|
const modules = /* @__PURE__ */ new Set();
|
|
2922
3851
|
for (const file of paths) {
|
|
@@ -2926,21 +3855,21 @@ function frameworkModules(paths) {
|
|
|
2926
3855
|
return [...modules].sort();
|
|
2927
3856
|
}
|
|
2928
3857
|
function localSwiftBinaryModules(dir) {
|
|
2929
|
-
if (!
|
|
2930
|
-
const slices =
|
|
3858
|
+
if (!fs7.existsSync(dir)) return [];
|
|
3859
|
+
const slices = fs7.readdirSync(dir, { withFileTypes: true }).filter((slice) => slice.isDirectory());
|
|
2931
3860
|
const frameworks = frameworkModules(
|
|
2932
3861
|
slices.flatMap(
|
|
2933
|
-
(slice) =>
|
|
3862
|
+
(slice) => fs7.readdirSync(path11.join(dir, slice.name)).map((entry) => `${slice.name}/${entry}`)
|
|
2934
3863
|
)
|
|
2935
3864
|
);
|
|
2936
3865
|
if (frameworks.length > 0) return frameworks;
|
|
2937
3866
|
const modules = /* @__PURE__ */ new Set();
|
|
2938
3867
|
for (const slice of slices) {
|
|
2939
|
-
const headers =
|
|
2940
|
-
if (!
|
|
2941
|
-
for (const file of
|
|
2942
|
-
if (
|
|
2943
|
-
const module = moduleMapName(
|
|
3868
|
+
const headers = path11.join(dir, slice.name, "Headers");
|
|
3869
|
+
if (!fs7.existsSync(headers)) continue;
|
|
3870
|
+
for (const file of fs7.readdirSync(headers, { recursive: true, encoding: "utf8" })) {
|
|
3871
|
+
if (path11.basename(file) !== "module.modulemap") continue;
|
|
3872
|
+
const module = moduleMapName(fs7.readFileSync(path11.join(headers, file), "utf8"));
|
|
2944
3873
|
if (module) modules.add(module);
|
|
2945
3874
|
}
|
|
2946
3875
|
}
|
|
@@ -2948,18 +3877,18 @@ function localSwiftBinaryModules(dir) {
|
|
|
2948
3877
|
}
|
|
2949
3878
|
|
|
2950
3879
|
// src/swift-coverage/xcode-assets.ts
|
|
2951
|
-
import { createHash as
|
|
2952
|
-
import { readFileSync as
|
|
3880
|
+
import { createHash as createHash8 } from "node:crypto";
|
|
3881
|
+
import { readFileSync as readFileSync5, readdirSync as readdirSync3, statSync, writeFileSync as writeFileSync2 } from "node:fs";
|
|
2953
3882
|
import { join as join3, relative, sep } from "node:path";
|
|
2954
3883
|
|
|
2955
3884
|
// src/swift-coverage/provenance.ts
|
|
2956
|
-
import { createHash as
|
|
2957
|
-
import { readFileSync as
|
|
3885
|
+
import { createHash as createHash7 } from "node:crypto";
|
|
3886
|
+
import { readFileSync as readFileSync3 } from "node:fs";
|
|
2958
3887
|
import { join } from "node:path";
|
|
2959
|
-
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":"
|
|
3888
|
+
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(join(import.meta.dirname, ".."));
|
|
2960
3889
|
|
|
2961
3890
|
// src/swift-coverage/xcode-asset-symbols.ts
|
|
2962
|
-
import { existsSync, readdirSync as readdirSync2, readFileSync as
|
|
3891
|
+
import { existsSync as existsSync2, readdirSync as readdirSync2, readFileSync as readFileSync4 } from "node:fs";
|
|
2963
3892
|
import { extname, join as join2 } from "node:path";
|
|
2964
3893
|
var silentTypes = /* @__PURE__ */ new Set([
|
|
2965
3894
|
"appiconset",
|
|
@@ -3144,25 +4073,31 @@ var assetSymbolSettingKeys = [
|
|
|
3144
4073
|
// src/swift-package-manifest.ts
|
|
3145
4074
|
import {
|
|
3146
4075
|
execFile as execFile4,
|
|
3147
|
-
execFileSync as
|
|
4076
|
+
execFileSync as execFileSync14
|
|
3148
4077
|
} from "node:child_process";
|
|
3149
|
-
import { createHash as
|
|
3150
|
-
import
|
|
3151
|
-
import
|
|
3152
|
-
import
|
|
4078
|
+
import { createHash as createHash21 } from "node:crypto";
|
|
4079
|
+
import fs17 from "node:fs";
|
|
4080
|
+
import os8 from "node:os";
|
|
4081
|
+
import path35 from "node:path";
|
|
3153
4082
|
import { promisify as promisify4 } from "node:util";
|
|
3154
4083
|
|
|
4084
|
+
// src/git-repo-env.ts
|
|
4085
|
+
var UNATTENDED_GIT_ENV = {
|
|
4086
|
+
GIT_TERMINAL_PROMPT: "0",
|
|
4087
|
+
GIT_SSH_COMMAND: process.env.GIT_SSH_COMMAND ?? "ssh -o BatchMode=yes"
|
|
4088
|
+
};
|
|
4089
|
+
|
|
3155
4090
|
// src/swift-distribution.ts
|
|
3156
|
-
import
|
|
3157
|
-
import
|
|
3158
|
-
import
|
|
4091
|
+
import fs16 from "node:fs";
|
|
4092
|
+
import os7 from "node:os";
|
|
4093
|
+
import path34 from "node:path";
|
|
3159
4094
|
|
|
3160
4095
|
// ../contrast-runtime-delivery/src/index.ts
|
|
3161
4096
|
import { spawn as spawn3 } from "node:child_process";
|
|
3162
4097
|
import crypto from "node:crypto";
|
|
3163
|
-
import
|
|
3164
|
-
import
|
|
3165
|
-
import
|
|
4098
|
+
import fs9 from "node:fs";
|
|
4099
|
+
import os3 from "node:os";
|
|
4100
|
+
import path13 from "node:path";
|
|
3166
4101
|
import { pipeline as pipeline2 } from "node:stream/promises";
|
|
3167
4102
|
import zlib2 from "node:zlib";
|
|
3168
4103
|
|
|
@@ -3172,9 +4107,9 @@ import {
|
|
|
3172
4107
|
appendFileSync,
|
|
3173
4108
|
mkdtempSync,
|
|
3174
4109
|
readdirSync as readdirSync5,
|
|
3175
|
-
readFileSync as
|
|
4110
|
+
readFileSync as readFileSync7,
|
|
3176
4111
|
rmSync,
|
|
3177
|
-
writeFileSync as
|
|
4112
|
+
writeFileSync as writeFileSync3
|
|
3178
4113
|
} from "node:fs";
|
|
3179
4114
|
import { tmpdir } from "node:os";
|
|
3180
4115
|
import { join as join4 } from "node:path";
|
|
@@ -3183,36 +4118,36 @@ import { setTimeout as sleep } from "node:timers/promises";
|
|
|
3183
4118
|
|
|
3184
4119
|
// src/process-table.ts
|
|
3185
4120
|
import { spawnSync as spawnSync3 } from "node:child_process";
|
|
3186
|
-
import { readFileSync as
|
|
4121
|
+
import { readFileSync as readFileSync6, readdirSync as readdirSync4 } from "node:fs";
|
|
3187
4122
|
import { endianness } from "node:os";
|
|
3188
4123
|
|
|
3189
4124
|
// ../contrast-runtime-delivery/src/product.ts
|
|
3190
|
-
import
|
|
3191
|
-
import
|
|
4125
|
+
import fs8 from "node:fs";
|
|
4126
|
+
import path12 from "node:path";
|
|
3192
4127
|
|
|
3193
4128
|
// cli/drivers/linux-browser-libs.ts
|
|
3194
4129
|
import { spawnSync as spawnSync5 } from "node:child_process";
|
|
3195
|
-
import { existsSync as
|
|
4130
|
+
import { existsSync as existsSync3 } from "node:fs";
|
|
3196
4131
|
import { join as join5 } from "node:path";
|
|
3197
4132
|
|
|
3198
4133
|
// src/swift-compile.ts
|
|
3199
4134
|
import {
|
|
3200
4135
|
spawn as spawn5,
|
|
3201
|
-
execFileSync as
|
|
4136
|
+
execFileSync as execFileSync13
|
|
3202
4137
|
} from "node:child_process";
|
|
3203
|
-
import { createHash as
|
|
4138
|
+
import { createHash as createHash19, randomUUID as randomUUID5 } from "node:crypto";
|
|
3204
4139
|
import {
|
|
3205
4140
|
chmodSync as chmodSync2,
|
|
3206
4141
|
copyFileSync,
|
|
3207
4142
|
cpSync,
|
|
3208
|
-
existsSync as
|
|
4143
|
+
existsSync as existsSync8,
|
|
3209
4144
|
lstatSync,
|
|
3210
4145
|
mkdirSync as mkdirSync7,
|
|
3211
4146
|
mkdtempSync as mkdtempSync3,
|
|
3212
4147
|
readFileSync as readFileSync20,
|
|
3213
4148
|
readdirSync as readdirSync10,
|
|
3214
4149
|
readlinkSync,
|
|
3215
|
-
realpathSync as
|
|
4150
|
+
realpathSync as realpathSync6,
|
|
3216
4151
|
renameSync as renameSync2,
|
|
3217
4152
|
rmSync as rmSync7,
|
|
3218
4153
|
statSync as statSync3,
|
|
@@ -3220,8 +4155,8 @@ import {
|
|
|
3220
4155
|
utimesSync,
|
|
3221
4156
|
writeFileSync as writeFileSync9
|
|
3222
4157
|
} from "node:fs";
|
|
3223
|
-
import
|
|
3224
|
-
import
|
|
4158
|
+
import os6 from "node:os";
|
|
4159
|
+
import path31 from "node:path";
|
|
3225
4160
|
import * as v5 from "valibot";
|
|
3226
4161
|
|
|
3227
4162
|
// src/admitted-mac-build.ts
|
|
@@ -3231,44 +4166,44 @@ import { spawnSync as spawnSync6 } from "node:child_process";
|
|
|
3231
4166
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
3232
4167
|
import { renameSync } from "node:fs";
|
|
3233
4168
|
import { rm } from "node:fs/promises";
|
|
3234
|
-
import
|
|
4169
|
+
import path14 from "node:path";
|
|
3235
4170
|
|
|
3236
4171
|
// src/process-liveness.ts
|
|
3237
|
-
import { readFileSync as
|
|
4172
|
+
import { readFileSync as readFileSync8 } from "node:fs";
|
|
3238
4173
|
|
|
3239
4174
|
// src/swift-compiler-digest.ts
|
|
3240
|
-
import { createHash as
|
|
3241
|
-
import { readFileSync as
|
|
3242
|
-
import
|
|
4175
|
+
import { createHash as createHash9 } from "node:crypto";
|
|
4176
|
+
import { readFileSync as readFileSync9 } from "node:fs";
|
|
4177
|
+
import path15 from "node:path";
|
|
3243
4178
|
|
|
3244
4179
|
// src/swift-darwin-records.ts
|
|
3245
|
-
import { execFileSync as
|
|
4180
|
+
import { execFileSync as execFileSync5 } from "node:child_process";
|
|
3246
4181
|
import { mkdtempSync as mkdtempSync2, readdirSync as readdirSync7, rmSync as rmSync2, symlinkSync } from "node:fs";
|
|
3247
4182
|
import { tmpdir as tmpdir2 } from "node:os";
|
|
3248
|
-
import
|
|
4183
|
+
import path17 from "node:path";
|
|
3249
4184
|
|
|
3250
4185
|
// src/swift-shared-sdk.ts
|
|
3251
|
-
import { execFileSync as
|
|
3252
|
-
import { createHash as
|
|
3253
|
-
import
|
|
3254
|
-
import
|
|
4186
|
+
import { execFileSync as execFileSync4 } from "node:child_process";
|
|
4187
|
+
import { createHash as createHash10 } from "node:crypto";
|
|
4188
|
+
import fs10, { readdirSync as readdirSync6, readFileSync as readFileSync10 } from "node:fs";
|
|
4189
|
+
import path16 from "node:path";
|
|
3255
4190
|
|
|
3256
4191
|
// src/swift-guest-compile.ts
|
|
3257
|
-
import { execFileSync as
|
|
3258
|
-
import { mkdirSync as
|
|
3259
|
-
import
|
|
4192
|
+
import { execFileSync as execFileSync10 } from "node:child_process";
|
|
4193
|
+
import { mkdirSync as mkdirSync4, readFileSync as readFileSync16, writeFileSync as writeFileSync7 } from "node:fs";
|
|
4194
|
+
import path24 from "node:path";
|
|
3260
4195
|
|
|
3261
4196
|
// src/swift-guest-archive.ts
|
|
3262
|
-
import { execFileSync as
|
|
3263
|
-
import { createHash as
|
|
3264
|
-
import { mkdirSync, readFileSync as
|
|
3265
|
-
import
|
|
4197
|
+
import { execFileSync as execFileSync7 } from "node:child_process";
|
|
4198
|
+
import { createHash as createHash12 } from "node:crypto";
|
|
4199
|
+
import { mkdirSync as mkdirSync2, readFileSync as readFileSync11, rmSync as rmSync3, writeFileSync as writeFileSync4 } from "node:fs";
|
|
4200
|
+
import path19 from "node:path";
|
|
3266
4201
|
|
|
3267
4202
|
// src/swift-wasm-prune.ts
|
|
3268
|
-
import { execFileSync as
|
|
3269
|
-
import { createHash as
|
|
3270
|
-
import
|
|
3271
|
-
import
|
|
4203
|
+
import { execFileSync as execFileSync6 } from "node:child_process";
|
|
4204
|
+
import { createHash as createHash11 } from "node:crypto";
|
|
4205
|
+
import fs11 from "node:fs";
|
|
4206
|
+
import path18 from "node:path";
|
|
3272
4207
|
import * as v2 from "valibot";
|
|
3273
4208
|
|
|
3274
4209
|
// src/swiftRuntimeProductContract.ts
|
|
@@ -3416,29 +4351,29 @@ var SWIFTUI_WRAPPER_HOST_PROTOCOLS = new Set(
|
|
|
3416
4351
|
);
|
|
3417
4352
|
|
|
3418
4353
|
// src/swift-guest-link.ts
|
|
3419
|
-
import { execFileSync as
|
|
3420
|
-
import
|
|
3421
|
-
import
|
|
4354
|
+
import { execFileSync as execFileSync8 } from "node:child_process";
|
|
4355
|
+
import fs12 from "node:fs";
|
|
4356
|
+
import path22 from "node:path";
|
|
3422
4357
|
import { StringDecoder } from "node:string_decoder";
|
|
3423
4358
|
|
|
3424
4359
|
// src/swift-guest-manifest.ts
|
|
3425
|
-
import { createHash as
|
|
3426
|
-
import { readFileSync as
|
|
4360
|
+
import { createHash as createHash13 } from "node:crypto";
|
|
4361
|
+
import { readFileSync as readFileSync12 } from "node:fs";
|
|
3427
4362
|
|
|
3428
4363
|
// src/swift-guest-projection-storage.ts
|
|
3429
4364
|
var maxProjectionRegions = 1 << 20;
|
|
3430
4365
|
|
|
3431
4366
|
// src/swift-guest-runtime-plan.ts
|
|
3432
|
-
import { createHash as
|
|
3433
|
-
import { readFileSync as
|
|
3434
|
-
import
|
|
4367
|
+
import { createHash as createHash15 } from "node:crypto";
|
|
4368
|
+
import { readFileSync as readFileSync13, realpathSync } from "node:fs";
|
|
4369
|
+
import path21 from "node:path";
|
|
3435
4370
|
import * as v4 from "valibot";
|
|
3436
4371
|
|
|
3437
4372
|
// src/swift-guest-source-plan.ts
|
|
3438
|
-
import
|
|
4373
|
+
import path20 from "node:path";
|
|
3439
4374
|
|
|
3440
4375
|
// src/swift-runtime-products.ts
|
|
3441
|
-
import { createHash as
|
|
4376
|
+
import { createHash as createHash14 } from "node:crypto";
|
|
3442
4377
|
import * as v3 from "valibot";
|
|
3443
4378
|
var packageSchema = v3.object({
|
|
3444
4379
|
name: v3.string(),
|
|
@@ -3460,14 +4395,14 @@ var packageSchema = v3.object({
|
|
|
3460
4395
|
});
|
|
3461
4396
|
|
|
3462
4397
|
// src/swift-guest-source-inputs.ts
|
|
3463
|
-
import { execFileSync as
|
|
3464
|
-
import { createHash as
|
|
3465
|
-
import { mkdirSync as
|
|
3466
|
-
import
|
|
4398
|
+
import { execFileSync as execFileSync9 } from "node:child_process";
|
|
4399
|
+
import { createHash as createHash16 } from "node:crypto";
|
|
4400
|
+
import { mkdirSync as mkdirSync3, readFileSync as readFileSync14, realpathSync as realpathSync2, writeFileSync as writeFileSync5 } from "node:fs";
|
|
4401
|
+
import path23 from "node:path";
|
|
3467
4402
|
|
|
3468
4403
|
// src/wasm-optimize.ts
|
|
3469
4404
|
import { execFile as execFile2 } from "node:child_process";
|
|
3470
|
-
import { existsSync as
|
|
4405
|
+
import { existsSync as existsSync4, readFileSync as readFileSync15, rmSync as rmSync4, writeFileSync as writeFileSync6 } from "node:fs";
|
|
3471
4406
|
import { dirname, join as join6 } from "node:path";
|
|
3472
4407
|
import { promisify as promisify2 } from "node:util";
|
|
3473
4408
|
import { BINARYEN_VERSION, wasmOpt } from "wasm-opt";
|
|
@@ -3490,11 +4425,11 @@ var WASM_LOWER_IDENTITY = `binaryen ${BINARYEN_VERSION} narrow ${LOWERING.join("
|
|
|
3490
4425
|
|
|
3491
4426
|
// src/swift-icu.ts
|
|
3492
4427
|
import { execFile as execFile3 } from "node:child_process";
|
|
3493
|
-
import { createHash as
|
|
3494
|
-
import { existsSync as
|
|
4428
|
+
import { createHash as createHash17, randomUUID as randomUUID3 } from "node:crypto";
|
|
4429
|
+
import { existsSync as existsSync5, readFileSync as readFileSync17 } from "node:fs";
|
|
3495
4430
|
import { mkdir, readFile, rename, writeFile } from "node:fs/promises";
|
|
3496
|
-
import
|
|
3497
|
-
import
|
|
4431
|
+
import os4 from "node:os";
|
|
4432
|
+
import path25 from "node:path";
|
|
3498
4433
|
import { promisify as promisify3 } from "node:util";
|
|
3499
4434
|
import {
|
|
3500
4435
|
brotliCompress,
|
|
@@ -3516,54 +4451,52 @@ var compressBrotli = promisify3(brotliCompress);
|
|
|
3516
4451
|
var inflateGzip = promisify3(gunzip);
|
|
3517
4452
|
|
|
3518
4453
|
// src/swift-link-roots.ts
|
|
3519
|
-
import
|
|
3520
|
-
import
|
|
4454
|
+
import fs13 from "node:fs";
|
|
4455
|
+
import path26 from "node:path";
|
|
3521
4456
|
|
|
3522
4457
|
// src/swift-project-user.ts
|
|
3523
|
-
import { execFileSync as
|
|
4458
|
+
import { execFileSync as execFileSync11 } from "node:child_process";
|
|
3524
4459
|
import {
|
|
3525
4460
|
chmodSync,
|
|
3526
|
-
existsSync as
|
|
3527
|
-
mkdirSync as
|
|
4461
|
+
existsSync as existsSync6,
|
|
4462
|
+
mkdirSync as mkdirSync5,
|
|
3528
4463
|
readdirSync as readdirSync8,
|
|
3529
|
-
readFileSync as
|
|
4464
|
+
readFileSync as readFileSync18,
|
|
3530
4465
|
realpathSync as realpathSync3,
|
|
3531
4466
|
rmSync as rmSync5,
|
|
3532
4467
|
statSync as statSync2
|
|
3533
4468
|
} from "node:fs";
|
|
3534
|
-
import
|
|
4469
|
+
import path27 from "node:path";
|
|
3535
4470
|
|
|
3536
4471
|
// src/swift-reproducible.ts
|
|
3537
4472
|
import { realpathSync as realpathSync4 } from "node:fs";
|
|
3538
|
-
import
|
|
4473
|
+
import os5 from "node:os";
|
|
3539
4474
|
|
|
3540
4475
|
// src/swift-root-lock.ts
|
|
3541
4476
|
import {
|
|
3542
4477
|
spawn as spawn4
|
|
3543
4478
|
} from "node:child_process";
|
|
3544
|
-
import { createHash as
|
|
4479
|
+
import { createHash as createHash18, randomUUID as randomUUID4 } from "node:crypto";
|
|
3545
4480
|
import {
|
|
4481
|
+
existsSync as existsSync7,
|
|
3546
4482
|
linkSync,
|
|
3547
|
-
mkdirSync as
|
|
4483
|
+
mkdirSync as mkdirSync6,
|
|
3548
4484
|
readdirSync as readdirSync9,
|
|
3549
|
-
readFileSync as
|
|
4485
|
+
readFileSync as readFileSync19,
|
|
4486
|
+
realpathSync as realpathSync5,
|
|
3550
4487
|
rmSync as rmSync6,
|
|
3551
|
-
writeFileSync as
|
|
4488
|
+
writeFileSync as writeFileSync8
|
|
3552
4489
|
} from "node:fs";
|
|
3553
4490
|
import { homedir as homedir2 } from "node:os";
|
|
3554
|
-
import
|
|
4491
|
+
import path28 from "node:path";
|
|
3555
4492
|
|
|
3556
4493
|
// src/swift-uniform-type-constants.ts
|
|
3557
|
-
import { execFileSync as
|
|
3558
|
-
import
|
|
3559
|
-
|
|
3560
|
-
// src/write-build-file.ts
|
|
3561
|
-
import { existsSync as existsSync6, mkdirSync as mkdirSync6, readFileSync as readFileSync19, writeFileSync as writeFileSync8 } from "node:fs";
|
|
3562
|
-
import path27 from "node:path";
|
|
4494
|
+
import { execFileSync as execFileSync12 } from "node:child_process";
|
|
4495
|
+
import path29 from "node:path";
|
|
3563
4496
|
|
|
3564
4497
|
// src/xcode-header-search.ts
|
|
3565
|
-
import
|
|
3566
|
-
import
|
|
4498
|
+
import fs14 from "node:fs";
|
|
4499
|
+
import path30 from "node:path";
|
|
3567
4500
|
|
|
3568
4501
|
// src/swift-compile.ts
|
|
3569
4502
|
var OPTIONAL_FRAMEWORK_DEPENDENCIES = {
|
|
@@ -3593,7 +4526,8 @@ var OPTIONAL_FRAMEWORK_DEPENDENCIES = {
|
|
|
3593
4526
|
RiveRuntime: ["MetalKit"],
|
|
3594
4527
|
MetalKit: ["ModelIO"],
|
|
3595
4528
|
DatadogInternal: [],
|
|
3596
|
-
|
|
4529
|
+
// Kronos resolves hosts with CFHost, which iOS Foundation re-exports without an import
|
|
4530
|
+
DatadogCore: ["DatadogInternal", "CFNetwork"],
|
|
3597
4531
|
DatadogLogs: ["DatadogCore"],
|
|
3598
4532
|
DatadogRUM: ["DatadogCore"],
|
|
3599
4533
|
DatadogTrace: ["DatadogCore"],
|
|
@@ -3640,7 +4574,12 @@ var FOUNDATION_IMPLICIT_MODULES = [
|
|
|
3640
4574
|
var FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
|
|
3641
4575
|
(module) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module}"`
|
|
3642
4576
|
).join("");
|
|
3643
|
-
var compilerSourceDigest = true ? "
|
|
4577
|
+
var compilerSourceDigest = true ? "eb9ff9bcb5a3add7d39d8e2fab7bd78e5831318b3e729adcc5f7414fca1e40e2" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
4578
|
+
var C_WORDS = new Set(
|
|
4579
|
+
"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(
|
|
4580
|
+
" "
|
|
4581
|
+
)
|
|
4582
|
+
);
|
|
3644
4583
|
var CORE_FOUNDATION_HANDLE_IMPORTS = [
|
|
3645
4584
|
"CFAllocator",
|
|
3646
4585
|
"CFArray",
|
|
@@ -3683,26 +4622,54 @@ import { AsyncLocalStorage } from "node:async_hooks";
|
|
|
3683
4622
|
import { readFileSync as readFileSync21 } from "node:fs";
|
|
3684
4623
|
import { join as join7 } from "node:path";
|
|
3685
4624
|
|
|
4625
|
+
// src/launchMetadataContract.ts
|
|
4626
|
+
var LAUNCH_METADATA_KEYS_PATH = "node/launch-metadata-keys.json";
|
|
4627
|
+
var LAUNCH_METADATA_KEYS = [
|
|
4628
|
+
"appFonts",
|
|
4629
|
+
"appSplash",
|
|
4630
|
+
"appCatalog",
|
|
4631
|
+
"appBundleResources",
|
|
4632
|
+
"nativeAppIdentity",
|
|
4633
|
+
"nativeFirebase",
|
|
4634
|
+
"expoSwift",
|
|
4635
|
+
"expoWidgets",
|
|
4636
|
+
"expoKotlin",
|
|
4637
|
+
"nitro",
|
|
4638
|
+
"turbo",
|
|
4639
|
+
"widgetExtension",
|
|
4640
|
+
"appManifest",
|
|
4641
|
+
"packageVersions",
|
|
4642
|
+
"dotEnv",
|
|
4643
|
+
"env"
|
|
4644
|
+
];
|
|
4645
|
+
var LAUNCH_METADATA_KEYS_BEFORE_RUNTIME_STATED_THEM = LAUNCH_METADATA_KEYS.filter((key) => key !== "widgetExtension");
|
|
4646
|
+
|
|
3686
4647
|
// src/runtime-assets.ts
|
|
3687
|
-
import
|
|
3688
|
-
import
|
|
4648
|
+
import fs15 from "fs";
|
|
4649
|
+
import path32 from "path";
|
|
3689
4650
|
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
3690
4651
|
|
|
3691
4652
|
// src/answeredNativePackages.ts
|
|
4653
|
+
var runtimeLaunchMetadataKeysFile = {
|
|
4654
|
+
path: LAUNCH_METADATA_KEYS_PATH,
|
|
4655
|
+
contents: `${JSON.stringify(LAUNCH_METADATA_KEYS)}
|
|
4656
|
+
`
|
|
4657
|
+
};
|
|
3692
4658
|
var unansweredStore = new AsyncLocalStorage();
|
|
4659
|
+
var answeredStore = new AsyncLocalStorage();
|
|
3693
4660
|
|
|
3694
4661
|
// src/nitroAdapterContract.ts
|
|
3695
|
-
import { createHash as
|
|
4662
|
+
import { createHash as createHash20 } from "node:crypto";
|
|
3696
4663
|
import { readdirSync as readdirSync11, readFileSync as readFileSync22 } from "node:fs";
|
|
3697
|
-
import
|
|
4664
|
+
import path33 from "node:path";
|
|
3698
4665
|
|
|
3699
4666
|
// src/swift-package-manifest.ts
|
|
3700
|
-
var cacheDir3 =
|
|
4667
|
+
var cacheDir3 = path35.join(cacheDir(), "swift-manifests");
|
|
3701
4668
|
var execFileAsync = promisify4(execFile4);
|
|
3702
4669
|
|
|
3703
4670
|
// src/xcode-json-project.ts
|
|
3704
4671
|
var import_json5 = __toESM(require_lib(), 1);
|
|
3705
|
-
import
|
|
4672
|
+
import path36 from "node:path";
|
|
3706
4673
|
var isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
3707
4674
|
var text = (value) => typeof value === "string" ? value : void 0;
|
|
3708
4675
|
var items = (value) => Array.isArray(value) ? value : [];
|
|
@@ -3759,7 +4726,7 @@ var PHASE_ISA = {
|
|
|
3759
4726
|
function readXcodeJsonProject(xcodeproj, source) {
|
|
3760
4727
|
const json = import_json5.default.parse(source);
|
|
3761
4728
|
if (!isJsonObject(json)) throw new Error(`${xcodeproj}/project.xcproj is not an object`);
|
|
3762
|
-
const projectDir =
|
|
4729
|
+
const projectDir = path36.dirname(xcodeproj);
|
|
3763
4730
|
const objects = {};
|
|
3764
4731
|
let next = 0;
|
|
3765
4732
|
const add = (entry, id) => {
|
|
@@ -3772,7 +4739,7 @@ function readXcodeJsonProject(xcodeproj, source) {
|
|
|
3772
4739
|
const base = /^<([A-Z]+)>\/(.*)$/.exec(raw);
|
|
3773
4740
|
if (base) {
|
|
3774
4741
|
if (base[1] === "PROJECT")
|
|
3775
|
-
return { sourceTree: "<absolute>", path:
|
|
4742
|
+
return { sourceTree: "<absolute>", path: path36.join(projectDir, base[2]) };
|
|
3776
4743
|
if (base[1] === "PRODUCTS")
|
|
3777
4744
|
return { sourceTree: "BUILT_PRODUCTS_DIR", path: base[2] };
|
|
3778
4745
|
return null;
|
|
@@ -3780,7 +4747,7 @@ function readXcodeJsonProject(xcodeproj, source) {
|
|
|
3780
4747
|
const unescaped = raw.replaceAll("\\<", "<");
|
|
3781
4748
|
if (unescaped.startsWith("/")) return { sourceTree: "<absolute>", path: unescaped };
|
|
3782
4749
|
if (unescaped.startsWith("~")) return null;
|
|
3783
|
-
return groupDir === null ? null : { sourceTree: "<absolute>", path:
|
|
4750
|
+
return groupDir === null ? null : { sourceTree: "<absolute>", path: path36.join(groupDir, unescaped) };
|
|
3784
4751
|
};
|
|
3785
4752
|
const memberships = [];
|
|
3786
4753
|
const folders = [];
|
|
@@ -3791,7 +4758,7 @@ function readXcodeJsonProject(xcodeproj, source) {
|
|
|
3791
4758
|
const kind = text(entry.kind) ?? "file-reference";
|
|
3792
4759
|
const raw = text(entry.path) ?? "";
|
|
3793
4760
|
const located = raw === "" ? null : locate(raw, parent.dir);
|
|
3794
|
-
const name = text(entry.name) ??
|
|
4761
|
+
const name = text(entry.name) ?? path36.basename(raw);
|
|
3795
4762
|
const node = { id: "", name, dir: null, parent, children: [] };
|
|
3796
4763
|
if (kind === "group" || kind === "variant-group" || kind === "version-group") {
|
|
3797
4764
|
node.dir = raw === "" ? parent.dir : located?.sourceTree === "<absolute>" ? located.path : null;
|
|
@@ -3912,7 +4879,7 @@ function readXcodeJsonProject(xcodeproj, source) {
|
|
|
3912
4879
|
if (!isObject(entry)) continue;
|
|
3913
4880
|
const repository = text(entry.repository);
|
|
3914
4881
|
const local = text(entry.path);
|
|
3915
|
-
const name = local !== void 0 ?
|
|
4882
|
+
const name = local !== void 0 ? path36.basename(path36.resolve(path36.dirname(xcodeproj), local)) : path36.basename(repository ?? "").replace(/\.git$/, "");
|
|
3916
4883
|
const id = text(entry.kind) === "local" && local !== void 0 ? add({ isa: "XCLocalSwiftPackageReference", relativePath: local }) : add({
|
|
3917
4884
|
isa: "XCRemoteSwiftPackageReference",
|
|
3918
4885
|
repositoryURL: repository ?? "",
|
|
@@ -4133,28 +5100,28 @@ var CONDITIONS = {
|
|
|
4133
5100
|
variant: "normal"
|
|
4134
5101
|
};
|
|
4135
5102
|
function walkFiles(dir) {
|
|
4136
|
-
if (!
|
|
5103
|
+
if (!fs18.existsSync(dir)) return [];
|
|
4137
5104
|
const out = [];
|
|
4138
|
-
for (const entry of
|
|
5105
|
+
for (const entry of fs18.readdirSync(dir, { withFileTypes: true }).sort((left, right) => left.name.localeCompare(right.name))) {
|
|
4139
5106
|
if (entry.name.startsWith(".")) continue;
|
|
4140
|
-
const full =
|
|
5107
|
+
const full = path37.join(dir, entry.name);
|
|
4141
5108
|
if (entry.isDirectory()) out.push(...walkFiles(full));
|
|
4142
5109
|
else if (entry.isFile()) out.push(full);
|
|
4143
5110
|
}
|
|
4144
5111
|
return out;
|
|
4145
5112
|
}
|
|
4146
|
-
var isDirectory = (dir) =>
|
|
5113
|
+
var isDirectory = (dir) => fs18.existsSync(dir) && fs18.statSync(dir).isDirectory();
|
|
4147
5114
|
function readXcconfig(file, read) {
|
|
4148
|
-
if (read.includes(file) || !
|
|
5115
|
+
if (read.includes(file) || !fs18.existsSync(file)) return {};
|
|
4149
5116
|
read.push(file);
|
|
4150
5117
|
const settings = {};
|
|
4151
|
-
for (const raw of
|
|
5118
|
+
for (const raw of fs18.readFileSync(file, "utf8").split("\n")) {
|
|
4152
5119
|
const line = raw.replace(/\/\/.*$/, "").trim();
|
|
4153
5120
|
const include = /^#include\??\s+"([^"]+)"/.exec(line);
|
|
4154
5121
|
if (include) {
|
|
4155
5122
|
Object.assign(
|
|
4156
5123
|
settings,
|
|
4157
|
-
readXcconfig(
|
|
5124
|
+
readXcconfig(path37.resolve(path37.dirname(file), include[1]), read)
|
|
4158
5125
|
);
|
|
4159
5126
|
continue;
|
|
4160
5127
|
}
|
|
@@ -4204,22 +5171,22 @@ function decodeXml(text2) {
|
|
|
4204
5171
|
return text2.replaceAll(""", '"').replaceAll("'", "'").replaceAll("<", "<").replaceAll(">", ">").replaceAll("&", "&");
|
|
4205
5172
|
}
|
|
4206
5173
|
function workspaceReferences(workspace) {
|
|
4207
|
-
const data =
|
|
4208
|
-
if (!
|
|
5174
|
+
const data = path37.join(workspace, "contents.xcworkspacedata");
|
|
5175
|
+
if (!fs18.existsSync(data))
|
|
4209
5176
|
throw new Error(`${workspace} has no contents.xcworkspacedata`);
|
|
4210
|
-
const container =
|
|
5177
|
+
const container = path37.dirname(workspace);
|
|
4211
5178
|
const locate = (location, base) => {
|
|
4212
5179
|
const colon = location.indexOf(":");
|
|
4213
5180
|
const kind = location.slice(0, colon);
|
|
4214
5181
|
const rest = location.slice(colon + 1);
|
|
4215
|
-
if (kind === "group") return
|
|
4216
|
-
if (kind === "container" || kind === "self") return
|
|
4217
|
-
if (kind === "absolute") return
|
|
4218
|
-
throw new Error(`${
|
|
5182
|
+
if (kind === "group") return path37.resolve(base, rest);
|
|
5183
|
+
if (kind === "container" || kind === "self") return path37.resolve(container, rest);
|
|
5184
|
+
if (kind === "absolute") return path37.resolve(rest);
|
|
5185
|
+
throw new Error(`${path37.basename(workspace)} has an unsupported location ${location}`);
|
|
4219
5186
|
};
|
|
4220
5187
|
const groups = [container];
|
|
4221
5188
|
const references = [];
|
|
4222
|
-
for (const [, closing, tag, attributes, selfClosing] of
|
|
5189
|
+
for (const [, closing, tag, attributes, selfClosing] of fs18.readFileSync(data, "utf8").matchAll(/<(\/?)(Group|FileRef)\b([^>]*?)(\/?)>/g)) {
|
|
4223
5190
|
if (closing) {
|
|
4224
5191
|
if (tag === "Group") groups.pop();
|
|
4225
5192
|
continue;
|
|
@@ -4270,8 +5237,8 @@ function remotePackageRequirements(projects) {
|
|
|
4270
5237
|
var loaded = /* @__PURE__ */ new Map();
|
|
4271
5238
|
function xcodeProjectFile(xcodeproj) {
|
|
4272
5239
|
for (const name of ["project.pbxproj", "project.xcproj"]) {
|
|
4273
|
-
const file =
|
|
4274
|
-
if (
|
|
5240
|
+
const file = path37.join(xcodeproj, name);
|
|
5241
|
+
if (fs18.existsSync(file)) return file;
|
|
4275
5242
|
}
|
|
4276
5243
|
return null;
|
|
4277
5244
|
}
|
|
@@ -4279,8 +5246,8 @@ function loadProject(xcodeproj) {
|
|
|
4279
5246
|
const projectFile = xcodeProjectFile(xcodeproj);
|
|
4280
5247
|
if (!projectFile)
|
|
4281
5248
|
throw new Error(`${xcodeproj} has no project.pbxproj or project.xcproj`);
|
|
4282
|
-
const source =
|
|
4283
|
-
const digest =
|
|
5249
|
+
const source = fs18.readFileSync(projectFile, "utf8");
|
|
5250
|
+
const digest = createHash22("sha256").update(source).digest("hex");
|
|
4284
5251
|
const cached = loaded.get(projectFile);
|
|
4285
5252
|
if (cached?.digest === digest) return cached.project;
|
|
4286
5253
|
const root = projectFile.endsWith(".xcproj") ? readXcodeJsonProject(xcodeproj, source) : parseOpenStepPlist(source);
|
|
@@ -4296,10 +5263,10 @@ function loadProject(xcodeproj) {
|
|
|
4296
5263
|
if (!project || project.isa !== "PBXProject") {
|
|
4297
5264
|
throw new Error(`${projectFile} has no PBXProject root`);
|
|
4298
5265
|
}
|
|
4299
|
-
const projectDir =
|
|
4300
|
-
|
|
5266
|
+
const projectDir = fs18.realpathSync.native(
|
|
5267
|
+
path37.resolve(path37.dirname(xcodeproj), str(project.projectDirPath) ?? "")
|
|
4301
5268
|
);
|
|
4302
|
-
const resolvePath = xcodePathResolver(objects, projectDir,
|
|
5269
|
+
const resolvePath = xcodePathResolver(objects, projectDir, path37.join);
|
|
4303
5270
|
const result = {
|
|
4304
5271
|
xcodeproj,
|
|
4305
5272
|
projectFile,
|
|
@@ -4317,7 +5284,7 @@ var developerDir;
|
|
|
4317
5284
|
function selectedDeveloperDir() {
|
|
4318
5285
|
developerDir ?? (developerDir = process.platform === "darwin" ? (
|
|
4319
5286
|
// runner-toolchain-platform: darwin
|
|
4320
|
-
|
|
5287
|
+
execFileSync15("xcode-select", ["-p"], {
|
|
4321
5288
|
encoding: "utf8",
|
|
4322
5289
|
stdio: ["ignore", "pipe", "pipe"]
|
|
4323
5290
|
}).trim()
|
|
@@ -4347,8 +5314,8 @@ function targetSettings(ref, configuration, builtins, options = {}, overrides =
|
|
|
4347
5314
|
const relative2 = str(config.baseConfigurationReferenceRelativePath);
|
|
4348
5315
|
const own = isDict(config.buildSettings) ? config.buildSettings : {};
|
|
4349
5316
|
const directory = anchor ? project.resolvePath(anchor) : null;
|
|
4350
|
-
const baseFile = base ? project.resolvePath(base) : directory && relative2 ?
|
|
4351
|
-
if (options.requireSources !== false && (base || anchor || relative2) && (!baseFile || !
|
|
5317
|
+
const baseFile = base ? project.resolvePath(base) : directory && relative2 ? path37.resolve(directory, relative2) : null;
|
|
5318
|
+
if (options.requireSources !== false && (base || anchor || relative2) && (!baseFile || !fs18.existsSync(baseFile)))
|
|
4352
5319
|
throw new Error(
|
|
4353
5320
|
`Unable to open base configuration reference file '${baseFile ?? base ?? relative2 ?? anchor}'`
|
|
4354
5321
|
);
|
|
@@ -4439,26 +5406,26 @@ function scriptCommand(shell, script) {
|
|
|
4439
5406
|
return [executable, ...args, "-c", script];
|
|
4440
5407
|
}
|
|
4441
5408
|
function expandSearchPath(directory, rules2) {
|
|
4442
|
-
if (
|
|
5409
|
+
if (path37.basename(directory) !== "**") return [directory];
|
|
4443
5410
|
const expanded = [];
|
|
4444
5411
|
const seen = /* @__PURE__ */ new Set();
|
|
4445
|
-
const queue = [
|
|
5412
|
+
const queue = [path37.dirname(directory)];
|
|
4446
5413
|
for (let at = 0; at < queue.length; at++) {
|
|
4447
5414
|
const current = queue[at];
|
|
4448
5415
|
let real;
|
|
4449
5416
|
try {
|
|
4450
|
-
real =
|
|
5417
|
+
real = fs18.realpathSync.native(current);
|
|
4451
5418
|
} catch {
|
|
4452
5419
|
continue;
|
|
4453
5420
|
}
|
|
4454
|
-
if (!
|
|
5421
|
+
if (!fs18.statSync(real).isDirectory() || seen.has(real)) continue;
|
|
4455
5422
|
seen.add(real);
|
|
4456
5423
|
expanded.push(current);
|
|
4457
|
-
for (const entry of
|
|
5424
|
+
for (const entry of fs18.readdirSync(real, { withFileTypes: true }).sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0)) {
|
|
4458
5425
|
if (entry.isSymbolicLink() ? !rules2.followLinks : !entry.isDirectory()) continue;
|
|
4459
5426
|
if (rules2.excluded.some((pattern) => pattern.test(entry.name)) && !rules2.included.some((pattern) => pattern.test(entry.name)))
|
|
4460
5427
|
continue;
|
|
4461
|
-
queue.push(
|
|
5428
|
+
queue.push(path37.join(current, entry.name));
|
|
4462
5429
|
}
|
|
4463
5430
|
}
|
|
4464
5431
|
return expanded;
|
|
@@ -4529,7 +5496,7 @@ function shellAssetCatalogs(script, settings, projectDir) {
|
|
|
4529
5496
|
for (const token of tokens) {
|
|
4530
5497
|
if (token.startsWith("-")) break;
|
|
4531
5498
|
const file = resolve(token);
|
|
4532
|
-
if (file?.endsWith(".xcassets")) catalogs.push(
|
|
5499
|
+
if (file?.endsWith(".xcassets")) catalogs.push(path37.resolve(projectDir, file));
|
|
4533
5500
|
}
|
|
4534
5501
|
}
|
|
4535
5502
|
return catalogs;
|
|
@@ -4574,14 +5541,14 @@ function shellCopies(script, settings, projectDir) {
|
|
|
4574
5541
|
if (operands.length !== 2 || operands.some((operand) => operand.startsWith("-")))
|
|
4575
5542
|
return [];
|
|
4576
5543
|
copies.push({
|
|
4577
|
-
from:
|
|
4578
|
-
to:
|
|
5544
|
+
from: path37.resolve(projectDir, operands[0]),
|
|
5545
|
+
to: path37.resolve(projectDir, operands[1])
|
|
4579
5546
|
});
|
|
4580
5547
|
}
|
|
4581
5548
|
return copies;
|
|
4582
5549
|
}
|
|
4583
5550
|
function fileListEntries(file, absolute) {
|
|
4584
|
-
return
|
|
5551
|
+
return fs18.readFileSync(file, "utf8").split(/\r?\n/).map((line) => line.trim()).filter((line) => line !== "" && !line.startsWith("#")).map(absolute);
|
|
4585
5552
|
}
|
|
4586
5553
|
function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
4587
5554
|
const { project, target, id: targetId } = ref;
|
|
@@ -4595,7 +5562,7 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
|
4595
5562
|
const copiedFiles = [];
|
|
4596
5563
|
let generatedInfoPlist = false;
|
|
4597
5564
|
const declaredInfoPlist = settings("INFOPLIST_FILE");
|
|
4598
|
-
const infoPlistOutput = declaredInfoPlist ?
|
|
5565
|
+
const infoPlistOutput = declaredInfoPlist ? path37.resolve(project.projectDir, declaredInfoPlist) : null;
|
|
4599
5566
|
const isPreparedOutput = (file) => file === infoPlistOutput || options.requireSources !== false && file.endsWith(".swift");
|
|
4600
5567
|
for (const phaseId of list(target.buildPhases)) {
|
|
4601
5568
|
const phase = project.object(phaseId);
|
|
@@ -4610,7 +5577,7 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
|
4610
5577
|
copiedFiles.push(
|
|
4611
5578
|
...shellCopies(str(phase.shellScript) ?? "", settings, project.projectDir)
|
|
4612
5579
|
);
|
|
4613
|
-
const absolute = (raw) =>
|
|
5580
|
+
const absolute = (raw) => path37.resolve(project.projectDir, expand(raw, settings));
|
|
4614
5581
|
const inputs = list(phase.inputPaths).map(absolute);
|
|
4615
5582
|
const outputs = list(phase.outputPaths).map(absolute);
|
|
4616
5583
|
const fileLists = /* @__PURE__ */ new Map();
|
|
@@ -4619,7 +5586,7 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
|
4619
5586
|
kind === "INPUT" ? phase.inputFileListPaths : phase.outputFileListPaths
|
|
4620
5587
|
).map((raw) => {
|
|
4621
5588
|
const file = absolute(raw);
|
|
4622
|
-
if (!
|
|
5589
|
+
if (!fs18.existsSync(file)) {
|
|
4623
5590
|
return { file, entries: [] };
|
|
4624
5591
|
}
|
|
4625
5592
|
return { file, entries: fileListEntries(file, absolute) };
|
|
@@ -4640,7 +5607,7 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
|
4640
5607
|
...fileLists.get("OUTPUT").map((item) => item.file)
|
|
4641
5608
|
];
|
|
4642
5609
|
if (allOutputs.some((file) => file.endsWith(".swift") || file === infoPlistOutput)) {
|
|
4643
|
-
for (const file of inputFiles) if (
|
|
5610
|
+
for (const file of inputFiles) if (fs18.existsSync(file)) projectInputs.add(file);
|
|
4644
5611
|
}
|
|
4645
5612
|
if (options.prepareGeneratedSources === true && allOutputs.some(isPreparedOutput)) {
|
|
4646
5613
|
const configuration = settings("CONFIGURATION");
|
|
@@ -4653,10 +5620,10 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
|
4653
5620
|
false
|
|
4654
5621
|
))
|
|
4655
5622
|
continue;
|
|
4656
|
-
const phaseDir =
|
|
5623
|
+
const phaseDir = path37.join(settings("TARGET_TEMP_DIR"), `Script-${phaseId}`);
|
|
4657
5624
|
for (const lists of fileLists.values())
|
|
4658
5625
|
for (const { file } of lists)
|
|
4659
|
-
if (!
|
|
5626
|
+
if (!fs18.existsSync(file))
|
|
4660
5627
|
throw new Error(
|
|
4661
5628
|
`${targetName}: Run Script "${script}" missing file list ${file}`
|
|
4662
5629
|
);
|
|
@@ -4675,25 +5642,25 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
|
4675
5642
|
const lists = fileLists.get(kind);
|
|
4676
5643
|
env[`SCRIPT_${kind}_FILE_LIST_COUNT`] = String(lists.length);
|
|
4677
5644
|
lists.forEach((_item, index) => {
|
|
4678
|
-
env[`SCRIPT_${kind}_FILE_LIST_${index}`] =
|
|
5645
|
+
env[`SCRIPT_${kind}_FILE_LIST_${index}`] = path37.join(
|
|
4679
5646
|
phaseDir,
|
|
4680
5647
|
`${kind}-${index}.xcfilelist`
|
|
4681
5648
|
);
|
|
4682
5649
|
});
|
|
4683
5650
|
}
|
|
4684
|
-
const signature =
|
|
5651
|
+
const signature = createHash22("sha256").update(
|
|
4685
5652
|
JSON.stringify([phase, [...settingKeys].map((key2) => [key2, settings(key2)])])
|
|
4686
5653
|
);
|
|
4687
5654
|
for (const file of inputFiles) {
|
|
4688
5655
|
signature.update(file);
|
|
4689
|
-
if (
|
|
4690
|
-
const stat =
|
|
5656
|
+
if (fs18.existsSync(file)) {
|
|
5657
|
+
const stat = fs18.statSync(file);
|
|
4691
5658
|
signature.update(`${stat.mtimeMs}:${stat.ctimeMs}:${stat.size}`);
|
|
4692
5659
|
} else signature.update("missing");
|
|
4693
5660
|
}
|
|
4694
5661
|
const stamp = signature.digest("hex");
|
|
4695
5662
|
const key = `${project.projectFile}:${targetId}:${phaseId}:${settings("CONFIGURATION")}`;
|
|
4696
|
-
if (preparedSourcePhases.get(key) === stamp && allOutputs.every((file) =>
|
|
5663
|
+
if (preparedSourcePhases.get(key) === stamp && allOutputs.every((file) => fs18.existsSync(file))) {
|
|
4697
5664
|
preparedXcodePhase(
|
|
4698
5665
|
project.projectFile,
|
|
4699
5666
|
targetId,
|
|
@@ -4704,25 +5671,46 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
|
4704
5671
|
);
|
|
4705
5672
|
continue;
|
|
4706
5673
|
}
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
5674
|
+
fs18.mkdirSync(phaseDir, { recursive: true });
|
|
5675
|
+
fs18.mkdirSync(settings("BUILT_PRODUCTS_DIR"), { recursive: true });
|
|
5676
|
+
fs18.mkdirSync(settings("DERIVED_FILE_DIR"), { recursive: true });
|
|
4710
5677
|
for (const output2 of allOutputs)
|
|
4711
|
-
|
|
5678
|
+
fs18.mkdirSync(path37.dirname(output2), { recursive: true });
|
|
4712
5679
|
for (const [kind, lists] of fileLists)
|
|
4713
5680
|
lists.forEach((item, index) => {
|
|
4714
|
-
|
|
5681
|
+
fs18.writeFileSync(
|
|
4715
5682
|
env[`SCRIPT_${kind}_FILE_LIST_${index}`],
|
|
4716
5683
|
`${item.entries.join("\n")}
|
|
4717
5684
|
`
|
|
4718
5685
|
);
|
|
4719
5686
|
});
|
|
5687
|
+
const rawScript = str(phase.shellScript) ?? "";
|
|
5688
|
+
if (rawScript.includes("generate-modules-provider")) {
|
|
5689
|
+
const preloadPath = path37.join(phaseDir, "expo-scan-timeout.cjs");
|
|
5690
|
+
fs18.mkdirSync(phaseDir, { recursive: true });
|
|
5691
|
+
fs18.writeFileSync(
|
|
5692
|
+
preloadPath,
|
|
5693
|
+
[
|
|
5694
|
+
"const cp = require('node:child_process');",
|
|
5695
|
+
"const orig = cp.execFile;",
|
|
5696
|
+
"cp.execFile = function (file, args, options, callback) {",
|
|
5697
|
+
" 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) {",
|
|
5698
|
+
" options = { ...options, timeout: 60000 };",
|
|
5699
|
+
" }",
|
|
5700
|
+
" return orig.call(this, file, args, options, callback);",
|
|
5701
|
+
"};",
|
|
5702
|
+
""
|
|
5703
|
+
].join("\n")
|
|
5704
|
+
);
|
|
5705
|
+
const quoted = `"${preloadPath.replace(/["\\]/g, "\\$&")}"`;
|
|
5706
|
+
env.NODE_OPTIONS = [env.NODE_OPTIONS, `--require ${quoted}`].filter(Boolean).join(" ");
|
|
5707
|
+
}
|
|
4720
5708
|
try {
|
|
4721
5709
|
const [shell, ...args] = scriptCommand(
|
|
4722
5710
|
str(phase.shellPath) ?? "/bin/sh",
|
|
4723
|
-
|
|
5711
|
+
rawScript
|
|
4724
5712
|
);
|
|
4725
|
-
|
|
5713
|
+
execFileSync15(shell, args, {
|
|
4726
5714
|
cwd: project.projectDir,
|
|
4727
5715
|
env,
|
|
4728
5716
|
stdio: ["ignore", "pipe", "pipe"],
|
|
@@ -4738,7 +5726,7 @@ ${output2}`
|
|
|
4738
5726
|
);
|
|
4739
5727
|
}
|
|
4740
5728
|
const missing = allOutputs.filter(
|
|
4741
|
-
(file) => file === infoPlistOutput && !
|
|
5729
|
+
(file) => file === infoPlistOutput && !fs18.existsSync(file)
|
|
4742
5730
|
);
|
|
4743
5731
|
if (missing.length > 0)
|
|
4744
5732
|
throw new Error(
|
|
@@ -4757,9 +5745,9 @@ ${output2}`
|
|
|
4757
5745
|
}
|
|
4758
5746
|
project.visitMembers(
|
|
4759
5747
|
targetId,
|
|
4760
|
-
xcodePathResolver(project.objects, project.projectDir,
|
|
4761
|
-
(file) => isDirectory(file) ? walkFiles(file) :
|
|
4762
|
-
|
|
5748
|
+
xcodePathResolver(project.objects, project.projectDir, path37.join, settings),
|
|
5749
|
+
(file) => isDirectory(file) ? walkFiles(file) : fs18.existsSync(file) ? [file] : [],
|
|
5750
|
+
path37.join,
|
|
4763
5751
|
(file, kind, bundleName) => {
|
|
4764
5752
|
if (kind === "header") {
|
|
4765
5753
|
headers.add(file);
|
|
@@ -4770,9 +5758,9 @@ ${output2}`
|
|
|
4770
5758
|
if (bundleName) resourceNames[file] = bundleName;
|
|
4771
5759
|
return;
|
|
4772
5760
|
}
|
|
4773
|
-
if (!
|
|
5761
|
+
if (!fs18.existsSync(file)) {
|
|
4774
5762
|
if (options.requireSources === false) return;
|
|
4775
|
-
const script = scriptForOutput.get(
|
|
5763
|
+
const script = scriptForOutput.get(path37.normalize(file));
|
|
4776
5764
|
throw new Error(
|
|
4777
5765
|
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}`
|
|
4778
5766
|
);
|
|
@@ -4783,17 +5771,17 @@ ${output2}`
|
|
|
4783
5771
|
);
|
|
4784
5772
|
if (options.prepareGeneratedSources && options.requireSources !== false) {
|
|
4785
5773
|
const interfaceFiles = [...resources].filter(
|
|
4786
|
-
(file) => /\.(storyboard|xib)$/.test(file) && !file.split(
|
|
5774
|
+
(file) => /\.(storyboard|xib)$/.test(file) && !file.split(path37.sep).some((part) => part.endsWith(".bundle"))
|
|
4787
5775
|
);
|
|
4788
5776
|
if (process.platform !== "darwin") {
|
|
4789
5777
|
let launchName = settings("INFOPLIST_KEY_UILaunchStoryboardName");
|
|
4790
|
-
if (!launchName && infoPlistOutput &&
|
|
4791
|
-
const info =
|
|
5778
|
+
if (!launchName && infoPlistOutput && fs18.existsSync(infoPlistOutput)) {
|
|
5779
|
+
const info = plist3.parse(fs18.readFileSync(infoPlistOutput, "utf8"));
|
|
4792
5780
|
const declared = isRecord(info) ? info.UILaunchStoryboardName : void 0;
|
|
4793
5781
|
if (typeof declared === "string") launchName = expand(declared, settings);
|
|
4794
5782
|
}
|
|
4795
5783
|
const runtimeInterfaceFiles = interfaceFiles.filter(
|
|
4796
|
-
(file) =>
|
|
5784
|
+
(file) => path37.basename(file, path37.extname(file)) !== launchName
|
|
4797
5785
|
);
|
|
4798
5786
|
if (runtimeInterfaceFiles.length > 0)
|
|
4799
5787
|
throw new Error(
|
|
@@ -4804,13 +5792,13 @@ ${output2}`
|
|
|
4804
5792
|
}
|
|
4805
5793
|
const interfaceOutputs = /* @__PURE__ */ new Set();
|
|
4806
5794
|
for (const file of interfaceFiles) {
|
|
4807
|
-
const localization = file.split(
|
|
5795
|
+
const localization = file.split(path37.sep).findLast((part) => part.endsWith(".lproj")) ?? "";
|
|
4808
5796
|
const extension = file.endsWith(".storyboard") ? ".storyboardc" : ".nib";
|
|
4809
|
-
const output2 =
|
|
5797
|
+
const output2 = path37.join(
|
|
4810
5798
|
settings("DERIVED_FILE_DIR"),
|
|
4811
5799
|
"InterfaceBuilder",
|
|
4812
5800
|
localization,
|
|
4813
|
-
|
|
5801
|
+
path37.basename(file, path37.extname(file)) + extension
|
|
4814
5802
|
);
|
|
4815
5803
|
if (interfaceOutputs.has(output2))
|
|
4816
5804
|
throw new Error(`${targetName}: duplicate Interface Builder output ${output2}`);
|
|
@@ -4832,18 +5820,18 @@ ${output2}`
|
|
|
4832
5820
|
const inputs = JSON.stringify({
|
|
4833
5821
|
args,
|
|
4834
5822
|
developer: settings("DEVELOPER_DIR"),
|
|
4835
|
-
source:
|
|
5823
|
+
source: createHash22("sha256").update(fs18.readFileSync(file)).digest("hex")
|
|
4836
5824
|
});
|
|
4837
|
-
if (!
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
5825
|
+
if (!fs18.existsSync(output2) || !fs18.existsSync(stamp) || fs18.readFileSync(stamp, "utf8") !== inputs) {
|
|
5826
|
+
fs18.rmSync(output2, { recursive: true, force: true });
|
|
5827
|
+
fs18.rmSync(stamp, { force: true });
|
|
5828
|
+
fs18.mkdirSync(path37.dirname(output2), { recursive: true });
|
|
5829
|
+
execFileSync15("xcrun", args, {
|
|
4842
5830
|
cwd: project.projectDir,
|
|
4843
5831
|
stdio: ["ignore", "pipe", "pipe"],
|
|
4844
5832
|
timeout: runScriptTimeoutMs
|
|
4845
5833
|
});
|
|
4846
|
-
|
|
5834
|
+
fs18.writeFileSync(stamp, inputs);
|
|
4847
5835
|
}
|
|
4848
5836
|
projectInputs.add(file);
|
|
4849
5837
|
resources.delete(file);
|
|
@@ -4860,13 +5848,13 @@ ${output2}`
|
|
|
4860
5848
|
for (const definition of definitions) {
|
|
4861
5849
|
const configuredLanguage = settings("INTENTS_CODEGEN_LANGUAGE");
|
|
4862
5850
|
const language = !configuredLanguage || configuredLanguage === "Automatic" ? sources.size > 0 ? "Swift" : "Objective-C" : configuredLanguage;
|
|
4863
|
-
const output2 =
|
|
5851
|
+
const output2 = path37.join(
|
|
4864
5852
|
settings("DERIVED_FILE_DIR"),
|
|
4865
5853
|
"IntentDefinitionGenerated",
|
|
4866
|
-
|
|
5854
|
+
path37.basename(definition, ".intentdefinition")
|
|
4867
5855
|
);
|
|
4868
|
-
|
|
4869
|
-
|
|
5856
|
+
fs18.rmSync(output2, { recursive: true, force: true });
|
|
5857
|
+
fs18.mkdirSync(output2, { recursive: true });
|
|
4870
5858
|
const args = [
|
|
4871
5859
|
"intentbuilderc",
|
|
4872
5860
|
"generate",
|
|
@@ -4885,11 +5873,37 @@ ${output2}`
|
|
|
4885
5873
|
args.push("-swiftVersion", settings("SWIFT_VERSION") || "5.0");
|
|
4886
5874
|
if (settings("DEFINES_MODULE") === "YES")
|
|
4887
5875
|
args.push("-moduleName", settings("PRODUCT_MODULE_NAME"));
|
|
4888
|
-
|
|
5876
|
+
execFileSync15("xcrun", args, {
|
|
4889
5877
|
cwd: project.projectDir,
|
|
4890
5878
|
stdio: ["ignore", "pipe", "pipe"],
|
|
4891
5879
|
timeout: runScriptTimeoutMs
|
|
4892
5880
|
});
|
|
5881
|
+
const compiled = path37.join(
|
|
5882
|
+
settings("DERIVED_FILE_DIR"),
|
|
5883
|
+
"IntentDefinitionCompiled",
|
|
5884
|
+
definition.split(path37.sep).findLast((part) => part.endsWith(".lproj")) ?? ""
|
|
5885
|
+
);
|
|
5886
|
+
fs18.rmSync(compiled, { recursive: true, force: true });
|
|
5887
|
+
fs18.mkdirSync(compiled, { recursive: true });
|
|
5888
|
+
execFileSync15(
|
|
5889
|
+
"xcrun",
|
|
5890
|
+
[
|
|
5891
|
+
"intentbuilderc",
|
|
5892
|
+
"compile",
|
|
5893
|
+
"-input",
|
|
5894
|
+
definition,
|
|
5895
|
+
"-output",
|
|
5896
|
+
compiled,
|
|
5897
|
+
"-classPrefix",
|
|
5898
|
+
settings("PROJECT_CLASS_PREFIX")
|
|
5899
|
+
],
|
|
5900
|
+
{
|
|
5901
|
+
cwd: project.projectDir,
|
|
5902
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
5903
|
+
timeout: runScriptTimeoutMs
|
|
5904
|
+
}
|
|
5905
|
+
);
|
|
5906
|
+
resources.add(path37.join(compiled, path37.basename(definition)));
|
|
4893
5907
|
projectInputs.add(definition);
|
|
4894
5908
|
for (const file of walkFiles(output2)) {
|
|
4895
5909
|
allSources.add(file);
|
|
@@ -4911,37 +5925,37 @@ ${output2}`
|
|
|
4911
5925
|
function commonAncestor(dirs) {
|
|
4912
5926
|
let common = dirs[0];
|
|
4913
5927
|
for (const dir of dirs) {
|
|
4914
|
-
while (common !==
|
|
4915
|
-
common =
|
|
5928
|
+
while (common !== path37.dirname(common) && path37.relative(common, dir).startsWith(".."))
|
|
5929
|
+
common = path37.dirname(common);
|
|
4916
5930
|
}
|
|
4917
5931
|
return common;
|
|
4918
5932
|
}
|
|
4919
|
-
var isPodsProject = (xcodeproj) =>
|
|
5933
|
+
var isPodsProject = (xcodeproj) => path37.basename(xcodeproj) === "Pods.xcodeproj" && path37.basename(path37.dirname(xcodeproj)) === "Pods";
|
|
4920
5934
|
function installedPodsSandbox(pods) {
|
|
4921
|
-
const podfileLock =
|
|
4922
|
-
const manifestLock =
|
|
4923
|
-
if (!
|
|
5935
|
+
const podfileLock = path37.join(path37.dirname(pods), "Podfile.lock");
|
|
5936
|
+
const manifestLock = path37.join(pods, "Manifest.lock");
|
|
5937
|
+
if (!fs18.existsSync(podfileLock))
|
|
4924
5938
|
throw new Error(
|
|
4925
|
-
`${pods} has no ${podfileLock}: run \`pod install\` in ${
|
|
5939
|
+
`${pods} has no ${podfileLock}: run \`pod install\` in ${path37.dirname(pods)}`
|
|
4926
5940
|
);
|
|
4927
|
-
if (!
|
|
5941
|
+
if (!fs18.existsSync(manifestLock) || !fs18.readFileSync(manifestLock).equals(fs18.readFileSync(podfileLock)))
|
|
4928
5942
|
throw new Error(
|
|
4929
|
-
`The sandbox is not in sync with the Podfile.lock: ${manifestLock} differs from ${podfileLock}. Run \`pod install\` in ${
|
|
5943
|
+
`The sandbox is not in sync with the Podfile.lock: ${manifestLock} differs from ${podfileLock}. Run \`pod install\` in ${path37.dirname(pods)}`
|
|
4930
5944
|
);
|
|
4931
5945
|
const specChecksums = {};
|
|
4932
|
-
const lines =
|
|
5946
|
+
const lines = fs18.readFileSync(manifestLock, "utf8").split("\n");
|
|
4933
5947
|
const start = lines.indexOf("SPEC CHECKSUMS:");
|
|
4934
5948
|
for (const line of start === -1 ? [] : lines.slice(start + 1)) {
|
|
4935
5949
|
const entry = /^ {2}"?([^":]+)"?: ([0-9a-f]+)$/.exec(line);
|
|
4936
5950
|
if (!entry) break;
|
|
4937
5951
|
specChecksums[entry[1]] = entry[2];
|
|
4938
5952
|
}
|
|
4939
|
-
const specs =
|
|
5953
|
+
const specs = path37.join(pods, "Local Podspecs");
|
|
4940
5954
|
return {
|
|
4941
5955
|
podfileLock,
|
|
4942
5956
|
manifestLock,
|
|
4943
5957
|
specChecksums,
|
|
4944
|
-
localPodspecs: isDirectory(specs) ?
|
|
5958
|
+
localPodspecs: isDirectory(specs) ? fs18.readdirSync(specs).filter((name) => name.endsWith(".podspec.json")).sort().map((name) => path37.join(specs, name)) : []
|
|
4945
5959
|
};
|
|
4946
5960
|
}
|
|
4947
5961
|
function workspaceProjects(xcodeprojOrWorkspace, installedPods = false) {
|
|
@@ -4953,14 +5967,14 @@ function workspaceProjects(xcodeprojOrWorkspace, installedPods = false) {
|
|
|
4953
5967
|
if (!xcodeProjectFile(xcodeproj)) {
|
|
4954
5968
|
if (installedPods && isPodsProject(xcodeproj))
|
|
4955
5969
|
throw new Error(
|
|
4956
|
-
`${
|
|
5970
|
+
`${path37.basename(xcodeprojOrWorkspace)} builds ${xcodeproj}, which is not installed: run \`pod install\` in ${path37.dirname(path37.dirname(xcodeproj))}`
|
|
4957
5971
|
);
|
|
4958
5972
|
return;
|
|
4959
5973
|
}
|
|
4960
|
-
const key =
|
|
4961
|
-
if (projectAt.has(key) || !installedPods && key.split(
|
|
5974
|
+
const key = fs18.realpathSync.native(xcodeproj);
|
|
5975
|
+
if (projectAt.has(key) || !installedPods && key.split(path37.sep).includes("Pods"))
|
|
4962
5976
|
return;
|
|
4963
|
-
if (isPodsProject(key)) cocoapods = installedPodsSandbox(
|
|
5977
|
+
if (isPodsProject(key)) cocoapods = installedPodsSandbox(path37.dirname(key));
|
|
4964
5978
|
const project = loadProject(key);
|
|
4965
5979
|
projectAt.set(key, project);
|
|
4966
5980
|
projects.push(project);
|
|
@@ -4976,12 +5990,12 @@ function workspaceProjects(xcodeprojOrWorkspace, installedPods = false) {
|
|
|
4976
5990
|
for (const reference of listed)
|
|
4977
5991
|
if (reference.endsWith(".xcodeproj")) addProject(reference);
|
|
4978
5992
|
if (projects.length === 0) {
|
|
4979
|
-
throw new Error(`${
|
|
5993
|
+
throw new Error(`${path37.basename(xcodeprojOrWorkspace)} lists no Xcode project`);
|
|
4980
5994
|
}
|
|
4981
|
-
const podfile =
|
|
4982
|
-
if (installedPods && !cocoapods &&
|
|
5995
|
+
const podfile = path37.join(path37.dirname(xcodeprojOrWorkspace), "Podfile");
|
|
5996
|
+
if (installedPods && !cocoapods && fs18.existsSync(podfile))
|
|
4983
5997
|
throw new Error(
|
|
4984
|
-
`${podfile} is not installed into ${
|
|
5998
|
+
`${podfile} is not installed into ${path37.basename(xcodeprojOrWorkspace)}: run \`pod install\` in ${path37.dirname(podfile)} and open the workspace it writes`
|
|
4985
5999
|
);
|
|
4986
6000
|
return { listed, projects, projectAt, cocoapods };
|
|
4987
6001
|
}
|
|
@@ -5019,7 +6033,7 @@ function listXcodeAppTargets(xcodeprojOrWorkspace, options = {}) {
|
|
|
5019
6033
|
return workspaceProjects(xcodeprojOrWorkspace).projects.flatMap(projectTargets).filter((ref) => isIosAppTarget(ref, options)).map((ref) => str(ref.target.name) ?? ref.id);
|
|
5020
6034
|
}
|
|
5021
6035
|
function defaultXcodeAppTarget(xcodeproj) {
|
|
5022
|
-
const project = loadProject(
|
|
6036
|
+
const project = loadProject(fs18.realpathSync.native(xcodeproj));
|
|
5023
6037
|
for (const [id, target] of Object.entries(project.objects)) {
|
|
5024
6038
|
if (!isDict(target) || target.isa !== "PBXNativeTarget") continue;
|
|
5025
6039
|
if (isIosAppTarget({ project, id, target }, { requireSources: false }))
|
|
@@ -5027,30 +6041,30 @@ function defaultXcodeAppTarget(xcodeproj) {
|
|
|
5027
6041
|
}
|
|
5028
6042
|
}
|
|
5029
6043
|
function readXcodeScheme(xcodeprojOrWorkspace, scheme) {
|
|
5030
|
-
const container =
|
|
6044
|
+
const container = fs18.realpathSync.native(xcodeprojOrWorkspace);
|
|
5031
6045
|
const { projects } = workspaceProjects(container);
|
|
5032
6046
|
const containers = [
|
|
5033
6047
|
.../* @__PURE__ */ new Set([container, ...projects.map((project2) => project2.xcodeproj)])
|
|
5034
6048
|
];
|
|
5035
6049
|
const found = containers.flatMap(
|
|
5036
6050
|
(dir) => [
|
|
5037
|
-
|
|
5038
|
-
...isDirectory(
|
|
6051
|
+
path37.join(dir, "xcshareddata"),
|
|
6052
|
+
...isDirectory(path37.join(dir, "xcuserdata")) ? fs18.readdirSync(path37.join(dir, "xcuserdata")).sort().map((user) => path37.join(dir, "xcuserdata", user)) : []
|
|
5039
6053
|
].map((data) => ({
|
|
5040
6054
|
dir,
|
|
5041
|
-
file:
|
|
6055
|
+
file: path37.join(data, "xcschemes", `${scheme}.xcscheme`)
|
|
5042
6056
|
}))
|
|
5043
|
-
).find((candidate) =>
|
|
6057
|
+
).find((candidate) => fs18.existsSync(candidate.file));
|
|
5044
6058
|
if (!found) {
|
|
5045
6059
|
const known = containers.flatMap(
|
|
5046
|
-
(dir) =>
|
|
6060
|
+
(dir) => fs18.existsSync(path37.join(dir, "xcshareddata", "xcschemes")) ? fs18.readdirSync(path37.join(dir, "xcshareddata", "xcschemes")).filter((name2) => name2.endsWith(".xcscheme")).map((name2) => name2.slice(0, -".xcscheme".length)).sort() : []
|
|
5047
6061
|
);
|
|
5048
6062
|
throw new Error(
|
|
5049
|
-
`${
|
|
6063
|
+
`${path37.basename(container)} has no scheme ${scheme}; it shares ${known.join(", ") || "none"}`
|
|
5050
6064
|
);
|
|
5051
6065
|
}
|
|
5052
6066
|
const launch = /<LaunchAction\b([^>]*)>([\s\S]*?)<\/LaunchAction>/.exec(
|
|
5053
|
-
|
|
6067
|
+
fs18.readFileSync(found.file, "utf8")
|
|
5054
6068
|
);
|
|
5055
6069
|
const attribute = (text2, name2) => {
|
|
5056
6070
|
const value = new RegExp(`\\b${name2}\\s*=\\s*"([^"]*)"`).exec(text2)?.[1];
|
|
@@ -5063,12 +6077,12 @@ function readXcodeScheme(xcodeprojOrWorkspace, scheme) {
|
|
|
5063
6077
|
if (!configuration || !blueprint || !referenced?.startsWith("container:")) {
|
|
5064
6078
|
throw new Error(`scheme ${scheme} runs no application target`);
|
|
5065
6079
|
}
|
|
5066
|
-
const projectPath =
|
|
5067
|
-
|
|
6080
|
+
const projectPath = path37.resolve(
|
|
6081
|
+
path37.dirname(found.dir),
|
|
5068
6082
|
referenced.slice("container:".length)
|
|
5069
6083
|
);
|
|
5070
6084
|
const project = projects.find(
|
|
5071
|
-
(candidate) =>
|
|
6085
|
+
(candidate) => fs18.existsSync(projectPath) && candidate.xcodeproj === fs18.realpathSync.native(projectPath)
|
|
5072
6086
|
);
|
|
5073
6087
|
const target = project && projectTargets(project).find((ref) => ref.id === blueprint);
|
|
5074
6088
|
const name = target && str(target.target.name);
|
|
@@ -5088,26 +6102,26 @@ function readXcodeScheme(xcodeprojOrWorkspace, scheme) {
|
|
|
5088
6102
|
var NativeAppTargetSelectionError = class extends Error {
|
|
5089
6103
|
};
|
|
5090
6104
|
function selectIosAppTarget(projectRoot, iosTarget) {
|
|
5091
|
-
const nested =
|
|
5092
|
-
const iosRoot =
|
|
5093
|
-
const entries =
|
|
6105
|
+
const nested = path37.join(projectRoot, "ios");
|
|
6106
|
+
const iosRoot = fs18.existsSync(nested) ? nested : projectRoot;
|
|
6107
|
+
const entries = fs18.readdirSync(iosRoot, { withFileTypes: true });
|
|
5094
6108
|
const projects = (entries.some((entry) => entry.isDirectory() && entry.name.endsWith(".xcodeproj")) ? entries.filter((entry) => entry.isDirectory() && entry.name.endsWith(".xcodeproj")).map((entry) => ({
|
|
5095
|
-
xcodeproj:
|
|
6109
|
+
xcodeproj: path37.join(iosRoot, entry.name),
|
|
5096
6110
|
workspace: null
|
|
5097
6111
|
})) : entries.filter((entry) => entry.isDirectory() && entry.name.endsWith(".xcworkspace")).flatMap((entry) => {
|
|
5098
|
-
const workspace =
|
|
6112
|
+
const workspace = path37.join(iosRoot, entry.name);
|
|
5099
6113
|
return workspaceReferences(workspace).map((xcodeproj2) => ({
|
|
5100
6114
|
xcodeproj: xcodeproj2,
|
|
5101
6115
|
workspace
|
|
5102
6116
|
}));
|
|
5103
6117
|
}).filter(
|
|
5104
|
-
({ xcodeproj: xcodeproj2 }) => xcodeproj2.endsWith(".xcodeproj") && !xcodeproj2.split(
|
|
6118
|
+
({ xcodeproj: xcodeproj2 }) => xcodeproj2.endsWith(".xcodeproj") && !xcodeproj2.split(path37.sep).includes("Pods") && fs18.existsSync(xcodeproj2)
|
|
5105
6119
|
).filter(
|
|
5106
6120
|
({ xcodeproj: xcodeproj2 }) => listXcodeAppTargets(xcodeproj2, { requireSources: false }).length > 0
|
|
5107
6121
|
)).map(({ xcodeproj: xcodeproj2, workspace }) => ({
|
|
5108
6122
|
xcodeproj: xcodeproj2,
|
|
5109
6123
|
workspace,
|
|
5110
|
-
name:
|
|
6124
|
+
name: path37.basename(xcodeproj2)
|
|
5111
6125
|
}));
|
|
5112
6126
|
if (projects.length === 0) return null;
|
|
5113
6127
|
if (projects.length > 1 && !iosTarget) {
|
|
@@ -5146,13 +6160,13 @@ function selectIosAppTarget(projectRoot, iosTarget) {
|
|
|
5146
6160
|
if (!target) throw new Error("native app identity has no iOS application target");
|
|
5147
6161
|
if (!iosTarget) {
|
|
5148
6162
|
const workspace = xcodeproj.replace(/\.xcodeproj$/, ".xcworkspace");
|
|
5149
|
-
const container =
|
|
6163
|
+
const container = fs18.existsSync(workspace) ? workspace : xcodeproj;
|
|
5150
6164
|
const hasScheme = [container, xcodeproj].some((dir) => {
|
|
5151
|
-
if (
|
|
6165
|
+
if (fs18.existsSync(path37.join(dir, "xcshareddata", "xcschemes", `${target}.xcscheme`)))
|
|
5152
6166
|
return true;
|
|
5153
|
-
const users =
|
|
5154
|
-
return
|
|
5155
|
-
(user) =>
|
|
6167
|
+
const users = path37.join(dir, "xcuserdata");
|
|
6168
|
+
return fs18.existsSync(users) && fs18.readdirSync(users).some(
|
|
6169
|
+
(user) => fs18.existsSync(path37.join(users, user, "xcschemes", `${target}.xcscheme`))
|
|
5156
6170
|
);
|
|
5157
6171
|
});
|
|
5158
6172
|
if (hasScheme) target = readXcodeScheme(container, target).target;
|
|
@@ -5163,8 +6177,8 @@ function selectIosAppTarget(projectRoot, iosTarget) {
|
|
|
5163
6177
|
);
|
|
5164
6178
|
return { xcodeproj, target, workspace: project.workspace };
|
|
5165
6179
|
}
|
|
5166
|
-
var workspaceResolvedFile = (xcodeprojOrWorkspace) =>
|
|
5167
|
-
xcodeprojOrWorkspace.endsWith(".xcworkspace") ? xcodeprojOrWorkspace :
|
|
6180
|
+
var workspaceResolvedFile = (xcodeprojOrWorkspace) => path37.join(
|
|
6181
|
+
xcodeprojOrWorkspace.endsWith(".xcworkspace") ? xcodeprojOrWorkspace : path37.join(xcodeprojOrWorkspace, "project.xcworkspace"),
|
|
5168
6182
|
"xcshareddata",
|
|
5169
6183
|
"swiftpm",
|
|
5170
6184
|
"Package.resolved"
|
|
@@ -5179,7 +6193,9 @@ var SwiftPackageResolutionRequired = class extends Error {
|
|
|
5179
6193
|
}
|
|
5180
6194
|
};
|
|
5181
6195
|
function readXcodeAppTarget(input, targetName, configurationName, options = {}) {
|
|
5182
|
-
|
|
6196
|
+
if (isBazelPackage(input))
|
|
6197
|
+
return readBazelAppTarget(input, targetName, configurationName, options);
|
|
6198
|
+
const xcodeprojOrWorkspace = fs18.realpathSync.native(input);
|
|
5183
6199
|
const workspace = xcodeprojOrWorkspace.endsWith(".xcworkspace") ? xcodeprojOrWorkspace : null;
|
|
5184
6200
|
const { listed, projects, projectAt, cocoapods } = workspaceProjects(
|
|
5185
6201
|
xcodeprojOrWorkspace,
|
|
@@ -5190,7 +6206,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5190
6206
|
(ref) => isIosAppTarget(ref, options) || targetName !== void 0 && ref.target.name === targetName && ref.target.productType === APP_EXTENSION
|
|
5191
6207
|
);
|
|
5192
6208
|
const appTargetNames = appTargets.map((ref) => str(ref.target.name) ?? ref.id);
|
|
5193
|
-
const container =
|
|
6209
|
+
const container = path37.basename(xcodeprojOrWorkspace);
|
|
5194
6210
|
const named = targetName ? appTargets.filter((ref) => ref.target.name === targetName) : appTargets;
|
|
5195
6211
|
if (named.length !== 1) {
|
|
5196
6212
|
if (appTargets.length === 0)
|
|
@@ -5211,15 +6227,15 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5211
6227
|
for (const ref of allTargets) {
|
|
5212
6228
|
const product = ref.project.object(str(ref.target.productReference));
|
|
5213
6229
|
const file = str(product?.path);
|
|
5214
|
-
if (file && !byProduct.has(
|
|
5215
|
-
byProduct.set(
|
|
6230
|
+
if (file && !byProduct.has(path37.basename(file)))
|
|
6231
|
+
byProduct.set(path37.basename(file), ref);
|
|
5216
6232
|
}
|
|
5217
6233
|
const proxied = (project, proxyId) => {
|
|
5218
6234
|
const proxy = project.object(proxyId);
|
|
5219
6235
|
if (proxy?.isa !== "PBXContainerItemProxy") return void 0;
|
|
5220
6236
|
const portal = str(proxy.containerPortal);
|
|
5221
6237
|
const portalPath = project.resolvePath(portal ?? "");
|
|
5222
|
-
const owner = project.object(portal)?.isa === "PBXProject" ? project : portalPath &&
|
|
6238
|
+
const owner = project.object(portal)?.isa === "PBXProject" ? project : portalPath && fs18.existsSync(portalPath) ? projectAt.get(fs18.realpathSync.native(portalPath)) : void 0;
|
|
5223
6239
|
const remote = str(proxy.remoteGlobalIDString);
|
|
5224
6240
|
if (!owner || !remote) return void 0;
|
|
5225
6241
|
return projectTargets(owner).find(
|
|
@@ -5236,7 +6252,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5236
6252
|
const buildFile = project.object(buildFileId);
|
|
5237
6253
|
if (!buildFile || !xcodeBuildFileBuildsForIos(buildFile)) continue;
|
|
5238
6254
|
const file = project.object(str(buildFile.fileRef));
|
|
5239
|
-
const resolved = file?.isa === "PBXReferenceProxy" ? proxied(project, str(file.remoteRef)) : file && str(file.sourceTree) === "BUILT_PRODUCTS_DIR" ? byProduct.get(
|
|
6255
|
+
const resolved = file?.isa === "PBXReferenceProxy" ? proxied(project, str(file.remoteRef)) : file && str(file.sourceTree) === "BUILT_PRODUCTS_DIR" ? byProduct.get(path37.basename(str(file.path) ?? "")) : void 0;
|
|
5240
6256
|
if (resolved)
|
|
5241
6257
|
found.push({
|
|
5242
6258
|
target: resolved,
|
|
@@ -5317,7 +6333,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5317
6333
|
const otherProduct = productName(other);
|
|
5318
6334
|
for (const { file, visibility } of headerPhase(other)) {
|
|
5319
6335
|
if (visibility === "Project") continue;
|
|
5320
|
-
const key = `${otherProduct}/${
|
|
6336
|
+
const key = `${otherProduct}/${path37.basename(file)}`;
|
|
5321
6337
|
if (!headers.has(key)) headers.set(key, file);
|
|
5322
6338
|
}
|
|
5323
6339
|
}
|
|
@@ -5347,8 +6363,8 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5347
6363
|
ref.project.visitMembers(
|
|
5348
6364
|
ref.id,
|
|
5349
6365
|
ref.project.resolvePath,
|
|
5350
|
-
(file) => isDirectory(file) ? walkFiles(file) :
|
|
5351
|
-
|
|
6366
|
+
(file) => isDirectory(file) ? walkFiles(file) : fs18.existsSync(file) ? [file] : [],
|
|
6367
|
+
path37.join,
|
|
5352
6368
|
(file, kind) => {
|
|
5353
6369
|
if (kind === "header") found.push(file);
|
|
5354
6370
|
}
|
|
@@ -5364,12 +6380,12 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5364
6380
|
for (const ref of projectTargets(project)) {
|
|
5365
6381
|
const product = productName(ref);
|
|
5366
6382
|
for (const { file, visibility } of headerPhase(ref)) {
|
|
5367
|
-
const name =
|
|
6383
|
+
const name = path37.basename(file);
|
|
5368
6384
|
if (!entries.has(name))
|
|
5369
6385
|
entries.set(name, visibility !== "Project" ? `${product}/${name}` : file);
|
|
5370
6386
|
}
|
|
5371
6387
|
for (const file of synchronizedHeaders(ref)) {
|
|
5372
|
-
const name =
|
|
6388
|
+
const name = path37.basename(file);
|
|
5373
6389
|
if (!entries.has(name)) entries.set(name, file);
|
|
5374
6390
|
}
|
|
5375
6391
|
}
|
|
@@ -5379,7 +6395,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5379
6395
|
if (folder === null) continue;
|
|
5380
6396
|
for (const file of walkFiles(folder)) {
|
|
5381
6397
|
if (!HEADER_FILE.test(file)) continue;
|
|
5382
|
-
const name =
|
|
6398
|
+
const name = path37.basename(file);
|
|
5383
6399
|
if (!entries.has(name)) entries.set(name, file);
|
|
5384
6400
|
}
|
|
5385
6401
|
}
|
|
@@ -5387,18 +6403,18 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5387
6403
|
for (const id of Object.keys(project.objects)) {
|
|
5388
6404
|
if (project.object(id)?.isa !== "PBXFileReference") continue;
|
|
5389
6405
|
const file = project.resolvePath(id);
|
|
5390
|
-
if (file && HEADER_FILE.test(file) && !entries.has(
|
|
5391
|
-
entries.set(
|
|
6406
|
+
if (file && HEADER_FILE.test(file) && !entries.has(path37.basename(file)))
|
|
6407
|
+
entries.set(path37.basename(file), file);
|
|
5392
6408
|
}
|
|
5393
6409
|
const map = [...entries];
|
|
5394
6410
|
projectHeaderMaps.set(project, map);
|
|
5395
6411
|
return map;
|
|
5396
6412
|
};
|
|
5397
6413
|
const xcconfigs = /* @__PURE__ */ new Set();
|
|
5398
|
-
const buildDir = (project) =>
|
|
6414
|
+
const buildDir = (project) => path37.join(project.projectDir, ".build/peach-xcode/Build");
|
|
5399
6415
|
const workspaceBuild = {
|
|
5400
|
-
SYMROOT:
|
|
5401
|
-
OBJROOT:
|
|
6416
|
+
SYMROOT: path37.join(buildDir(app.project), "Products"),
|
|
6417
|
+
OBJROOT: path37.join(buildDir(app.project), "Intermediates.noindex")
|
|
5402
6418
|
};
|
|
5403
6419
|
const moduleTarget = (ref) => {
|
|
5404
6420
|
const name = str(ref.target.name) ?? ref.id;
|
|
@@ -5413,20 +6429,23 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5413
6429
|
TARGET_NAME: name,
|
|
5414
6430
|
TARGETNAME: "$(TARGET_NAME)",
|
|
5415
6431
|
PROJECT: "$(PROJECT_NAME)",
|
|
5416
|
-
PROJECT_NAME:
|
|
6432
|
+
PROJECT_NAME: path37.basename(ref.project.xcodeproj, ".xcodeproj"),
|
|
5417
6433
|
PROJECT_CLASS_PREFIX: isDict(ref.project.project.attributes) ? str(ref.project.project.attributes.CLASSPREFIX) ?? "" : "",
|
|
5418
6434
|
PROJECT_FILE_PATH: ref.project.xcodeproj,
|
|
5419
6435
|
SRCROOT: ref.project.projectDir,
|
|
5420
6436
|
SOURCE_ROOT: ref.project.projectDir,
|
|
5421
6437
|
PROJECT_DIR: ref.project.projectDir,
|
|
5422
|
-
SYMROOT:
|
|
6438
|
+
SYMROOT: path37.join(buildDir(ref.project), "Products"),
|
|
5423
6439
|
BUILD_DIR: "$(SYMROOT)",
|
|
5424
6440
|
BUILD_ROOT: "$(SYMROOT)",
|
|
5425
|
-
OBJROOT:
|
|
6441
|
+
OBJROOT: path37.join(buildDir(ref.project), "Intermediates.noindex"),
|
|
5426
6442
|
CONFIGURATION_BUILD_DIR: "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)",
|
|
5427
6443
|
BUILT_PRODUCTS_DIR: "$(CONFIGURATION_BUILD_DIR)",
|
|
5428
6444
|
TARGET_BUILD_DIR: "$(CONFIGURATION_BUILD_DIR)",
|
|
5429
|
-
|
|
6445
|
+
DWARF_DSYM_FOLDER_PATH: "$(CONFIGURATION_BUILD_DIR)",
|
|
6446
|
+
DWARF_DSYM_FILE_NAME: "$(FULL_PRODUCT_NAME).dSYM",
|
|
6447
|
+
FULL_PRODUCT_NAME: str(ref.project.object(str(ref.target.productReference))?.path) ?? "",
|
|
6448
|
+
UNLOCALIZED_RESOURCES_FOLDER_PATH: "$(FULL_PRODUCT_NAME)",
|
|
5430
6449
|
CONTENTS_FOLDER_PATH: "$(UNLOCALIZED_RESOURCES_FOLDER_PATH)",
|
|
5431
6450
|
FRAMEWORKS_FOLDER_PATH: "$(CONTENTS_FOLDER_PATH)/Frameworks",
|
|
5432
6451
|
PROJECT_TEMP_DIR: "$(OBJROOT)/$(PROJECT_NAME).build",
|
|
@@ -5464,7 +6483,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5464
6483
|
xcconfigs
|
|
5465
6484
|
);
|
|
5466
6485
|
const searchRules = recursiveSearchRules(settings2);
|
|
5467
|
-
const absolute = (file) =>
|
|
6486
|
+
const absolute = (file) => path37.resolve(ref.project.projectDir, file);
|
|
5468
6487
|
const framework = FRAMEWORK_PRODUCTS.has(str(ref.target.productType) ?? "");
|
|
5469
6488
|
const product = settings2("PRODUCT_NAME");
|
|
5470
6489
|
const moduleName = applyOperator(settings2("PRODUCT_MODULE_NAME"), "c99extidentifier");
|
|
@@ -5495,7 +6514,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5495
6514
|
`${name}: Swift compatibility header phase has no Swift producer sources`
|
|
5496
6515
|
);
|
|
5497
6516
|
const building = options.prepareGeneratedSources && options.requireSources !== false;
|
|
5498
|
-
const versioning = building && allSources.length > 0 && settings2("VERSIONING_SYSTEM") === "apple-generic" ?
|
|
6517
|
+
const versioning = building && allSources.length > 0 && settings2("VERSIONING_SYSTEM") === "apple-generic" ? path37.join(settings2("DERIVED_FILE_DIR"), `${product}_vers.c`) : null;
|
|
5499
6518
|
if (versioning) {
|
|
5500
6519
|
const version = settings2("CURRENT_PROJECT_VERSION");
|
|
5501
6520
|
const custom = [
|
|
@@ -5508,7 +6527,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5508
6527
|
].filter((key) => settings2(key));
|
|
5509
6528
|
if (custom.length)
|
|
5510
6529
|
throw new Error(
|
|
5511
|
-
`${name}: Xcode generates ${
|
|
6530
|
+
`${name}: Xcode generates ${path37.basename(versioning)} with ${custom.join(", ")}; peach does not model VERSION_INFO_* overrides`
|
|
5512
6531
|
);
|
|
5513
6532
|
const symbol = product.replace(/^[^A-Za-z_]/, "_").replace(/[^A-Za-z0-9_]/g, "_");
|
|
5514
6533
|
const [major, minor] = version.split(".");
|
|
@@ -5521,9 +6540,9 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5521
6540
|
` const double ${symbol}VersionNumber __attribute__ ((used)) = (double)${number2};`,
|
|
5522
6541
|
""
|
|
5523
6542
|
].join("\n");
|
|
5524
|
-
if (!
|
|
5525
|
-
|
|
5526
|
-
|
|
6543
|
+
if (!fs18.existsSync(versioning) || fs18.readFileSync(versioning, "utf8") !== unit) {
|
|
6544
|
+
fs18.mkdirSync(path37.dirname(versioning), { recursive: true });
|
|
6545
|
+
fs18.writeFileSync(versioning, unit);
|
|
5527
6546
|
}
|
|
5528
6547
|
allSources.push(versioning);
|
|
5529
6548
|
}
|
|
@@ -5542,7 +6561,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5542
6561
|
const headerFiles = headerPhase(ref);
|
|
5543
6562
|
const ownHeaders = /* @__PURE__ */ new Map();
|
|
5544
6563
|
for (const { file, visibility } of headerFiles) {
|
|
5545
|
-
const name2 =
|
|
6564
|
+
const name2 = path37.basename(file);
|
|
5546
6565
|
const published = visibility !== "Project";
|
|
5547
6566
|
if (!ownHeaders.has(name2))
|
|
5548
6567
|
ownHeaders.set(name2, published ? `${product}/${name2}` : file);
|
|
@@ -5550,27 +6569,27 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5550
6569
|
ownHeaders.set(`${product}/${name2}`, file);
|
|
5551
6570
|
}
|
|
5552
6571
|
for (const file of synchronizedHeaders(ref)) {
|
|
5553
|
-
const name2 =
|
|
6572
|
+
const name2 = path37.basename(file);
|
|
5554
6573
|
if (ownHeaders.has(name2)) continue;
|
|
5555
6574
|
ownHeaders.set(name2, file);
|
|
5556
6575
|
const qualified = `${product}/${name2}`;
|
|
5557
6576
|
if (!ownHeaders.has(qualified)) ownHeaders.set(qualified, file);
|
|
5558
6577
|
}
|
|
5559
6578
|
const nonFrameworkHeaders = nonFrameworkHeadersOf(ref.project);
|
|
5560
|
-
const wrapper =
|
|
6579
|
+
const wrapper = path37.join(settings2("BUILT_PRODUCTS_DIR"), `${product}.framework`);
|
|
5561
6580
|
const moduleMap = (settings2("DEFINES_MODULE") === "YES" || !framework) && settings2("MODULEMAP_FILE") ? absolute(settings2("MODULEMAP_FILE")) : null;
|
|
5562
|
-
const frameworkUmbrella = !compatibility && framework && members.sources.length > 0 && moduleMap ?
|
|
5563
|
-
const frameworkCompatibility = frameworkUmbrella && moduleMap &&
|
|
6581
|
+
const frameworkUmbrella = !compatibility && framework && members.sources.length > 0 && moduleMap ? path37.join(path37.dirname(moduleMap), `${moduleName}-umbrella.h`) : null;
|
|
6582
|
+
const frameworkCompatibility = frameworkUmbrella && moduleMap && fs18.existsSync(moduleMap) && fs18.existsSync(frameworkUmbrella) ? {
|
|
5564
6583
|
framework: true,
|
|
5565
6584
|
moduleMap,
|
|
5566
6585
|
umbrella: frameworkUmbrella,
|
|
5567
|
-
outputModuleMap:
|
|
5568
|
-
outputUmbrella:
|
|
6586
|
+
outputModuleMap: path37.join(wrapper, "Modules", "module.modulemap"),
|
|
6587
|
+
outputUmbrella: path37.join(
|
|
5569
6588
|
wrapper,
|
|
5570
6589
|
"Headers",
|
|
5571
|
-
|
|
6590
|
+
path37.basename(frameworkUmbrella)
|
|
5572
6591
|
),
|
|
5573
|
-
outputHeader:
|
|
6592
|
+
outputHeader: path37.join(
|
|
5574
6593
|
wrapper,
|
|
5575
6594
|
"Headers",
|
|
5576
6595
|
settings2("SWIFT_OBJC_INTERFACE_HEADER_NAME") || `${moduleName}-Swift.h`
|
|
@@ -5584,10 +6603,10 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5584
6603
|
outputUmbrella: compatibility.outputUmbrella,
|
|
5585
6604
|
outputHeader: compatibility.outputHeader
|
|
5586
6605
|
} : frameworkCompatibility;
|
|
5587
|
-
const podHeaders = !framework && isPodsProject(ref.project.xcodeproj) && moduleMap &&
|
|
6606
|
+
const podHeaders = !framework && isPodsProject(ref.project.xcodeproj) && moduleMap && path37.relative(path37.join(ref.project.projectDir, "Headers", "Public"), moduleMap).split(path37.sep)[0] !== ".." && fs18.existsSync(moduleMap) ? fs18.readdirSync(path37.dirname(moduleMap)).flatMap((entry) => {
|
|
5588
6607
|
if (!/\.(h|hh|hpp|hxx|modulemap)$/.test(entry)) return [];
|
|
5589
|
-
const file =
|
|
5590
|
-
return
|
|
6608
|
+
const file = path37.join(path37.dirname(moduleMap), entry);
|
|
6609
|
+
return fs18.existsSync(file) ? [file] : [];
|
|
5591
6610
|
}) : [];
|
|
5592
6611
|
const fileFlags = {};
|
|
5593
6612
|
for (const phaseId of list(ref.target.buildPhases)) {
|
|
@@ -5607,6 +6626,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5607
6626
|
}
|
|
5608
6627
|
const cStandard = settings2("GCC_C_LANGUAGE_STANDARD");
|
|
5609
6628
|
const cxxStandard = settings2("CLANG_CXX_LANGUAGE_STANDARD");
|
|
6629
|
+
const packageName = settings2("SWIFT_PACKAGE_NAME");
|
|
5610
6630
|
return {
|
|
5611
6631
|
settings: settings2,
|
|
5612
6632
|
keys,
|
|
@@ -5638,6 +6658,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5638
6658
|
...settingList(settings2("SWIFT_OPTIMIZATION_LEVEL")),
|
|
5639
6659
|
// xcode's Swift.xcspec defaults bare slash regex literals on before Swift 6
|
|
5640
6660
|
...swiftVersion < 6 && settings2("SWIFT_ENABLE_BARE_SLASH_REGEX") !== "NO" ? ["-enable-bare-slash-regex"] : [],
|
|
6661
|
+
...packageName ? ["-package-name", packageName] : [],
|
|
5641
6662
|
...settingList(settings2("OTHER_SWIFT_FLAGS"))
|
|
5642
6663
|
],
|
|
5643
6664
|
includePaths: settingList(settings2("SWIFT_INCLUDE_PATHS")).map(absolute),
|
|
@@ -5648,6 +6669,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5648
6669
|
} : {},
|
|
5649
6670
|
...native ? {
|
|
5650
6671
|
objc: {
|
|
6672
|
+
flattensPublicHeaders: true,
|
|
5651
6673
|
publicHeaders: [
|
|
5652
6674
|
...headerFiles.flatMap(
|
|
5653
6675
|
({ file, visibility }) => visibility === "Public" ? [file] : []
|
|
@@ -5662,15 +6684,15 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5662
6684
|
// xcode searches its products' include directory before
|
|
5663
6685
|
// HEADER_SEARCH_PATHS and the target's derived sources after.
|
|
5664
6686
|
headerSearchPaths: [
|
|
5665
|
-
|
|
6687
|
+
path37.join(settings2("BUILT_PRODUCTS_DIR"), "include"),
|
|
5666
6688
|
...settingList(settings2("HEADER_SEARCH_PATHS")).flatMap(
|
|
5667
6689
|
(raw) => expandSearchPath(absolute(raw), searchRules)
|
|
5668
6690
|
),
|
|
5669
|
-
|
|
6691
|
+
path37.join(
|
|
5670
6692
|
`${settings2("DERIVED_FILE_DIR")}-normal`,
|
|
5671
6693
|
settings2("CURRENT_ARCH")
|
|
5672
6694
|
),
|
|
5673
|
-
|
|
6695
|
+
path37.join(settings2("DERIVED_FILE_DIR"), settings2("CURRENT_ARCH")),
|
|
5674
6696
|
settings2("DERIVED_FILE_DIR")
|
|
5675
6697
|
],
|
|
5676
6698
|
userHeaderSearchPaths: settingList(
|
|
@@ -5720,10 +6742,10 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5720
6742
|
...headerFiles.flatMap(
|
|
5721
6743
|
({ file, visibility }) => visibility === "Project" ? [] : [
|
|
5722
6744
|
[
|
|
5723
|
-
|
|
6745
|
+
path37.join(
|
|
5724
6746
|
wrapper,
|
|
5725
6747
|
visibility === "Public" ? "Headers" : "PrivateHeaders",
|
|
5726
|
-
|
|
6748
|
+
path37.basename(file)
|
|
5727
6749
|
),
|
|
5728
6750
|
file
|
|
5729
6751
|
]
|
|
@@ -5737,7 +6759,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5737
6759
|
return [];
|
|
5738
6760
|
const destination = expand(
|
|
5739
6761
|
str(phase.dstPath) ?? "",
|
|
5740
|
-
(name2) => name2 === "PUBLIC_HEADERS_FOLDER_PATH" ?
|
|
6762
|
+
(name2) => name2 === "PUBLIC_HEADERS_FOLDER_PATH" ? path37.join(wrapper, "Headers") : name2 === "PRIVATE_HEADERS_FOLDER_PATH" ? path37.join(wrapper, "PrivateHeaders") : settings2(name2)
|
|
5741
6763
|
);
|
|
5742
6764
|
return list(phase.files).flatMap((id) => {
|
|
5743
6765
|
const file = ref.project.resolvePath(
|
|
@@ -5745,17 +6767,17 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5745
6767
|
);
|
|
5746
6768
|
return file && HEADER_FILE.test(file) ? [
|
|
5747
6769
|
[
|
|
5748
|
-
|
|
6770
|
+
path37.resolve(
|
|
5749
6771
|
settings2("BUILT_PRODUCTS_DIR"),
|
|
5750
6772
|
destination,
|
|
5751
|
-
|
|
6773
|
+
path37.basename(file)
|
|
5752
6774
|
),
|
|
5753
6775
|
file
|
|
5754
6776
|
]
|
|
5755
6777
|
] : [];
|
|
5756
6778
|
});
|
|
5757
6779
|
}),
|
|
5758
|
-
...moduleMap ? [[
|
|
6780
|
+
...moduleMap ? [[path37.join(wrapper, "Modules", "module.modulemap"), moduleMap]] : []
|
|
5759
6781
|
]) : Object.fromEntries([
|
|
5760
6782
|
...podHeaders.map((file) => [file, file]),
|
|
5761
6783
|
...moduleMap ? [[moduleMap, moduleMap]] : []
|
|
@@ -5766,8 +6788,13 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5766
6788
|
};
|
|
5767
6789
|
};
|
|
5768
6790
|
const builtTargets = order.map((ref) => ({ ref, ...moduleTarget(ref) }));
|
|
5769
|
-
for (const { ref, module: module2 } of builtTargets)
|
|
5770
|
-
module2.targetDependencies =
|
|
6791
|
+
for (const { ref, module: module2, settings: settings2 } of builtTargets)
|
|
6792
|
+
module2.targetDependencies = [
|
|
6793
|
+
.../* @__PURE__ */ new Set([
|
|
6794
|
+
...dependenciesOf(ref),
|
|
6795
|
+
...frameworkFlagLinks(ref, settings2("OTHER_LDFLAGS")).map((link) => link.target)
|
|
6796
|
+
])
|
|
6797
|
+
].flatMap((dependency) => {
|
|
5771
6798
|
const target = builtTargets.find((candidate) => candidate.ref === dependency);
|
|
5772
6799
|
return target ? [target.module.targetIdentity] : [];
|
|
5773
6800
|
});
|
|
@@ -5787,7 +6814,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5787
6814
|
const frameworkTargets = selectedTargets.filter((target) => target !== builtTargets.at(-1)).filter(({ ref }) => MODULE_PRODUCTS.has(str(ref.target.productType) ?? "")).map(({ ref, module: module2 }) => ({ ref, framework: module2 }));
|
|
5788
6815
|
const frameworks = frameworkTargets.map(({ framework }) => framework);
|
|
5789
6816
|
const podSourceDirs = builtTargets.slice(0, -1).flatMap(
|
|
5790
|
-
({ ref, module: module2 }) => isPodsProject(ref.project.xcodeproj) ? [...module2.allSources, ...module2.objc?.headers ?? []].map((file) =>
|
|
6817
|
+
({ ref, module: module2 }) => isPodsProject(ref.project.xcodeproj) ? [...module2.allSources, ...module2.objc?.headers ?? []].map((file) => path37.dirname(file)).filter((dir) => fs18.existsSync(dir)) : []
|
|
5791
6818
|
);
|
|
5792
6819
|
const expandValue = (value, settings2) => {
|
|
5793
6820
|
if (typeof value === "string") return expand(value, settings2);
|
|
@@ -5808,7 +6835,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5808
6835
|
const phase = owner.ref.project.object(phaseId);
|
|
5809
6836
|
if (phase?.isa !== "PBXShellScriptBuildPhase" || str(phase.name) !== "[CP] Copy Pods Resources")
|
|
5810
6837
|
continue;
|
|
5811
|
-
const absolute = (raw) =>
|
|
6838
|
+
const absolute = (raw) => path37.resolve(owner.ref.project.projectDir, expand(raw, owner.settings));
|
|
5812
6839
|
const entries = (paths) => paths.flatMap((raw) => {
|
|
5813
6840
|
const file = absolute(raw);
|
|
5814
6841
|
xcconfigs.add(file);
|
|
@@ -5824,7 +6851,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5824
6851
|
].filter((file) => file.endsWith(".bundle"));
|
|
5825
6852
|
if (inputs.length !== outputs.length)
|
|
5826
6853
|
throw new Error(`${owner.module.name}: resource bundle copy lists differ`);
|
|
5827
|
-
const destinationRoot =
|
|
6854
|
+
const destinationRoot = path37.join(
|
|
5828
6855
|
owner.settings("TARGET_BUILD_DIR"),
|
|
5829
6856
|
owner.settings("UNLOCALIZED_RESOURCES_FOLDER_PATH")
|
|
5830
6857
|
);
|
|
@@ -5833,24 +6860,24 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5833
6860
|
const file = str(
|
|
5834
6861
|
target.ref.project.object(str(target.ref.target.productReference))?.path
|
|
5835
6862
|
);
|
|
5836
|
-
return file &&
|
|
6863
|
+
return file && path37.join(target.settings("TARGET_BUILD_DIR"), file) === input2;
|
|
5837
6864
|
});
|
|
5838
6865
|
if (!product && !isDirectory(input2))
|
|
5839
6866
|
throw new Error(
|
|
5840
6867
|
`${owner.module.name}: resource bundle input has no selected producer: ${input2}`
|
|
5841
6868
|
);
|
|
5842
|
-
const destination =
|
|
5843
|
-
if (destination === ".." || destination.startsWith(`..${
|
|
6869
|
+
const destination = path37.relative(destinationRoot, outputs[index]);
|
|
6870
|
+
if (destination === ".." || destination.startsWith(`..${path37.sep}`) || path37.isAbsolute(destination) || path37.basename(input2) !== path37.basename(destination))
|
|
5844
6871
|
throw new Error(
|
|
5845
6872
|
`${owner.module.name}: invalid resource bundle copy destination`
|
|
5846
6873
|
);
|
|
5847
|
-
const infoFile = product ?
|
|
6874
|
+
const infoFile = product ? path37.resolve(
|
|
5848
6875
|
product.ref.project.projectDir,
|
|
5849
6876
|
product.settings("INFOPLIST_FILE")
|
|
5850
6877
|
) : null;
|
|
5851
6878
|
if (infoFile) xcconfigs.add(infoFile);
|
|
5852
6879
|
const prefix = owner.ref === app ? "" : `Frameworks/${owner.module.moduleName}.framework/`;
|
|
5853
|
-
const bundlePath = prefix + destination.split(
|
|
6880
|
+
const bundlePath = prefix + destination.split(path37.sep).join("/");
|
|
5854
6881
|
if (resourceProducts.some((resource) => resource.path === bundlePath))
|
|
5855
6882
|
throw new Error(
|
|
5856
6883
|
`${owner.module.name}: duplicate resource bundle destination ${bundlePath}`
|
|
@@ -5859,24 +6886,24 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5859
6886
|
path: bundlePath,
|
|
5860
6887
|
...product ? {
|
|
5861
6888
|
resources: product.module.resources,
|
|
5862
|
-
infoPlist:
|
|
6889
|
+
infoPlist: plist3.build(
|
|
5863
6890
|
expandValue(
|
|
5864
|
-
|
|
6891
|
+
plist3.parse(fs18.readFileSync(infoFile, "utf8")),
|
|
5865
6892
|
product.settings
|
|
5866
6893
|
)
|
|
5867
6894
|
)
|
|
5868
6895
|
} : {
|
|
5869
|
-
resources:
|
|
6896
|
+
resources: fs18.readdirSync(input2, { recursive: true, withFileTypes: true }).filter((entry) => entry.isFile()).map((entry) => path37.join(entry.parentPath, entry.name)).sort(),
|
|
5870
6897
|
sourceRoot: input2
|
|
5871
6898
|
}
|
|
5872
6899
|
});
|
|
5873
6900
|
}
|
|
5874
6901
|
}
|
|
5875
6902
|
}
|
|
5876
|
-
const infoPlistFile = settings("INFOPLIST_FILE") ?
|
|
5877
|
-
const entitlementsFile = settings("CODE_SIGN_ENTITLEMENTS") ?
|
|
6903
|
+
const infoPlistFile = settings("INFOPLIST_FILE") ? path37.resolve(app.project.projectDir, settings("INFOPLIST_FILE")) : null;
|
|
6904
|
+
const entitlementsFile = settings("CODE_SIGN_ENTITLEMENTS") ? path37.resolve(app.project.projectDir, settings("CODE_SIGN_ENTITLEMENTS")) : null;
|
|
5878
6905
|
const infoPlistPending = module.generatedInfoPlist && !options.prepareGeneratedSources;
|
|
5879
|
-
const sourceInfo = infoPlistFile && !infoPlistPending ?
|
|
6906
|
+
const sourceInfo = infoPlistFile && !infoPlistPending ? plist3.parse(fs18.readFileSync(infoPlistFile, "utf8")) : {};
|
|
5880
6907
|
if (!sourceInfo || typeof sourceInfo !== "object" || Array.isArray(sourceInfo) || sourceInfo instanceof Date || Buffer.isBuffer(sourceInfo)) {
|
|
5881
6908
|
throw new Error(`${module.name} Info.plist must contain a dictionary`);
|
|
5882
6909
|
}
|
|
@@ -5901,7 +6928,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5901
6928
|
}
|
|
5902
6929
|
const bundleIdentifier = settings("PRODUCT_BUNDLE_IDENTIFIER") || (typeof info.CFBundleIdentifier === "string" ? info.CFBundleIdentifier : "");
|
|
5903
6930
|
const keychainAccessGroups = entitlementsFile ? readKeychainAccessGroups(
|
|
5904
|
-
|
|
6931
|
+
plist3.parse(fs18.readFileSync(entitlementsFile, "utf8")),
|
|
5905
6932
|
(value) => expand(value, (key) => {
|
|
5906
6933
|
if (key === "AppIdentifierPrefix") return "FAKETEAMID.";
|
|
5907
6934
|
if (key === "TeamIdentifierPrefix") return "";
|
|
@@ -5939,7 +6966,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5939
6966
|
};
|
|
5940
6967
|
}
|
|
5941
6968
|
const localPackageDirs = [
|
|
5942
|
-
...listed.filter((reference) =>
|
|
6969
|
+
...listed.filter((reference) => fs18.existsSync(path37.join(reference, "Package.swift"))),
|
|
5943
6970
|
...projects.flatMap(
|
|
5944
6971
|
(project) => Object.entries(project.objects).flatMap(([id, entry]) => {
|
|
5945
6972
|
if (!isDict(entry)) return [];
|
|
@@ -5949,19 +6976,19 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5949
6976
|
const packages = [];
|
|
5950
6977
|
while (pending.length > 0) {
|
|
5951
6978
|
const dir = pending.pop();
|
|
5952
|
-
if (
|
|
6979
|
+
if (fs18.existsSync(path37.join(dir, "Package.swift"))) {
|
|
5953
6980
|
packages.push(dir);
|
|
5954
6981
|
continue;
|
|
5955
6982
|
}
|
|
5956
6983
|
if (!isDirectory(dir)) continue;
|
|
5957
|
-
for (const child of
|
|
6984
|
+
for (const child of fs18.readdirSync(dir, { withFileTypes: true }))
|
|
5958
6985
|
if (child.isDirectory() && !child.name.startsWith("."))
|
|
5959
|
-
pending.push(
|
|
6986
|
+
pending.push(path37.join(dir, child.name));
|
|
5960
6987
|
}
|
|
5961
6988
|
return packages;
|
|
5962
6989
|
}
|
|
5963
|
-
const candidate = entry.isa === "XCLocalSwiftPackageReference" ?
|
|
5964
|
-
return candidate &&
|
|
6990
|
+
const candidate = entry.isa === "XCLocalSwiftPackageReference" ? path37.resolve(project.projectDir, str(entry.relativePath) ?? "") : entry.isa === "PBXFileReference" ? project.resolvePath(id) : null;
|
|
6991
|
+
return candidate && fs18.existsSync(path37.join(candidate, "Package.swift")) ? [candidate] : [];
|
|
5965
6992
|
})
|
|
5966
6993
|
)
|
|
5967
6994
|
];
|
|
@@ -5991,7 +7018,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5991
7018
|
if ((flag === "-framework" || flag === "-weak_framework") && name)
|
|
5992
7019
|
sdkFrameworks.add(name);
|
|
5993
7020
|
});
|
|
5994
|
-
const absolute = (raw) =>
|
|
7021
|
+
const absolute = (raw) => path37.resolve(ref.project.projectDir, expand(raw, settings2));
|
|
5995
7022
|
const requested = options.nativeModules;
|
|
5996
7023
|
const includeBinary = (name, dir) => {
|
|
5997
7024
|
if (!requested || nativeTargets.has(ref) || requested.includes(name) || dir.endsWith(".xcframework") && localSwiftBinaryModules(dir).some((module2) => requested.includes(module2)))
|
|
@@ -6003,14 +7030,14 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
6003
7030
|
for (const directory of expandSearchPath(absolute(raw), searchRules)) {
|
|
6004
7031
|
if (frameworkSearchDirectories.has(directory)) continue;
|
|
6005
7032
|
frameworkSearchDirectories.add(directory);
|
|
6006
|
-
if (!
|
|
7033
|
+
if (!fs18.statSync(directory, { throwIfNoEntry: false })?.isDirectory() || /\.sdk\/(?:System|Developer)\/Library\/Frameworks\/?$/.test(directory))
|
|
6007
7034
|
continue;
|
|
6008
|
-
for (const entry of
|
|
7035
|
+
for (const entry of fs18.readdirSync(directory, { withFileTypes: true })) {
|
|
6009
7036
|
const name = /^(.+)\.framework$/.exec(entry.name)?.[1];
|
|
6010
7037
|
if (!name || byProduct.has(entry.name) || searchedFrameworks.has(name))
|
|
6011
7038
|
continue;
|
|
6012
|
-
const file =
|
|
6013
|
-
if (
|
|
7039
|
+
const file = path37.join(directory, entry.name);
|
|
7040
|
+
if (fs18.statSync(file, { throwIfNoEntry: false })?.isDirectory())
|
|
6014
7041
|
searchedFrameworks.set(name, file);
|
|
6015
7042
|
}
|
|
6016
7043
|
}
|
|
@@ -6018,9 +7045,9 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
6018
7045
|
}
|
|
6019
7046
|
for (const raw of settingList(settings2("SWIFT_INCLUDE_PATHS"))) {
|
|
6020
7047
|
const dir = absolute(raw);
|
|
6021
|
-
const modulemap =
|
|
6022
|
-
if (!
|
|
6023
|
-
const name = moduleMapName(
|
|
7048
|
+
const modulemap = path37.join(dir, "module.modulemap");
|
|
7049
|
+
if (!fs18.existsSync(modulemap)) continue;
|
|
7050
|
+
const name = moduleMapName(fs18.readFileSync(modulemap, "utf8"));
|
|
6024
7051
|
if (name && !binaryFrameworks.has(name)) includeBinary(name, dir);
|
|
6025
7052
|
}
|
|
6026
7053
|
for (const phaseId of list(ref.target.buildPhases)) {
|
|
@@ -6029,7 +7056,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
6029
7056
|
const inputs = list(phase.inputPaths).map(absolute);
|
|
6030
7057
|
for (const raw of list(phase.inputFileListPaths)) {
|
|
6031
7058
|
const file = absolute(raw);
|
|
6032
|
-
if (!
|
|
7059
|
+
if (!fs18.existsSync(file)) continue;
|
|
6033
7060
|
xcconfigs.add(file);
|
|
6034
7061
|
inputs.push(...fileListEntries(file, absolute));
|
|
6035
7062
|
}
|
|
@@ -6094,7 +7121,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
6094
7121
|
...productAttributes.get(dependencyId)?.length ? { attributes: productAttributes.get(dependencyId) } : {},
|
|
6095
7122
|
source: reference?.isa === "XCRemoteSwiftPackageReference" ? { kind: "remote", url: str(reference.repositoryURL) ?? "" } : reference?.isa === "XCLocalSwiftPackageReference" ? {
|
|
6096
7123
|
kind: "local",
|
|
6097
|
-
dir:
|
|
7124
|
+
dir: path37.resolve(
|
|
6098
7125
|
project.projectDir,
|
|
6099
7126
|
str(reference.relativePath) ?? ""
|
|
6100
7127
|
)
|
|
@@ -6128,10 +7155,10 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
6128
7155
|
continue;
|
|
6129
7156
|
}
|
|
6130
7157
|
if (tree === "BUILT_PRODUCTS_DIR" || tree === "DEVELOPER_DIR" || // a target in the workspace builds it, so it exists only after that build
|
|
6131
|
-
byProduct.has(
|
|
7158
|
+
byProduct.has(path37.basename(rawPath)))
|
|
6132
7159
|
continue;
|
|
6133
7160
|
const resolved = fileId ? project.resolvePath(fileId) : null;
|
|
6134
|
-
if (fileId && resolved !== null && !
|
|
7161
|
+
if (fileId && resolved !== null && !fs18.existsSync(resolved)) {
|
|
6135
7162
|
if (!ios_sdk_frameworks_default.frameworks.includes(name))
|
|
6136
7163
|
throw new Error(
|
|
6137
7164
|
`${str(target.name) ?? "target"}: linked framework ${name} (${fileId}) points at missing ${resolved} in ${project.projectFile}`
|
|
@@ -6158,7 +7185,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
6158
7185
|
({ product }) => !options.nativeModules || nativeTargets.has(built.ref) || options.nativeModules.includes(product)
|
|
6159
7186
|
);
|
|
6160
7187
|
const resolvedFile = workspaceResolvedFile(xcodeprojOrWorkspace);
|
|
6161
|
-
let packageResolved =
|
|
7188
|
+
let packageResolved = fs18.existsSync(resolvedFile) ? [fs18.realpathSync.native(resolvedFile)] : [...new Set(localPackageDirs.map((dir) => path37.join(dir, "Package.resolved")))].filter((file) => fs18.existsSync(file)).map((file) => fs18.realpathSync.native(file)).sort();
|
|
6162
7189
|
if (packageResolved.length === 0) {
|
|
6163
7190
|
const requirements = remotePackageRequirements(projects);
|
|
6164
7191
|
if (requirements.length > 0) {
|
|
@@ -6209,19 +7236,19 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
6209
7236
|
} : {},
|
|
6210
7237
|
rootDir: commonAncestor(
|
|
6211
7238
|
[
|
|
6212
|
-
workspace ?
|
|
7239
|
+
workspace ? path37.dirname(workspace) : app.project.projectDir,
|
|
6213
7240
|
...used.map((project) => project.projectDir),
|
|
6214
7241
|
...localPackageDirs,
|
|
6215
7242
|
...linkedProducts.flatMap(
|
|
6216
|
-
({ source }) => source.kind === "local" &&
|
|
7243
|
+
({ source }) => source.kind === "local" && fs18.existsSync(source.dir) ? [source.dir] : []
|
|
6217
7244
|
),
|
|
6218
7245
|
...new Set(podSourceDirs),
|
|
6219
7246
|
// a target's own files may sit beside the project, such as an asset
|
|
6220
7247
|
// catalog one folder up, and xcode builds them from there
|
|
6221
7248
|
...new Set(
|
|
6222
|
-
[...module.allSources, ...module.resources].filter((file) =>
|
|
7249
|
+
[...module.allSources, ...module.resources].filter((file) => fs18.existsSync(file)).map((file) => path37.dirname(file))
|
|
6223
7250
|
)
|
|
6224
|
-
].map((dir) =>
|
|
7251
|
+
].map((dir) => fs18.realpathSync.native(dir))
|
|
6225
7252
|
),
|
|
6226
7253
|
projectFiles: [
|
|
6227
7254
|
.../* @__PURE__ */ new Set([
|
|
@@ -6233,7 +7260,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
6233
7260
|
].sort(),
|
|
6234
7261
|
projectDirs: [...new Set(used.map((project) => project.projectDir))].sort(),
|
|
6235
7262
|
appIconName: settings("ASSETCATALOG_COMPILER_APPICON_NAME"),
|
|
6236
|
-
infoPlist: infoPlistPending ? null :
|
|
7263
|
+
infoPlist: infoPlistPending ? null : plist3.build(info),
|
|
6237
7264
|
infoPlistFile,
|
|
6238
7265
|
...keychainAccessGroups === void 0 ? {} : { keychainAccessGroups },
|
|
6239
7266
|
postBundleScripts,
|
|
@@ -6242,7 +7269,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
6242
7269
|
resourceProducts,
|
|
6243
7270
|
linkedProducts,
|
|
6244
7271
|
localPackageDirs: [
|
|
6245
|
-
...new Set(localPackageDirs.map((dir) =>
|
|
7272
|
+
...new Set(localPackageDirs.map((dir) => fs18.realpathSync.native(dir)))
|
|
6246
7273
|
].sort(),
|
|
6247
7274
|
binaryFrameworks: [...binaryFrameworks].map(([name, file]) => ({ name, path: file })).sort((left, right) => left.name.localeCompare(right.name)),
|
|
6248
7275
|
sdkFrameworks: [...sdkFrameworks].filter(
|
|
@@ -6260,8 +7287,12 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
6260
7287
|
function nonEmptyString2(value) {
|
|
6261
7288
|
return typeof value === "string" && value.length > 0 ? value : void 0;
|
|
6262
7289
|
}
|
|
6263
|
-
|
|
6264
|
-
|
|
7290
|
+
var SDK_BEFORE_SCENE_REQUIREMENT = "26.0";
|
|
7291
|
+
function stampNativeBuildSdk(identity, buildSdkVersion = NATIVE_GRAPH_SDK_VERSION) {
|
|
7292
|
+
const dtPlatformVersion = identity.dtPlatformVersion ?? selectNativeAppIdentityReader(identity.platform, {
|
|
7293
|
+
ios: () => identity.sceneManifest ? buildSdkVersion : SDK_BEFORE_SCENE_REQUIREMENT,
|
|
7294
|
+
android: () => buildSdkVersion
|
|
7295
|
+
})();
|
|
6265
7296
|
return {
|
|
6266
7297
|
...identity,
|
|
6267
7298
|
dtPlatformVersion,
|
|
@@ -6271,7 +7302,7 @@ function stampNativeBuildSdk(identity) {
|
|
|
6271
7302
|
}
|
|
6272
7303
|
};
|
|
6273
7304
|
}
|
|
6274
|
-
function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSource) {
|
|
7305
|
+
function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSource, buildSdkVersion) {
|
|
6275
7306
|
if (app.infoPlist === null)
|
|
6276
7307
|
throw new Error(
|
|
6277
7308
|
"native app Info.plist is generated by a build phase and was not prepared"
|
|
@@ -6343,9 +7374,9 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
|
|
|
6343
7374
|
const rtcAppGroupIdentifier = nonEmptyString2(dictionary.RTCAppGroupIdentifier);
|
|
6344
7375
|
const screenShareExtensionBundleId = typeof dictionary.ScreenShareExtensionBundleId === "string" ? dictionary.ScreenShareExtensionBundleId : void 0;
|
|
6345
7376
|
const rootModuleName = readRootModuleName(
|
|
6346
|
-
app.allSources.filter((file) => /Delegate\.(?:swift|mm|m)$/.test(file) &&
|
|
7377
|
+
app.allSources.filter((file) => /Delegate\.(?:swift|mm|m)$/.test(file) && fs19.existsSync(file)).map((file) => fs19.readFileSync(file, "utf8"))
|
|
6347
7378
|
);
|
|
6348
|
-
|
|
7379
|
+
const identity = {
|
|
6349
7380
|
...app.keychainAccessGroups === void 0 ? {} : { keychainAccessGroups: app.keychainAccessGroups },
|
|
6350
7381
|
applicationName,
|
|
6351
7382
|
...applicationDisplayName ? { applicationDisplayName } : {},
|
|
@@ -6356,6 +7387,7 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
|
|
|
6356
7387
|
...typeof dictionary.UIViewControllerBasedStatusBarAppearance === "boolean" ? {
|
|
6357
7388
|
viewControllerBasedStatusBarAppearance: dictionary.UIViewControllerBasedStatusBarAppearance
|
|
6358
7389
|
} : {},
|
|
7390
|
+
sceneManifest: isRecord(dictionary.UIApplicationSceneManifest) ? dictionary.UIApplicationSceneManifest : null,
|
|
6359
7391
|
...typeof dictionary.DTPlatformVersion === "string" ? { dtPlatformVersion: dictionary.DTPlatformVersion } : {},
|
|
6360
7392
|
bundleName,
|
|
6361
7393
|
appVersion,
|
|
@@ -6365,7 +7397,7 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
|
|
|
6365
7397
|
googleSignIn: readGoogleSignInConfiguration(
|
|
6366
7398
|
dictionary,
|
|
6367
7399
|
Object.fromEntries(
|
|
6368
|
-
app.resources.filter((file) => file.endsWith(".plist")).map((file) => [file, parseInfoPlist(
|
|
7400
|
+
app.resources.filter((file) => file.endsWith(".plist")).map((file) => [file, parseInfoPlist(fs19.readFileSync(file, "utf8"))])
|
|
6369
7401
|
)
|
|
6370
7402
|
),
|
|
6371
7403
|
supportedInterfaceOrientations,
|
|
@@ -6375,11 +7407,11 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
|
|
|
6375
7407
|
bundleIcons: resolveNativeBundleIcons(icons, catalogAlternateNames, (value) => value),
|
|
6376
7408
|
appIconArtwork: resolveNativeAppIconArtwork(
|
|
6377
7409
|
app.resources,
|
|
6378
|
-
(file) =>
|
|
7410
|
+
(file) => fs19.readFileSync(file, "utf8"),
|
|
6379
7411
|
(file) => {
|
|
6380
|
-
const extension =
|
|
7412
|
+
const extension = path38.extname(file).toLowerCase();
|
|
6381
7413
|
const contentType = extension === ".jpg" || extension === ".jpeg" ? "image/jpeg" : extension === ".webp" ? "image/webp" : "image/png";
|
|
6382
|
-
return `data:${contentType};base64,${
|
|
7414
|
+
return `data:${contentType};base64,${fs19.readFileSync(file).toString("base64")}`;
|
|
6383
7415
|
},
|
|
6384
7416
|
icons,
|
|
6385
7417
|
app.appIconName,
|
|
@@ -6396,12 +7428,19 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
|
|
|
6396
7428
|
backgroundTaskIdentifiers,
|
|
6397
7429
|
backgroundModes,
|
|
6398
7430
|
appIntentIdentifiers
|
|
6399
|
-
}
|
|
7431
|
+
};
|
|
7432
|
+
return stampNativeBuildSdk(identity, buildSdkVersion);
|
|
6400
7433
|
}
|
|
6401
|
-
function readNativeAppIdentityFromProject(projectRoot, platform, parseInfoPlist = parsePlistSource, iosTarget, androidMergedManifest, environment) {
|
|
7434
|
+
function readNativeAppIdentityFromProject(projectRoot, platform, parseInfoPlist = parsePlistSource, iosTarget, androidMergedManifest, environment, buildSdkVersion) {
|
|
6402
7435
|
const read = selectNativeAppIdentityReader(platform, {
|
|
6403
7436
|
android: () => readAndroidNativeAppIdentity(projectRoot, androidMergedManifest),
|
|
6404
|
-
ios: () => readIosNativeAppIdentity(
|
|
7437
|
+
ios: () => readIosNativeAppIdentity(
|
|
7438
|
+
projectRoot,
|
|
7439
|
+
parseInfoPlist,
|
|
7440
|
+
iosTarget,
|
|
7441
|
+
environment,
|
|
7442
|
+
buildSdkVersion
|
|
7443
|
+
)
|
|
6405
7444
|
});
|
|
6406
7445
|
return read ? read() : null;
|
|
6407
7446
|
}
|
|
@@ -6409,11 +7448,11 @@ function readNativeAppIdentityFromSources(projectRoot, platform, parseInfoPlist,
|
|
|
6409
7448
|
const read = selectNativeAppIdentityReader(platform, {
|
|
6410
7449
|
android: () => null,
|
|
6411
7450
|
ios: () => {
|
|
6412
|
-
const nested =
|
|
6413
|
-
const iosRoot =
|
|
7451
|
+
const nested = path38.join(projectRoot, "ios");
|
|
7452
|
+
const iosRoot = fs19.existsSync(nested) ? nested : projectRoot;
|
|
6414
7453
|
const prefix = iosRoot === nested ? "ios/" : "";
|
|
6415
7454
|
const files = {};
|
|
6416
|
-
for (const entry of
|
|
7455
|
+
for (const entry of fs19.readdirSync(iosRoot, { withFileTypes: true })) {
|
|
6417
7456
|
if (entry.name === "Pods") continue;
|
|
6418
7457
|
if (entry.isDirectory()) {
|
|
6419
7458
|
const names = entry.name.endsWith(".xcodeproj") ? ["project.pbxproj"] : [
|
|
@@ -6421,17 +7460,17 @@ function readNativeAppIdentityFromSources(projectRoot, platform, parseInfoPlist,
|
|
|
6421
7460
|
"AppDelegate.swift",
|
|
6422
7461
|
"AppDelegate.mm",
|
|
6423
7462
|
"AppDelegate.m",
|
|
6424
|
-
...
|
|
7463
|
+
...fs19.readdirSync(path38.join(iosRoot, entry.name)).filter((name) => name.endsWith(".entitlements"))
|
|
6425
7464
|
];
|
|
6426
7465
|
for (const name of names) {
|
|
6427
7466
|
const relative2 = `${prefix}${entry.name}/${name}`;
|
|
6428
|
-
const file =
|
|
6429
|
-
if (
|
|
7467
|
+
const file = path38.join(projectRoot, relative2);
|
|
7468
|
+
if (fs19.existsSync(file)) files[relative2] = fs19.readFileSync(file, "utf8");
|
|
6430
7469
|
}
|
|
6431
7470
|
} else if (/AppDelegate\.(?:swift|mm|m)$|\.entitlements$/.test(entry.name)) {
|
|
6432
7471
|
const relative2 = `${prefix}${entry.name}`;
|
|
6433
|
-
const file =
|
|
6434
|
-
if (
|
|
7472
|
+
const file = path38.join(projectRoot, relative2);
|
|
7473
|
+
if (fs19.existsSync(file)) files[relative2] = fs19.readFileSync(file, "utf8");
|
|
6435
7474
|
}
|
|
6436
7475
|
}
|
|
6437
7476
|
const identity = extractNativeAppIdentityFromFiles(
|
|
@@ -6448,41 +7487,41 @@ function readNativeAppIdentityFromSources(projectRoot, platform, parseInfoPlist,
|
|
|
6448
7487
|
function readAndroidNativeAppIdentity(projectRoot, androidMergedManifest) {
|
|
6449
7488
|
const files = {};
|
|
6450
7489
|
if (androidMergedManifest) {
|
|
6451
|
-
const file =
|
|
6452
|
-
if (!
|
|
6453
|
-
files[androidMergedManifest] =
|
|
7490
|
+
const file = path38.resolve(projectRoot, androidMergedManifest);
|
|
7491
|
+
if (!fs19.existsSync(file)) return null;
|
|
7492
|
+
files[androidMergedManifest] = fs19.readFileSync(file, "utf8");
|
|
6454
7493
|
} else {
|
|
6455
|
-
const androidRoot =
|
|
6456
|
-
if (!
|
|
7494
|
+
const androidRoot = path38.join(projectRoot, "android");
|
|
7495
|
+
if (!fs19.existsSync(androidRoot)) return null;
|
|
6457
7496
|
const collect = (directory) => {
|
|
6458
|
-
for (const entry of
|
|
6459
|
-
const file =
|
|
7497
|
+
for (const entry of fs19.readdirSync(directory, { withFileTypes: true })) {
|
|
7498
|
+
const file = path38.join(directory, entry.name);
|
|
6460
7499
|
if (entry.isDirectory()) collect(file);
|
|
6461
7500
|
else if (entry.isFile() && entry.name === "AndroidManifest.xml")
|
|
6462
|
-
files[
|
|
7501
|
+
files[path38.relative(projectRoot, file).split(path38.sep).join("/")] = fs19.readFileSync(file, "utf8");
|
|
6463
7502
|
}
|
|
6464
7503
|
};
|
|
6465
|
-
for (const module of
|
|
7504
|
+
for (const module of fs19.readdirSync(androidRoot, { withFileTypes: true })) {
|
|
6466
7505
|
if (!module.isDirectory()) continue;
|
|
6467
|
-
const outputs =
|
|
7506
|
+
const outputs = path38.join(
|
|
6468
7507
|
androidRoot,
|
|
6469
7508
|
module.name,
|
|
6470
7509
|
"build/intermediates/merged_manifests"
|
|
6471
7510
|
);
|
|
6472
|
-
if (
|
|
7511
|
+
if (fs19.existsSync(outputs)) collect(outputs);
|
|
6473
7512
|
}
|
|
6474
7513
|
}
|
|
6475
7514
|
for (const manifest of Object.keys(files)) {
|
|
6476
7515
|
const resourceDirectory = androidMergedResourceValuesDirectory(manifest);
|
|
6477
7516
|
if (!resourceDirectory) continue;
|
|
6478
|
-
const absolute =
|
|
6479
|
-
if (!
|
|
6480
|
-
for (const entry of
|
|
7517
|
+
const absolute = path38.resolve(projectRoot, resourceDirectory);
|
|
7518
|
+
if (!fs19.existsSync(absolute)) continue;
|
|
7519
|
+
for (const entry of fs19.readdirSync(absolute, { withFileTypes: true })) {
|
|
6481
7520
|
if (!entry.isDirectory() || !/^values(?:-|$)/.test(entry.name)) continue;
|
|
6482
|
-
for (const resource of
|
|
7521
|
+
for (const resource of fs19.readdirSync(path38.join(absolute, entry.name))) {
|
|
6483
7522
|
if (!resource.endsWith(".xml")) continue;
|
|
6484
7523
|
const file = `${resourceDirectory}/${entry.name}/${resource}`;
|
|
6485
|
-
files[file] =
|
|
7524
|
+
files[file] = fs19.readFileSync(path38.resolve(projectRoot, file), "utf8");
|
|
6486
7525
|
}
|
|
6487
7526
|
}
|
|
6488
7527
|
}
|
|
@@ -6495,11 +7534,15 @@ function readAndroidNativeAppIdentity(projectRoot, androidMergedManifest) {
|
|
|
6495
7534
|
androidMergedManifest
|
|
6496
7535
|
);
|
|
6497
7536
|
}
|
|
6498
|
-
function readIosNativeAppIdentity(projectRoot, parseInfoPlist, iosTarget, environment) {
|
|
7537
|
+
function readIosNativeAppIdentity(projectRoot, parseInfoPlist, iosTarget, environment, buildSdkVersion) {
|
|
6499
7538
|
const app = readIosAppTarget(projectRoot, iosTarget, environment);
|
|
6500
7539
|
if (!app) return null;
|
|
6501
|
-
const identity = readNativeAppIdentityFromXcodeTarget(
|
|
6502
|
-
|
|
7540
|
+
const identity = readNativeAppIdentityFromXcodeTarget(
|
|
7541
|
+
app,
|
|
7542
|
+
parseInfoPlist,
|
|
7543
|
+
buildSdkVersion
|
|
7544
|
+
);
|
|
7545
|
+
const projectManifestPath = path38.join(projectRoot, "package.json");
|
|
6503
7546
|
const projectRequire = createRequire(projectManifestPath);
|
|
6504
7547
|
let reanimatedManifestPath;
|
|
6505
7548
|
try {
|
|
@@ -6513,22 +7556,22 @@ function readIosNativeAppIdentity(projectRoot, parseInfoPlist, iosTarget, enviro
|
|
|
6513
7556
|
throw error;
|
|
6514
7557
|
}
|
|
6515
7558
|
const installedManifest = JSON.parse(
|
|
6516
|
-
|
|
7559
|
+
fs19.readFileSync(reanimatedManifestPath, "utf8")
|
|
6517
7560
|
);
|
|
6518
7561
|
const installedVersion = isRecord(installedManifest) ? nonEmptyString2(installedManifest.version) : void 0;
|
|
6519
7562
|
if (!installedVersion) throw new Error("Reanimated package version is malformed");
|
|
6520
7563
|
if (Number.parseInt(installedVersion, 10) < 4) return identity;
|
|
6521
7564
|
const defaults = JSON.parse(
|
|
6522
|
-
|
|
6523
|
-
|
|
6524
|
-
|
|
7565
|
+
fs19.readFileSync(
|
|
7566
|
+
path38.join(
|
|
7567
|
+
path38.dirname(reanimatedManifestPath),
|
|
6525
7568
|
"src/featureFlags/staticFlags.json"
|
|
6526
7569
|
),
|
|
6527
7570
|
"utf8"
|
|
6528
7571
|
)
|
|
6529
7572
|
);
|
|
6530
7573
|
if (!isRecord(defaults)) throw new Error("Reanimated static flags are malformed");
|
|
6531
|
-
const manifest = JSON.parse(
|
|
7574
|
+
const manifest = JSON.parse(fs19.readFileSync(projectManifestPath, "utf8"));
|
|
6532
7575
|
const reanimated = isRecord(manifest) ? manifest.reanimated : void 0;
|
|
6533
7576
|
const overrides = isRecord(reanimated) ? reanimated.staticFeatureFlags : void 0;
|
|
6534
7577
|
if (overrides !== void 0 && !isRecord(overrides)) {
|