peachsim 0.1.2306 → 0.1.2364
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 +12498 -8638
- 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 +13911 -9671
- 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 +9 -5
- 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
|
@@ -0,0 +1,1133 @@
|
|
|
1
|
+
// reads a bazel ios app the way its own build configures it: `bazel cquery`
|
|
2
|
+
// evaluates the workspace's BUILD files, macros, globs and selects for the
|
|
3
|
+
// simulator configuration, and this file maps the configured swift_library,
|
|
4
|
+
// objc_library and cc_library graph onto the module targets the xcode reader
|
|
5
|
+
// produces, so the same compile path builds it. bazel owns the graph and its
|
|
6
|
+
// code generation; nothing here re-implements starlark.
|
|
7
|
+
|
|
8
|
+
import { execFileSync } from 'node:child_process'
|
|
9
|
+
import { createHash } from 'node:crypto'
|
|
10
|
+
import fs from 'node:fs'
|
|
11
|
+
import os from 'node:os'
|
|
12
|
+
import path from 'node:path'
|
|
13
|
+
import plist from 'plist'
|
|
14
|
+
import { isRecord } from './is-record'
|
|
15
|
+
import type { RustCrateDeclaration } from './swift-packages'
|
|
16
|
+
import type { XcodeAppTarget, XcodeModuleTarget } from './xcode-project'
|
|
17
|
+
|
|
18
|
+
const LIBRARY_RULES = new Set(['swift_library', 'objc_library', 'cc_library'])
|
|
19
|
+
const QUERIED_RULES = [
|
|
20
|
+
'swift_library',
|
|
21
|
+
'objc_library',
|
|
22
|
+
'cc_library',
|
|
23
|
+
'genrule',
|
|
24
|
+
'filegroup',
|
|
25
|
+
'alias',
|
|
26
|
+
'apple_resource_bundle',
|
|
27
|
+
'rust_static_library',
|
|
28
|
+
'apple_static_xcframework_import',
|
|
29
|
+
'apple_dynamic_xcframework_import',
|
|
30
|
+
'apple_intent_library',
|
|
31
|
+
]
|
|
32
|
+
const NATIVE_SOURCE = /\.(?:m|mm|c|cc|cpp|cxx|S)$/
|
|
33
|
+
const HEADER = /\.(?:h|hh|hpp|hxx|inc|inl|ipp)$/
|
|
34
|
+
// the products directory bazel-built frameworks are laid out in, under the workspace
|
|
35
|
+
const PRODUCTS = path.join('.build', 'peach-bazel', 'Products')
|
|
36
|
+
|
|
37
|
+
/** a BUILD file names a bazel package, as a .xcodeproj names a project. */
|
|
38
|
+
export function isBazelPackage(input: string): boolean {
|
|
39
|
+
return /^BUILD(?:\.bazel)?$/.test(path.basename(input)) && fs.statSync(input).isFile()
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function workspaceRoot(buildFile: string): string {
|
|
43
|
+
for (let dir = path.dirname(buildFile); ; dir = path.dirname(dir)) {
|
|
44
|
+
if (
|
|
45
|
+
['MODULE.bazel', 'WORKSPACE', 'WORKSPACE.bazel'].some((name) =>
|
|
46
|
+
fs.existsSync(path.join(dir, name)),
|
|
47
|
+
)
|
|
48
|
+
)
|
|
49
|
+
return dir
|
|
50
|
+
if (path.dirname(dir) === dir)
|
|
51
|
+
throw new Error(`${buildFile} is not inside a bazel workspace`)
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// the workspace's pinned bazel (.bazelversion), downloaded once and checked
|
|
56
|
+
// against its release digest, else the bazel on PATH.
|
|
57
|
+
function bazelBinary(root: string): string {
|
|
58
|
+
const pinned = path.join(root, '.bazelversion')
|
|
59
|
+
if (!fs.existsSync(pinned)) return 'bazel'
|
|
60
|
+
const version = fs.readFileSync(pinned, 'utf8').trim()
|
|
61
|
+
const platform = os.platform() === 'darwin' ? 'darwin' : 'linux'
|
|
62
|
+
const arch = os.arch() === 'arm64' ? 'arm64' : 'x86_64'
|
|
63
|
+
const name = `bazel-${version}-${platform}-${arch}`
|
|
64
|
+
const binary = path.join(os.homedir(), '.peach', 'cache', 'bazel', name)
|
|
65
|
+
if (fs.existsSync(binary)) return binary
|
|
66
|
+
const url = `https://github.com/bazelbuild/bazel/releases/download/${version}/${name}`
|
|
67
|
+
fs.mkdirSync(path.dirname(binary), { recursive: true })
|
|
68
|
+
const partial = `${binary}.${process.pid}.partial`
|
|
69
|
+
execFileSync('curl', ['-fsSL', '-o', partial, url])
|
|
70
|
+
const expected = execFileSync('curl', ['-fsSL', `${url}.sha256`], {
|
|
71
|
+
encoding: 'utf8',
|
|
72
|
+
}).split(/\s/)[0]
|
|
73
|
+
const actual = createHash('sha256').update(fs.readFileSync(partial)).digest('hex')
|
|
74
|
+
if (actual !== expected) {
|
|
75
|
+
fs.rmSync(partial, { force: true })
|
|
76
|
+
throw new Error(`${url} digest ${actual} differs from its release ${expected}`)
|
|
77
|
+
}
|
|
78
|
+
fs.chmodSync(partial, 0o755)
|
|
79
|
+
fs.renameSync(partial, binary)
|
|
80
|
+
return binary
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
type Attribute = { list: string[]; value: string | null; bool: boolean | null }
|
|
84
|
+
type Rule = {
|
|
85
|
+
label: string
|
|
86
|
+
ruleClass: string
|
|
87
|
+
attrs: Map<string, Attribute>
|
|
88
|
+
outputs: string[]
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function parseRule(raw: unknown): Rule | null {
|
|
92
|
+
if (!isRecord(raw) || !isRecord(raw.target) || !isRecord(raw.target.rule)) return null
|
|
93
|
+
const rule = raw.target.rule
|
|
94
|
+
if (typeof rule.name !== 'string' || typeof rule.ruleClass !== 'string') return null
|
|
95
|
+
const attrs = new Map<string, Attribute>()
|
|
96
|
+
for (const attribute of Array.isArray(rule.attribute) ? rule.attribute : []) {
|
|
97
|
+
if (!isRecord(attribute) || typeof attribute.name !== 'string') continue
|
|
98
|
+
attrs.set(attribute.name, {
|
|
99
|
+
list: Array.isArray(attribute.stringListValue)
|
|
100
|
+
? attribute.stringListValue.filter((item) => typeof item === 'string')
|
|
101
|
+
: [],
|
|
102
|
+
value: typeof attribute.stringValue === 'string' ? attribute.stringValue : null,
|
|
103
|
+
bool: typeof attribute.booleanValue === 'boolean' ? attribute.booleanValue : null,
|
|
104
|
+
})
|
|
105
|
+
}
|
|
106
|
+
return {
|
|
107
|
+
label: rule.name,
|
|
108
|
+
ruleClass: rule.ruleClass,
|
|
109
|
+
attrs,
|
|
110
|
+
outputs: Array.isArray(rule.ruleOutput)
|
|
111
|
+
? rule.ruleOutput.filter((item) => typeof item === 'string')
|
|
112
|
+
: [],
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// every file bazel reads to evaluate the graph, so an edit re-queries it
|
|
117
|
+
function graphInputsDigest(root: string): string {
|
|
118
|
+
const hash = createHash('sha256')
|
|
119
|
+
const visit = (dir: string) => {
|
|
120
|
+
for (const entry of fs
|
|
121
|
+
.readdirSync(dir, { withFileTypes: true })
|
|
122
|
+
.sort((a, b) => a.name.localeCompare(b.name))) {
|
|
123
|
+
if (entry.name.startsWith('.') || entry.name.startsWith('bazel-')) continue
|
|
124
|
+
const full = path.join(dir, entry.name)
|
|
125
|
+
if (entry.isDirectory()) visit(full)
|
|
126
|
+
else if (
|
|
127
|
+
/^(?:BUILD(?:\.bazel)?|MODULE\.bazel(?:\.lock)?|WORKSPACE(?:\.bazel)?|\.bazelrc|\.bazelversion)$/.test(
|
|
128
|
+
entry.name,
|
|
129
|
+
) ||
|
|
130
|
+
entry.name.endsWith('.bzl')
|
|
131
|
+
)
|
|
132
|
+
hash.update(path.relative(root, full)).update('\0').update(fs.readFileSync(full))
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
visit(root)
|
|
136
|
+
for (const file of ['.bazelrc', '.bazelversion'])
|
|
137
|
+
if (fs.existsSync(path.join(root, file)))
|
|
138
|
+
hash.update(file).update(fs.readFileSync(path.join(root, file)))
|
|
139
|
+
return hash.digest('hex')
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
type BazelGraph = {
|
|
143
|
+
rules: Map<string, Rule>
|
|
144
|
+
app: Rule
|
|
145
|
+
appDeps: string[]
|
|
146
|
+
outputBase: string
|
|
147
|
+
/** bazel's output tree for the app configuration */
|
|
148
|
+
outputs: string
|
|
149
|
+
/** the generated files the app reads, copied inside the workspace */
|
|
150
|
+
bin: string
|
|
151
|
+
minimumOS: string | null
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
const graphs = new Map<string, BazelGraph>()
|
|
155
|
+
|
|
156
|
+
function configurationFlags(configuration: string): string[] {
|
|
157
|
+
// the simulator slice an ios_application's split transition builds; the cpu
|
|
158
|
+
// flag keeps workspaces that read --cpu in config_setting on that branch.
|
|
159
|
+
return [
|
|
160
|
+
'-c',
|
|
161
|
+
configuration === 'Release' ? 'opt' : 'dbg',
|
|
162
|
+
'--cpu=ios_sim_arm64',
|
|
163
|
+
'--platforms=@build_bazel_apple_support//platforms:ios_sim_arm64',
|
|
164
|
+
// generators run the developer's tools, as their own builds find them
|
|
165
|
+
'--action_env=PATH',
|
|
166
|
+
]
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
// the stored query's shape; a change to what bazelGraph asks for bumps it
|
|
170
|
+
const GRAPH_FORMAT = 4
|
|
171
|
+
|
|
172
|
+
function bazelGraph(root: string, label: string, configuration: string): BazelGraph {
|
|
173
|
+
const key = JSON.stringify([root, label, configuration])
|
|
174
|
+
const cached = graphs.get(key)
|
|
175
|
+
if (cached) return cached
|
|
176
|
+
const flags = configurationFlags(configuration)
|
|
177
|
+
const digest = createHash('sha256')
|
|
178
|
+
.update(JSON.stringify([GRAPH_FORMAT, label, flags, QUERIED_RULES]))
|
|
179
|
+
.update(graphInputsDigest(root))
|
|
180
|
+
.digest('hex')
|
|
181
|
+
.slice(0, 24)
|
|
182
|
+
const file = path.join(root, '.build', 'peach-bazel', `graph-${digest}.json`)
|
|
183
|
+
const bazel = bazelBinary(root)
|
|
184
|
+
const run = (args: string[]) =>
|
|
185
|
+
execFileSync(bazel, args, {
|
|
186
|
+
cwd: root,
|
|
187
|
+
encoding: 'utf8',
|
|
188
|
+
maxBuffer: 1 << 30,
|
|
189
|
+
stdio: ['ignore', 'pipe', 'pipe'],
|
|
190
|
+
})
|
|
191
|
+
if (!fs.existsSync(file)) {
|
|
192
|
+
// the application rule itself is read unconfigured: configuring it signs
|
|
193
|
+
// and bundles, which needs provisioning a compile never uses
|
|
194
|
+
const application = run(['query', label, '--output=streamed_jsonproto'])
|
|
195
|
+
const app = parseRule({ target: JSON.parse(application.trim().split('\n')[0]!) })
|
|
196
|
+
if (!app?.ruleClass.endsWith('_application'))
|
|
197
|
+
throw new Error(
|
|
198
|
+
`${label} is a ${app?.ruleClass ?? 'missing rule'}, not an application`,
|
|
199
|
+
)
|
|
200
|
+
const deps = app.attrs.get('deps')?.list ?? []
|
|
201
|
+
if (deps.length === 0) throw new Error(`${label} links no libraries`)
|
|
202
|
+
const infoplists = app.attrs.get('infoplists')?.list ?? []
|
|
203
|
+
const query = `kind("${QUERIED_RULES.join('|')}", deps(set(${deps.join(' ')})))${infoplists.length > 0 ? ` + set(${infoplists.join(' ')})` : ''}`
|
|
204
|
+
const output = run(['cquery', query, ...flags, '--output=jsonproto'])
|
|
205
|
+
// a rule that declares its outputs in its implementation lists none in the
|
|
206
|
+
// proto; its default outputs name them
|
|
207
|
+
const defaults = run([
|
|
208
|
+
'cquery',
|
|
209
|
+
query,
|
|
210
|
+
...flags,
|
|
211
|
+
'--output=starlark',
|
|
212
|
+
'--starlark:expr=str(target.label) + "\\t" + " ".join([f.short_path for f in target.files.to_list() if not f.is_source])',
|
|
213
|
+
])
|
|
214
|
+
const info = run(['info', 'output_base', 'execution_root'])
|
|
215
|
+
// the target configuration's output tree, as bazel names it for these flags
|
|
216
|
+
const bin = run(['cquery', deps[0]!, ...flags, '--output=files'])
|
|
217
|
+
.split('\n')
|
|
218
|
+
.find((line) => line.includes('/bin/'))
|
|
219
|
+
if (!bin) throw new Error(`bazel cquery names no output for ${deps[0]}`)
|
|
220
|
+
fs.mkdirSync(path.dirname(file), { recursive: true })
|
|
221
|
+
fs.writeFileSync(
|
|
222
|
+
`${file}.partial`,
|
|
223
|
+
JSON.stringify({
|
|
224
|
+
application,
|
|
225
|
+
cquery: output,
|
|
226
|
+
defaults,
|
|
227
|
+
info,
|
|
228
|
+
bin: bin.slice(0, bin.indexOf('/bin/') + 4),
|
|
229
|
+
}),
|
|
230
|
+
)
|
|
231
|
+
fs.renameSync(`${file}.partial`, file)
|
|
232
|
+
}
|
|
233
|
+
const stored: unknown = JSON.parse(fs.readFileSync(file, 'utf8'))
|
|
234
|
+
if (
|
|
235
|
+
!isRecord(stored) ||
|
|
236
|
+
typeof stored.application !== 'string' ||
|
|
237
|
+
typeof stored.cquery !== 'string' ||
|
|
238
|
+
typeof stored.defaults !== 'string' ||
|
|
239
|
+
typeof stored.info !== 'string' ||
|
|
240
|
+
typeof stored.bin !== 'string'
|
|
241
|
+
)
|
|
242
|
+
throw new Error(`${file} is not a bazel graph`)
|
|
243
|
+
const app = parseRule({
|
|
244
|
+
target: JSON.parse(stored.application.trim().split('\n')[0]!),
|
|
245
|
+
})!
|
|
246
|
+
const appDeps = (app.attrs.get('deps')?.list ?? []).map((dep) =>
|
|
247
|
+
canonicalLabel(dep, label),
|
|
248
|
+
)
|
|
249
|
+
const parsed: unknown = JSON.parse(stored.cquery)
|
|
250
|
+
if (!isRecord(parsed) || !Array.isArray(parsed.results))
|
|
251
|
+
throw new Error(`bazel cquery for ${label} returned no results`)
|
|
252
|
+
// the target configuration is the app libraries'; tools build in the exec one
|
|
253
|
+
const configurationOf = (raw: unknown) =>
|
|
254
|
+
isRecord(raw) && isRecord(raw.configuration) ? raw.configuration.checksum : null
|
|
255
|
+
const top = parsed.results.find((raw) => parseRule(raw)?.label === appDeps[0])
|
|
256
|
+
if (!top) throw new Error(`bazel cquery did not configure ${appDeps[0]}`)
|
|
257
|
+
const rules = new Map<string, Rule>()
|
|
258
|
+
for (const raw of parsed.results) {
|
|
259
|
+
if (configurationOf(raw) !== configurationOf(top)) continue
|
|
260
|
+
const rule = parseRule(raw)
|
|
261
|
+
if (rule) rules.set(rule.label, rule)
|
|
262
|
+
}
|
|
263
|
+
for (const line of stored.defaults.split('\n')) {
|
|
264
|
+
const [raw, list] = line.split('\t')
|
|
265
|
+
const rule = raw ? rules.get(raw.replace(/^@@\/\//, '//')) : undefined
|
|
266
|
+
if (
|
|
267
|
+
!rule ||
|
|
268
|
+
rule.outputs.length > 0 ||
|
|
269
|
+
LIBRARY_RULES.has(rule.ruleClass) ||
|
|
270
|
+
rule.ruleClass === 'filegroup' ||
|
|
271
|
+
rule.ruleClass === 'alias'
|
|
272
|
+
)
|
|
273
|
+
continue
|
|
274
|
+
const { repo, pkg } = splitLabel(rule.label)
|
|
275
|
+
const prefix = `${repo ? `../${repo}/` : ''}${pkg ? `${pkg}/` : ''}`
|
|
276
|
+
rule.outputs = (list ?? '')
|
|
277
|
+
.split(' ')
|
|
278
|
+
.filter((file) => file.startsWith(prefix))
|
|
279
|
+
.map((file) => `${repo ? `@@${repo}` : ''}//${pkg}:${file.slice(prefix.length)}`)
|
|
280
|
+
}
|
|
281
|
+
const info = Object.fromEntries(
|
|
282
|
+
stored.info
|
|
283
|
+
.trim()
|
|
284
|
+
.split('\n')
|
|
285
|
+
.map((line) => {
|
|
286
|
+
const at = line.indexOf(': ')
|
|
287
|
+
return [line.slice(0, at), line.slice(at + 2)]
|
|
288
|
+
}),
|
|
289
|
+
)
|
|
290
|
+
const graph = {
|
|
291
|
+
rules,
|
|
292
|
+
app,
|
|
293
|
+
appDeps,
|
|
294
|
+
outputBase: info.output_base ?? '',
|
|
295
|
+
outputs: path.join(info.execution_root ?? '', stored.bin),
|
|
296
|
+
bin: path.join(root, '.build', 'peach-bazel', 'bin'),
|
|
297
|
+
minimumOS: app.attrs.get('minimum_os_version')?.value || null,
|
|
298
|
+
}
|
|
299
|
+
graphs.set(key, graph)
|
|
300
|
+
return graph
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
// `@@repo//pkg:name`, `@repo//pkg:name` or `//pkg:name`
|
|
304
|
+
function splitLabel(label: string): {
|
|
305
|
+
repo: string
|
|
306
|
+
pkg: string
|
|
307
|
+
name: string
|
|
308
|
+
} {
|
|
309
|
+
const match = /^(?:@@?([^/]*))?\/\/([^:]*):(.+)$/.exec(label)
|
|
310
|
+
if (!match) throw new Error(`not a bazel label: ${label}`)
|
|
311
|
+
return { repo: match[1] ?? '', pkg: match[2]!, name: match[3]! }
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
function canonicalLabel(label: string, from: string): string {
|
|
315
|
+
if (label.startsWith('@') || label.startsWith('//')) {
|
|
316
|
+
return label.includes(':')
|
|
317
|
+
? label
|
|
318
|
+
: `${label}:${label.slice(label.lastIndexOf('/') + 1)}`
|
|
319
|
+
}
|
|
320
|
+
const { repo, pkg } = splitLabel(from)
|
|
321
|
+
return `${repo ? `@@${repo}` : ''}//${pkg}:${label.replace(/^:/, '')}`
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
class BazelFiles {
|
|
325
|
+
private generated = new Set<string>()
|
|
326
|
+
constructor(
|
|
327
|
+
private graph: BazelGraph,
|
|
328
|
+
private root: string,
|
|
329
|
+
) {
|
|
330
|
+
for (const rule of graph.rules.values())
|
|
331
|
+
for (const output of rule.outputs) this.generated.add(output)
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
repoDir(repo: string): string {
|
|
335
|
+
if (repo === '') return this.root
|
|
336
|
+
const external = path.join(this.graph.outputBase, 'external')
|
|
337
|
+
for (const name of [repo, `${repo}+`])
|
|
338
|
+
if (fs.existsSync(path.join(external, name))) return path.join(external, name)
|
|
339
|
+
throw new Error(`bazel external repository ${repo} is not fetched`)
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/** the package directory in the source tree, or under bazel-bin for outputs. */
|
|
343
|
+
packageDirs(label: string): string[] {
|
|
344
|
+
const { repo, pkg } = splitLabel(label)
|
|
345
|
+
const source = path.join(this.repoDir(repo), pkg)
|
|
346
|
+
const bin = repo
|
|
347
|
+
? path.join(this.graph.bin, 'external', path.basename(this.repoDir(repo)), pkg)
|
|
348
|
+
: path.join(this.graph.bin, pkg)
|
|
349
|
+
return [source, bin]
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
path(label: string): string {
|
|
353
|
+
const { repo, pkg, name } = splitLabel(label)
|
|
354
|
+
if (this.generated.has(label)) {
|
|
355
|
+
const [, bin] = this.packageDirs(label)
|
|
356
|
+
return path.join(bin!, name)
|
|
357
|
+
}
|
|
358
|
+
return path.join(this.repoDir(repo), pkg, name)
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
/** files a label list names: filegroups, aliases and rule outputs expanded. */
|
|
362
|
+
expand(labels: readonly string[], from: string): string[] {
|
|
363
|
+
const files: string[] = []
|
|
364
|
+
const visit = (raw: string, owner: string, seen: Set<string>) => {
|
|
365
|
+
const label = canonicalLabel(raw, owner)
|
|
366
|
+
if (seen.has(label)) return
|
|
367
|
+
seen.add(label)
|
|
368
|
+
const rule = this.graph.rules.get(label)
|
|
369
|
+
if (!rule) {
|
|
370
|
+
files.push(this.path(label))
|
|
371
|
+
return
|
|
372
|
+
}
|
|
373
|
+
if (rule.ruleClass === 'alias') {
|
|
374
|
+
const actual = rule.attrs.get('actual')?.value
|
|
375
|
+
if (actual) visit(actual, label, seen)
|
|
376
|
+
} else if (rule.ruleClass === 'filegroup')
|
|
377
|
+
for (const item of rule.attrs.get('srcs')?.list ?? []) visit(item, label, seen)
|
|
378
|
+
else for (const output of rule.outputs) files.push(this.path(output))
|
|
379
|
+
}
|
|
380
|
+
for (const label of labels) visit(label, from, new Set())
|
|
381
|
+
return [...new Set(files)]
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* the application target a bazel package names: `targetName` is the
|
|
387
|
+
* library the app's ios_application links, `//Telegram:Lib` style, with
|
|
388
|
+
* every swift, objective-c and c library it depends on as a framework.
|
|
389
|
+
*/
|
|
390
|
+
export function readBazelAppTarget(
|
|
391
|
+
buildFile: string,
|
|
392
|
+
targetName: string | undefined,
|
|
393
|
+
configurationName: string | undefined,
|
|
394
|
+
options: { prepareGeneratedSources?: boolean; requireSources?: boolean } = {},
|
|
395
|
+
): XcodeAppTarget {
|
|
396
|
+
if (!targetName)
|
|
397
|
+
throw new Error(
|
|
398
|
+
`${buildFile}: pass --target with the ios_application the bazel package builds`,
|
|
399
|
+
)
|
|
400
|
+
const root = fs.realpathSync.native(workspaceRoot(fs.realpathSync.native(buildFile)))
|
|
401
|
+
const pkg = path.relative(root, path.dirname(fs.realpathSync.native(buildFile)))
|
|
402
|
+
const label = `//${pkg.split(path.sep).join('/')}:${targetName}`
|
|
403
|
+
const configuration = configurationName ?? 'Debug'
|
|
404
|
+
const graph = bazelGraph(root, label, configuration)
|
|
405
|
+
const files = new BazelFiles(graph, root)
|
|
406
|
+
const ruleOf = (raw: string, from: string): Rule => {
|
|
407
|
+
let rule = graph.rules.get(canonicalLabel(raw, from))
|
|
408
|
+
while (rule?.ruleClass === 'alias')
|
|
409
|
+
rule = graph.rules.get(
|
|
410
|
+
canonicalLabel(rule.attrs.get('actual')?.value ?? '', rule.label),
|
|
411
|
+
)
|
|
412
|
+
if (!rule) throw new Error(`${from} depends on ${raw}, which bazel did not configure`)
|
|
413
|
+
return rule
|
|
414
|
+
}
|
|
415
|
+
// rules_apple links the application's libraries into one executable: they
|
|
416
|
+
// build as the app target, every library they reach as a framework
|
|
417
|
+
const appLibraries = graph.appDeps
|
|
418
|
+
.map((dep) => ruleOf(dep, label))
|
|
419
|
+
.filter((rule) => LIBRARY_RULES.has(rule.ruleClass))
|
|
420
|
+
const appLabels = new Set(appLibraries.map((rule) => rule.label))
|
|
421
|
+
const minimumOS = graph.minimumOS ?? '15.0'
|
|
422
|
+
|
|
423
|
+
// dependencies first, as the app builds them
|
|
424
|
+
const order: Rule[] = []
|
|
425
|
+
const placed = new Set<string>()
|
|
426
|
+
const depsOf = (rule: Rule) =>
|
|
427
|
+
(rule.attrs.get('deps')?.list ?? [])
|
|
428
|
+
.map((dep) => ruleOf(dep, rule.label))
|
|
429
|
+
.filter((dep) => LIBRARY_RULES.has(dep.ruleClass))
|
|
430
|
+
const place = (rule: Rule) => {
|
|
431
|
+
if (placed.has(rule.label)) return
|
|
432
|
+
placed.add(rule.label)
|
|
433
|
+
for (const dep of depsOf(rule)) place(dep)
|
|
434
|
+
order.push(rule)
|
|
435
|
+
}
|
|
436
|
+
for (const rule of appLibraries) place(rule)
|
|
437
|
+
|
|
438
|
+
// propagated clang settings: bazel hands a library's includes and defines
|
|
439
|
+
// to everything that depends on it
|
|
440
|
+
const propagated = new Map<
|
|
441
|
+
string,
|
|
442
|
+
{ includes: string[]; defines: string[]; moduleMaps: string[] }
|
|
443
|
+
>()
|
|
444
|
+
const propagatedOf = (
|
|
445
|
+
rule: Rule,
|
|
446
|
+
): { includes: string[]; defines: string[]; moduleMaps: string[] } => {
|
|
447
|
+
const known = propagated.get(rule.label)
|
|
448
|
+
if (known) return known
|
|
449
|
+
const own = {
|
|
450
|
+
includes: (rule.attrs.get('includes')?.list ?? []).flatMap((include) =>
|
|
451
|
+
files
|
|
452
|
+
.packageDirs(rule.label)
|
|
453
|
+
.map((dir) => path.normalize(path.join(dir, include))),
|
|
454
|
+
),
|
|
455
|
+
defines: rule.attrs.get('defines')?.list ?? [],
|
|
456
|
+
moduleMaps: ['objc_library', 'cc_library'].includes(rule.ruleClass)
|
|
457
|
+
? [moduleMapOf(rule)]
|
|
458
|
+
: [],
|
|
459
|
+
}
|
|
460
|
+
const merged = {
|
|
461
|
+
includes: [...own.includes],
|
|
462
|
+
defines: [...own.defines],
|
|
463
|
+
moduleMaps: [...own.moduleMaps],
|
|
464
|
+
}
|
|
465
|
+
for (const dep of depsOf(rule)) {
|
|
466
|
+
const inherited = propagatedOf(dep)
|
|
467
|
+
merged.includes.push(...inherited.includes)
|
|
468
|
+
merged.defines.push(...inherited.defines)
|
|
469
|
+
merged.moduleMaps.push(...inherited.moduleMaps)
|
|
470
|
+
}
|
|
471
|
+
const result = {
|
|
472
|
+
includes: [...new Set(merged.includes)],
|
|
473
|
+
defines: [...new Set(merged.defines)],
|
|
474
|
+
moduleMaps: [...new Set(merged.moduleMaps)],
|
|
475
|
+
}
|
|
476
|
+
propagated.set(rule.label, result)
|
|
477
|
+
return result
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
const debug = configuration !== 'Release'
|
|
481
|
+
const products = path.join(root, PRODUCTS)
|
|
482
|
+
const resources: string[] = []
|
|
483
|
+
const resourceNames: Record<string, string> = {}
|
|
484
|
+
const moduleNameOf = (rule: Rule) =>
|
|
485
|
+
rule.attrs.get('module_name')?.value ||
|
|
486
|
+
splitLabel(rule.label)
|
|
487
|
+
.pkg.concat('_', splitLabel(rule.label).name)
|
|
488
|
+
.replace(/[^A-Za-z0-9_]/g, '_')
|
|
489
|
+
const moduleMapOf = (rule: Rule) =>
|
|
490
|
+
path.join(products, 'modulemaps', moduleNameOf(rule), 'module.modulemap')
|
|
491
|
+
const idOf = (rule: Rule) => `${root}/BUILD#${rule.label}`
|
|
492
|
+
|
|
493
|
+
const collectData = (rule: Rule) => {
|
|
494
|
+
for (const raw of rule.attrs.get('data')?.list ?? []) {
|
|
495
|
+
const target = graph.rules.get(canonicalLabel(raw, rule.label))
|
|
496
|
+
if (target?.ruleClass === 'apple_resource_bundle') {
|
|
497
|
+
const bundle = `${target.attrs.get('bundle_name')?.value || splitLabel(target.label).name}.bundle`
|
|
498
|
+
for (const file of files.expand(
|
|
499
|
+
target.attrs.get('resources')?.list ?? [],
|
|
500
|
+
target.label,
|
|
501
|
+
)) {
|
|
502
|
+
resources.push(file)
|
|
503
|
+
resourceNames[file] = path.posix.join(bundle, path.basename(file))
|
|
504
|
+
}
|
|
505
|
+
continue
|
|
506
|
+
}
|
|
507
|
+
for (const file of files.expand([raw], rule.label)) resources.push(file)
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
const moduleTarget = (rule: Rule): XcodeModuleTarget => {
|
|
512
|
+
const moduleName = moduleNameOf(rule)
|
|
513
|
+
const srcs = files.expand(rule.attrs.get('srcs')?.list ?? [], rule.label)
|
|
514
|
+
const deps = depsOf(rule)
|
|
515
|
+
const inherited = deps.map(propagatedOf)
|
|
516
|
+
const includes = [
|
|
517
|
+
...new Set([
|
|
518
|
+
...propagatedOf(rule).includes,
|
|
519
|
+
...inherited.flatMap((value) => value.includes),
|
|
520
|
+
]),
|
|
521
|
+
]
|
|
522
|
+
const defines = [
|
|
523
|
+
...new Set([
|
|
524
|
+
...(rule.attrs.get('local_defines')?.list ?? []),
|
|
525
|
+
...propagatedOf(rule).defines,
|
|
526
|
+
]),
|
|
527
|
+
]
|
|
528
|
+
collectData(rule)
|
|
529
|
+
// c-family options pass through bazel's bourne shell tokenization; swift's do not
|
|
530
|
+
const copts =
|
|
531
|
+
rule.ruleClass === 'swift_library'
|
|
532
|
+
? (rule.attrs.get('copts')?.list ?? [])
|
|
533
|
+
: shellTokens(rule.attrs.get('copts')?.list ?? [])
|
|
534
|
+
const base = {
|
|
535
|
+
id: idOf(rule),
|
|
536
|
+
name: moduleName,
|
|
537
|
+
targetIdentity: rule.label,
|
|
538
|
+
targetDependencies: deps.map((dep) => dep.label),
|
|
539
|
+
moduleName,
|
|
540
|
+
resources: [],
|
|
541
|
+
resourceNames: {},
|
|
542
|
+
copiedFiles: [],
|
|
543
|
+
generatedInfoPlist: false,
|
|
544
|
+
languageMode: 5,
|
|
545
|
+
mainActorIsolation: false,
|
|
546
|
+
iosDeploymentTarget: minimumOS,
|
|
547
|
+
// rules_apple compiles catalogs with actool but never generates symbols
|
|
548
|
+
assetSettings: {
|
|
549
|
+
IPHONEOS_DEPLOYMENT_TARGET: minimumOS,
|
|
550
|
+
ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOLS: 'NO',
|
|
551
|
+
},
|
|
552
|
+
packageProducts: [],
|
|
553
|
+
} satisfies Partial<XcodeModuleTarget>
|
|
554
|
+
if (rule.ruleClass === 'swift_library') {
|
|
555
|
+
const sources = srcs.filter((file) => file.endsWith('.swift'))
|
|
556
|
+
const packageName = rule.attrs.get('package_name')?.value
|
|
557
|
+
// swift sees its clang dependencies' include directories and macros as bazel passes them
|
|
558
|
+
const importer = [
|
|
559
|
+
...includes.flatMap((dir) => ['-Xcc', `-I${dir}`]),
|
|
560
|
+
...inherited
|
|
561
|
+
.flatMap((value) => value.defines)
|
|
562
|
+
.flatMap((define) => ['-Xcc', `-D${define}`]),
|
|
563
|
+
// rules_swift hands swift each clang dependency's module map
|
|
564
|
+
...[...new Set(inherited.flatMap((value) => value.moduleMaps))].flatMap((map) => [
|
|
565
|
+
'-Xcc',
|
|
566
|
+
`-fmodule-map-file=${map}`,
|
|
567
|
+
]),
|
|
568
|
+
]
|
|
569
|
+
return {
|
|
570
|
+
...base,
|
|
571
|
+
sources,
|
|
572
|
+
allSources: sources,
|
|
573
|
+
defines: [
|
|
574
|
+
...(debug ? ['DEBUG'] : []),
|
|
575
|
+
...copts.flatMap((flag, at) =>
|
|
576
|
+
flag === '-D'
|
|
577
|
+
? [copts[at + 1]!]
|
|
578
|
+
: flag.startsWith('-D')
|
|
579
|
+
? [flag.slice(2)]
|
|
580
|
+
: [],
|
|
581
|
+
),
|
|
582
|
+
],
|
|
583
|
+
swift: {
|
|
584
|
+
flags: [
|
|
585
|
+
...(debug ? ['-Onone', '-enable-testing'] : ['-O']),
|
|
586
|
+
...copts.filter(
|
|
587
|
+
(flag, at) => !flag.startsWith('-D') && copts[at - 1] !== '-D',
|
|
588
|
+
),
|
|
589
|
+
...importer,
|
|
590
|
+
// the package rules_swift names only when asked
|
|
591
|
+
...(packageName ? ['-package-name', packageName] : []),
|
|
592
|
+
],
|
|
593
|
+
includePaths: [],
|
|
594
|
+
cxxInterop: false,
|
|
595
|
+
cxxStandard: null,
|
|
596
|
+
compatibility: null,
|
|
597
|
+
},
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
// objc_library and cc_library: clang units with bazel's propagated search paths
|
|
601
|
+
const hdrs = files.expand(
|
|
602
|
+
[
|
|
603
|
+
...(rule.attrs.get('hdrs')?.list ?? []),
|
|
604
|
+
...(rule.attrs.get('textual_hdrs')?.list ?? []),
|
|
605
|
+
],
|
|
606
|
+
rule.label,
|
|
607
|
+
)
|
|
608
|
+
const units = srcs.filter((file) => NATIVE_SOURCE.test(file))
|
|
609
|
+
const objc = rule.ruleClass === 'objc_library'
|
|
610
|
+
const modular = objc && rule.attrs.get('enable_modules')?.bool === true
|
|
611
|
+
const moduleMap = moduleMapOf(rule)
|
|
612
|
+
const published = hdrs.filter((file) => HEADER.test(file))
|
|
613
|
+
// the module map rules_cc and rules_apple write, naming each header in place,
|
|
614
|
+
// so an include through the library's search path is the module's own file
|
|
615
|
+
const textual = new Set(
|
|
616
|
+
files.expand(rule.attrs.get('textual_hdrs')?.list ?? [], rule.label),
|
|
617
|
+
)
|
|
618
|
+
const text = `module ${moduleName} {\n${published
|
|
619
|
+
.map(
|
|
620
|
+
(file) =>
|
|
621
|
+
` ${textual.has(file) ? 'textual header' : 'header'} "${path.relative(path.dirname(moduleMap), file)}"\n`,
|
|
622
|
+
)
|
|
623
|
+
.join('')} export *\n}\n`
|
|
624
|
+
fs.mkdirSync(path.dirname(moduleMap), { recursive: true })
|
|
625
|
+
if (!fs.existsSync(moduleMap) || fs.readFileSync(moduleMap, 'utf8') !== text)
|
|
626
|
+
fs.writeFileSync(moduleMap, text)
|
|
627
|
+
const clangDefines = [...(debug ? ['DEBUG=1'] : []), ...defines].map(
|
|
628
|
+
(define) => `-D${define}`,
|
|
629
|
+
)
|
|
630
|
+
return {
|
|
631
|
+
...base,
|
|
632
|
+
sources: [],
|
|
633
|
+
allSources: units,
|
|
634
|
+
defines: [],
|
|
635
|
+
objc: {
|
|
636
|
+
alwayslink: rule.attrs.get('alwayslink')?.bool === true,
|
|
637
|
+
headers: [
|
|
638
|
+
...new Set([...published, ...srcs.filter((file) => HEADER.test(file))]),
|
|
639
|
+
],
|
|
640
|
+
publicHeaders: published,
|
|
641
|
+
flattensPublicHeaders: false,
|
|
642
|
+
prefixHeader: null,
|
|
643
|
+
bridgingHeader: null,
|
|
644
|
+
headerSearchPaths: includes,
|
|
645
|
+
// bazel's execroot and output tree are quote include roots
|
|
646
|
+
userHeaderSearchPaths: [root, graph.bin],
|
|
647
|
+
frameworkSearchPaths: [products],
|
|
648
|
+
flags: [
|
|
649
|
+
objc ? '-fobjc-arc' : '-fno-objc-arc',
|
|
650
|
+
...(modular ? ['-fmodules'] : []),
|
|
651
|
+
...clangDefines,
|
|
652
|
+
...copts.filter((flag) => !CXX_STANDARD.test(flag)),
|
|
653
|
+
],
|
|
654
|
+
importerFlags: [...(modular ? ['-fmodules'] : []), ...clangDefines],
|
|
655
|
+
// apple clang keeps c++ and objective-c++ units out of modules unless asked
|
|
656
|
+
cxxFlags: [
|
|
657
|
+
...(modular ? ['-fno-cxx-modules'] : []),
|
|
658
|
+
// copts reach every unit, and a c++ standard among them governs the c++ ones
|
|
659
|
+
...copts.filter((flag) => CXX_STANDARD.test(flag)),
|
|
660
|
+
...shellTokens(rule.attrs.get('cxxopts')?.list ?? []),
|
|
661
|
+
],
|
|
662
|
+
fileFlags: {},
|
|
663
|
+
headerMaps: [],
|
|
664
|
+
productHeaders: { [moduleMap]: moduleMap },
|
|
665
|
+
},
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
const built = order.map((rule) => ({ rule, module: moduleTarget(rule) }))
|
|
670
|
+
const appParts = built.filter(({ rule }) => appLabels.has(rule.label))
|
|
671
|
+
const swiftParts = appParts.filter(({ module }) => module.sources.length > 0)
|
|
672
|
+
const clangParts = appParts.filter(({ module }) => module.objc)
|
|
673
|
+
if (swiftParts.length > 1 || clangParts.length > 1)
|
|
674
|
+
throw new Error(
|
|
675
|
+
`${label} links ${swiftParts.length} swift and ${clangParts.length} clang libraries directly; one app module of each is modeled`,
|
|
676
|
+
)
|
|
677
|
+
const named = swiftParts[0]?.module ?? appParts[0]!.module
|
|
678
|
+
const appModule: XcodeModuleTarget = {
|
|
679
|
+
...named,
|
|
680
|
+
id: idOf(graph.app),
|
|
681
|
+
name: targetName,
|
|
682
|
+
targetIdentity: graph.app.label,
|
|
683
|
+
targetDependencies: [
|
|
684
|
+
...new Set(appParts.flatMap(({ module }) => module.targetDependencies)),
|
|
685
|
+
].filter((dep) => !appLabels.has(dep)),
|
|
686
|
+
allSources: appParts.flatMap(({ module }) => module.allSources),
|
|
687
|
+
...(clangParts[0]?.module.objc ? { objc: clangParts[0].module.objc } : {}),
|
|
688
|
+
}
|
|
689
|
+
const frameworks = built
|
|
690
|
+
.filter(({ rule }) => !appLabels.has(rule.label))
|
|
691
|
+
.map(({ module }) => module)
|
|
692
|
+
// prebuilt frameworks an app links, at their declared bundles
|
|
693
|
+
const binaryFrameworks = [
|
|
694
|
+
...new Map(
|
|
695
|
+
order
|
|
696
|
+
.flatMap((rule) =>
|
|
697
|
+
(rule.attrs.get('deps')?.list ?? []).map((dep) => ruleOf(dep, rule.label)),
|
|
698
|
+
)
|
|
699
|
+
.filter((dep) => dep.ruleClass.endsWith('_xcframework_import'))
|
|
700
|
+
.flatMap((dep) => {
|
|
701
|
+
const bundle = files
|
|
702
|
+
.expand(dep.attrs.get('xcframework_imports')?.list ?? [], dep.label)
|
|
703
|
+
.map((file) =>
|
|
704
|
+
file.slice(0, file.indexOf('.xcframework/') + '.xcframework'.length),
|
|
705
|
+
)
|
|
706
|
+
.find((file) => file.endsWith('.xcframework'))
|
|
707
|
+
return bundle ? [[path.basename(bundle, '.xcframework'), bundle] as const] : []
|
|
708
|
+
}),
|
|
709
|
+
),
|
|
710
|
+
].map(([name, file]): XcodeAppTarget['binaryFrameworks'][number] => ({
|
|
711
|
+
name,
|
|
712
|
+
path: file,
|
|
713
|
+
}))
|
|
714
|
+
// the cargo package around a crate root, which the rule builds with exactly its features
|
|
715
|
+
const rustCrateOf = (rule: Rule): RustCrateDeclaration => {
|
|
716
|
+
const crateRoot = files.expand(
|
|
717
|
+
[rule.attrs.get('crate_root')?.value ?? ''],
|
|
718
|
+
rule.label,
|
|
719
|
+
)[0]
|
|
720
|
+
let dir = crateRoot ? path.dirname(crateRoot) : root
|
|
721
|
+
while (
|
|
722
|
+
!fs.existsSync(path.join(dir, 'Cargo.toml')) &&
|
|
723
|
+
dir.startsWith(`${root}${path.sep}`)
|
|
724
|
+
)
|
|
725
|
+
dir = path.dirname(dir)
|
|
726
|
+
const manifest = path.join(dir, 'Cargo.toml')
|
|
727
|
+
if (!fs.existsSync(manifest))
|
|
728
|
+
throw new Error(`${rule.label} has no Cargo.toml around its crate root`)
|
|
729
|
+
return { manifest, features: rule.attrs.get('crate_features')?.list ?? [] }
|
|
730
|
+
}
|
|
731
|
+
const sdkFrameworks = [
|
|
732
|
+
...new Set(
|
|
733
|
+
order.flatMap((rule) => [
|
|
734
|
+
...(rule.attrs.get('sdk_frameworks')?.list ?? []),
|
|
735
|
+
...(rule.attrs.get('weak_sdk_frameworks')?.list ?? []),
|
|
736
|
+
]),
|
|
737
|
+
),
|
|
738
|
+
].sort()
|
|
739
|
+
const infoPlistFiles = files.expand(
|
|
740
|
+
graph.app.attrs.get('infoplists')?.list ?? [],
|
|
741
|
+
graph.app.label,
|
|
742
|
+
)
|
|
743
|
+
const absent = () =>
|
|
744
|
+
[
|
|
745
|
+
...infoPlistFiles,
|
|
746
|
+
...[...frameworks, appModule].flatMap((module) => [
|
|
747
|
+
...module.allSources,
|
|
748
|
+
...(module.objc?.headers ?? []),
|
|
749
|
+
]),
|
|
750
|
+
].filter((file) => !fs.existsSync(file))
|
|
751
|
+
// a compile reads only inside the workspace, so the generated files the app
|
|
752
|
+
// reads are copied out of bazel's output tree beside the sources
|
|
753
|
+
const mirror = () => {
|
|
754
|
+
for (const rule of graph.rules.values())
|
|
755
|
+
for (const output of rule.outputs) {
|
|
756
|
+
const target = files.path(output)
|
|
757
|
+
// an archive a generator builds is a device binary no compile reads
|
|
758
|
+
if (target.endsWith('.a')) continue
|
|
759
|
+
const source = path.join(graph.outputs, path.relative(graph.bin, target))
|
|
760
|
+
if (!fs.existsSync(source)) continue
|
|
761
|
+
const from = fs.statSync(source)
|
|
762
|
+
const to = fs.existsSync(target) ? fs.statSync(target) : null
|
|
763
|
+
if (to && to.mtimeMs === from.mtimeMs && to.size === from.size) continue
|
|
764
|
+
fs.rmSync(target, { recursive: true, force: true })
|
|
765
|
+
fs.mkdirSync(path.dirname(target), { recursive: true })
|
|
766
|
+
fs.cpSync(source, target, {
|
|
767
|
+
recursive: true,
|
|
768
|
+
dereference: true,
|
|
769
|
+
preserveTimestamps: true,
|
|
770
|
+
})
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
mirror()
|
|
774
|
+
// bazel runs the app's own generators, as xcode runs a phase that declares swift outputs
|
|
775
|
+
if (options.prepareGeneratedSources && absent().length > 0) {
|
|
776
|
+
const owners = new Map<string, string>()
|
|
777
|
+
for (const rule of graph.rules.values())
|
|
778
|
+
for (const output of rule.outputs) owners.set(files.path(output), rule.label)
|
|
779
|
+
const generators = [
|
|
780
|
+
...new Set(absent().flatMap((file) => owners.get(file) ?? [])),
|
|
781
|
+
].sort()
|
|
782
|
+
if (generators.length > 0)
|
|
783
|
+
execFileSync(
|
|
784
|
+
bazelBinary(root),
|
|
785
|
+
['build', ...configurationFlags(configuration), ...generators],
|
|
786
|
+
{ cwd: root, stdio: ['ignore', 'pipe', 'pipe'], maxBuffer: 1 << 28 },
|
|
787
|
+
)
|
|
788
|
+
mirror()
|
|
789
|
+
}
|
|
790
|
+
const missing = options.requireSources === false ? [] : absent()
|
|
791
|
+
if (missing.length > 0)
|
|
792
|
+
throw new Error(
|
|
793
|
+
`bazel generates ${missing.length} sources this app compiles that are not built: ${missing
|
|
794
|
+
.slice(0, 5)
|
|
795
|
+
.map((file) => path.relative(root, file))
|
|
796
|
+
.join(', ')}`,
|
|
797
|
+
)
|
|
798
|
+
// a native archive the app links (a rust crate, or one a generator builds for
|
|
799
|
+
// the device) is a vendored library: it stands in from the headers of the
|
|
800
|
+
// libraries that link it, as an xcframework library slice carries them
|
|
801
|
+
const archives = new Map<
|
|
802
|
+
string,
|
|
803
|
+
{ library: string; holders: Rule[]; rustCrate?: RustCrateDeclaration }
|
|
804
|
+
>()
|
|
805
|
+
for (const rule of order) {
|
|
806
|
+
for (const dep of rule.attrs.get('deps')?.list ?? []) {
|
|
807
|
+
const owner = ruleOf(dep, rule.label)
|
|
808
|
+
if (owner.ruleClass !== 'rust_static_library') continue
|
|
809
|
+
const crate = owner.attrs.get('crate_name')?.value || splitLabel(owner.label).name
|
|
810
|
+
const entry = archives.get(owner.label) ?? {
|
|
811
|
+
library: `lib${crate}.a`,
|
|
812
|
+
holders: [],
|
|
813
|
+
rustCrate: rustCrateOf(owner),
|
|
814
|
+
}
|
|
815
|
+
entry.holders.push(rule)
|
|
816
|
+
archives.set(owner.label, entry)
|
|
817
|
+
}
|
|
818
|
+
for (const raw of rule.attrs.get('srcs')?.list ?? []) {
|
|
819
|
+
const label = canonicalLabel(raw, rule.label)
|
|
820
|
+
for (const archive of files
|
|
821
|
+
.expand([raw], rule.label)
|
|
822
|
+
.filter((file) => file.endsWith('.a'))) {
|
|
823
|
+
const owner = [...graph.rules.values()].find((item) =>
|
|
824
|
+
item.outputs.some((output) => files.path(output) === archive),
|
|
825
|
+
)
|
|
826
|
+
const key = owner?.label ?? label
|
|
827
|
+
const entry = archives.get(key) ?? {
|
|
828
|
+
library: path.basename(archive),
|
|
829
|
+
holders: [],
|
|
830
|
+
}
|
|
831
|
+
if (!entry.holders.includes(rule)) entry.holders.push(rule)
|
|
832
|
+
archives.set(key, entry)
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
// the headers the app's own c-family files name, which bound what a stand-in declares
|
|
837
|
+
const appIncludes = new Set(
|
|
838
|
+
archives.size === 0
|
|
839
|
+
? []
|
|
840
|
+
: [...frameworks, appModule].flatMap((module) =>
|
|
841
|
+
[
|
|
842
|
+
...module.allSources.filter((file) => !file.endsWith('.swift')),
|
|
843
|
+
...(module.objc?.headers ?? []),
|
|
844
|
+
]
|
|
845
|
+
.filter((file) => fs.existsSync(file))
|
|
846
|
+
.flatMap((file) =>
|
|
847
|
+
[
|
|
848
|
+
...fs
|
|
849
|
+
.readFileSync(file, 'utf8')
|
|
850
|
+
.matchAll(/^\s*#\s*(?:include|import)\s*[<"]([^>"\n]+)[>"]/gm),
|
|
851
|
+
].map((match) => match[1]!),
|
|
852
|
+
),
|
|
853
|
+
),
|
|
854
|
+
)
|
|
855
|
+
for (const [label, { library, holders, rustCrate }] of archives) {
|
|
856
|
+
const linkers = new Set(holders)
|
|
857
|
+
for (const rule of order)
|
|
858
|
+
if (depsOf(rule).some((dep) => holders.includes(dep))) linkers.add(rule)
|
|
859
|
+
const headers = [...linkers].flatMap((rule) => {
|
|
860
|
+
const includes = propagatedOf(rule).includes
|
|
861
|
+
return files
|
|
862
|
+
.expand(
|
|
863
|
+
[
|
|
864
|
+
...(rule.attrs.get('hdrs')?.list ?? []),
|
|
865
|
+
...(rule.attrs.get('textual_hdrs')?.list ?? []),
|
|
866
|
+
],
|
|
867
|
+
rule.label,
|
|
868
|
+
)
|
|
869
|
+
.filter((file) => /\.(?:h|hh|hpp|hxx|inc)$/.test(file))
|
|
870
|
+
.map((file) => {
|
|
871
|
+
const include = includes.find((dir) => file.startsWith(`${dir}${path.sep}`))
|
|
872
|
+
return {
|
|
873
|
+
file,
|
|
874
|
+
name: include ? path.relative(include, file) : path.basename(file),
|
|
875
|
+
}
|
|
876
|
+
})
|
|
877
|
+
})
|
|
878
|
+
const name = `${splitLabel(label).name}`
|
|
879
|
+
// a module a swift source imports exposes every header; otherwise the app
|
|
880
|
+
// reaches the headers it includes, and they reach the rest
|
|
881
|
+
const imported = new Set(
|
|
882
|
+
[...linkers]
|
|
883
|
+
.filter((rule) => rule.attrs.get('module_name')?.value)
|
|
884
|
+
.flatMap((rule) => files.expand(rule.attrs.get('hdrs')?.list ?? [], rule.label)),
|
|
885
|
+
)
|
|
886
|
+
const entries = headers.filter(
|
|
887
|
+
(header) =>
|
|
888
|
+
imported.has(header.file) ||
|
|
889
|
+
[...appIncludes].some(
|
|
890
|
+
(include) => header.name === include || header.name.endsWith(`/${include}`),
|
|
891
|
+
),
|
|
892
|
+
)
|
|
893
|
+
const bundle = path.join(products, 'archives', `${name}.xcframework`)
|
|
894
|
+
const slice = path.join(bundle, 'ios-arm64-simulator')
|
|
895
|
+
const contents = new Map<string, Buffer | string>([
|
|
896
|
+
[
|
|
897
|
+
'Info.plist',
|
|
898
|
+
plist.build({
|
|
899
|
+
AvailableLibraries: [
|
|
900
|
+
{
|
|
901
|
+
LibraryIdentifier: 'ios-arm64-simulator',
|
|
902
|
+
LibraryPath: library,
|
|
903
|
+
HeadersPath: 'Headers',
|
|
904
|
+
SupportedArchitectures: ['arm64'],
|
|
905
|
+
SupportedPlatform: 'ios',
|
|
906
|
+
SupportedPlatformVariant: 'simulator',
|
|
907
|
+
},
|
|
908
|
+
],
|
|
909
|
+
CFBundlePackageType: 'XFWK',
|
|
910
|
+
XCFrameworkFormatVersion: '1.0',
|
|
911
|
+
}),
|
|
912
|
+
],
|
|
913
|
+
// c library headers may lean on the standard ones their callers include first
|
|
914
|
+
[
|
|
915
|
+
path.join('ios-arm64-simulator', 'Headers', `${name}.h`),
|
|
916
|
+
[
|
|
917
|
+
'#include <stddef.h>',
|
|
918
|
+
'#include <stdio.h>',
|
|
919
|
+
...entries.map((header) => `#include "${header.name}"`),
|
|
920
|
+
].join('\n') + '\n',
|
|
921
|
+
],
|
|
922
|
+
[
|
|
923
|
+
path.join('ios-arm64-simulator', 'Headers', 'module.modulemap'),
|
|
924
|
+
`module ${name} {\n header "${name}.h"\n export *\n}\n`,
|
|
925
|
+
],
|
|
926
|
+
...headers.map(
|
|
927
|
+
(header) =>
|
|
928
|
+
[
|
|
929
|
+
path.join('ios-arm64-simulator', 'Headers', header.name),
|
|
930
|
+
fs.readFileSync(header.file),
|
|
931
|
+
] as const,
|
|
932
|
+
),
|
|
933
|
+
])
|
|
934
|
+
// the device archive is a name to look a wasm build up by; its machine code never links
|
|
935
|
+
const digest = createHash('sha256')
|
|
936
|
+
.update(
|
|
937
|
+
JSON.stringify(
|
|
938
|
+
[...contents].map(([file, bytes]) => [
|
|
939
|
+
file,
|
|
940
|
+
createHash('sha256').update(bytes).digest('hex'),
|
|
941
|
+
]),
|
|
942
|
+
),
|
|
943
|
+
)
|
|
944
|
+
.digest('hex')
|
|
945
|
+
const stamp = path.join(bundle, '.peach-digest')
|
|
946
|
+
if (!fs.existsSync(stamp) || fs.readFileSync(stamp, 'utf8') !== digest) {
|
|
947
|
+
fs.rmSync(bundle, { recursive: true, force: true })
|
|
948
|
+
for (const [file, bytes] of contents) {
|
|
949
|
+
fs.mkdirSync(path.dirname(path.join(bundle, file)), { recursive: true })
|
|
950
|
+
fs.writeFileSync(path.join(bundle, file), bytes)
|
|
951
|
+
}
|
|
952
|
+
fs.writeFileSync(path.join(slice, library), '')
|
|
953
|
+
fs.writeFileSync(stamp, digest)
|
|
954
|
+
}
|
|
955
|
+
binaryFrameworks.push({ name, path: bundle, rustCrate })
|
|
956
|
+
}
|
|
957
|
+
// rules_apple merges the fragments, substitutes the bundle's names and forces
|
|
958
|
+
// the keys its bundling owns (plisttool and the info_plist partial)
|
|
959
|
+
const appName = splitLabel(graph.app.label).name
|
|
960
|
+
const executableName = graph.app.attrs.get('executable_name')?.value || appName
|
|
961
|
+
const bundleName = graph.app.attrs.get('bundle_name')?.value || appName
|
|
962
|
+
const bundleId = graph.app.attrs.get('bundle_id')?.value ?? ''
|
|
963
|
+
const substitutions: Record<string, string> = {
|
|
964
|
+
BUNDLE_NAME: bundleName,
|
|
965
|
+
EXECUTABLE_NAME: executableName,
|
|
966
|
+
PRODUCT_NAME: bundleName,
|
|
967
|
+
TARGET_NAME: appName,
|
|
968
|
+
PRODUCT_BUNDLE_IDENTIFIER: bundleId,
|
|
969
|
+
PRODUCT_BUNDLE_PACKAGE_TYPE: 'APPL',
|
|
970
|
+
}
|
|
971
|
+
const substitute = (value: plist.PlistValue): plist.PlistValue =>
|
|
972
|
+
typeof value === 'string'
|
|
973
|
+
? value.replace(
|
|
974
|
+
/\$[({](\w+)(?::rfc1034identifier)?[)}]/g,
|
|
975
|
+
(whole, key: string) => substitutions[key] ?? whole,
|
|
976
|
+
)
|
|
977
|
+
: Array.isArray(value)
|
|
978
|
+
? value.map(substitute)
|
|
979
|
+
: value &&
|
|
980
|
+
typeof value === 'object' &&
|
|
981
|
+
!(value instanceof Date) &&
|
|
982
|
+
!Buffer.isBuffer(value)
|
|
983
|
+
? Object.fromEntries(
|
|
984
|
+
Object.entries(value).map(([key, item]) => [key, substitute(item)]),
|
|
985
|
+
)
|
|
986
|
+
: value
|
|
987
|
+
// the fragments exist once their generators ran
|
|
988
|
+
const infoPlistReady = infoPlistFiles.every((file) => fs.existsSync(file))
|
|
989
|
+
const info: Record<string, plist.PlistValue> = {}
|
|
990
|
+
for (const file of infoPlistReady ? infoPlistFiles : []) {
|
|
991
|
+
const fragment = plist.parse(fs.readFileSync(file, 'utf8'))
|
|
992
|
+
if (
|
|
993
|
+
!fragment ||
|
|
994
|
+
typeof fragment !== 'object' ||
|
|
995
|
+
Array.isArray(fragment) ||
|
|
996
|
+
fragment instanceof Date ||
|
|
997
|
+
Buffer.isBuffer(fragment)
|
|
998
|
+
)
|
|
999
|
+
throw new Error(`${file} is not a plist dictionary`)
|
|
1000
|
+
for (const [key, value] of Object.entries(fragment)) {
|
|
1001
|
+
const next = substitute(value)
|
|
1002
|
+
if (key in info && JSON.stringify(info[key]) !== JSON.stringify(next))
|
|
1003
|
+
throw new Error(
|
|
1004
|
+
`${graph.app.label} infoplists set ${key} twice with different values`,
|
|
1005
|
+
)
|
|
1006
|
+
info[key] = next
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
const families = graph.app.attrs.get('families')?.list ?? ['iphone']
|
|
1010
|
+
Object.assign(info, {
|
|
1011
|
+
CFBundleIdentifier: bundleId,
|
|
1012
|
+
CFBundleExecutable: executableName,
|
|
1013
|
+
CFBundleName: bundleName,
|
|
1014
|
+
CFBundlePackageType: 'APPL',
|
|
1015
|
+
CFBundleSupportedPlatforms: ['iPhoneSimulator'],
|
|
1016
|
+
MinimumOSVersion: minimumOS,
|
|
1017
|
+
UIDeviceFamily: families.map((family) => (family === 'ipad' ? 2 : 1)),
|
|
1018
|
+
})
|
|
1019
|
+
const buildFiles = [
|
|
1020
|
+
...new Set(
|
|
1021
|
+
order.map((rule) => path.join(files.packageDirs(rule.label)[0]!, 'BUILD')),
|
|
1022
|
+
),
|
|
1023
|
+
]
|
|
1024
|
+
.map((file) => (fs.existsSync(file) ? file : `${file}.bazel`))
|
|
1025
|
+
.filter((file) => fs.existsSync(file))
|
|
1026
|
+
return {
|
|
1027
|
+
...appModule,
|
|
1028
|
+
resources: [...new Set(resources)],
|
|
1029
|
+
resourceNames,
|
|
1030
|
+
sourceLinkGraph: {
|
|
1031
|
+
entry: appModule.id,
|
|
1032
|
+
targets: [
|
|
1033
|
+
{
|
|
1034
|
+
id: appModule.id,
|
|
1035
|
+
sourceTarget: appModule.moduleName,
|
|
1036
|
+
productName: `${targetName}.app`,
|
|
1037
|
+
productType: 'com.apple.product-type.application',
|
|
1038
|
+
installName: null,
|
|
1039
|
+
buildVersion: { platform: 'iphonesimulator', minimumOS, sdk: null },
|
|
1040
|
+
machOType: 'mh_execute',
|
|
1041
|
+
linkerFlags: appLibraries.flatMap((rule) =>
|
|
1042
|
+
shellTokens(rule.attrs.get('linkopts')?.list ?? []),
|
|
1043
|
+
),
|
|
1044
|
+
dependencies: appModule.targetDependencies.map((dep) => ({
|
|
1045
|
+
target: idOf(ruleOf(dep, label)),
|
|
1046
|
+
attributes: [],
|
|
1047
|
+
})),
|
|
1048
|
+
},
|
|
1049
|
+
...built
|
|
1050
|
+
.filter(({ rule }) => !appLabels.has(rule.label))
|
|
1051
|
+
.map(({ rule, module }) => ({
|
|
1052
|
+
id: module.id,
|
|
1053
|
+
sourceTarget: module.allSources.length > 0 ? module.moduleName : null,
|
|
1054
|
+
productName: `${module.moduleName}.framework`,
|
|
1055
|
+
productType: 'com.apple.product-type.framework.static',
|
|
1056
|
+
installName: null,
|
|
1057
|
+
buildVersion: { platform: 'iphonesimulator', minimumOS, sdk: null },
|
|
1058
|
+
machOType: 'staticlib',
|
|
1059
|
+
linkerFlags: shellTokens(rule.attrs.get('linkopts')?.list ?? []),
|
|
1060
|
+
dependencies: depsOf(rule).map((dep) => ({
|
|
1061
|
+
target: idOf(dep),
|
|
1062
|
+
attributes: [],
|
|
1063
|
+
})),
|
|
1064
|
+
})),
|
|
1065
|
+
],
|
|
1066
|
+
},
|
|
1067
|
+
rootDir: root,
|
|
1068
|
+
projectFiles: buildFiles.sort(),
|
|
1069
|
+
projectDirs: [root],
|
|
1070
|
+
infoPlist: infoPlistReady ? plist.build(info) : null,
|
|
1071
|
+
infoPlistFile: null,
|
|
1072
|
+
postBundleScripts: [],
|
|
1073
|
+
appIconName: '',
|
|
1074
|
+
developmentRegion: 'en',
|
|
1075
|
+
frameworks,
|
|
1076
|
+
resourceProducts: [],
|
|
1077
|
+
linkedProducts: [],
|
|
1078
|
+
localPackageDirs: [],
|
|
1079
|
+
binaryFrameworks,
|
|
1080
|
+
sdkFrameworks,
|
|
1081
|
+
packageResolved: [],
|
|
1082
|
+
appTargets: [targetName],
|
|
1083
|
+
configuration,
|
|
1084
|
+
settings: (key) =>
|
|
1085
|
+
key === 'PRODUCT_MODULE_NAME'
|
|
1086
|
+
? appModule.moduleName
|
|
1087
|
+
: key === 'IPHONEOS_DEPLOYMENT_TARGET'
|
|
1088
|
+
? minimumOS
|
|
1089
|
+
: key === 'PRODUCT_BUNDLE_IDENTIFIER'
|
|
1090
|
+
? (graph.app.attrs.get('bundle_id')?.value ?? '')
|
|
1091
|
+
: '',
|
|
1092
|
+
cocoapods: null,
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
// bazel's ShellUtils.tokenize: whitespace splits words, single quotes are
|
|
1097
|
+
// literal, double quotes and a backslash escape the next character
|
|
1098
|
+
const CXX_STANDARD = /^-std=(?:c|gnu)\+\+/
|
|
1099
|
+
|
|
1100
|
+
function shellTokens(options: readonly string[]): string[] {
|
|
1101
|
+
return options.flatMap((option) => {
|
|
1102
|
+
const words: string[] = []
|
|
1103
|
+
let word = ''
|
|
1104
|
+
let started = false
|
|
1105
|
+
let quote: "'" | '"' | null = null
|
|
1106
|
+
for (let at = 0; at < option.length; at++) {
|
|
1107
|
+
const char = option[at]!
|
|
1108
|
+
if (quote === "'") {
|
|
1109
|
+
if (char === "'") quote = null
|
|
1110
|
+
else word += char
|
|
1111
|
+
} else if (char === '\\' && at + 1 < option.length) {
|
|
1112
|
+
word += option[++at]
|
|
1113
|
+
started = true
|
|
1114
|
+
} else if (quote === '"') {
|
|
1115
|
+
if (char === '"') quote = null
|
|
1116
|
+
else word += char
|
|
1117
|
+
} else if (char === "'" || char === '"') {
|
|
1118
|
+
quote = char
|
|
1119
|
+
started = true
|
|
1120
|
+
} else if (/\s/.test(char)) {
|
|
1121
|
+
if (started) words.push(word)
|
|
1122
|
+
word = ''
|
|
1123
|
+
started = false
|
|
1124
|
+
} else {
|
|
1125
|
+
word += char
|
|
1126
|
+
started = true
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
if (quote) throw new Error(`unterminated quotation in bazel option: ${option}`)
|
|
1130
|
+
if (started) words.push(word)
|
|
1131
|
+
return words
|
|
1132
|
+
})
|
|
1133
|
+
}
|