peachsim 0.1.1728 → 0.1.1744
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 +4 -0
- package/cli/app-catalog.ts +47 -23
- package/cli/app-fonts.ts +19 -1
- package/cli/command-registry.ts +3 -0
- package/cli/commands/control.ts +68 -16
- package/cli/commands/coverage-swift.ts +112 -4
- package/cli/commands/device.ts +3 -1
- package/cli/commands/doctor.ts +1 -4
- package/cli/commands/inspect/settling.ts +6 -1
- package/cli/commands/inspect/wait-ready.ts +22 -2
- package/cli/commands/package.ts +33 -21
- package/cli/commands/push.ts +56 -0
- package/cli/commands/serve.ts +9 -0
- package/cli/commands/shell-url.ts +41 -9
- package/cli/commands/swift.ts +1 -1
- package/cli/current-sim.ts +27 -0
- package/cli/drivers/linux-browser-libs.lock.json +323 -1
- package/cli/drivers/linux-browser-libs.ts +8 -6
- package/cli/drivers/playwright.ts +5 -1
- package/cli/internal-child.ts +11 -1
- package/cli/main.ts +6 -0
- package/cli/native-input.ts +1 -7
- package/cli/outbound-endpoints.ts +9 -1
- package/cli/packaged-app-launcher.ts +3 -1
- package/cli/scene-video.ts +28 -7
- package/cli/ws-bridge.ts +3 -1
- package/detox/index.ts +18 -5
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +5 -2
- package/dist-lib/auth/shared-session.cjs +5 -2
- 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 +9932 -4561
- 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 +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +30 -8
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +6886 -3303
- package/dist-lib/expo-swift-metadata.cjs +14 -2
- package/dist-lib/expo-swift-metadata.mjs +14 -2
- package/dist-lib/home-paths.cjs +7 -2
- package/dist-lib/host/bridge-host.cjs +8513 -3085
- package/dist-lib/host/fetch-proxy-handler.cjs +19 -7
- 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 +6 -3
- package/dist-lib/index.cjs +175 -80
- 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 +209 -32
- package/dist-lib/menu.cjs +7 -1
- package/dist-lib/menu.mjs +7 -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 +146 -76
- package/dist-lib/native-app-identity-project.cjs +76 -39
- package/dist-lib/native-app-identity-project.mjs +76 -39
- package/dist-lib/native-app-identity.cjs +10 -3
- package/dist-lib/native-app-identity.mjs +10 -3
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +5 -2
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +25 -23
- package/dist-lib/public-origins-lib.json +138 -80
- package/dist-lib/react-native-host-modules.cjs +5 -2
- package/dist-lib/react-native-host-modules.mjs +5 -2
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +4 -1
- package/dist-lib/sdk.mjs +4 -1
- package/dist-lib/skills.cjs +41126 -36493
- package/dist-lib/swift-compile.cjs +2103 -444
- package/dist-lib/swift-compile.mjs +2025 -369
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +2 -2
- package/dist-lib/swift-submit.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +84 -24
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +6094 -2687
- package/dist-lib/vite.cjs +32 -10
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-compat/src/stubs/screen-transition-math.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/cli-companion.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/canvaskit-renderer.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/engine/font-config.d.ts +7 -4
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +1 -3
- package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +0 -5
- package/dist-types/packages/peach-engine/src/engine/memory-counts.d.ts +8 -0
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +10 -1
- package/dist-types/packages/peach-engine/src/engine/paint-boundary.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/render-damage.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +25 -3
- package/dist-types/packages/peach-engine/src/engine/scroll-platform.d.ts +1 -15
- package/dist-types/packages/peach-engine/src/engine/scroll.d.ts +1 -3
- package/dist-types/packages/peach-engine/src/engine/text-first-baseline.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/engine/text-paragraph.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +23 -0
- package/dist-types/packages/peach-engine/src/ios/chrome-metrics.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/metro-identity-contract.d.ts +33 -0
- package/dist-types/packages/peach-engine/src/native-preview-bundle.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/preview/bundle-layout.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/remote-stream/scene-recording.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-gpu.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/metro-bundle-metadata.d.ts +28 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +21 -1
- package/dist-types/packages/peach-engine/src/render-worker/prepared-boot-bundle.d.ts +7 -0
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +15 -2
- package/dist-types/packages/peach-engine/src/render-worker/scroll-mirror.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/render-worker/test-bridge-protocol.d.ts +3 -3
- package/dist-types/packages/peach-engine/src/render-worker/webgpu-frame-transaction.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/webgpu-readback-scheduler.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +14 -1
- package/dist-types/packages/peach-engine/src/rolldown-bundle-inventory.d.ts +8 -1
- package/dist-types/packages/peach-engine/src/rolldown-production-fingerprint.d.ts +1 -4
- package/dist-types/packages/peach-engine/src/rolldown-production-module.d.ts +12 -0
- package/dist-types/packages/peach-engine/src/rolldown-production-roles.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/settings/devices.d.ts +6 -1
- package/dist-types/packages/peach-engine/src/settings/duo-fold-bus.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/shell-events.d.ts +4 -0
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +8 -0
- package/kotlin/README.md +3 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +2 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccount.h +55 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountCredential.h +35 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountStore.h +94 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountType.h +53 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACError.h +37 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/Accounts.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/AccountsDefines.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h +1 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetworkErrors.h +257 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFByteOrder.h +305 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +2 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGAffineTransform.h +204 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBitmapContext.h +260 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColor.h +164 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorConversionInfo.h +101 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorSpace.h +510 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGContext.h +1132 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGConvertColorDataWithFormat.h +34 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDataConsumer.h +83 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDataProvider.h +197 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGEXRToneMappingGamma.h +36 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGError.h +38 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGFont.h +312 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGFunction.h +106 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGradient.h +123 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGITUToneMapping.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGImage.h +409 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGLayer.h +78 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFArray.h +120 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFContentStream.h +55 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFContext.h +535 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDictionary.h +133 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDocument.h +252 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFMarkedContentItem.h +37 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFObject.h +67 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFOperatorTable.h +51 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFPage.h +101 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFScanner.h +123 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFStream.h +44 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFString.h +52 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFStructureElement.h +87 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPath.h +441 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPattern.h +89 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGRenderingBufferProvider.h +49 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGShading.h +124 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGToneMapping.h +85 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h +44 -252
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Modules/module.modulemap +1 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/CFNetworkErrors.h +257 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes +58 -9
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +992 -98
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/NSURLSession+Network.h +32 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/Network.h +51 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/advertise_descriptor.h +193 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/browse_descriptor.h +163 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/browse_result.h +207 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/browser.h +285 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/connection.h +714 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/connection_group.h +629 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/connection_report.h +932 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/content_context.h +229 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/endpoint.h +390 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/error.h +135 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/ethernet_channel.h +349 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/framer_options.h +1187 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/group_descriptor.h +184 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/interface.h +150 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/ip_options.h +351 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/listener.h +438 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/nw_object.h +200 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/parameters.h +1205 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/path.h +392 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/path_monitor.h +216 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/privacy_context.h +188 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/protocol_options.h +126 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/proxy_config.h +357 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/quic_options.h +889 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/resolver_config.h +94 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/tcp_options.h +459 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/tls_options.h +115 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/txt_record.h +432 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/udp_options.h +112 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/ws_options.h +743 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Modules/module.modulemap +9 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h +395 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CABase.h +132 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CADisplayLink.h +107 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEmitterCell.h +153 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEmitterLayer.h +151 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAFrameRateRange.h +40 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAGradientLayer.h +78 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h +1078 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTiming.h +97 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTimingFunction.h +67 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAReplicatorLayer.h +65 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAScrollLayer.h +64 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAShapeLayer.h +135 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATextLayer.h +99 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATiledLayer.h +67 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATransaction.h +124 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATransform3D.h +138 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATransformLayer.h +40 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAValueFunction.h +78 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h +19 -38
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecureTransport.h +1757 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSAttributedString.h +19 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSParagraphStyle.h +28 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityConstants.h +114 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h +16 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarAppearance.h +47 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDataDetectors.h +20 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDatePicker.h +13 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h +16 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIEvent.h +84 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizer.h +119 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizerSubclass.h +66 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHoverGestureRecognizer.h +45 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h +161 -37
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPickerView.h +76 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBar.h +8 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBarAppearance.h +78 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextInputTraits.h +29 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITouch.h +104 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITraitCollection.h +19 -0
- package/sdk/ios/usr/include/dns_sd.h +3616 -0
- package/sdk/ios/usr/include/dnssd.modulemap +4 -0
- package/sdk/ios/usr/include/module.modulemap +1 -0
- package/sdk/ios/usr/include/os/signpost.h +414 -0
- package/sdk/ios/usr/include/os.modulemap +5 -0
- package/sdk/ios/usr/include/sys/socketvar.h +191 -0
- package/sdk/ios/usr/include/sys/vsock.h +84 -0
- package/sdk/ios/wasm/include/errno.h +4 -20
- package/sdk/ios/wasm/include/pthread.h +3 -0
- package/sdk/ios/wasm/include/setjmp.h +57 -0
- package/sdk/ios/wasm/include/sys/resource.h +2 -2
- package/sdk/native-hashes.json +3 -3
- package/skills/contrast/SKILL.md +6 -5
- package/skills/peach-debug/SKILL.md +68 -265
- package/skills/peach-debug/references/accessibility.md +37 -73
- package/skills/peach-debug/references/commands.md +2 -2
- package/skills/peach-debug/references/events.md +74 -0
- package/skills/peach-perf/SKILL.md +64 -402
- package/skills/peach-perf/references/presentation.md +46 -0
- package/skills/peach-perf/references/profiling.md +93 -0
- package/skills/peach-perf/references/render-counters.md +57 -0
- package/skills/peach-setup/SKILL.md +66 -217
- package/skills/peach-setup/references/native-config.md +35 -0
- package/skills/peach-setup/references/reporting.md +28 -0
- package/skills/peach-test/SKILL.md +68 -285
- package/skills/peach-test/references/detox.md +69 -0
- package/skills/peach-test/references/maestro.md +95 -0
- package/skills/peach-visual/SKILL.md +53 -106
- package/src/android-autolinking.ts +1 -0
- package/src/android-bridge-packages.ts +279 -0
- package/src/appPackageContract.ts +14 -1
- package/src/assetCatalogContract.ts +8 -1
- package/src/bridge-contract.ts +6 -0
- package/src/bundle-channel.mjs +152 -60
- package/src/cli-runtime.ts +3 -0
- package/src/configured-bundle-producer.ts +10 -0
- package/src/device-catalog.ts +68 -4
- package/src/expo-discovery-cache.ts +10 -3
- package/src/expo-kotlin-host.ts +97 -26
- package/src/expo-native-workspace.ts +211 -52
- package/src/expo-swift-host.ts +149 -123
- package/src/expo-swift-ready.ts +5 -1
- package/src/expo-widget-assets.ts +76 -0
- package/src/expoKotlinContract.ts +12 -2
- package/src/expoSwiftContract.ts +21 -2
- package/src/generated/swift-c-predefines.json +1 -1
- package/src/home-paths.ts +6 -1
- package/src/host/bridge-host.ts +5 -0
- package/src/host/fetch-proxy-handler.ts +10 -0
- package/src/host/websocket-proxy.ts +7 -2
- package/src/kotlin-host.ts +204 -30
- package/src/kotlinSdkContract.ts +2 -1
- package/src/menu.ts +7 -0
- package/src/native-prebuilt.ts +154 -0
- package/src/nitro-adapter.lock.json +261 -261
- package/src/nitro-adapter.ts +118 -50
- package/src/nitro-bundle.ts +134 -96
- package/src/nitro-compile.ts +16 -6
- package/src/nitro-dependencies.ts +43 -28
- package/src/nitro-source.ts +142 -30
- package/src/nitro-superset.lock.json +103 -0
- package/src/nitro-superset.ts +137 -0
- package/src/nitroAdapterContract.ts +146 -98
- package/src/nitroContract.ts +68 -21
- package/src/react-bridge-importers.ts +1 -0
- package/src/react-native-bridge-modules.ts +2 -0
- package/src/react-native-host-modules.ts +4 -1
- package/src/settingsContract.ts +37 -1
- package/src/storageSnapshotContract.ts +29 -81
- package/src/swift-compile.ts +315 -117
- package/src/swift-compiler-digest.ts +2 -0
- package/src/swift-coverage/indexdump.ts +22 -6
- package/src/swift-coverage/indexing.ts +4 -4
- package/src/swift-coverage/sdk.ts +104 -20
- package/src/swift-coverage/types.ts +34 -0
- package/src/swift-coverage/xcode-packages.ts +61 -1
- package/src/swift-coverage/xcode.ts +19 -13
- package/src/swift-cxx-reachable.ts +1 -1
- package/src/swift-distribution.lock.json +18 -13
- package/src/swift-distribution.ts +57 -26
- package/src/swift-host.ts +51 -35
- package/src/swift-link-roots.ts +45 -18
- package/src/swift-objc-compile.ts +78 -2
- package/src/swift-objc-standin.ts +3 -0
- package/src/swift-shared-sdk.ts +85 -1
- package/src/swift-standin-emit.ts +6 -1
- package/src/swift-standins.ts +403 -19
- package/src/swift-submit.ts +17 -1
- package/src/swift-toolchain.ts +98 -23
- package/src/swift-wasm-prune.ts +1629 -0
- package/src/turbo-bundle.ts +82 -0
- package/src/turbo-compile.ts +120 -0
- package/src/turbo-runtime.lock.json +69 -0
- package/src/turbo-source.ts +754 -0
- package/src/vite-plugin-one.ts +15 -3
- package/src/vite-plugin.ts +82 -23
- package/src/wasm-optimize.ts +34 -0
- package/src/worker-system-chunks.ts +3 -3
- package/src/xcode-project.ts +52 -0
- package/src/xcode-target-members.ts +12 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
// prepare Expo's own CocoaPods workspace in a private cache on the Mac.
|
|
2
|
-
import {
|
|
2
|
+
import { execFile, execFileSync } from 'node:child_process'
|
|
3
3
|
import { createHash } from 'node:crypto'
|
|
4
4
|
import fs from 'node:fs'
|
|
5
5
|
import { createRequire } from 'node:module'
|
|
6
6
|
import path from 'node:path'
|
|
7
|
+
import { promisify } from 'node:util'
|
|
7
8
|
import { cacheDir } from './home-paths'
|
|
8
9
|
import { withSwiftRootLock, type SwiftRootLease } from './swift-root-lock'
|
|
9
10
|
import { findWorkspaceRoot } from './workspace-root'
|
|
@@ -20,19 +21,22 @@ const utf8Env = { ...process.env, LANG: 'en_US.UTF-8', LC_ALL: 'en_US.UTF-8' }
|
|
|
20
21
|
// eas build archives a repository without its gitignored paths, so the prepare
|
|
21
22
|
// neither copies nor hashes them: files a dev server generates into an ignored
|
|
22
23
|
// directory never invalidate the prepared workspace.
|
|
23
|
-
function workspaceExclusion(root: string) {
|
|
24
|
-
const listed =
|
|
24
|
+
async function workspaceExclusion(root: string) {
|
|
25
|
+
const listed = await promisify(execFile)(
|
|
25
26
|
'git',
|
|
26
27
|
['ls-files', '-z', '--others', '--ignored', '--exclude-standard', '--directory'],
|
|
27
|
-
{
|
|
28
|
-
|
|
28
|
+
{
|
|
29
|
+
cwd: root,
|
|
30
|
+
encoding: 'utf8',
|
|
31
|
+
maxBuffer: 256 * 1024 * 1024,
|
|
32
|
+
env: { ...process.env, ...isolatedGitEnv },
|
|
33
|
+
},
|
|
34
|
+
).catch(() => ({ stdout: '' }))
|
|
29
35
|
const ignored = new Set(
|
|
30
|
-
listed.
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
.map((entry) => entry.replace(/\/$/, ''))
|
|
35
|
-
: [],
|
|
36
|
+
listed.stdout
|
|
37
|
+
.split('\0')
|
|
38
|
+
.filter(Boolean)
|
|
39
|
+
.map((entry) => entry.replace(/\/$/, '')),
|
|
36
40
|
)
|
|
37
41
|
return (relative: string) => {
|
|
38
42
|
const parts = relative.split(path.sep)
|
|
@@ -46,54 +50,163 @@ function workspaceExclusion(root: string) {
|
|
|
46
50
|
}
|
|
47
51
|
}
|
|
48
52
|
|
|
53
|
+
// the files whose content steers install, prebuild and pod install: manifests,
|
|
54
|
+
// lockfiles, app and plugin config, patches and native project files.
|
|
55
|
+
const NATIVE_CONFIG_FILE =
|
|
56
|
+
/(^|\/)(package\.json|bun\.lockb?|package-lock\.json|pnpm-lock\.yaml|pnpm-workspace\.yaml|yarn\.lock|\.yarnrc\.yml|\.npmrc|app\.json|app\.config\.[cm]?[jt]s|Podfile(\.lock|\.properties)?|expo-module\.config\.json|react-native\.config\.[cm]?[jt]s|\.nvmrc|\.tool-versions)$|\.(podspec|patch|plist|entitlements|xcconfig|pbxproj|storyboard|xib|gradle|rb)$|(^|\/)(plugins|patches)\//
|
|
57
|
+
// native sources steer pod install by existing, not by content: an edit to one
|
|
58
|
+
// is copied into the prepared workspace, an added or removed one rebuilds it.
|
|
59
|
+
const NATIVE_SOURCE_FILE = /\.(swift|mm?|hpp?|c|cc|cpp|kt|java)$/
|
|
60
|
+
|
|
49
61
|
// every file the native prepare can read, plus the toolchain that reads it.
|
|
50
62
|
// node_modules stays out: the js install rebuilds it from the hashed lockfiles,
|
|
51
|
-
// and the discovery cache keys the live native inventory separately.
|
|
52
|
-
|
|
63
|
+
// and the discovery cache keys the live native inventory separately. the walk
|
|
64
|
+
// yields so the bridge that runs it keeps answering its other requests.
|
|
65
|
+
export async function hashExpoWorkspace(
|
|
53
66
|
app: string,
|
|
54
67
|
signal?: AbortSignal,
|
|
55
|
-
): {
|
|
68
|
+
): Promise<{
|
|
56
69
|
root: string
|
|
57
70
|
appRelative: string
|
|
58
71
|
hash: string
|
|
72
|
+
// the subset of inputs that decides the prepared workspace
|
|
73
|
+
nativeHash: string
|
|
59
74
|
excluded: (relative: string) => boolean
|
|
60
|
-
} {
|
|
75
|
+
}> {
|
|
61
76
|
const root = findWorkspaceRoot(app)
|
|
62
|
-
const excluded = workspaceExclusion(root)
|
|
77
|
+
const excluded = await workspaceExclusion(root)
|
|
63
78
|
const appRelative = path.relative(root, app)
|
|
64
79
|
const manifest = JSON.parse(fs.readFileSync(path.join(root, 'package.json'), 'utf8'))
|
|
65
80
|
const hash = createHash('sha256')
|
|
66
|
-
const
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
81
|
+
const native = createHash('sha256')
|
|
82
|
+
const walk = async (directory: string) => {
|
|
83
|
+
const entries = await fs.promises.readdir(directory, { withFileTypes: true })
|
|
84
|
+
for (const entry of entries.sort((a, b) => a.name.localeCompare(b.name))) {
|
|
70
85
|
signal?.throwIfAborted()
|
|
71
86
|
const file = path.join(directory, entry.name)
|
|
72
87
|
const relative = path.relative(root, file)
|
|
73
88
|
if (excluded(relative)) continue
|
|
74
89
|
hash.update(`${relative}\0`)
|
|
75
|
-
if (entry.isSymbolicLink())
|
|
76
|
-
|
|
77
|
-
|
|
90
|
+
if (entry.isSymbolicLink()) {
|
|
91
|
+
const link = `link\0${await fs.promises.readlink(file)}\0`
|
|
92
|
+
hash.update(link)
|
|
93
|
+
native.update(`${relative}\0${link}`)
|
|
94
|
+
} else if (entry.isDirectory()) await walk(file)
|
|
95
|
+
else if (entry.isFile()) {
|
|
96
|
+
const bytes = await fs.promises.readFile(file)
|
|
97
|
+
hash.update(bytes)
|
|
98
|
+
const posix = relative.split(path.sep).join('/')
|
|
99
|
+
if (NATIVE_CONFIG_FILE.test(posix)) native.update(`${posix}\0`).update(bytes)
|
|
100
|
+
else if (NATIVE_SOURCE_FILE.test(posix)) native.update(`${posix}\0`)
|
|
101
|
+
}
|
|
78
102
|
}
|
|
79
103
|
}
|
|
80
|
-
walk(root)
|
|
104
|
+
await walk(root)
|
|
81
105
|
let podVersion: string
|
|
82
106
|
try {
|
|
83
107
|
podVersion = execFileSync('pod', ['--version'], { encoding: 'utf8', env: utf8Env })
|
|
84
108
|
} catch (cause) {
|
|
85
109
|
throw new Error('CocoaPods is required to install source dependencies', { cause })
|
|
86
110
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
)
|
|
96
|
-
return {
|
|
111
|
+
const toolchain = JSON.stringify({
|
|
112
|
+
appRelative,
|
|
113
|
+
podVersion,
|
|
114
|
+
node: process.version,
|
|
115
|
+
xcode: execFileSync('xcodebuild', ['-version'], { encoding: 'utf8', env: utf8Env }),
|
|
116
|
+
packageManager: manifest.packageManager,
|
|
117
|
+
})
|
|
118
|
+
hash.update(toolchain)
|
|
119
|
+
native.update(toolchain)
|
|
120
|
+
return {
|
|
121
|
+
root,
|
|
122
|
+
appRelative,
|
|
123
|
+
hash: hash.digest('hex'),
|
|
124
|
+
nativeHash: native.digest('hex'),
|
|
125
|
+
excluded,
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// each prepared workspace copies the app's repository with its installed
|
|
130
|
+
// dependencies and pods, often many gigabytes, and every source edit hashes to
|
|
131
|
+
// a new one. a prepare keeps the workspace it returns plus the newest other
|
|
132
|
+
// complete ones and retires the rest; a workspace used within the grace window
|
|
133
|
+
// always stays. a retired tree leaves the address space by rename before it is
|
|
134
|
+
// deleted, so a racing prepare sees a miss and rebuilds.
|
|
135
|
+
const KEPT_WORKSPACES = 2
|
|
136
|
+
const WORKSPACE_GRACE_MS = 3_600_000
|
|
137
|
+
// a prepare that died leaves an incomplete tree only a retry of its own hash
|
|
138
|
+
// would replace; no prepare runs for a day.
|
|
139
|
+
const ABANDONED_WORKSPACE_MS = 24 * 3_600_000
|
|
140
|
+
const RETIRED_PREFIX = '.retired-'
|
|
141
|
+
|
|
142
|
+
function pruneExpoNativeWorkspaces(parent: string, keep: string) {
|
|
143
|
+
const retire = (directory: string, used: number) => {
|
|
144
|
+
const retired = path.join(
|
|
145
|
+
parent,
|
|
146
|
+
`${RETIRED_PREFIX}${process.pid}-${path.basename(directory)}`,
|
|
147
|
+
)
|
|
148
|
+
// a workspace renewed since the scan is in use again.
|
|
149
|
+
if (fs.statSync(directory, { throwIfNoEntry: false })?.mtimeMs !== used) return
|
|
150
|
+
try {
|
|
151
|
+
fs.renameSync(directory, retired)
|
|
152
|
+
} catch (error) {
|
|
153
|
+
if (error instanceof Error && 'code' in error && error.code === 'ENOENT') return
|
|
154
|
+
throw error
|
|
155
|
+
}
|
|
156
|
+
fs.rmSync(retired, { recursive: true, force: true })
|
|
157
|
+
}
|
|
158
|
+
const complete: { directory: string; used: number }[] = []
|
|
159
|
+
for (const name of fs.readdirSync(parent)) {
|
|
160
|
+
const directory = path.join(parent, name)
|
|
161
|
+
if (name.startsWith(RETIRED_PREFIX)) {
|
|
162
|
+
fs.rmSync(directory, { recursive: true, force: true })
|
|
163
|
+
continue
|
|
164
|
+
}
|
|
165
|
+
const used = fs.statSync(directory, { throwIfNoEntry: false })?.mtimeMs
|
|
166
|
+
if (directory === keep || used === undefined) continue
|
|
167
|
+
if (fs.existsSync(path.join(directory, '.peach-complete')))
|
|
168
|
+
complete.push({ directory, used })
|
|
169
|
+
else if (Date.now() - used > ABANDONED_WORKSPACE_MS) retire(directory, used)
|
|
170
|
+
}
|
|
171
|
+
for (const { directory, used } of complete
|
|
172
|
+
.sort((a, b) => b.used - a.used)
|
|
173
|
+
.slice(KEPT_WORKSPACES - 1))
|
|
174
|
+
if (Date.now() - used > WORKSPACE_GRACE_MS) retire(directory, used)
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
// an edit that leaves the native inputs alone lands in the prepared copy by
|
|
178
|
+
// stat, so a warm open reads no file it did not have to.
|
|
179
|
+
function syncChangedFiles(
|
|
180
|
+
root: string,
|
|
181
|
+
work: string,
|
|
182
|
+
appRelative: string,
|
|
183
|
+
excluded: (relative: string) => boolean,
|
|
184
|
+
) {
|
|
185
|
+
const walk = (directory: string) => {
|
|
186
|
+
for (const entry of fs.readdirSync(directory, { withFileTypes: true })) {
|
|
187
|
+
const file = path.join(directory, entry.name)
|
|
188
|
+
const relative = path.relative(root, file)
|
|
189
|
+
// the app's ios project is prebuild output, not a source
|
|
190
|
+
if (
|
|
191
|
+
excluded(relative) ||
|
|
192
|
+
entry.isSymbolicLink() ||
|
|
193
|
+
relative === path.join(appRelative, 'ios')
|
|
194
|
+
)
|
|
195
|
+
continue
|
|
196
|
+
if (entry.isDirectory()) walk(file)
|
|
197
|
+
else if (entry.isFile()) {
|
|
198
|
+
const source = fs.statSync(file)
|
|
199
|
+
const target = path.join(work, relative)
|
|
200
|
+
const existing = fs.statSync(target, { throwIfNoEntry: false })
|
|
201
|
+
if (existing?.size === source.size && existing.mtimeMs === source.mtimeMs)
|
|
202
|
+
continue
|
|
203
|
+
fs.mkdirSync(path.dirname(target), { recursive: true })
|
|
204
|
+
fs.copyFileSync(file, target)
|
|
205
|
+
fs.utimesSync(target, source.atime, source.mtime)
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
walk(root)
|
|
97
210
|
}
|
|
98
211
|
|
|
99
212
|
export async function prepareExpoNativeWorkspace(app: string, signal?: AbortSignal) {
|
|
@@ -104,17 +217,20 @@ export async function prepareExpoNativeWorkspace(app: string, signal?: AbortSign
|
|
|
104
217
|
console.error(
|
|
105
218
|
`[expo-native-workspace ${Math.round(performance.now() - started)}ms] ${message}`,
|
|
106
219
|
)
|
|
107
|
-
const { root, appRelative,
|
|
220
|
+
const { root, appRelative, nativeHash, excluded } = await hashExpoWorkspace(app, signal)
|
|
108
221
|
const manifest = JSON.parse(fs.readFileSync(path.join(root, 'package.json'), 'utf8'))
|
|
109
222
|
const appManifest = JSON.parse(fs.readFileSync(path.join(app, 'package.json'), 'utf8'))
|
|
110
|
-
const work = path.join(cacheDir(), 'expo-native-workspaces',
|
|
223
|
+
const work = path.join(cacheDir(), 'expo-native-workspaces', nativeHash)
|
|
111
224
|
report(`hashed ${root}`)
|
|
112
225
|
return withSwiftRootLock(
|
|
113
226
|
work,
|
|
114
227
|
async (lease) => {
|
|
115
228
|
const marker = path.join(work, '.peach-complete')
|
|
116
229
|
const preparedApp = path.join(work, appRelative)
|
|
117
|
-
if (fs.existsSync(marker))
|
|
230
|
+
if (fs.existsSync(marker)) {
|
|
231
|
+
syncChangedFiles(root, work, appRelative, excluded)
|
|
232
|
+
report(`reusing prepared workspace ${work}`)
|
|
233
|
+
}
|
|
118
234
|
if (!fs.existsSync(marker)) {
|
|
119
235
|
const partial = `${work}.${process.pid}.partial`
|
|
120
236
|
fs.rmSync(partial, { recursive: true, force: true })
|
|
@@ -122,19 +238,40 @@ export async function prepareExpoNativeWorkspace(app: string, signal?: AbortSign
|
|
|
122
238
|
fs.mkdirSync(path.dirname(work), { recursive: true })
|
|
123
239
|
fs.cpSync(root, partial, {
|
|
124
240
|
recursive: true,
|
|
241
|
+
preserveTimestamps: true,
|
|
125
242
|
filter: (source) => !excluded(path.relative(root, source)),
|
|
126
243
|
})
|
|
127
244
|
fs.renameSync(partial, work)
|
|
128
|
-
// a lifecycle script that installs git hooks needs a repository, and the copy gets its own
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
245
|
+
// a lifecycle script that installs git hooks needs a repository, and the copy gets its own.
|
|
246
|
+
// an app config may read HEAD, so the repository carries one empty commit
|
|
247
|
+
for (const args of [
|
|
248
|
+
['init', '--quiet'],
|
|
249
|
+
[
|
|
250
|
+
'-c',
|
|
251
|
+
'user.name=peach',
|
|
252
|
+
'-c',
|
|
253
|
+
'user.email=peach@localhost',
|
|
254
|
+
'commit',
|
|
255
|
+
'--quiet',
|
|
256
|
+
'--allow-empty',
|
|
257
|
+
'--no-verify',
|
|
258
|
+
'-m',
|
|
259
|
+
'prepared workspace',
|
|
260
|
+
],
|
|
261
|
+
])
|
|
262
|
+
execFileSync('git', args, {
|
|
263
|
+
cwd: work,
|
|
264
|
+
env: { ...process.env, ...isolatedGitEnv },
|
|
265
|
+
// these take milliseconds; a wedged volume must fail loud, never hang discovery
|
|
266
|
+
timeout: 60_000,
|
|
267
|
+
})
|
|
135
268
|
report('copied workspace')
|
|
136
|
-
const run = (
|
|
137
|
-
|
|
269
|
+
const run = (
|
|
270
|
+
command: string,
|
|
271
|
+
args: string[],
|
|
272
|
+
cwd: string,
|
|
273
|
+
env: Record<string, string> = {},
|
|
274
|
+
) => runAdmitted(lease, command, args, cwd, env, signal)
|
|
138
275
|
const manager =
|
|
139
276
|
typeof manifest.packageManager === 'string' ? manifest.packageManager : 'npm'
|
|
140
277
|
const nodeVersion =
|
|
@@ -167,18 +304,38 @@ export async function prepareExpoNativeWorkspace(app: string, signal?: AbortSign
|
|
|
167
304
|
}
|
|
168
305
|
await execute(install, work)
|
|
169
306
|
report('installed js dependencies')
|
|
170
|
-
const
|
|
171
|
-
|
|
172
|
-
)
|
|
307
|
+
const appRequire = createRequire(path.join(preparedApp, 'package.json'))
|
|
308
|
+
// an Expo-free One app declares its iOS project (deployment target
|
|
309
|
+
// included) in native.app, which only its own prebuild reads
|
|
310
|
+
const declares = (name: string) =>
|
|
311
|
+
['dependencies', 'devDependencies'].some((field) =>
|
|
312
|
+
Object.hasOwn(appManifest[field] ?? {}, name),
|
|
313
|
+
)
|
|
314
|
+
const prebuild = declares('expo')
|
|
315
|
+
? [appRequire.resolve('expo/bin/cli'), 'prebuild']
|
|
316
|
+
: [
|
|
317
|
+
path.join(path.dirname(appRequire.resolve('one/package.json')), 'run.mjs'),
|
|
318
|
+
'prebuild',
|
|
319
|
+
]
|
|
173
320
|
await execute(
|
|
174
|
-
['node',
|
|
321
|
+
['node', ...prebuild, '--platform', 'ios', '--no-install'],
|
|
175
322
|
preparedApp,
|
|
176
323
|
)
|
|
177
|
-
report('
|
|
178
|
-
|
|
324
|
+
report('prebuild done')
|
|
325
|
+
// react-native-skia leaves Dawn to react-native-webgpu whenever that package
|
|
326
|
+
// is installed, but autolinking links it only into apps that declare it
|
|
327
|
+
await run(
|
|
328
|
+
'pod',
|
|
329
|
+
['install'],
|
|
330
|
+
path.join(preparedApp, 'ios'),
|
|
331
|
+
declares('react-native-webgpu') ? {} : { RNSKIA_VENDOR_DAWN: '1' },
|
|
332
|
+
)
|
|
179
333
|
report('pod install done')
|
|
180
334
|
fs.writeFileSync(marker, 'complete\n')
|
|
181
335
|
}
|
|
336
|
+
const now = new Date()
|
|
337
|
+
fs.utimesSync(work, now, now)
|
|
338
|
+
pruneExpoNativeWorkspaces(path.dirname(work), work)
|
|
182
339
|
const ios = path.join(preparedApp, 'ios')
|
|
183
340
|
const workspaces = fs
|
|
184
341
|
.readdirSync(ios)
|
|
@@ -196,6 +353,7 @@ async function runAdmitted(
|
|
|
196
353
|
command: string,
|
|
197
354
|
args: string[],
|
|
198
355
|
cwd: string,
|
|
356
|
+
extraEnv: Record<string, string>,
|
|
199
357
|
signal?: AbortSignal,
|
|
200
358
|
) {
|
|
201
359
|
signal?.throwIfAborted()
|
|
@@ -210,6 +368,7 @@ async function runAdmitted(
|
|
|
210
368
|
EXPO_NO_TELEMETRY: '1',
|
|
211
369
|
LANG: 'en_US.UTF-8',
|
|
212
370
|
LC_ALL: 'en_US.UTF-8',
|
|
371
|
+
...extraEnv,
|
|
213
372
|
},
|
|
214
373
|
signal,
|
|
215
374
|
},
|