peachsim 0.1.752 → 0.1.754
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/bridge-flow-runner.ts +4 -8
- package/cli/commands/maestro.ts +1 -2
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/agent-identity.cjs +1 -1
- package/dist-lib/agent-sessions.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/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cli-constants.cjs +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/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +1 -1
- 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 +906 -135
- 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 +907 -136
- 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/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/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/render-mode.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 +24 -106
- 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/package.json +1 -1
- package/skills/peach-test/SKILL.md +1 -4
- package/src/home-paths.ts +1 -0
- package/src/native-firebase-config.ts +17 -111
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.754 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.754 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/plist.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.754 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/plist.mjs
CHANGED
package/dist-lib/profiles.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.754 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.754 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.754 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/render-mode.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.754 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.754 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/sdk.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.754 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/sdk.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.754 | (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
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.754 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -25107,6 +25107,9 @@ function workspaceProjects(xcodeprojOrWorkspace) {
|
|
|
25107
25107
|
}
|
|
25108
25108
|
return { listed, projects: projects2, projectAt };
|
|
25109
25109
|
}
|
|
25110
|
+
function listXcodeAppTargets(xcodeprojOrWorkspace) {
|
|
25111
|
+
return workspaceProjects(xcodeprojOrWorkspace).projects.flatMap(nativeTargets).filter((ref) => ref.target.productType === APPLICATION).map((ref) => str(ref.target.name) ?? ref.id);
|
|
25112
|
+
}
|
|
25110
25113
|
function readXcodeAppTarget(xcodeprojOrWorkspace, targetName) {
|
|
25111
25114
|
const workspace = xcodeprojOrWorkspace.endsWith(".xcworkspace") ? xcodeprojOrWorkspace : null;
|
|
25112
25115
|
const { listed, projects: projects2, projectAt } = workspaceProjects(xcodeprojOrWorkspace);
|
|
@@ -37501,100 +37504,14 @@ function readNativeFirebaseConfig(projectRoot, platforms = ["ios", "android"]) {
|
|
|
37501
37504
|
if (projects2.length > 1)
|
|
37502
37505
|
throw new Error("native Firebase configuration requires a selected Xcode project");
|
|
37503
37506
|
if (projects2.length === 1) {
|
|
37504
|
-
const
|
|
37505
|
-
const
|
|
37506
|
-
if (
|
|
37507
|
-
throw new Error("native Xcode project parser is unavailable");
|
|
37508
|
-
const project = Reflect.apply(xcode.project, xcode, [
|
|
37509
|
-
import_node_path29.default.join(iosRoot, projects2[0].name, "project.pbxproj")
|
|
37510
|
-
]);
|
|
37511
|
-
if (!isRecord2(project) || typeof project.parseSync !== "function")
|
|
37512
|
-
throw new Error("native Xcode project is malformed");
|
|
37513
|
-
Reflect.apply(project.parseSync, project, []);
|
|
37514
|
-
const hash = project.hash;
|
|
37515
|
-
const native = isRecord2(hash) ? hash.project : null;
|
|
37516
|
-
const objects = isRecord2(native) ? native.objects : null;
|
|
37517
|
-
if (!isRecord2(objects)) throw new Error("native Xcode objects are malformed");
|
|
37518
|
-
const unquote = (value) => typeof value === "string" ? value.replace(/^"|"$/g, "") : "";
|
|
37519
|
-
const targets = isRecord2(objects.PBXNativeTarget) ? Object.values(objects.PBXNativeTarget).filter(
|
|
37520
|
-
(target2) => isRecord2(target2) && unquote(target2.productType) === "com.apple.product-type.application"
|
|
37521
|
-
) : [];
|
|
37522
|
-
if (targets.length > 1)
|
|
37507
|
+
const xcodeproj = import_node_path29.default.join(iosRoot, projects2[0].name);
|
|
37508
|
+
const appTargets = listXcodeAppTargets(xcodeproj);
|
|
37509
|
+
if (appTargets.length > 1)
|
|
37523
37510
|
throw new Error("native Firebase configuration requires a selected app target");
|
|
37524
|
-
|
|
37525
|
-
|
|
37526
|
-
const
|
|
37527
|
-
|
|
37528
|
-
const groups = isRecord2(objects.PBXGroup) ? objects.PBXGroup : {};
|
|
37529
|
-
const references = isRecord2(objects.PBXFileReference) ? objects.PBXFileReference : {};
|
|
37530
|
-
const nativeProjects = isRecord2(objects.PBXProject) ? Object.values(objects.PBXProject) : [];
|
|
37531
|
-
const roots = nativeProjects.filter(isRecord2).map((value) => value.mainGroup);
|
|
37532
|
-
const pending = roots.filter((id) => typeof id === "string").map((id) => ({ id, base: iosRoot }));
|
|
37533
|
-
const visited = /* @__PURE__ */ new Map();
|
|
37534
|
-
while (pending.length) {
|
|
37535
|
-
const item = pending.pop();
|
|
37536
|
-
if (!item) break;
|
|
37537
|
-
const previous = visited.get(item.id);
|
|
37538
|
-
if (previous !== void 0) {
|
|
37539
|
-
if (previous !== item.base)
|
|
37540
|
-
throw new Error("native Xcode group has ambiguous parents");
|
|
37541
|
-
continue;
|
|
37542
|
-
}
|
|
37543
|
-
visited.set(item.id, item.base);
|
|
37544
|
-
const group = groups[item.id];
|
|
37545
|
-
if (!isRecord2(group) || !Array.isArray(group.children)) continue;
|
|
37546
|
-
const sourceTree = unquote(group.sourceTree);
|
|
37547
|
-
if (sourceTree && sourceTree !== "<group>" && sourceTree !== "SOURCE_ROOT")
|
|
37548
|
-
continue;
|
|
37549
|
-
const directory = import_node_path29.default.resolve(
|
|
37550
|
-
sourceTree === "SOURCE_ROOT" ? iosRoot : item.base,
|
|
37551
|
-
unquote(group.path)
|
|
37552
|
-
);
|
|
37553
|
-
for (const child of group.children) {
|
|
37554
|
-
if (!isRecord2(child) || typeof child.value !== "string") continue;
|
|
37555
|
-
if (isRecord2(groups[child.value])) {
|
|
37556
|
-
pending.push({ id: child.value, base: directory });
|
|
37557
|
-
continue;
|
|
37558
|
-
}
|
|
37559
|
-
const file = references[child.value];
|
|
37560
|
-
if (!isRecord2(file)) continue;
|
|
37561
|
-
const tree = unquote(file.sourceTree);
|
|
37562
|
-
if (tree !== "<group>" && tree !== "SOURCE_ROOT") continue;
|
|
37563
|
-
const filePath = import_node_path29.default.resolve(
|
|
37564
|
-
tree === "SOURCE_ROOT" ? iosRoot : directory,
|
|
37565
|
-
unquote(file.path)
|
|
37566
|
-
);
|
|
37567
|
-
const values = filePaths.get(child.value) ?? /* @__PURE__ */ new Set();
|
|
37568
|
-
values.add(filePath);
|
|
37569
|
-
filePaths.set(child.value, values);
|
|
37570
|
-
}
|
|
37571
|
-
}
|
|
37572
|
-
const buildFiles = isRecord2(objects.PBXBuildFile) ? objects.PBXBuildFile : {};
|
|
37573
|
-
const filesInPhase = (section, name2) => {
|
|
37574
|
-
if (!isRecord2(section)) return [];
|
|
37575
|
-
const paths = [];
|
|
37576
|
-
for (const phase of buildPhases) {
|
|
37577
|
-
if (!isRecord2(phase) || typeof phase.value !== "string") continue;
|
|
37578
|
-
const value = section[phase.value];
|
|
37579
|
-
if (!isRecord2(value) || !Array.isArray(value.files)) continue;
|
|
37580
|
-
for (const entry of value.files) {
|
|
37581
|
-
if (!isRecord2(entry) || typeof entry.value !== "string") continue;
|
|
37582
|
-
const file = buildFiles[entry.value];
|
|
37583
|
-
if (!isRecord2(file) || typeof file.fileRef !== "string") continue;
|
|
37584
|
-
const reference = references[file.fileRef];
|
|
37585
|
-
if (!isRecord2(reference) || !name2.test(import_node_path29.default.basename(unquote(reference.path))))
|
|
37586
|
-
continue;
|
|
37587
|
-
const candidates = filePaths.get(file.fileRef);
|
|
37588
|
-
if (!candidates || candidates.size !== 1)
|
|
37589
|
-
throw new Error("native Firebase build resource path is unresolved");
|
|
37590
|
-
paths.push(...candidates);
|
|
37591
|
-
}
|
|
37592
|
-
}
|
|
37593
|
-
return paths;
|
|
37594
|
-
};
|
|
37595
|
-
const delegates = filesInPhase(
|
|
37596
|
-
objects.PBXSourcesBuildPhase,
|
|
37597
|
-
/^AppDelegate\.(swift|mm|m)$/
|
|
37511
|
+
if (appTargets.length === 1) {
|
|
37512
|
+
const app = readXcodeAppTarget(xcodeproj, appTargets[0]);
|
|
37513
|
+
const delegates = app.allSources.filter(
|
|
37514
|
+
(file) => /^AppDelegate\.(swift|mm|m)$/.test(import_node_path29.default.basename(file))
|
|
37598
37515
|
);
|
|
37599
37516
|
const defaultConfigured = delegates.some((file) => {
|
|
37600
37517
|
const source = import_node_fs29.default.readFileSync(file, "utf8").replace(
|
|
@@ -37624,15 +37541,19 @@ function readNativeFirebaseConfig(projectRoot, platforms = ["ios", "android"]) {
|
|
|
37624
37541
|
return true;
|
|
37625
37542
|
});
|
|
37626
37543
|
if (defaultConfigured) {
|
|
37627
|
-
const resources =
|
|
37628
|
-
|
|
37629
|
-
/^GoogleService-Info\.plist$/
|
|
37544
|
+
const resources = app.resources.filter(
|
|
37545
|
+
(file) => /^GoogleService-Info\.plist$/.test(import_node_path29.default.basename(file))
|
|
37630
37546
|
);
|
|
37631
37547
|
if (resources.length !== 1)
|
|
37632
37548
|
throw new Error(
|
|
37633
37549
|
"native Firebase default initialization requires one GoogleService-Info.plist build resource"
|
|
37634
37550
|
);
|
|
37635
|
-
config.ios = {
|
|
37551
|
+
config.ios = {
|
|
37552
|
+
googleServicesFile: import_node_path29.default.relative(
|
|
37553
|
+
import_node_fs29.default.realpathSync(projectRoot),
|
|
37554
|
+
resources[0]
|
|
37555
|
+
)
|
|
37556
|
+
};
|
|
37636
37557
|
}
|
|
37637
37558
|
}
|
|
37638
37559
|
}
|
|
@@ -37704,6 +37625,7 @@ var init_native_firebase_config = __esm({
|
|
|
37704
37625
|
import_node_path29 = __toESM(require("node:path"), 1);
|
|
37705
37626
|
init_is_record();
|
|
37706
37627
|
init_plist();
|
|
37628
|
+
init_xcode_project();
|
|
37707
37629
|
}
|
|
37708
37630
|
});
|
|
37709
37631
|
|
|
@@ -46705,13 +46627,9 @@ var init_bridge_flow_runner = __esm({
|
|
|
46705
46627
|
await this.resetGuestAppData();
|
|
46706
46628
|
await this.rearmCaptureAfterRuntimeReload();
|
|
46707
46629
|
}
|
|
46708
|
-
//
|
|
46709
|
-
|
|
46710
|
-
|
|
46711
|
-
clearKeychain() {
|
|
46712
|
-
console.warn(
|
|
46713
|
-
"[flow] clearKeychain: peach has no keychain surface \u2014 no-op (warning)"
|
|
46714
|
-
);
|
|
46630
|
+
// the guest owns both persistent credentials and live native-module caches.
|
|
46631
|
+
async clearKeychain() {
|
|
46632
|
+
await this.callTest("clearKeychain");
|
|
46715
46633
|
}
|
|
46716
46634
|
// maestro copyTextFrom: find an element and capture its text for use in
|
|
46717
46635
|
// later steps via ${maestro.copiedText} (upstream form) or the legacy
|
|
@@ -47056,7 +46974,7 @@ var init_bridge_flow_runner = __esm({
|
|
|
47056
46974
|
} else if (step.clearState !== void 0) {
|
|
47057
46975
|
await this.clearState();
|
|
47058
46976
|
} else if (step.clearKeychain !== void 0) {
|
|
47059
|
-
this.clearKeychain();
|
|
46977
|
+
await this.clearKeychain();
|
|
47060
46978
|
} else if (step.copyTextFrom !== void 0) {
|
|
47061
46979
|
await this.copyTextFrom(step.copyTextFrom);
|
|
47062
46980
|
} else if (step.assertTrue !== void 0) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.754 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.754 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.754 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.754 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.754 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/vite-swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.754 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.754 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/package.json
CHANGED
|
@@ -179,7 +179,7 @@ peach maestro --env USERNAME=alice test .maestro/login.yaml
|
|
|
179
179
|
|
|
180
180
|
### supported verbs
|
|
181
181
|
|
|
182
|
-
`launchApp` (including JSON `arguments`), `stopApp`, `clearState`, `tapOn`, `tapAtCoords`, `longPressOn`, `inputText`,
|
|
182
|
+
`launchApp` (including JSON `arguments`), `stopApp`, `clearState`, `clearKeychain`, `tapOn`, `tapAtCoords`, `longPressOn`, `inputText`,
|
|
183
183
|
`pressKey`, `dispatchKey`, `hideKeyboard`, `eraseText`, `assertVisible`,
|
|
184
184
|
`assertNotVisible`, `assertTreeContains`, `waitFor`, `extendedWaitUntil`,
|
|
185
185
|
`waitForAnimationToEnd`, `scroll`, `scrollUntilVisible`, `scrollTo`,
|
|
@@ -191,9 +191,6 @@ interpolation.
|
|
|
191
191
|
|
|
192
192
|
### partial
|
|
193
193
|
|
|
194
|
-
- `clearKeychain` — no keychain in Peach; logs a warning and continues.
|
|
195
|
-
if a test depends on keychain state being reset, add an explicit
|
|
196
|
-
in-app "sign out" step instead.
|
|
197
194
|
- `when.platform` — Peach emulates iOS; android branches are skipped.
|
|
198
195
|
- `openLink`: app routing works; there is no OS-level browser fallback.
|
|
199
196
|
|
package/src/home-paths.ts
CHANGED
|
@@ -230,6 +230,7 @@ export function cliUpdateFilePath(): string {
|
|
|
230
230
|
// write one persisted value per choice.
|
|
231
231
|
|
|
232
232
|
export interface SharedConfig {
|
|
233
|
+
homeScreen?: import('@peach/globals').PeachHomeScreenConfig
|
|
233
234
|
telemetry?: boolean
|
|
234
235
|
onboardingVersion?: number
|
|
235
236
|
simulatorDriver?: 'electron' | 'playwright'
|
|
@@ -5,6 +5,7 @@ import { createRequire } from 'node:module'
|
|
|
5
5
|
import path from 'node:path'
|
|
6
6
|
import { isRecord } from './is-record'
|
|
7
7
|
import { parsePlistSource } from './plist'
|
|
8
|
+
import { listXcodeAppTargets, readXcodeAppTarget } from './xcode-project'
|
|
8
9
|
|
|
9
10
|
export function readNativeFirebaseConfig(
|
|
10
11
|
projectRoot: string,
|
|
@@ -52,114 +53,14 @@ export function readNativeFirebaseConfig(
|
|
|
52
53
|
if (projects.length > 1)
|
|
53
54
|
throw new Error('native Firebase configuration requires a selected Xcode project')
|
|
54
55
|
if (projects.length === 1) {
|
|
55
|
-
const
|
|
56
|
-
const
|
|
57
|
-
if (
|
|
58
|
-
throw new Error('native Xcode project parser is unavailable')
|
|
59
|
-
const project: unknown = Reflect.apply(xcode.project, xcode, [
|
|
60
|
-
path.join(iosRoot, projects[0].name, 'project.pbxproj'),
|
|
61
|
-
])
|
|
62
|
-
if (!isRecord(project) || typeof project.parseSync !== 'function')
|
|
63
|
-
throw new Error('native Xcode project is malformed')
|
|
64
|
-
Reflect.apply(project.parseSync, project, [])
|
|
65
|
-
const hash = project.hash
|
|
66
|
-
const native = isRecord(hash) ? hash.project : null
|
|
67
|
-
const objects = isRecord(native) ? native.objects : null
|
|
68
|
-
if (!isRecord(objects)) throw new Error('native Xcode objects are malformed')
|
|
69
|
-
const unquote = (value: unknown) =>
|
|
70
|
-
typeof value === 'string' ? value.replace(/^"|"$/g, '') : ''
|
|
71
|
-
const targets = isRecord(objects.PBXNativeTarget)
|
|
72
|
-
? Object.values(objects.PBXNativeTarget).filter(
|
|
73
|
-
(target) =>
|
|
74
|
-
isRecord(target) &&
|
|
75
|
-
unquote(target.productType) === 'com.apple.product-type.application',
|
|
76
|
-
)
|
|
77
|
-
: []
|
|
78
|
-
if (targets.length > 1)
|
|
56
|
+
const xcodeproj = path.join(iosRoot, projects[0].name)
|
|
57
|
+
const appTargets = listXcodeAppTargets(xcodeproj)
|
|
58
|
+
if (appTargets.length > 1)
|
|
79
59
|
throw new Error('native Firebase configuration requires a selected app target')
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
const
|
|
83
|
-
|
|
84
|
-
const groups = isRecord(objects.PBXGroup) ? objects.PBXGroup : {}
|
|
85
|
-
const references = isRecord(objects.PBXFileReference)
|
|
86
|
-
? objects.PBXFileReference
|
|
87
|
-
: {}
|
|
88
|
-
const nativeProjects = isRecord(objects.PBXProject)
|
|
89
|
-
? Object.values(objects.PBXProject)
|
|
90
|
-
: []
|
|
91
|
-
const roots = nativeProjects.filter(isRecord).map((value) => value.mainGroup)
|
|
92
|
-
const pending = roots
|
|
93
|
-
.filter((id): id is string => typeof id === 'string')
|
|
94
|
-
.map((id) => ({ id, base: iosRoot }))
|
|
95
|
-
const visited = new Map<string, string>()
|
|
96
|
-
while (pending.length) {
|
|
97
|
-
const item = pending.pop()
|
|
98
|
-
if (!item) break
|
|
99
|
-
const previous = visited.get(item.id)
|
|
100
|
-
if (previous !== undefined) {
|
|
101
|
-
if (previous !== item.base)
|
|
102
|
-
throw new Error('native Xcode group has ambiguous parents')
|
|
103
|
-
continue
|
|
104
|
-
}
|
|
105
|
-
visited.set(item.id, item.base)
|
|
106
|
-
const group = groups[item.id]
|
|
107
|
-
if (!isRecord(group) || !Array.isArray(group.children)) continue
|
|
108
|
-
const sourceTree = unquote(group.sourceTree)
|
|
109
|
-
if (sourceTree && sourceTree !== '<group>' && sourceTree !== 'SOURCE_ROOT')
|
|
110
|
-
continue
|
|
111
|
-
const directory = path.resolve(
|
|
112
|
-
sourceTree === 'SOURCE_ROOT' ? iosRoot : item.base,
|
|
113
|
-
unquote(group.path),
|
|
114
|
-
)
|
|
115
|
-
for (const child of group.children) {
|
|
116
|
-
if (!isRecord(child) || typeof child.value !== 'string') continue
|
|
117
|
-
if (isRecord(groups[child.value])) {
|
|
118
|
-
pending.push({ id: child.value, base: directory })
|
|
119
|
-
continue
|
|
120
|
-
}
|
|
121
|
-
const file = references[child.value]
|
|
122
|
-
if (!isRecord(file)) continue
|
|
123
|
-
const tree = unquote(file.sourceTree)
|
|
124
|
-
if (tree !== '<group>' && tree !== 'SOURCE_ROOT') continue
|
|
125
|
-
const filePath = path.resolve(
|
|
126
|
-
tree === 'SOURCE_ROOT' ? iosRoot : directory,
|
|
127
|
-
unquote(file.path),
|
|
128
|
-
)
|
|
129
|
-
const values = filePaths.get(child.value) ?? new Set<string>()
|
|
130
|
-
values.add(filePath)
|
|
131
|
-
filePaths.set(child.value, values)
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
const buildFiles = isRecord(objects.PBXBuildFile) ? objects.PBXBuildFile : {}
|
|
135
|
-
const filesInPhase = (section: unknown, name: RegExp): string[] => {
|
|
136
|
-
if (!isRecord(section)) return []
|
|
137
|
-
const paths: string[] = []
|
|
138
|
-
for (const phase of buildPhases) {
|
|
139
|
-
if (!isRecord(phase) || typeof phase.value !== 'string') continue
|
|
140
|
-
const value = section[phase.value]
|
|
141
|
-
if (!isRecord(value) || !Array.isArray(value.files)) continue
|
|
142
|
-
for (const entry of value.files) {
|
|
143
|
-
if (!isRecord(entry) || typeof entry.value !== 'string') continue
|
|
144
|
-
const file = buildFiles[entry.value]
|
|
145
|
-
if (!isRecord(file) || typeof file.fileRef !== 'string') continue
|
|
146
|
-
const reference = references[file.fileRef]
|
|
147
|
-
if (
|
|
148
|
-
!isRecord(reference) ||
|
|
149
|
-
!name.test(path.basename(unquote(reference.path)))
|
|
150
|
-
)
|
|
151
|
-
continue
|
|
152
|
-
const candidates = filePaths.get(file.fileRef)
|
|
153
|
-
if (!candidates || candidates.size !== 1)
|
|
154
|
-
throw new Error('native Firebase build resource path is unresolved')
|
|
155
|
-
paths.push(...candidates)
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
return paths
|
|
159
|
-
}
|
|
160
|
-
const delegates = filesInPhase(
|
|
161
|
-
objects.PBXSourcesBuildPhase,
|
|
162
|
-
/^AppDelegate\.(swift|mm|m)$/,
|
|
60
|
+
if (appTargets.length === 1) {
|
|
61
|
+
const app = readXcodeAppTarget(xcodeproj, appTargets[0])
|
|
62
|
+
const delegates = app.allSources.filter((file) =>
|
|
63
|
+
/^AppDelegate\.(swift|mm|m)$/.test(path.basename(file)),
|
|
163
64
|
)
|
|
164
65
|
const defaultConfigured = delegates.some((file) => {
|
|
165
66
|
const source = fs
|
|
@@ -195,15 +96,20 @@ export function readNativeFirebaseConfig(
|
|
|
195
96
|
return true
|
|
196
97
|
})
|
|
197
98
|
if (defaultConfigured) {
|
|
198
|
-
const resources =
|
|
199
|
-
|
|
200
|
-
/^GoogleService-Info\.plist$/,
|
|
99
|
+
const resources = app.resources.filter((file) =>
|
|
100
|
+
/^GoogleService-Info\.plist$/.test(path.basename(file)),
|
|
201
101
|
)
|
|
202
102
|
if (resources.length !== 1)
|
|
203
103
|
throw new Error(
|
|
204
104
|
'native Firebase default initialization requires one GoogleService-Info.plist build resource',
|
|
205
105
|
)
|
|
206
|
-
|
|
106
|
+
// the target's paths are canonical, so the base must be too
|
|
107
|
+
config.ios = {
|
|
108
|
+
googleServicesFile: path.relative(
|
|
109
|
+
fs.realpathSync(projectRoot),
|
|
110
|
+
resources[0],
|
|
111
|
+
),
|
|
112
|
+
}
|
|
207
113
|
}
|
|
208
114
|
}
|
|
209
115
|
}
|