peachsim 0.1.2673 → 0.1.2675
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/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 +1 -1
- package/dist-lib/bridge-contract-input.mjs +5 -5
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +3 -3
- package/dist-lib/bundle-channel.cjs +102 -71
- package/dist-lib/capture-contract.cjs +1 -1
- 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 +7 -7
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +5 -5
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/esm-chunks/{acorn-336UC4RP.mjs → acorn-VEOPTKVF.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-OZCOKJ7M.mjs → chunk-35JRIGP7.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-5HOIZ6MQ.mjs → chunk-3Q3LIOE4.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-VF6MYLEZ.mjs → chunk-5F7IW22G.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-YTDJZT5E.mjs → chunk-5INXUSJ3.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-3MZPG7IR.mjs → chunk-ADOQU6SI.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-BBGS4DZC.mjs → chunk-AJTT2VYL.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-KXE5HCNR.mjs → chunk-ATBIBLXB.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-D5FFCNAT.mjs → chunk-BJGGCQKA.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-XJLTGEVV.mjs → chunk-DBPA4NE7.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-R6ZDUB54.mjs → chunk-E663VVCN.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-KA7WVS2K.mjs → chunk-FOTVQGKC.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-E4AUUK5I.mjs → chunk-FSMKZOTX.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-4GG2PPSU.mjs → chunk-GM75SEKY.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-3ZNNDHDI.mjs → chunk-I5Z73FXT.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-P2BIUM7R.mjs → chunk-IZB357DH.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-S4OMJTWN.mjs → chunk-K234VYDM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-RF5IVPXG.mjs → chunk-LCSKGJ7G.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-FNBMSPNT.mjs → chunk-LFD67UJA.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-7H7ZOZM2.mjs → chunk-MED7BRBB.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-IU77JRSH.mjs → chunk-MJBRJSOV.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-WSESTR3O.mjs → chunk-NNH7MSKJ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-L5O5XBPQ.mjs → chunk-SKQE5DWK.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-C6REX7EL.mjs → chunk-YPE76EEE.mjs} +15 -15
- package/dist-lib/esm-chunks/{chunk-Y6ZJLACG.mjs → chunk-ZATDP3O2.mjs} +1 -1
- package/dist-lib/esm-chunks/{metro-layout-parser-NROJOPLZ.mjs → metro-layout-parser-RYUGORYR.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-2WRORWMA.mjs → swift-package-prebuilt-M55UCSKN.mjs} +12 -12
- package/dist-lib/esm-chunks/{swift-sdk-app-module-SKXQBJ4J.mjs → swift-sdk-app-module-L2HB3XBS.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-WFS54ICR.mjs → swift-sdk-image-AHIIWTZ6.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-P6FOBZHK.mjs → swift-sdk-image-producer-4S5ZPC2A.mjs} +5 -5
- package/dist-lib/expo-swift-bundle.cjs +72 -46
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +7 -7
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +101 -70
- package/dist-lib/host/fetch-proxy-handler.cjs +11 -10
- 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 +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- 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 +1 -1
- package/dist-lib/metro-production-bundle.mjs +4 -4
- package/dist-lib/native-app-identity-project.cjs +1 -1
- package/dist-lib/native-app-identity-project.mjs +15 -15
- 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 +85 -85
- package/dist-lib/public-origins-lib.json +64 -64
- 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 +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +8 -8
- package/dist-lib/skills.cjs +114 -83
- package/dist-lib/swift-compile.cjs +2 -2
- package/dist-lib/swift-compile.mjs +12 -12
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +3 -3
- package/dist-lib/swift-submit.cjs +2 -2
- package/dist-lib/swift-submit.mjs +7 -7
- package/dist-lib/swift-svg-raster.cjs +1 -1
- package/dist-lib/swift-svg-raster.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +1 -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/magic-string.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 +1 -1
- package/dist-lib/vendor/zod.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +3 -3
- package/dist-types/packages/peach-engine/src/remote-stream/client-config.d.ts +4 -0
- package/package.json +1 -1
- package/sdk/ios/System/Library/Frameworks/AssetsLibrary.framework/Headers/ALAsset.h +14 -0
- package/sdk/ios/System/Library/Frameworks/AssetsLibrary.framework/Headers/ALAssetRepresentation.h +20 -0
- package/sdk/ios/System/Library/Frameworks/AssetsLibrary.framework/Headers/ALAssetsLibrary.h +71 -0
- package/sdk/ios/System/Library/Frameworks/AssetsLibrary.framework/Headers/AssetsLibrary.h +5 -0
- package/sdk/ios/System/Library/Frameworks/AssetsLibrary.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTask.h +21 -0
- package/sdk/ios/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTaskRequest.h +24 -0
- package/sdk/ios/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTaskScheduler.h +32 -0
- package/sdk/ios/System/Library/Frameworks/BackgroundTasks.framework/Headers/BackgroundTasks.h +5 -0
- package/sdk/ios/System/Library/Frameworks/BackgroundTasks.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/LinkPresentation.framework/Headers/LPLinkMetadata.h +17 -0
- package/sdk/ios/System/Library/Frameworks/LinkPresentation.framework/Headers/LPMetadataProvider.h +18 -0
- package/sdk/ios/System/Library/Frameworks/LinkPresentation.framework/Headers/LinkPresentation.h +4 -0
- package/sdk/ios/System/Library/Frameworks/LinkPresentation.framework/Modules/module.modulemap +5 -0
- package/src/expo-native-workspace.ts +3 -4
- package/src/swift-submit.ts +2 -1
- package/src/turbo-fabric-app.ts +7 -1
- package/src/turbo-source.ts +68 -28
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2675 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -2653,7 +2653,7 @@ var init_swift_submit = __esm({
|
|
|
2653
2653
|
MAX_SWIFT_COMPILE_IMAGES = 256;
|
|
2654
2654
|
MAX_SWIFT_COMPILE_IMAGE_BYTES = 4 * 1024 * 1024;
|
|
2655
2655
|
MAX_SWIFT_COMPILE_IMAGE_TOTAL_BYTES = 16 * 1024 * 1024;
|
|
2656
|
-
SWIFT_HOST_ABI =
|
|
2656
|
+
SWIFT_HOST_ABI = 115;
|
|
2657
2657
|
POLL_INTERVAL_MS = 1500;
|
|
2658
2658
|
}
|
|
2659
2659
|
});
|
|
@@ -6175,7 +6175,7 @@ var init_swift_objc_sdk_tree = __esm({
|
|
|
6175
6175
|
|
|
6176
6176
|
// src/swift-compiler-digest.ts
|
|
6177
6177
|
function swiftArchiveCompilerDigestValue() {
|
|
6178
|
-
return true ? "
|
|
6178
|
+
return true ? "91982cf5fdcc3e5053d8a39c2f18a9928d7cfbd48744cc2d27664c46f06c2321" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname, "archive");
|
|
6179
6179
|
}
|
|
6180
6180
|
var import_node_crypto10, import_node_fs25, import_node_path25, SWIFT_DIGEST_SOURCES, LINKED_IMAGE_SOURCES, SWIFT_ARCHIVE_DIGEST_SOURCES;
|
|
6181
6181
|
var init_swift_compiler_digest = __esm({
|
|
@@ -6326,7 +6326,7 @@ var init_swift_standin_digest = __esm({
|
|
|
6326
6326
|
|
|
6327
6327
|
// src/expo-native-compiler-digest.ts
|
|
6328
6328
|
function expoNativeCompilerDigestValue() {
|
|
6329
|
-
return true ? "
|
|
6329
|
+
return true ? "56584752089834fe4f58ff1c0a7ed110a3ef77646613a5606d98e02de2d3418d" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
6330
6330
|
}
|
|
6331
6331
|
var import_node_crypto12;
|
|
6332
6332
|
var init_expo_native_compiler_digest = __esm({
|
|
@@ -54665,7 +54665,7 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
|
|
|
54665
54665
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
54666
54666
|
MULTI_MANIFEST_VERSION = 76;
|
|
54667
54667
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
54668
|
-
compilerSourceDigest = true ? "
|
|
54668
|
+
compilerSourceDigest = true ? "9514fd3df63e23aff60b29d712c1253d5b24a143e35f726b153690421d62974e" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
54669
54669
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
54670
54670
|
MODULE_MAP_RESPONSE_FILE_RUN = 16;
|
|
54671
54671
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
@@ -80333,6 +80333,7 @@ function cleanWorkspaceGitEnv() {
|
|
|
80333
80333
|
}
|
|
80334
80334
|
function reactNativePodsEnvironment() {
|
|
80335
80335
|
return {
|
|
80336
|
+
RCT_NEW_ARCH_ENABLED: process.env.RCT_NEW_ARCH_ENABLED,
|
|
80336
80337
|
RCT_USE_PREBUILT_RNCORE: process.env.RCT_USE_PREBUILT_RNCORE,
|
|
80337
80338
|
RCT_USE_RN_DEP: process.env.RCT_USE_RN_DEP
|
|
80338
80339
|
};
|
|
@@ -80549,7 +80550,7 @@ async function walkWorkspaceInputs(app, everyByte, sourceOnly, podsEnvironment)
|
|
|
80549
80550
|
{ cwd: root }
|
|
80550
80551
|
);
|
|
80551
80552
|
const toolchain = JSON.stringify({
|
|
80552
|
-
preparation:
|
|
80553
|
+
preparation: 13,
|
|
80553
80554
|
appRelative,
|
|
80554
80555
|
xcode: xcodeInstallationIdentity(),
|
|
80555
80556
|
node: node.stdout.trim(),
|
|
@@ -81021,7 +81022,7 @@ async function prepareNativeProject(app, workspace, manifest, stage, execute, re
|
|
|
81021
81022
|
const sourcePodEnv = {
|
|
81022
81023
|
EXPO_USE_PRECOMPILED_MODULES: "0",
|
|
81023
81024
|
ONE_PREBUILT_IOS: "0",
|
|
81024
|
-
RCT_NEW_ARCH_ENABLED: "1"
|
|
81025
|
+
RCT_NEW_ARCH_ENABLED: process.env.RCT_NEW_ARCH_ENABLED ?? "1"
|
|
81025
81026
|
};
|
|
81026
81027
|
const declares2 = (name3) => declaresNativeDependency(manifest, name3);
|
|
81027
81028
|
if (!import_node_fs101.default.existsSync(import_node_path105.default.join(app, "ios", "Podfile"))) {
|
|
@@ -105074,6 +105075,12 @@ namespace {
|
|
|
105074
105075
|
using AppNode = std::shared_ptr<const react::ShadowNode>;
|
|
105075
105076
|
using AppChildren = std::vector<AppNode>;
|
|
105076
105077
|
|
|
105078
|
+
void setFabricViewportSize(auto &layout, const react::Size &size) {
|
|
105079
|
+
if constexpr (requires { layout.viewportSize = size; }) {
|
|
105080
|
+
layout.viewportSize = size;
|
|
105081
|
+
}
|
|
105082
|
+
}
|
|
105083
|
+
|
|
105077
105084
|
class PeachAppShadowTree {
|
|
105078
105085
|
public:
|
|
105079
105086
|
PeachAppShadowTree(std::shared_ptr<react::UIManager> manager, const react::ContextContainer &context)
|
|
@@ -105091,7 +105098,7 @@ class PeachAppShadowTree {
|
|
|
105091
105098
|
constraints.layoutDirection = rtl ? react::LayoutDirection::RightToLeft : react::LayoutDirection::LeftToRight;
|
|
105092
105099
|
react::LayoutContext layout;
|
|
105093
105100
|
layout.pointScaleFactor = static_cast<react::Float>(scale);
|
|
105094
|
-
layout
|
|
105101
|
+
setFabricViewportSize(layout, constraints.maximumSize);
|
|
105095
105102
|
if (surface_ != 0 && surface_ != surface)
|
|
105096
105103
|
throw jsi::JSError(rt, "Fabric runtime is already bound to another app surface");
|
|
105097
105104
|
if (surface_ == 0) {
|
|
@@ -105768,7 +105775,7 @@ function transcribeLoad(text7, file) {
|
|
|
105768
105775
|
throw refuse4("+load sends Objective-C messages");
|
|
105769
105776
|
return { includes, usings, body };
|
|
105770
105777
|
}
|
|
105771
|
-
function viewManagers(root, files2) {
|
|
105778
|
+
function viewManagers(root, files2, inherited) {
|
|
105772
105779
|
const classes = /* @__PURE__ */ new Map();
|
|
105773
105780
|
for (const file of files2) {
|
|
105774
105781
|
if (!HEADER5.test(file) && !OBJC2.test(file)) continue;
|
|
@@ -105780,7 +105787,7 @@ function viewManagers(root, files2) {
|
|
|
105780
105787
|
))
|
|
105781
105788
|
classes.set(name3, parent);
|
|
105782
105789
|
}
|
|
105783
|
-
const managers =
|
|
105790
|
+
const managers = new Set(inherited ?? ["RCTViewManager"]);
|
|
105784
105791
|
for (let remaining = classes.size; remaining > 0; remaining--) {
|
|
105785
105792
|
let changed2 = false;
|
|
105786
105793
|
for (const [name3, parent] of classes) {
|
|
@@ -105793,9 +105800,15 @@ function viewManagers(root, files2) {
|
|
|
105793
105800
|
}
|
|
105794
105801
|
return managers;
|
|
105795
105802
|
}
|
|
105796
|
-
function
|
|
105803
|
+
function reactNativeViewManagers(root) {
|
|
105804
|
+
const files2 = /* @__PURE__ */ new Set();
|
|
105805
|
+
for (const { from, to } of REACT_NATIVE_HEADER_DIRS)
|
|
105806
|
+
if (to === "React") walkFiles2(root, from, files2);
|
|
105807
|
+
return viewManagers(root, files2);
|
|
105808
|
+
}
|
|
105809
|
+
function paperViewManagers(root, files2, inherited) {
|
|
105797
105810
|
const sources = [...files2];
|
|
105798
|
-
const managers = viewManagers(root, sources);
|
|
105811
|
+
const managers = viewManagers(root, sources, inherited);
|
|
105799
105812
|
const exported = /* @__PURE__ */ new Set();
|
|
105800
105813
|
for (const file of sources) {
|
|
105801
105814
|
if (!OBJC2.test(file)) continue;
|
|
@@ -105812,15 +105825,15 @@ function paperViewManagers(root, files2) {
|
|
|
105812
105825
|
}
|
|
105813
105826
|
return [...exported].sort();
|
|
105814
105827
|
}
|
|
105815
|
-
function registers(root, files2,
|
|
105828
|
+
function registers(root, files2, inherited) {
|
|
105816
105829
|
const sources = [...files2];
|
|
105817
|
-
const managers =
|
|
105830
|
+
const managers = viewManagers(root, sources, inherited);
|
|
105818
105831
|
for (const file of sources) {
|
|
105819
105832
|
if (!UNIT.test(file) && !OBJC2.test(file)) continue;
|
|
105820
105833
|
const text7 = import_node_fs139.default.readFileSync(import_node_path141.default.join(root, file), "utf8");
|
|
105821
105834
|
if (text7.includes(REGISTRATION)) return true;
|
|
105822
105835
|
const stripped2 = stripComments2(text7);
|
|
105823
|
-
if (
|
|
105836
|
+
if (OBJC2.test(file) && !CODEGEN_OBJC.test(text7) && (OBJC_TURBO.test(stripped2) || OBJC_BRIDGE.test(stripped2) && ![...stripped2.matchAll(/@implementation\s+(\w+)/g)].some(
|
|
105824
105837
|
([, name3]) => managers.has(name3)
|
|
105825
105838
|
)))
|
|
105826
105839
|
return true;
|
|
@@ -105848,6 +105861,11 @@ async function turboProviderCandidates(appRoot, answered = peachAnsweredNativePa
|
|
|
105848
105861
|
async function discoverTurboProviders(appRoot, projectRoot, iosTarget, answered = /* @__PURE__ */ new Set(), answeredPackages) {
|
|
105849
105862
|
const providers = [];
|
|
105850
105863
|
const candidates = await turboProviderCandidates(appRoot, answeredPackages);
|
|
105864
|
+
if (!candidates.length) return providers;
|
|
105865
|
+
const appRequire = (0, import_node_module18.createRequire)(import_node_path141.default.join(appRoot, "package.json"));
|
|
105866
|
+
const nativeManagers = reactNativeViewManagers(
|
|
105867
|
+
import_node_path141.default.dirname(appRequire.resolve("react-native/package.json"))
|
|
105868
|
+
);
|
|
105851
105869
|
const installed2 = projectRoot && installedXcodeWorkspace(projectRoot) ? installedNativeSources(
|
|
105852
105870
|
candidates.map(({ provider }) => provider),
|
|
105853
105871
|
projectRoot,
|
|
@@ -105858,7 +105876,7 @@ async function discoverTurboProviders(appRoot, projectRoot, iosTarget, answered
|
|
|
105858
105876
|
const sources = installed2 ? installed2.get(provider.name) : { root: pod.root, files: fabric ? null : podGlobFiles(pod) };
|
|
105859
105877
|
if (!sources) continue;
|
|
105860
105878
|
const { root, files: files2 } = sources;
|
|
105861
|
-
if (fabric || files2 !== null && (registers(root, files2) || paperViewManagers(root, files2).length > 0)) {
|
|
105879
|
+
if (fabric || files2 !== null && (registers(root, files2, nativeManagers) || paperViewManagers(root, files2, nativeManagers).length > 0)) {
|
|
105862
105880
|
const nameFiles = files2 ?? podGlobFiles(pod);
|
|
105863
105881
|
if (answered.size > 0 && nameFiles && moduleNamesAnswered(root, nameFiles, answered))
|
|
105864
105882
|
continue;
|
|
@@ -105914,11 +105932,20 @@ async function collectTurboSources(options2) {
|
|
|
105914
105932
|
const reactNative = packageInfo2(options2.reactNativeRoot);
|
|
105915
105933
|
if (reactNative.name !== "react-native")
|
|
105916
105934
|
throw new Error(`${options2.reactNativeRoot} is not react-native`);
|
|
105917
|
-
const
|
|
105918
|
-
|
|
105919
|
-
|
|
105920
|
-
|
|
105921
|
-
|
|
105935
|
+
const nativeManagers = reactNativeViewManagers(reactNative.root);
|
|
105936
|
+
const paperWorkspace = process.env.RCT_NEW_ARCH_ENABLED === "0";
|
|
105937
|
+
const rawProviders = options2.providers.map((provider) => {
|
|
105938
|
+
const installed2 = options2.installedPods?.get(provider.name);
|
|
105939
|
+
const paper = paperWorkspace && installed2 !== void 0 && !/(?:^| )-D ?RCT_NEW_ARCH_ENABLED(?:=[^ ]+)?(?: |$)/.test(
|
|
105940
|
+
installed2.preprocessorFlags.cxx.join(" ")
|
|
105941
|
+
);
|
|
105942
|
+
return {
|
|
105943
|
+
...provider,
|
|
105944
|
+
info: packageInfo2(provider.root),
|
|
105945
|
+
libraries: packageCodegenLibraries(provider.root),
|
|
105946
|
+
paper
|
|
105947
|
+
};
|
|
105948
|
+
}).sort((a, b) => a.info.name.localeCompare(b.info.name));
|
|
105922
105949
|
const installedHeaderPods = (options2.reactNativeProvider || options2.reactNativeCore ? [] : await installedTurboHeaderPods(options2.appRoot)).map(
|
|
105923
105950
|
(provider) => readPod(provider, options2.appRoot, options2.installedPods?.get(provider.name))
|
|
105924
105951
|
);
|
|
@@ -105944,7 +105971,7 @@ async function collectTurboSources(options2) {
|
|
|
105944
105971
|
const providers = [];
|
|
105945
105972
|
for (const provider of rawProviders) {
|
|
105946
105973
|
const componentLibraries = provider.libraries.filter((library) => library.components);
|
|
105947
|
-
if (componentLibraries.length === 0) {
|
|
105974
|
+
if (componentLibraries.length === 0 || provider.paper) {
|
|
105948
105975
|
providers.push({ ...provider, providerFabric: false });
|
|
105949
105976
|
continue;
|
|
105950
105977
|
}
|
|
@@ -105979,7 +106006,7 @@ async function collectTurboSources(options2) {
|
|
|
105979
106006
|
const text7 = import_node_fs139.default.readFileSync(import_node_path141.default.join(pod.root, file), "utf8");
|
|
105980
106007
|
return registersReactModule(text7) || CODEGEN_OBJC.test(text7);
|
|
105981
106008
|
});
|
|
105982
|
-
if (!registers(pod.root, filteredFiles) && paperViewManagers(pod.root, filteredFiles).length === 0)
|
|
106009
|
+
if (!registers(pod.root, filteredFiles, nativeManagers) && paperViewManagers(pod.root, filteredFiles, nativeManagers).length === 0)
|
|
105983
106010
|
continue;
|
|
105984
106011
|
}
|
|
105985
106012
|
providers.push({ ...provider, providerFabric });
|
|
@@ -105993,13 +106020,12 @@ async function collectTurboSources(options2) {
|
|
|
105993
106020
|
const targetPath = (name3) => `Sources/${name3}`;
|
|
105994
106021
|
const providerTarget = (name3) => `TurboPackage_${sha2564(name3).slice(0, 16)}`;
|
|
105995
106022
|
const folly = readFollyConfig(reactNative.root);
|
|
105996
|
-
const
|
|
106023
|
+
const baseDefines = [
|
|
105997
106024
|
options2.configuration === "Debug" ? "DEBUG=1" : "NDEBUG",
|
|
105998
|
-
"RCT_NEW_ARCH_ENABLED=1",
|
|
105999
|
-
"RCT_REMOVE_LEGACY_ARCH=1",
|
|
106000
106025
|
"RCT_REMOTE_PROFILE=0",
|
|
106001
106026
|
...folly.defines
|
|
106002
106027
|
];
|
|
106028
|
+
const defines = [...baseDefines, "RCT_NEW_ARCH_ENABLED=1", "RCT_REMOVE_LEGACY_ARCH=1"];
|
|
106003
106029
|
const target = (name3, dependencies) => ({
|
|
106004
106030
|
name: name3,
|
|
106005
106031
|
path: targetPath(name3),
|
|
@@ -106510,6 +106536,7 @@ async function collectTurboSources(options2) {
|
|
|
106510
106536
|
options2.appRoot,
|
|
106511
106537
|
options2.installedPods?.get(provider.name)
|
|
106512
106538
|
);
|
|
106539
|
+
if (provider.paper) providerTargetInput.cxxDefines = baseDefines;
|
|
106513
106540
|
if (pod.installed)
|
|
106514
106541
|
providerTargetInput.clangSettings = [
|
|
106515
106542
|
{ tool: "c", flags: pod.installed.preprocessorFlags.c },
|
|
@@ -106531,8 +106558,8 @@ async function collectTurboSources(options2) {
|
|
|
106531
106558
|
const text7 = import_node_fs139.default.readFileSync(import_node_path141.default.join(root, file), "utf8");
|
|
106532
106559
|
return registersReactModule(text7) || CODEGEN_OBJC.test(text7);
|
|
106533
106560
|
});
|
|
106534
|
-
const managers = viewManagers(root, files2);
|
|
106535
|
-
const paper = paperViewManagers(root, files2);
|
|
106561
|
+
const managers = viewManagers(root, files2, nativeManagers);
|
|
106562
|
+
const paper = paperViewManagers(root, files2, nativeManagers);
|
|
106536
106563
|
if (paper.length > 0) {
|
|
106537
106564
|
fabric = true;
|
|
106538
106565
|
paperClasses.push(...paper);
|
|
@@ -106793,7 +106820,7 @@ async function collectTurboSources(options2) {
|
|
|
106793
106820
|
].join("\n")
|
|
106794
106821
|
);
|
|
106795
106822
|
}
|
|
106796
|
-
if (loads.length === 0 && !registers(root, files2) && !provider.providerFabric && paper.length === 0)
|
|
106823
|
+
if (loads.length === 0 && !registers(root, files2, nativeManagers) && !provider.providerFabric && paper.length === 0)
|
|
106797
106824
|
throw new Error(`${label}: its pod sources register no TurboModule`);
|
|
106798
106825
|
objc ||= providerObjC;
|
|
106799
106826
|
const specs = provider.libraries.flatMap(({ spec }) => spec ?? []);
|
|
@@ -108463,13 +108490,13 @@ std::array<double, 10> fabricAdoptedStyle(const PeachFabricView &view) {
|
|
|
108463
108490
|
|
|
108464
108491
|
// UIManager::dispatchEventToJS: the instance handle the engine gave the view,
|
|
108465
108492
|
// the event type and its payload with the target tag and timestamp
|
|
108466
|
-
|
|
108493
|
+
const auto fabricDispatchEvent = [](
|
|
108467
108494
|
jsi::Runtime &rt,
|
|
108468
|
-
react::EventTarget *target,
|
|
108495
|
+
const react::EventTarget *target,
|
|
108469
108496
|
const std::string &type,
|
|
108470
108497
|
react::ReactEventPriority,
|
|
108471
108498
|
const react::EventPayload &eventPayload,
|
|
108472
|
-
|
|
108499
|
+
auto... timestamps) {
|
|
108473
108500
|
auto payload = eventPayload.asJSIValue(rt);
|
|
108474
108501
|
if (payload.isNull() || !fabricEventHandler || !target) return;
|
|
108475
108502
|
auto handle = target->getInstanceHandle(rt);
|
|
@@ -108477,11 +108504,14 @@ void fabricDispatchEvent(
|
|
|
108477
108504
|
if (payload.isObject()) {
|
|
108478
108505
|
auto object = payload.asObject(rt);
|
|
108479
108506
|
object.setProperty(rt, "target", target->getTag());
|
|
108480
|
-
if (
|
|
108481
|
-
object.
|
|
108507
|
+
if constexpr (sizeof...(timestamps) != 0) {
|
|
108508
|
+
if (!object.hasProperty(rt, "timeStamp")) {
|
|
108509
|
+
(object.setProperty(rt, "timeStamp", timestamps.toDOMHighResTimeStamp()), ...);
|
|
108510
|
+
}
|
|
108511
|
+
}
|
|
108482
108512
|
}
|
|
108483
108513
|
fabricEventHandler->call(rt, std::move(handle), jsi::String::createFromUtf8(rt, type), std::move(payload));
|
|
108484
|
-
}
|
|
108514
|
+
};
|
|
108485
108515
|
|
|
108486
108516
|
// UIManager::updateState with the engine's tree in place of the shadow tree:
|
|
108487
108517
|
// the view's next state, then the update its commit would mount
|
|
@@ -109218,12 +109248,13 @@ extern "C" __attribute__((export_name("peach_fabric_component_names"))) const ch
|
|
|
109218
109248
|
}
|
|
109219
109249
|
`;
|
|
109220
109250
|
}
|
|
109221
|
-
var import_node_crypto84, import_node_fs139, import_node_path141, TURBO_CORE_TARGET, TURBO_FMT_TARGET, TURBO_ENTRY_HEADER, TURBO_CORE_PUBLIC_HEADERS, REGISTRATION, CODEGEN_OBJC, UNIT, HEADER5, OBJC2, OBJC_TURBO, OBJC_BRIDGE, OBJC_REGISTERED, REACT_NATIVE_UNITS, REACT_NATIVE_INCLUDE_ROOTS, REACT_NATIVE_OBJC_UNITS, REACT_NATIVE_OBJC_VERSIONED_UNITS, REACT_NATIVE_HEADER_DIRS, REACT_NATIVE_BARE_HEADER_DIRS, DECLARED_MODULE_NAME, EXPORTED_MODULE, sha2564, podspecList, versionParts, iosOf, JS_CALL_INVOKER, FABRIC_SHADOW_HANDLE_HOST, FABRIC_HOST_INCLUDES, FABRIC_HOST_PAPER_INCLUDES, PAPER_UIKIT_BRIDGE_SWIFT;
|
|
109251
|
+
var import_node_crypto84, import_node_fs139, import_node_module18, import_node_path141, TURBO_CORE_TARGET, TURBO_FMT_TARGET, TURBO_ENTRY_HEADER, TURBO_CORE_PUBLIC_HEADERS, REGISTRATION, CODEGEN_OBJC, UNIT, HEADER5, OBJC2, OBJC_TURBO, OBJC_BRIDGE, OBJC_REGISTERED, REACT_NATIVE_UNITS, REACT_NATIVE_INCLUDE_ROOTS, REACT_NATIVE_OBJC_UNITS, REACT_NATIVE_OBJC_VERSIONED_UNITS, REACT_NATIVE_HEADER_DIRS, REACT_NATIVE_BARE_HEADER_DIRS, DECLARED_MODULE_NAME, EXPORTED_MODULE, sha2564, podspecList, versionParts, iosOf, JS_CALL_INVOKER, FABRIC_SHADOW_HANDLE_HOST, FABRIC_HOST_INCLUDES, FABRIC_HOST_PAPER_INCLUDES, PAPER_UIKIT_BRIDGE_SWIFT;
|
|
109222
109252
|
var init_turbo_source = __esm({
|
|
109223
109253
|
"src/turbo-source.ts"() {
|
|
109224
109254
|
"use strict";
|
|
109225
109255
|
import_node_crypto84 = require("node:crypto");
|
|
109226
109256
|
import_node_fs139 = __toESM(require("node:fs"), 1);
|
|
109257
|
+
import_node_module18 = require("node:module");
|
|
109227
109258
|
import_node_path141 = __toESM(require("node:path"), 1);
|
|
109228
109259
|
init_cocoapods_trunk();
|
|
109229
109260
|
init_installed_native_libraries();
|
|
@@ -110175,7 +110206,7 @@ function retainInstalledReactNativeDeclarations(snapshot, options2, skipped) {
|
|
|
110175
110206
|
const reactNative = [options2.appRoot, options2.projectRoot].map(
|
|
110176
110207
|
(root) => import_node_path142.default.dirname(
|
|
110177
110208
|
import_node_fs140.default.realpathSync(
|
|
110178
|
-
(0,
|
|
110209
|
+
(0, import_node_module19.createRequire)(import_node_path142.default.join(root, "package.json")).resolve(
|
|
110179
110210
|
"react-native/package.json"
|
|
110180
110211
|
)
|
|
110181
110212
|
)
|
|
@@ -110411,13 +110442,13 @@ async function compileTurboModule(options2) {
|
|
|
110411
110442
|
collection
|
|
110412
110443
|
};
|
|
110413
110444
|
}
|
|
110414
|
-
var import_node_crypto85, import_node_fs140,
|
|
110445
|
+
var import_node_crypto85, import_node_fs140, import_node_module19, import_node_os30, import_node_path142;
|
|
110415
110446
|
var init_turbo_compile = __esm({
|
|
110416
110447
|
"src/turbo-compile.ts"() {
|
|
110417
110448
|
"use strict";
|
|
110418
110449
|
import_node_crypto85 = require("node:crypto");
|
|
110419
110450
|
import_node_fs140 = __toESM(require("node:fs"), 1);
|
|
110420
|
-
|
|
110451
|
+
import_node_module19 = require("node:module");
|
|
110421
110452
|
import_node_os30 = __toESM(require("node:os"), 1);
|
|
110422
110453
|
import_node_path142 = __toESM(require("node:path"), 1);
|
|
110423
110454
|
init_native_app_identity_project();
|
|
@@ -110630,7 +110661,7 @@ function reactNativeCoreEntry(reactNativeRoot, moduleRoot, mode) {
|
|
|
110630
110661
|
};
|
|
110631
110662
|
walk4("");
|
|
110632
110663
|
const codegenRoot = import_node_path144.default.dirname(
|
|
110633
|
-
(0,
|
|
110664
|
+
(0, import_node_module20.createRequire)(import_node_path144.default.join(reactNativeRoot, "package.json")).resolve(
|
|
110634
110665
|
"@react-native/codegen/package.json"
|
|
110635
110666
|
)
|
|
110636
110667
|
);
|
|
@@ -110731,13 +110762,13 @@ function linkReactNativeCore(collection, core, moduleRoot) {
|
|
|
110731
110762
|
}
|
|
110732
110763
|
}
|
|
110733
110764
|
}
|
|
110734
|
-
var import_node_crypto86, import_node_fs142,
|
|
110765
|
+
var import_node_crypto86, import_node_fs142, import_node_module20, import_node_path144, import_node_util18, recipe, strings4, building;
|
|
110735
110766
|
var init_react_native_core = __esm({
|
|
110736
110767
|
"src/react-native-core.ts"() {
|
|
110737
110768
|
"use strict";
|
|
110738
110769
|
import_node_crypto86 = require("node:crypto");
|
|
110739
110770
|
import_node_fs142 = __toESM(require("node:fs"), 1);
|
|
110740
|
-
|
|
110771
|
+
import_node_module20 = require("node:module");
|
|
110741
110772
|
import_node_path144 = __toESM(require("node:path"), 1);
|
|
110742
110773
|
import_node_util18 = require("node:util");
|
|
110743
110774
|
init_home_paths();
|
|
@@ -110750,7 +110781,7 @@ var init_react_native_core = __esm({
|
|
|
110750
110781
|
init_swift_distribution();
|
|
110751
110782
|
init_swift_package();
|
|
110752
110783
|
init_swiftContract();
|
|
110753
|
-
recipe = true ? "
|
|
110784
|
+
recipe = true ? "2e0302e75afcc89d7a2fcfb892b78f125d6f1ccf37b50bb950c86fd5db6db939" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
|
|
110754
110785
|
strings4 = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
|
|
110755
110786
|
building = /* @__PURE__ */ new Map();
|
|
110756
110787
|
}
|
|
@@ -111325,7 +111356,7 @@ function enrichInstalledUnits(units, installed2, namespaceGroups, provided, modu
|
|
|
111325
111356
|
const byPath = [...installedTargets].sort((a, b) => b.path.length - a.path.length);
|
|
111326
111357
|
const reactNativeRoot = import_node_fs144.default.realpathSync(
|
|
111327
111358
|
import_node_path146.default.dirname(
|
|
111328
|
-
(0,
|
|
111359
|
+
(0, import_node_module21.createRequire)(import_node_path146.default.join(workspaceAppRoot, "package.json")).resolve(
|
|
111329
111360
|
"react-native/package.json"
|
|
111330
111361
|
)
|
|
111331
111362
|
)
|
|
@@ -111778,7 +111809,7 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
|
|
|
111778
111809
|
signal?.throwIfAborted();
|
|
111779
111810
|
appRoot = import_node_fs144.default.realpathSync(appRoot);
|
|
111780
111811
|
const appConfig = await loadRNXAppConfig(resolveAppProject(appRoot));
|
|
111781
|
-
const appRequire = (0,
|
|
111812
|
+
const appRequire = (0, import_node_module21.createRequire)(import_node_path146.default.join(appRoot, "package.json"));
|
|
111782
111813
|
let expoRoot;
|
|
111783
111814
|
try {
|
|
111784
111815
|
expoRoot = import_node_path146.default.dirname(appRequire.resolve("expo/package.json"));
|
|
@@ -112908,7 +112939,7 @@ async function compileExpoSwiftModulesTraced(root, base2, publishArtifact, optio
|
|
|
112908
112939
|
const reactProvider = units.some((unit2) => unit2.reactNativeProvider) ? await (async () => {
|
|
112909
112940
|
const projectRoot = options2.installedWorkspace ? import_node_path146.default.dirname(import_node_path146.default.dirname(options2.installedWorkspace)) : (await prepareExpoNativeWorkspace(root, signal, options2.iosTarget)).app;
|
|
112910
112941
|
const reactNativeRoot = import_node_path146.default.dirname(
|
|
112911
|
-
(0,
|
|
112942
|
+
(0, import_node_module21.createRequire)(import_node_path146.default.join(projectRoot, "package.json")).resolve(
|
|
112912
112943
|
"react-native/package.json"
|
|
112913
112944
|
)
|
|
112914
112945
|
);
|
|
@@ -113378,7 +113409,7 @@ ${diagnostics}`}`
|
|
|
113378
113409
|
}
|
|
113379
113410
|
return true;
|
|
113380
113411
|
}
|
|
113381
|
-
var import_node_async_hooks4, import_node_child_process71, import_node_crypto88, import_node_fs144,
|
|
113412
|
+
var import_node_async_hooks4, import_node_child_process71, import_node_crypto88, import_node_fs144, import_node_module21, import_node_os31, import_node_path146, import_node_url7, import_node_util19, run12, scriptEnv, EXPO_SWIFT_ROUTE, EXPO_SWIFT_ENTRY, WITNESS_BATCH, traceStore, discoveryCache, preparedCache, savedFs, ignoredRoots, ownTemporaryRoots, EXPO_MODULE_SCAN_TIMEOUT_MS, preparedExpoSwift, openPreparations, ExpoSwiftLinkRefusal;
|
|
113382
113413
|
var init_expo_swift_host = __esm({
|
|
113383
113414
|
"src/expo-swift-host.ts"() {
|
|
113384
113415
|
"use strict";
|
|
@@ -113386,7 +113417,7 @@ var init_expo_swift_host = __esm({
|
|
|
113386
113417
|
import_node_child_process71 = require("node:child_process");
|
|
113387
113418
|
import_node_crypto88 = require("node:crypto");
|
|
113388
113419
|
import_node_fs144 = __toESM(require("node:fs"), 1);
|
|
113389
|
-
|
|
113420
|
+
import_node_module21 = require("node:module");
|
|
113390
113421
|
import_node_os31 = __toESM(require("node:os"), 1);
|
|
113391
113422
|
import_node_path146 = __toESM(require("node:path"), 1);
|
|
113392
113423
|
import_node_url7 = require("node:url");
|
|
@@ -118404,7 +118435,7 @@ public func peachOneSDK(_ pointer: UnsafePointer<UInt8>, _ length: Int32) -> Uns
|
|
|
118404
118435
|
// src/one-native-controls-package.ts
|
|
118405
118436
|
function resolveOneNativeAppleIosDir(appRoot) {
|
|
118406
118437
|
if (appRoot && import_node_fs154.default.existsSync(import_node_path157.default.join(appRoot, "package.json"))) {
|
|
118407
|
-
const appRequire = (0,
|
|
118438
|
+
const appRequire = (0, import_node_module22.createRequire)(import_node_path157.default.join(appRoot, "package.json"));
|
|
118408
118439
|
let oneManifest;
|
|
118409
118440
|
try {
|
|
118410
118441
|
oneManifest = appRequire.resolve("one/package.json");
|
|
@@ -118598,13 +118629,13 @@ async function oneNativeControlsPackage(appRoot, linkedGroups, sdk2) {
|
|
|
118598
118629
|
...oneSDKShards.size ? { oneSDKShards } : {}
|
|
118599
118630
|
};
|
|
118600
118631
|
}
|
|
118601
|
-
var import_node_crypto92, import_node_fs154,
|
|
118632
|
+
var import_node_crypto92, import_node_fs154, import_node_module22, import_node_path157, import_node_url8, ONE_SDK_DEFINES, BRIDGE_SWIFT, ONE_SDK_RUNTIME_SOURCES;
|
|
118602
118633
|
var init_one_native_controls_package = __esm({
|
|
118603
118634
|
"src/one-native-controls-package.ts"() {
|
|
118604
118635
|
"use strict";
|
|
118605
118636
|
import_node_crypto92 = require("node:crypto");
|
|
118606
118637
|
import_node_fs154 = __toESM(require("node:fs"), 1);
|
|
118607
|
-
|
|
118638
|
+
import_node_module22 = require("node:module");
|
|
118608
118639
|
import_node_path157 = __toESM(require("node:path"), 1);
|
|
118609
118640
|
import_node_url8 = require("node:url");
|
|
118610
118641
|
init_one_swift_control_source();
|
|
@@ -121642,7 +121673,7 @@ function loadKotlinSdk(moduleRoot, toolchain) {
|
|
|
121642
121673
|
}
|
|
121643
121674
|
function appKotlinLanguage(root) {
|
|
121644
121675
|
const reactNative = import_node_path169.default.dirname(
|
|
121645
|
-
(0,
|
|
121676
|
+
(0, import_node_module23.createRequire)(import_node_path169.default.join(root, "package.json")).resolve("react-native/package.json")
|
|
121646
121677
|
);
|
|
121647
121678
|
const versions = import_node_fs166.default.readFileSync(
|
|
121648
121679
|
import_node_path169.default.join(reactNative, "gradle", "libs.versions.toml"),
|
|
@@ -122793,14 +122824,14 @@ async function serveKotlinRequest(pathname, res, app) {
|
|
|
122793
122824
|
}
|
|
122794
122825
|
return true;
|
|
122795
122826
|
}
|
|
122796
|
-
var import_node_child_process78, import_node_crypto101, import_node_fs166,
|
|
122827
|
+
var import_node_child_process78, import_node_crypto101, import_node_fs166, import_node_module23, import_node_path169, import_node_util23, run16, KOTLIN_ARTIFACT_PREFIX, SKIP_DIRS, configureDeviceSource, BUILD_FORMAT, builds, toolScans, BRIDGE_PARAMETERS, BRIDGE_CASTS, BRIDGE_RETURNS, bridgeType, JAVA_CLASSES, argb, escapes2, literal3, CONTENT_TYPES;
|
|
122797
122828
|
var init_kotlin_host = __esm({
|
|
122798
122829
|
"src/kotlin-host.ts"() {
|
|
122799
122830
|
"use strict";
|
|
122800
122831
|
import_node_child_process78 = require("node:child_process");
|
|
122801
122832
|
import_node_crypto101 = require("node:crypto");
|
|
122802
122833
|
import_node_fs166 = __toESM(require("node:fs"), 1);
|
|
122803
|
-
|
|
122834
|
+
import_node_module23 = require("node:module");
|
|
122804
122835
|
import_node_path169 = __toESM(require("node:path"), 1);
|
|
122805
122836
|
import_node_util23 = require("node:util");
|
|
122806
122837
|
init_kotlinDiscoveryContract();
|
|
@@ -122940,7 +122971,7 @@ function send2(app, change) {
|
|
|
122940
122971
|
if (client2.readyState === import_ws2.WebSocket.OPEN) client2.send(message);
|
|
122941
122972
|
}
|
|
122942
122973
|
async function swiftPackages2(root) {
|
|
122943
|
-
const resolved = (0,
|
|
122974
|
+
const resolved = (0, import_node_module24.createRequire)(import_node_path170.default.join(root, "package.json")).resolve(
|
|
122944
122975
|
"vxrn/swift-package-id"
|
|
122945
122976
|
);
|
|
122946
122977
|
const loaded4 = await import((0, import_node_url9.pathToFileURL)(resolved).href);
|
|
@@ -123106,12 +123137,12 @@ function handleOneNativeSourceUpgrade(req, socket, head) {
|
|
|
123106
123137
|
});
|
|
123107
123138
|
return true;
|
|
123108
123139
|
}
|
|
123109
|
-
var import_node_fs167,
|
|
123140
|
+
var import_node_fs167, import_node_module24, import_node_path170, import_node_url9, import_node_util24, import_node_zlib11, import_ws2, apps, compressMetadata;
|
|
123110
123141
|
var init_one_native_source = __esm({
|
|
123111
123142
|
"src/one-native-source.ts"() {
|
|
123112
123143
|
"use strict";
|
|
123113
123144
|
import_node_fs167 = __toESM(require("node:fs"), 1);
|
|
123114
|
-
|
|
123145
|
+
import_node_module24 = require("node:module");
|
|
123115
123146
|
import_node_path170 = __toESM(require("node:path"), 1);
|
|
123116
123147
|
import_node_url9 = require("node:url");
|
|
123117
123148
|
import_node_util24 = require("node:util");
|
|
@@ -124434,7 +124465,7 @@ var init_nitro_compiler_digest = __esm({
|
|
|
124434
124465
|
|
|
124435
124466
|
// src/nitro-superset-inputs.ts
|
|
124436
124467
|
async function nitroSupersetInputs(options2) {
|
|
124437
|
-
const resolve11 = (0,
|
|
124468
|
+
const resolve11 = (0, import_node_module25.createRequire)((0, import_node_path178.join)(options2.appRoot, "package.json")).resolve;
|
|
124438
124469
|
const pin2 = swiftNativePin();
|
|
124439
124470
|
const inputs2 = {
|
|
124440
124471
|
configuration: options2.configuration,
|
|
@@ -124451,12 +124482,12 @@ async function nitroSupersetInputs(options2) {
|
|
|
124451
124482
|
inputs2[`provider:${name3}`] = `${packageVersion(root)}\0${await packageTreeDigest(root)}`;
|
|
124452
124483
|
return inputs2;
|
|
124453
124484
|
}
|
|
124454
|
-
var import_node_fs174,
|
|
124485
|
+
var import_node_fs174, import_node_module25, import_node_path178, packageVersion;
|
|
124455
124486
|
var init_nitro_superset_inputs = __esm({
|
|
124456
124487
|
"src/nitro-superset-inputs.ts"() {
|
|
124457
124488
|
"use strict";
|
|
124458
124489
|
import_node_fs174 = require("node:fs");
|
|
124459
|
-
|
|
124490
|
+
import_node_module25 = require("node:module");
|
|
124460
124491
|
import_node_path178 = require("node:path");
|
|
124461
124492
|
init_package_tree_digest();
|
|
124462
124493
|
init_swift_native_pin();
|
|
@@ -124563,7 +124594,7 @@ var init_nitro_superset = __esm({
|
|
|
124563
124594
|
init_nitroContract();
|
|
124564
124595
|
init_swift_standin_digest();
|
|
124565
124596
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
124566
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
124597
|
+
NITRO_COMPILER_DIGEST = true ? "b70bb01dee774bd0e8d8b4b3b061b909c0f840af3a94a190380b0335fc86103e" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
124567
124598
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
124568
124599
|
nitroSupersetKey = (inputs2) => nativeEntryKey({ ...inputs2, compiler: NITRO_COMPILER_DIGEST });
|
|
124569
124600
|
published3 = /* @__PURE__ */ new Map();
|
|
@@ -124742,7 +124773,7 @@ __export(expo_widgets_bundle_exports, {
|
|
|
124742
124773
|
handleExpoWidgetsRequest: () => handleExpoWidgetsRequest
|
|
124743
124774
|
});
|
|
124744
124775
|
async function buildExpoWidgetsBundle(appRoot, origin = "") {
|
|
124745
|
-
const require2 = (0,
|
|
124776
|
+
const require2 = (0, import_node_module26.createRequire)(import_node_path180.default.join(appRoot, "package.json"));
|
|
124746
124777
|
let manifest;
|
|
124747
124778
|
try {
|
|
124748
124779
|
manifest = require2.resolve("expo-widgets/package.json");
|
|
@@ -124771,13 +124802,13 @@ async function buildExpoWidgetsBundle(appRoot, origin = "") {
|
|
|
124771
124802
|
}
|
|
124772
124803
|
};
|
|
124773
124804
|
}
|
|
124774
|
-
var import_node_child_process79, import_promises19,
|
|
124805
|
+
var import_node_child_process79, import_promises19, import_node_module26, import_node_path180, import_node_util25, EXPO_WIDGETS_ROUTE, handleExpoWidgetsRequest;
|
|
124775
124806
|
var init_expo_widgets_bundle = __esm({
|
|
124776
124807
|
"src/expo-widgets-bundle.ts"() {
|
|
124777
124808
|
"use strict";
|
|
124778
124809
|
import_node_child_process79 = require("node:child_process");
|
|
124779
124810
|
import_promises19 = __toESM(require("node:fs/promises"), 1);
|
|
124780
|
-
|
|
124811
|
+
import_node_module26 = require("node:module");
|
|
124781
124812
|
import_node_path180 = __toESM(require("node:path"), 1);
|
|
124782
124813
|
import_node_util25 = require("node:util");
|
|
124783
124814
|
init_expo_widget_assets();
|
|
@@ -125055,7 +125086,7 @@ async function compileTurboApp(appRoot, origin, moduleRoot, iosTarget, prepareRe
|
|
|
125055
125086
|
const { artifact, collection } = await compileTurboModule({
|
|
125056
125087
|
appRoot,
|
|
125057
125088
|
reactNativeRoot: import_node_path182.default.dirname(
|
|
125058
|
-
(0,
|
|
125089
|
+
(0, import_node_module27.createRequire)(import_node_path182.default.join(projectRoot, "package.json")).resolve(
|
|
125059
125090
|
"react-native/package.json"
|
|
125060
125091
|
)
|
|
125061
125092
|
),
|
|
@@ -125094,11 +125125,11 @@ async function buildTurboBundle(appRoot, moduleRoot, prepareReactNativeCore) {
|
|
|
125094
125125
|
assets: compiled.artifact ? await compiledModuleAssets(compiled.artifact) : []
|
|
125095
125126
|
};
|
|
125096
125127
|
}
|
|
125097
|
-
var
|
|
125128
|
+
var import_node_module27, import_node_path182, TURBO_ROUTE, handleTurboRequest;
|
|
125098
125129
|
var init_turbo_bundle = __esm({
|
|
125099
125130
|
"src/turbo-bundle.ts"() {
|
|
125100
125131
|
"use strict";
|
|
125101
|
-
|
|
125132
|
+
import_node_module27 = require("node:module");
|
|
125102
125133
|
import_node_path182 = __toESM(require("node:path"), 1);
|
|
125103
125134
|
init_app_project();
|
|
125104
125135
|
init_app_config();
|
|
@@ -125165,7 +125196,7 @@ async function resolveExpoAndroidAutolinking(appRoot) {
|
|
|
125165
125196
|
async function resolveAndroidModules(appRoot) {
|
|
125166
125197
|
let autolinker;
|
|
125167
125198
|
try {
|
|
125168
|
-
autolinker = (0,
|
|
125199
|
+
autolinker = (0, import_node_module28.createRequire)(import_node_path183.default.join(appRoot, "package.json")).resolve(
|
|
125169
125200
|
"expo-modules-autolinking/package.json"
|
|
125170
125201
|
);
|
|
125171
125202
|
} catch (error) {
|
|
@@ -125219,12 +125250,12 @@ async function resolveReactNativeAndroidAutolinking(appRoot) {
|
|
|
125219
125250
|
}
|
|
125220
125251
|
return linked;
|
|
125221
125252
|
}
|
|
125222
|
-
var import_node_fs177,
|
|
125253
|
+
var import_node_fs177, import_node_module28, import_node_path183, resolving;
|
|
125223
125254
|
var init_android_autolinking = __esm({
|
|
125224
125255
|
"src/android-autolinking.ts"() {
|
|
125225
125256
|
"use strict";
|
|
125226
125257
|
import_node_fs177 = __toESM(require("node:fs"), 1);
|
|
125227
|
-
|
|
125258
|
+
import_node_module28 = require("node:module");
|
|
125228
125259
|
import_node_path183 = __toESM(require("node:path"), 1);
|
|
125229
125260
|
init_androidAutolinkingContract();
|
|
125230
125261
|
init_autolinker_process();
|