peachsim 0.1.2305 → 0.1.2363
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/cli/cdp.ts +81 -0
- package/cli/cloud-box-artifact.ts +6 -1
- package/cli/cloud-client.ts +19 -0
- package/cli/command-registry.ts +1 -0
- package/cli/commands/box/bundle-plane.ts +28 -4
- package/cli/commands/box.ts +13 -8
- package/cli/commands/canvas.ts +752 -0
- package/cli/commands/cleanup.ts +2 -0
- package/cli/commands/control.ts +22 -6
- package/cli/commands/cpu-profile.ts +1 -80
- package/cli/commands/debug.ts +73 -5
- package/cli/commands/flow.ts +1 -1
- package/cli/commands/inspect/actions.ts +3 -1
- package/cli/commands/inspect/core.ts +18 -5
- package/cli/commands/inspect/settling.ts +20 -19
- package/cli/commands/inspect.ts +24 -14
- package/cli/commands/map.ts +31 -8
- package/cli/commands/platform.ts +89 -7
- package/cli/commands/serve.ts +66 -4
- package/cli/commands/shell-url.ts +25 -5
- package/cli/commands/task-trace.ts +234 -0
- package/cli/dev-build-freshness.ts +151 -49
- package/cli/drivers/linux-cocoapods.lock.json +303 -0
- package/cli/drivers/linux-cocoapods.ts +99 -0
- package/cli/drivers/playwright.ts +1 -5
- package/cli/internal-child-contract.ts +1 -0
- package/cli/internal-child.ts +6 -0
- package/cli/main.ts +6 -0
- package/cli/outbound-endpoints.ts +35 -2
- package/cli/output-redaction.ts +1 -1
- package/cli/remote-metro.ts +109 -0
- package/cli/task-trace.ts +166 -0
- package/cli/taskTraceContract.ts +53 -0
- package/cli/ws-bridge.ts +11 -4
- package/detox/gestures.ts +4 -4
- package/detox/index.ts +10 -3
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +15224 -9251
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +2 -2
- package/dist-lib/config.mjs +2 -2
- package/dist-lib/detox/index.cjs +79 -55
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +12523 -7211
- package/dist-lib/expo-swift-metadata.cjs +3 -1
- package/dist-lib/expo-swift-metadata.mjs +3 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +12629 -8646
- package/dist-lib/host/fetch-proxy-handler.cjs +432 -206
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +17 -3
- package/dist-lib/index.cjs +2188 -805
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +14 -12
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +2177 -791
- package/dist-lib/native-app-identity-project.cjs +1372 -336
- package/dist-lib/native-app-identity-project.mjs +1480 -437
- package/dist-lib/native-app-identity.cjs +11 -1
- package/dist-lib/native-app-identity.mjs +11 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +33 -26
- package/dist-lib/public-origins-lib.json +219 -124
- package/dist-lib/react-native-host-modules.cjs +26 -2
- package/dist-lib/react-native-host-modules.mjs +24 -2
- package/dist-lib/reap-browser.cjs +2 -2
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +42 -28
- package/dist-lib/sdk.mjs +42 -28
- package/dist-lib/skills.cjs +14042 -9679
- package/dist-lib/swift-compile.cjs +2066 -1691
- package/dist-lib/swift-compile.mjs +1942 -1566
- package/dist-lib/swift-package.cjs +18 -10
- package/dist-lib/swift-package.mjs +18 -10
- package/dist-lib/swift-submit.cjs +2 -2
- package/dist-lib/swift-submit.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +20 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +5345 -3573
- package/dist-lib/vite.cjs +2891 -2523
- package/dist-lib/worklet-executable.cjs +36 -10
- package/dist-lib/worklet-executable.mjs +36 -10
- package/dist-types/packages/peach-compat/src/stubs/native-seams/react-native-gesture-handler.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/cli-companion.d.ts +0 -1
- package/dist-types/packages/peach-engine/src/engine/android-stretch-effect.d.ts +0 -8
- package/dist-types/packages/peach-engine/src/engine/animated-driven-style.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/engine/animated.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/engine/animation-graph.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/engine/audioContract.d.ts +14 -0
- package/dist-types/packages/peach-engine/src/engine/canvaskit-api.d.ts +7 -4
- package/dist-types/packages/peach-engine/src/engine/core-layout-program.d.ts +19 -0
- package/dist-types/packages/peach-engine/src/engine/core-layout-transition.d.ts +31 -0
- package/dist-types/packages/peach-engine/src/engine/debug-channels.d.ts +86 -0
- package/dist-types/packages/peach-engine/src/engine/fiber-debug-metadata.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/generated/node-kind-contract.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/engine/glass-material.d.ts +3 -2
- package/dist-types/packages/peach-engine/src/engine/host-composite.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +5 -2
- package/dist-types/packages/peach-engine/src/engine/inspect-info.d.ts +0 -1
- package/dist-types/packages/peach-engine/src/engine/layout-animation-owner.d.ts +60 -0
- package/dist-types/packages/peach-engine/src/engine/liquid-glass-rect.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +8 -8
- package/dist-types/packages/peach-engine/src/engine/lottie-runtime.d.ts +4 -6
- package/dist-types/packages/peach-engine/src/engine/lottie-types.d.ts +14 -28
- package/dist-types/packages/peach-engine/src/engine/native-animation-driver.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/engine/native-animation-graph.d.ts +8 -10
- package/dist-types/packages/peach-engine/src/engine/native-layout.d.ts +8 -1
- package/dist-types/packages/peach-engine/src/engine/native-node-drive.d.ts +7 -0
- package/dist-types/packages/peach-engine/src/engine/native-node-geometry.d.ts +34 -0
- package/dist-types/packages/peach-engine/src/engine/native-node-record.d.ts +62 -0
- package/dist-types/packages/peach-engine/src/engine/native-node-style-input.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/engine/native-paint.d.ts +95 -0
- package/dist-types/packages/peach-engine/src/engine/{scroll-range.d.ts → native-scroll-geometry.d.ts} +5 -0
- package/dist-types/packages/peach-engine/src/engine/{scroll-platform.d.ts → native-scroll-personality.d.ts} +58 -72
- package/dist-types/packages/peach-engine/src/engine/native-scroll-tracker.d.ts +40 -0
- package/dist-types/packages/peach-engine/src/engine/native-style-store.d.ts +161 -0
- package/dist-types/packages/peach-engine/src/engine/native-text-style.d.ts +56 -0
- package/dist-types/packages/peach-engine/src/engine/native-trace.d.ts +18 -0
- package/dist-types/packages/peach-engine/src/engine/nativePaintContract.d.ts +68 -0
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +53 -112
- package/dist-types/packages/peach-engine/src/engine/paint-boundary-types.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/engine/portals.d.ts +20 -0
- package/dist-types/packages/peach-engine/src/engine/render-damage.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/rn-spring.d.ts +2 -9
- package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +201 -66
- package/dist-types/packages/peach-engine/src/engine/scroll-momentum-math.d.ts +10 -3
- package/dist-types/packages/peach-engine/src/engine/scroll.d.ts +5 -11
- package/dist-types/packages/peach-engine/src/engine/shell-owned-values.d.ts +8 -1
- package/dist-types/packages/peach-engine/src/engine/style-schema.d.ts +296 -0
- package/dist-types/packages/peach-engine/src/engine/text-line-break.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/text-metric-policy.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/engine/text-nested.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/text-paint-receipt.d.ts +2 -3
- package/dist-types/packages/peach-engine/src/engine/text-paint.d.ts +4 -1
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +18 -26
- package/dist-types/packages/peach-engine/src/engine/visible-frame.d.ts +1 -2
- package/dist-types/packages/peach-engine/src/engine/yoga-layout.d.ts +4 -2
- package/dist-types/packages/peach-engine/src/ios/apps/canvas-map-data.d.ts +40 -2
- package/dist-types/packages/peach-engine/src/ios/aux-home-scene.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/kernel/kernel.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/observability/types.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/permissions/system-permission-types.d.ts +2 -3
- package/dist-types/packages/peach-engine/src/platform/android-back-panel.d.ts +15 -55
- package/dist-types/packages/peach-engine/src/platform/personality.d.ts +110 -48
- package/dist-types/packages/peach-engine/src/react-native/gesture-touch-metadata.d.ts +14 -0
- package/dist-types/packages/peach-engine/src/react-native/layout-animation.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/remote-stream/client-config.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +9 -3
- package/dist-types/packages/peach-engine/src/render-worker/accessibilityHostContract.d.ts +65 -0
- package/dist-types/packages/peach-engine/src/render-worker/aux-surface-types.d.ts +33 -1
- package/dist-types/packages/peach-engine/src/render-worker/canvaskit-worker-init.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/compositor-content-readyContract.d.ts +10 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-gpu.d.ts +5 -1
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +81 -9
- package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/layer-claims.d.ts +116 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/layer-fields.d.ts +57 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/layer-tree.d.ts +100 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/presentation-frame-layers.d.ts +42 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/presentation-layers.d.ts +49 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/render-tree.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/transition-program.d.ts +65 -0
- package/dist-types/packages/peach-engine/src/render-worker/gesture-arbitration-native.d.ts +17 -7
- package/dist-types/packages/peach-engine/src/render-worker/gesture-seam-protocol.d.ts +8 -1
- package/dist-types/packages/peach-engine/src/render-worker/graph-linked-value.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +32 -2
- package/dist-types/packages/peach-engine/src/render-worker/native-widgetContract.d.ts +35 -3
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +27 -3
- package/dist-types/packages/peach-engine/src/render-worker/scroll-mirror.d.ts +4 -3
- package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +14 -12
- package/dist-types/packages/peach-engine/src/render-worker/shell-tree-wire.d.ts +23 -3
- package/dist-types/packages/peach-engine/src/render-worker/test-bridge-protocol.d.ts +3 -2
- package/dist-types/packages/peach-engine/src/render-worker/text-inputContract.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/render-worker/tree-sync-port.d.ts +9 -0
- package/dist-types/packages/peach-engine/src/render-worker/webgpu-frame-transaction.d.ts +7 -2
- package/dist-types/packages/peach-engine/src/render-worker/webview-capture-protocol.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/worker-input-runtime.d.ts +4 -6
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +8 -13
- package/dist-types/packages/peach-engine/src/render-worker/worklet-wire.d.ts +9 -24
- package/dist-types/packages/peach-engine/src/settings/device-spec-bus.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/settings/devices.d.ts +3 -0
- package/dist-types/packages/peach-globals/src/electronBridgeContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/globalsContract.d.ts +33 -1
- package/dist-types/packages/peach-globals/src/imagePickerBridgeContract.d.ts +0 -1
- package/dist-types/packages/peach-globals/src/index.d.ts +1 -1
- package/dist-types/packages/peach-globals/src/lockstepCaptureBridgeContract.d.ts +7 -0
- package/dist-types/packages/peach-globals/src/nativeSurfaceContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/nodeContract.d.ts +3 -0
- package/dist-types/packages/peach-globals/src/performanceBridgeContract.d.ts +3 -1
- package/dist-types/packages/peach-globals/src/secure-item-store.d.ts +2 -1
- package/dist-types/packages/peach-globals/src/testBridgeContract.d.ts +11 -0
- package/dist-types/packages/peach-globals/src/timelineBridgeContract.d.ts +2 -1
- package/dist-types/packages/peach-globals/src/webViewBridgeContract.d.ts +65 -0
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +24 -1
- package/dist-types/packages/peach-kit/src/internal.d.ts +2 -1
- package/dist-types/packages/peach-kit/src/runtime.d.ts +2 -2
- package/dist-types/packages/peach-kit/src/transitions/screen-transition-math.d.ts +29 -4
- package/dist-types/packages/peach-kit/src/ui/hosting-safe-area.d.ts +1 -0
- package/dist-types/packages/peach-kit/src/ui/{popover-placement.d.ts → native-popover.d.ts} +13 -8
- package/dist-types/packages/peach-kit/src/ui/native-tab-selection.d.ts +39 -0
- package/dist-types/packages/peach-kit/src/ui/presentationContract.d.ts +21 -0
- package/dist-types/packages/peach-kit/src/ui/swift-layout-contract.d.ts +33 -0
- package/java-platform/licenses/android.txt +4 -0
- package/java-platform/licenses/jzlib.txt +28 -0
- package/java-platform/licenses/openjdk.txt +11 -2
- package/kotlin/README.md +5 -2
- package/kotlin/fork/NOTICE +7 -1
- package/kotlin/sdk.tar.gz +0 -0
- package/kotlin/toolchain.json +9 -9
- package/node-runtime.d.json.ts +4 -0
- package/node-runtime.json +1 -0
- package/package.json +4 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/AddressBook.framework/Headers/ABAddressBook.h +109 -0
- package/sdk/ios/System/Library/Frameworks/AddressBook.framework/Headers/ABGroup.h +41 -0
- package/sdk/ios/System/Library/Frameworks/AddressBook.framework/Headers/ABMultiValue.h +56 -0
- package/sdk/ios/System/Library/Frameworks/AddressBook.framework/Headers/ABPerson.h +208 -0
- package/sdk/ios/System/Library/Frameworks/AddressBook.framework/Headers/ABRecord.h +60 -0
- package/sdk/ios/System/Library/Frameworks/AddressBook.framework/Headers/ABSource.h +49 -0
- package/sdk/ios/System/Library/Frameworks/AddressBook.framework/Headers/AddressBook.h +53 -0
- package/sdk/ios/System/Library/Frameworks/AddressBook.framework/Headers/AddressBookDefines.h +24 -0
- package/sdk/ios/System/Library/Frameworks/AddressBook.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Modules/module.modulemap +13 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/CoreML.apinotes +95 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/CoreML.h +90 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLAllComputeDevices.h +30 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLArrayBatchProvider.h +33 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLBatchProvider.h +28 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLCPUComputeDevice.h +23 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLComputeDeviceProtocol.h +26 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLComputePlan.h +106 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLComputePlanCost.h +29 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLComputePlanDeviceUsage.h +29 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLCustomLayer.h +79 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLCustomModel.h +53 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLDictionaryConstraint.h +29 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLDictionaryFeatureProvider.h +39 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLExport.h +13 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLFeatureDescription.h +66 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLFeatureProvider.h +27 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLFeatureType.h +44 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLFeatureValue+MLImageConversion.h +96 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLFeatureValue.h +92 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLGPUComputeDevice.h +28 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLImageConstraint.h +40 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLImageSize.h +22 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLImageSizeConstraint.h +30 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLImageSizeConstraintType.h +19 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLKey.h +35 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLMetricKey.h +37 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModel+MLComputeDevice.h +30 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModel+MLModelCompilation.h +62 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModel+MLState.h +106 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModel.h +130 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelAsset.h +121 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelCollection.h +70 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelCollectionEntry.h +72 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelConfiguration.h +97 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelDescription.h +83 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelError.h +114 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelMetadataKeys.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelStructure.h +70 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelStructureNeuralNetwork.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelStructureNeuralNetworkLayer.h +35 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelStructurePipeline.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelStructureProgram.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelStructureProgramArgument.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelStructureProgramBinding.h +36 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelStructureProgramBlock.h +36 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelStructureProgramFunction.h +34 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelStructureProgramNamedValueType.h +33 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelStructureProgramOperation.h +38 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelStructureProgramValue.h +26 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelStructureProgramValueType.h +26 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLMultiArray.h +316 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLMultiArrayConstraint.h +34 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLMultiArrayShapeConstraint.h +28 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLMultiArrayShapeConstraintType.h +19 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLNeuralEngineComputeDevice.h +26 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLNumericConstraint.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLOptimizationHints.h +45 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLParameterDescription.h +33 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLParameterKey.h +85 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLPredictionOptions.h +94 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLReshapeFrequencyHint.h +18 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLSequence.h +38 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLSequenceConstraint.h +30 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLSpecializationStrategy.h +17 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLState.h +64 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLStateConstraint.h +30 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLTask.h +56 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLUpdateContext.h +41 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLUpdateProgressEvent.h +25 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLUpdateProgressHandlers.h +34 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLUpdateTask.h +62 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLWritable.h +22 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVMetalBuffer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVMetalBufferCache.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVMetalTexture.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVMetalTextureCache.h +2 -2
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSMetadata.h +4 -4
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKBaseEffect.h +159 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKEffectProperty.h +46 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKEffectPropertyFog.h +58 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKEffectPropertyLight.h +83 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKEffectPropertyMaterial.h +36 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKEffectPropertyTexture.h +62 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKEffectPropertyTransform.h +45 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKEffects.h +21 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKMath.h +19 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKMathTypes.h +167 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKMathUtils.h +48 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKMatrix3.h +535 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKMatrix4.h +1012 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKMatrixStack.h +130 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKModel.h +227 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKNamedEffect.h +14 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKQuaternion.h +340 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKReflectionMapEffect.h +143 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKSkyboxEffect.h +117 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKTextureLoader.h +357 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKVector2.h +483 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKVector3.h +307 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKVector4.h +587 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKView.h +129 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKViewController.h +102 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKit.apinotes +5 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKit.h +21 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKitBase.h +30 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKAddCarKeyPassConfiguration.h +35 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKAddIdentityDocumentConfiguration.h +134 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKAddPassButton.h +48 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKAddPassesViewController.h +56 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKAddPaymentPassRequest.h +88 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKAddPaymentPassViewController.h +68 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKAddSecureElementPassConfiguration.h +55 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKAddSecureElementPassViewController.h +56 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKAddShareablePassConfiguration.h +134 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKAutomaticReloadPaymentRequest.h +57 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKAutomaticReloadPaymentSummaryItem.h +31 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKBarcodeEventMetadataRequest.h +76 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKConstants.h +124 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKContact.h +43 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKDateComponentsRange.h +35 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKDeferredPaymentRequest.h +60 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKDeferredPaymentSummaryItem.h +30 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKDisbursementRequest.h +94 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKDisbursementSummaryItem.h +22 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKError.h +95 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityAuthorizationController.h +52 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityButton.h +68 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocument.h +33 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocumentDescriptor.h +83 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityElement.h +130 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityError.h +54 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityIntentToStore.h +40 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityRequest.h +47 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKInstantFundsOutFeeSummaryItem.h +28 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKIssuerProvisioningExtensionAuthorizationProviding.h +31 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKIssuerProvisioningExtensionHandler.h +41 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKIssuerProvisioningExtensionPassEntry.h +34 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKIssuerProvisioningExtensionPaymentPassEntry.h +37 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKIssuerProvisioningExtensionStatus.h +33 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKLabeledValue.h +28 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKObject.h +23 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPass.h +63 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPassLibrary.h +170 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPassRelevantDate.h +30 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPass_Types.h +25 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPayLaterValidator.h +44 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPayLaterView.h +72 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPayment.h +64 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentAuthorizationController.h +208 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentAuthorizationViewController.h +108 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentAuthorizationViewControllerDelegate.h +147 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentButton.h +55 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentInformationEventExtension.h +41 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentMerchantSession.h +29 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentMethod.h +59 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentPass.h +37 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentRequest.h +255 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentRequestStatus.h +171 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentSummaryItem.h +50 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentToken.h +49 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentTokenContext.h +59 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKRecurringPaymentRequest.h +60 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKRecurringPaymentSummaryItem.h +39 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKSecureElementPass.h +52 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKShareSecureElementPassViewController.h +81 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKShippingMethod.h +42 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKStoredValuePassBalance.h +37 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKStoredValuePassProperties.h +36 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKSuicaPassProperties.h +43 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKTransitPassProperties.h +34 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKVehicleConnectionSession.h +71 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PassKit.apinotes +68 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PassKit.h +187 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Modules/module.modulemap +8 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h +8 -8
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEAGLLayer.h +48 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEDRMetadata.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h +2 -2
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTimingFunction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAMetalLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATransaction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CoreAnimation.h +25 -12
- package/sdk/ios/System/Library/Frameworks/QuickLook.framework/Headers/QLPreviewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/React.framework/Headers/React.h +1 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Modules/module.modulemap +23 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSAdaptiveImageGlyph.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSAttributedString.h +1 -231
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSDataAsset.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSItemProvider+UIKitAdditions.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSLayoutManager.h +1 -375
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSParagraphStyle.h +1 -545
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSStringDrawing.h +1 -82
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSText.h +1 -74
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextAttachment.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextContainer.h +1 -210
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextContentManager.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextElement.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextLayoutFragment.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextLayoutManager.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextLineFragment.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextList.h +1 -194
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextListElement.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextRange.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextSelection.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextSelectionNavigation.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextStorage.h +1 -196
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextTable.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextViewportLayoutController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextViewportRenderingSurface.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibility.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityAdditions.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityConstants.h +0 -87
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityContainer.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityContentSizeCategoryImageAdjusting.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityIdentification.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityLocationDescriptor.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIActionSheet.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIActivity.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIActivityItemsConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAppearance.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIApplicationShortcutItem.h +3 -6
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIArrangementViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAttachmentBehavior.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBackgroundExtensionView.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBandSelectionInteraction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarButtonItemGroup.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarCommon.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICalendarSelection.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICalendarSelectionMultiDate.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICalendarSelectionSingleDate.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICalendarSelectionWeekOfYear.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICalendarView.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICanvasFeedbackGenerator.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICloudSharingController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionView.h +11 -11
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewCompositionalLayout.h +15 -15
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewFlowLayout.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewListCell.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewTransitionLayout.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewUpdateItem.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollisionBehavior.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIColorPickerViewController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIColorWell.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICommand.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContentSizeCategoryAdjusting.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContentUnavailableView.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuInteraction.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuSystem.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContextualAction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIConversationContext.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDataSourceTranslating.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDatePicker.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDeferredMenuElement.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocument.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentBrowserAction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentBrowserViewController.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentInteractionController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentMenuViewController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentPickerExtensionViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentPickerViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentProperties.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDragInteraction.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDragSession.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDropInteraction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDynamicAnimator.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDynamicBehavior.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIEditMenuInteraction.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIEventAttribution.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIEventAttributionView.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFieldBehavior.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFindInteraction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFindSession.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocus.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocusAnimationCoordinator.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocusDebugger.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocusMovementHint.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocusSystem.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFont.h +1 -86
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFontDescriptor.h +1 -198
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFontPickerViewController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGlassEffect.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGraphicsPDFRenderer.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGraphicsRenderer.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGravityBehavior.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGuidedAccess.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHinge.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHingeInteraction.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHoverEffect.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIInputSuggestion.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIInputView.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIInputViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIInteraction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKey.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKeyboardLayoutGuide.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKitDefines.h +1 -48
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILargeContentViewer.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILetterformAwareAdjusting.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILexicon.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIListContentConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILocalNotification.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILocalizedIndexedCollation.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMailConversationContext.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMainMenuSystem.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIManagedDocument.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuDisplayPreferences.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuElement.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuLeaf.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuSystem.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMessageConversationContext.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMotionEffect.h +3 -6
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UINavigationBar.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UINavigationController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIOpenURLContext.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPageControl.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPageControlProgress.h +4 -4
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPageViewController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPencilInteraction.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPhotoSearchSuggestion.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPickerView.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPointerAccessory.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPointerInteraction.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPointerLockState.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPointerRegion.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPointerStyle.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPopoverBackgroundView.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPopoverController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPopoverPresentationController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPopoverPresentationControllerSourceItem.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPresentationController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPress.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPressesEvent.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPreviewInteraction.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrintFormatter.h +4 -4
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrintInteractionController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrintPageRenderer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrintPaper.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrintServiceExtension.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrinter.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrinterPickerController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPushBehavior.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIReferenceLibraryViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIResponder.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneAccessory.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneAccessoryRegistration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneActivationConditions.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneClosureConfirmation.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneOptions.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneSession.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneSizeRestrictions.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneSystemProtectionManager.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneWindowingBehaviors.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScreenMode.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScreenshotService.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScribbleInteraction.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScrollEdgeElementContainerInteraction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScrollView.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchBar.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchContainerViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchDisplayController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchSuggestion.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchTextField.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISheetPresentationController.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISmartReplySuggestion.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISnapBehavior.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISplitViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISpringLoadedInteraction.h +4 -4
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISpringLoadedInteractionSupporting.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStandardTextCursorView.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStateRestoration.h +4 -4
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStatusBarManager.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStepper.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStoryboardPopoverSegue.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStoryboardSegue.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISwipeActionsConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISymbolContentTransition.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBar.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBarController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBarControllerSidebar.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabGroup.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabSidebarItem.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITableView.h +13 -13
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITableViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITableViewHeaderFooterView.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextChecker.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextCursorDropPositionAnimator.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextCursorView.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextDragPreviewRenderer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextDragging.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextDropping.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextFormattingCoordinator.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextFormattingViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextInput.h +12 -12
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextInputContext.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextInputTraits.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextInteraction.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextItem.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextLoupeSession.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextPasteConfigurationSupporting.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextPasteDelegate.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextSearching.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextSelectionDisplayInteraction.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextSelectionHighlightView.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITimingCurveProvider.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITimingParameters.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIToolTipInteraction.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIToolbar.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIToolbarAppearance.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITouch.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITrackingLayoutGuide.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITraitCollection.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIUpdateActionPhase.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIUpdateInfo.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIUpdateLink.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h +5 -5
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIVibrancyEffect.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIVideoEditorController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewAnimating.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h +6 -6
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewControllerTransitionCoordinator.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewControllerTransitioning.h +4 -4
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewReservedRegion.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIVisualEffect.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWebView.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowScene.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneActivationAction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneDragInteraction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneGeometryPreferencesIOS.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWritingToolsCoordinator.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/NSAttributedString.h +231 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/NSLayoutManager.h +375 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/NSParagraphStyle.h +545 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/NSStringDrawing.h +82 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/NSText.h +74 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/NSTextContainer.h +210 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/NSTextList.h +194 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/NSTextStorage.h +196 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/UIFont.h +86 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/UIFontDescriptor.h +198 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/UIKitDefines.h +48 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/UIKitText.h +11 -11
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Modules/module.modulemap +11 -11
- package/sdk/ios/System/Library/Frameworks/UIKitTypes.framework/Headers/UIAccessibilityTraits.h +91 -0
- package/sdk/ios/System/Library/Frameworks/UIKitTypes.framework/Headers/UIKitTypes.apinotes +43 -0
- package/sdk/ios/System/Library/Frameworks/UIKitTypes.framework/Headers/UIKitTypes.h +1 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTBase.h +48 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTCompressionProperties.h +1686 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTCompressionSession.h +509 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTDecompressionProperties.h +548 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTDecompressionSession.h +577 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTErrors.h +144 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTFrameProcessor.h +134 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTFrameProcessorConfiguration.h +68 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTFrameProcessorErrors.h +60 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTFrameProcessorFrame.h +82 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTFrameProcessorParameters.h +48 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTFrameProcessor_FrameRateConversion.h +207 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTFrameProcessor_LowLatencyFrameInterpolation.h +171 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTFrameProcessor_LowLatencySuperResolutionScaler.h +143 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTFrameProcessor_MotionBlur.h +207 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTFrameProcessor_OpticalFlow.h +172 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTFrameProcessor_SuperResolutionScaler.h +245 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTFrameProcessor_TemporalNoiseFilter.h +161 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTFrameSilo.h +177 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTHDRPerFrameMetadataGenerationSession.h +116 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTMotionEstimationSession.h +176 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTMotionEstimationSessionProperties.h +76 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTMultiPassStorage.h +96 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTPixelRotationProperties.h +75 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTPixelRotationSession.h +111 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTPixelTransferProperties.h +231 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTPixelTransferSession.h +123 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTSession.h +151 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTUtilities.h +146 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTVideoEncoderList.h +74 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VideoToolbox.apinotes +197 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VideoToolbox.h +41 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNCalculateImageAestheticsScoresRequest.h +32 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNClassifyImageRequest.h +69 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNCoreMLRequest.h +93 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDefines.h +24 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectAnimalBodyPoseRequest.h +49 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectBarcodesRequest.h +85 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectContoursRequest.h +60 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectDocumentSegmentationRequest.h +33 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectFaceCaptureQualityRequest.h +46 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectFaceLandmarksRequest.h +61 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectFaceRectanglesRequest.h +47 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectHorizonRequest.h +35 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectHumanBodyPose3DRequest.h +67 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectHumanBodyPoseRequest.h +194 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectHumanHandPoseRequest.h +200 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectHumanRectanglesRequest.h +53 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectRectanglesRequest.h +66 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectTextRectanglesRequest.h +40 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectTrajectoriesRequest.h +71 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectedPoint.h +55 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNError.h +42 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNFaceLandmarks.h +188 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNFaceObservationAccepting.h +32 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNGenerateAttentionBasedSaliencyImageRequest.h +42 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNGenerateForegroundInstanceMaskRequest.h +34 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNGenerateImageFeaturePrintRequest.h +53 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNGenerateObjectnessBasedSaliencyImageRequest.h +41 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNGenerateOpticalFlowRequest.h +89 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNGeneratePersonInstanceMaskRequest.h +34 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNGeneratePersonSegmentationRequest.h +67 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNGeometry.h +323 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNGeometryUtils.h +95 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNHumanBodyRecognizedPoint3D.h +26 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNImageRegistrationRequest.h +67 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNObservation.h +994 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNRecognizeAnimalsRequest.h +61 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNRecognizeTextRequest.h +109 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNRecognizedPoint3D.h +34 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNRequest.h +197 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNRequestHandler.h +419 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNRequestRevisionProviding.h +26 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNStatefulRequest.h +49 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNTargetedImageRequest.h +302 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNTrackHomographicImageRegistrationRequest.h +46 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNTrackObjectRequest.h +53 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNTrackOpticalFlowRequest.h +106 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNTrackRectangleRequest.h +56 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNTrackTranslationalImageRegistrationRequest.h +45 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNTrackingRequest.h +72 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNTypes.h +201 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNUtils.h +198 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNVideoProcessor.h +133 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/Vision.apinotes +130 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/Vision.h +67 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Modules/module.modulemap +7 -0
- package/sdk/ios/usr/include/AssertMacros.h +1463 -0
- package/sdk/ios/usr/include/_modules/_os_lock.h +33 -0
- package/sdk/ios/usr/include/libkern/OSCacheControl.h +66 -0
- package/sdk/ios/usr/include/os.modulemap +1 -1
- package/sdk/ios/usr/include/pthread/pthread_spis.h +105 -0
- package/sdk/ios/usr/include/pthread_spis.h +105 -0
- package/sdk/ios/usr/lib/swift/Foundation.swiftmodule/arm64-apple-ios-simulator.swiftinterface +4 -0
- package/sdk/ios/wasm/include/pthread/sched.h +3 -0
- package/sdk/ios/wasm/include/pthread.h +7 -0
- package/sdk/ios/wasm/include/sched.h +9 -0
- package/sdk/ios/wasm/include/sys/mman.h +2 -2
- package/sdk/ios/wasm/include/sys/poll.h +3 -0
- package/sdk/ios/wasm/include/tgmath.h +5 -0
- package/sdk/ios/wasm/include/unistd.h +5 -1
- package/skills/contrast/SKILL.md +1 -0
- package/skills/peach-debug/SKILL.md +43 -1
- package/skills/peach-debug/references/events.md +14 -1
- package/src/android-autolinking.ts +5 -18
- package/src/answeredNativePackages.ts +24 -5
- package/src/app-config.ts +12 -1
- package/src/assetCatalogContract.ts +3 -39
- package/src/autolinker-process.ts +82 -0
- package/src/bazel-project.ts +1133 -0
- package/src/bridge-contract.ts +3 -0
- package/src/case-insensitive-header-overlay.ts +99 -0
- package/src/config.ts +5 -0
- package/src/device-catalog.ts +9 -0
- package/src/expo-autolinking.ts +12 -15
- package/src/expo-native-prebuilt.ts +28 -5
- package/src/expo-native-workspace.ts +91 -23
- package/src/expo-swift-host.ts +190 -57
- package/src/expo-swift-ready.ts +8 -0
- package/src/expo-workspace-exclusion.ts +96 -27
- package/src/flow-graph-layout.ts +166 -0
- package/src/git-repo-env.ts +7 -0
- package/src/host/app-package-handler.ts +5 -0
- package/src/host/bridge-host.ts +3 -1
- package/src/host/hostname-resolver.ts +55 -2
- package/src/host/staged-host-files.ts +17 -1
- package/src/host/websocket-proxy.ts +19 -2
- package/src/java-static-imports.ts +68 -0
- package/src/kotlin-jvm-sources.ts +35 -0
- package/src/kotlinSdkContract.ts +3 -1
- package/src/launchMetadataContract.ts +8 -0
- package/src/metro-hot-update.ts +68 -0
- package/src/native-app-identity-project.ts +35 -7
- package/src/native-app-identity.ts +32 -0
- package/src/native-package-slice-build.ts +35 -9
- package/src/native-package-slice.ts +10 -4
- package/src/native-slices.ts +1 -1
- package/src/native-static-libraries.ts +51 -23
- package/src/nitro-adapter.lock.json +265 -265
- package/src/nitro-app-providers.ts +28 -0
- package/src/nitro-bundle.ts +4 -41
- package/src/nitro-compile.ts +450 -76
- package/src/nitro-source.ts +585 -114
- package/src/nitro-superset.lock.json +4 -4
- package/src/node-runtime.ts +27 -0
- package/src/nodeRuntimeContract.ts +5 -0
- package/src/one-sdk-bundle.ts +15 -3
- package/src/one-sdk-preparation.ts +69 -9
- package/src/oneSdkContract.ts +13 -2
- package/src/podspec-sources.ts +376 -1814
- package/src/portable-expo-contract.ts +7 -2
- package/src/portable-expo-workspace.ts +7 -2
- package/src/process-group.ts +13 -0
- package/src/react-bridge-importers.ts +1 -0
- package/src/react-native-autolinking.ts +13 -43
- package/src/react-native-bridge-modules.ts +3 -3
- package/src/react-native-core-build.ts +6 -0
- package/src/react-native-host-modules.ts +37 -3
- package/src/reap-browser.ts +1 -0
- package/src/sfSymbolMetricsContract.ts +0 -53
- package/src/sim-client.ts +8 -2
- package/src/storekit-test-store.ts +49 -0
- package/src/stub-pattern-matcher.ts +4 -26
- package/src/swift-compile-budget.ts +42 -0
- package/src/swift-compile.ts +780 -658
- package/src/swift-compiler-digest.ts +2 -0
- package/src/swift-cxx-reachable.ts +20 -21
- package/src/swift-distribution.lock.json +18 -12
- package/src/swift-guest-compile.ts +38 -21
- package/src/swift-guest-image-ledger.ts +28 -19
- package/src/swift-guest-source-inputs.ts +5 -1
- package/src/swift-host.ts +90 -23
- package/src/swift-objc-compile.ts +117 -29
- package/src/swift-objc-standin.ts +12 -1
- package/src/swift-package-manifest.ts +18 -1
- package/src/swift-package.ts +26 -8
- package/src/swift-packages.ts +66 -27
- package/src/swift-resource-class-names.ts +44 -0
- package/src/swift-root-lock.ts +50 -15
- package/src/swift-shared-sdk.ts +2 -4
- package/src/swift-source-file.ts +6 -0
- package/src/swift-standin-emit.ts +10 -0
- package/src/swift-standins.ts +351 -66
- package/src/swift-submit.ts +6 -1
- package/src/swift-toolchain.ts +19 -0
- package/src/swift-wasm-prune.ts +15 -8
- package/src/swiftContract.ts +4 -5
- package/src/turbo-bundle.ts +1 -1
- package/src/turbo-codegen-intake.ts +8 -5
- package/src/turbo-compile.ts +2 -1
- package/src/turbo-runtime.lock.json +24 -24
- package/src/turbo-source.ts +2162 -280
- package/src/vite-plugin-swift.ts +3 -2
- package/src/wasm-optimize.ts +14 -10
- package/src/worker-system-chunks.ts +31 -3
- package/src/worklet-kernel.ts +56 -9
- package/src/worklets-babel.ts +8 -1
- package/src/xcode-header-search.ts +9 -0
- package/src/xcode-project.ts +82 -6
- package/dist-types/packages/peach-engine/src/engine/ios-fast-scroll.d.ts +0 -16
- package/dist-types/packages/peach-engine/src/engine/scroll-pan-contacts.d.ts +0 -12
- package/dist-types/packages/peach-engine/src/engine/scroll-velocity.d.ts +0 -15
- /package/dist-types/packages/{peach-engine → peach-compat}/src/react-bridge.d.ts +0 -0
package/src/nitro-source.ts
CHANGED
|
@@ -2,11 +2,13 @@ import { createHash } from 'node:crypto'
|
|
|
2
2
|
import fs from 'node:fs'
|
|
3
3
|
import { createRequire } from 'node:module'
|
|
4
4
|
import path from 'node:path'
|
|
5
|
+
import { z } from 'zod'
|
|
5
6
|
import {
|
|
6
7
|
nitroDependencyIncludes,
|
|
7
8
|
nitroDependencyReader,
|
|
8
9
|
prepareNitroDependencies,
|
|
9
10
|
} from './nitro-dependencies'
|
|
11
|
+
import { loadPodspec, podspecMembers, podspecName } from './podspec-sources'
|
|
10
12
|
import { reactNativeAutolinkingConfig } from './react-native-autolinking'
|
|
11
13
|
import { projectSourceKey, readPackageFile } from './swift-source-file'
|
|
12
14
|
import { MAX_SWIFT_COMPILE_SOURCE_BYTES } from './swift-submit'
|
|
@@ -23,7 +25,11 @@ export interface NitroAnswers {
|
|
|
23
25
|
views: ReadonlySet<string>
|
|
24
26
|
}
|
|
25
27
|
|
|
26
|
-
export type NitroSourceOptions = {
|
|
28
|
+
export type NitroSourceOptions = {
|
|
29
|
+
packageRoots: string[]
|
|
30
|
+
answers?: NitroAnswers
|
|
31
|
+
peerPackageRoots?: readonly string[]
|
|
32
|
+
} & (
|
|
27
33
|
| { appRoot: string; dependencyRoots?: never }
|
|
28
34
|
| {
|
|
29
35
|
appRoot?: never
|
|
@@ -288,7 +294,7 @@ function swiftViewComponent(
|
|
|
288
294
|
throw new Error(`${root}: Nitro view ${name} has no generated iOS view component`)
|
|
289
295
|
}
|
|
290
296
|
|
|
291
|
-
function hasNitroIosInitializer(root: string): boolean {
|
|
297
|
+
export function hasNitroIosInitializer(root: string): boolean {
|
|
292
298
|
const generated = path.join(root, 'nitrogen/generated/ios')
|
|
293
299
|
return (
|
|
294
300
|
fs.existsSync(generated) &&
|
|
@@ -436,6 +442,253 @@ export function prepareNitroSourceDependencies(
|
|
|
436
442
|
return prepareNitroDependencies(reactNative.version, reactNative.root)
|
|
437
443
|
}
|
|
438
444
|
|
|
445
|
+
const PEER_PODSPEC_SKIP = new Set([
|
|
446
|
+
'React-jsi',
|
|
447
|
+
'React-callinvoker',
|
|
448
|
+
'React-Core',
|
|
449
|
+
'React-Fabric',
|
|
450
|
+
'ReactCommon',
|
|
451
|
+
])
|
|
452
|
+
|
|
453
|
+
function readPodspecMetadata(
|
|
454
|
+
root: string,
|
|
455
|
+
appRoot?: string,
|
|
456
|
+
): {
|
|
457
|
+
podName: string | null
|
|
458
|
+
dependencies: string[]
|
|
459
|
+
headerSearchPaths: string[]
|
|
460
|
+
defines: string[]
|
|
461
|
+
cStandard: string | null
|
|
462
|
+
} {
|
|
463
|
+
const podspecs = fs
|
|
464
|
+
.readdirSync(root)
|
|
465
|
+
.filter((file) => file.endsWith('.podspec'))
|
|
466
|
+
.sort()
|
|
467
|
+
if (podspecs.length === 0)
|
|
468
|
+
return {
|
|
469
|
+
podName: null,
|
|
470
|
+
dependencies: [],
|
|
471
|
+
headerSearchPaths: [],
|
|
472
|
+
defines: [],
|
|
473
|
+
cStandard: null,
|
|
474
|
+
}
|
|
475
|
+
const spec = loadPodspec(path.join(root, podspecs[0]!), appRoot)
|
|
476
|
+
const members = podspecMembers(spec)
|
|
477
|
+
const configs = members.map((member) =>
|
|
478
|
+
z
|
|
479
|
+
.record(z.string(), z.union([z.string(), z.array(z.string())]))
|
|
480
|
+
.parse(member.attrs.get('pod_target_xcconfig') ?? {}),
|
|
481
|
+
)
|
|
482
|
+
const field = (name: string) =>
|
|
483
|
+
configs.flatMap((config) => config[name] ?? []).join(' ')
|
|
484
|
+
const dependencies = [
|
|
485
|
+
...new Set(
|
|
486
|
+
members
|
|
487
|
+
.flatMap((member) =>
|
|
488
|
+
Object.keys(
|
|
489
|
+
z
|
|
490
|
+
.record(z.string(), z.array(z.string()))
|
|
491
|
+
.parse(member.attrs.get('dependencies')),
|
|
492
|
+
).map((name) => name.split('/')[0]!),
|
|
493
|
+
)
|
|
494
|
+
.filter((name) => name !== podspecName(spec) && !PEER_PODSPEC_SKIP.has(name)),
|
|
495
|
+
),
|
|
496
|
+
]
|
|
497
|
+
const headerSearchPaths = [
|
|
498
|
+
...new Set(
|
|
499
|
+
[
|
|
500
|
+
...field('HEADER_SEARCH_PATHS').matchAll(
|
|
501
|
+
/\$[({]PODS_TARGET_SRCROOT[)}]\/([^\s"'\\)}$]+)/g,
|
|
502
|
+
),
|
|
503
|
+
]
|
|
504
|
+
.map((match) => match[1]!.replace(/\/+$/, ''))
|
|
505
|
+
.filter((dir) => fs.existsSync(path.join(root, dir))),
|
|
506
|
+
),
|
|
507
|
+
]
|
|
508
|
+
const defines = field('GCC_PREPROCESSOR_DEFINITIONS')
|
|
509
|
+
.split(/\s+/)
|
|
510
|
+
.filter(
|
|
511
|
+
(token) =>
|
|
512
|
+
token &&
|
|
513
|
+
token !== '$(inherited)' &&
|
|
514
|
+
!token.includes('$(') &&
|
|
515
|
+
!token.includes('${'),
|
|
516
|
+
)
|
|
517
|
+
const rawCStd = field('GCC_C_LANGUAGE_STANDARD')
|
|
518
|
+
const cStandard = /^[a-z0-9+]+$/i.test(rawCStd) ? rawCStd : null
|
|
519
|
+
return {
|
|
520
|
+
podName: podspecName(spec),
|
|
521
|
+
dependencies,
|
|
522
|
+
headerSearchPaths,
|
|
523
|
+
defines,
|
|
524
|
+
cStandard,
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
function buildPodRootIndex(
|
|
529
|
+
seedRoots: readonly string[],
|
|
530
|
+
extraRoots: readonly string[],
|
|
531
|
+
appRoot?: string,
|
|
532
|
+
): Map<string, string> {
|
|
533
|
+
const byPod = new Map<string, string>()
|
|
534
|
+
const visitedRoots = new Set<string>()
|
|
535
|
+
const visitedDirectories = new Set<string>()
|
|
536
|
+
const addRoot = (candidate: string) => {
|
|
537
|
+
if (!fs.existsSync(path.join(candidate, 'package.json'))) return
|
|
538
|
+
const real = fs.realpathSync(candidate)
|
|
539
|
+
if (visitedRoots.has(real)) return
|
|
540
|
+
visitedRoots.add(real)
|
|
541
|
+
if (!hasNitroIosInitializer(real)) return
|
|
542
|
+
const { podName } = readPodspecMetadata(real, appRoot)
|
|
543
|
+
if (podName && !byPod.has(podName)) byPod.set(podName, real)
|
|
544
|
+
}
|
|
545
|
+
for (const root of extraRoots) addRoot(root)
|
|
546
|
+
for (const seed of seedRoots) {
|
|
547
|
+
const providerRequire = createRequire(path.join(seed, 'package.json'))
|
|
548
|
+
for (const dir of providerRequire.resolve.paths('.') ?? []) {
|
|
549
|
+
if (!fs.existsSync(dir)) continue
|
|
550
|
+
const directory = fs.realpathSync(dir)
|
|
551
|
+
if (visitedDirectories.has(directory)) continue
|
|
552
|
+
visitedDirectories.add(directory)
|
|
553
|
+
for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
|
|
554
|
+
if (entry.name.startsWith('.')) continue
|
|
555
|
+
if (entry.name.startsWith('@')) {
|
|
556
|
+
const scopeDir = path.join(dir, entry.name)
|
|
557
|
+
for (const scoped of fs.readdirSync(scopeDir, { withFileTypes: true })) {
|
|
558
|
+
if (!scoped.name.startsWith('.')) addRoot(path.join(scopeDir, scoped.name))
|
|
559
|
+
}
|
|
560
|
+
} else {
|
|
561
|
+
addRoot(path.join(dir, entry.name))
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
return byPod
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
function resolveDependencyManifestRoot(
|
|
570
|
+
providerRoot: string,
|
|
571
|
+
depName: string,
|
|
572
|
+
): string | null {
|
|
573
|
+
const providerRequire = createRequire(path.join(providerRoot, 'package.json'))
|
|
574
|
+
const depManifest = providerRequire.resolve
|
|
575
|
+
.paths(depName)
|
|
576
|
+
?.map((directory) => path.join(directory, depName, 'package.json'))
|
|
577
|
+
.find((candidate) => fs.existsSync(candidate))
|
|
578
|
+
return depManifest ? fs.realpathSync(path.dirname(depManifest)) : null
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
type NitroModuleNode = {
|
|
582
|
+
provider: NitroPackage
|
|
583
|
+
config: ReturnType<typeof registrations>
|
|
584
|
+
registered: boolean
|
|
585
|
+
podspec: ReturnType<typeof readPodspecMetadata>
|
|
586
|
+
peerRoots: string[]
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
function discoverSelectedAndPeerNitroNodes(
|
|
590
|
+
options: Pick<
|
|
591
|
+
NitroSourceOptions,
|
|
592
|
+
'packageRoots' | 'answers' | 'peerPackageRoots' | 'appRoot'
|
|
593
|
+
>,
|
|
594
|
+
): {
|
|
595
|
+
selections: NitroSelection[]
|
|
596
|
+
allModules: NitroModuleNode[]
|
|
597
|
+
moduleByRoot: Map<string, NitroModuleNode>
|
|
598
|
+
} {
|
|
599
|
+
const selections = selectNitroProviders(options.packageRoots, options.answers)
|
|
600
|
+
if (selections.length === 0) {
|
|
601
|
+
return { selections, allModules: [], moduleByRoot: new Map() }
|
|
602
|
+
}
|
|
603
|
+
// discover peer Nitro packages transitively (e.g. VisionCameraResizer -> VisionCamera -> NitroImage)
|
|
604
|
+
const registeredEntries = selections.map(({ provider, config, selected }) => ({
|
|
605
|
+
provider,
|
|
606
|
+
config: { ...config, classes: selected },
|
|
607
|
+
registered: true,
|
|
608
|
+
podspec: readPodspecMetadata(provider.root, options.appRoot),
|
|
609
|
+
}))
|
|
610
|
+
const podRootIndex = buildPodRootIndex(
|
|
611
|
+
selections.map(({ provider }) => provider.root),
|
|
612
|
+
options.peerPackageRoots ?? [],
|
|
613
|
+
options.appRoot,
|
|
614
|
+
)
|
|
615
|
+
const moduleByRoot = new Map<string, NitroModuleNode>()
|
|
616
|
+
const registeredQueue: NitroModuleNode[] = registeredEntries.map((entry) => {
|
|
617
|
+
const node: NitroModuleNode = { ...entry, peerRoots: [] }
|
|
618
|
+
moduleByRoot.set(entry.provider.root, node)
|
|
619
|
+
return node
|
|
620
|
+
})
|
|
621
|
+
const bfs = [...registeredQueue]
|
|
622
|
+
while (bfs.length > 0) {
|
|
623
|
+
const current = bfs.shift()!
|
|
624
|
+
const manifest = readJson(current.provider.root, 'package.json')
|
|
625
|
+
const npmDeps = object(manifest)
|
|
626
|
+
? [
|
|
627
|
+
...(object(manifest.dependencies) ? Object.keys(manifest.dependencies) : []),
|
|
628
|
+
...(object(manifest.peerDependencies)
|
|
629
|
+
? Object.keys(manifest.peerDependencies)
|
|
630
|
+
: []),
|
|
631
|
+
]
|
|
632
|
+
: []
|
|
633
|
+
const peerRootSet = new Set<string>()
|
|
634
|
+
for (const depName of npmDeps.sort()) {
|
|
635
|
+
if (
|
|
636
|
+
depName === 'react' ||
|
|
637
|
+
depName === 'react-native' ||
|
|
638
|
+
depName === 'react-native-nitro-modules'
|
|
639
|
+
)
|
|
640
|
+
continue
|
|
641
|
+
const depRoot = resolveDependencyManifestRoot(current.provider.root, depName)
|
|
642
|
+
if (
|
|
643
|
+
!depRoot ||
|
|
644
|
+
depRoot === current.provider.root ||
|
|
645
|
+
!hasNitroIosInitializer(depRoot)
|
|
646
|
+
)
|
|
647
|
+
continue
|
|
648
|
+
peerRootSet.add(depRoot)
|
|
649
|
+
}
|
|
650
|
+
for (const podDep of current.podspec.dependencies) {
|
|
651
|
+
const depRoot = podRootIndex.get(podDep)
|
|
652
|
+
if (depRoot && depRoot !== current.provider.root) peerRootSet.add(depRoot)
|
|
653
|
+
}
|
|
654
|
+
for (const depRoot of [...peerRootSet].sort()) {
|
|
655
|
+
current.peerRoots.push(depRoot)
|
|
656
|
+
if (!moduleByRoot.has(depRoot)) {
|
|
657
|
+
const peerInfo = packageInfo(depRoot)
|
|
658
|
+
const node: NitroModuleNode = {
|
|
659
|
+
provider: peerInfo,
|
|
660
|
+
config: registrations(depRoot),
|
|
661
|
+
registered: false,
|
|
662
|
+
podspec: readPodspecMetadata(depRoot, options.appRoot),
|
|
663
|
+
peerRoots: [],
|
|
664
|
+
}
|
|
665
|
+
moduleByRoot.set(depRoot, node)
|
|
666
|
+
bfs.push(node)
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
// peers compile before the registered providers that depend on them.
|
|
671
|
+
const peerNodes = [...moduleByRoot.values()]
|
|
672
|
+
.filter((node) => !node.registered)
|
|
673
|
+
.sort((a, b) => a.provider.name.localeCompare(b.provider.name))
|
|
674
|
+
return {
|
|
675
|
+
selections,
|
|
676
|
+
allModules: [...registeredQueue, ...peerNodes],
|
|
677
|
+
moduleByRoot,
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
/** realpaths of selected Nitro provider roots plus any peer Nitro packages they transitively depend on. */
|
|
682
|
+
export function selectNitroAndPeerPackageRoots(
|
|
683
|
+
options: Pick<
|
|
684
|
+
NitroSourceOptions,
|
|
685
|
+
'packageRoots' | 'answers' | 'peerPackageRoots' | 'appRoot'
|
|
686
|
+
>,
|
|
687
|
+
): ReadonlySet<string> {
|
|
688
|
+
const { allModules } = discoverSelectedAndPeerNitroNodes(options)
|
|
689
|
+
return new Set(allModules.map(({ provider }) => provider.root))
|
|
690
|
+
}
|
|
691
|
+
|
|
439
692
|
/** collect installed native bodies, generated bridges, Nitro core and RN's
|
|
440
693
|
* JSI without reading or rewriting package JavaScript. */
|
|
441
694
|
export function collectNitroSources(
|
|
@@ -443,13 +696,13 @@ export function collectNitroSources(
|
|
|
443
696
|
nativeSourceKeys: ReadonlySet<string>,
|
|
444
697
|
sourceRoot: string,
|
|
445
698
|
): NitroSourceCollection {
|
|
446
|
-
const selections
|
|
699
|
+
const { selections, allModules, moduleByRoot } =
|
|
700
|
+
discoverSelectedAndPeerNitroNodes(options)
|
|
447
701
|
if (selections.length === 0)
|
|
448
702
|
throw new Error(
|
|
449
703
|
'Nitro compilation needs at least one provider constructor to register',
|
|
450
704
|
)
|
|
451
|
-
|
|
452
|
-
const views = selections.map(({ provider, config, selected }) =>
|
|
705
|
+
const registeredViews = selections.map(({ provider, config, selected }) =>
|
|
453
706
|
selected.flatMap((entry) => {
|
|
454
707
|
if (entry.language !== 'swift' || !config.views.has(entry.name)) return []
|
|
455
708
|
if (config.swiftModule === null)
|
|
@@ -465,26 +718,23 @@ export function collectNitroSources(
|
|
|
465
718
|
const providers = selections.map(({ provider, selected }, index) => ({
|
|
466
719
|
...provider,
|
|
467
720
|
hybridObjects: selected.map(({ name }) => name),
|
|
468
|
-
views:
|
|
721
|
+
views: registeredViews[index]!.map(({ name, props, transaction }) => ({
|
|
469
722
|
name,
|
|
470
723
|
props,
|
|
471
724
|
transaction,
|
|
472
725
|
})),
|
|
473
726
|
}))
|
|
474
|
-
const providerRoots = new Set(
|
|
475
|
-
const configs = selections.map(({ config, selected }) => ({
|
|
476
|
-
...config,
|
|
477
|
-
classes: selected,
|
|
478
|
-
}))
|
|
727
|
+
const providerRoots = new Set(allModules.map(({ provider }) => provider.root))
|
|
479
728
|
const swiftModules = new Map<string, string>()
|
|
480
|
-
for (const
|
|
481
|
-
|
|
482
|
-
|
|
729
|
+
for (const node of allModules) {
|
|
730
|
+
const swiftModule = node.config.swiftModule
|
|
731
|
+
if (swiftModule === null) continue
|
|
732
|
+
const owner = swiftModules.get(swiftModule)
|
|
483
733
|
if (owner !== undefined)
|
|
484
734
|
throw new Error(
|
|
485
|
-
`Nitro Swift module ${
|
|
735
|
+
`Nitro Swift module ${swiftModule} is declared by ${owner} and ${node.provider.name}`,
|
|
486
736
|
)
|
|
487
|
-
swiftModules.set(
|
|
737
|
+
swiftModules.set(swiftModule, node.provider.name)
|
|
488
738
|
}
|
|
489
739
|
const roots = dependencyRootsFor(options)
|
|
490
740
|
const nitro = packageInfo(roots.nitroModules)
|
|
@@ -495,6 +745,7 @@ export function collectNitroSources(
|
|
|
495
745
|
const coreTarget = 'NitroCore'
|
|
496
746
|
const jsiTarget = 'JsiBridge'
|
|
497
747
|
const targetPath = (name: string) => `Sources/${name}`
|
|
748
|
+
const hasViews = registeredViews.some((entries) => entries.length > 0)
|
|
498
749
|
const target = (name: string, dependencies: string[]): SwiftPackageTarget => ({
|
|
499
750
|
name,
|
|
500
751
|
path: targetPath(name),
|
|
@@ -507,23 +758,43 @@ export function collectNitroSources(
|
|
|
507
758
|
name: dependency,
|
|
508
759
|
})),
|
|
509
760
|
})
|
|
761
|
+
const nodeTargets = new Map<string, SwiftPackageTarget>()
|
|
510
762
|
const result: NitroSourceCollection = {
|
|
511
763
|
files: {},
|
|
512
764
|
targets: [
|
|
513
765
|
target(jsiTarget, []),
|
|
514
766
|
target(coreTarget, [jsiTarget]),
|
|
515
|
-
...(
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
767
|
+
...(hasViews ? [target(NITRO_VIEWS_TARGET, [coreTarget, jsiTarget])] : []),
|
|
768
|
+
...allModules.map((node, index) => {
|
|
769
|
+
const tName = nitroProviderTarget(node.provider)
|
|
770
|
+
const peerDeps = node.peerRoots.map((peerRoot) =>
|
|
771
|
+
nitroProviderTarget(moduleByRoot.get(peerRoot)!.provider),
|
|
772
|
+
)
|
|
773
|
+
const viewDeps =
|
|
774
|
+
node.registered && registeredViews[index]!.length > 0
|
|
775
|
+
? [NITRO_VIEWS_TARGET]
|
|
776
|
+
: []
|
|
777
|
+
const t = target(tName, [coreTarget, jsiTarget, ...viewDeps, ...peerDeps])
|
|
778
|
+
const clangSettings: NonNullable<SwiftPackageTarget['clangSettings']> = []
|
|
779
|
+
for (const dir of node.podspec.headerSearchPaths) {
|
|
780
|
+
clangSettings.push(
|
|
781
|
+
{ tool: 'c', headerSearchPath: `upstream/${dir}` },
|
|
782
|
+
{ tool: 'cxx', headerSearchPath: `upstream/${dir}` },
|
|
783
|
+
)
|
|
784
|
+
}
|
|
785
|
+
if (node.podspec.cStandard) {
|
|
786
|
+
clangSettings.push({ tool: 'c', flags: [`-std=${node.podspec.cStandard}`] })
|
|
787
|
+
}
|
|
788
|
+
if (clangSettings.length > 0) t.clangSettings = clangSettings
|
|
789
|
+
if (node.podspec.defines.length > 0) {
|
|
790
|
+
t.cDefines = [...node.podspec.defines]
|
|
791
|
+
t.cxxDefines = [...node.podspec.defines]
|
|
792
|
+
}
|
|
793
|
+
nodeTargets.set(tName, t)
|
|
794
|
+
return t
|
|
795
|
+
}),
|
|
525
796
|
],
|
|
526
|
-
registrations:
|
|
797
|
+
registrations: selections.map(({ provider }) => ({
|
|
527
798
|
symbol: `peach_register_${nitroProviderTarget(provider)}`,
|
|
528
799
|
header: `${targetPath(nitroProviderTarget(provider))}/include/PeachNitroRegistration.hpp`,
|
|
529
800
|
target: nitroProviderTarget(provider),
|
|
@@ -534,7 +805,9 @@ export function collectNitroSources(
|
|
|
534
805
|
sources: [],
|
|
535
806
|
aliases: {},
|
|
536
807
|
viewComponentSources: new Set(
|
|
537
|
-
|
|
808
|
+
registeredViews.flatMap((entries) =>
|
|
809
|
+
entries.map(({ componentSource }) => componentSource),
|
|
810
|
+
),
|
|
538
811
|
),
|
|
539
812
|
}
|
|
540
813
|
// the collection compiles locally; hosted file and byte totals are enforced
|
|
@@ -558,6 +831,9 @@ export function collectNitroSources(
|
|
|
558
831
|
const originals = new Map<string, string>()
|
|
559
832
|
// podspec header search roots whose headers resolve by their path under the root
|
|
560
833
|
const searchRootDirs = new Set<string>()
|
|
834
|
+
const headersByTarget = new Map<string, Map<string, string>>()
|
|
835
|
+
const ambiguousHeadersByTarget = new Map<string, Set<string>>()
|
|
836
|
+
const flatAliasesByTarget = new Map<string, Map<string, string>>()
|
|
561
837
|
const collect = (
|
|
562
838
|
root: string,
|
|
563
839
|
directory: string,
|
|
@@ -565,11 +841,17 @@ export function collectNitroSources(
|
|
|
565
841
|
includeNamespace: string | null,
|
|
566
842
|
skip: ReadonlySet<string> = new Set(),
|
|
567
843
|
select: (file: string) => boolean = () => true,
|
|
568
|
-
extensions: RegExp = /\.(?:c|cc|cpp|cxx|h|hpp|hxx|inl|inc)$/,
|
|
844
|
+
extensions: RegExp = /\.(?:c|cc|cpp|cxx|h|hh|hpp|hxx|inl|inc)$/,
|
|
569
845
|
) => {
|
|
570
|
-
const headers = new Map<string, string>()
|
|
846
|
+
const headers = headersByTarget.get(name) ?? new Map<string, string>()
|
|
847
|
+
headersByTarget.set(name, headers)
|
|
848
|
+
const ambiguous = ambiguousHeadersByTarget.get(name) ?? new Set<string>()
|
|
849
|
+
ambiguousHeadersByTarget.set(name, ambiguous)
|
|
850
|
+
const flatAliases = flatAliasesByTarget.get(name) ?? new Map<string, string>()
|
|
851
|
+
flatAliasesByTarget.set(name, flatAliases)
|
|
571
852
|
const walk = (relative: string) => {
|
|
572
853
|
const disk = path.join(root, relative)
|
|
854
|
+
if (!fs.existsSync(disk)) return
|
|
573
855
|
if (fs.lstatSync(disk).isSymbolicLink())
|
|
574
856
|
throw new Error(`Nitro source directory is a symlink: ${disk}`)
|
|
575
857
|
for (const entry of fs
|
|
@@ -623,23 +905,53 @@ export function collectNitroSources(
|
|
|
623
905
|
}
|
|
624
906
|
const requested = `${targetPath(name)}/upstream/${sourceRelative}`
|
|
625
907
|
if (requested !== original) {
|
|
626
|
-
if (!/\.(?:h|hpp|hxx|inl|inc)$/.test(entry.name))
|
|
908
|
+
if (!/\.(?:h|hh|hpp|hxx|inl|inc)$/.test(entry.name))
|
|
627
909
|
throw new Error(
|
|
628
910
|
`aliased Nitro translation unit is unsupported: ${sourceRelative}`,
|
|
629
911
|
)
|
|
630
912
|
alias(requested, original)
|
|
631
913
|
}
|
|
632
|
-
if (!/\.(?:h|hpp|hxx|inl|inc)$/.test(entry.name)) continue
|
|
914
|
+
if (!/\.(?:h|hh|hpp|hxx|inl|inc)$/.test(entry.name)) continue
|
|
633
915
|
const prior = headers.get(entry.name)
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
916
|
+
const flatKey = `${targetPath(name)}/include/${entry.name}`
|
|
917
|
+
if (ambiguous.has(entry.name)) {
|
|
918
|
+
// keep unambiguous search-root-relative paths while dropping flat aliases
|
|
919
|
+
} else if (
|
|
920
|
+
prior &&
|
|
921
|
+
prior !== original &&
|
|
922
|
+
result.files[prior] !== result.files[original]
|
|
923
|
+
) {
|
|
924
|
+
ambiguous.add(entry.name)
|
|
925
|
+
const oldFlat = flatAliases.get(entry.name)
|
|
926
|
+
if (oldFlat) {
|
|
927
|
+
delete result.files[oldFlat]
|
|
928
|
+
delete result.aliases[oldFlat]
|
|
929
|
+
}
|
|
930
|
+
} else {
|
|
931
|
+
headers.set(entry.name, original)
|
|
932
|
+
flatAliases.set(entry.name, flatKey)
|
|
933
|
+
alias(flatKey, original)
|
|
934
|
+
}
|
|
638
935
|
const fromRoot = path.posix.relative(directory, sourceRelative)
|
|
639
936
|
if (searchRootDirs.has(directory) && fromRoot !== entry.name)
|
|
640
937
|
alias(`${targetPath(name)}/include/${fromRoot}`, original)
|
|
641
|
-
|
|
642
|
-
|
|
938
|
+
for (const searchRoot of searchRootDirs) {
|
|
939
|
+
if (sourceRelative.startsWith(`${searchRoot}/`)) {
|
|
940
|
+
const relFromSearch = sourceRelative.slice(searchRoot.length + 1)
|
|
941
|
+
if (relFromSearch !== entry.name || !ambiguous.has(entry.name)) {
|
|
942
|
+
const targetAlias = `${targetPath(name)}/include/${relFromSearch}`
|
|
943
|
+
if (!Object.hasOwn(result.files, targetAlias)) alias(targetAlias, original)
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
if (includeNamespace) {
|
|
948
|
+
const nsKey = `${targetPath(name)}/include/${includeNamespace}/${entry.name}`
|
|
949
|
+
if (
|
|
950
|
+
!Object.hasOwn(result.files, nsKey) &&
|
|
951
|
+
!ambiguous.has(`${includeNamespace}/${entry.name}`)
|
|
952
|
+
)
|
|
953
|
+
alias(nsKey, original)
|
|
954
|
+
}
|
|
643
955
|
}
|
|
644
956
|
}
|
|
645
957
|
walk(directory)
|
|
@@ -657,6 +969,17 @@ export function collectNitroSources(
|
|
|
657
969
|
(file) => (file.endsWith('.h') && file !== 'JSIDynamic.h') || file === 'jsi.cpp',
|
|
658
970
|
)
|
|
659
971
|
collect(nitro.root, 'cpp', coreTarget, 'NitroModules', new Set(['views']))
|
|
972
|
+
if (fs.existsSync(path.join(nitro.root, 'cpp/views'))) {
|
|
973
|
+
collect(
|
|
974
|
+
nitro.root,
|
|
975
|
+
'cpp/views',
|
|
976
|
+
coreTarget,
|
|
977
|
+
'NitroModules',
|
|
978
|
+
new Set(),
|
|
979
|
+
() => true,
|
|
980
|
+
/\.(?:h|hh|hpp|hxx|inl|inc)$/,
|
|
981
|
+
)
|
|
982
|
+
}
|
|
660
983
|
|
|
661
984
|
// Nitro 0.37.2 moved ios/ to apple/ (core and utils under apple/core); the
|
|
662
985
|
// platform and threading layers there are Peach's own, so only core and utils
|
|
@@ -668,8 +991,8 @@ export function collectNitroSources(
|
|
|
668
991
|
: ['ios/core', 'ios/utils']
|
|
669
992
|
const bridgeHeaders =
|
|
670
993
|
swiftModules.size > 0 ||
|
|
671
|
-
|
|
672
|
-
(provider) =>
|
|
994
|
+
allModules.some(
|
|
995
|
+
({ provider }) =>
|
|
673
996
|
fs.existsSync(path.join(provider.root, 'ios')) &&
|
|
674
997
|
fs
|
|
675
998
|
.readdirSync(path.join(provider.root, 'ios'), {
|
|
@@ -714,13 +1037,47 @@ export function collectNitroSources(
|
|
|
714
1037
|
)
|
|
715
1038
|
}
|
|
716
1039
|
|
|
1040
|
+
const importedSwiftModules = (providerRoot: string): Set<string> => {
|
|
1041
|
+
const modules = new Set<string>()
|
|
1042
|
+
for (const dir of ['ios', 'nitrogen/generated/ios']) {
|
|
1043
|
+
const rootDir = path.join(providerRoot, dir)
|
|
1044
|
+
if (!fs.existsSync(rootDir)) continue
|
|
1045
|
+
for (const entry of fs.readdirSync(rootDir, {
|
|
1046
|
+
recursive: true,
|
|
1047
|
+
withFileTypes: true,
|
|
1048
|
+
})) {
|
|
1049
|
+
if (!entry.isFile() || !entry.name.endsWith('.swift')) continue
|
|
1050
|
+
const source = readPackageFile(
|
|
1051
|
+
providerRoot,
|
|
1052
|
+
path.join(entry.parentPath, entry.name),
|
|
1053
|
+
MAX_SWIFT_COMPILE_SOURCE_BYTES,
|
|
1054
|
+
).toString('utf8')
|
|
1055
|
+
for (const match of source.matchAll(/^\s*import\s+([A-Za-z_]\w*)/gm)) {
|
|
1056
|
+
modules.add(match[1]!)
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
return modules
|
|
1061
|
+
}
|
|
1062
|
+
|
|
717
1063
|
const companionPods = new Map<string, string[]>()
|
|
718
|
-
const collectCompanionPods = (
|
|
1064
|
+
const collectCompanionPods = (node: NitroModuleNode): string[] => {
|
|
1065
|
+
const providerRoot = node.provider.root
|
|
719
1066
|
const manifest = readJson(providerRoot, 'package.json')
|
|
720
|
-
if (!object(manifest)
|
|
1067
|
+
if (!object(manifest)) return []
|
|
1068
|
+
const directDeps = new Set(
|
|
1069
|
+
object(manifest.dependencies) ? Object.keys(manifest.dependencies) : [],
|
|
1070
|
+
)
|
|
1071
|
+
const peerDeps = object(manifest.peerDependencies)
|
|
1072
|
+
? Object.keys(manifest.peerDependencies).filter((name) => !directDeps.has(name))
|
|
1073
|
+
: []
|
|
1074
|
+
const depNames = [...directDeps, ...peerDeps]
|
|
1075
|
+
if (depNames.length === 0) return []
|
|
721
1076
|
const providerRequire = createRequire(path.join(providerRoot, 'package.json'))
|
|
1077
|
+
const podspecDeps = new Set(node.podspec.dependencies)
|
|
1078
|
+
let swiftImports: Set<string> | undefined
|
|
722
1079
|
const deps: string[] = []
|
|
723
|
-
for (const depName of
|
|
1080
|
+
for (const depName of [...new Set(depNames)].sort()) {
|
|
724
1081
|
const depManifest = providerRequire.resolve
|
|
725
1082
|
.paths(depName)
|
|
726
1083
|
?.map((directory) => path.join(directory, depName, 'package.json'))
|
|
@@ -734,14 +1091,13 @@ export function collectNitroSources(
|
|
|
734
1091
|
.filter((file) => file.endsWith('.podspec'))
|
|
735
1092
|
.sort()
|
|
736
1093
|
if (podspecs.length !== 1) continue
|
|
737
|
-
const
|
|
738
|
-
depRoot,
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
path.basename(podspecs[0]!, '.podspec')
|
|
1094
|
+
const podName = podspecName(
|
|
1095
|
+
loadPodspec(path.join(depRoot, podspecs[0]!), options.appRoot),
|
|
1096
|
+
)
|
|
1097
|
+
if (!directDeps.has(depName) && !podspecDeps.has(podName)) {
|
|
1098
|
+
swiftImports ??= importedSwiftModules(providerRoot)
|
|
1099
|
+
if (!swiftImports.has(podName)) continue
|
|
1100
|
+
}
|
|
745
1101
|
let registered = companionPods.get(podName)
|
|
746
1102
|
if (!registered) {
|
|
747
1103
|
registered = []
|
|
@@ -786,79 +1142,166 @@ export function collectNitroSources(
|
|
|
786
1142
|
return deps
|
|
787
1143
|
}
|
|
788
1144
|
|
|
789
|
-
|
|
790
|
-
|
|
1145
|
+
const admitTextualIncludes = (
|
|
1146
|
+
root: string,
|
|
1147
|
+
targetName: string,
|
|
1148
|
+
targetObj: SwiftPackageTarget,
|
|
1149
|
+
searchRoots: readonly string[],
|
|
1150
|
+
) => {
|
|
1151
|
+
const prefix = `${targetPath(targetName)}/upstream/`
|
|
1152
|
+
const queue = Object.keys(result.files).filter((key) => key.startsWith(prefix))
|
|
1153
|
+
const scanned = new Set<string>()
|
|
1154
|
+
const excludes = new Set(targetObj.exclude ?? [])
|
|
1155
|
+
while (queue.length > 0) {
|
|
1156
|
+
const file = queue.pop()!
|
|
1157
|
+
if (scanned.has(file)) continue
|
|
1158
|
+
scanned.add(file)
|
|
1159
|
+
const text = result.files[file]
|
|
1160
|
+
if (!text || !/\.(?:c|cc|cpp|cxx|h|hh|hpp|hxx|inl|inc|m|mm)$/.test(file)) continue
|
|
1161
|
+
const includerRel = file.slice(prefix.length)
|
|
1162
|
+
for (const [, quote, include] of text.matchAll(
|
|
1163
|
+
/^\s*#\s*(?:include|import)\s*([<"])([^>"\n]+)[>"]/gm,
|
|
1164
|
+
)) {
|
|
1165
|
+
const candidates =
|
|
1166
|
+
quote === '"'
|
|
1167
|
+
? [
|
|
1168
|
+
path.posix.join(path.posix.dirname(includerRel), include!),
|
|
1169
|
+
include!,
|
|
1170
|
+
...searchRoots.map((dir) => path.posix.join(dir, include!)),
|
|
1171
|
+
path.posix.join('cpp', include!),
|
|
1172
|
+
]
|
|
1173
|
+
: [
|
|
1174
|
+
...searchRoots.map((dir) => path.posix.join(dir, include!)),
|
|
1175
|
+
path.posix.join('cpp', include!),
|
|
1176
|
+
include!,
|
|
1177
|
+
]
|
|
1178
|
+
for (const candidate of candidates) {
|
|
1179
|
+
const normalized = path.posix.normalize(candidate)
|
|
1180
|
+
if (normalized.startsWith('..')) continue
|
|
1181
|
+
const disk = path.join(root, normalized)
|
|
1182
|
+
if (!fs.statSync(disk, { throwIfNoEntry: false })?.isFile()) continue
|
|
1183
|
+
const real = fs.realpathSync(disk)
|
|
1184
|
+
const canonicalRel = path.relative(root, real).split(path.sep).join('/')
|
|
1185
|
+
if (canonicalRel.startsWith('..')) continue
|
|
1186
|
+
const key = `${prefix}${canonicalRel}`
|
|
1187
|
+
if (!Object.hasOwn(result.files, key)) {
|
|
1188
|
+
const bytes = readPackageFile(root, real, Infinity)
|
|
1189
|
+
const body = bytes.toString('utf8')
|
|
1190
|
+
if (!Buffer.from(body).equals(bytes)) break
|
|
1191
|
+
add(key, body)
|
|
1192
|
+
originals.set(real, key)
|
|
1193
|
+
result.sources.push({
|
|
1194
|
+
file: key,
|
|
1195
|
+
source: real,
|
|
1196
|
+
sha256: createHash('sha256').update(bytes).digest('hex'),
|
|
1197
|
+
})
|
|
1198
|
+
if (/\.(?:c|cc|cpp|cxx|m|mm|swift)$/.test(canonicalRel)) {
|
|
1199
|
+
excludes.add(`upstream/${canonicalRel}`)
|
|
1200
|
+
}
|
|
1201
|
+
queue.push(key)
|
|
1202
|
+
}
|
|
1203
|
+
break
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
if (excludes.size > 0) targetObj.exclude = [...excludes].sort()
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
const iosObjcHeadersByTarget = new Map<string, string[]>()
|
|
1211
|
+
|
|
1212
|
+
for (const node of allModules) {
|
|
1213
|
+
const module = node.provider
|
|
1214
|
+
const config = node.config
|
|
791
1215
|
const targetName = nitroProviderTarget(module)
|
|
1216
|
+
const targetObj = nodeTargets.get(targetName)!
|
|
1217
|
+
const podName = node.podspec.podName ?? config.swiftModule ?? module.name
|
|
1218
|
+
const searchRoots = node.podspec.headerSearchPaths
|
|
1219
|
+
for (const dir of searchRoots) searchRootDirs.add(dir)
|
|
792
1220
|
const implementationHeaders = fs.existsSync(path.join(module.root, 'cpp'))
|
|
793
|
-
? collect(module.root, 'cpp', targetName,
|
|
1221
|
+
? collect(module.root, 'cpp', targetName, podName)
|
|
794
1222
|
: new Map<string, string>()
|
|
795
|
-
// the podspec's other HEADER_SEARCH_PATHS roots under the pod directory
|
|
796
|
-
// (vendored C sources and headers) are part of the same translation set.
|
|
797
|
-
const podspecFile = fs.readdirSync(module.root).find((f) => f.endsWith('.podspec'))
|
|
798
|
-
const searchRoots = podspecFile
|
|
799
|
-
? [
|
|
800
|
-
...fs
|
|
801
|
-
.readFileSync(path.join(module.root, podspecFile), 'utf8')
|
|
802
|
-
.split('\n')
|
|
803
|
-
.filter((line) => /HEADER_SEARCH_PATHS/.test(line))
|
|
804
|
-
.join('\n')
|
|
805
|
-
.matchAll(/\$[({]PODS_TARGET_SRCROOT[)}]\/([^\s"'\\)}$]+)/g),
|
|
806
|
-
]
|
|
807
|
-
.map((match) => match[1]!.replace(/\/+$/, ''))
|
|
808
|
-
.filter(
|
|
809
|
-
(dir) =>
|
|
810
|
-
dir !== 'cpp' &&
|
|
811
|
-
dir !== 'ios' &&
|
|
812
|
-
fs.existsSync(path.join(module.root, dir)),
|
|
813
|
-
)
|
|
814
|
-
: []
|
|
815
1223
|
for (const dir of searchRoots.filter(
|
|
816
|
-
(dir) =>
|
|
1224
|
+
(dir) =>
|
|
1225
|
+
dir !== 'cpp' &&
|
|
1226
|
+
!dir.startsWith('cpp/') &&
|
|
1227
|
+
dir !== 'ios' &&
|
|
1228
|
+
!dir.startsWith('ios/') &&
|
|
1229
|
+
!searchRoots.some((other) => other !== dir && dir.startsWith(`${other}/`)),
|
|
817
1230
|
)) {
|
|
818
|
-
|
|
819
|
-
collect(module.root, dir, targetName, null)
|
|
1231
|
+
collect(module.root, dir, targetName, podName)
|
|
820
1232
|
}
|
|
821
|
-
// views/ holds nitrogen's Fabric component descriptor and props parser,
|
|
822
|
-
// which only React Native's Fabric renderer reads.
|
|
823
|
-
collect(
|
|
824
|
-
module.root,
|
|
825
|
-
'nitrogen/generated/shared/c++',
|
|
826
|
-
targetName,
|
|
827
|
-
null,
|
|
828
|
-
new Set(['views']),
|
|
829
|
-
)
|
|
830
|
-
for (const entry of config.classes)
|
|
831
|
-
if (
|
|
832
|
-
entry.language === 'c++' &&
|
|
833
|
-
!implementationHeaders.has(`${entry.implementation}.hpp`)
|
|
834
|
-
)
|
|
835
|
-
throw new Error(
|
|
836
|
-
`${module.root}: missing C++ implementation header ${entry.implementation}.hpp`,
|
|
837
|
-
)
|
|
838
|
-
// the podspec's `ios/**/*.{h,hpp,m,mm}` and generated bridge: the original
|
|
839
|
-
// Objective-C and Objective-C++ units compile unchanged beside the C++.
|
|
840
|
-
// the generated autolinking initializer is the one unit Peach replaces
|
|
841
|
-
// with the registration below, which honors the app's answers. an installed
|
|
842
|
-
// Swift pod target moves these units into its mixed target.
|
|
843
1233
|
if (fs.existsSync(path.join(module.root, 'ios'))) {
|
|
844
|
-
collect(
|
|
1234
|
+
const iosCollected = collect(
|
|
845
1235
|
module.root,
|
|
846
1236
|
'ios',
|
|
847
1237
|
targetName,
|
|
848
|
-
|
|
1238
|
+
podName,
|
|
849
1239
|
new Set(['Tests']),
|
|
850
1240
|
() => true,
|
|
851
|
-
/\.(?:h|hpp|m|mm)$/,
|
|
1241
|
+
/\.(?:h|hh|hpp|m|mm)$/,
|
|
852
1242
|
)
|
|
1243
|
+
if (config.swiftModule) {
|
|
1244
|
+
const objcHeaders = [...iosCollected.entries()]
|
|
1245
|
+
.filter(
|
|
1246
|
+
([name, original]) =>
|
|
1247
|
+
name.endsWith('.h') &&
|
|
1248
|
+
Object.hasOwn(result.files, `${targetPath(targetName)}/include/${name}`) &&
|
|
1249
|
+
/(?:@(?:interface|protocol)\b|\b(?:NS_(?:ENUM|OPTIONS)|FOUNDATION_EXPORT)\b)/.test(
|
|
1250
|
+
result.files[original] ?? '',
|
|
1251
|
+
),
|
|
1252
|
+
)
|
|
1253
|
+
.map(([name]) => name)
|
|
1254
|
+
if (objcHeaders.length > 0) iosObjcHeadersByTarget.set(targetName, objcHeaders)
|
|
1255
|
+
}
|
|
853
1256
|
}
|
|
854
|
-
|
|
1257
|
+
admitTextualIncludes(module.root, targetName, targetObj, searchRoots)
|
|
1258
|
+
// include nitrogen/generated/shared/c++/views only when the module's own C++/ObjC++
|
|
1259
|
+
// sources reference a view component header (e.g. NitroTextShadowNode.hpp -> HybridNitroTextComponent.hpp).
|
|
1260
|
+
const viewsDir = path.join(module.root, 'nitrogen/generated/shared/c++/views')
|
|
1261
|
+
const viewHeaders = fs.existsSync(viewsDir)
|
|
1262
|
+
? fs.readdirSync(viewsDir).filter((file) => /\.(?:h|hh|hpp|hxx)$/.test(file))
|
|
1263
|
+
: []
|
|
1264
|
+
const upstreamPrefix = `${targetPath(targetName)}/upstream/`
|
|
1265
|
+
const needsViews =
|
|
1266
|
+
viewHeaders.length > 0 &&
|
|
1267
|
+
Object.entries(result.files).some(
|
|
1268
|
+
([key, text]) =>
|
|
1269
|
+
(key.startsWith(`${upstreamPrefix}cpp/`) ||
|
|
1270
|
+
key.startsWith(`${upstreamPrefix}ios/`)) &&
|
|
1271
|
+
viewHeaders.some((header) => text.includes(header)),
|
|
1272
|
+
)
|
|
1273
|
+
collect(
|
|
1274
|
+
module.root,
|
|
1275
|
+
'nitrogen/generated/shared/c++',
|
|
1276
|
+
targetName,
|
|
1277
|
+
podName,
|
|
1278
|
+
needsViews ? new Set() : new Set(['views']),
|
|
1279
|
+
)
|
|
1280
|
+
if (node.registered) {
|
|
1281
|
+
for (const entry of config.classes)
|
|
1282
|
+
if (
|
|
1283
|
+
entry.language === 'c++' &&
|
|
1284
|
+
!implementationHeaders.has(`${entry.implementation}.hpp`)
|
|
1285
|
+
)
|
|
1286
|
+
throw new Error(
|
|
1287
|
+
`${module.root}: missing C++ implementation header ${entry.implementation}.hpp`,
|
|
1288
|
+
)
|
|
1289
|
+
}
|
|
1290
|
+
collect(module.root, 'nitrogen/generated/ios', targetName, podName)
|
|
855
1291
|
|
|
856
1292
|
if (config.swiftModule) {
|
|
857
|
-
const companionDeps = collectCompanionPods(
|
|
1293
|
+
const companionDeps = collectCompanionPods(node)
|
|
1294
|
+
const peerModuleDeps = node.peerRoots.flatMap((peerRoot) => {
|
|
1295
|
+
const peer = moduleByRoot.get(peerRoot)!
|
|
1296
|
+
return [
|
|
1297
|
+
nitroProviderTarget(peer.provider),
|
|
1298
|
+
...(peer.config.swiftModule ? [peer.config.swiftModule] : []),
|
|
1299
|
+
]
|
|
1300
|
+
})
|
|
858
1301
|
const packageSwift = target(config.swiftModule, [
|
|
859
1302
|
targetName,
|
|
860
1303
|
'NitroModules',
|
|
861
|
-
...companionDeps,
|
|
1304
|
+
...new Set([...peerModuleDeps, ...companionDeps]),
|
|
862
1305
|
])
|
|
863
1306
|
packageSwift.cxxInterop = true
|
|
864
1307
|
result.targets.push(packageSwift)
|
|
@@ -931,8 +1374,8 @@ export function collectNitroSources(
|
|
|
931
1374
|
}
|
|
932
1375
|
return true
|
|
933
1376
|
}
|
|
934
|
-
for (const
|
|
935
|
-
const targetName = nitroProviderTarget(
|
|
1377
|
+
for (const node of allModules) {
|
|
1378
|
+
const targetName = nitroProviderTarget(node.provider)
|
|
936
1379
|
for (const [file, text] of Object.entries(result.files))
|
|
937
1380
|
if (file.startsWith(`${targetPath(targetName)}/upstream/`))
|
|
938
1381
|
scan(targetName, text, null)
|
|
@@ -947,7 +1390,7 @@ export function collectNitroSources(
|
|
|
947
1390
|
`${targetPath(coreTarget)}/include/module.modulemap`,
|
|
948
1391
|
`module ${coreTarget} { header "NitroModules/InstallNitro.hpp"${bridgeHeaders ? ['ArrayBufferHolder.hpp', 'AnyMapUtils.hpp', 'PromiseHolder.hpp', 'Result.hpp', 'RuntimeError.hpp', 'DateToChronoDate.hpp'].map((header) => ` header "NitroModules/${header}"`).join('') : ''} export * }\n`,
|
|
949
1392
|
)
|
|
950
|
-
if (
|
|
1393
|
+
if (hasViews) {
|
|
951
1394
|
const viewsPath = targetPath(NITRO_VIEWS_TARGET)
|
|
952
1395
|
add(
|
|
953
1396
|
`${viewsPath}/include/module.modulemap`,
|
|
@@ -1043,16 +1486,44 @@ export function collectNitroSources(
|
|
|
1043
1486
|
].join('\n'),
|
|
1044
1487
|
)
|
|
1045
1488
|
}
|
|
1046
|
-
|
|
1047
|
-
|
|
1489
|
+
let registeredIndex = 0
|
|
1490
|
+
for (const node of allModules) {
|
|
1491
|
+
const module = node.provider
|
|
1492
|
+
const config = node.config
|
|
1048
1493
|
const targetName = nitroProviderTarget(module)
|
|
1049
|
-
const
|
|
1050
|
-
|
|
1051
|
-
|
|
1494
|
+
const iosObjcHeaders = iosObjcHeadersByTarget.get(targetName) ?? []
|
|
1495
|
+
if (iosObjcHeaders.length > 0) {
|
|
1496
|
+
add(
|
|
1497
|
+
`${targetPath(targetName)}/include/PeachPodObjCUmbrella.h`,
|
|
1498
|
+
[
|
|
1499
|
+
'#pragma once',
|
|
1500
|
+
'#ifdef __OBJC__',
|
|
1501
|
+
'#import <UIKit/UIKit.h>',
|
|
1502
|
+
'#import <Foundation/Foundation.h>',
|
|
1503
|
+
...iosObjcHeaders.map((header) => `#import ${JSON.stringify(header)}`),
|
|
1504
|
+
'#endif',
|
|
1505
|
+
'',
|
|
1506
|
+
].join('\n'),
|
|
1507
|
+
)
|
|
1508
|
+
}
|
|
1509
|
+
const modulemapHeaders = [
|
|
1510
|
+
...(node.registered ? ['header "PeachNitroRegistration.hpp"'] : []),
|
|
1511
|
+
...(config.swiftModule
|
|
1512
|
+
? [`header "${config.swiftModule}-Swift-Cxx-Bridge.hpp"`]
|
|
1513
|
+
: []),
|
|
1514
|
+
...(iosObjcHeaders.length > 0 ? ['header "PeachPodObjCUmbrella.h"'] : []),
|
|
1515
|
+
]
|
|
1052
1516
|
add(
|
|
1053
1517
|
`${targetPath(targetName)}/include/module.modulemap`,
|
|
1054
|
-
`module ${targetName} {
|
|
1518
|
+
`module ${targetName} { ${modulemapHeaders.length > 0 ? `${modulemapHeaders.join(' ')} ` : ''}export * }\n`,
|
|
1055
1519
|
)
|
|
1520
|
+
if (!node.registered) continue
|
|
1521
|
+
const registration = result.registrations[registeredIndex]!
|
|
1522
|
+
const swiftViews = new Map(
|
|
1523
|
+
registeredViews[registeredIndex]!.map((view) => [view.name, view]),
|
|
1524
|
+
)
|
|
1525
|
+
registeredIndex++
|
|
1526
|
+
add(registration.header, `#pragma once\nextern "C" void ${registration.symbol}();\n`)
|
|
1056
1527
|
add(
|
|
1057
1528
|
`${targetPath(targetName)}/PeachNitroRegistration.cpp`,
|
|
1058
1529
|
[
|