peachsim 0.1.1844 → 0.1.1845
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/commands/shell-url.ts +1 -1
- 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 +65 -29
- 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 +45 -19
- 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 +69 -30
- 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 +207 -12
- 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 +207 -12
- package/dist-lib/native-app-identity-project.cjs +10 -5
- package/dist-lib/native-app-identity-project.mjs +10 -5
- 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 +269 -48
- 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 +11 -3
- 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/node.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +1 -0
- package/package.json +1 -1
- package/src/expo-swift-host.ts +36 -12
- package/src/expoSwiftContract.ts +1 -0
- package/src/native-firebase-config.ts +268 -9
- package/src/nitro-dependencies.ts +14 -0
- package/src/turbo-source.ts +12 -3
- package/src/xcode-project.ts +23 -5
package/dist-lib/metro.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1845 | (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;
|
|
@@ -39,7 +39,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
39
39
|
var define_SWIFT_COVERAGE_SOURCE_DIGESTS_default;
|
|
40
40
|
var init_define_SWIFT_COVERAGE_SOURCE_DIGESTS = __esm({
|
|
41
41
|
"<define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>"() {
|
|
42
|
-
define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "8b398ceb60faf4a5729842cab60f49c2e601d6fc6bbbc1faec9023ecb8141990", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "08583ee03b92e00f3f331e52fb480ef81c9fd7e668d796a5afcfa07978bcaf03", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "26f8d4a25d1af9917f0005153c73c9cefa4f6681c9d56c6333b8096190db0431", "swift-package.ts": "e224b5e20ed3a86df1c62d6429e88234ed65317ce32c61c1b6b02aaee173d64f", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "a90155695844684e625ab83687161104f028ef34030715a40042a4407b77fca0", "home-paths.ts": "744d0e29fcc4baae6748161da45dd75e357348703331dad685c74ec813abcc83", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "
|
|
42
|
+
define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "8b398ceb60faf4a5729842cab60f49c2e601d6fc6bbbc1faec9023ecb8141990", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "08583ee03b92e00f3f331e52fb480ef81c9fd7e668d796a5afcfa07978bcaf03", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "26f8d4a25d1af9917f0005153c73c9cefa4f6681c9d56c6333b8096190db0431", "swift-package.ts": "e224b5e20ed3a86df1c62d6429e88234ed65317ce32c61c1b6b02aaee173d64f", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "a90155695844684e625ab83687161104f028ef34030715a40042a4407b77fca0", "home-paths.ts": "744d0e29fcc4baae6748161da45dd75e357348703331dad685c74ec813abcc83", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "1594a888c8d4d1f26bb06e522ccbdeecf314934063ac635eedd6f4938e0684fd", "xcode-target-members.ts": "75a23a5fc54cc6f5e952d545f2f0f86241ff36525ab4e568c172e83c3bfb9da4", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
|
|
@@ -2525,7 +2525,7 @@ var init_swift_submit = __esm({
|
|
|
2525
2525
|
});
|
|
2526
2526
|
|
|
2527
2527
|
// src/nitro-dependencies.ts
|
|
2528
|
-
var import_node_child_process7, import_node_util5, run4, DOUBLE_CONVERSION_WASM32_BACKPORT, RN_SHARED_DEPENDENCIES, RN_FMT_11_DEPENDENCIES, RN_FMT_12_DEPENDENCIES;
|
|
2528
|
+
var import_node_child_process7, import_node_util5, run4, DOUBLE_CONVERSION_WASM32_BACKPORT, RN_SHARED_DEPENDENCIES, RN_FMT_11_DEPENDENCIES, RN_FAST_FLOAT_6_DEPENDENCIES, RN_FMT_12_DEPENDENCIES;
|
|
2529
2529
|
var init_nitro_dependencies = __esm({
|
|
2530
2530
|
"src/nitro-dependencies.ts"() {
|
|
2531
2531
|
"use strict";
|
|
@@ -2592,6 +2592,14 @@ var init_nitro_dependencies = __esm({
|
|
|
2592
2592
|
sourceDirectories: ["include/fmt", "src"]
|
|
2593
2593
|
}
|
|
2594
2594
|
];
|
|
2595
|
+
RN_FAST_FLOAT_6_DEPENDENCIES = RN_FMT_11_DEPENDENCIES.map(
|
|
2596
|
+
(dependency) => dependency.name === "fast_float" ? {
|
|
2597
|
+
...dependency,
|
|
2598
|
+
url: "https://github.com/fastfloat/fast_float/archive/v6.1.4.tar.gz",
|
|
2599
|
+
sha256: "12cb6d250824160ca16bcb9d51f0ca7693d0d10cb444f34f1093bc02acfce704",
|
|
2600
|
+
prefix: "fast_float-6.1.4"
|
|
2601
|
+
} : dependency
|
|
2602
|
+
);
|
|
2595
2603
|
RN_FMT_12_DEPENDENCIES = [
|
|
2596
2604
|
...RN_SHARED_DEPENDENCIES,
|
|
2597
2605
|
{
|
|
@@ -14992,7 +15000,12 @@ var NativeAppTargetSelectionError = class extends Error {
|
|
|
14992
15000
|
function selectIosAppTarget(projectRoot, iosTarget) {
|
|
14993
15001
|
const nested = import_node_path18.default.join(projectRoot, "ios");
|
|
14994
15002
|
const iosRoot = import_node_fs15.default.existsSync(nested) ? nested : projectRoot;
|
|
14995
|
-
const
|
|
15003
|
+
const entries = import_node_fs15.default.readdirSync(iosRoot, { withFileTypes: true });
|
|
15004
|
+
const projects = (entries.some((entry) => entry.isDirectory() && entry.name.endsWith(".xcodeproj")) ? entries.filter((entry) => entry.isDirectory() && entry.name.endsWith(".xcodeproj")).map((entry) => import_node_path18.default.join(iosRoot, entry.name)) : entries.filter((entry) => entry.isDirectory() && entry.name.endsWith(".xcworkspace")).flatMap((entry) => workspaceReferences(import_node_path18.default.join(iosRoot, entry.name))).filter(
|
|
15005
|
+
(xcodeproj2) => xcodeproj2.endsWith(".xcodeproj") && !xcodeproj2.split(import_node_path18.default.sep).includes("Pods") && import_node_fs15.default.existsSync(xcodeproj2)
|
|
15006
|
+
).filter(
|
|
15007
|
+
(xcodeproj2) => listXcodeAppTargets(xcodeproj2, { requireSources: false }).length > 0
|
|
15008
|
+
)).map((xcodeproj2) => ({ xcodeproj: xcodeproj2, name: import_node_path18.default.basename(xcodeproj2) }));
|
|
14996
15009
|
if (projects.length === 0) return null;
|
|
14997
15010
|
if (projects.length > 1 && !iosTarget) {
|
|
14998
15011
|
throw new NativeAppTargetSelectionError(
|
|
@@ -15002,7 +15015,7 @@ function selectIosAppTarget(projectRoot, iosTarget) {
|
|
|
15002
15015
|
let project = projects[0];
|
|
15003
15016
|
if (iosTarget && projects.length > 1) {
|
|
15004
15017
|
const matches = projects.filter(
|
|
15005
|
-
(entry) => listXcodeAppTargets(
|
|
15018
|
+
(entry) => listXcodeAppTargets(entry.xcodeproj, {
|
|
15006
15019
|
requireSources: false
|
|
15007
15020
|
}).includes(iosTarget)
|
|
15008
15021
|
);
|
|
@@ -15014,7 +15027,7 @@ function selectIosAppTarget(projectRoot, iosTarget) {
|
|
|
15014
15027
|
);
|
|
15015
15028
|
project = matches[0];
|
|
15016
15029
|
}
|
|
15017
|
-
const xcodeproj =
|
|
15030
|
+
const xcodeproj = project.xcodeproj;
|
|
15018
15031
|
const appTargets = listXcodeAppTargets(xcodeproj, { requireSources: false });
|
|
15019
15032
|
let target = iosTarget ?? defaultXcodeAppTarget(xcodeproj);
|
|
15020
15033
|
if (!target) throw new Error("native app identity has no iOS application target");
|
|
@@ -16358,8 +16371,30 @@ function readExpoConfig(projectRoot) {
|
|
|
16358
16371
|
import_node_fs17.default.rmSync(directory, { recursive: true, force: true });
|
|
16359
16372
|
}
|
|
16360
16373
|
}
|
|
16361
|
-
|
|
16362
|
-
|
|
16374
|
+
var HELPER_DEPTH = 3;
|
|
16375
|
+
var stripComments = (raw) => raw.replace(
|
|
16376
|
+
/\/\*[\s\S]*?\*\/|\/\/[^\n]*|"(?:\\.|[^"\\])*"/g,
|
|
16377
|
+
(token) => token.startsWith('"') ? token : token.replace(/[^\n]/g, " ")
|
|
16378
|
+
);
|
|
16379
|
+
function splitStatements(raw) {
|
|
16380
|
+
const clean = stripComments(raw);
|
|
16381
|
+
const blank = blankSwiftObjcLiterals(raw);
|
|
16382
|
+
const statements = [];
|
|
16383
|
+
let depth = 0;
|
|
16384
|
+
let start = 0;
|
|
16385
|
+
for (let index = 0; index < blank.length; index++) {
|
|
16386
|
+
const char = blank[index];
|
|
16387
|
+
if (char === "{" || char === "(" || char === "[") depth += 1;
|
|
16388
|
+
if (char === "}" || char === ")" || char === "]") depth -= 1;
|
|
16389
|
+
if (char === ";" && depth === 0 || char === "}" && depth === 0) {
|
|
16390
|
+
statements.push(clean.slice(start, index + (char === "}" ? 1 : 0)).trim());
|
|
16391
|
+
start = index + 1;
|
|
16392
|
+
}
|
|
16393
|
+
}
|
|
16394
|
+
statements.push(clean.slice(start).trim());
|
|
16395
|
+
return statements.filter(Boolean);
|
|
16396
|
+
}
|
|
16397
|
+
function splitClauses(condition) {
|
|
16363
16398
|
const clauses = [];
|
|
16364
16399
|
let depth = 0;
|
|
16365
16400
|
let start = 0;
|
|
@@ -16376,11 +16411,158 @@ function evaluateFirebaseGuard(header, resources) {
|
|
|
16376
16411
|
}
|
|
16377
16412
|
}
|
|
16378
16413
|
clauses.push(condition.slice(start).trim());
|
|
16379
|
-
|
|
16380
|
-
|
|
16414
|
+
return clauses;
|
|
16415
|
+
}
|
|
16416
|
+
function findHelper(type, name2, label, sources) {
|
|
16417
|
+
const found = [];
|
|
16418
|
+
for (const file of sources) {
|
|
16419
|
+
const raw = import_node_fs17.default.readFileSync(file, "utf8");
|
|
16420
|
+
const blank = blankSwiftObjcLiterals(raw);
|
|
16421
|
+
if (file.endsWith(".swift") && label === void 0) {
|
|
16422
|
+
const owners = type ? [
|
|
16423
|
+
...blank.matchAll(
|
|
16424
|
+
new RegExp(`\\b(?:enum|struct|class|extension)\\s+${type}\\b[^{]*\\{`, "g")
|
|
16425
|
+
)
|
|
16426
|
+
].flatMap((match) => {
|
|
16427
|
+
const owner = braceBlock(blank, match.index + match[0].length - 1);
|
|
16428
|
+
return owner ? [{ text: owner.body, offset: match.index + match[0].length }] : [];
|
|
16429
|
+
}) : [{ text: blank, offset: 0 }];
|
|
16430
|
+
for (const owner of owners) {
|
|
16431
|
+
const declaration = new RegExp(
|
|
16432
|
+
`${type ? "\\b(?:static|class)\\s+" : ""}func\\s+${name2}\\s*\\(\\s*\\)\\s*->\\s*Bool\\s*\\{`
|
|
16433
|
+
).exec(owner.text);
|
|
16434
|
+
const block = declaration ? braceBlock(
|
|
16435
|
+
blank,
|
|
16436
|
+
owner.offset + declaration.index + declaration[0].length - 1
|
|
16437
|
+
) : null;
|
|
16438
|
+
if (block)
|
|
16439
|
+
found.push({
|
|
16440
|
+
body: raw.slice(
|
|
16441
|
+
owner.offset + declaration.index + declaration[0].length,
|
|
16442
|
+
block.end - 1
|
|
16443
|
+
),
|
|
16444
|
+
language: "swift",
|
|
16445
|
+
parameter: null,
|
|
16446
|
+
constants: /* @__PURE__ */ new Map()
|
|
16447
|
+
});
|
|
16448
|
+
}
|
|
16449
|
+
}
|
|
16450
|
+
if (/\.mm?$/.test(file) && type) {
|
|
16451
|
+
const implementation = new RegExp(`@implementation\\s+${type}\\b`).exec(blank);
|
|
16452
|
+
const end = implementation ? blank.indexOf("@end", implementation.index) : -1;
|
|
16453
|
+
if (!implementation || end < 0) continue;
|
|
16454
|
+
const suffix = label === void 0 ? "" : `${label[0].toUpperCase()}${label.slice(1)}\\w*`;
|
|
16455
|
+
const declaration = new RegExp(
|
|
16456
|
+
label === void 0 ? `^\\s*\\+\\s*\\(\\s*BOOL\\s*\\)\\s*${name2}\\s*\\{` : `^\\s*\\+\\s*\\(\\s*BOOL\\s*\\)\\s*${name2}${suffix}\\s*:\\s*\\(\\s*NSBundle\\s*\\*\\s*\\)\\s*(\\w+)\\s*\\{`,
|
|
16457
|
+
"m"
|
|
16458
|
+
).exec(blank.slice(implementation.index, end));
|
|
16459
|
+
if (!declaration) continue;
|
|
16460
|
+
const open = implementation.index + declaration.index + declaration[0].length - 1;
|
|
16461
|
+
const block = braceBlock(blank, open);
|
|
16462
|
+
if (!block) continue;
|
|
16463
|
+
const constants = /* @__PURE__ */ new Map();
|
|
16464
|
+
for (const constant of stripComments(raw).matchAll(
|
|
16465
|
+
/\bNSString\s*\*\s*const\s+(\w+)\s*=\s*@"([^"]*)"\s*;/g
|
|
16466
|
+
))
|
|
16467
|
+
constants.set(constant[1], constant[2]);
|
|
16468
|
+
found.push({
|
|
16469
|
+
body: raw.slice(open + 1, block.end - 1),
|
|
16470
|
+
language: "objc",
|
|
16471
|
+
parameter: declaration[1] ?? null,
|
|
16472
|
+
constants
|
|
16473
|
+
});
|
|
16474
|
+
}
|
|
16475
|
+
}
|
|
16476
|
+
return found.length === 1 ? found[0] : null;
|
|
16477
|
+
}
|
|
16478
|
+
function evaluateHelperCall(expression, scope, depth) {
|
|
16479
|
+
if (depth >= HELPER_DEPTH) return null;
|
|
16480
|
+
const call = /^(?:self\s*\.\s*)?(?:([A-Z]\w*)\s*\.\s*)?(\w+)\s*\(\s*(?:(\w+)\s*:\s*Bundle\.main)?\s*\)$/.exec(
|
|
16481
|
+
expression
|
|
16381
16482
|
);
|
|
16483
|
+
if (!call) return null;
|
|
16484
|
+
const helper = findHelper(call[1], call[2], call[3], scope.sources);
|
|
16485
|
+
if (!helper) return null;
|
|
16486
|
+
return helper.language === "swift" ? evaluateSwiftBody(helper.body, scope, depth + 1) : evaluateObjcBody(helper.body, helper.parameter, helper.constants, scope);
|
|
16487
|
+
}
|
|
16488
|
+
function evaluateSwiftBody(body, scope, depth) {
|
|
16382
16489
|
const bound = /* @__PURE__ */ new Map();
|
|
16490
|
+
for (const statement of splitStatements(body)) {
|
|
16491
|
+
const result = /^return\s+([\s\S]+)$/.exec(statement);
|
|
16492
|
+
if (result) return evaluateClauses([result[1].trim()], scope, bound, depth);
|
|
16493
|
+
const branch = /^(if|guard)\b([\s\S]*?)(?:\belse\b)?\s*\{\s*return\s+(true|false)\s*\}$/.exec(
|
|
16494
|
+
statement
|
|
16495
|
+
);
|
|
16496
|
+
if (!branch) return null;
|
|
16497
|
+
const holds = evaluateClauses(splitClauses(branch[2]), scope, bound, depth);
|
|
16498
|
+
if (holds === null) return null;
|
|
16499
|
+
if (holds === (branch[1] === "if")) return branch[3] === "true";
|
|
16500
|
+
}
|
|
16501
|
+
return null;
|
|
16502
|
+
}
|
|
16503
|
+
function evaluateObjcBody(body, bundle, constants, scope) {
|
|
16504
|
+
const plists = scope.resources.filter(
|
|
16505
|
+
(file) => import_node_path20.default.basename(file) === "GoogleService-Info.plist"
|
|
16506
|
+
);
|
|
16507
|
+
const variables = /* @__PURE__ */ new Map();
|
|
16508
|
+
const literal = (text2) => {
|
|
16509
|
+
const quoted = /^@"([^"]*)"$/.exec(text2.trim());
|
|
16510
|
+
return quoted ? quoted[1] : constants.get(text2.trim());
|
|
16511
|
+
};
|
|
16512
|
+
const truthy = (name2) => {
|
|
16513
|
+
const value = variables.get(name2);
|
|
16514
|
+
return typeof value === "string" ? value.length > 0 : value !== void 0;
|
|
16515
|
+
};
|
|
16516
|
+
for (const statement of splitStatements(body)) {
|
|
16517
|
+
if (/^return\s+YES$/.test(statement)) return true;
|
|
16518
|
+
if (/^return\s+NO$/.test(statement)) return false;
|
|
16519
|
+
const early = /^if\s*\(\s*(!?)\s*(\w+)(\.length)?\s*\)\s*\{?\s*return\s+(YES|NO)\s*;?\s*\}?$/.exec(
|
|
16520
|
+
statement
|
|
16521
|
+
);
|
|
16522
|
+
if (early) {
|
|
16523
|
+
if (!variables.has(early[2])) return null;
|
|
16524
|
+
if (early[1] === "!" === !truthy(early[2])) return early[4] === "YES";
|
|
16525
|
+
continue;
|
|
16526
|
+
}
|
|
16527
|
+
const declaration = /^(?:NSString|NSDictionary)\s*\*\s*(\w+)\s*=\s*([\s\S]+)$/.exec(
|
|
16528
|
+
statement
|
|
16529
|
+
);
|
|
16530
|
+
if (!declaration) return null;
|
|
16531
|
+
const name2 = declaration[1];
|
|
16532
|
+
const value = declaration[2];
|
|
16533
|
+
const bundlePath = new RegExp(`^${bundle}\\.bundlePath$`).exec(value.trim());
|
|
16534
|
+
const resource = new RegExp(
|
|
16535
|
+
`^\\[\\s*${bundle}\\s+pathForResource:\\s*([^\\s]+)\\s+ofType:\\s*([^\\s\\]]+)\\s*\\]$`
|
|
16536
|
+
).exec(value.trim());
|
|
16537
|
+
const dictionary = /^\[\s*NSDictionary\s+dictionaryWithContentsOfFile:\s*(\w+)\s*\]$/.exec(
|
|
16538
|
+
value.trim()
|
|
16539
|
+
);
|
|
16540
|
+
const entry = /^(\w+)\s*\[\s*([^\]\s]+)\s*\]$/.exec(value.trim());
|
|
16541
|
+
if (bundle && bundlePath) variables.set(name2, "main bundle");
|
|
16542
|
+
else if (bundle && resource) {
|
|
16543
|
+
if (literal(resource[1]) !== "GoogleService-Info" || literal(resource[2]) !== "plist")
|
|
16544
|
+
return null;
|
|
16545
|
+
variables.set(name2, plists.length === 1 ? plists[0] : void 0);
|
|
16546
|
+
} else if (dictionary && variables.has(dictionary[1])) {
|
|
16547
|
+
const file = variables.get(dictionary[1]);
|
|
16548
|
+
const parsed = typeof file === "string" ? parsePlistSource(import_node_fs17.default.readFileSync(file, "utf8")) : void 0;
|
|
16549
|
+
variables.set(name2, isRecord(parsed) ? parsed : void 0);
|
|
16550
|
+
} else if (entry && variables.has(entry[1])) {
|
|
16551
|
+
const key = literal(entry[2]);
|
|
16552
|
+
const source = variables.get(entry[1]);
|
|
16553
|
+
if (key === void 0) return null;
|
|
16554
|
+
variables.set(name2, isRecord(source) ? source[key] : void 0);
|
|
16555
|
+
} else return null;
|
|
16556
|
+
}
|
|
16557
|
+
return null;
|
|
16558
|
+
}
|
|
16559
|
+
function evaluateClauses(clauses, scope, bound, depth) {
|
|
16560
|
+
const sources = scope.resources.filter(
|
|
16561
|
+
(file) => import_node_path20.default.basename(file) === "GoogleService-Info.plist"
|
|
16562
|
+
);
|
|
16383
16563
|
for (const clause of clauses) {
|
|
16564
|
+
if (clause === "true") continue;
|
|
16565
|
+
if (clause === "false") return false;
|
|
16384
16566
|
if (/^FirebaseApp\s*\.\s*app\s*\(\s*\)\s*==\s*nil$/.test(clause)) continue;
|
|
16385
16567
|
const resource = /^let\s+(\w+)\s*=\s*Bundle\.main\.path\s*\(\s*forResource:\s*"GoogleService-Info"\s*,\s*ofType:\s*"plist"\s*\)$/.exec(
|
|
16386
16568
|
clause
|
|
@@ -16415,10 +16597,17 @@ function evaluateFirebaseGuard(header, resources) {
|
|
|
16415
16597
|
if (!subject.startsWith(prefix2[2])) return false;
|
|
16416
16598
|
continue;
|
|
16417
16599
|
}
|
|
16418
|
-
|
|
16600
|
+
const negated = clause.startsWith("!");
|
|
16601
|
+
const called = evaluateHelperCall(clause.replace(/^!\s*/, ""), scope, depth);
|
|
16602
|
+
if (called === null) return null;
|
|
16603
|
+
if (called === negated) return false;
|
|
16419
16604
|
}
|
|
16420
16605
|
return true;
|
|
16421
16606
|
}
|
|
16607
|
+
function evaluateFirebaseGuard(header, scope) {
|
|
16608
|
+
const condition = header.replace(/^\s*if\b/, "").replace(/\{\s*$/, "");
|
|
16609
|
+
return evaluateClauses(splitClauses(condition), scope, /* @__PURE__ */ new Map(), 0);
|
|
16610
|
+
}
|
|
16422
16611
|
function blankSwiftObjcLiterals(raw) {
|
|
16423
16612
|
return raw.replace(
|
|
16424
16613
|
/\/\*[\s\S]*?\*\/|\/\/[^\n]*|"(?:\\.|[^"\\])*"/g,
|
|
@@ -16557,7 +16746,13 @@ function readTargetGoogleServicesFile(projectRoot, xcodeproj, target, prepareGen
|
|
|
16557
16746
|
if (nesting === 0) topLevelBefore += token;
|
|
16558
16747
|
if (token === "}") nesting -= 1;
|
|
16559
16748
|
}
|
|
16560
|
-
const guarded = guard === null ? true : evaluateFirebaseGuard(guard,
|
|
16749
|
+
const guarded = guard === null ? true : evaluateFirebaseGuard(guard, {
|
|
16750
|
+
resources: app.resources,
|
|
16751
|
+
sources: [
|
|
16752
|
+
...app.allSources,
|
|
16753
|
+
...app.frameworks.flatMap((framework) => framework.allSources)
|
|
16754
|
+
]
|
|
16755
|
+
});
|
|
16561
16756
|
if (guarded === null || depth !== 1 || conditionalDepth !== 0 || /\b(?:return|throw)\b/.test(topLevelBefore))
|
|
16562
16757
|
throw new Error(
|
|
16563
16758
|
"native Firebase initialization must be unconditional in the app launch method"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1845 | (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;
|
|
@@ -39,7 +39,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
39
39
|
var define_SWIFT_COVERAGE_SOURCE_DIGESTS_default;
|
|
40
40
|
var init_define_SWIFT_COVERAGE_SOURCE_DIGESTS = __esm({
|
|
41
41
|
"<define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>"() {
|
|
42
|
-
define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "8b398ceb60faf4a5729842cab60f49c2e601d6fc6bbbc1faec9023ecb8141990", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "08583ee03b92e00f3f331e52fb480ef81c9fd7e668d796a5afcfa07978bcaf03", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "26f8d4a25d1af9917f0005153c73c9cefa4f6681c9d56c6333b8096190db0431", "swift-package.ts": "e224b5e20ed3a86df1c62d6429e88234ed65317ce32c61c1b6b02aaee173d64f", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "a90155695844684e625ab83687161104f028ef34030715a40042a4407b77fca0", "home-paths.ts": "744d0e29fcc4baae6748161da45dd75e357348703331dad685c74ec813abcc83", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "
|
|
42
|
+
define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "8b398ceb60faf4a5729842cab60f49c2e601d6fc6bbbc1faec9023ecb8141990", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "08583ee03b92e00f3f331e52fb480ef81c9fd7e668d796a5afcfa07978bcaf03", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "26f8d4a25d1af9917f0005153c73c9cefa4f6681c9d56c6333b8096190db0431", "swift-package.ts": "e224b5e20ed3a86df1c62d6429e88234ed65317ce32c61c1b6b02aaee173d64f", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "a90155695844684e625ab83687161104f028ef34030715a40042a4407b77fca0", "home-paths.ts": "744d0e29fcc4baae6748161da45dd75e357348703331dad685c74ec813abcc83", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "1594a888c8d4d1f26bb06e522ccbdeecf314934063ac635eedd6f4938e0684fd", "xcode-target-members.ts": "75a23a5fc54cc6f5e952d545f2f0f86241ff36525ab4e568c172e83c3bfb9da4", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
|
|
@@ -4329,7 +4329,12 @@ var NativeAppTargetSelectionError = class extends Error {
|
|
|
4329
4329
|
function selectIosAppTarget(projectRoot, iosTarget) {
|
|
4330
4330
|
const nested = import_node_path10.default.join(projectRoot, "ios");
|
|
4331
4331
|
const iosRoot = import_node_fs6.default.existsSync(nested) ? nested : projectRoot;
|
|
4332
|
-
const
|
|
4332
|
+
const entries = import_node_fs6.default.readdirSync(iosRoot, { withFileTypes: true });
|
|
4333
|
+
const projects = (entries.some((entry) => entry.isDirectory() && entry.name.endsWith(".xcodeproj")) ? entries.filter((entry) => entry.isDirectory() && entry.name.endsWith(".xcodeproj")).map((entry) => import_node_path10.default.join(iosRoot, entry.name)) : entries.filter((entry) => entry.isDirectory() && entry.name.endsWith(".xcworkspace")).flatMap((entry) => workspaceReferences(import_node_path10.default.join(iosRoot, entry.name))).filter(
|
|
4334
|
+
(xcodeproj2) => xcodeproj2.endsWith(".xcodeproj") && !xcodeproj2.split(import_node_path10.default.sep).includes("Pods") && import_node_fs6.default.existsSync(xcodeproj2)
|
|
4335
|
+
).filter(
|
|
4336
|
+
(xcodeproj2) => listXcodeAppTargets(xcodeproj2, { requireSources: false }).length > 0
|
|
4337
|
+
)).map((xcodeproj2) => ({ xcodeproj: xcodeproj2, name: import_node_path10.default.basename(xcodeproj2) }));
|
|
4333
4338
|
if (projects.length === 0) return null;
|
|
4334
4339
|
if (projects.length > 1 && !iosTarget) {
|
|
4335
4340
|
throw new NativeAppTargetSelectionError(
|
|
@@ -4339,7 +4344,7 @@ function selectIosAppTarget(projectRoot, iosTarget) {
|
|
|
4339
4344
|
let project = projects[0];
|
|
4340
4345
|
if (iosTarget && projects.length > 1) {
|
|
4341
4346
|
const matches = projects.filter(
|
|
4342
|
-
(entry) => listXcodeAppTargets(
|
|
4347
|
+
(entry) => listXcodeAppTargets(entry.xcodeproj, {
|
|
4343
4348
|
requireSources: false
|
|
4344
4349
|
}).includes(iosTarget)
|
|
4345
4350
|
);
|
|
@@ -4351,7 +4356,7 @@ function selectIosAppTarget(projectRoot, iosTarget) {
|
|
|
4351
4356
|
);
|
|
4352
4357
|
project = matches[0];
|
|
4353
4358
|
}
|
|
4354
|
-
const xcodeproj =
|
|
4359
|
+
const xcodeproj = project.xcodeproj;
|
|
4355
4360
|
const appTargets = listXcodeAppTargets(xcodeproj, { requireSources: false });
|
|
4356
4361
|
let target = iosTarget ?? defaultXcodeAppTarget(xcodeproj);
|
|
4357
4362
|
if (!target) throw new Error("native app identity has no iOS application target");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1845 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -32,7 +32,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
32
32
|
var define_SWIFT_COVERAGE_SOURCE_DIGESTS_default;
|
|
33
33
|
var init_define_SWIFT_COVERAGE_SOURCE_DIGESTS = __esm({
|
|
34
34
|
"<define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>"() {
|
|
35
|
-
define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "8b398ceb60faf4a5729842cab60f49c2e601d6fc6bbbc1faec9023ecb8141990", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "08583ee03b92e00f3f331e52fb480ef81c9fd7e668d796a5afcfa07978bcaf03", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "26f8d4a25d1af9917f0005153c73c9cefa4f6681c9d56c6333b8096190db0431", "swift-package.ts": "e224b5e20ed3a86df1c62d6429e88234ed65317ce32c61c1b6b02aaee173d64f", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "a90155695844684e625ab83687161104f028ef34030715a40042a4407b77fca0", "home-paths.ts": "744d0e29fcc4baae6748161da45dd75e357348703331dad685c74ec813abcc83", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "
|
|
35
|
+
define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "8b398ceb60faf4a5729842cab60f49c2e601d6fc6bbbc1faec9023ecb8141990", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "08583ee03b92e00f3f331e52fb480ef81c9fd7e668d796a5afcfa07978bcaf03", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "26f8d4a25d1af9917f0005153c73c9cefa4f6681c9d56c6333b8096190db0431", "swift-package.ts": "e224b5e20ed3a86df1c62d6429e88234ed65317ce32c61c1b6b02aaee173d64f", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "a90155695844684e625ab83687161104f028ef34030715a40042a4407b77fca0", "home-paths.ts": "744d0e29fcc4baae6748161da45dd75e357348703331dad685c74ec813abcc83", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "1594a888c8d4d1f26bb06e522ccbdeecf314934063ac635eedd6f4938e0684fd", "xcode-target-members.ts": "75a23a5fc54cc6f5e952d545f2f0f86241ff36525ab4e568c172e83c3bfb9da4", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
|
|
@@ -4470,7 +4470,12 @@ var NativeAppTargetSelectionError = class extends Error {
|
|
|
4470
4470
|
function selectIosAppTarget(projectRoot, iosTarget) {
|
|
4471
4471
|
const nested = path30.join(projectRoot, "ios");
|
|
4472
4472
|
const iosRoot = fs16.existsSync(nested) ? nested : projectRoot;
|
|
4473
|
-
const
|
|
4473
|
+
const entries = fs16.readdirSync(iosRoot, { withFileTypes: true });
|
|
4474
|
+
const projects = (entries.some((entry) => entry.isDirectory() && entry.name.endsWith(".xcodeproj")) ? entries.filter((entry) => entry.isDirectory() && entry.name.endsWith(".xcodeproj")).map((entry) => path30.join(iosRoot, entry.name)) : entries.filter((entry) => entry.isDirectory() && entry.name.endsWith(".xcworkspace")).flatMap((entry) => workspaceReferences(path30.join(iosRoot, entry.name))).filter(
|
|
4475
|
+
(xcodeproj2) => xcodeproj2.endsWith(".xcodeproj") && !xcodeproj2.split(path30.sep).includes("Pods") && fs16.existsSync(xcodeproj2)
|
|
4476
|
+
).filter(
|
|
4477
|
+
(xcodeproj2) => listXcodeAppTargets(xcodeproj2, { requireSources: false }).length > 0
|
|
4478
|
+
)).map((xcodeproj2) => ({ xcodeproj: xcodeproj2, name: path30.basename(xcodeproj2) }));
|
|
4474
4479
|
if (projects.length === 0) return null;
|
|
4475
4480
|
if (projects.length > 1 && !iosTarget) {
|
|
4476
4481
|
throw new NativeAppTargetSelectionError(
|
|
@@ -4480,7 +4485,7 @@ function selectIosAppTarget(projectRoot, iosTarget) {
|
|
|
4480
4485
|
let project = projects[0];
|
|
4481
4486
|
if (iosTarget && projects.length > 1) {
|
|
4482
4487
|
const matches = projects.filter(
|
|
4483
|
-
(entry) => listXcodeAppTargets(
|
|
4488
|
+
(entry) => listXcodeAppTargets(entry.xcodeproj, {
|
|
4484
4489
|
requireSources: false
|
|
4485
4490
|
}).includes(iosTarget)
|
|
4486
4491
|
);
|
|
@@ -4492,7 +4497,7 @@ function selectIosAppTarget(projectRoot, iosTarget) {
|
|
|
4492
4497
|
);
|
|
4493
4498
|
project = matches[0];
|
|
4494
4499
|
}
|
|
4495
|
-
const xcodeproj =
|
|
4500
|
+
const xcodeproj = project.xcodeproj;
|
|
4496
4501
|
const appTargets = listXcodeAppTargets(xcodeproj, { requireSources: false });
|
|
4497
4502
|
let target = iosTarget ?? defaultXcodeAppTarget(xcodeproj);
|
|
4498
4503
|
if (!target) throw new Error("native app identity has no iOS application target");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1845 | (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.1845 | (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.1845 | (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/plist.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1845 | (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/plist.mjs
CHANGED
package/dist-lib/profiles.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1845 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1845 | (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;
|