peachsim 0.1.813 → 0.1.815
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/kotlin.ts +2 -27
- package/cli/outbound-endpoints.ts +26 -27
- 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/bundle-channel.cjs +22 -40
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cli-constants.cjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +21 -39
- 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 +21 -39
- 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 +8 -6
- 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 +25 -24
- 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 +8 -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/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 +22 -40
- 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 +21 -39
- package/dist-lib/vite.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/package.json +1 -1
- package/src/android-theme.ts +22 -23
- package/src/kotlin-app.ts +41 -13
- package/src/kotlin-host.ts +32 -23
- package/src/swift-binary-modules.ts +9 -7
- package/src/swift-host.ts +7 -7
- package/src/swift-standin-emit.ts +2 -23
- package/src/xcode-project.ts +11 -8
package/dist-lib/metro.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -3337,9 +3337,9 @@ function workspaceProjects(xcodeprojOrWorkspace) {
|
|
|
3337
3337
|
const projects = [];
|
|
3338
3338
|
const projectAt = /* @__PURE__ */ new Map();
|
|
3339
3339
|
const addProject = (xcodeproj) => {
|
|
3340
|
-
|
|
3340
|
+
if (!xcodeProjectFile(xcodeproj)) return;
|
|
3341
|
+
const key = import_node_fs4.default.realpathSync(xcodeproj);
|
|
3341
3342
|
if (projectAt.has(key) || key.split(import_node_path4.default.sep).includes("Pods")) return;
|
|
3342
|
-
if (!xcodeProjectFile(key)) return;
|
|
3343
3343
|
const project = loadProject(key);
|
|
3344
3344
|
projectAt.set(key, project);
|
|
3345
3345
|
projects.push(project);
|
|
@@ -3374,7 +3374,8 @@ function nativeTargets(project) {
|
|
|
3374
3374
|
function listXcodeAppTargets(xcodeprojOrWorkspace) {
|
|
3375
3375
|
return workspaceProjects(xcodeprojOrWorkspace).projects.flatMap(nativeTargets).filter((ref) => ref.target.productType === APPLICATION).map((ref) => str(ref.target.name) ?? ref.id);
|
|
3376
3376
|
}
|
|
3377
|
-
function readXcodeAppTarget(
|
|
3377
|
+
function readXcodeAppTarget(input, targetName) {
|
|
3378
|
+
const xcodeprojOrWorkspace = import_node_fs4.default.realpathSync(input);
|
|
3378
3379
|
const workspace = xcodeprojOrWorkspace.endsWith(".xcworkspace") ? xcodeprojOrWorkspace : null;
|
|
3379
3380
|
const { listed, projects, projectAt } = workspaceProjects(xcodeprojOrWorkspace);
|
|
3380
3381
|
const allTargets = projects.flatMap(nativeTargets);
|
|
@@ -3399,7 +3400,8 @@ function readXcodeAppTarget(xcodeprojOrWorkspace, targetName) {
|
|
|
3399
3400
|
const proxy = project.object(proxyId);
|
|
3400
3401
|
if (proxy?.isa !== "PBXContainerItemProxy") return void 0;
|
|
3401
3402
|
const portal = str(proxy.containerPortal);
|
|
3402
|
-
const
|
|
3403
|
+
const portalPath = project.resolvePath(portal ?? "");
|
|
3404
|
+
const owner = project.object(portal)?.isa === "PBXProject" ? project : portalPath && import_node_fs4.default.existsSync(portalPath) ? projectAt.get(import_node_fs4.default.realpathSync(portalPath)) : void 0;
|
|
3403
3405
|
const remote = str(proxy.remoteGlobalIDString);
|
|
3404
3406
|
if (!owner || !remote) return void 0;
|
|
3405
3407
|
return nativeTargets(owner).find(
|
|
@@ -3548,7 +3550,7 @@ function readXcodeAppTarget(xcodeprojOrWorkspace, targetName) {
|
|
|
3548
3550
|
"swiftpm",
|
|
3549
3551
|
"Package.resolved"
|
|
3550
3552
|
);
|
|
3551
|
-
const used =
|
|
3553
|
+
const used = order.map((ref) => ref.project);
|
|
3552
3554
|
return {
|
|
3553
3555
|
...module2,
|
|
3554
3556
|
rootDir: commonAncestor(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } 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.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } 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.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } 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.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } 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.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } 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.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -29769,14 +29769,14 @@ function liftExtensionOverrides(source, extraObjCExtensions) {
|
|
|
29769
29769
|
const args = forwardedArguments(source.slice(open + 1, close));
|
|
29770
29770
|
if (args === null) continue;
|
|
29771
29771
|
const call = (clause.includes("->") ? "return " : "") + (/\b(?:throws|rethrows)\b/.test(clause) ? "try " : "") + (/\basync\b/.test(clause) ? "await " : "") + `__peach_ext_${name2}(${args})`;
|
|
29772
|
-
const
|
|
29772
|
+
const signature = `func ${name2}${func[3] ?? ""}${source.slice(open, close + 1)}${clause ? ` ${clause}` : ""}`;
|
|
29773
29773
|
const nameAt = at + rest.indexOf(name2, rest.indexOf("func", "override".length + func[1].length) + 4);
|
|
29774
29774
|
lifted.push({
|
|
29775
29775
|
type: top.name,
|
|
29776
29776
|
member: name2,
|
|
29777
29777
|
at,
|
|
29778
29778
|
modifiers,
|
|
29779
|
-
decl:
|
|
29779
|
+
decl: signature,
|
|
29780
29780
|
forward: `{ ${call} };`,
|
|
29781
29781
|
nameAt,
|
|
29782
29782
|
edits: [
|
|
@@ -30003,9 +30003,9 @@ function lowerNotificationDelegate(source) {
|
|
|
30003
30003
|
const body = code.slice(open + 1, close - 1);
|
|
30004
30004
|
for (const method of body.matchAll(/\bfunc\s+userNotificationCenter\s*\(/g)) {
|
|
30005
30005
|
const at = open + 1 + method.index;
|
|
30006
|
-
const
|
|
30006
|
+
const signature = code.slice(at, code.indexOf("{", at));
|
|
30007
30007
|
const label = Object.keys(selectors).find(
|
|
30008
|
-
(name2) => new RegExp(`\\b${name2}\\b`).test(
|
|
30008
|
+
(name2) => new RegExp(`\\b${name2}\\b`).test(signature)
|
|
30009
30009
|
);
|
|
30010
30010
|
if (label) edits.push([at, 0, `@ObjC(${JSON.stringify(selectors[label])}) `]);
|
|
30011
30011
|
}
|
|
@@ -30103,7 +30103,7 @@ function lowerTableProtocolMethods(source, conformances) {
|
|
|
30103
30103
|
depth--;
|
|
30104
30104
|
if (depth === 1) previous = at + 1;
|
|
30105
30105
|
} else if (depth === 1 && /^func\b/.test(code.slice(at))) {
|
|
30106
|
-
const
|
|
30106
|
+
const signature = code.slice(at, code.indexOf("{", at));
|
|
30107
30107
|
const prefix = code.slice(previous, at);
|
|
30108
30108
|
const attributes = /(?:@\w+(?:\([^{}]*\))?\s*|(?:public|open|private|fileprivate|internal|final|override|static|class|nonisolated|dynamic)\s+)*$/.exec(
|
|
30109
30109
|
prefix
|
|
@@ -30112,12 +30112,12 @@ function lowerTableProtocolMethods(source, conformances) {
|
|
|
30112
30112
|
continue;
|
|
30113
30113
|
let selector;
|
|
30114
30114
|
if (conforms.has("UITableViewDataSource") && /^func\s+numberOfSections\s*\(\s*in\s+\w+\s*:\s*(?:UIKit\.)?UITableView\s*\)/.test(
|
|
30115
|
-
|
|
30115
|
+
signature
|
|
30116
30116
|
))
|
|
30117
30117
|
selector = "numberOfSectionsInTableView:";
|
|
30118
30118
|
else {
|
|
30119
30119
|
const match = /^func\s+tableView\s*\(\s*_\s+\w+\s*:\s*(?:UIKit\.)?UITableView\s*,\s*(\w+)\b/.exec(
|
|
30120
|
-
|
|
30120
|
+
signature
|
|
30121
30121
|
);
|
|
30122
30122
|
if (match) selector = selectors[match[1]];
|
|
30123
30123
|
}
|
|
@@ -32363,7 +32363,10 @@ async function range(url, spec) {
|
|
|
32363
32363
|
async function zipEntries(url) {
|
|
32364
32364
|
const { total } = await range(url, "0-0");
|
|
32365
32365
|
const tail = await range(url, `${Math.max(0, total - 65558)}-${total - 1}`);
|
|
32366
|
-
|
|
32366
|
+
let end = tail.bytes.length - 22;
|
|
32367
|
+
for (; end >= 0; end--)
|
|
32368
|
+
if (tail.bytes.readUInt32LE(end) === 101010256 && end + 22 + tail.bytes.readUInt16LE(end + 20) === tail.bytes.length)
|
|
32369
|
+
break;
|
|
32367
32370
|
if (end < 0) throw new Error(`${url} has no zip end record`);
|
|
32368
32371
|
let size = tail.bytes.readUInt32LE(end + 12);
|
|
32369
32372
|
let offset = tail.bytes.readUInt32LE(end + 16);
|
|
@@ -32408,7 +32411,7 @@ async function swiftBinaryModules(binary2) {
|
|
|
32408
32411
|
import_node_fs13.default.writeFileSync(cached4, JSON.stringify(modules));
|
|
32409
32412
|
return modules;
|
|
32410
32413
|
}
|
|
32411
|
-
var import_node_crypto5, import_node_fs13, import_node_os5, import_node_path13, cacheDir2
|
|
32414
|
+
var import_node_crypto5, import_node_fs13, import_node_os5, import_node_path13, cacheDir2;
|
|
32412
32415
|
var init_swift_binary_modules = __esm({
|
|
32413
32416
|
"src/swift-binary-modules.ts"() {
|
|
32414
32417
|
"use strict";
|
|
@@ -32417,11 +32420,6 @@ var init_swift_binary_modules = __esm({
|
|
|
32417
32420
|
import_node_os5 = __toESM(require("node:os"), 1);
|
|
32418
32421
|
import_node_path13 = __toESM(require("node:path"), 1);
|
|
32419
32422
|
cacheDir2 = import_node_path13.default.join(import_node_os5.default.tmpdir(), "peach-swift-binary-modules");
|
|
32420
|
-
signature = (bytes, value) => {
|
|
32421
|
-
const needle = Buffer.alloc(4);
|
|
32422
|
-
needle.writeUInt32LE(value);
|
|
32423
|
-
return bytes.lastIndexOf(needle);
|
|
32424
|
-
};
|
|
32425
32423
|
}
|
|
32426
32424
|
});
|
|
32427
32425
|
|
|
@@ -33315,24 +33313,6 @@ function emitSwiftStandin(graphs, options) {
|
|
|
33315
33313
|
);
|
|
33316
33314
|
continue;
|
|
33317
33315
|
}
|
|
33318
|
-
if (raw2 && list2.includes("Hashable")) {
|
|
33319
|
-
if (leaf(member) === "hash(into:)") {
|
|
33320
|
-
emit(
|
|
33321
|
-
`${inner}public func hash(into hasher: inout Hasher) { hasher.combine(rawValue) }`
|
|
33322
|
-
);
|
|
33323
|
-
continue;
|
|
33324
|
-
}
|
|
33325
|
-
if (leaf(member) === "hashValue") {
|
|
33326
|
-
emit(`${inner}public var hashValue: Int { rawValue.hashValue }`);
|
|
33327
|
-
continue;
|
|
33328
|
-
}
|
|
33329
|
-
if (leaf(member).startsWith("==")) {
|
|
33330
|
-
emit(
|
|
33331
|
-
`${inner}public static func == (lhs: ${shape.name}${shape.generics}, rhs: ${shape.name}${shape.generics}) -> Bool { lhs.rawValue == rhs.rawValue }`
|
|
33332
|
-
);
|
|
33333
|
-
continue;
|
|
33334
|
-
}
|
|
33335
|
-
}
|
|
33336
33316
|
emitMember(member, inner, {
|
|
33337
33317
|
openOwner: false,
|
|
33338
33318
|
inClass: false,
|
|
@@ -33348,7 +33328,7 @@ function emitSwiftStandin(graphs, options) {
|
|
|
33348
33328
|
return void skipped.push({ path: path38, reason: `unparsed enum ${text(symbol)}` });
|
|
33349
33329
|
const members = membersOf(id);
|
|
33350
33330
|
const raw2 = rawType(members);
|
|
33351
|
-
const cases =
|
|
33331
|
+
const cases = members.filter(
|
|
33352
33332
|
(member) => member.kind.identifier === "swift.enum.case"
|
|
33353
33333
|
);
|
|
33354
33334
|
const missing = raw2 ? cases.filter((member) => !values.has(member.identifier.precise)) : [];
|
|
@@ -33572,7 +33552,7 @@ var STANDIN_EMIT_VERSION, TYPE_KINDS, MEMBER_KINDS, ACCESSOR_WORD, KEEP_EXTERNAL
|
|
|
33572
33552
|
var init_swift_standin_emit = __esm({
|
|
33573
33553
|
"src/swift-standin-emit.ts"() {
|
|
33574
33554
|
"use strict";
|
|
33575
|
-
STANDIN_EMIT_VERSION = "
|
|
33555
|
+
STANDIN_EMIT_VERSION = "5";
|
|
33576
33556
|
TYPE_KINDS = /* @__PURE__ */ new Set([
|
|
33577
33557
|
"swift.class",
|
|
33578
33558
|
"swift.struct",
|
|
@@ -36303,9 +36283,9 @@ function workspaceProjects(xcodeprojOrWorkspace) {
|
|
|
36303
36283
|
const projects2 = [];
|
|
36304
36284
|
const projectAt = /* @__PURE__ */ new Map();
|
|
36305
36285
|
const addProject = (xcodeproj) => {
|
|
36306
|
-
|
|
36286
|
+
if (!xcodeProjectFile(xcodeproj)) return;
|
|
36287
|
+
const key2 = import_node_fs18.default.realpathSync(xcodeproj);
|
|
36307
36288
|
if (projectAt.has(key2) || key2.split(import_node_path19.default.sep).includes("Pods")) return;
|
|
36308
|
-
if (!xcodeProjectFile(key2)) return;
|
|
36309
36289
|
const project = loadProject(key2);
|
|
36310
36290
|
projectAt.set(key2, project);
|
|
36311
36291
|
projects2.push(project);
|
|
@@ -36339,7 +36319,8 @@ function nativeTargets(project) {
|
|
|
36339
36319
|
function listXcodeAppTargets(xcodeprojOrWorkspace) {
|
|
36340
36320
|
return workspaceProjects(xcodeprojOrWorkspace).projects.flatMap(nativeTargets).filter((ref) => ref.target.productType === APPLICATION).map((ref) => str(ref.target.name) ?? ref.id);
|
|
36341
36321
|
}
|
|
36342
|
-
function readXcodeAppTarget(
|
|
36322
|
+
function readXcodeAppTarget(input, targetName) {
|
|
36323
|
+
const xcodeprojOrWorkspace = import_node_fs18.default.realpathSync(input);
|
|
36343
36324
|
const workspace = xcodeprojOrWorkspace.endsWith(".xcworkspace") ? xcodeprojOrWorkspace : null;
|
|
36344
36325
|
const { listed, projects: projects2, projectAt } = workspaceProjects(xcodeprojOrWorkspace);
|
|
36345
36326
|
const allTargets = projects2.flatMap(nativeTargets);
|
|
@@ -36364,7 +36345,8 @@ function readXcodeAppTarget(xcodeprojOrWorkspace, targetName) {
|
|
|
36364
36345
|
const proxy = project.object(proxyId);
|
|
36365
36346
|
if (proxy?.isa !== "PBXContainerItemProxy") return void 0;
|
|
36366
36347
|
const portal = str(proxy.containerPortal);
|
|
36367
|
-
const
|
|
36348
|
+
const portalPath = project.resolvePath(portal ?? "");
|
|
36349
|
+
const owner = project.object(portal)?.isa === "PBXProject" ? project : portalPath && import_node_fs18.default.existsSync(portalPath) ? projectAt.get(import_node_fs18.default.realpathSync(portalPath)) : void 0;
|
|
36368
36350
|
const remote = str(proxy.remoteGlobalIDString);
|
|
36369
36351
|
if (!owner || !remote) return void 0;
|
|
36370
36352
|
return nativeTargets(owner).find(
|
|
@@ -36513,7 +36495,7 @@ function readXcodeAppTarget(xcodeprojOrWorkspace, targetName) {
|
|
|
36513
36495
|
"swiftpm",
|
|
36514
36496
|
"Package.resolved"
|
|
36515
36497
|
);
|
|
36516
|
-
const used =
|
|
36498
|
+
const used = order.map((ref) => ref.project);
|
|
36517
36499
|
return {
|
|
36518
36500
|
...module2,
|
|
36519
36501
|
rootDir: commonAncestor(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/vite-swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -2394,14 +2394,14 @@ function liftExtensionOverrides(source, extraObjCExtensions) {
|
|
|
2394
2394
|
const args = forwardedArguments(source.slice(open + 1, close));
|
|
2395
2395
|
if (args === null) continue;
|
|
2396
2396
|
const call = (clause.includes("->") ? "return " : "") + (/\b(?:throws|rethrows)\b/.test(clause) ? "try " : "") + (/\basync\b/.test(clause) ? "await " : "") + `__peach_ext_${name2}(${args})`;
|
|
2397
|
-
const
|
|
2397
|
+
const signature = `func ${name2}${func[3] ?? ""}${source.slice(open, close + 1)}${clause ? ` ${clause}` : ""}`;
|
|
2398
2398
|
const nameAt = at + rest.indexOf(name2, rest.indexOf("func", "override".length + func[1].length) + 4);
|
|
2399
2399
|
lifted.push({
|
|
2400
2400
|
type: top.name,
|
|
2401
2401
|
member: name2,
|
|
2402
2402
|
at,
|
|
2403
2403
|
modifiers,
|
|
2404
|
-
decl:
|
|
2404
|
+
decl: signature,
|
|
2405
2405
|
forward: `{ ${call} };`,
|
|
2406
2406
|
nameAt,
|
|
2407
2407
|
edits: [
|
|
@@ -2628,9 +2628,9 @@ function lowerNotificationDelegate(source) {
|
|
|
2628
2628
|
const body = code.slice(open + 1, close - 1);
|
|
2629
2629
|
for (const method of body.matchAll(/\bfunc\s+userNotificationCenter\s*\(/g)) {
|
|
2630
2630
|
const at = open + 1 + method.index;
|
|
2631
|
-
const
|
|
2631
|
+
const signature = code.slice(at, code.indexOf("{", at));
|
|
2632
2632
|
const label = Object.keys(selectors).find(
|
|
2633
|
-
(name2) => new RegExp(`\\b${name2}\\b`).test(
|
|
2633
|
+
(name2) => new RegExp(`\\b${name2}\\b`).test(signature)
|
|
2634
2634
|
);
|
|
2635
2635
|
if (label) edits.push([at, 0, `@ObjC(${JSON.stringify(selectors[label])}) `]);
|
|
2636
2636
|
}
|
|
@@ -2728,7 +2728,7 @@ function lowerTableProtocolMethods(source, conformances) {
|
|
|
2728
2728
|
depth--;
|
|
2729
2729
|
if (depth === 1) previous = at + 1;
|
|
2730
2730
|
} else if (depth === 1 && /^func\b/.test(code.slice(at))) {
|
|
2731
|
-
const
|
|
2731
|
+
const signature = code.slice(at, code.indexOf("{", at));
|
|
2732
2732
|
const prefix = code.slice(previous, at);
|
|
2733
2733
|
const attributes = /(?:@\w+(?:\([^{}]*\))?\s*|(?:public|open|private|fileprivate|internal|final|override|static|class|nonisolated|dynamic)\s+)*$/.exec(
|
|
2734
2734
|
prefix
|
|
@@ -2737,12 +2737,12 @@ function lowerTableProtocolMethods(source, conformances) {
|
|
|
2737
2737
|
continue;
|
|
2738
2738
|
let selector;
|
|
2739
2739
|
if (conforms.has("UITableViewDataSource") && /^func\s+numberOfSections\s*\(\s*in\s+\w+\s*:\s*(?:UIKit\.)?UITableView\s*\)/.test(
|
|
2740
|
-
|
|
2740
|
+
signature
|
|
2741
2741
|
))
|
|
2742
2742
|
selector = "numberOfSectionsInTableView:";
|
|
2743
2743
|
else {
|
|
2744
2744
|
const match = /^func\s+tableView\s*\(\s*_\s+\w+\s*:\s*(?:UIKit\.)?UITableView\s*,\s*(\w+)\b/.exec(
|
|
2745
|
-
|
|
2745
|
+
signature
|
|
2746
2746
|
);
|
|
2747
2747
|
if (match) selector = selectors[match[1]];
|
|
2748
2748
|
}
|
|
@@ -4172,15 +4172,13 @@ async function range(url, spec) {
|
|
|
4172
4172
|
total: Number(match[2])
|
|
4173
4173
|
};
|
|
4174
4174
|
}
|
|
4175
|
-
var signature = (bytes, value) => {
|
|
4176
|
-
const needle = Buffer.alloc(4);
|
|
4177
|
-
needle.writeUInt32LE(value);
|
|
4178
|
-
return bytes.lastIndexOf(needle);
|
|
4179
|
-
};
|
|
4180
4175
|
async function zipEntries(url) {
|
|
4181
4176
|
const { total } = await range(url, "0-0");
|
|
4182
4177
|
const tail = await range(url, `${Math.max(0, total - 65558)}-${total - 1}`);
|
|
4183
|
-
|
|
4178
|
+
let end = tail.bytes.length - 22;
|
|
4179
|
+
for (; end >= 0; end--)
|
|
4180
|
+
if (tail.bytes.readUInt32LE(end) === 101010256 && end + 22 + tail.bytes.readUInt16LE(end + 20) === tail.bytes.length)
|
|
4181
|
+
break;
|
|
4184
4182
|
if (end < 0) throw new Error(`${url} has no zip end record`);
|
|
4185
4183
|
let size = tail.bytes.readUInt32LE(end + 12);
|
|
4186
4184
|
let offset = tail.bytes.readUInt32LE(end + 16);
|
|
@@ -5017,7 +5015,7 @@ function getCliVersion() {
|
|
|
5017
5015
|
}
|
|
5018
5016
|
|
|
5019
5017
|
// src/swift-standin-emit.ts
|
|
5020
|
-
var STANDIN_EMIT_VERSION = "
|
|
5018
|
+
var STANDIN_EMIT_VERSION = "5";
|
|
5021
5019
|
var TYPE_KINDS = /* @__PURE__ */ new Set([
|
|
5022
5020
|
"swift.class",
|
|
5023
5021
|
"swift.struct",
|
|
@@ -5455,24 +5453,6 @@ function emitSwiftStandin(graphs, options) {
|
|
|
5455
5453
|
);
|
|
5456
5454
|
continue;
|
|
5457
5455
|
}
|
|
5458
|
-
if (raw2 && list2.includes("Hashable")) {
|
|
5459
|
-
if (leaf(member) === "hash(into:)") {
|
|
5460
|
-
emit(
|
|
5461
|
-
`${inner}public func hash(into hasher: inout Hasher) { hasher.combine(rawValue) }`
|
|
5462
|
-
);
|
|
5463
|
-
continue;
|
|
5464
|
-
}
|
|
5465
|
-
if (leaf(member) === "hashValue") {
|
|
5466
|
-
emit(`${inner}public var hashValue: Int { rawValue.hashValue }`);
|
|
5467
|
-
continue;
|
|
5468
|
-
}
|
|
5469
|
-
if (leaf(member).startsWith("==")) {
|
|
5470
|
-
emit(
|
|
5471
|
-
`${inner}public static func == (lhs: ${shape.name}${shape.generics}, rhs: ${shape.name}${shape.generics}) -> Bool { lhs.rawValue == rhs.rawValue }`
|
|
5472
|
-
);
|
|
5473
|
-
continue;
|
|
5474
|
-
}
|
|
5475
|
-
}
|
|
5476
5456
|
emitMember(member, inner, {
|
|
5477
5457
|
openOwner: false,
|
|
5478
5458
|
inClass: false,
|
|
@@ -5488,7 +5468,7 @@ function emitSwiftStandin(graphs, options) {
|
|
|
5488
5468
|
return void skipped.push({ path: path18, reason: `unparsed enum ${text(symbol)}` });
|
|
5489
5469
|
const members = membersOf(id);
|
|
5490
5470
|
const raw2 = rawType(members);
|
|
5491
|
-
const cases =
|
|
5471
|
+
const cases = members.filter(
|
|
5492
5472
|
(member) => member.kind.identifier === "swift.enum.case"
|
|
5493
5473
|
);
|
|
5494
5474
|
const missing = raw2 ? cases.filter((member) => !values.has(member.identifier.precise)) : [];
|
|
@@ -7286,9 +7266,9 @@ function workspaceProjects(xcodeprojOrWorkspace) {
|
|
|
7286
7266
|
const projects2 = [];
|
|
7287
7267
|
const projectAt = /* @__PURE__ */ new Map();
|
|
7288
7268
|
const addProject = (xcodeproj) => {
|
|
7289
|
-
|
|
7269
|
+
if (!xcodeProjectFile(xcodeproj)) return;
|
|
7270
|
+
const key2 = import_node_fs13.default.realpathSync(xcodeproj);
|
|
7290
7271
|
if (projectAt.has(key2) || key2.split(import_node_path14.default.sep).includes("Pods")) return;
|
|
7291
|
-
if (!xcodeProjectFile(key2)) return;
|
|
7292
7272
|
const project = loadProject(key2);
|
|
7293
7273
|
projectAt.set(key2, project);
|
|
7294
7274
|
projects2.push(project);
|
|
@@ -7320,7 +7300,8 @@ function nativeTargets(project) {
|
|
|
7320
7300
|
}
|
|
7321
7301
|
return refs;
|
|
7322
7302
|
}
|
|
7323
|
-
function readXcodeAppTarget(
|
|
7303
|
+
function readXcodeAppTarget(input, targetName) {
|
|
7304
|
+
const xcodeprojOrWorkspace = import_node_fs13.default.realpathSync(input);
|
|
7324
7305
|
const workspace = xcodeprojOrWorkspace.endsWith(".xcworkspace") ? xcodeprojOrWorkspace : null;
|
|
7325
7306
|
const { listed, projects: projects2, projectAt } = workspaceProjects(xcodeprojOrWorkspace);
|
|
7326
7307
|
const allTargets = projects2.flatMap(nativeTargets);
|
|
@@ -7345,7 +7326,8 @@ function readXcodeAppTarget(xcodeprojOrWorkspace, targetName) {
|
|
|
7345
7326
|
const proxy = project.object(proxyId);
|
|
7346
7327
|
if (proxy?.isa !== "PBXContainerItemProxy") return void 0;
|
|
7347
7328
|
const portal = str(proxy.containerPortal);
|
|
7348
|
-
const
|
|
7329
|
+
const portalPath = project.resolvePath(portal ?? "");
|
|
7330
|
+
const owner = project.object(portal)?.isa === "PBXProject" ? project : portalPath && import_node_fs13.default.existsSync(portalPath) ? projectAt.get(import_node_fs13.default.realpathSync(portalPath)) : void 0;
|
|
7349
7331
|
const remote = str(proxy.remoteGlobalIDString);
|
|
7350
7332
|
if (!owner || !remote) return void 0;
|
|
7351
7333
|
return nativeTargets(owner).find(
|
|
@@ -7494,7 +7476,7 @@ function readXcodeAppTarget(xcodeprojOrWorkspace, targetName) {
|
|
|
7494
7476
|
"swiftpm",
|
|
7495
7477
|
"Package.resolved"
|
|
7496
7478
|
);
|
|
7497
|
-
const used =
|
|
7479
|
+
const used = order.map((ref) => ref.project);
|
|
7498
7480
|
return {
|
|
7499
7481
|
...module2,
|
|
7500
7482
|
rootDir: commonAncestor(
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|