peachsim 0.1.1979 → 0.1.1982
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 +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 +155 -39
- 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 +154 -38
- 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 +155 -39
- 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 +2 -2
- 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 +2 -2
- package/dist-lib/native-app-identity-project.cjs +2 -2
- package/dist-lib/native-app-identity-project.mjs +2 -2
- 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 +155 -39
- package/dist-lib/swift-compile.cjs +22 -5
- package/dist-lib/swift-compile.mjs +22 -5
- 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 +23 -6
- package/dist-lib/vite.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/engine/visible-frame.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/nodeContract.d.ts +1 -0
- package/package.json +1 -1
- package/src/expo-discovery-cache.ts +2 -0
- package/src/expo-swift-host.ts +144 -31
- package/src/expoSwiftContract.ts +1 -0
- package/src/swift-compile.ts +21 -2
package/dist-lib/sdk.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1982 | (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/sdk.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1982 | (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.1982 | (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;
|
|
@@ -53004,7 +53004,7 @@ function swiftModuleDigest(root) {
|
|
|
53004
53004
|
return digest3;
|
|
53005
53005
|
}
|
|
53006
53006
|
function swiftProjectBuildKey(moduleRoot, release) {
|
|
53007
|
-
return (0, import_node_crypto23.createHash)("sha256").update(
|
|
53007
|
+
return (0, import_node_crypto23.createHash)("sha256").update(`swift-framework/v2\0${release}\0${swiftModuleSdk(moduleRoot).wasmSdkId}`).update(swiftModuleDigest(moduleRoot)).digest("hex").slice(0, 32);
|
|
53008
53008
|
}
|
|
53009
53009
|
function compileTargets(input) {
|
|
53010
53010
|
const manifest = input.files["Package.swift"];
|
|
@@ -56571,7 +56571,7 @@ function mirrorTree2(source, target, skip) {
|
|
|
56571
56571
|
if (!wanted.has(name3) && name3 !== skip)
|
|
56572
56572
|
(0, import_node_fs49.rmSync)(import_node_path47.default.join(target, name3), { recursive: true, force: true });
|
|
56573
56573
|
}
|
|
56574
|
-
function stageFrameworkSource(moduleRoot, slot, frameworkKey) {
|
|
56574
|
+
function stageFrameworkSource(moduleRoot, slot, frameworkKey, release) {
|
|
56575
56575
|
if (!slot) return moduleRoot;
|
|
56576
56576
|
const staged = import_node_path47.default.join(slot, "source");
|
|
56577
56577
|
const stagedModule = import_node_path47.default.join(staged, "packages", import_node_path47.default.basename(moduleRoot));
|
|
@@ -56582,6 +56582,16 @@ function stageFrameworkSource(moduleRoot, slot, frameworkKey) {
|
|
|
56582
56582
|
swiftSharedSdkRoot(moduleRoot, false),
|
|
56583
56583
|
import_node_path47.default.join(staged, "packages/peachsim/sdk/ios")
|
|
56584
56584
|
);
|
|
56585
|
+
for (const file of swiftModuleInputFiles(moduleRoot)) {
|
|
56586
|
+
if (!file.startsWith("../")) continue;
|
|
56587
|
+
const from = import_node_path47.default.resolve(moduleRoot, file);
|
|
56588
|
+
const to = import_node_path47.default.resolve(stagedModule, file);
|
|
56589
|
+
if ((0, import_node_fs49.existsSync)(to) && (0, import_node_fs49.readFileSync)(from).equals((0, import_node_fs49.readFileSync)(to))) continue;
|
|
56590
|
+
(0, import_node_fs49.mkdirSync)(import_node_path47.default.dirname(to), { recursive: true });
|
|
56591
|
+
(0, import_node_fs49.copyFileSync)(from, to);
|
|
56592
|
+
}
|
|
56593
|
+
if (swiftProjectBuildKey(stagedModule, release) !== frameworkKey)
|
|
56594
|
+
throw new Error("Swift staged framework source differs from the caller");
|
|
56585
56595
|
const modules = import_node_path47.default.join(staged, "node_modules");
|
|
56586
56596
|
const target = (0, import_node_fs49.realpathSync)(import_node_path47.default.join(moduleRoot, "../../node_modules"));
|
|
56587
56597
|
if (!(0, import_node_fs49.existsSync)(modules) || (0, import_node_fs49.readlinkSync)(modules) !== target) {
|
|
@@ -56758,7 +56768,14 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
56758
56768
|
const frameworkScratch = swiftFrameworkScratch(frameworkKey);
|
|
56759
56769
|
const withFrameworkLock = (work) => distribution ? work(null) : withSwiftFrameworkSlot(frameworkKey, moduleRoot, options.signal, work);
|
|
56760
56770
|
return withFrameworkLock(async (slot, frameworkLease) => {
|
|
56761
|
-
const frameworkRoot = stageFrameworkSource(
|
|
56771
|
+
const frameworkRoot = stageFrameworkSource(
|
|
56772
|
+
moduleRoot,
|
|
56773
|
+
slot,
|
|
56774
|
+
frameworkKey,
|
|
56775
|
+
options.release
|
|
56776
|
+
);
|
|
56777
|
+
if (swiftArtifactHash(input, options.release, frameworkRoot) !== hash)
|
|
56778
|
+
throw new Error("Swift staged project source differs from the caller");
|
|
56762
56779
|
report("preparing compiler plugins");
|
|
56763
56780
|
const pluginsFor = (pluginLease) => ensureMacroPlugins(
|
|
56764
56781
|
frameworkRoot,
|
|
@@ -57226,7 +57243,7 @@ var init_swift_compile = __esm({
|
|
|
57226
57243
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
57227
57244
|
MULTI_MANIFEST_VERSION = 66;
|
|
57228
57245
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
57229
|
-
compilerSourceDigest = true ? "
|
|
57246
|
+
compilerSourceDigest = true ? "2b36a6526c1736968b10c07d3f0413954b745c6a495b4b68702c61e477ba2565" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
57230
57247
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
57231
57248
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
57232
57249
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -63157,10 +63174,10 @@ function sharedDir() {
|
|
|
63157
63174
|
return import_node_path59.default.join((0, import_node_os16.homedir)(), ".peach", "cache", "expo-discovery");
|
|
63158
63175
|
}
|
|
63159
63176
|
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");
|
|
63177
|
+
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
63178
|
}
|
|
63162
63179
|
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");
|
|
63180
|
+
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
63181
|
}
|
|
63165
63182
|
function readExpoDiscovery(key2) {
|
|
63166
63183
|
let parsed;
|
|
@@ -63579,7 +63596,7 @@ var init_swift_standin_digest = __esm({
|
|
|
63579
63596
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
63580
63597
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
63581
63598
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
63582
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
63599
|
+
STANDIN_SOURCE_DIGEST = true ? "5cfe4c5e593a540246f73f905de64026203a300735fd8f8a64343838e88f2bb9" : standinSourceDigest();
|
|
63583
63600
|
}
|
|
63584
63601
|
});
|
|
63585
63602
|
|
|
@@ -64309,7 +64326,7 @@ var init_expo_native_prebuilt = __esm({
|
|
|
64309
64326
|
init_swift_native_pin();
|
|
64310
64327
|
init_xcode_project();
|
|
64311
64328
|
EXPO_NATIVE_ENTRY_NAME = "ios";
|
|
64312
|
-
EXPO_NATIVE_COMPILER_DIGEST = true ? "
|
|
64329
|
+
EXPO_NATIVE_COMPILER_DIGEST = true ? "88b3db877ecb4ff83c9ecdbe1f42f181c198bd6dff6ce81a66f1c1a50f7af7af" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
64313
64330
|
IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
|
|
64314
64331
|
expoNativeEntryUrl = (key2, file) => `${NATIVE_PREBUILT_ORIGIN}/${nativeEntryPrefix("expo", EXPO_NATIVE_ENTRY_NAME, key2)}/${file}`;
|
|
64315
64332
|
isStringRecord = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
|
|
@@ -79321,11 +79338,16 @@ function cloneUnits(units) {
|
|
|
79321
79338
|
appDelegateSubscribers: unit2.appDelegateSubscribers.slice(),
|
|
79322
79339
|
reactDelegateHandlers: unit2.reactDelegateHandlers.slice(),
|
|
79323
79340
|
frameworks: unit2.frameworks.slice(),
|
|
79341
|
+
...unit2.workspaceSources ? { workspaceSources: unit2.workspaceSources.slice() } : {},
|
|
79324
79342
|
files: { ...unit2.files },
|
|
79325
79343
|
...unit2.nativeFiles ? { nativeFiles: { ...unit2.nativeFiles } } : {},
|
|
79326
79344
|
...unit2.headerAliases ? { headerAliases: { ...unit2.headerAliases } } : {},
|
|
79327
79345
|
...unit2.resources ? { resources: { ...unit2.resources } } : {},
|
|
79328
|
-
...unit2.resourceBundles ? {
|
|
79346
|
+
...unit2.resourceBundles ? {
|
|
79347
|
+
resourceBundles: unit2.resourceBundles.map((bundle) => ({
|
|
79348
|
+
...bundle
|
|
79349
|
+
}))
|
|
79350
|
+
} : {},
|
|
79329
79351
|
...unit2.nativeTargets ? { nativeTargets: unit2.nativeTargets.map(cloneNativeTarget) } : {}
|
|
79330
79352
|
}));
|
|
79331
79353
|
}
|
|
@@ -79768,24 +79790,40 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
|
|
|
79768
79790
|
installed2?.input.files["Package.swift"] ?? ""
|
|
79769
79791
|
);
|
|
79770
79792
|
const units = [];
|
|
79793
|
+
const dependencyUnits = [];
|
|
79794
|
+
const processed = /* @__PURE__ */ new Set();
|
|
79771
79795
|
const namespacesSeen = /* @__PURE__ */ new Set();
|
|
79772
79796
|
const namespaceGroups = /* @__PURE__ */ new Map();
|
|
79773
79797
|
let answeredInstalled = false;
|
|
79774
79798
|
let needsNativeWorkspace = false;
|
|
79775
79799
|
let bytes = 0;
|
|
79776
79800
|
let fileCount = 0;
|
|
79777
|
-
|
|
79778
|
-
|
|
79779
|
-
))
|
|
79801
|
+
const entries = Object.entries(search).sort(([a], [b]) => a.localeCompare(b));
|
|
79802
|
+
const queue2 = entries.slice();
|
|
79803
|
+
const queued = new Set(entries.map(([name3]) => name3));
|
|
79804
|
+
const reconsider = () => {
|
|
79805
|
+
for (const entry of entries)
|
|
79806
|
+
if (!processed.has(entry[0]) && !queued.has(entry[0])) {
|
|
79807
|
+
queue2.push(entry);
|
|
79808
|
+
queued.add(entry[0]);
|
|
79809
|
+
}
|
|
79810
|
+
};
|
|
79811
|
+
for (const [packageName, entry] of queue2) {
|
|
79812
|
+
queued.delete(packageName);
|
|
79813
|
+
if (processed.has(packageName)) continue;
|
|
79780
79814
|
if (!entry || typeof entry !== "object")
|
|
79781
79815
|
throw new Error("invalid Expo autolinking entry");
|
|
79782
79816
|
const sourceRoot = Reflect.get(entry, "path");
|
|
79783
79817
|
if (typeof sourceRoot !== "string")
|
|
79784
79818
|
throw new Error("Expo autolinking entry has no path");
|
|
79785
79819
|
const canonical = import_node_fs84.default.realpathSync(sourceRoot);
|
|
79786
|
-
|
|
79820
|
+
const answered2 = canonical.split(import_node_path82.default.sep).includes("node_modules") && peachAnsweredNativePackages().has(packageName);
|
|
79821
|
+
if (answered2) {
|
|
79787
79822
|
answeredInstalled = true;
|
|
79788
|
-
|
|
79823
|
+
if (installed2 || prepareNative) {
|
|
79824
|
+
processed.add(packageName);
|
|
79825
|
+
continue;
|
|
79826
|
+
}
|
|
79789
79827
|
}
|
|
79790
79828
|
for (const name3 of ["expo-module.config.json", "unimodule.json"]) {
|
|
79791
79829
|
const descriptor = import_node_path82.default.join(canonical, name3);
|
|
@@ -79812,8 +79850,21 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
|
|
|
79812
79850
|
const subscriberNames = delegateNames("appDelegateSubscribers");
|
|
79813
79851
|
const handlerNames = delegateNames("reactDelegateHandlers");
|
|
79814
79852
|
const deferredToWorkspace = prepareNative && !installedWorkspace && Array.isArray(pods) && pods.length > 0;
|
|
79815
|
-
|
|
79816
|
-
|
|
79853
|
+
const dependencyOnly = answered2 || (!Array.isArray(modules) || modules.length === 0) && subscriberNames.length === 0 && handlerNames.length === 0;
|
|
79854
|
+
if (dependencyOnly) {
|
|
79855
|
+
if (installed2 || prepareNative || !Array.isArray(namespaces)) {
|
|
79856
|
+
processed.add(packageName);
|
|
79857
|
+
continue;
|
|
79858
|
+
}
|
|
79859
|
+
const imports2 = new Set(
|
|
79860
|
+
[...units, ...dependencyUnits].flatMap(
|
|
79861
|
+
(unit2) => Object.values(unit2.files).flatMap((source) => swiftImportNames(source))
|
|
79862
|
+
)
|
|
79863
|
+
);
|
|
79864
|
+
if (!namespaces.some((name3) => typeof name3 === "string" && imports2.has(name3)))
|
|
79865
|
+
continue;
|
|
79866
|
+
}
|
|
79867
|
+
processed.add(packageName);
|
|
79817
79868
|
if (!Array.isArray(namespaces) || namespaces.length === 0 || !namespaces.every(
|
|
79818
79869
|
(name3) => typeof name3 === "string" && /^[A-Za-z_][A-Za-z0-9_]*$/.test(name3)
|
|
79819
79870
|
))
|
|
@@ -79824,9 +79875,10 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
|
|
|
79824
79875
|
}
|
|
79825
79876
|
if (namespaces.length > 1 && !installed2) {
|
|
79826
79877
|
if (!nativeWorkspaceAvailable()) {
|
|
79827
|
-
|
|
79828
|
-
|
|
79829
|
-
|
|
79878
|
+
if (!answered2)
|
|
79879
|
+
report(
|
|
79880
|
+
`${packageName}: ${namespaces.join(", ")} need CocoaPods target membership, which only a Mac prepares; not compiled`
|
|
79881
|
+
);
|
|
79830
79882
|
continue;
|
|
79831
79883
|
}
|
|
79832
79884
|
const prepared = await prepareExpoNativeWorkspace(appRoot, signal, iosTarget);
|
|
@@ -79919,8 +79971,13 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
|
|
|
79919
79971
|
walk3(file, binary2 || framework);
|
|
79920
79972
|
continue;
|
|
79921
79973
|
}
|
|
79922
|
-
if (!binary2 && target.isFile() && /\.(?:mm?|c|cc|cpp)$/.test(child.name))
|
|
79923
|
-
|
|
79974
|
+
if (!binary2 && target.isFile() && /\.(?:mm?|c|cc|cpp)$/.test(child.name)) {
|
|
79975
|
+
const source2 = linked ?? resolveSource(file);
|
|
79976
|
+
if (import_node_fs84.default.statSync(source2).size > 4096 || !/^(?:\s|\/\/[^\n]*|\/\*[\s\S]*?\*\/)*$/.test(
|
|
79977
|
+
import_node_fs84.default.readFileSync(source2, "utf8")
|
|
79978
|
+
))
|
|
79979
|
+
nativeSources.add(import_node_path82.default.relative(ios, file));
|
|
79980
|
+
}
|
|
79924
79981
|
if (!target.isFile() || !child.name.endsWith(".swift")) continue;
|
|
79925
79982
|
const source = linked ?? resolveSource(file);
|
|
79926
79983
|
if (sources.has(source)) continue;
|
|
@@ -79997,6 +80054,24 @@ ${import_node_fs84.default.readFileSync(source, "utf8")}`;
|
|
|
79997
80054
|
const podspecFloor = podspec ? /\.platforms\s*=\s*\{\s*:ios\s*=>\s*['"](\d+(?:\.\d+){0,2})['"]/.exec(
|
|
79998
80055
|
import_node_fs84.default.readFileSync(import_node_path82.default.join(ios, podspec), "utf8")
|
|
79999
80056
|
)?.[1] : void 0;
|
|
80057
|
+
if (dependencyOnly && Object.keys(files2).length > 0) {
|
|
80058
|
+
dependencyUnits.push({
|
|
80059
|
+
namespace,
|
|
80060
|
+
moduleId: namespace,
|
|
80061
|
+
classes: [],
|
|
80062
|
+
bridgeModules: [],
|
|
80063
|
+
appDelegateSubscribers: [],
|
|
80064
|
+
reactDelegateHandlers: [],
|
|
80065
|
+
files: files2,
|
|
80066
|
+
frameworks: [...frameworks],
|
|
80067
|
+
...nativeSources.size ? { workspaceSources: [namespace] } : {},
|
|
80068
|
+
...podspecFloor ? {
|
|
80069
|
+
nativeTargets: [synthesizedNativeTarget(namespace, podspecFloor)]
|
|
80070
|
+
} : {}
|
|
80071
|
+
});
|
|
80072
|
+
reconsider();
|
|
80073
|
+
}
|
|
80074
|
+
if (dependencyOnly) continue;
|
|
80000
80075
|
for (const declaration of declarations) {
|
|
80001
80076
|
const className = declaration.reference;
|
|
80002
80077
|
const owner = className.split(".")[0];
|
|
@@ -80029,10 +80104,13 @@ ${import_node_fs84.default.readFileSync(source, "utf8")}`;
|
|
|
80029
80104
|
files: closure,
|
|
80030
80105
|
frameworks: [...frameworks],
|
|
80031
80106
|
...absentFrameworks.length > 0 ? { absentFrameworks } : {},
|
|
80032
|
-
...podspecFloor ? {
|
|
80107
|
+
...podspecFloor ? {
|
|
80108
|
+
nativeTargets: [synthesizedNativeTarget(namespace, podspecFloor)]
|
|
80109
|
+
} : {}
|
|
80033
80110
|
};
|
|
80034
80111
|
unit2.files[EXPO_SWIFT_ENTRY] = expoEntry([unit2]);
|
|
80035
80112
|
units.push(unit2);
|
|
80113
|
+
reconsider();
|
|
80036
80114
|
}
|
|
80037
80115
|
}
|
|
80038
80116
|
if (namespaces.length > 1) {
|
|
@@ -80149,23 +80227,26 @@ ${import_node_fs84.default.readFileSync(file, "utf8")}`;
|
|
|
80149
80227
|
);
|
|
80150
80228
|
const allFiles = Object.assign(
|
|
80151
80229
|
{},
|
|
80152
|
-
...units.map((unit2) => unit2.files)
|
|
80230
|
+
...[...units, ...dependencyUnits].map((unit2) => unit2.files)
|
|
80153
80231
|
);
|
|
80154
|
-
const targets = [
|
|
80232
|
+
const targets = [
|
|
80233
|
+
...new Set([...units, ...dependencyUnits].map((unit2) => unit2.namespace))
|
|
80234
|
+
].map((namespace) => ({
|
|
80155
80235
|
name: namespace,
|
|
80156
80236
|
path: `Sources/${namespace}`
|
|
80157
80237
|
}));
|
|
80158
80238
|
const dependencies = swiftTargetDependencies(allFiles, targets);
|
|
80159
80239
|
const byNamespace = /* @__PURE__ */ new Map();
|
|
80160
|
-
for (const unit2 of units) {
|
|
80161
|
-
const
|
|
80162
|
-
|
|
80163
|
-
byNamespace.set(unit2.namespace,
|
|
80240
|
+
for (const unit2 of [...units, ...dependencyUnits]) {
|
|
80241
|
+
const entries2 = byNamespace.get(unit2.namespace) ?? [];
|
|
80242
|
+
entries2.push(unit2);
|
|
80243
|
+
byNamespace.set(unit2.namespace, entries2);
|
|
80164
80244
|
}
|
|
80165
80245
|
for (const unit2 of units) {
|
|
80166
80246
|
const included = /* @__PURE__ */ new Set([unit2.namespace]);
|
|
80247
|
+
const ownDependencies = swiftTargetDependencies(unit2.files, targets).get(unit2.namespace) ?? [];
|
|
80167
80248
|
const visit3 = (namespace) => {
|
|
80168
|
-
for (const dependency of dependencies.get(namespace) ?? []) {
|
|
80249
|
+
for (const dependency of namespace === unit2.namespace ? ownDependencies : dependencies.get(namespace) ?? []) {
|
|
80169
80250
|
if (!byNamespace.has(dependency) || included.has(dependency)) continue;
|
|
80170
80251
|
included.add(dependency);
|
|
80171
80252
|
visit3(dependency);
|
|
@@ -80182,6 +80263,12 @@ ${import_node_fs84.default.readFileSync(file, "utf8")}`;
|
|
|
80182
80263
|
...dependency.flatMap((item) => item.frameworks)
|
|
80183
80264
|
])
|
|
80184
80265
|
];
|
|
80266
|
+
unit2.workspaceSources = [
|
|
80267
|
+
.../* @__PURE__ */ new Set([
|
|
80268
|
+
...unit2.workspaceSources ?? [],
|
|
80269
|
+
...dependency.flatMap((item) => item.workspaceSources ?? [])
|
|
80270
|
+
])
|
|
80271
|
+
];
|
|
80185
80272
|
unit2.nativeTargets = [
|
|
80186
80273
|
...new Map(
|
|
80187
80274
|
[
|
|
@@ -80204,11 +80291,19 @@ ${import_node_fs84.default.readFileSync(file, "utf8")}`;
|
|
|
80204
80291
|
if (name3.startsWith(`Sources/${namespace}/`)) unit2.files[name3] = source;
|
|
80205
80292
|
}
|
|
80206
80293
|
}
|
|
80207
|
-
|
|
80208
|
-
|
|
80209
|
-
"",
|
|
80210
|
-
targetSettings2([...included].flatMap((namespace) => byNamespace.get(namespace)))
|
|
80294
|
+
const settings = targetSettings2(
|
|
80295
|
+
[...included].flatMap((namespace) => byNamespace.get(namespace))
|
|
80211
80296
|
);
|
|
80297
|
+
if (!installed2)
|
|
80298
|
+
for (const namespace of included)
|
|
80299
|
+
settings.set(namespace, {
|
|
80300
|
+
languageMode: 5,
|
|
80301
|
+
mainActorIsolation: false,
|
|
80302
|
+
resources: false,
|
|
80303
|
+
...settings.get(namespace),
|
|
80304
|
+
dependencies: (namespace === unit2.namespace ? ownDependencies : dependencies.get(namespace) ?? []).filter((name3) => included.has(name3)).map((name3) => ({ kind: "target", name: name3 }))
|
|
80305
|
+
});
|
|
80306
|
+
unit2.files["Package.swift"] = expoManifest(unit2.files, "", settings);
|
|
80212
80307
|
}
|
|
80213
80308
|
if (nativeAppIdentity)
|
|
80214
80309
|
for (const unit2 of units) unit2.nativeAppIdentity = nativeAppIdentity;
|
|
@@ -80247,8 +80342,21 @@ let package = Package(name: "PeachExpo", targets: [${declarations.join(", ")}, .
|
|
|
80247
80342
|
function targetSettings2(units) {
|
|
80248
80343
|
const settings = /* @__PURE__ */ new Map();
|
|
80249
80344
|
for (const unit2 of units) {
|
|
80250
|
-
for (const target of swiftManifestTargets(unit2.files["Package.swift"] ?? ""))
|
|
80251
|
-
settings.
|
|
80345
|
+
for (const target of swiftManifestTargets(unit2.files["Package.swift"] ?? "")) {
|
|
80346
|
+
const previous = settings.get(target.name);
|
|
80347
|
+
const dependencies = [
|
|
80348
|
+
...previous?.dependencies ?? [],
|
|
80349
|
+
...target.dependencies ?? []
|
|
80350
|
+
];
|
|
80351
|
+
settings.set(target.name, {
|
|
80352
|
+
...target,
|
|
80353
|
+
dependencies: [
|
|
80354
|
+
...new Map(
|
|
80355
|
+
dependencies.map((dependency) => [JSON.stringify(dependency), dependency])
|
|
80356
|
+
).values()
|
|
80357
|
+
]
|
|
80358
|
+
});
|
|
80359
|
+
}
|
|
80252
80360
|
if (unit2.swiftLanguageMode !== void 0)
|
|
80253
80361
|
settings.set(unit2.namespace, {
|
|
80254
80362
|
...settings.get(unit2.namespace),
|
|
@@ -80605,7 +80713,11 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
|
|
|
80605
80713
|
projectFor(packagePath).nativeFiles = unit2.nativeFiles;
|
|
80606
80714
|
projectFor(packagePath).headerAliases = unit2.headerAliases;
|
|
80607
80715
|
projectFor(packagePath).resourceBundles = unit2.resourceBundles;
|
|
80608
|
-
projectFor(packagePath).bundleFiles = unit2.resources ? {
|
|
80716
|
+
projectFor(packagePath).bundleFiles = unit2.resources ? {
|
|
80717
|
+
files: unit2.resources,
|
|
80718
|
+
bundles: unit2.resourceBundles ?? [],
|
|
80719
|
+
watched: []
|
|
80720
|
+
} : void 0;
|
|
80609
80721
|
const stamp = sourceContentStamp(packagePath, module2.root);
|
|
80610
80722
|
const failed = readFailedCompilation(packagePath);
|
|
80611
80723
|
if (failed?.stamp === stamp) {
|
|
@@ -80781,8 +80893,12 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
|
|
|
80781
80893
|
linked.push(unit2);
|
|
80782
80894
|
} catch (error) {
|
|
80783
80895
|
signal.throwIfAborted();
|
|
80896
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
80897
|
+
const missingImports = [...message.matchAll(/^ (\S+)/gm)].map(
|
|
80898
|
+
(match) => match[1]
|
|
80899
|
+
);
|
|
80784
80900
|
const diagnostic = [
|
|
80785
|
-
error instanceof
|
|
80901
|
+
error instanceof SwiftMissingModulesError && unit2.workspaceSources?.length ? `${unit2.workspaceSources.map((name3) => `${name3} needs a Mac-prepared workspace`).join("; ")}; unresolved imports: ${missingImports.join(", ")}` : message,
|
|
80786
80902
|
...gaps.get(unit2) ?? []
|
|
80787
80903
|
].join("\n");
|
|
80788
80904
|
const unitFiles = [...Object.keys(unit2.files), ...expoUnitAppPaths(unit2)];
|
|
@@ -82653,7 +82769,7 @@ var init_nitro_superset = __esm({
|
|
|
82653
82769
|
init_swift_standin_digest();
|
|
82654
82770
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
82655
82771
|
packageVersion = (root) => JSON.parse((0, import_node_fs92.readFileSync)((0, import_node_path90.join)(root, "package.json"), "utf8")).version;
|
|
82656
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
82772
|
+
NITRO_COMPILER_DIGEST = true ? "50679ec9d86f9d78812bf99a3f183a7aeac0c60f73d1020f74b65ecf6a0c1fa2" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
82657
82773
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
82658
82774
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
82659
82775
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1982 | (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;
|
|
@@ -11860,7 +11860,7 @@ function swiftModuleDigest(root) {
|
|
|
11860
11860
|
return digest;
|
|
11861
11861
|
}
|
|
11862
11862
|
function swiftProjectBuildKey(moduleRoot, release) {
|
|
11863
|
-
return (0, import_node_crypto13.createHash)("sha256").update(
|
|
11863
|
+
return (0, import_node_crypto13.createHash)("sha256").update(`swift-framework/v2\0${release}\0${swiftModuleSdk(moduleRoot).wasmSdkId}`).update(swiftModuleDigest(moduleRoot)).digest("hex").slice(0, 32);
|
|
11864
11864
|
}
|
|
11865
11865
|
var SYSTEM_MODULE_LIBRARIES = {
|
|
11866
11866
|
"sqlite3.h": "sqlite3",
|
|
@@ -12377,7 +12377,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
12377
12377
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
12378
12378
|
var MULTI_MANIFEST_VERSION = 66;
|
|
12379
12379
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
12380
|
-
var compilerSourceDigest = true ? "
|
|
12380
|
+
var compilerSourceDigest = true ? "2b36a6526c1736968b10c07d3f0413954b745c6a495b4b68702c61e477ba2565" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
12381
12381
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
12382
12382
|
const hash = (0, import_node_crypto13.createHash)("sha256");
|
|
12383
12383
|
hash.update(`swift-compile
|
|
@@ -16273,7 +16273,7 @@ function mirrorTree2(source, target, skip) {
|
|
|
16273
16273
|
if (!wanted.has(name2) && name2 !== skip)
|
|
16274
16274
|
(0, import_node_fs24.rmSync)(import_node_path27.default.join(target, name2), { recursive: true, force: true });
|
|
16275
16275
|
}
|
|
16276
|
-
function stageFrameworkSource(moduleRoot, slot, frameworkKey) {
|
|
16276
|
+
function stageFrameworkSource(moduleRoot, slot, frameworkKey, release) {
|
|
16277
16277
|
if (!slot) return moduleRoot;
|
|
16278
16278
|
const staged = import_node_path27.default.join(slot, "source");
|
|
16279
16279
|
const stagedModule = import_node_path27.default.join(staged, "packages", import_node_path27.default.basename(moduleRoot));
|
|
@@ -16284,6 +16284,16 @@ function stageFrameworkSource(moduleRoot, slot, frameworkKey) {
|
|
|
16284
16284
|
swiftSharedSdkRoot(moduleRoot, false),
|
|
16285
16285
|
import_node_path27.default.join(staged, "packages/peachsim/sdk/ios")
|
|
16286
16286
|
);
|
|
16287
|
+
for (const file of swiftModuleInputFiles(moduleRoot)) {
|
|
16288
|
+
if (!file.startsWith("../")) continue;
|
|
16289
|
+
const from = import_node_path27.default.resolve(moduleRoot, file);
|
|
16290
|
+
const to = import_node_path27.default.resolve(stagedModule, file);
|
|
16291
|
+
if ((0, import_node_fs24.existsSync)(to) && (0, import_node_fs24.readFileSync)(from).equals((0, import_node_fs24.readFileSync)(to))) continue;
|
|
16292
|
+
(0, import_node_fs24.mkdirSync)(import_node_path27.default.dirname(to), { recursive: true });
|
|
16293
|
+
(0, import_node_fs24.copyFileSync)(from, to);
|
|
16294
|
+
}
|
|
16295
|
+
if (swiftProjectBuildKey(stagedModule, release) !== frameworkKey)
|
|
16296
|
+
throw new Error("Swift staged framework source differs from the caller");
|
|
16287
16297
|
const modules = import_node_path27.default.join(staged, "node_modules");
|
|
16288
16298
|
const target = (0, import_node_fs24.realpathSync)(import_node_path27.default.join(moduleRoot, "../../node_modules"));
|
|
16289
16299
|
if (!(0, import_node_fs24.existsSync)(modules) || (0, import_node_fs24.readlinkSync)(modules) !== target) {
|
|
@@ -16460,7 +16470,14 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
16460
16470
|
const frameworkScratch = swiftFrameworkScratch(frameworkKey);
|
|
16461
16471
|
const withFrameworkLock = (work) => distribution ? work(null) : withSwiftFrameworkSlot(frameworkKey, moduleRoot, options.signal, work);
|
|
16462
16472
|
return withFrameworkLock(async (slot, frameworkLease) => {
|
|
16463
|
-
const frameworkRoot = stageFrameworkSource(
|
|
16473
|
+
const frameworkRoot = stageFrameworkSource(
|
|
16474
|
+
moduleRoot,
|
|
16475
|
+
slot,
|
|
16476
|
+
frameworkKey,
|
|
16477
|
+
options.release
|
|
16478
|
+
);
|
|
16479
|
+
if (swiftArtifactHash(input, options.release, frameworkRoot) !== hash)
|
|
16480
|
+
throw new Error("Swift staged project source differs from the caller");
|
|
16464
16481
|
report("preparing compiler plugins");
|
|
16465
16482
|
const pluginsFor = (pluginLease) => ensureMacroPlugins(
|
|
16466
16483
|
frameworkRoot,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1982 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/swift-compile.ts
|
|
4
4
|
import {
|
|
@@ -11842,7 +11842,7 @@ function swiftModuleDigest(root) {
|
|
|
11842
11842
|
return digest;
|
|
11843
11843
|
}
|
|
11844
11844
|
function swiftProjectBuildKey(moduleRoot, release) {
|
|
11845
|
-
return createHash13("sha256").update(
|
|
11845
|
+
return createHash13("sha256").update(`swift-framework/v2\0${release}\0${swiftModuleSdk(moduleRoot).wasmSdkId}`).update(swiftModuleDigest(moduleRoot)).digest("hex").slice(0, 32);
|
|
11846
11846
|
}
|
|
11847
11847
|
var SYSTEM_MODULE_LIBRARIES = {
|
|
11848
11848
|
"sqlite3.h": "sqlite3",
|
|
@@ -12359,7 +12359,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
12359
12359
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
12360
12360
|
var MULTI_MANIFEST_VERSION = 66;
|
|
12361
12361
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
12362
|
-
var compilerSourceDigest = true ? "
|
|
12362
|
+
var compilerSourceDigest = true ? "2b36a6526c1736968b10c07d3f0413954b745c6a495b4b68702c61e477ba2565" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
12363
12363
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
12364
12364
|
const hash = createHash13("sha256");
|
|
12365
12365
|
hash.update(`swift-compile
|
|
@@ -16255,7 +16255,7 @@ function mirrorTree2(source, target, skip) {
|
|
|
16255
16255
|
if (!wanted.has(name2) && name2 !== skip)
|
|
16256
16256
|
rmSync6(path27.join(target, name2), { recursive: true, force: true });
|
|
16257
16257
|
}
|
|
16258
|
-
function stageFrameworkSource(moduleRoot, slot, frameworkKey) {
|
|
16258
|
+
function stageFrameworkSource(moduleRoot, slot, frameworkKey, release) {
|
|
16259
16259
|
if (!slot) return moduleRoot;
|
|
16260
16260
|
const staged = path27.join(slot, "source");
|
|
16261
16261
|
const stagedModule = path27.join(staged, "packages", path27.basename(moduleRoot));
|
|
@@ -16266,6 +16266,16 @@ function stageFrameworkSource(moduleRoot, slot, frameworkKey) {
|
|
|
16266
16266
|
swiftSharedSdkRoot(moduleRoot, false),
|
|
16267
16267
|
path27.join(staged, "packages/peachsim/sdk/ios")
|
|
16268
16268
|
);
|
|
16269
|
+
for (const file of swiftModuleInputFiles(moduleRoot)) {
|
|
16270
|
+
if (!file.startsWith("../")) continue;
|
|
16271
|
+
const from = path27.resolve(moduleRoot, file);
|
|
16272
|
+
const to = path27.resolve(stagedModule, file);
|
|
16273
|
+
if (existsSync4(to) && readFileSync16(from).equals(readFileSync16(to))) continue;
|
|
16274
|
+
mkdirSync6(path27.dirname(to), { recursive: true });
|
|
16275
|
+
copyFileSync(from, to);
|
|
16276
|
+
}
|
|
16277
|
+
if (swiftProjectBuildKey(stagedModule, release) !== frameworkKey)
|
|
16278
|
+
throw new Error("Swift staged framework source differs from the caller");
|
|
16269
16279
|
const modules = path27.join(staged, "node_modules");
|
|
16270
16280
|
const target = realpathSync5(path27.join(moduleRoot, "../../node_modules"));
|
|
16271
16281
|
if (!existsSync4(modules) || readlinkSync(modules) !== target) {
|
|
@@ -16442,7 +16452,14 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
16442
16452
|
const frameworkScratch = swiftFrameworkScratch(frameworkKey);
|
|
16443
16453
|
const withFrameworkLock = (work) => distribution ? work(null) : withSwiftFrameworkSlot(frameworkKey, moduleRoot, options.signal, work);
|
|
16444
16454
|
return withFrameworkLock(async (slot, frameworkLease) => {
|
|
16445
|
-
const frameworkRoot = stageFrameworkSource(
|
|
16455
|
+
const frameworkRoot = stageFrameworkSource(
|
|
16456
|
+
moduleRoot,
|
|
16457
|
+
slot,
|
|
16458
|
+
frameworkKey,
|
|
16459
|
+
options.release
|
|
16460
|
+
);
|
|
16461
|
+
if (swiftArtifactHash(input, options.release, frameworkRoot) !== hash)
|
|
16462
|
+
throw new Error("Swift staged project source differs from the caller");
|
|
16446
16463
|
report("preparing compiler plugins");
|
|
16447
16464
|
const pluginsFor = (pluginLease) => ensureMacroPlugins(
|
|
16448
16465
|
frameworkRoot,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1982 | (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.1982 | (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.1982 | (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.1982 | (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;
|