peachsim 0.1.1844 → 0.1.1846
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 +80 -31
- 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 +46 -20
- 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 +84 -32
- 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 +224 -16
- 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 +224 -16
- package/dist-lib/native-app-identity-project.cjs +24 -6
- package/dist-lib/native-app-identity-project.mjs +24 -6
- 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 +287 -53
- 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 +42 -17
- package/src/expoSwiftContract.ts +1 -0
- package/src/native-firebase-config.ts +271 -12
- package/src/nitro-dependencies.ts +14 -0
- package/src/turbo-source.ts +12 -3
- package/src/xcode-project.ts +38 -7
package/dist-lib/metro.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1846 | (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": "3f580bf7c3c1c248f7671cf5bd7131dc2bb11324d1e0c67dd559e0d4e4de3f6f", "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,25 @@ 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) => ({
|
|
15005
|
+
xcodeproj: import_node_path18.default.join(iosRoot, entry.name),
|
|
15006
|
+
workspace: null
|
|
15007
|
+
})) : entries.filter((entry) => entry.isDirectory() && entry.name.endsWith(".xcworkspace")).flatMap((entry) => {
|
|
15008
|
+
const workspace = import_node_path18.default.join(iosRoot, entry.name);
|
|
15009
|
+
return workspaceReferences(workspace).map((xcodeproj2) => ({
|
|
15010
|
+
xcodeproj: xcodeproj2,
|
|
15011
|
+
workspace
|
|
15012
|
+
}));
|
|
15013
|
+
}).filter(
|
|
15014
|
+
({ xcodeproj: xcodeproj2 }) => xcodeproj2.endsWith(".xcodeproj") && !xcodeproj2.split(import_node_path18.default.sep).includes("Pods") && import_node_fs15.default.existsSync(xcodeproj2)
|
|
15015
|
+
).filter(
|
|
15016
|
+
({ xcodeproj: xcodeproj2 }) => listXcodeAppTargets(xcodeproj2, { requireSources: false }).length > 0
|
|
15017
|
+
)).map(({ xcodeproj: xcodeproj2, workspace }) => ({
|
|
15018
|
+
xcodeproj: xcodeproj2,
|
|
15019
|
+
workspace,
|
|
15020
|
+
name: import_node_path18.default.basename(xcodeproj2)
|
|
15021
|
+
}));
|
|
14996
15022
|
if (projects.length === 0) return null;
|
|
14997
15023
|
if (projects.length > 1 && !iosTarget) {
|
|
14998
15024
|
throw new NativeAppTargetSelectionError(
|
|
@@ -15002,7 +15028,7 @@ function selectIosAppTarget(projectRoot, iosTarget) {
|
|
|
15002
15028
|
let project = projects[0];
|
|
15003
15029
|
if (iosTarget && projects.length > 1) {
|
|
15004
15030
|
const matches = projects.filter(
|
|
15005
|
-
(entry) => listXcodeAppTargets(
|
|
15031
|
+
(entry) => listXcodeAppTargets(entry.xcodeproj, {
|
|
15006
15032
|
requireSources: false
|
|
15007
15033
|
}).includes(iosTarget)
|
|
15008
15034
|
);
|
|
@@ -15014,7 +15040,7 @@ function selectIosAppTarget(projectRoot, iosTarget) {
|
|
|
15014
15040
|
);
|
|
15015
15041
|
project = matches[0];
|
|
15016
15042
|
}
|
|
15017
|
-
const xcodeproj =
|
|
15043
|
+
const xcodeproj = project.xcodeproj;
|
|
15018
15044
|
const appTargets = listXcodeAppTargets(xcodeproj, { requireSources: false });
|
|
15019
15045
|
let target = iosTarget ?? defaultXcodeAppTarget(xcodeproj);
|
|
15020
15046
|
if (!target) throw new Error("native app identity has no iOS application target");
|
|
@@ -15033,7 +15059,7 @@ function selectIosAppTarget(projectRoot, iosTarget) {
|
|
|
15033
15059
|
}
|
|
15034
15060
|
if (!appTargets.includes(target))
|
|
15035
15061
|
throw new Error(`native app identity has no application target ${target}`);
|
|
15036
|
-
return { xcodeproj, target };
|
|
15062
|
+
return { xcodeproj, target, workspace: project.workspace };
|
|
15037
15063
|
}
|
|
15038
15064
|
var workspaceResolvedFile = (xcodeprojOrWorkspace) => import_node_path18.default.join(
|
|
15039
15065
|
xcodeprojOrWorkspace.endsWith(".xcworkspace") ? xcodeprojOrWorkspace : import_node_path18.default.join(xcodeprojOrWorkspace, "project.xcworkspace"),
|
|
@@ -16358,8 +16384,30 @@ function readExpoConfig(projectRoot) {
|
|
|
16358
16384
|
import_node_fs17.default.rmSync(directory, { recursive: true, force: true });
|
|
16359
16385
|
}
|
|
16360
16386
|
}
|
|
16361
|
-
|
|
16362
|
-
|
|
16387
|
+
var HELPER_DEPTH = 3;
|
|
16388
|
+
var stripComments = (raw) => raw.replace(
|
|
16389
|
+
/\/\*[\s\S]*?\*\/|\/\/[^\n]*|"(?:\\.|[^"\\])*"/g,
|
|
16390
|
+
(token) => token.startsWith('"') ? token : token.replace(/[^\n]/g, " ")
|
|
16391
|
+
);
|
|
16392
|
+
function splitStatements(raw) {
|
|
16393
|
+
const clean = stripComments(raw);
|
|
16394
|
+
const blank = blankSwiftObjcLiterals(raw);
|
|
16395
|
+
const statements = [];
|
|
16396
|
+
let depth = 0;
|
|
16397
|
+
let start = 0;
|
|
16398
|
+
for (let index = 0; index < blank.length; index++) {
|
|
16399
|
+
const char = blank[index];
|
|
16400
|
+
if (char === "{" || char === "(" || char === "[") depth += 1;
|
|
16401
|
+
if (char === "}" || char === ")" || char === "]") depth -= 1;
|
|
16402
|
+
if (char === ";" && depth === 0 || char === "}" && depth === 0) {
|
|
16403
|
+
statements.push(clean.slice(start, index + (char === "}" ? 1 : 0)).trim());
|
|
16404
|
+
start = index + 1;
|
|
16405
|
+
}
|
|
16406
|
+
}
|
|
16407
|
+
statements.push(clean.slice(start).trim());
|
|
16408
|
+
return statements.filter(Boolean);
|
|
16409
|
+
}
|
|
16410
|
+
function splitClauses(condition) {
|
|
16363
16411
|
const clauses = [];
|
|
16364
16412
|
let depth = 0;
|
|
16365
16413
|
let start = 0;
|
|
@@ -16376,11 +16424,158 @@ function evaluateFirebaseGuard(header, resources) {
|
|
|
16376
16424
|
}
|
|
16377
16425
|
}
|
|
16378
16426
|
clauses.push(condition.slice(start).trim());
|
|
16379
|
-
|
|
16380
|
-
|
|
16427
|
+
return clauses;
|
|
16428
|
+
}
|
|
16429
|
+
function findHelper(type, name2, label, sources) {
|
|
16430
|
+
const found = [];
|
|
16431
|
+
for (const file of sources) {
|
|
16432
|
+
const raw = import_node_fs17.default.readFileSync(file, "utf8");
|
|
16433
|
+
const blank = blankSwiftObjcLiterals(raw);
|
|
16434
|
+
if (file.endsWith(".swift") && label === void 0) {
|
|
16435
|
+
const owners = type ? [
|
|
16436
|
+
...blank.matchAll(
|
|
16437
|
+
new RegExp(`\\b(?:enum|struct|class|extension)\\s+${type}\\b[^{]*\\{`, "g")
|
|
16438
|
+
)
|
|
16439
|
+
].flatMap((match) => {
|
|
16440
|
+
const owner = braceBlock(blank, match.index + match[0].length - 1);
|
|
16441
|
+
return owner ? [{ text: owner.body, offset: match.index + match[0].length }] : [];
|
|
16442
|
+
}) : [{ text: blank, offset: 0 }];
|
|
16443
|
+
for (const owner of owners) {
|
|
16444
|
+
const declaration = new RegExp(
|
|
16445
|
+
`${type ? "\\b(?:static|class)\\s+" : ""}func\\s+${name2}\\s*\\(\\s*\\)\\s*->\\s*Bool\\s*\\{`
|
|
16446
|
+
).exec(owner.text);
|
|
16447
|
+
const block = declaration ? braceBlock(
|
|
16448
|
+
blank,
|
|
16449
|
+
owner.offset + declaration.index + declaration[0].length - 1
|
|
16450
|
+
) : null;
|
|
16451
|
+
if (block)
|
|
16452
|
+
found.push({
|
|
16453
|
+
body: raw.slice(
|
|
16454
|
+
owner.offset + declaration.index + declaration[0].length,
|
|
16455
|
+
block.end - 1
|
|
16456
|
+
),
|
|
16457
|
+
language: "swift",
|
|
16458
|
+
parameter: null,
|
|
16459
|
+
constants: /* @__PURE__ */ new Map()
|
|
16460
|
+
});
|
|
16461
|
+
}
|
|
16462
|
+
}
|
|
16463
|
+
if (/\.mm?$/.test(file) && type) {
|
|
16464
|
+
const implementation = new RegExp(`@implementation\\s+${type}\\b`).exec(blank);
|
|
16465
|
+
const end = implementation ? blank.indexOf("@end", implementation.index) : -1;
|
|
16466
|
+
if (!implementation || end < 0) continue;
|
|
16467
|
+
const suffix = label === void 0 ? "" : `${label[0].toUpperCase()}${label.slice(1)}\\w*`;
|
|
16468
|
+
const declaration = new RegExp(
|
|
16469
|
+
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*\\{`,
|
|
16470
|
+
"m"
|
|
16471
|
+
).exec(blank.slice(implementation.index, end));
|
|
16472
|
+
if (!declaration) continue;
|
|
16473
|
+
const open = implementation.index + declaration.index + declaration[0].length - 1;
|
|
16474
|
+
const block = braceBlock(blank, open);
|
|
16475
|
+
if (!block) continue;
|
|
16476
|
+
const constants = /* @__PURE__ */ new Map();
|
|
16477
|
+
for (const constant of stripComments(raw).matchAll(
|
|
16478
|
+
/\bNSString\s*\*\s*const\s+(\w+)\s*=\s*@"([^"]*)"\s*;/g
|
|
16479
|
+
))
|
|
16480
|
+
constants.set(constant[1], constant[2]);
|
|
16481
|
+
found.push({
|
|
16482
|
+
body: raw.slice(open + 1, block.end - 1),
|
|
16483
|
+
language: "objc",
|
|
16484
|
+
parameter: declaration[1] ?? null,
|
|
16485
|
+
constants
|
|
16486
|
+
});
|
|
16487
|
+
}
|
|
16488
|
+
}
|
|
16489
|
+
return found.length === 1 ? found[0] : null;
|
|
16490
|
+
}
|
|
16491
|
+
function evaluateHelperCall(expression, scope, depth) {
|
|
16492
|
+
if (depth >= HELPER_DEPTH) return null;
|
|
16493
|
+
const call = /^(?:self\s*\.\s*)?(?:([A-Z]\w*)\s*\.\s*)?(\w+)\s*\(\s*(?:(\w+)\s*:\s*Bundle\.main)?\s*\)$/.exec(
|
|
16494
|
+
expression
|
|
16381
16495
|
);
|
|
16496
|
+
if (!call) return null;
|
|
16497
|
+
const helper = findHelper(call[1], call[2], call[3], scope.sources);
|
|
16498
|
+
if (!helper) return null;
|
|
16499
|
+
return helper.language === "swift" ? evaluateSwiftBody(helper.body, scope, depth + 1) : evaluateObjcBody(helper.body, helper.parameter, helper.constants, scope);
|
|
16500
|
+
}
|
|
16501
|
+
function evaluateSwiftBody(body, scope, depth) {
|
|
16382
16502
|
const bound = /* @__PURE__ */ new Map();
|
|
16503
|
+
for (const statement of splitStatements(body)) {
|
|
16504
|
+
const result = /^return\s+([\s\S]+)$/.exec(statement);
|
|
16505
|
+
if (result) return evaluateClauses([result[1].trim()], scope, bound, depth);
|
|
16506
|
+
const branch = /^(if|guard)\b([\s\S]*?)(?:\belse\b)?\s*\{\s*return\s+(true|false)\s*\}$/.exec(
|
|
16507
|
+
statement
|
|
16508
|
+
);
|
|
16509
|
+
if (!branch) return null;
|
|
16510
|
+
const holds = evaluateClauses(splitClauses(branch[2]), scope, bound, depth);
|
|
16511
|
+
if (holds === null) return null;
|
|
16512
|
+
if (holds === (branch[1] === "if")) return branch[3] === "true";
|
|
16513
|
+
}
|
|
16514
|
+
return null;
|
|
16515
|
+
}
|
|
16516
|
+
function evaluateObjcBody(body, bundle, constants, scope) {
|
|
16517
|
+
const plists = scope.resources.filter(
|
|
16518
|
+
(file) => import_node_path20.default.basename(file) === "GoogleService-Info.plist"
|
|
16519
|
+
);
|
|
16520
|
+
const variables = /* @__PURE__ */ new Map();
|
|
16521
|
+
const literal = (text2) => {
|
|
16522
|
+
const quoted = /^@"([^"]*)"$/.exec(text2.trim());
|
|
16523
|
+
return quoted ? quoted[1] : constants.get(text2.trim());
|
|
16524
|
+
};
|
|
16525
|
+
const truthy = (name2) => {
|
|
16526
|
+
const value = variables.get(name2);
|
|
16527
|
+
return typeof value === "string" ? value.length > 0 : value !== void 0;
|
|
16528
|
+
};
|
|
16529
|
+
for (const statement of splitStatements(body)) {
|
|
16530
|
+
if (/^return\s+YES$/.test(statement)) return true;
|
|
16531
|
+
if (/^return\s+NO$/.test(statement)) return false;
|
|
16532
|
+
const early = /^if\s*\(\s*(!?)\s*(\w+)(\.length)?\s*\)\s*\{?\s*return\s+(YES|NO)\s*;?\s*\}?$/.exec(
|
|
16533
|
+
statement
|
|
16534
|
+
);
|
|
16535
|
+
if (early) {
|
|
16536
|
+
if (!variables.has(early[2])) return null;
|
|
16537
|
+
if (early[1] === "!" === !truthy(early[2])) return early[4] === "YES";
|
|
16538
|
+
continue;
|
|
16539
|
+
}
|
|
16540
|
+
const declaration = /^(?:NSString|NSDictionary)\s*\*\s*(\w+)\s*=\s*([\s\S]+)$/.exec(
|
|
16541
|
+
statement
|
|
16542
|
+
);
|
|
16543
|
+
if (!declaration) return null;
|
|
16544
|
+
const name2 = declaration[1];
|
|
16545
|
+
const value = declaration[2];
|
|
16546
|
+
const bundlePath = new RegExp(`^${bundle}\\.bundlePath$`).exec(value.trim());
|
|
16547
|
+
const resource = new RegExp(
|
|
16548
|
+
`^\\[\\s*${bundle}\\s+pathForResource:\\s*([^\\s]+)\\s+ofType:\\s*([^\\s\\]]+)\\s*\\]$`
|
|
16549
|
+
).exec(value.trim());
|
|
16550
|
+
const dictionary = /^\[\s*NSDictionary\s+dictionaryWithContentsOfFile:\s*(\w+)\s*\]$/.exec(
|
|
16551
|
+
value.trim()
|
|
16552
|
+
);
|
|
16553
|
+
const entry = /^(\w+)\s*\[\s*([^\]\s]+)\s*\]$/.exec(value.trim());
|
|
16554
|
+
if (bundle && bundlePath) variables.set(name2, "main bundle");
|
|
16555
|
+
else if (bundle && resource) {
|
|
16556
|
+
if (literal(resource[1]) !== "GoogleService-Info" || literal(resource[2]) !== "plist")
|
|
16557
|
+
return null;
|
|
16558
|
+
variables.set(name2, plists.length === 1 ? plists[0] : void 0);
|
|
16559
|
+
} else if (dictionary && variables.has(dictionary[1])) {
|
|
16560
|
+
const file = variables.get(dictionary[1]);
|
|
16561
|
+
const parsed = typeof file === "string" ? parsePlistSource(import_node_fs17.default.readFileSync(file, "utf8")) : void 0;
|
|
16562
|
+
variables.set(name2, isRecord(parsed) ? parsed : void 0);
|
|
16563
|
+
} else if (entry && variables.has(entry[1])) {
|
|
16564
|
+
const key = literal(entry[2]);
|
|
16565
|
+
const source = variables.get(entry[1]);
|
|
16566
|
+
if (key === void 0) return null;
|
|
16567
|
+
variables.set(name2, isRecord(source) ? source[key] : void 0);
|
|
16568
|
+
} else return null;
|
|
16569
|
+
}
|
|
16570
|
+
return null;
|
|
16571
|
+
}
|
|
16572
|
+
function evaluateClauses(clauses, scope, bound, depth) {
|
|
16573
|
+
const sources = scope.resources.filter(
|
|
16574
|
+
(file) => import_node_path20.default.basename(file) === "GoogleService-Info.plist"
|
|
16575
|
+
);
|
|
16383
16576
|
for (const clause of clauses) {
|
|
16577
|
+
if (clause === "true") continue;
|
|
16578
|
+
if (clause === "false") return false;
|
|
16384
16579
|
if (/^FirebaseApp\s*\.\s*app\s*\(\s*\)\s*==\s*nil$/.test(clause)) continue;
|
|
16385
16580
|
const resource = /^let\s+(\w+)\s*=\s*Bundle\.main\.path\s*\(\s*forResource:\s*"GoogleService-Info"\s*,\s*ofType:\s*"plist"\s*\)$/.exec(
|
|
16386
16581
|
clause
|
|
@@ -16415,10 +16610,17 @@ function evaluateFirebaseGuard(header, resources) {
|
|
|
16415
16610
|
if (!subject.startsWith(prefix2[2])) return false;
|
|
16416
16611
|
continue;
|
|
16417
16612
|
}
|
|
16418
|
-
|
|
16613
|
+
const negated = clause.startsWith("!");
|
|
16614
|
+
const called = evaluateHelperCall(clause.replace(/^!\s*/, ""), scope, depth);
|
|
16615
|
+
if (called === null) return null;
|
|
16616
|
+
if (called === negated) return false;
|
|
16419
16617
|
}
|
|
16420
16618
|
return true;
|
|
16421
16619
|
}
|
|
16620
|
+
function evaluateFirebaseGuard(header, scope) {
|
|
16621
|
+
const condition = header.replace(/^\s*if\b/, "").replace(/\{\s*$/, "");
|
|
16622
|
+
return evaluateClauses(splitClauses(condition), scope, /* @__PURE__ */ new Map(), 0);
|
|
16623
|
+
}
|
|
16422
16624
|
function blankSwiftObjcLiterals(raw) {
|
|
16423
16625
|
return raw.replace(
|
|
16424
16626
|
/\/\*[\s\S]*?\*\/|\/\/[^\n]*|"(?:\\.|[^"\\])*"/g,
|
|
@@ -16491,8 +16693,8 @@ function findDefaultConfigureCall(body, sources) {
|
|
|
16491
16693
|
}
|
|
16492
16694
|
return null;
|
|
16493
16695
|
}
|
|
16494
|
-
function readTargetGoogleServicesFile(projectRoot,
|
|
16495
|
-
const app = readXcodeAppTarget(
|
|
16696
|
+
function readTargetGoogleServicesFile(projectRoot, container, target, prepareGeneratedSources = false) {
|
|
16697
|
+
const app = readXcodeAppTarget(container, target, void 0, {
|
|
16496
16698
|
requireSources: false,
|
|
16497
16699
|
prepareGeneratedSources
|
|
16498
16700
|
});
|
|
@@ -16557,7 +16759,13 @@ function readTargetGoogleServicesFile(projectRoot, xcodeproj, target, prepareGen
|
|
|
16557
16759
|
if (nesting === 0) topLevelBefore += token;
|
|
16558
16760
|
if (token === "}") nesting -= 1;
|
|
16559
16761
|
}
|
|
16560
|
-
const guarded = guard === null ? true : evaluateFirebaseGuard(guard,
|
|
16762
|
+
const guarded = guard === null ? true : evaluateFirebaseGuard(guard, {
|
|
16763
|
+
resources: app.resources,
|
|
16764
|
+
sources: [
|
|
16765
|
+
...app.allSources,
|
|
16766
|
+
...app.frameworks.flatMap((framework) => framework.allSources)
|
|
16767
|
+
]
|
|
16768
|
+
});
|
|
16561
16769
|
if (guarded === null || depth !== 1 || conditionalDepth !== 0 || /\b(?:return|throw)\b/.test(topLevelBefore))
|
|
16562
16770
|
throw new Error(
|
|
16563
16771
|
"native Firebase initialization must be unconditional in the app launch method"
|
|
@@ -16594,7 +16802,7 @@ function readNativeFirebaseConfig(projectRoot, platforms = ["ios", "android"], i
|
|
|
16594
16802
|
if (selected) {
|
|
16595
16803
|
const file = readTargetGoogleServicesFile(
|
|
16596
16804
|
projectRoot,
|
|
16597
|
-
selected.xcodeproj,
|
|
16805
|
+
selected.workspace ?? selected.xcodeproj,
|
|
16598
16806
|
selected.target,
|
|
16599
16807
|
prepareGeneratedSources
|
|
16600
16808
|
);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1846 | (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": "3f580bf7c3c1c248f7671cf5bd7131dc2bb11324d1e0c67dd559e0d4e4de3f6f", "xcode-target-members.ts": "75a23a5fc54cc6f5e952d545f2f0f86241ff36525ab4e568c172e83c3bfb9da4", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
|
|
@@ -4329,7 +4329,25 @@ 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) => ({
|
|
4334
|
+
xcodeproj: import_node_path10.default.join(iosRoot, entry.name),
|
|
4335
|
+
workspace: null
|
|
4336
|
+
})) : entries.filter((entry) => entry.isDirectory() && entry.name.endsWith(".xcworkspace")).flatMap((entry) => {
|
|
4337
|
+
const workspace = import_node_path10.default.join(iosRoot, entry.name);
|
|
4338
|
+
return workspaceReferences(workspace).map((xcodeproj2) => ({
|
|
4339
|
+
xcodeproj: xcodeproj2,
|
|
4340
|
+
workspace
|
|
4341
|
+
}));
|
|
4342
|
+
}).filter(
|
|
4343
|
+
({ xcodeproj: xcodeproj2 }) => xcodeproj2.endsWith(".xcodeproj") && !xcodeproj2.split(import_node_path10.default.sep).includes("Pods") && import_node_fs6.default.existsSync(xcodeproj2)
|
|
4344
|
+
).filter(
|
|
4345
|
+
({ xcodeproj: xcodeproj2 }) => listXcodeAppTargets(xcodeproj2, { requireSources: false }).length > 0
|
|
4346
|
+
)).map(({ xcodeproj: xcodeproj2, workspace }) => ({
|
|
4347
|
+
xcodeproj: xcodeproj2,
|
|
4348
|
+
workspace,
|
|
4349
|
+
name: import_node_path10.default.basename(xcodeproj2)
|
|
4350
|
+
}));
|
|
4333
4351
|
if (projects.length === 0) return null;
|
|
4334
4352
|
if (projects.length > 1 && !iosTarget) {
|
|
4335
4353
|
throw new NativeAppTargetSelectionError(
|
|
@@ -4339,7 +4357,7 @@ function selectIosAppTarget(projectRoot, iosTarget) {
|
|
|
4339
4357
|
let project = projects[0];
|
|
4340
4358
|
if (iosTarget && projects.length > 1) {
|
|
4341
4359
|
const matches = projects.filter(
|
|
4342
|
-
(entry) => listXcodeAppTargets(
|
|
4360
|
+
(entry) => listXcodeAppTargets(entry.xcodeproj, {
|
|
4343
4361
|
requireSources: false
|
|
4344
4362
|
}).includes(iosTarget)
|
|
4345
4363
|
);
|
|
@@ -4351,7 +4369,7 @@ function selectIosAppTarget(projectRoot, iosTarget) {
|
|
|
4351
4369
|
);
|
|
4352
4370
|
project = matches[0];
|
|
4353
4371
|
}
|
|
4354
|
-
const xcodeproj =
|
|
4372
|
+
const xcodeproj = project.xcodeproj;
|
|
4355
4373
|
const appTargets = listXcodeAppTargets(xcodeproj, { requireSources: false });
|
|
4356
4374
|
let target = iosTarget ?? defaultXcodeAppTarget(xcodeproj);
|
|
4357
4375
|
if (!target) throw new Error("native app identity has no iOS application target");
|
|
@@ -4370,7 +4388,7 @@ function selectIosAppTarget(projectRoot, iosTarget) {
|
|
|
4370
4388
|
}
|
|
4371
4389
|
if (!appTargets.includes(target))
|
|
4372
4390
|
throw new Error(`native app identity has no application target ${target}`);
|
|
4373
|
-
return { xcodeproj, target };
|
|
4391
|
+
return { xcodeproj, target, workspace: project.workspace };
|
|
4374
4392
|
}
|
|
4375
4393
|
var workspaceResolvedFile = (xcodeprojOrWorkspace) => import_node_path10.default.join(
|
|
4376
4394
|
xcodeprojOrWorkspace.endsWith(".xcworkspace") ? xcodeprojOrWorkspace : import_node_path10.default.join(xcodeprojOrWorkspace, "project.xcworkspace"),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1846 | (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": "3f580bf7c3c1c248f7671cf5bd7131dc2bb11324d1e0c67dd559e0d4e4de3f6f", "xcode-target-members.ts": "75a23a5fc54cc6f5e952d545f2f0f86241ff36525ab4e568c172e83c3bfb9da4", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
|
|
@@ -4470,7 +4470,25 @@ 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) => ({
|
|
4475
|
+
xcodeproj: path30.join(iosRoot, entry.name),
|
|
4476
|
+
workspace: null
|
|
4477
|
+
})) : entries.filter((entry) => entry.isDirectory() && entry.name.endsWith(".xcworkspace")).flatMap((entry) => {
|
|
4478
|
+
const workspace = path30.join(iosRoot, entry.name);
|
|
4479
|
+
return workspaceReferences(workspace).map((xcodeproj2) => ({
|
|
4480
|
+
xcodeproj: xcodeproj2,
|
|
4481
|
+
workspace
|
|
4482
|
+
}));
|
|
4483
|
+
}).filter(
|
|
4484
|
+
({ xcodeproj: xcodeproj2 }) => xcodeproj2.endsWith(".xcodeproj") && !xcodeproj2.split(path30.sep).includes("Pods") && fs16.existsSync(xcodeproj2)
|
|
4485
|
+
).filter(
|
|
4486
|
+
({ xcodeproj: xcodeproj2 }) => listXcodeAppTargets(xcodeproj2, { requireSources: false }).length > 0
|
|
4487
|
+
)).map(({ xcodeproj: xcodeproj2, workspace }) => ({
|
|
4488
|
+
xcodeproj: xcodeproj2,
|
|
4489
|
+
workspace,
|
|
4490
|
+
name: path30.basename(xcodeproj2)
|
|
4491
|
+
}));
|
|
4474
4492
|
if (projects.length === 0) return null;
|
|
4475
4493
|
if (projects.length > 1 && !iosTarget) {
|
|
4476
4494
|
throw new NativeAppTargetSelectionError(
|
|
@@ -4480,7 +4498,7 @@ function selectIosAppTarget(projectRoot, iosTarget) {
|
|
|
4480
4498
|
let project = projects[0];
|
|
4481
4499
|
if (iosTarget && projects.length > 1) {
|
|
4482
4500
|
const matches = projects.filter(
|
|
4483
|
-
(entry) => listXcodeAppTargets(
|
|
4501
|
+
(entry) => listXcodeAppTargets(entry.xcodeproj, {
|
|
4484
4502
|
requireSources: false
|
|
4485
4503
|
}).includes(iosTarget)
|
|
4486
4504
|
);
|
|
@@ -4492,7 +4510,7 @@ function selectIosAppTarget(projectRoot, iosTarget) {
|
|
|
4492
4510
|
);
|
|
4493
4511
|
project = matches[0];
|
|
4494
4512
|
}
|
|
4495
|
-
const xcodeproj =
|
|
4513
|
+
const xcodeproj = project.xcodeproj;
|
|
4496
4514
|
const appTargets = listXcodeAppTargets(xcodeproj, { requireSources: false });
|
|
4497
4515
|
let target = iosTarget ?? defaultXcodeAppTarget(xcodeproj);
|
|
4498
4516
|
if (!target) throw new Error("native app identity has no iOS application target");
|
|
@@ -4511,7 +4529,7 @@ function selectIosAppTarget(projectRoot, iosTarget) {
|
|
|
4511
4529
|
}
|
|
4512
4530
|
if (!appTargets.includes(target))
|
|
4513
4531
|
throw new Error(`native app identity has no application target ${target}`);
|
|
4514
|
-
return { xcodeproj, target };
|
|
4532
|
+
return { xcodeproj, target, workspace: project.workspace };
|
|
4515
4533
|
}
|
|
4516
4534
|
var workspaceResolvedFile = (xcodeprojOrWorkspace) => path30.join(
|
|
4517
4535
|
xcodeprojOrWorkspace.endsWith(".xcworkspace") ? xcodeprojOrWorkspace : path30.join(xcodeprojOrWorkspace, "project.xcworkspace"),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1846 | (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.1846 | (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.1846 | (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.1846 | (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.1846 | (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.1846 | (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;
|