peachsim 0.1.2935 → 0.1.2937
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/LICENSE +6 -8
- package/cli/account-gate.ts +20 -3
- package/cli/app-bundle-resources.ts +66 -19
- package/cli/catalog/meta.ts +2 -106
- package/cli/command-agent.ts +7 -0
- package/cli/command-registry.ts +0 -1
- package/cli/commands/control.ts +13 -5
- package/cli/commands/daemon.ts +4 -2
- package/cli/commands/device.ts +78 -8
- package/cli/commands/do-chain.ts +11 -8
- package/cli/commands/inspect/core.ts +4 -9
- package/cli/commands/inspect/settling.ts +1 -0
- package/cli/commands/logout.ts +6 -1
- package/cli/commands/map.ts +2 -6
- package/cli/commands/package.ts +112 -57
- package/cli/commands/shell-url.ts +0 -1
- package/cli/download-auth.ts +2 -0
- package/cli/drivers/playwright-provisioning.ts +10 -38
- package/cli/github-workflow-identity.ts +8 -0
- package/cli/internal-child-contract.ts +1 -0
- package/cli/internal-child.ts +5 -0
- package/cli/main.ts +2 -10
- package/cli/outbound-endpoints.ts +26 -0
- package/detox/index.ts +227 -131
- 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 +2 -2
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +47 -3
- package/dist-lib/bridge-contract-input.mjs +6 -6
- package/dist-lib/bridge-contract.cjs +10 -1
- package/dist-lib/bridge-contract.mjs +3 -3
- package/dist-lib/bundle-channel.cjs +12779 -9515
- package/dist-lib/capture-contract.cjs +39 -17
- package/dist-lib/capture-contract.mjs +3 -3
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +3 -3
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +2 -2
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +8 -8
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +6 -6
- package/dist-lib/detox/index.cjs +200 -132
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/esm-chunks/{acorn-Q5TRRYSO.mjs → acorn-IIBLEO25.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-UDWBTBVG.mjs → chunk-4FTPQKPT.mjs} +10 -1
- package/dist-lib/esm-chunks/chunk-4WIDTRBB.mjs +10232 -0
- package/dist-lib/esm-chunks/{chunk-LCMFYMT7.mjs → chunk-5QZOQ3NZ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-BJ2OGUX7.mjs → chunk-CIY67HNL.mjs} +39 -17
- package/dist-lib/esm-chunks/{chunk-SKQTNQYE.mjs → chunk-CQFEMJ64.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-AXWVXRHX.mjs → chunk-CWVMCW23.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-MTALOHQR.mjs → chunk-F6DZ4DS2.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-I4R7IZRD.mjs → chunk-HJMF6O7L.mjs} +74 -46
- package/dist-lib/esm-chunks/chunk-I6T4PXJF.mjs +154 -0
- package/dist-lib/esm-chunks/{chunk-XWAUZKIA.mjs → chunk-IJU3JMWM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-CXWUIOCH.mjs → chunk-KODEPXQC.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-WJE5QHSD.mjs → chunk-LD4K2VBL.mjs} +155 -36
- package/dist-lib/esm-chunks/{chunk-2TSM64HI.mjs → chunk-LTE7YMEG.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-3GGOXUJA.mjs → chunk-M3CSKAJE.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-7G5UETIG.mjs → chunk-NA6DJPB6.mjs} +43 -1
- package/dist-lib/esm-chunks/{chunk-MSUHMNAI.mjs → chunk-NNAX24FS.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-VDJA4LP4.mjs → chunk-PZPJJBAS.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-UEEEJVQA.mjs → chunk-QXSTHMWN.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-S2RJB5I7.mjs → chunk-RBPVK5YI.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-VRAXNGYT.mjs → chunk-SCT5OFDV.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-T3M73LGP.mjs → chunk-U3CJGYSP.mjs} +50 -6
- package/dist-lib/esm-chunks/{chunk-SLUGTGQQ.mjs → chunk-VXTOQ522.mjs} +12 -6
- package/dist-lib/esm-chunks/{chunk-EL44SZMV.mjs → chunk-WMSVGYTH.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-FEDEPSEV.mjs → chunk-WRWINRWK.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-BNO52N2S.mjs → chunk-YZF2USRD.mjs} +1905 -8760
- package/dist-lib/esm-chunks/{chunk-TQLKYMVP.mjs → chunk-ZNHR6C3L.mjs} +1 -1
- package/dist-lib/esm-chunks/{download-auth-registry-G75MIT55.mjs → download-auth-registry-AHS5MSIB.mjs} +4 -4
- package/dist-lib/esm-chunks/{metro-layout-parser-FXLUDTYT.mjs → metro-layout-parser-24ZYK5UP.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-524D4MA2.mjs → swift-package-prebuilt-L4YNXQRD.mjs} +15 -15
- package/dist-lib/esm-chunks/{swift-sdk-app-module-EX544YJY.mjs → swift-sdk-app-module-RM652JSW.mjs} +87 -71
- package/dist-lib/esm-chunks/{swift-sdk-image-LOTMWVM7.mjs → swift-sdk-image-5PQ44UJT.mjs} +15 -15
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-UO6B3M4U.mjs → swift-sdk-image-producer-GD3SM6YI.mjs} +5 -5
- package/dist-lib/esm-chunks/swift-sdk-later-data-62QYJ2KH.mjs +590 -0
- package/dist-lib/expo-swift-bundle.cjs +21037 -17896
- package/dist-lib/expo-swift-metadata.cjs +8 -2
- package/dist-lib/expo-swift-metadata.mjs +9 -8
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +22481 -18741
- package/dist-lib/host/fetch-proxy-handler.cjs +21079 -17980
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +68 -38
- package/dist-lib/kotlin-host.cjs +97 -21
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +3 -3
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +3 -3
- package/dist-lib/metro-production-bundle.cjs +23 -1
- package/dist-lib/metro-production-bundle.mjs +24 -4
- package/dist-lib/native-app-identity-project.cjs +3582 -571
- package/dist-lib/native-app-identity-project.mjs +1024 -398
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +6 -6
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +3 -3
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +2 -2
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +3 -3
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +132 -116
- package/dist-lib/public-origins-lib.json +215 -173
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +2 -2
- package/dist-lib/reap-browser.cjs +17 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +6 -7
- package/dist-lib/sdk.mjs +13 -14
- package/dist-lib/skills.cjs +23216 -19650
- package/dist-lib/swift-compile.cjs +4337 -2905
- package/dist-lib/swift-compile.mjs +15 -13
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +3 -3
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +6 -6
- package/dist-lib/swift-svg-raster.cjs +1 -1
- package/dist-lib/swift-svg-raster.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +19 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
- package/dist-lib/vendor/acorn.cjs +1 -1
- package/dist-lib/vendor/stream-json.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
- package/dist-lib/vendor/sucrase.cjs +1 -1
- package/dist-lib/vendor/terser.cjs +1 -1
- package/dist-lib/vendor/valibot.cjs +1 -1
- package/dist-lib/vendor/ws.cjs +94 -32
- package/dist-lib/vendor/zod.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +8 -5
- package/dist-lib/worklet-executable.mjs +9 -6
- package/dist-types/packages/peach-engine/src/canvaskit-artifact-urls.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/capture/compositor-presentation-recording.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/generated/canvaskit-artifact-hashes.d.ts +26 -0
- package/dist-types/packages/peach-engine/src/engine/guest-scene-inspect.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/inspect-info.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/metalTypes.d.ts +32 -2
- package/dist-types/packages/peach-engine/src/engine/portalContract.d.ts +24 -0
- package/dist-types/packages/peach-engine/src/engine/remote-display-protocol.d.ts +12 -2
- package/dist-types/packages/peach-engine/src/guest/http-cookie-storage.d.ts +73 -0
- package/dist-types/packages/peach-engine/src/guest/native-evaluation-lease.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/guest/nitro-jsi-host.d.ts +3 -1
- package/dist-types/packages/peach-engine/src/ios/apps/canvas-map-data.d.ts +225 -9
- package/dist-types/packages/peach-engine/src/ios/chrome-metrics.d.ts +4 -1
- package/dist-types/packages/peach-engine/src/ios/duo-vertical-bar-geometry.d.ts +0 -1
- package/dist-types/packages/peach-engine/src/native-preview-bundle.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/remote-stream/canvas-display-compositor.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/remote-stream/canvas-display-contract.d.ts +44 -10
- package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +4 -3
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +2 -4
- package/dist-types/packages/peach-engine/src/render-worker/metro-bundle-metadata.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-widgetContract.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +15 -27
- package/dist-types/packages/peach-engine/src/render-worker/reanimated-readiness.d.ts +2 -6
- package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +11 -3
- package/dist-types/packages/peach-engine/src/settings/devices.d.ts +3 -1
- package/dist-types/packages/peach-engine/src/settings/duo-fold.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/webview-automation-host.d.ts +1 -1
- package/dist-types/packages/peach-globals/src/app-bundle-resources.d.ts +10 -0
- package/dist-types/packages/peach-globals/src/compositorBridgeContract.d.ts +1 -1
- package/dist-types/packages/peach-globals/src/hostStorageBridgeContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/index.d.ts +2 -2
- package/dist-types/packages/peach-globals/src/lockstepCaptureBridgeContract.d.ts +9 -6
- package/dist-types/packages/peach-globals/src/nodeContract.d.ts +11 -0
- package/dist-types/packages/peach-globals/src/oneWidgetContract.d.ts +28 -0
- package/package.json +2 -2
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreHaptics.framework/Headers/CoreHaptics.h +251 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INImage.h +14 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INIntent.h +18 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INIntentIdentifiers.h +30 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INIntentResponse.h +12 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INInteraction.h +35 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INObjectCollection.h +0 -7
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INObjectSection.h +0 -7
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INOutgoingMessageType.h +7 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INPerson.h +36 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INPersonHandle.h +22 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INSendMessageIntent+UserNotifications.h +6 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INSendMessageIntent.h +33 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INSpeakableString.h +24 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/Intents.h +11 -7
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMailComposeViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMessageComposeViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRenderCommandEncoder.h +0 -8
- package/sdk/ios/System/Library/Frameworks/MetalTypes.framework/Headers/MetalTypes.h +8 -0
- package/sdk/ios/System/Library/Frameworks/Social.framework/Headers/SLServiceTypes.h +9 -0
- package/sdk/ios/System/Library/Frameworks/Social.framework/Headers/Social.h +1 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotification.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationAction.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationAttachment.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationCategory.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationRequest.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationResponse.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationSound.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationTrigger.h +5 -5
- package/sdk/ios/usr/lib/swift/UIKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +4 -0
- package/sdk/ios/wasm/include/unistd.h +1 -0
- package/src/acorn-program.ts +3 -0
- package/src/audio-codec-archives.ts +141 -0
- package/src/bridge-contract-input.ts +61 -1
- package/src/bridge-contract.ts +45 -4
- package/src/bundle-channel.mjs +44 -30
- package/src/capture-contract.ts +57 -39
- package/src/conformance-comparison-contract.ts +2 -0
- package/src/expo-discovery-cache.ts +0 -2
- package/src/expo-macro-host.ts +8 -3
- package/src/expo-native-compiler-digest.ts +0 -1
- package/src/expo-native-prebuilt.ts +1 -1
- package/src/expo-native-workspace.ts +83 -45
- package/src/expo-pod-prebuilt.ts +1 -0
- package/src/expo-swift-host.ts +158 -77
- package/src/expo-swift-legacy-runtime-source.ts +12 -1
- package/src/expo-swift-view-source.ts +51 -20
- package/src/expo-workspace-exclusion.ts +7 -1
- package/src/expoSwiftContract.ts +10 -1
- package/src/ffmpeg-source-build.ts +123 -59
- package/src/genrule-archives.ts +7 -2
- package/src/genrule-library-builds.ts +101 -18
- package/src/host/bridge-host.ts +10 -1
- package/src/installed-native-libraries.ts +147 -23
- package/src/installed-package-versions.ts +30 -0
- package/src/ios-rn-bundle-request.ts +3 -1
- package/src/ios-rn-bundle.ts +38 -27
- package/src/ios-rn-compile.ts +23 -6
- package/src/ios-rn-startup.ts +2 -1
- package/src/java-module-abi.ts +4 -3
- package/src/kotlin-host.ts +4 -4
- package/src/kotlin-library-sources.ts +8 -5
- package/src/metro-production-bundle.ts +24 -0
- package/src/native-firebase-config.ts +2 -0
- package/src/native-framework-compiler.ts +5 -0
- package/src/native-package-slice-build.ts +3 -0
- package/src/native-package-slice.ts +15 -10
- package/src/native-preparation.ts +4 -1
- package/src/native-static-libraries.ts +107 -33
- package/src/nativeRuntimePackageIndex.ts +1 -4
- package/src/nitro-adapter.lock.json +286 -286
- package/src/nitro-app-providers.ts +20 -8
- package/src/nitro-compile.ts +131 -37
- package/src/nitro-dependencies.ts +42 -8
- package/src/nitro-source.ts +40 -36
- package/src/nitro-superset.lock.json +4 -4
- package/src/nitroAdapterContract.ts +32 -7
- package/src/nitroContract.ts +21 -37
- package/src/one-direct-host-source.ts +247 -140
- package/src/one-fabric.ts +129 -0
- package/src/one-native-controls-package.ts +95 -21
- package/src/one-native-controls-release.ts +147 -14
- package/src/one-native-source.ts +4 -1
- package/src/one-nitro-inputs.ts +1 -1
- package/src/one-nitro-source.ts +45 -1
- package/src/one-sdk/source.ts +10 -41
- package/src/one-widget-metadata.ts +2 -2
- package/src/one-widget-package.ts +1 -1
- package/src/oneSdkContract.ts +3 -0
- package/src/playwright-browser-paths.ts +30 -0
- package/src/pods-install.ts +6 -2
- package/src/pods-post-install.ts +2 -2
- package/src/pods-project.ts +10 -0
- package/src/podspec-ruby-stdlib.ts +73 -0
- package/src/podspec-ruby.ts +1 -1
- package/src/podspec-sources.ts +31 -13
- package/src/process-group.ts +135 -5
- package/src/published-swift-sdk.ts +25 -1
- package/src/react-native-bridge-modules.ts +35 -3
- package/src/react-native-core-build.ts +14 -2
- package/src/react-native-core.ts +12 -2
- package/src/rive-runtime-dependencies.ts +178 -40
- package/src/serverDiscoveryContract.ts +1 -1
- package/src/storageSnapshotContract.ts +1 -1
- package/src/swift-app-data-store.ts +35 -0
- package/src/swift-compile.ts +403 -121
- package/src/swift-compiler-digest.ts +4 -0
- package/src/swift-darwin-records.ts +6 -0
- package/src/swift-distribution-mirror.ts +10 -1
- package/src/swift-distribution.lock.json +19 -18
- package/src/swift-distribution.ts +17 -1
- package/src/swift-entry-module.ts +1 -0
- package/src/swift-guest-compile.ts +8 -1
- package/src/swift-host.ts +79 -23
- package/src/swift-installed-targets.ts +51 -20
- package/src/swift-objc-standin.ts +60 -8
- package/src/swift-packages.ts +104 -24
- package/src/swift-project-user.ts +2 -1
- package/src/swift-reproducible.ts +99 -1
- package/src/swift-root-lock.ts +52 -46
- package/src/swift-sdk-app-module.ts +65 -13
- package/src/swift-sdk-image-producer.ts +2 -1
- package/src/swift-sdk-image.ts +23 -8
- package/src/swift-sdk-later-data.ts +294 -44
- package/src/swift-sdk-surface.ts +233 -55
- package/src/swift-shared-sdk.ts +7 -0
- package/src/swift-standin-builtin-behavior.ts +18 -0
- package/src/swift-standin-emit.ts +242 -54
- package/src/swift-standins.ts +184 -38
- package/src/swift-startup-split.ts +19 -9
- package/src/swift-toolchain.ts +18 -0
- package/src/swift-wasm-prune.ts +179 -9
- package/src/swift-xcframework.ts +16 -0
- package/src/swiftContract.ts +4 -1
- package/src/swiftSdkLinkContract.ts +2 -0
- package/src/swiftTargetContract.ts +1 -0
- package/src/turbo-bundle.ts +6 -3
- package/src/turbo-codegen-intake.ts +106 -16
- package/src/turbo-compile.ts +89 -68
- package/src/turbo-fabric-app.ts +287 -23
- package/src/turbo-provider-host.ts +122 -31
- package/src/turbo-runtime.lock.json +26 -26
- package/src/turbo-source.ts +374 -157
- package/src/vite-plugin.ts +48 -112
- package/src/wasm-binary-sections.ts +40 -0
- package/src/wasm-code-immediates.ts +35 -5
- package/src/widget-extension-bundle.ts +15 -1
- package/src/worklet-executable.ts +2 -1
- package/src/worklet-kernel.ts +5 -3
- package/src/worklets-babel.ts +2 -1
- package/src/xcode-project.ts +151 -53
- package/src/xcode-scheme-actions.ts +104 -0
- package/cli/commands/canvas.ts +0 -1204
- package/dist-lib/esm-chunks/chunk-B5QD2KEV.mjs +0 -2787
- package/dist-lib/vendor/magic-string.cjs +0 -1693
- package/dist-types/packages/peach-compat/src/stubs/native-seams/react-native-cookies.d.ts +0 -127
- package/src/appBundleResourcesContract.ts +0 -51
- package/src/canvas-groups.ts +0 -28
- package/src/canvas-map-layout.ts +0 -161
- package/src/oneWidgetContract.ts +0 -134
|
@@ -16,11 +16,13 @@ const gitEnvironment = () => ({
|
|
|
16
16
|
// neither copies nor hashes them: files a dev server generates into an ignored
|
|
17
17
|
// directory never invalidate the prepared workspace.
|
|
18
18
|
// a linked local package ships through its build output, which its gitignore hides,
|
|
19
|
-
// so those packages keep their ignored files.
|
|
19
|
+
// so those packages keep their ignored files. an ignored file a scheme
|
|
20
|
+
// pre-action reads stays: xcode reads it from the developer's tree.
|
|
20
21
|
export async function workspaceExclusion(
|
|
21
22
|
root: string,
|
|
22
23
|
portable = false,
|
|
23
24
|
linkedPackages: string[] = [],
|
|
25
|
+
kept: string[] = [],
|
|
24
26
|
): Promise<WorkspaceExclusion> {
|
|
25
27
|
const listed = await promisify(execFile)(
|
|
26
28
|
'git',
|
|
@@ -53,7 +55,9 @@ export async function workspaceExclusion(
|
|
|
53
55
|
}
|
|
54
56
|
}
|
|
55
57
|
const ignoredByRules = gitignoreRules(root)
|
|
58
|
+
const keep = new Set(kept)
|
|
56
59
|
return (relative, knownDirectory) => {
|
|
60
|
+
if (keep.has(relative)) return false
|
|
57
61
|
const parts = relative.split(path.sep)
|
|
58
62
|
const linked = linkedPackages.some((directory) =>
|
|
59
63
|
relative.startsWith(directory + path.sep),
|
|
@@ -92,6 +96,7 @@ export async function workspaceExclusion(
|
|
|
92
96
|
export async function untrackedIgnored(
|
|
93
97
|
root: string,
|
|
94
98
|
linkedPackages: string[],
|
|
99
|
+
kept: string[] = [],
|
|
95
100
|
): Promise<(relative: string) => boolean> {
|
|
96
101
|
const listed = await promisify(execFile)(
|
|
97
102
|
'git',
|
|
@@ -102,6 +107,7 @@ export async function untrackedIgnored(
|
|
|
102
107
|
const tracked = new Set(listed.stdout.split('\0').filter(Boolean))
|
|
103
108
|
const rules = gitignoreRules(root)
|
|
104
109
|
return (relative) =>
|
|
110
|
+
!kept.includes(relative) &&
|
|
105
111
|
!linkedPackages.some((directory) => relative.startsWith(directory + path.sep)) &&
|
|
106
112
|
!tracked.has(relative.split(path.sep).join('/')) &&
|
|
107
113
|
rules(relative, false)
|
package/src/expoSwiftContract.ts
CHANGED
|
@@ -2,7 +2,10 @@ import {
|
|
|
2
2
|
insertBundleGlobalFooter,
|
|
3
3
|
readBundleGlobalFooter,
|
|
4
4
|
} from '@peach/globals/bundle-global-footer'
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
isNativeLazyDigestList,
|
|
7
|
+
readNativeStartupPeak,
|
|
8
|
+
} from '../../peach-kit/src/nativeWasmContract'
|
|
6
9
|
import { isRecord } from './is-record'
|
|
7
10
|
import { isNativeAppIdentity, type NativeAppIdentity } from './native-app-identity'
|
|
8
11
|
import { isSwiftResourcePath } from './swiftContract'
|
|
@@ -22,6 +25,7 @@ export interface ExpoSwiftPreparationOptions {
|
|
|
22
25
|
moduleRoot?: string
|
|
23
26
|
configuration?: NitroBuildConfiguration
|
|
24
27
|
linkedReactPods?: ReadonlySet<string>
|
|
28
|
+
linkedNativeImports?: () => Promise<ReadonlySet<string>>
|
|
25
29
|
// compile only these Swift modules and the modules they import
|
|
26
30
|
only?: readonly string[]
|
|
27
31
|
// resolve CocoaPods target membership even when `only` scopes compilation
|
|
@@ -33,7 +37,9 @@ export interface ExpoSwiftPreparationOptions {
|
|
|
33
37
|
export interface ExpoSwiftSourceOptions {
|
|
34
38
|
moduleRoot?: string
|
|
35
39
|
configuration?: NitroBuildConfiguration
|
|
40
|
+
linkedNativeImports?: ReadonlySet<string>
|
|
36
41
|
metadataOnly?: boolean
|
|
42
|
+
toolEnvironment?: Pick<NodeJS.ProcessEnv, 'MISE_TRUSTED_CONFIG_PATHS'>
|
|
37
43
|
}
|
|
38
44
|
|
|
39
45
|
export interface ExpoSwiftSourceUnit {
|
|
@@ -68,6 +74,7 @@ export interface ExpoSwiftCompiledModule {
|
|
|
68
74
|
sdkUrl?: string
|
|
69
75
|
sdkBindingUrl?: string
|
|
70
76
|
walkPeakPages?: number
|
|
77
|
+
startupParts?: readonly string[]
|
|
71
78
|
hash: string
|
|
72
79
|
icuUrl: string
|
|
73
80
|
rootId: string
|
|
@@ -136,6 +143,8 @@ export function isExpoSwiftCompilationResult(
|
|
|
136
143
|
artifact.sdkBindingUrl.length > 0)
|
|
137
144
|
) ||
|
|
138
145
|
artifact.walkPeakPages !== readNativeStartupPeak(artifact.walkPeakPages) ||
|
|
146
|
+
(artifact.startupParts !== undefined &&
|
|
147
|
+
!isNativeLazyDigestList(artifact.startupParts)) ||
|
|
139
148
|
typeof artifact.hash !== 'string' ||
|
|
140
149
|
typeof artifact.icuUrl !== 'string' ||
|
|
141
150
|
typeof artifact.rootId !== 'string' ||
|
|
@@ -1,7 +1,84 @@
|
|
|
1
1
|
import { execFileSync } from 'node:child_process'
|
|
2
2
|
import fs from 'node:fs'
|
|
3
3
|
import path from 'node:path'
|
|
4
|
-
import type {
|
|
4
|
+
import type {
|
|
5
|
+
GenruleArchiveDeclaration,
|
|
6
|
+
GenruleBuilder,
|
|
7
|
+
GenruleToolchain,
|
|
8
|
+
} from './genrule-archives'
|
|
9
|
+
|
|
10
|
+
export const AUDIO_FFMPEG_GENRULE = 'rn-audio-libs:ffmpeg'
|
|
11
|
+
|
|
12
|
+
function portableFlags(toolchain: GenruleToolchain, extra: string) {
|
|
13
|
+
return [
|
|
14
|
+
'--target-os=none',
|
|
15
|
+
'--arch=wasm64',
|
|
16
|
+
'--enable-cross-compile',
|
|
17
|
+
'--disable-asm',
|
|
18
|
+
'--disable-inline-asm',
|
|
19
|
+
'--disable-autodetect',
|
|
20
|
+
'--disable-debug',
|
|
21
|
+
'--disable-stripping',
|
|
22
|
+
'--enable-small',
|
|
23
|
+
'--optflags=-Oz',
|
|
24
|
+
`--cc=${[toolchain.cc, ...toolchain.cFlags].join(' ')}`,
|
|
25
|
+
`--ar=${toolchain.ar}`,
|
|
26
|
+
`--ranlib=${toolchain.ranlib}`,
|
|
27
|
+
`--nm=${path.join(toolchain.toolchainBin, 'llvm-nm')}`,
|
|
28
|
+
`--extra-cflags=${extra} -Oz -fPIC -fwasm-exceptions -ffunction-sections -fdata-sections`,
|
|
29
|
+
'--extra-ldflags=-fwasm-exceptions',
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function installFfmpeg(
|
|
34
|
+
declaration: GenruleArchiveDeclaration,
|
|
35
|
+
toolchain: GenruleToolchain,
|
|
36
|
+
source: string,
|
|
37
|
+
outDir: string,
|
|
38
|
+
flags: string[],
|
|
39
|
+
) {
|
|
40
|
+
const work = path.join(outDir, '.work')
|
|
41
|
+
const prefix = path.join(work, 'install')
|
|
42
|
+
const configure = [...flags, `--prefix=${prefix}`]
|
|
43
|
+
const options = {
|
|
44
|
+
cwd: work,
|
|
45
|
+
env: { ...process.env, CPPFLAGS: '', CFLAGS: '', CXXFLAGS: '', LDFLAGS: '' },
|
|
46
|
+
stdio: ['ignore', 'inherit', 'inherit'],
|
|
47
|
+
} satisfies Parameters<typeof execFileSync>[2]
|
|
48
|
+
|
|
49
|
+
execFileSync(path.join(source, 'configure'), configure, options)
|
|
50
|
+
// avutil exposes the configure command, including temporary host paths.
|
|
51
|
+
const config = path.join(work, 'config.h')
|
|
52
|
+
const portableConfig = configure
|
|
53
|
+
.filter((arg) => !/^--(?:cc|ar|nm|ranlib|prefix|pkg-config(?:-flags)?)=/.test(arg))
|
|
54
|
+
.join(' ')
|
|
55
|
+
fs.writeFileSync(
|
|
56
|
+
config,
|
|
57
|
+
fs
|
|
58
|
+
.readFileSync(config, 'utf8')
|
|
59
|
+
.replace(
|
|
60
|
+
/^#define FFMPEG_CONFIGURATION .*$/m,
|
|
61
|
+
() => `#define FFMPEG_CONFIGURATION ${JSON.stringify(portableConfig)}`,
|
|
62
|
+
),
|
|
63
|
+
)
|
|
64
|
+
execFileSync('make', [`-j${toolchain.jobs}`, 'install'], options)
|
|
65
|
+
for (const output of declaration.outputs) {
|
|
66
|
+
const target = path.join(outDir, output.path)
|
|
67
|
+
const component =
|
|
68
|
+
/(?:^|\/)((?:libavutil|libavcodec|libavformat|libswresample)\/.*)$/.exec(
|
|
69
|
+
output.path,
|
|
70
|
+
)?.[1]
|
|
71
|
+
const built = output.path.endsWith('.a')
|
|
72
|
+
? path.join(prefix, 'lib', path.basename(output.path))
|
|
73
|
+
: component
|
|
74
|
+
? path.join(prefix, 'include', component)
|
|
75
|
+
: null
|
|
76
|
+
if (!built || !fs.existsSync(built))
|
|
77
|
+
throw new Error(`${declaration.label}: FFmpeg did not produce ${output.path}`)
|
|
78
|
+
fs.mkdirSync(path.dirname(target), { recursive: true })
|
|
79
|
+
fs.copyFileSync(built, target)
|
|
80
|
+
}
|
|
81
|
+
}
|
|
5
82
|
|
|
6
83
|
function inputs(declaration: GenruleArchiveDeclaration) {
|
|
7
84
|
const source = declaration.sources.find(
|
|
@@ -40,7 +117,6 @@ export const ffmpegBuilder: GenruleBuilder = {
|
|
|
40
117
|
'--enable-hwaccel=h264_videotoolbox,hevc_videotoolbox',
|
|
41
118
|
)
|
|
42
119
|
const work = path.join(outDir, '.work')
|
|
43
|
-
const prefix = path.join(work, 'install')
|
|
44
120
|
fs.mkdirSync(work, { recursive: true })
|
|
45
121
|
const libraries = [
|
|
46
122
|
{
|
|
@@ -102,66 +178,54 @@ export const ffmpegBuilder: GenruleBuilder = {
|
|
|
102
178
|
path.join(destination, 'lib', library.archive),
|
|
103
179
|
)
|
|
104
180
|
}
|
|
105
|
-
const compiler = [toolchain.cc, ...toolchain.cFlags].join(' ')
|
|
106
181
|
const pkgConfig = path.join(path.dirname(input.script), 'pkg-config')
|
|
107
|
-
|
|
108
|
-
cwd: work,
|
|
109
|
-
env: { ...process.env, CPPFLAGS: '', CFLAGS: '', CXXFLAGS: '', LDFLAGS: '' },
|
|
110
|
-
stdio: ['ignore', 'inherit', 'inherit'],
|
|
111
|
-
} satisfies Parameters<typeof execFileSync>[2]
|
|
112
|
-
const configure = [
|
|
182
|
+
installFfmpeg(declaration, toolchain, input.source, outDir, [
|
|
113
183
|
...flags,
|
|
114
|
-
|
|
115
|
-
'--arch=wasm64',
|
|
116
|
-
'--enable-cross-compile',
|
|
117
|
-
'--disable-asm',
|
|
118
|
-
'--disable-inline-asm',
|
|
119
|
-
'--disable-autodetect',
|
|
120
|
-
'--disable-debug',
|
|
121
|
-
'--disable-stripping',
|
|
122
|
-
'--enable-small',
|
|
123
|
-
'--optflags=-Oz',
|
|
124
|
-
`--cc=${compiler}`,
|
|
125
|
-
`--ar=${toolchain.ar}`,
|
|
126
|
-
`--ranlib=${toolchain.ranlib}`,
|
|
127
|
-
`--nm=${path.join(toolchain.toolchainBin, 'llvm-nm')}`,
|
|
128
|
-
`--extra-cflags=${extra} -Oz -fPIC -fwasm-exceptions -ffunction-sections -fdata-sections`,
|
|
129
|
-
'--extra-ldflags=-fwasm-exceptions',
|
|
130
|
-
`--prefix=${prefix}`,
|
|
184
|
+
...portableFlags(toolchain, extra),
|
|
131
185
|
`--pkg-config=${pkgConfig}`,
|
|
132
186
|
`--pkg-config-flags=${libraries.map(({ option }) => `--${option}_path ${path.join(work, option)}`).join(' ')}`,
|
|
133
|
-
]
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
)
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
187
|
+
])
|
|
188
|
+
},
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export const audioFfmpegBuilder: GenruleBuilder = {
|
|
192
|
+
name: 'rn-audio-libs-ffmpeg',
|
|
193
|
+
probesFrameworks: true,
|
|
194
|
+
recognizes: ({ label }) => label === AUDIO_FFMPEG_GENRULE,
|
|
195
|
+
build(declaration, toolchain, _dependencies, outDir) {
|
|
196
|
+
const tarball = declaration.sources.find(({ file }) =>
|
|
197
|
+
/\/ffmpeg-[\d.]+\.tar\.xz$/.test(file),
|
|
198
|
+
)?.file
|
|
199
|
+
const recipe = declaration.sources.find(({ file }) =>
|
|
200
|
+
file.endsWith('/ffmpeg_setup.sh'),
|
|
201
|
+
)?.file
|
|
202
|
+
if (!tarball || !recipe)
|
|
203
|
+
throw new Error(`${declaration.label}: missing FFmpeg inputs`)
|
|
204
|
+
const common = /^COMMON_CONFIG="([^"$]+)"$/m.exec(
|
|
205
|
+
fs.readFileSync(recipe, 'utf8'),
|
|
206
|
+
)?.[1]
|
|
207
|
+
if (!common) throw new Error(`${recipe}: missing literal COMMON_CONFIG`)
|
|
208
|
+
const work = path.join(outDir, '.work')
|
|
209
|
+
fs.mkdirSync(work, { recursive: true })
|
|
210
|
+
execFileSync('tar', ['-xf', tarball, '--no-same-owner', '-C', work], {
|
|
211
|
+
stdio: 'inherit',
|
|
212
|
+
})
|
|
213
|
+
const flags = common
|
|
214
|
+
.trim()
|
|
215
|
+
.split(/\s+/)
|
|
216
|
+
.filter(
|
|
217
|
+
(flag) =>
|
|
218
|
+
flag !== '--enable-shared' &&
|
|
219
|
+
flag !== '--disable-static' &&
|
|
220
|
+
flag !== '--disable-optimizations',
|
|
221
|
+
)
|
|
222
|
+
const source = path.join(work, path.basename(tarball, '.tar.xz'))
|
|
223
|
+
installFfmpeg(declaration, toolchain, source, outDir, [
|
|
224
|
+
...flags,
|
|
225
|
+
...portableFlags(toolchain, ''),
|
|
226
|
+
'--enable-static',
|
|
227
|
+
'--disable-shared',
|
|
228
|
+
'--enable-securetransport',
|
|
229
|
+
])
|
|
166
230
|
},
|
|
167
231
|
}
|
package/src/genrule-archives.ts
CHANGED
|
@@ -4,7 +4,7 @@ import fs from 'node:fs'
|
|
|
4
4
|
import os from 'node:os'
|
|
5
5
|
import path from 'node:path'
|
|
6
6
|
import * as v from 'valibot'
|
|
7
|
-
import { ffmpegBuilder } from './ffmpeg-source-build.ts'
|
|
7
|
+
import { audioFfmpegBuilder, ffmpegBuilder } from './ffmpeg-source-build.ts'
|
|
8
8
|
import { GENRULE_LIBRARY_BUILDERS } from './genrule-library-builds.ts'
|
|
9
9
|
import { cacheDir as peachCacheDir } from './home-paths.ts'
|
|
10
10
|
import { isRecord } from './is-record.ts'
|
|
@@ -88,7 +88,11 @@ export interface GenruleBuilder {
|
|
|
88
88
|
): void
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
const BUILDERS: GenruleBuilder[] = [
|
|
91
|
+
const BUILDERS: GenruleBuilder[] = [
|
|
92
|
+
ffmpegBuilder,
|
|
93
|
+
audioFfmpegBuilder,
|
|
94
|
+
...GENRULE_LIBRARY_BUILDERS,
|
|
95
|
+
]
|
|
92
96
|
|
|
93
97
|
const cacheDir = path.join(peachCacheDir(), 'genrule-archives')
|
|
94
98
|
const toolIdentities = new Map<string, string>()
|
|
@@ -185,6 +189,7 @@ function frameworkProbeIdentity(moduleRoot: string, toolchainBin: string): strin
|
|
|
185
189
|
)
|
|
186
190
|
const hash = createHash('sha256').update(
|
|
187
191
|
JSON.stringify([
|
|
192
|
+
nativeFrameworkCompiler.toString(),
|
|
188
193
|
headers,
|
|
189
194
|
distribution.link,
|
|
190
195
|
distribution.files[SWIFT_PEACH_ENGINE_ARCHIVE],
|
|
@@ -188,34 +188,116 @@ function cmakeBuild(
|
|
|
188
188
|
return build
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
-
|
|
191
|
+
function buildXiphArchive(
|
|
192
|
+
tarball: string,
|
|
193
|
+
toolchain: GenruleToolchain,
|
|
194
|
+
work: string,
|
|
195
|
+
prefix: string,
|
|
196
|
+
settings: string[],
|
|
197
|
+
configTools?: string,
|
|
198
|
+
) {
|
|
199
|
+
fs.mkdirSync(work, { recursive: true })
|
|
200
|
+
run('tar', ['-xf', tarball, '--no-same-owner', '-C', work], work, {})
|
|
201
|
+
const source = path.join(work, path.basename(tarball).replace(/\.tar\.(?:gz|xz)$/, ''))
|
|
202
|
+
if (configTools) {
|
|
203
|
+
for (const helper of ['config.sub', 'config.guess']) {
|
|
204
|
+
fs.copyFileSync(path.join(configTools, helper), path.join(source, helper))
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
const env = {
|
|
208
|
+
...toolEnv(toolchain),
|
|
209
|
+
...(configTools
|
|
210
|
+
? {
|
|
211
|
+
DEPS_CFLAGS: `-I${prefix}/include -I${prefix}/include/opus`,
|
|
212
|
+
DEPS_LIBS: `-L${prefix}/lib -lopus -logg`,
|
|
213
|
+
}
|
|
214
|
+
: {}),
|
|
215
|
+
}
|
|
216
|
+
run(
|
|
217
|
+
'./configure',
|
|
218
|
+
[
|
|
219
|
+
'--host=wasm64-wasi',
|
|
220
|
+
'--disable-shared',
|
|
221
|
+
'--enable-static',
|
|
222
|
+
'--with-pic',
|
|
223
|
+
`--prefix=${prefix}`,
|
|
224
|
+
...settings,
|
|
225
|
+
],
|
|
226
|
+
source,
|
|
227
|
+
env,
|
|
228
|
+
)
|
|
229
|
+
run('make', [`-j${toolchain.jobs}`, 'install'], source, env)
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
const opusConfigureFlags = [
|
|
233
|
+
'--disable-extra-programs',
|
|
234
|
+
'--disable-doc',
|
|
235
|
+
'--disable-asm',
|
|
236
|
+
'--enable-intrinsics',
|
|
237
|
+
]
|
|
238
|
+
|
|
192
239
|
export const opusBuilder: GenruleBuilder = {
|
|
193
240
|
name: 'opus',
|
|
194
|
-
recognizes: (declaration) =>
|
|
241
|
+
recognizes: (declaration) =>
|
|
242
|
+
declaration.label !== AUDIO_CODECS_GENRULE &&
|
|
243
|
+
!!sourceNamed(declaration, /\/opus-[\d.]+\.tar\.gz$/),
|
|
195
244
|
build(declaration, toolchain, _dependencies, outDir) {
|
|
196
245
|
const tarball = sourceNamed(declaration, /\/opus-[\d.]+\.tar\.gz$/)!
|
|
197
246
|
const work = path.join(outDir, '.work')
|
|
198
|
-
fs.mkdirSync(work, { recursive: true })
|
|
199
|
-
run('tar', ['-xzf', tarball, '--no-same-owner', '-C', work], work, {})
|
|
200
|
-
const source = path.join(work, path.basename(tarball, '.tar.gz'))
|
|
201
247
|
const prefix = path.join(work, 'install')
|
|
248
|
+
buildXiphArchive(tarball, toolchain, work, prefix, opusConfigureFlags)
|
|
249
|
+
placeOutputs(declaration, [prefix], outDir)
|
|
250
|
+
},
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
const audioCodecBuilds: { tarball: RegExp; flags: string[] }[] = [
|
|
254
|
+
{ tarball: /\/libogg-[\d.]+\.tar\.xz$/, flags: [] },
|
|
255
|
+
{ tarball: /\/opus-[\d.]+\.tar\.gz$/, flags: opusConfigureFlags },
|
|
256
|
+
{
|
|
257
|
+
tarball: /\/opusfile-[\d.]+\.tar\.gz$/,
|
|
258
|
+
flags: ['--disable-http', '--disable-examples', '--disable-doc'],
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
tarball: /\/libvorbis-[\d.]+\.tar\.xz$/,
|
|
262
|
+
flags: ['--disable-examples', '--disable-docs', '--disable-oggtest'],
|
|
263
|
+
},
|
|
264
|
+
]
|
|
265
|
+
|
|
266
|
+
export const AUDIO_CODECS_GENRULE = 'rn-audio-libs:codecs'
|
|
267
|
+
|
|
268
|
+
const audioCodecsBuilder: GenruleBuilder = {
|
|
269
|
+
name: 'audio-codecs',
|
|
270
|
+
recognizes: ({ label }) => label === AUDIO_CODECS_GENRULE,
|
|
271
|
+
build(declaration, toolchain, _dependencies, outDir) {
|
|
272
|
+
const work = path.join(outDir, '.work')
|
|
273
|
+
const prefix = path.join(work, 'install')
|
|
274
|
+
const automake = sourceNamed(declaration, /\/automake-[\d.]+\.tar\.xz$/)
|
|
275
|
+
if (!automake) throw new Error(`${declaration.label}: missing GNU config source`)
|
|
276
|
+
const configTools = path.join(work, 'config')
|
|
277
|
+
fs.mkdirSync(configTools, { recursive: true })
|
|
278
|
+
const archiveRoot = path.basename(automake, '.tar.xz')
|
|
202
279
|
run(
|
|
203
|
-
'
|
|
280
|
+
'tar',
|
|
204
281
|
[
|
|
205
|
-
'
|
|
206
|
-
|
|
207
|
-
'--
|
|
208
|
-
'
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
'--enable-intrinsics',
|
|
213
|
-
`--prefix=${prefix}`,
|
|
282
|
+
'-xf',
|
|
283
|
+
automake,
|
|
284
|
+
'--strip-components=2',
|
|
285
|
+
'-C',
|
|
286
|
+
configTools,
|
|
287
|
+
`${archiveRoot}/lib/config.sub`,
|
|
288
|
+
`${archiveRoot}/lib/config.guess`,
|
|
214
289
|
],
|
|
215
|
-
|
|
216
|
-
|
|
290
|
+
work,
|
|
291
|
+
{},
|
|
217
292
|
)
|
|
218
|
-
|
|
293
|
+
for (const { tarball, flags } of audioCodecBuilds) {
|
|
294
|
+
const file = sourceNamed(declaration, tarball)
|
|
295
|
+
if (!file) throw new Error(`${declaration.label}: missing source for ${tarball}`)
|
|
296
|
+
const configure = flags.includes('--disable-oggtest')
|
|
297
|
+
? [...flags, `--with-ogg=${prefix}`]
|
|
298
|
+
: flags
|
|
299
|
+
buildXiphArchive(file, toolchain, work, prefix, configure, configTools)
|
|
300
|
+
}
|
|
219
301
|
placeOutputs(declaration, [prefix], outDir)
|
|
220
302
|
},
|
|
221
303
|
}
|
|
@@ -443,6 +525,7 @@ export const tdBuilder: GenruleBuilder = {
|
|
|
443
525
|
export const GENRULE_LIBRARY_BUILDERS: GenruleBuilder[] = [
|
|
444
526
|
tdBuilder,
|
|
445
527
|
dav1dBuilder,
|
|
528
|
+
audioCodecsBuilder,
|
|
446
529
|
opusBuilder,
|
|
447
530
|
libvpxBuilder,
|
|
448
531
|
libwebpBuilder,
|
package/src/host/bridge-host.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { createServer, type IncomingMessage, type ServerResponse } from 'http'
|
|
|
5
5
|
import os from 'os'
|
|
6
6
|
import path from 'path'
|
|
7
7
|
import { KOTLIN_PACKAGE_PATH } from '@peach/globals/kotlin-discovery'
|
|
8
|
+
import { ONE_WIDGET_PATH } from '@peach/globals/one-widget'
|
|
8
9
|
import { WebSocket, WebSocketServer } from 'ws'
|
|
9
10
|
import { NATIVE_PROFILE_ENDPOINT } from '../../../peach-kit/src/nativeWasmContract'
|
|
10
11
|
import { automaticPeachUpdatesEnabled } from '../automatic-update-policy.ts'
|
|
@@ -49,9 +50,9 @@ import {
|
|
|
49
50
|
isOneNativeControlsReleaseAsset,
|
|
50
51
|
ONE_NATIVE_CONTROLS_METADATA_PATH,
|
|
51
52
|
serveOneNativeControlsRelease,
|
|
53
|
+
servePinnedOneNativeControlsRelease,
|
|
52
54
|
serveStagedOneNativeControls,
|
|
53
55
|
} from '../one-native-controls-release'
|
|
54
|
-
import { ONE_WIDGET_PATH } from '../oneWidgetContract'
|
|
55
56
|
import { isProcessRunning } from '../process-liveness.ts'
|
|
56
57
|
import { rnxPublicBrand } from '../public-brand.ts'
|
|
57
58
|
import {
|
|
@@ -1655,6 +1656,14 @@ export class SootSimBridgeHost {
|
|
|
1655
1656
|
void (async () => {
|
|
1656
1657
|
const rootlessControls =
|
|
1657
1658
|
route === ONE_NATIVE_CONTROLS_METADATA_PATH && !url.searchParams.has('root')
|
|
1659
|
+
const controlsAppRoot = url.searchParams.get('root') ?? undefined
|
|
1660
|
+
if (
|
|
1661
|
+
(method === 'GET' || method === 'HEAD') &&
|
|
1662
|
+
(route === ONE_NATIVE_CONTROLS_METADATA_PATH ||
|
|
1663
|
+
isOneNativeControlsReleaseAsset(route)) &&
|
|
1664
|
+
(await servePinnedOneNativeControlsRelease(req, res, route, controlsAppRoot))
|
|
1665
|
+
)
|
|
1666
|
+
return
|
|
1658
1667
|
if (
|
|
1659
1668
|
(method === 'GET' || method === 'HEAD') &&
|
|
1660
1669
|
(rootlessControls || isOneNativeControlsReleaseAsset(route))
|