peachsim 0.1.2665 → 0.1.2667
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 +178 -65
- 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-2LIKL4NX.mjs → acorn-J2VGYYCT.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-T7EAO4MJ.mjs → chunk-4OTQNJPC.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-2T4RBFSS.mjs → chunk-4VGAYJQJ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-UE2HEXE7.mjs → chunk-6PSCPUCQ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-5KFGVINE.mjs → chunk-7TKLIZ4U.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-5DMO6UQJ.mjs → chunk-B6NELRM4.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-N75MISES.mjs → chunk-BWXEVKR6.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-2GUF7MKM.mjs → chunk-F3JFCSDZ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-GHC55YFV.mjs → chunk-HIEV7BTG.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-SUMGPDQS.mjs → chunk-IAPMXQWB.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-23DZ4Q4Z.mjs → chunk-IT7ZFZIA.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-KPTB74RN.mjs → chunk-KPGS7SQZ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-KG5EFPB2.mjs → chunk-KUEFCCUR.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-Y3BZF6OS.mjs → chunk-LV55OM2O.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-2RXTGRSX.mjs → chunk-MPIJBEFV.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-OGFQ2RML.mjs → chunk-N32UXW4F.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-6GGN7IFR.mjs → chunk-OSJ75JCB.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-CAOG2CSG.mjs → chunk-PMZC73PE.mjs} +14 -14
- package/dist-lib/esm-chunks/{chunk-H5ATIUKE.mjs → chunk-SY5PY7EC.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-V6PBAKRO.mjs → chunk-TIBC4TF4.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-3NJP5BIE.mjs → chunk-TLH4N2KQ.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-MWKWGPB6.mjs → chunk-VSYHDZ2D.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-Q3TXM4LK.mjs → chunk-WDFZNT6D.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-6AQXFUD7.mjs → chunk-WITE6BFN.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-XQPRIXPA.mjs → chunk-ZLHZX5X6.mjs} +1 -1
- package/dist-lib/esm-chunks/{metro-layout-parser-I777GKX2.mjs → metro-layout-parser-YV6U3SF2.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-KFKVJOGQ.mjs → swift-package-prebuilt-LU6YZSXI.mjs} +12 -12
- package/dist-lib/esm-chunks/{swift-sdk-app-module-FA7MI4R5.mjs → swift-sdk-app-module-LCQK2ZV7.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-5GYGKC24.mjs → swift-sdk-image-UTTTLU5C.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-I574RU2A.mjs → swift-sdk-image-producer-RI26IQDN.mjs} +5 -5
- package/dist-lib/expo-swift-bundle.cjs +178 -65
- 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 +178 -65
- package/dist-lib/host/fetch-proxy-handler.cjs +27 -4
- 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 +178 -65
- package/dist-lib/swift-compile.cjs +1 -1
- 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 +1 -1
- package/dist-lib/swift-submit.mjs +6 -6
- package/dist-lib/swift-svg-raster.cjs +1 -1
- package/dist-lib/swift-svg-raster.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +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/package.json +1 -1
- package/src/pod-lockfile.ts +29 -5
- package/src/pod-sources.ts +46 -4
- package/src/podfile-cocoapods.ts +70 -13
- package/src/pods-install.ts +72 -44
- package/src/vite-plugin.ts +0 -2
- package/src/workspace-root.ts +7 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2667 | (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;
|
|
@@ -14615,7 +14615,13 @@ var init_workspace_root = __esm({
|
|
|
14615
14615
|
"use strict";
|
|
14616
14616
|
import_node_fs21 = __toESM(require("node:fs"), 1);
|
|
14617
14617
|
import_node_path20 = __toESM(require("node:path"), 1);
|
|
14618
|
-
LOCKFILES = [
|
|
14618
|
+
LOCKFILES = [
|
|
14619
|
+
"pnpm-workspace.yaml",
|
|
14620
|
+
"package-lock.json",
|
|
14621
|
+
"yarn.lock",
|
|
14622
|
+
"bun.lock",
|
|
14623
|
+
"bun.lockb"
|
|
14624
|
+
];
|
|
14619
14625
|
}
|
|
14620
14626
|
});
|
|
14621
14627
|
|
|
@@ -18092,7 +18098,7 @@ var init_swift_standin_digest = __esm({
|
|
|
18092
18098
|
|
|
18093
18099
|
// src/expo-native-compiler-digest.ts
|
|
18094
18100
|
function expoNativeCompilerDigestValue() {
|
|
18095
|
-
return true ? "
|
|
18101
|
+
return true ? "421d6e515200130b8733a07e06b1152f884c8e28cf1289237138485db98b4135" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
18096
18102
|
}
|
|
18097
18103
|
var import_node_crypto17;
|
|
18098
18104
|
var init_expo_native_compiler_digest = __esm({
|
|
@@ -48685,9 +48691,7 @@ async function podSourceRoot(spec, prepareEnv) {
|
|
|
48685
48691
|
try {
|
|
48686
48692
|
if (strategy === "git") await downloadGit(name3, url, options2, stage);
|
|
48687
48693
|
else await downloadHttp(name3, url, options2, stage);
|
|
48688
|
-
|
|
48689
|
-
await prepare(name3, spec, stage, prepareEnv);
|
|
48690
|
-
clean(spec, stage, platformNames);
|
|
48694
|
+
await preparePodSource(spec, stage, prepareEnv);
|
|
48691
48695
|
import_node_fs72.default.mkdirSync(import_node_path72.default.dirname(root), { recursive: true });
|
|
48692
48696
|
publish(stage, root);
|
|
48693
48697
|
} finally {
|
|
@@ -48695,6 +48699,30 @@ async function podSourceRoot(spec, prepareEnv) {
|
|
|
48695
48699
|
}
|
|
48696
48700
|
return root;
|
|
48697
48701
|
}
|
|
48702
|
+
async function preparePodSource(spec, root, prepareEnv) {
|
|
48703
|
+
removeGitEntries(root);
|
|
48704
|
+
await prepare(String(spec.name), spec, root, prepareEnv);
|
|
48705
|
+
clean(spec, root, platformNames);
|
|
48706
|
+
}
|
|
48707
|
+
async function checkoutGitPod(name3, source, staging, lockedCommit) {
|
|
48708
|
+
const { git, ...options2 } = source;
|
|
48709
|
+
if (!/^[A-Za-z_][\w.+-]*$/.test(name3) || typeof git !== "string" || Object.keys(options2).some((key2) => !OPTIONS.git.includes(key2)) || ["commit", "branch", "tag"].some(
|
|
48710
|
+
(key2) => key2 in options2 && typeof options2[key2] !== "string"
|
|
48711
|
+
) || "submodules" in options2 && typeof options2.submodules !== "boolean")
|
|
48712
|
+
throw new Error(`${name3}: invalid Podfile Git source ${JSON.stringify(source)}`);
|
|
48713
|
+
const root = import_node_path72.default.join(staging, name3);
|
|
48714
|
+
await downloadGit(
|
|
48715
|
+
name3,
|
|
48716
|
+
git,
|
|
48717
|
+
lockedCommit ? { commit: lockedCommit, submodules: options2.submodules } : options2,
|
|
48718
|
+
root
|
|
48719
|
+
);
|
|
48720
|
+
const commit = (await run7(name3, "git", ["-C", root, "rev-parse", "HEAD"])).trim();
|
|
48721
|
+
const podspec = [`${name3}.podspec`, `${name3}.podspec.json`].map((file) => import_node_path72.default.join(root, file)).find((file) => import_node_fs72.default.lstatSync(file, { throwIfNoEntry: false })?.isFile());
|
|
48722
|
+
if (!podspec)
|
|
48723
|
+
throw new Error(`${name3}: no podspec in Podfile Git checkout ${git}@${commit}`);
|
|
48724
|
+
return { root, podspec, git, commit, submodules: options2.submodules === true };
|
|
48725
|
+
}
|
|
48698
48726
|
function canonicalJson(value) {
|
|
48699
48727
|
if (Array.isArray(value)) return `[${value.map(canonicalJson).join(",")}]`;
|
|
48700
48728
|
if (object5(value))
|
|
@@ -48736,7 +48764,7 @@ async function downloadGit(pod, url, options2, target) {
|
|
|
48736
48764
|
let commit = text7("commit");
|
|
48737
48765
|
const tag = text7("tag");
|
|
48738
48766
|
for (const value of [url, branch, commit, tag])
|
|
48739
|
-
if (value?.startsWith("
|
|
48767
|
+
if (value?.startsWith("-") || value?.includes(" --"))
|
|
48740
48768
|
throw new Error(`${pod}: unsafe git source input ${JSON.stringify(options2)}`);
|
|
48741
48769
|
if (branch) {
|
|
48742
48770
|
const output = await run7(pod, "git", ["ls-remote", "--", url, branch]);
|
|
@@ -56493,8 +56521,9 @@ function declarationsByRoot(declarations) {
|
|
|
56493
56521
|
}
|
|
56494
56522
|
return roots;
|
|
56495
56523
|
}
|
|
56496
|
-
function
|
|
56497
|
-
|
|
56524
|
+
function lockedPodResolution(file, declarations, gitSources) {
|
|
56525
|
+
const gitCommits = /* @__PURE__ */ new Map();
|
|
56526
|
+
if (!import_node_fs74.default.existsSync(file)) return { versions: {}, gitCommits };
|
|
56498
56527
|
const lock = browser_default.parse(import_node_fs74.default.readFileSync(file, "utf8"));
|
|
56499
56528
|
if (!record3(lock)) throw new Error(`${file}: expected a CocoaPods lockfile`);
|
|
56500
56529
|
const dependencies = lock.DEPENDENCIES ?? [];
|
|
@@ -56502,7 +56531,7 @@ function lockedPodVersions(file, declarations) {
|
|
|
56502
56531
|
(dependency) => typeof dependency === "string"
|
|
56503
56532
|
))
|
|
56504
56533
|
throw new Error(`${file}: invalid DEPENDENCIES list`);
|
|
56505
|
-
if (dependencies.length === 0) return {};
|
|
56534
|
+
if (dependencies.length === 0) return { versions: {}, gitCommits };
|
|
56506
56535
|
const previous = declarationsByRoot(dependencies);
|
|
56507
56536
|
const current2 = declarationsByRoot(declarations);
|
|
56508
56537
|
const unchanged = /* @__PURE__ */ new Set();
|
|
@@ -56511,6 +56540,19 @@ function lockedPodVersions(file, declarations) {
|
|
|
56511
56540
|
if (after?.size === before.size && [...before].every((entry) => after.has(entry)))
|
|
56512
56541
|
unchanged.add(root);
|
|
56513
56542
|
}
|
|
56543
|
+
const external = lock["EXTERNAL SOURCES"];
|
|
56544
|
+
const checkouts = lock["CHECKOUT OPTIONS"];
|
|
56545
|
+
for (const [name3, source] of gitSources) {
|
|
56546
|
+
if (!unchanged.has(name3)) continue;
|
|
56547
|
+
const before = record3(external) ? external[name3] : void 0;
|
|
56548
|
+
if (!record3(before) || Object.keys(before).length !== Object.keys(source).length || Object.entries(source).some(([key2, value]) => before[`:${key2}`] !== value)) {
|
|
56549
|
+
unchanged.delete(name3);
|
|
56550
|
+
continue;
|
|
56551
|
+
}
|
|
56552
|
+
const checkout = record3(checkouts) ? checkouts[name3] : void 0;
|
|
56553
|
+
if (record3(checkout) && checkout[":git"] === source.git && typeof checkout[":commit"] === "string" && /^[a-f0-9]{40}(?:[a-f0-9]{24})?$/.test(checkout[":commit"]))
|
|
56554
|
+
gitCommits.set(name3, checkout[":commit"]);
|
|
56555
|
+
}
|
|
56514
56556
|
const pods = lockedPods(lock);
|
|
56515
56557
|
const visited = /* @__PURE__ */ new Set();
|
|
56516
56558
|
const versions = /* @__PURE__ */ new Map();
|
|
@@ -56529,7 +56571,7 @@ function lockedPodVersions(file, declarations) {
|
|
|
56529
56571
|
};
|
|
56530
56572
|
for (const root of unchanged)
|
|
56531
56573
|
for (const dependency of previous.get(root)) visit3(dependency.split(" ", 1)[0]);
|
|
56532
|
-
return Object.fromEntries(versions);
|
|
56574
|
+
return { versions: Object.fromEntries(versions), gitCommits };
|
|
56533
56575
|
}
|
|
56534
56576
|
var import_node_fs74, record3;
|
|
56535
56577
|
var init_pod_lockfile = __esm({
|
|
@@ -56573,7 +56615,7 @@ function evaluatePodfile(appPath, env, workspace) {
|
|
|
56573
56615
|
return { file, interp, podfile };
|
|
56574
56616
|
});
|
|
56575
56617
|
}
|
|
56576
|
-
async function resolvePodfile(evaluated2) {
|
|
56618
|
+
async function resolvePodfile(evaluated2, staging) {
|
|
56577
56619
|
const { file, interp, podfile } = evaluated2;
|
|
56578
56620
|
const versions = /* @__PURE__ */ new Map();
|
|
56579
56621
|
const origins = /* @__PURE__ */ new Map();
|
|
@@ -56582,7 +56624,8 @@ async function resolvePodfile(evaluated2) {
|
|
|
56582
56624
|
const sources = toJson(interp, send(interp, podfile, "sources"));
|
|
56583
56625
|
if (!Array.isArray(sources) || !sources.every((source) => typeof source === "string"))
|
|
56584
56626
|
throw new Error(`${file}: Podfile sources are ${JSON.stringify(sources)}`);
|
|
56585
|
-
const
|
|
56627
|
+
const gitCheckouts = /* @__PURE__ */ new Map();
|
|
56628
|
+
const resolution2 = rubyFailures(file, () => {
|
|
56586
56629
|
interp.evalString(RESOLVER, "cocoapods/resolver");
|
|
56587
56630
|
const pathname = interp.object.consts.get("Pathname") ?? null;
|
|
56588
56631
|
const specification = podClass(interp, "Specification");
|
|
@@ -56618,21 +56661,42 @@ async function resolvePodfile(evaluated2) {
|
|
|
56618
56661
|
(c) => str(specRepoKey(origins.get(`${arg(c.args, 0)}/${arg(c.args, 1)}`) ?? "trunk")),
|
|
56619
56662
|
true
|
|
56620
56663
|
);
|
|
56664
|
+
interp.defineNative(
|
|
56665
|
+
trunk,
|
|
56666
|
+
"git_checkout",
|
|
56667
|
+
(c) => {
|
|
56668
|
+
const checkout = gitCheckouts.get(arg(c.args, 0));
|
|
56669
|
+
return checkout ? [
|
|
56670
|
+
str(checkout.podspec),
|
|
56671
|
+
str(checkout.git),
|
|
56672
|
+
str(checkout.commit),
|
|
56673
|
+
checkout.submodules
|
|
56674
|
+
] : null;
|
|
56675
|
+
},
|
|
56676
|
+
true
|
|
56677
|
+
);
|
|
56621
56678
|
const sandbox2 = send(interp, podClass(interp, "Sandbox"), "new", [
|
|
56622
56679
|
str(import_node_path74.default.join(import_node_path74.default.dirname(file), "Pods"))
|
|
56623
56680
|
]);
|
|
56624
56681
|
const declarations = send(interp, podfile, "dependencies");
|
|
56625
56682
|
if (!Array.isArray(declarations))
|
|
56626
56683
|
throw new Error("Podfile#dependencies returned no list");
|
|
56627
|
-
const
|
|
56684
|
+
const gitSources2 = /* @__PURE__ */ new Map();
|
|
56685
|
+
for (const declaration of declarations) {
|
|
56686
|
+
const source = toJson(interp, send(interp, declaration, "external_source"));
|
|
56687
|
+
if (isRecord(source) && "git" in source && !("path" in source) && !("podspec" in source))
|
|
56688
|
+
gitSources2.set(interp.toS(send(interp, declaration, "root_name")), source);
|
|
56689
|
+
}
|
|
56690
|
+
const locked = lockedPodResolution(
|
|
56628
56691
|
import_node_path74.default.join(import_node_path74.default.dirname(file), "Podfile.lock"),
|
|
56629
|
-
declarations.map((dependency) => interp.toS(dependency))
|
|
56692
|
+
declarations.map((dependency) => interp.toS(dependency)),
|
|
56693
|
+
gitSources2
|
|
56630
56694
|
);
|
|
56631
56695
|
const resolver2 = send(interp, podClass(interp, "Resolver"), "new", [
|
|
56632
56696
|
sandbox2,
|
|
56633
56697
|
podfile,
|
|
56634
56698
|
trunk,
|
|
56635
|
-
fromJson(locked)
|
|
56699
|
+
fromJson(locked.versions)
|
|
56636
56700
|
]);
|
|
56637
56701
|
if (!(sandbox2 instanceof RObject) || !(resolver2 instanceof RObject))
|
|
56638
56702
|
throw new Error("Pod::Resolver.new returned no object");
|
|
@@ -56642,16 +56706,27 @@ async function resolvePodfile(evaluated2) {
|
|
|
56642
56706
|
]);
|
|
56643
56707
|
if (!(installer2 instanceof RObject))
|
|
56644
56708
|
throw new Error("Pod::Installer.new returned no object");
|
|
56645
|
-
|
|
56646
|
-
interp,
|
|
56647
|
-
send(interp, installer2, "peach_begin_resolution", [resolver2])
|
|
56648
|
-
);
|
|
56649
|
-
return { sandbox: sandbox2, installer: installer2, resolver: resolver2, firstMissing: firstMissing2 };
|
|
56709
|
+
return { sandbox: sandbox2, installer: installer2, resolver: resolver2, gitSources: gitSources2, gitCommits: locked.gitCommits };
|
|
56650
56710
|
});
|
|
56651
|
-
|
|
56711
|
+
const { sandbox, installer, resolver, gitSources, gitCommits } = resolution2;
|
|
56712
|
+
const fetched = await Promise.allSettled(
|
|
56713
|
+
[...gitSources].map(async ([name3, source]) => {
|
|
56714
|
+
gitCheckouts.set(
|
|
56715
|
+
name3,
|
|
56716
|
+
await checkoutGitPod(name3, source, staging, gitCommits.get(name3))
|
|
56717
|
+
);
|
|
56718
|
+
})
|
|
56719
|
+
);
|
|
56720
|
+
for (const checkout of fetched)
|
|
56721
|
+
if (checkout.status === "rejected") throw checkout.reason;
|
|
56722
|
+
let missing = rubyFailures(
|
|
56723
|
+
file,
|
|
56724
|
+
() => toJson(interp, send(interp, installer, "peach_begin_resolution", [resolver]))
|
|
56725
|
+
);
|
|
56652
56726
|
for (; ; ) {
|
|
56653
56727
|
if (!Array.isArray(missing)) throw new Error("Pod::Resolver#resolve returned no list");
|
|
56654
|
-
if (missing.length === 0)
|
|
56728
|
+
if (missing.length === 0)
|
|
56729
|
+
return { ...evaluated2, sandbox, installer, resolver, gitCheckouts };
|
|
56655
56730
|
await Promise.all(
|
|
56656
56731
|
missing.map(async (entry) => {
|
|
56657
56732
|
if (!Array.isArray(entry) || typeof entry[0] !== "string")
|
|
@@ -56686,7 +56761,9 @@ var init_podfile_cocoapods = __esm({
|
|
|
56686
56761
|
import_node_fs75 = __toESM(require("node:fs"), 1);
|
|
56687
56762
|
import_node_path74 = __toESM(require("node:path"), 1);
|
|
56688
56763
|
init_cocoapods_trunk();
|
|
56764
|
+
init_is_record();
|
|
56689
56765
|
init_pod_lockfile();
|
|
56766
|
+
init_pod_sources();
|
|
56690
56767
|
init_podspec_cocoapods();
|
|
56691
56768
|
init_podspec_ruby();
|
|
56692
56769
|
init_podspec_ruby_stdlib();
|
|
@@ -56724,11 +56801,12 @@ module Pod
|
|
|
56724
56801
|
end
|
|
56725
56802
|
|
|
56726
56803
|
class Sandbox
|
|
56727
|
-
attr_reader :root, :stored_podspecs
|
|
56804
|
+
attr_reader :root, :stored_podspecs, :checkout_sources
|
|
56728
56805
|
def initialize(root)
|
|
56729
56806
|
@root = Pathname.new(root)
|
|
56730
56807
|
@stored_podspecs = {}
|
|
56731
56808
|
@local_paths = {}
|
|
56809
|
+
@checkout_sources = {}
|
|
56732
56810
|
end
|
|
56733
56811
|
def specifications_root
|
|
56734
56812
|
root + 'Local Podspecs'
|
|
@@ -57780,6 +57858,8 @@ module Pod
|
|
|
57780
57858
|
PodspecSource.new(name, params, podfile_path)
|
|
57781
57859
|
elsif params.key?(:path)
|
|
57782
57860
|
PathSource.new(name, params, podfile_path)
|
|
57861
|
+
elsif params.key?(:git)
|
|
57862
|
+
GitSource.new(name, params, podfile_path)
|
|
57783
57863
|
else
|
|
57784
57864
|
raise Informative, "Peach does not fetch the external source of '#{name}': #{params}"
|
|
57785
57865
|
end
|
|
@@ -57842,6 +57922,17 @@ module Pod
|
|
|
57842
57922
|
declared_path =~ %r{^.+://} ? declared_path : normalized_podspec_path(declared_path)
|
|
57843
57923
|
end
|
|
57844
57924
|
end
|
|
57925
|
+
|
|
57926
|
+
class GitSource < AbstractExternalSource
|
|
57927
|
+
def fetch(sandbox)
|
|
57928
|
+
podspec, git, commit, submodules = Resolver::Trunk.git_checkout(name)
|
|
57929
|
+
raise Informative, "No Git checkout prepared for '#{name}'" unless podspec
|
|
57930
|
+
store_podspec(sandbox, Pathname(podspec))
|
|
57931
|
+
source = { :git => git, :commit => commit }
|
|
57932
|
+
source[:submodules] = true if submodules
|
|
57933
|
+
sandbox.checkout_sources[name] = source
|
|
57934
|
+
end
|
|
57935
|
+
end
|
|
57845
57936
|
end
|
|
57846
57937
|
|
|
57847
57938
|
class Resolver
|
|
@@ -66089,6 +66180,7 @@ ${processed.replace(/^/gm, " ")}` : `${processedKey}: ${processed}`;
|
|
|
66089
66180
|
}
|
|
66090
66181
|
if (value instanceof RString) return yamlString(value.s).trim();
|
|
66091
66182
|
if (value instanceof RSymbol) return `:${value.name}`;
|
|
66183
|
+
if (typeof value === "boolean") return String(value);
|
|
66092
66184
|
throw new Error(
|
|
66093
66185
|
`the lockfile holds ${interp.toS(value)}, which YAMLHelper does not write`
|
|
66094
66186
|
);
|
|
@@ -66130,6 +66222,65 @@ ${locations.map(fileRef).join("")}</Workspace>
|
|
|
66130
66222
|
`${existing.slice(0, end)}${missing.map(fileRef).join("")}${existing.slice(end)}`
|
|
66131
66223
|
);
|
|
66132
66224
|
}
|
|
66225
|
+
async function preparePodInstallation(app, prepareEnv, workspace, lap) {
|
|
66226
|
+
const evaluated2 = evaluatePodfile(app, prepareEnv, workspace);
|
|
66227
|
+
const iosRoot = import_node_path82.default.dirname(evaluated2.file);
|
|
66228
|
+
const staging = import_node_fs81.default.mkdtempSync(import_node_path82.default.join(iosRoot, ".peach-pod-checkouts-"));
|
|
66229
|
+
try {
|
|
66230
|
+
const resolved = await resolvePodfile(evaluated2, staging);
|
|
66231
|
+
const { interp, file, podfile, sandbox: rubySandbox, resolver } = resolved;
|
|
66232
|
+
const call = (source, label) => rubyFailures(
|
|
66233
|
+
file,
|
|
66234
|
+
() => interp.callMethod(
|
|
66235
|
+
interp.evalString(source, label),
|
|
66236
|
+
"call",
|
|
66237
|
+
[podfile, rubySandbox, resolver],
|
|
66238
|
+
null,
|
|
66239
|
+
null,
|
|
66240
|
+
null,
|
|
66241
|
+
null
|
|
66242
|
+
)
|
|
66243
|
+
);
|
|
66244
|
+
const inputs2 = toJson(interp, call(INSTALL_INPUTS, "peach/install-inputs"));
|
|
66245
|
+
if (!isInstallInputs(inputs2))
|
|
66246
|
+
throw new Error(`${file}: the Podfile's install inputs are malformed`);
|
|
66247
|
+
const lock = lockfileYaml(interp, call(LOCKFILE, "cocoapods-core/lockfile"));
|
|
66248
|
+
lap("resolve");
|
|
66249
|
+
const podsRoot = import_node_path82.default.join(iosRoot, "Pods");
|
|
66250
|
+
import_node_fs81.default.rmSync(podsRoot, { recursive: true, force: true });
|
|
66251
|
+
import_node_fs81.default.mkdirSync(podsRoot, { recursive: true });
|
|
66252
|
+
const downloaded = /* @__PURE__ */ new Map();
|
|
66253
|
+
const copies = await Promise.allSettled(
|
|
66254
|
+
inputs2.downloads.map(async ([name3, json]) => {
|
|
66255
|
+
const spec = JSON.parse(json);
|
|
66256
|
+
if (!isRecord4(spec))
|
|
66257
|
+
throw new Error(`${name3}: the specification is no JSON object`);
|
|
66258
|
+
downloaded.set(name3, spec);
|
|
66259
|
+
const checkout = resolved.gitCheckouts.get(name3);
|
|
66260
|
+
const destination = import_node_path82.default.join(podsRoot, name3);
|
|
66261
|
+
import_node_fs81.default.cpSync(
|
|
66262
|
+
checkout?.root ?? await podSourceRoot(spec, prepareEnv),
|
|
66263
|
+
destination,
|
|
66264
|
+
{
|
|
66265
|
+
recursive: true,
|
|
66266
|
+
mode: import_node_fs81.default.constants.COPYFILE_FICLONE,
|
|
66267
|
+
verbatimSymlinks: true
|
|
66268
|
+
}
|
|
66269
|
+
);
|
|
66270
|
+
if (checkout) await preparePodSource(spec, destination, prepareEnv);
|
|
66271
|
+
})
|
|
66272
|
+
);
|
|
66273
|
+
for (const copy of copies) if (copy.status === "rejected") throw copy.reason;
|
|
66274
|
+
import_node_fs81.default.writeFileSync(
|
|
66275
|
+
import_node_path82.default.join(podsRoot, POD_GRAPH_SPECIFICATIONS),
|
|
66276
|
+
JSON.stringify(Object.fromEntries(inputs2.stored))
|
|
66277
|
+
);
|
|
66278
|
+
lap("download");
|
|
66279
|
+
return { resolved, inputs: inputs2, lock, downloaded, iosRoot, podsRoot };
|
|
66280
|
+
} finally {
|
|
66281
|
+
import_node_fs81.default.rmSync(staging, { recursive: true, force: true });
|
|
66282
|
+
}
|
|
66283
|
+
}
|
|
66133
66284
|
async function installPods(app, env, workspace) {
|
|
66134
66285
|
const timings = {};
|
|
66135
66286
|
let started = performance.now();
|
|
@@ -66139,47 +66290,8 @@ async function installPods(app, env, workspace) {
|
|
|
66139
66290
|
started = now;
|
|
66140
66291
|
};
|
|
66141
66292
|
const prepareEnv = await podPrepareEnvironment({ ...process.env, ...env });
|
|
66142
|
-
const resolved = await
|
|
66143
|
-
const { interp, file
|
|
66144
|
-
const iosRoot = import_node_path82.default.dirname(file);
|
|
66145
|
-
const call = (source, label) => rubyFailures(
|
|
66146
|
-
file,
|
|
66147
|
-
() => interp.callMethod(
|
|
66148
|
-
interp.evalString(source, label),
|
|
66149
|
-
"call",
|
|
66150
|
-
[podfile, rubySandbox, resolver],
|
|
66151
|
-
null,
|
|
66152
|
-
null,
|
|
66153
|
-
null,
|
|
66154
|
-
null
|
|
66155
|
-
)
|
|
66156
|
-
);
|
|
66157
|
-
const inputs2 = toJson(interp, call(INSTALL_INPUTS, "peach/install-inputs"));
|
|
66158
|
-
if (!isInstallInputs(inputs2))
|
|
66159
|
-
throw new Error(`${file}: the Podfile's install inputs are malformed`);
|
|
66160
|
-
const lock = lockfileYaml(interp, call(LOCKFILE, "cocoapods-core/lockfile"));
|
|
66161
|
-
lap("resolve");
|
|
66162
|
-
const podsRoot = import_node_path82.default.join(iosRoot, "Pods");
|
|
66163
|
-
import_node_fs81.default.rmSync(podsRoot, { recursive: true, force: true });
|
|
66164
|
-
import_node_fs81.default.mkdirSync(podsRoot, { recursive: true });
|
|
66165
|
-
const downloaded = /* @__PURE__ */ new Map();
|
|
66166
|
-
await Promise.all(
|
|
66167
|
-
inputs2.downloads.map(async ([name3, json]) => {
|
|
66168
|
-
const spec = JSON.parse(json);
|
|
66169
|
-
if (!isRecord4(spec)) throw new Error(`${name3}: the specification is no JSON object`);
|
|
66170
|
-
downloaded.set(name3, spec);
|
|
66171
|
-
import_node_fs81.default.cpSync(await podSourceRoot(spec, prepareEnv), import_node_path82.default.join(podsRoot, name3), {
|
|
66172
|
-
recursive: true,
|
|
66173
|
-
mode: import_node_fs81.default.constants.COPYFILE_FICLONE,
|
|
66174
|
-
verbatimSymlinks: true
|
|
66175
|
-
});
|
|
66176
|
-
})
|
|
66177
|
-
);
|
|
66178
|
-
import_node_fs81.default.writeFileSync(
|
|
66179
|
-
import_node_path82.default.join(podsRoot, POD_GRAPH_SPECIFICATIONS),
|
|
66180
|
-
JSON.stringify(Object.fromEntries(inputs2.stored))
|
|
66181
|
-
);
|
|
66182
|
-
lap("download");
|
|
66293
|
+
const { resolved, inputs: inputs2, lock, downloaded, iosRoot, podsRoot } = await preparePodInstallation(app, prepareEnv, workspace, lap);
|
|
66294
|
+
const { interp, file } = resolved;
|
|
66183
66295
|
const userProjects = /* @__PURE__ */ new Map();
|
|
66184
66296
|
const inspected = inputs2.definitions.map((definition2) => {
|
|
66185
66297
|
const projectPath = userProjectPath(iosRoot, definition2);
|
|
@@ -66339,6 +66451,7 @@ lambda do |podfile, sandbox, resolver|
|
|
|
66339
66451
|
'DEPENDENCIES' => podfile.dependencies.map(&:to_s),
|
|
66340
66452
|
'SPEC REPOS' => repos,
|
|
66341
66453
|
'EXTERNAL SOURCES' => podfile.dependencies.select(&:external?).each_with_object({}) { |dep, result| result[dep.root_name] = dep.external_source },
|
|
66454
|
+
'CHECKOUT OPTIONS' => sandbox.checkout_sources,
|
|
66342
66455
|
'SPEC CHECKSUMS' => specs.select(&:defined_in_file).each_with_object({}) { |spec, result| result[spec.root.name] = spec.checksum },
|
|
66343
66456
|
'PODFILE CHECKSUM' => podfile.checksum,
|
|
66344
66457
|
'COCOAPODS' => '${COCOAPODS_VERSION2}',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2667 | (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,19 +1,19 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2667 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
isSwiftResourcePath
|
|
4
|
-
} from "./esm-chunks/chunk-
|
|
4
|
+
} from "./esm-chunks/chunk-B6NELRM4.mjs";
|
|
5
5
|
import {
|
|
6
6
|
isNativeAppIdentity
|
|
7
|
-
} from "./esm-chunks/chunk-
|
|
8
|
-
import "./esm-chunks/chunk-
|
|
7
|
+
} from "./esm-chunks/chunk-TLH4N2KQ.mjs";
|
|
8
|
+
import "./esm-chunks/chunk-SY5PY7EC.mjs";
|
|
9
9
|
import {
|
|
10
10
|
insertBundleGlobalFooter,
|
|
11
11
|
readBundleGlobalFooter
|
|
12
|
-
} from "./esm-chunks/chunk-
|
|
12
|
+
} from "./esm-chunks/chunk-KPGS7SQZ.mjs";
|
|
13
13
|
import {
|
|
14
14
|
isRecord
|
|
15
|
-
} from "./esm-chunks/chunk-
|
|
16
|
-
import "./esm-chunks/chunk-
|
|
15
|
+
} from "./esm-chunks/chunk-TIBC4TF4.mjs";
|
|
16
|
+
import "./esm-chunks/chunk-4OTQNJPC.mjs";
|
|
17
17
|
|
|
18
18
|
// src/expoSwiftContract.ts
|
|
19
19
|
function strings(value) {
|
package/dist-lib/home-paths.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2667 | (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;
|