peachsim 0.1.745 → 0.1.747
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/cloud-client.ts +28 -12
- package/cli/commands/install-desktop.ts +0 -25
- package/cli/drivers/playwright-sim-host.ts +2 -0
- 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 +98 -10
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +158 -17
- 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 +4 -4
- 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 +1 -1
- 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 +159 -18
- package/dist-lib/swift-compile.cjs +58 -6
- package/dist-lib/swift-compile.mjs +57 -6
- 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 +384 -10
- package/dist-lib/vite.cjs +4 -4
- package/package.json +1 -1
- package/src/desktop-host-delivery.ts +23 -0
- package/src/swift-compile.ts +76 -8
- package/src/swift-host.ts +23 -3
- package/src/vite-plugin-one.ts +2 -2
- package/src/vite-plugin.ts +10 -1
- package/src/xcode-project.ts +86 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (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;
|
|
@@ -106,9 +106,9 @@ var require_parse = __commonJS({
|
|
|
106
106
|
doc.documentElement.nodeName === "plist",
|
|
107
107
|
"malformed document. First element should be <plist>"
|
|
108
108
|
);
|
|
109
|
-
var
|
|
110
|
-
if (
|
|
111
|
-
return
|
|
109
|
+
var plist3 = parsePlistXML(doc.documentElement);
|
|
110
|
+
if (plist3.length == 1) plist3 = plist3[0];
|
|
111
|
+
return plist3;
|
|
112
112
|
}
|
|
113
113
|
function parsePlistXML(node) {
|
|
114
114
|
var i, new_obj, key, val, new_arr, res, counter, type;
|
|
@@ -4555,10 +4555,20 @@ function placeMetroDescriptor(listing, descriptor) {
|
|
|
4555
4555
|
}
|
|
4556
4556
|
return { files, ambiguous, verified: false, mismatched: true };
|
|
4557
4557
|
}
|
|
4558
|
-
function
|
|
4559
|
-
return
|
|
4560
|
-
|
|
4561
|
-
|
|
4558
|
+
function unverifiedContentKey(dest, fileDigests) {
|
|
4559
|
+
return JSON.stringify(
|
|
4560
|
+
dest.placements.map(
|
|
4561
|
+
(placement) => placement.verified ? null : [...placement.files].map(([scale, relative2]) => {
|
|
4562
|
+
const file = (0, import_node_path25.join)(dest.directory, relative2);
|
|
4563
|
+
let digest = fileDigests.get(file);
|
|
4564
|
+
if (digest === void 0) {
|
|
4565
|
+
digest = (0, import_node_crypto11.createHash)("sha256").update((0, import_node_fs25.readFileSync)(file)).digest("hex");
|
|
4566
|
+
fileDigests.set(file, digest);
|
|
4567
|
+
}
|
|
4568
|
+
return [scale, digest];
|
|
4569
|
+
}).sort(([first], [second]) => first - second)
|
|
4570
|
+
)
|
|
4571
|
+
);
|
|
4562
4572
|
}
|
|
4563
4573
|
function searchMetroAssetDest(bundlePath, descriptors) {
|
|
4564
4574
|
const bundleDirectory = (0, import_node_path25.dirname)((0, import_node_path25.resolve)(bundlePath));
|
|
@@ -4624,7 +4634,10 @@ function searchMetroAssetDest(bundlePath, descriptors) {
|
|
|
4624
4634
|
}
|
|
4625
4635
|
const best = Math.max(...holders.map((holder) => holder.verified));
|
|
4626
4636
|
const rivals = holders.filter((holder) => holder.verified === best);
|
|
4627
|
-
const
|
|
4637
|
+
const fileDigests = /* @__PURE__ */ new Map();
|
|
4638
|
+
const distinct = new Set(
|
|
4639
|
+
rivals.map((rival) => unverifiedContentKey(rival.dest, fileDigests))
|
|
4640
|
+
);
|
|
4628
4641
|
const winner = rivals[0];
|
|
4629
4642
|
if (!winner) return { dest: null, searched, truncated, unconfirmed: false };
|
|
4630
4643
|
if (distinct.size > 1) {
|
|
@@ -6718,7 +6731,10 @@ function swiftPackagePartition(manifest, resourcePaths = []) {
|
|
|
6718
6731
|
var run2 = (0, import_node_util2.promisify)(import_node_child_process3.execFile);
|
|
6719
6732
|
var WASM_TRIPLE = "wasm32-unknown-wasip1";
|
|
6720
6733
|
var cores = import_node_os2.default.availableParallelism();
|
|
6721
|
-
var BUILD_ENV = {
|
|
6734
|
+
var BUILD_ENV = {
|
|
6735
|
+
...process.env,
|
|
6736
|
+
BINARYEN_CORES: String(Math.min(4, cores))
|
|
6737
|
+
};
|
|
6722
6738
|
var BUILD_JOBS = String(Math.max(1, Math.floor(cores / 2)));
|
|
6723
6739
|
function swiftDistributionAt(root) {
|
|
6724
6740
|
const file = import_node_path7.default.join(root, SWIFT_DISTRIBUTION_MANIFEST);
|
|
@@ -6743,7 +6759,9 @@ function swiftModuleInputFiles(root) {
|
|
|
6743
6759
|
"toolchain.json"
|
|
6744
6760
|
];
|
|
6745
6761
|
const walk2 = (dir) => {
|
|
6746
|
-
for (const entry of (0, import_node_fs7.readdirSync)(import_node_path7.default.join(root, dir), {
|
|
6762
|
+
for (const entry of (0, import_node_fs7.readdirSync)(import_node_path7.default.join(root, dir), {
|
|
6763
|
+
withFileTypes: true
|
|
6764
|
+
})) {
|
|
6747
6765
|
const relative2 = `${dir}/${entry.name}`;
|
|
6748
6766
|
if (entry.isDirectory()) walk2(relative2);
|
|
6749
6767
|
else if (/\.(swift|c|cpp|h)$/.test(entry.name)) files.push(relative2);
|
|
@@ -7572,9 +7590,14 @@ function swiftSourceAsIOS(original, extraObjCExtensions) {
|
|
|
7572
7590
|
const reusableBodies = [];
|
|
7573
7591
|
let depth = 0;
|
|
7574
7592
|
let opensReusableBody = false;
|
|
7593
|
+
const sceneLifecycleBodies = /* @__PURE__ */ new Set();
|
|
7575
7594
|
for (const at of tokens) {
|
|
7576
7595
|
const rest = conditioned.slice(at, at + 400);
|
|
7577
7596
|
if (rest.startsWith("{")) {
|
|
7597
|
+
if (sceneLifecycleBodies.has(at)) {
|
|
7598
|
+
out += conditioned.slice(copied, at + 1) + " public var _peachUsesSceneLifecycle: Bool { true };";
|
|
7599
|
+
copied = at + 1;
|
|
7600
|
+
}
|
|
7578
7601
|
depth++;
|
|
7579
7602
|
if (opensReusableBody) reusableBodies.push(depth);
|
|
7580
7603
|
opensReusableBody = false;
|
|
@@ -7610,12 +7633,33 @@ function swiftSourceAsIOS(original, extraObjCExtensions) {
|
|
|
7610
7633
|
opensReusableBody = true;
|
|
7611
7634
|
}
|
|
7612
7635
|
const modifiers = conditioned.slice(conditioned.lastIndexOf("\n", at - 1) + 1, at);
|
|
7636
|
+
const delegateClass = DELEGATE_CLASS.exec(rest);
|
|
7637
|
+
if (delegateClass && /\bUIApplicationDelegate\b/.test(delegateClass[0])) {
|
|
7638
|
+
const body = at + delegateClass[0].lastIndexOf("{");
|
|
7639
|
+
let bodyDepth = 0;
|
|
7640
|
+
for (const token of tokens) {
|
|
7641
|
+
if (token < body) continue;
|
|
7642
|
+
if (conditioned[token] === "{") bodyDepth++;
|
|
7643
|
+
else if (conditioned[token] === "}" && --bodyDepth === 0) break;
|
|
7644
|
+
else if (bodyDepth === 1 && /^func\s+application\s*\([^{}]*\bconfigurationForConnecting\s+/.test(
|
|
7645
|
+
conditioned.slice(token, token + 600)
|
|
7646
|
+
)) {
|
|
7647
|
+
sceneLifecycleBodies.add(body);
|
|
7648
|
+
break;
|
|
7649
|
+
}
|
|
7650
|
+
}
|
|
7651
|
+
}
|
|
7613
7652
|
if (DELEGATE_CLASS.test(rest) && !/\b(?:final|open)\b/.test(modifiers)) {
|
|
7614
7653
|
out += `${conditioned.slice(copied, at)}final `;
|
|
7615
7654
|
copied = at;
|
|
7616
7655
|
}
|
|
7617
7656
|
continue;
|
|
7618
7657
|
}
|
|
7658
|
+
if (/^@UIApplicationMain\b/.test(rest)) {
|
|
7659
|
+
out += conditioned.slice(copied, at) + "@main".padEnd("@UIApplicationMain".length);
|
|
7660
|
+
copied = at + "@UIApplicationMain".length;
|
|
7661
|
+
continue;
|
|
7662
|
+
}
|
|
7619
7663
|
const selector = SELECTOR.exec(rest);
|
|
7620
7664
|
const match = selector ?? OBJC_ATTRIBUTE.exec(rest);
|
|
7621
7665
|
if (!match) continue;
|
|
@@ -7714,7 +7758,7 @@ function swiftCodeScan(source) {
|
|
|
7714
7758
|
else top.parens--;
|
|
7715
7759
|
i++;
|
|
7716
7760
|
} else {
|
|
7717
|
-
const keyword = source.startsWith("class", i) ? "class" : source.startsWith("extension", i) ? "extension" : source.startsWith("override", i) ? "override" : source.startsWith("import", i) ? "import" : source.startsWith("NSClassFromString", i) ? "NSClassFromString" : null;
|
|
7761
|
+
const keyword = source.startsWith("class", i) ? "class" : source.startsWith("extension", i) ? "extension" : source.startsWith("override", i) ? "override" : source.startsWith("import", i) ? "import" : source.startsWith("func", i) ? "func" : source.startsWith("UIApplicationMain", i) ? "UIApplicationMain" : source.startsWith("NSClassFromString", i) ? "NSClassFromString" : null;
|
|
7718
7762
|
if (keyword && !/[\w$]/.test(source[i - 1] ?? "") && !/[\w$]/.test(source[i + keyword.length] ?? "")) {
|
|
7719
7763
|
tokens.push(i);
|
|
7720
7764
|
i += keyword.length;
|
|
@@ -7940,10 +7984,16 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
7940
7984
|
plugin
|
|
7941
7985
|
])
|
|
7942
7986
|
],
|
|
7943
|
-
{
|
|
7987
|
+
{
|
|
7988
|
+
env: BUILD_ENV,
|
|
7989
|
+
maxBuffer: 64 * 1024 * 1024,
|
|
7990
|
+
timeout: options.timeoutMs
|
|
7991
|
+
}
|
|
7944
7992
|
);
|
|
7945
7993
|
} catch (error) {
|
|
7946
|
-
throw new Error(projectDiagnostic(outputOf(error), layout), {
|
|
7994
|
+
throw new Error(projectDiagnostic(outputOf(error), layout), {
|
|
7995
|
+
cause: error
|
|
7996
|
+
});
|
|
7947
7997
|
}
|
|
7948
7998
|
return {
|
|
7949
7999
|
hash,
|
|
@@ -8074,6 +8124,15 @@ function createRuntimeDelivery(product) {
|
|
|
8074
8124
|
}
|
|
8075
8125
|
return { version, channel, entry };
|
|
8076
8126
|
}
|
|
8127
|
+
function isVerifiedInstall(dir) {
|
|
8128
|
+
if (!import_node_fs9.default.existsSync(import_node_path9.default.join(dir, product.installedMarker))) return false;
|
|
8129
|
+
try {
|
|
8130
|
+
product.verifyInstall?.(dir);
|
|
8131
|
+
return true;
|
|
8132
|
+
} catch {
|
|
8133
|
+
return false;
|
|
8134
|
+
}
|
|
8135
|
+
}
|
|
8077
8136
|
async function install(opts = {}) {
|
|
8078
8137
|
product.ensureHome();
|
|
8079
8138
|
const cdnOrigin = resolveCdnOrigin(opts.cdnOrigin);
|
|
@@ -8083,7 +8142,7 @@ function createRuntimeDelivery(product) {
|
|
|
8083
8142
|
const setActive = opts.setActive !== false;
|
|
8084
8143
|
const protectVersions = [version, ...opts.protectVersions ?? []];
|
|
8085
8144
|
pruneLocalRetention({ protectVersions });
|
|
8086
|
-
if (!opts.force &&
|
|
8145
|
+
if (!opts.force && isVerifiedInstall(destDir)) {
|
|
8087
8146
|
if (setActive) product.writeActiveRuntime(version);
|
|
8088
8147
|
pruneLocalRetention({ protectVersions });
|
|
8089
8148
|
return {
|
|
@@ -8104,6 +8163,7 @@ function createRuntimeDelivery(product) {
|
|
|
8104
8163
|
digest: { algorithm: "sha256", encoding: "hex", value: entry.sha256 },
|
|
8105
8164
|
destDir,
|
|
8106
8165
|
installedMarker: product.installedMarker,
|
|
8166
|
+
verify: product.verifyInstall,
|
|
8107
8167
|
label: `runtime ${version}`
|
|
8108
8168
|
});
|
|
8109
8169
|
if (setActive) product.writeActiveRuntime(version);
|
|
@@ -8316,6 +8376,7 @@ async function installVerifiedTarball(tarball) {
|
|
|
8316
8376
|
if (!import_node_fs9.default.existsSync(import_node_path9.default.join(tmpDir, installedMarker))) {
|
|
8317
8377
|
throw new Error(`extracted tarball for ${label} is missing ${installedMarker}`);
|
|
8318
8378
|
}
|
|
8379
|
+
tarball.verify?.(tmpDir);
|
|
8319
8380
|
try {
|
|
8320
8381
|
import_node_fs9.default.renameSync(tmpDir, destDir);
|
|
8321
8382
|
} catch (err) {
|
|
@@ -9157,6 +9218,7 @@ async function compileSwiftProject(submit, work, origin, signal) {
|
|
|
9157
9218
|
// src/xcode-project.ts
|
|
9158
9219
|
var import_node_fs14 = __toESM(require("node:fs"), 1);
|
|
9159
9220
|
var import_node_path14 = __toESM(require("node:path"), 1);
|
|
9221
|
+
var import_plist3 = __toESM(require_plist(), 1);
|
|
9160
9222
|
function parseOpenStepPlist(text) {
|
|
9161
9223
|
let i = 0;
|
|
9162
9224
|
const fail = (message) => {
|
|
@@ -9377,6 +9439,62 @@ function readXcodeAppTarget(xcodeproj, targetName) {
|
|
|
9377
9439
|
const moduleName = c99Identifier(
|
|
9378
9440
|
settings.PRODUCT_MODULE_NAME && !settings.PRODUCT_MODULE_NAME.includes("$(") ? settings.PRODUCT_MODULE_NAME : productName
|
|
9379
9441
|
);
|
|
9442
|
+
const variables = {
|
|
9443
|
+
...settings,
|
|
9444
|
+
EXECUTABLE_NAME: settings.EXECUTABLE_NAME ?? productName,
|
|
9445
|
+
DEVELOPMENT_LANGUAGE: settings.DEVELOPMENT_LANGUAGE ?? str(project.developmentRegion) ?? "en",
|
|
9446
|
+
TARGET_NAME: name2,
|
|
9447
|
+
PRODUCT_NAME: productName,
|
|
9448
|
+
PRODUCT_MODULE_NAME: moduleName,
|
|
9449
|
+
SRCROOT: projectDir,
|
|
9450
|
+
SOURCE_ROOT: projectDir
|
|
9451
|
+
};
|
|
9452
|
+
const expand = (value) => {
|
|
9453
|
+
const seen = /* @__PURE__ */ new Set();
|
|
9454
|
+
while (/\$[({][A-Za-z_][A-Za-z0-9_]*[)}]/.test(value)) {
|
|
9455
|
+
if (seen.has(value)) throw new Error(`${name2} has cyclic Info.plist build settings`);
|
|
9456
|
+
seen.add(value);
|
|
9457
|
+
value = value.replace(
|
|
9458
|
+
/\$[({]([A-Za-z_][A-Za-z0-9_]*)[)}]/g,
|
|
9459
|
+
(match, key) => {
|
|
9460
|
+
const replacement = Object.entries(variables).find(
|
|
9461
|
+
([name3]) => name3 === key
|
|
9462
|
+
)?.[1];
|
|
9463
|
+
if (replacement === void 0)
|
|
9464
|
+
throw new Error(`${name2} Info.plist has unresolved setting ${match}`);
|
|
9465
|
+
return replacement;
|
|
9466
|
+
}
|
|
9467
|
+
);
|
|
9468
|
+
}
|
|
9469
|
+
return value;
|
|
9470
|
+
};
|
|
9471
|
+
const expandValue = (value) => {
|
|
9472
|
+
if (typeof value === "string") return expand(value);
|
|
9473
|
+
if (Array.isArray(value)) return value.map(expandValue);
|
|
9474
|
+
if (typeof value === "object" && !(value instanceof Date) && !Buffer.isBuffer(value)) {
|
|
9475
|
+
return Object.fromEntries(
|
|
9476
|
+
Object.entries(value).map(([key, value2]) => [key, expandValue(value2)])
|
|
9477
|
+
);
|
|
9478
|
+
}
|
|
9479
|
+
return value;
|
|
9480
|
+
};
|
|
9481
|
+
const infoPlistFile = settings.INFOPLIST_FILE ? import_node_path14.default.resolve(projectDir, expand(settings.INFOPLIST_FILE)) : null;
|
|
9482
|
+
const sourceInfo = infoPlistFile ? import_plist3.default.parse(import_node_fs14.default.readFileSync(infoPlistFile, "utf8")) : {};
|
|
9483
|
+
if (!sourceInfo || typeof sourceInfo !== "object" || Array.isArray(sourceInfo) || sourceInfo instanceof Date || Buffer.isBuffer(sourceInfo)) {
|
|
9484
|
+
throw new Error(`${name2} Info.plist must contain a dictionary`);
|
|
9485
|
+
}
|
|
9486
|
+
const info = {};
|
|
9487
|
+
for (const [key, value] of Object.entries(sourceInfo)) info[key] = expandValue(value);
|
|
9488
|
+
for (const [key, value] of Object.entries(settings)) {
|
|
9489
|
+
if (!key.startsWith("INFOPLIST_KEY_") || key.endsWith("_Generation")) continue;
|
|
9490
|
+
info[key.slice("INFOPLIST_KEY_".length)] = value === "YES" ? true : value === "NO" ? false : expand(value);
|
|
9491
|
+
}
|
|
9492
|
+
if (settings.INFOPLIST_KEY_UIApplicationSceneManifest_Generation === "YES" && info.UIApplicationSceneManifest === void 0) {
|
|
9493
|
+
info.UIApplicationSceneManifest = {
|
|
9494
|
+
UIApplicationSupportsMultipleScenes: true,
|
|
9495
|
+
UISceneConfigurations: {}
|
|
9496
|
+
};
|
|
9497
|
+
}
|
|
9380
9498
|
const sources = /* @__PURE__ */ new Set();
|
|
9381
9499
|
const resources = /* @__PURE__ */ new Set();
|
|
9382
9500
|
const addResource = (file) => {
|
|
@@ -9480,7 +9598,10 @@ function readXcodeAppTarget(xcodeproj, targetName) {
|
|
|
9480
9598
|
if (!dependency || !product) continue;
|
|
9481
9599
|
const reference = object(str(dependency.package));
|
|
9482
9600
|
if (reference?.isa === "XCRemoteSwiftPackageReference") {
|
|
9483
|
-
remoteProducts.push({
|
|
9601
|
+
remoteProducts.push({
|
|
9602
|
+
product,
|
|
9603
|
+
repositoryURL: str(reference.repositoryURL) ?? ""
|
|
9604
|
+
});
|
|
9484
9605
|
} else if (reference?.isa === "XCLocalSwiftPackageReference") {
|
|
9485
9606
|
localPackages.add(import_node_path14.default.resolve(projectDir, str(reference.relativePath) ?? ""));
|
|
9486
9607
|
} else if (localProducts.has(product)) {
|
|
@@ -9521,6 +9642,8 @@ function readXcodeAppTarget(xcodeproj, targetName) {
|
|
|
9521
9642
|
moduleName,
|
|
9522
9643
|
sources: [...sources].sort(),
|
|
9523
9644
|
resources: [...resources].sort(),
|
|
9645
|
+
infoPlist: import_plist3.default.build(info),
|
|
9646
|
+
infoPlistFile,
|
|
9524
9647
|
languageMode: swiftVersion >= 6 ? 6 : 5,
|
|
9525
9648
|
mainActorIsolation: settings.SWIFT_DEFAULT_ACTOR_ISOLATION === "MainActor",
|
|
9526
9649
|
localPackages: [...localPackages].sort(),
|
|
@@ -9619,6 +9742,7 @@ function xcodeLayout(root) {
|
|
|
9619
9742
|
if (!registered) return null;
|
|
9620
9743
|
const app = readXcodeAppTarget(registered.xcodeproj, registered.target);
|
|
9621
9744
|
const files = /* @__PURE__ */ new Set([app.pbxproj, ...app.sources, ...app.resources]);
|
|
9745
|
+
if (app.infoPlistFile) files.add(app.infoPlistFile);
|
|
9622
9746
|
const targets = [];
|
|
9623
9747
|
for (const dir of app.localPackages) {
|
|
9624
9748
|
const manifest = import_node_path15.default.join(dir, "Package.swift");
|
|
@@ -9646,7 +9770,12 @@ function xcodeLayout(root) {
|
|
|
9646
9770
|
});
|
|
9647
9771
|
for (const file of target.files) files.add(file);
|
|
9648
9772
|
}
|
|
9649
|
-
return {
|
|
9773
|
+
return {
|
|
9774
|
+
app,
|
|
9775
|
+
targets,
|
|
9776
|
+
unavailable: remote.unavailable,
|
|
9777
|
+
files: [...files].sort()
|
|
9778
|
+
};
|
|
9650
9779
|
}
|
|
9651
9780
|
function xcodeManifest(layout) {
|
|
9652
9781
|
const settings = (mode, mainActor) => `swiftSettings: [.swiftLanguageMode(.v${mode})${mainActor ? ", .defaultIsolation(MainActor.self)" : ""}]`;
|
|
@@ -9833,6 +9962,18 @@ function buildSwiftBundleFiles(packagePath, hosted) {
|
|
|
9833
9962
|
const files = {};
|
|
9834
9963
|
const watched = [];
|
|
9835
9964
|
let total = 0;
|
|
9965
|
+
const xcode = xcodeLayout(packagePath);
|
|
9966
|
+
if (xcode) {
|
|
9967
|
+
const bytes = Buffer.from(xcode.app.infoPlist);
|
|
9968
|
+
if (bytes.length > limits.resourceBytes || bytes.length > limits.resourceTotalBytes)
|
|
9969
|
+
throw new Error("swift launch Info.plist exceeds bundle resource limits");
|
|
9970
|
+
files["Info.plist"] = bytes.toString("base64");
|
|
9971
|
+
total += bytes.length;
|
|
9972
|
+
if (xcode.app.infoPlistFile)
|
|
9973
|
+
watched.push(
|
|
9974
|
+
import_node_path15.default.relative(packagePath, xcode.app.infoPlistFile).split(import_node_path15.default.sep).join("/")
|
|
9975
|
+
);
|
|
9976
|
+
}
|
|
9836
9977
|
for (const { base, file } of enumerateBundleJson(relative2)) {
|
|
9837
9978
|
watched.push(file);
|
|
9838
9979
|
const disk = import_node_path15.default.join(packagePath, ...file.split("/"));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (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.747 | (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.747 | (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.747 | (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/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (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;
|
|
@@ -3874,7 +3874,6 @@ var import_fs4 = __toESM(require("fs"), 1);
|
|
|
3874
3874
|
var import_node_crypto4 = require("node:crypto");
|
|
3875
3875
|
var import_node_module = require("node:module");
|
|
3876
3876
|
var import_path3 = __toESM(require("path"), 1);
|
|
3877
|
-
var import_vxrn = require("vxrn");
|
|
3878
3877
|
var import_ws2 = require("ws");
|
|
3879
3878
|
|
|
3880
3879
|
// src/dev-server-open.ts
|
|
@@ -4632,8 +4631,9 @@ function rnxPlugin(options = {}) {
|
|
|
4632
4631
|
config() {
|
|
4633
4632
|
return { optimizeDeps: { include: ["use-latest-callback"] } };
|
|
4634
4633
|
},
|
|
4635
|
-
configureServer(server) {
|
|
4634
|
+
async configureServer(server) {
|
|
4636
4635
|
if (options.enabled === false) return;
|
|
4636
|
+
const { swiftPackageDirectories } = await import("vxrn");
|
|
4637
4637
|
let swiftPackages;
|
|
4638
4638
|
let swiftModuleRoot;
|
|
4639
4639
|
const moduleRootFor = () => {
|
|
@@ -4651,7 +4651,7 @@ function rnxPlugin(options = {}) {
|
|
|
4651
4651
|
};
|
|
4652
4652
|
const activeSwiftPackages = /* @__PURE__ */ new Set();
|
|
4653
4653
|
const packageMap = () => {
|
|
4654
|
-
swiftPackages ??=
|
|
4654
|
+
swiftPackages ??= swiftPackageDirectories(server.config.root);
|
|
4655
4655
|
return swiftPackages;
|
|
4656
4656
|
};
|
|
4657
4657
|
const wsOptions = server.config.server.ws;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (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.747 | (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/kotlin-host.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (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/menu.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (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/menu.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (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.747 | (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/metro.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (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.747 | (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.747 | (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.747 | (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.747 | (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.747 | (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.747 | (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.747 | (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.747 | (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.747 | (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.747 | (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);
|