peachsim 0.1.1978 → 0.1.1980
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/cli/commands/inspect.ts +6 -2
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +134 -35
- 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 +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +133 -34
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +134 -35
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- 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 +1 -1
- package/dist-lib/index.cjs +1 -1
- 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 +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +1 -1
- package/dist-lib/native-app-identity-project.cjs +1 -1
- package/dist-lib/native-app-identity-project.mjs +1 -1
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +24 -24
- package/dist-lib/public-origins-lib.json +53 -53
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- 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 +1 -1
- package/dist-lib/skills.cjs +134 -35
- package/dist-lib/swift-compile.cjs +1 -1
- package/dist-lib/swift-compile.mjs +1 -1
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +1 -1
- package/dist-lib/vite.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/package.json +1 -1
- package/src/expo-discovery-cache.ts +2 -0
- package/src/expo-native-workspace.ts +4 -1
- package/src/expo-swift-host.ts +144 -31
- package/src/expoSwiftContract.ts +1 -0
package/dist-lib/sdk.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1980 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1980 | (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;
|
|
@@ -62577,7 +62577,7 @@ async function hashWorkspaceInputs(app, everyByte, signal, sourceOnly = false, p
|
|
|
62577
62577
|
}).join("\n");
|
|
62578
62578
|
};
|
|
62579
62579
|
const steersNative = (relative5) => !relative5.includes(import_node_path58.default.sep) || relative5.startsWith(`patches${import_node_path58.default.sep}`) || nativeDirectories.some(
|
|
62580
|
-
(directory2) => relative5 === directory2 || relative5.startsWith(directory2 + import_node_path58.default.sep)
|
|
62580
|
+
(directory2) => directory2 === "" || relative5 === directory2 || relative5.startsWith(directory2 + import_node_path58.default.sep)
|
|
62581
62581
|
);
|
|
62582
62582
|
const walk3 = async (directory2) => {
|
|
62583
62583
|
const entries = await import_node_fs59.default.promises.readdir(directory2, { withFileTypes: true });
|
|
@@ -63157,10 +63157,10 @@ function sharedDir() {
|
|
|
63157
63157
|
return import_node_path59.default.join((0, import_node_os16.homedir)(), ".peach", "cache", "expo-discovery");
|
|
63158
63158
|
}
|
|
63159
63159
|
function isExpoSwiftSourceUnit(value) {
|
|
63160
|
-
return isRecord(value) && typeof value.namespace === "string" && typeof value.moduleId === "string" && (value.nativeAppIdentity === void 0 || isNativeAppIdentity(value.nativeAppIdentity)) && strings(value.classes) && strings(value.bridgeModules) && strings(value.appDelegateSubscribers) && strings(value.reactDelegateHandlers) && stringRecord(value.files) && strings(value.frameworks) && (value.nativeTargets === void 0 || Array.isArray(value.nativeTargets) && value.nativeTargets.every(isRecord)) && (value.nativeFiles === void 0 || stringRecord(value.nativeFiles)) && (value.resources === void 0 || stringRecord(value.resources)) && (value.resourceBundles === void 0 || isSwiftResourceBundles(value.resourceBundles)) && (value.swiftLanguageMode === void 0 || typeof value.swiftLanguageMode === "number");
|
|
63160
|
+
return isRecord(value) && typeof value.namespace === "string" && typeof value.moduleId === "string" && (value.nativeAppIdentity === void 0 || isNativeAppIdentity(value.nativeAppIdentity)) && strings(value.classes) && strings(value.bridgeModules) && strings(value.appDelegateSubscribers) && strings(value.reactDelegateHandlers) && stringRecord(value.files) && strings(value.frameworks) && (value.workspaceSources === void 0 || strings(value.workspaceSources)) && (value.nativeTargets === void 0 || Array.isArray(value.nativeTargets) && value.nativeTargets.every(isRecord)) && (value.nativeFiles === void 0 || stringRecord(value.nativeFiles)) && (value.resources === void 0 || stringRecord(value.resources)) && (value.resourceBundles === void 0 || isSwiftResourceBundles(value.resourceBundles)) && (value.swiftLanguageMode === void 0 || typeof value.swiftLanguageMode === "number");
|
|
63161
63161
|
}
|
|
63162
63162
|
function isStoredUnit(value) {
|
|
63163
|
-
return isRecord(value) && typeof value.namespace === "string" && typeof value.moduleId === "string" && strings(value.classes) && strings(value.bridgeModules) && strings(value.appDelegateSubscribers) && strings(value.reactDelegateHandlers) && digestRecord(value.files) && strings(value.frameworks) && (value.nativeTargets === void 0 || strings(value.nativeTargets) && value.nativeTargets.every(isDigest)) && (value.nativeFiles === void 0 || digestRecord(value.nativeFiles)) && (value.resources === void 0 || digestRecord(value.resources)) && (value.resourceBundles === void 0 || isSwiftResourceBundles(value.resourceBundles)) && (value.swiftLanguageMode === void 0 || typeof value.swiftLanguageMode === "number");
|
|
63163
|
+
return isRecord(value) && typeof value.namespace === "string" && typeof value.moduleId === "string" && strings(value.classes) && strings(value.bridgeModules) && strings(value.appDelegateSubscribers) && strings(value.reactDelegateHandlers) && digestRecord(value.files) && strings(value.frameworks) && (value.workspaceSources === void 0 || strings(value.workspaceSources)) && (value.nativeTargets === void 0 || strings(value.nativeTargets) && value.nativeTargets.every(isDigest)) && (value.nativeFiles === void 0 || digestRecord(value.nativeFiles)) && (value.resources === void 0 || digestRecord(value.resources)) && (value.resourceBundles === void 0 || isSwiftResourceBundles(value.resourceBundles)) && (value.swiftLanguageMode === void 0 || typeof value.swiftLanguageMode === "number");
|
|
63164
63164
|
}
|
|
63165
63165
|
function readExpoDiscovery(key2) {
|
|
63166
63166
|
let parsed;
|
|
@@ -64309,7 +64309,7 @@ var init_expo_native_prebuilt = __esm({
|
|
|
64309
64309
|
init_swift_native_pin();
|
|
64310
64310
|
init_xcode_project();
|
|
64311
64311
|
EXPO_NATIVE_ENTRY_NAME = "ios";
|
|
64312
|
-
EXPO_NATIVE_COMPILER_DIGEST = true ? "
|
|
64312
|
+
EXPO_NATIVE_COMPILER_DIGEST = true ? "9b0c766d8fabc5a17b7a5192068af220bfdd1fdb80b28a47c3f3432a2409376b" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
64313
64313
|
IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
|
|
64314
64314
|
expoNativeEntryUrl = (key2, file) => `${NATIVE_PREBUILT_ORIGIN}/${nativeEntryPrefix("expo", EXPO_NATIVE_ENTRY_NAME, key2)}/${file}`;
|
|
64315
64315
|
isStringRecord = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
|
|
@@ -79321,11 +79321,16 @@ function cloneUnits(units) {
|
|
|
79321
79321
|
appDelegateSubscribers: unit2.appDelegateSubscribers.slice(),
|
|
79322
79322
|
reactDelegateHandlers: unit2.reactDelegateHandlers.slice(),
|
|
79323
79323
|
frameworks: unit2.frameworks.slice(),
|
|
79324
|
+
...unit2.workspaceSources ? { workspaceSources: unit2.workspaceSources.slice() } : {},
|
|
79324
79325
|
files: { ...unit2.files },
|
|
79325
79326
|
...unit2.nativeFiles ? { nativeFiles: { ...unit2.nativeFiles } } : {},
|
|
79326
79327
|
...unit2.headerAliases ? { headerAliases: { ...unit2.headerAliases } } : {},
|
|
79327
79328
|
...unit2.resources ? { resources: { ...unit2.resources } } : {},
|
|
79328
|
-
...unit2.resourceBundles ? {
|
|
79329
|
+
...unit2.resourceBundles ? {
|
|
79330
|
+
resourceBundles: unit2.resourceBundles.map((bundle) => ({
|
|
79331
|
+
...bundle
|
|
79332
|
+
}))
|
|
79333
|
+
} : {},
|
|
79329
79334
|
...unit2.nativeTargets ? { nativeTargets: unit2.nativeTargets.map(cloneNativeTarget) } : {}
|
|
79330
79335
|
}));
|
|
79331
79336
|
}
|
|
@@ -79768,24 +79773,40 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
|
|
|
79768
79773
|
installed2?.input.files["Package.swift"] ?? ""
|
|
79769
79774
|
);
|
|
79770
79775
|
const units = [];
|
|
79776
|
+
const dependencyUnits = [];
|
|
79777
|
+
const processed = /* @__PURE__ */ new Set();
|
|
79771
79778
|
const namespacesSeen = /* @__PURE__ */ new Set();
|
|
79772
79779
|
const namespaceGroups = /* @__PURE__ */ new Map();
|
|
79773
79780
|
let answeredInstalled = false;
|
|
79774
79781
|
let needsNativeWorkspace = false;
|
|
79775
79782
|
let bytes = 0;
|
|
79776
79783
|
let fileCount = 0;
|
|
79777
|
-
|
|
79778
|
-
|
|
79779
|
-
))
|
|
79784
|
+
const entries = Object.entries(search).sort(([a], [b]) => a.localeCompare(b));
|
|
79785
|
+
const queue2 = entries.slice();
|
|
79786
|
+
const queued = new Set(entries.map(([name3]) => name3));
|
|
79787
|
+
const reconsider = () => {
|
|
79788
|
+
for (const entry of entries)
|
|
79789
|
+
if (!processed.has(entry[0]) && !queued.has(entry[0])) {
|
|
79790
|
+
queue2.push(entry);
|
|
79791
|
+
queued.add(entry[0]);
|
|
79792
|
+
}
|
|
79793
|
+
};
|
|
79794
|
+
for (const [packageName, entry] of queue2) {
|
|
79795
|
+
queued.delete(packageName);
|
|
79796
|
+
if (processed.has(packageName)) continue;
|
|
79780
79797
|
if (!entry || typeof entry !== "object")
|
|
79781
79798
|
throw new Error("invalid Expo autolinking entry");
|
|
79782
79799
|
const sourceRoot = Reflect.get(entry, "path");
|
|
79783
79800
|
if (typeof sourceRoot !== "string")
|
|
79784
79801
|
throw new Error("Expo autolinking entry has no path");
|
|
79785
79802
|
const canonical = import_node_fs84.default.realpathSync(sourceRoot);
|
|
79786
|
-
|
|
79803
|
+
const answered2 = canonical.split(import_node_path82.default.sep).includes("node_modules") && peachAnsweredNativePackages().has(packageName);
|
|
79804
|
+
if (answered2) {
|
|
79787
79805
|
answeredInstalled = true;
|
|
79788
|
-
|
|
79806
|
+
if (installed2 || prepareNative) {
|
|
79807
|
+
processed.add(packageName);
|
|
79808
|
+
continue;
|
|
79809
|
+
}
|
|
79789
79810
|
}
|
|
79790
79811
|
for (const name3 of ["expo-module.config.json", "unimodule.json"]) {
|
|
79791
79812
|
const descriptor = import_node_path82.default.join(canonical, name3);
|
|
@@ -79812,8 +79833,21 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
|
|
|
79812
79833
|
const subscriberNames = delegateNames("appDelegateSubscribers");
|
|
79813
79834
|
const handlerNames = delegateNames("reactDelegateHandlers");
|
|
79814
79835
|
const deferredToWorkspace = prepareNative && !installedWorkspace && Array.isArray(pods) && pods.length > 0;
|
|
79815
|
-
|
|
79816
|
-
|
|
79836
|
+
const dependencyOnly = answered2 || (!Array.isArray(modules) || modules.length === 0) && subscriberNames.length === 0 && handlerNames.length === 0;
|
|
79837
|
+
if (dependencyOnly) {
|
|
79838
|
+
if (installed2 || prepareNative || !Array.isArray(namespaces)) {
|
|
79839
|
+
processed.add(packageName);
|
|
79840
|
+
continue;
|
|
79841
|
+
}
|
|
79842
|
+
const imports2 = new Set(
|
|
79843
|
+
[...units, ...dependencyUnits].flatMap(
|
|
79844
|
+
(unit2) => Object.values(unit2.files).flatMap((source) => swiftImportNames(source))
|
|
79845
|
+
)
|
|
79846
|
+
);
|
|
79847
|
+
if (!namespaces.some((name3) => typeof name3 === "string" && imports2.has(name3)))
|
|
79848
|
+
continue;
|
|
79849
|
+
}
|
|
79850
|
+
processed.add(packageName);
|
|
79817
79851
|
if (!Array.isArray(namespaces) || namespaces.length === 0 || !namespaces.every(
|
|
79818
79852
|
(name3) => typeof name3 === "string" && /^[A-Za-z_][A-Za-z0-9_]*$/.test(name3)
|
|
79819
79853
|
))
|
|
@@ -79824,9 +79858,10 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
|
|
|
79824
79858
|
}
|
|
79825
79859
|
if (namespaces.length > 1 && !installed2) {
|
|
79826
79860
|
if (!nativeWorkspaceAvailable()) {
|
|
79827
|
-
|
|
79828
|
-
|
|
79829
|
-
|
|
79861
|
+
if (!answered2)
|
|
79862
|
+
report(
|
|
79863
|
+
`${packageName}: ${namespaces.join(", ")} need CocoaPods target membership, which only a Mac prepares; not compiled`
|
|
79864
|
+
);
|
|
79830
79865
|
continue;
|
|
79831
79866
|
}
|
|
79832
79867
|
const prepared = await prepareExpoNativeWorkspace(appRoot, signal, iosTarget);
|
|
@@ -79919,8 +79954,13 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
|
|
|
79919
79954
|
walk3(file, binary2 || framework);
|
|
79920
79955
|
continue;
|
|
79921
79956
|
}
|
|
79922
|
-
if (!binary2 && target.isFile() && /\.(?:mm?|c|cc|cpp)$/.test(child.name))
|
|
79923
|
-
|
|
79957
|
+
if (!binary2 && target.isFile() && /\.(?:mm?|c|cc|cpp)$/.test(child.name)) {
|
|
79958
|
+
const source2 = linked ?? resolveSource(file);
|
|
79959
|
+
if (import_node_fs84.default.statSync(source2).size > 4096 || !/^(?:\s|\/\/[^\n]*|\/\*[\s\S]*?\*\/)*$/.test(
|
|
79960
|
+
import_node_fs84.default.readFileSync(source2, "utf8")
|
|
79961
|
+
))
|
|
79962
|
+
nativeSources.add(import_node_path82.default.relative(ios, file));
|
|
79963
|
+
}
|
|
79924
79964
|
if (!target.isFile() || !child.name.endsWith(".swift")) continue;
|
|
79925
79965
|
const source = linked ?? resolveSource(file);
|
|
79926
79966
|
if (sources.has(source)) continue;
|
|
@@ -79997,6 +80037,24 @@ ${import_node_fs84.default.readFileSync(source, "utf8")}`;
|
|
|
79997
80037
|
const podspecFloor = podspec ? /\.platforms\s*=\s*\{\s*:ios\s*=>\s*['"](\d+(?:\.\d+){0,2})['"]/.exec(
|
|
79998
80038
|
import_node_fs84.default.readFileSync(import_node_path82.default.join(ios, podspec), "utf8")
|
|
79999
80039
|
)?.[1] : void 0;
|
|
80040
|
+
if (dependencyOnly && Object.keys(files2).length > 0) {
|
|
80041
|
+
dependencyUnits.push({
|
|
80042
|
+
namespace,
|
|
80043
|
+
moduleId: namespace,
|
|
80044
|
+
classes: [],
|
|
80045
|
+
bridgeModules: [],
|
|
80046
|
+
appDelegateSubscribers: [],
|
|
80047
|
+
reactDelegateHandlers: [],
|
|
80048
|
+
files: files2,
|
|
80049
|
+
frameworks: [...frameworks],
|
|
80050
|
+
...nativeSources.size ? { workspaceSources: [namespace] } : {},
|
|
80051
|
+
...podspecFloor ? {
|
|
80052
|
+
nativeTargets: [synthesizedNativeTarget(namespace, podspecFloor)]
|
|
80053
|
+
} : {}
|
|
80054
|
+
});
|
|
80055
|
+
reconsider();
|
|
80056
|
+
}
|
|
80057
|
+
if (dependencyOnly) continue;
|
|
80000
80058
|
for (const declaration of declarations) {
|
|
80001
80059
|
const className = declaration.reference;
|
|
80002
80060
|
const owner = className.split(".")[0];
|
|
@@ -80029,10 +80087,13 @@ ${import_node_fs84.default.readFileSync(source, "utf8")}`;
|
|
|
80029
80087
|
files: closure,
|
|
80030
80088
|
frameworks: [...frameworks],
|
|
80031
80089
|
...absentFrameworks.length > 0 ? { absentFrameworks } : {},
|
|
80032
|
-
...podspecFloor ? {
|
|
80090
|
+
...podspecFloor ? {
|
|
80091
|
+
nativeTargets: [synthesizedNativeTarget(namespace, podspecFloor)]
|
|
80092
|
+
} : {}
|
|
80033
80093
|
};
|
|
80034
80094
|
unit2.files[EXPO_SWIFT_ENTRY] = expoEntry([unit2]);
|
|
80035
80095
|
units.push(unit2);
|
|
80096
|
+
reconsider();
|
|
80036
80097
|
}
|
|
80037
80098
|
}
|
|
80038
80099
|
if (namespaces.length > 1) {
|
|
@@ -80149,23 +80210,26 @@ ${import_node_fs84.default.readFileSync(file, "utf8")}`;
|
|
|
80149
80210
|
);
|
|
80150
80211
|
const allFiles = Object.assign(
|
|
80151
80212
|
{},
|
|
80152
|
-
...units.map((unit2) => unit2.files)
|
|
80213
|
+
...[...units, ...dependencyUnits].map((unit2) => unit2.files)
|
|
80153
80214
|
);
|
|
80154
|
-
const targets = [
|
|
80215
|
+
const targets = [
|
|
80216
|
+
...new Set([...units, ...dependencyUnits].map((unit2) => unit2.namespace))
|
|
80217
|
+
].map((namespace) => ({
|
|
80155
80218
|
name: namespace,
|
|
80156
80219
|
path: `Sources/${namespace}`
|
|
80157
80220
|
}));
|
|
80158
80221
|
const dependencies = swiftTargetDependencies(allFiles, targets);
|
|
80159
80222
|
const byNamespace = /* @__PURE__ */ new Map();
|
|
80160
|
-
for (const unit2 of units) {
|
|
80161
|
-
const
|
|
80162
|
-
|
|
80163
|
-
byNamespace.set(unit2.namespace,
|
|
80223
|
+
for (const unit2 of [...units, ...dependencyUnits]) {
|
|
80224
|
+
const entries2 = byNamespace.get(unit2.namespace) ?? [];
|
|
80225
|
+
entries2.push(unit2);
|
|
80226
|
+
byNamespace.set(unit2.namespace, entries2);
|
|
80164
80227
|
}
|
|
80165
80228
|
for (const unit2 of units) {
|
|
80166
80229
|
const included = /* @__PURE__ */ new Set([unit2.namespace]);
|
|
80230
|
+
const ownDependencies = swiftTargetDependencies(unit2.files, targets).get(unit2.namespace) ?? [];
|
|
80167
80231
|
const visit3 = (namespace) => {
|
|
80168
|
-
for (const dependency of dependencies.get(namespace) ?? []) {
|
|
80232
|
+
for (const dependency of namespace === unit2.namespace ? ownDependencies : dependencies.get(namespace) ?? []) {
|
|
80169
80233
|
if (!byNamespace.has(dependency) || included.has(dependency)) continue;
|
|
80170
80234
|
included.add(dependency);
|
|
80171
80235
|
visit3(dependency);
|
|
@@ -80182,6 +80246,12 @@ ${import_node_fs84.default.readFileSync(file, "utf8")}`;
|
|
|
80182
80246
|
...dependency.flatMap((item) => item.frameworks)
|
|
80183
80247
|
])
|
|
80184
80248
|
];
|
|
80249
|
+
unit2.workspaceSources = [
|
|
80250
|
+
.../* @__PURE__ */ new Set([
|
|
80251
|
+
...unit2.workspaceSources ?? [],
|
|
80252
|
+
...dependency.flatMap((item) => item.workspaceSources ?? [])
|
|
80253
|
+
])
|
|
80254
|
+
];
|
|
80185
80255
|
unit2.nativeTargets = [
|
|
80186
80256
|
...new Map(
|
|
80187
80257
|
[
|
|
@@ -80204,11 +80274,19 @@ ${import_node_fs84.default.readFileSync(file, "utf8")}`;
|
|
|
80204
80274
|
if (name3.startsWith(`Sources/${namespace}/`)) unit2.files[name3] = source;
|
|
80205
80275
|
}
|
|
80206
80276
|
}
|
|
80207
|
-
|
|
80208
|
-
|
|
80209
|
-
"",
|
|
80210
|
-
targetSettings2([...included].flatMap((namespace) => byNamespace.get(namespace)))
|
|
80277
|
+
const settings = targetSettings2(
|
|
80278
|
+
[...included].flatMap((namespace) => byNamespace.get(namespace))
|
|
80211
80279
|
);
|
|
80280
|
+
if (!installed2)
|
|
80281
|
+
for (const namespace of included)
|
|
80282
|
+
settings.set(namespace, {
|
|
80283
|
+
languageMode: 5,
|
|
80284
|
+
mainActorIsolation: false,
|
|
80285
|
+
resources: false,
|
|
80286
|
+
...settings.get(namespace),
|
|
80287
|
+
dependencies: (namespace === unit2.namespace ? ownDependencies : dependencies.get(namespace) ?? []).filter((name3) => included.has(name3)).map((name3) => ({ kind: "target", name: name3 }))
|
|
80288
|
+
});
|
|
80289
|
+
unit2.files["Package.swift"] = expoManifest(unit2.files, "", settings);
|
|
80212
80290
|
}
|
|
80213
80291
|
if (nativeAppIdentity)
|
|
80214
80292
|
for (const unit2 of units) unit2.nativeAppIdentity = nativeAppIdentity;
|
|
@@ -80247,8 +80325,21 @@ let package = Package(name: "PeachExpo", targets: [${declarations.join(", ")}, .
|
|
|
80247
80325
|
function targetSettings2(units) {
|
|
80248
80326
|
const settings = /* @__PURE__ */ new Map();
|
|
80249
80327
|
for (const unit2 of units) {
|
|
80250
|
-
for (const target of swiftManifestTargets(unit2.files["Package.swift"] ?? ""))
|
|
80251
|
-
settings.
|
|
80328
|
+
for (const target of swiftManifestTargets(unit2.files["Package.swift"] ?? "")) {
|
|
80329
|
+
const previous = settings.get(target.name);
|
|
80330
|
+
const dependencies = [
|
|
80331
|
+
...previous?.dependencies ?? [],
|
|
80332
|
+
...target.dependencies ?? []
|
|
80333
|
+
];
|
|
80334
|
+
settings.set(target.name, {
|
|
80335
|
+
...target,
|
|
80336
|
+
dependencies: [
|
|
80337
|
+
...new Map(
|
|
80338
|
+
dependencies.map((dependency) => [JSON.stringify(dependency), dependency])
|
|
80339
|
+
).values()
|
|
80340
|
+
]
|
|
80341
|
+
});
|
|
80342
|
+
}
|
|
80252
80343
|
if (unit2.swiftLanguageMode !== void 0)
|
|
80253
80344
|
settings.set(unit2.namespace, {
|
|
80254
80345
|
...settings.get(unit2.namespace),
|
|
@@ -80605,7 +80696,11 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
|
|
|
80605
80696
|
projectFor(packagePath).nativeFiles = unit2.nativeFiles;
|
|
80606
80697
|
projectFor(packagePath).headerAliases = unit2.headerAliases;
|
|
80607
80698
|
projectFor(packagePath).resourceBundles = unit2.resourceBundles;
|
|
80608
|
-
projectFor(packagePath).bundleFiles = unit2.resources ? {
|
|
80699
|
+
projectFor(packagePath).bundleFiles = unit2.resources ? {
|
|
80700
|
+
files: unit2.resources,
|
|
80701
|
+
bundles: unit2.resourceBundles ?? [],
|
|
80702
|
+
watched: []
|
|
80703
|
+
} : void 0;
|
|
80609
80704
|
const stamp = sourceContentStamp(packagePath, module2.root);
|
|
80610
80705
|
const failed = readFailedCompilation(packagePath);
|
|
80611
80706
|
if (failed?.stamp === stamp) {
|
|
@@ -80781,8 +80876,12 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
|
|
|
80781
80876
|
linked.push(unit2);
|
|
80782
80877
|
} catch (error) {
|
|
80783
80878
|
signal.throwIfAborted();
|
|
80879
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
80880
|
+
const missingImports = [...message.matchAll(/^ (\S+)/gm)].map(
|
|
80881
|
+
(match) => match[1]
|
|
80882
|
+
);
|
|
80784
80883
|
const diagnostic = [
|
|
80785
|
-
error instanceof
|
|
80884
|
+
error instanceof SwiftMissingModulesError && unit2.workspaceSources?.length ? `${unit2.workspaceSources.map((name3) => `${name3} needs a Mac-prepared workspace`).join("; ")}; unresolved imports: ${missingImports.join(", ")}` : message,
|
|
80786
80885
|
...gaps.get(unit2) ?? []
|
|
80787
80886
|
].join("\n");
|
|
80788
80887
|
const unitFiles = [...Object.keys(unit2.files), ...expoUnitAppPaths(unit2)];
|
|
@@ -82653,7 +82752,7 @@ var init_nitro_superset = __esm({
|
|
|
82653
82752
|
init_swift_standin_digest();
|
|
82654
82753
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
82655
82754
|
packageVersion = (root) => JSON.parse((0, import_node_fs92.readFileSync)((0, import_node_path90.join)(root, "package.json"), "utf8")).version;
|
|
82656
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
82755
|
+
NITRO_COMPILER_DIGEST = true ? "45f5d8b518551c075d45327cab35942090fc26d4bd0c13137960037eb0c6ac68" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
82657
82756
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
82658
82757
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
82659
82758
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1980 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1980 | (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 __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1980 | (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 __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1980 | (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;
|
package/dist-lib/swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1980 | (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 __defProp = Object.defineProperty;
|
package/dist-lib/vite-swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1980 | (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;
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1980 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1980 | (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 __defProp = Object.defineProperty;
|
package/package.json
CHANGED
|
@@ -124,6 +124,7 @@ function isExpoSwiftSourceUnit(value: unknown): value is ExpoSwiftSourceUnit {
|
|
|
124
124
|
strings(value.reactDelegateHandlers) &&
|
|
125
125
|
stringRecord(value.files) &&
|
|
126
126
|
strings(value.frameworks) &&
|
|
127
|
+
(value.workspaceSources === undefined || strings(value.workspaceSources)) &&
|
|
127
128
|
(value.nativeTargets === undefined ||
|
|
128
129
|
(Array.isArray(value.nativeTargets) && value.nativeTargets.every(isRecord))) &&
|
|
129
130
|
(value.nativeFiles === undefined || stringRecord(value.nativeFiles)) &&
|
|
@@ -161,6 +162,7 @@ function isStoredUnit(value: unknown): value is StoredExpoSwiftSourceUnit {
|
|
|
161
162
|
strings(value.reactDelegateHandlers) &&
|
|
162
163
|
digestRecord(value.files) &&
|
|
163
164
|
strings(value.frameworks) &&
|
|
165
|
+
(value.workspaceSources === undefined || strings(value.workspaceSources)) &&
|
|
164
166
|
(value.nativeTargets === undefined ||
|
|
165
167
|
(strings(value.nativeTargets) && value.nativeTargets.every(isDigest))) &&
|
|
166
168
|
(value.nativeFiles === undefined || digestRecord(value.nativeFiles)) &&
|
|
@@ -261,7 +261,10 @@ async function hashWorkspaceInputs(
|
|
|
261
261
|
!relative.includes(path.sep) ||
|
|
262
262
|
relative.startsWith(`patches${path.sep}`) ||
|
|
263
263
|
nativeDirectories.some(
|
|
264
|
-
(directory) =>
|
|
264
|
+
(directory) =>
|
|
265
|
+
directory === '' ||
|
|
266
|
+
relative === directory ||
|
|
267
|
+
relative.startsWith(directory + path.sep),
|
|
265
268
|
)
|
|
266
269
|
const walk = async (directory: string) => {
|
|
267
270
|
const entries = await fs.promises.readdir(directory, { withFileTypes: true })
|