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
|
@@ -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;
|
|
@@ -2397,14 +2397,14 @@ function liftExtensionOverrides(source, extraObjCExtensions) {
|
|
|
2397
2397
|
const args = forwardedArguments(source.slice(open + 1, close));
|
|
2398
2398
|
if (args === null) continue;
|
|
2399
2399
|
const call = (clause.includes("->") ? "return " : "") + (/\b(?:throws|rethrows)\b/.test(clause) ? "try " : "") + (/\basync\b/.test(clause) ? "await " : "") + `__peach_ext_${name2}(${args})`;
|
|
2400
|
-
const
|
|
2400
|
+
const signature = `func ${name2}${func[3] ?? ""}${source.slice(open, close + 1)}${clause ? ` ${clause}` : ""}`;
|
|
2401
2401
|
const nameAt = at + rest.indexOf(name2, rest.indexOf("func", "override".length + func[1].length) + 4);
|
|
2402
2402
|
lifted.push({
|
|
2403
2403
|
type: top.name,
|
|
2404
2404
|
member: name2,
|
|
2405
2405
|
at,
|
|
2406
2406
|
modifiers,
|
|
2407
|
-
decl:
|
|
2407
|
+
decl: signature,
|
|
2408
2408
|
forward: `{ ${call} };`,
|
|
2409
2409
|
nameAt,
|
|
2410
2410
|
edits: [
|
|
@@ -2631,9 +2631,9 @@ function lowerNotificationDelegate(source) {
|
|
|
2631
2631
|
const body = code.slice(open + 1, close - 1);
|
|
2632
2632
|
for (const method of body.matchAll(/\bfunc\s+userNotificationCenter\s*\(/g)) {
|
|
2633
2633
|
const at = open + 1 + method.index;
|
|
2634
|
-
const
|
|
2634
|
+
const signature = code.slice(at, code.indexOf("{", at));
|
|
2635
2635
|
const label = Object.keys(selectors).find(
|
|
2636
|
-
(name2) => new RegExp(`\\b${name2}\\b`).test(
|
|
2636
|
+
(name2) => new RegExp(`\\b${name2}\\b`).test(signature)
|
|
2637
2637
|
);
|
|
2638
2638
|
if (label) edits.push([at, 0, `@ObjC(${JSON.stringify(selectors[label])}) `]);
|
|
2639
2639
|
}
|
|
@@ -2731,7 +2731,7 @@ function lowerTableProtocolMethods(source, conformances) {
|
|
|
2731
2731
|
depth--;
|
|
2732
2732
|
if (depth === 1) previous = at + 1;
|
|
2733
2733
|
} else if (depth === 1 && /^func\b/.test(code.slice(at))) {
|
|
2734
|
-
const
|
|
2734
|
+
const signature = code.slice(at, code.indexOf("{", at));
|
|
2735
2735
|
const prefix = code.slice(previous, at);
|
|
2736
2736
|
const attributes = /(?:@\w+(?:\([^{}]*\))?\s*|(?:public|open|private|fileprivate|internal|final|override|static|class|nonisolated|dynamic)\s+)*$/.exec(
|
|
2737
2737
|
prefix
|
|
@@ -2740,12 +2740,12 @@ function lowerTableProtocolMethods(source, conformances) {
|
|
|
2740
2740
|
continue;
|
|
2741
2741
|
let selector;
|
|
2742
2742
|
if (conforms.has("UITableViewDataSource") && /^func\s+numberOfSections\s*\(\s*in\s+\w+\s*:\s*(?:UIKit\.)?UITableView\s*\)/.test(
|
|
2743
|
-
|
|
2743
|
+
signature
|
|
2744
2744
|
))
|
|
2745
2745
|
selector = "numberOfSectionsInTableView:";
|
|
2746
2746
|
else {
|
|
2747
2747
|
const match = /^func\s+tableView\s*\(\s*_\s+\w+\s*:\s*(?:UIKit\.)?UITableView\s*,\s*(\w+)\b/.exec(
|
|
2748
|
-
|
|
2748
|
+
signature
|
|
2749
2749
|
);
|
|
2750
2750
|
if (match) selector = selectors[match[1]];
|
|
2751
2751
|
}
|
|
@@ -4452,15 +4452,13 @@ async function range(url, spec) {
|
|
|
4452
4452
|
total: Number(match[2])
|
|
4453
4453
|
};
|
|
4454
4454
|
}
|
|
4455
|
-
var signature = (bytes, value) => {
|
|
4456
|
-
const needle = Buffer.alloc(4);
|
|
4457
|
-
needle.writeUInt32LE(value);
|
|
4458
|
-
return bytes.lastIndexOf(needle);
|
|
4459
|
-
};
|
|
4460
4455
|
async function zipEntries(url) {
|
|
4461
4456
|
const { total } = await range(url, "0-0");
|
|
4462
4457
|
const tail = await range(url, `${Math.max(0, total - 65558)}-${total - 1}`);
|
|
4463
|
-
|
|
4458
|
+
let end = tail.bytes.length - 22;
|
|
4459
|
+
for (; end >= 0; end--)
|
|
4460
|
+
if (tail.bytes.readUInt32LE(end) === 101010256 && end + 22 + tail.bytes.readUInt16LE(end + 20) === tail.bytes.length)
|
|
4461
|
+
break;
|
|
4464
4462
|
if (end < 0) throw new Error(`${url} has no zip end record`);
|
|
4465
4463
|
let size = tail.bytes.readUInt32LE(end + 12);
|
|
4466
4464
|
let offset = tail.bytes.readUInt32LE(end + 16);
|
|
@@ -5034,7 +5032,7 @@ function getCliVersion() {
|
|
|
5034
5032
|
}
|
|
5035
5033
|
|
|
5036
5034
|
// src/swift-standin-emit.ts
|
|
5037
|
-
var STANDIN_EMIT_VERSION = "
|
|
5035
|
+
var STANDIN_EMIT_VERSION = "5";
|
|
5038
5036
|
var TYPE_KINDS = /* @__PURE__ */ new Set([
|
|
5039
5037
|
"swift.class",
|
|
5040
5038
|
"swift.struct",
|
|
@@ -5472,24 +5470,6 @@ function emitSwiftStandin(graphs, options) {
|
|
|
5472
5470
|
);
|
|
5473
5471
|
continue;
|
|
5474
5472
|
}
|
|
5475
|
-
if (raw2 && list2.includes("Hashable")) {
|
|
5476
|
-
if (leaf(member) === "hash(into:)") {
|
|
5477
|
-
emit(
|
|
5478
|
-
`${inner}public func hash(into hasher: inout Hasher) { hasher.combine(rawValue) }`
|
|
5479
|
-
);
|
|
5480
|
-
continue;
|
|
5481
|
-
}
|
|
5482
|
-
if (leaf(member) === "hashValue") {
|
|
5483
|
-
emit(`${inner}public var hashValue: Int { rawValue.hashValue }`);
|
|
5484
|
-
continue;
|
|
5485
|
-
}
|
|
5486
|
-
if (leaf(member).startsWith("==")) {
|
|
5487
|
-
emit(
|
|
5488
|
-
`${inner}public static func == (lhs: ${shape.name}${shape.generics}, rhs: ${shape.name}${shape.generics}) -> Bool { lhs.rawValue == rhs.rawValue }`
|
|
5489
|
-
);
|
|
5490
|
-
continue;
|
|
5491
|
-
}
|
|
5492
|
-
}
|
|
5493
5473
|
emitMember(member, inner, {
|
|
5494
5474
|
openOwner: false,
|
|
5495
5475
|
inClass: false,
|
|
@@ -5505,7 +5485,7 @@ function emitSwiftStandin(graphs, options) {
|
|
|
5505
5485
|
return void skipped.push({ path: path16, reason: `unparsed enum ${text(symbol)}` });
|
|
5506
5486
|
const members = membersOf(id);
|
|
5507
5487
|
const raw2 = rawType(members);
|
|
5508
|
-
const cases =
|
|
5488
|
+
const cases = members.filter(
|
|
5509
5489
|
(member) => member.kind.identifier === "swift.enum.case"
|
|
5510
5490
|
);
|
|
5511
5491
|
const missing = raw2 ? cases.filter((member) => !values.has(member.identifier.precise)) : [];
|
|
@@ -7293,9 +7273,9 @@ function workspaceProjects(xcodeprojOrWorkspace) {
|
|
|
7293
7273
|
const projects2 = [];
|
|
7294
7274
|
const projectAt = /* @__PURE__ */ new Map();
|
|
7295
7275
|
const addProject = (xcodeproj) => {
|
|
7296
|
-
|
|
7276
|
+
if (!xcodeProjectFile(xcodeproj)) return;
|
|
7277
|
+
const key2 = import_node_fs13.default.realpathSync(xcodeproj);
|
|
7297
7278
|
if (projectAt.has(key2) || key2.split(import_node_path14.default.sep).includes("Pods")) return;
|
|
7298
|
-
if (!xcodeProjectFile(key2)) return;
|
|
7299
7279
|
const project = loadProject(key2);
|
|
7300
7280
|
projectAt.set(key2, project);
|
|
7301
7281
|
projects2.push(project);
|
|
@@ -7327,7 +7307,8 @@ function nativeTargets(project) {
|
|
|
7327
7307
|
}
|
|
7328
7308
|
return refs;
|
|
7329
7309
|
}
|
|
7330
|
-
function readXcodeAppTarget(
|
|
7310
|
+
function readXcodeAppTarget(input, targetName) {
|
|
7311
|
+
const xcodeprojOrWorkspace = import_node_fs13.default.realpathSync(input);
|
|
7331
7312
|
const workspace = xcodeprojOrWorkspace.endsWith(".xcworkspace") ? xcodeprojOrWorkspace : null;
|
|
7332
7313
|
const { listed, projects: projects2, projectAt } = workspaceProjects(xcodeprojOrWorkspace);
|
|
7333
7314
|
const allTargets = projects2.flatMap(nativeTargets);
|
|
@@ -7352,7 +7333,8 @@ function readXcodeAppTarget(xcodeprojOrWorkspace, targetName) {
|
|
|
7352
7333
|
const proxy = project.object(proxyId);
|
|
7353
7334
|
if (proxy?.isa !== "PBXContainerItemProxy") return void 0;
|
|
7354
7335
|
const portal = str(proxy.containerPortal);
|
|
7355
|
-
const
|
|
7336
|
+
const portalPath = project.resolvePath(portal ?? "");
|
|
7337
|
+
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;
|
|
7356
7338
|
const remote = str(proxy.remoteGlobalIDString);
|
|
7357
7339
|
if (!owner || !remote) return void 0;
|
|
7358
7340
|
return nativeTargets(owner).find(
|
|
@@ -7501,7 +7483,7 @@ function readXcodeAppTarget(xcodeprojOrWorkspace, targetName) {
|
|
|
7501
7483
|
"swiftpm",
|
|
7502
7484
|
"Package.resolved"
|
|
7503
7485
|
);
|
|
7504
|
-
const used =
|
|
7486
|
+
const used = order.map((ref) => ref.project);
|
|
7505
7487
|
return {
|
|
7506
7488
|
...module2,
|
|
7507
7489
|
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;
|
package/dist-lib/home-paths.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 __create = Object.create;
|
|
@@ -11440,14 +11440,14 @@ function liftExtensionOverrides(source, extraObjCExtensions) {
|
|
|
11440
11440
|
const args = forwardedArguments(source.slice(open + 1, close));
|
|
11441
11441
|
if (args === null) continue;
|
|
11442
11442
|
const call = (clause.includes("->") ? "return " : "") + (/\b(?:throws|rethrows)\b/.test(clause) ? "try " : "") + (/\basync\b/.test(clause) ? "await " : "") + `__peach_ext_${name2}(${args})`;
|
|
11443
|
-
const
|
|
11443
|
+
const signature = `func ${name2}${func[3] ?? ""}${source.slice(open, close + 1)}${clause ? ` ${clause}` : ""}`;
|
|
11444
11444
|
const nameAt = at + rest.indexOf(name2, rest.indexOf("func", "override".length + func[1].length) + 4);
|
|
11445
11445
|
lifted.push({
|
|
11446
11446
|
type: top.name,
|
|
11447
11447
|
member: name2,
|
|
11448
11448
|
at,
|
|
11449
11449
|
modifiers,
|
|
11450
|
-
decl:
|
|
11450
|
+
decl: signature,
|
|
11451
11451
|
forward: `{ ${call} };`,
|
|
11452
11452
|
nameAt,
|
|
11453
11453
|
edits: [
|
|
@@ -11674,9 +11674,9 @@ function lowerNotificationDelegate(source) {
|
|
|
11674
11674
|
const body = code.slice(open + 1, close - 1);
|
|
11675
11675
|
for (const method of body.matchAll(/\bfunc\s+userNotificationCenter\s*\(/g)) {
|
|
11676
11676
|
const at = open + 1 + method.index;
|
|
11677
|
-
const
|
|
11677
|
+
const signature = code.slice(at, code.indexOf("{", at));
|
|
11678
11678
|
const label = Object.keys(selectors).find(
|
|
11679
|
-
(name2) => new RegExp(`\\b${name2}\\b`).test(
|
|
11679
|
+
(name2) => new RegExp(`\\b${name2}\\b`).test(signature)
|
|
11680
11680
|
);
|
|
11681
11681
|
if (label) edits.push([at, 0, `@ObjC(${JSON.stringify(selectors[label])}) `]);
|
|
11682
11682
|
}
|
|
@@ -11774,7 +11774,7 @@ function lowerTableProtocolMethods(source, conformances) {
|
|
|
11774
11774
|
depth--;
|
|
11775
11775
|
if (depth === 1) previous = at + 1;
|
|
11776
11776
|
} else if (depth === 1 && /^func\b/.test(code.slice(at))) {
|
|
11777
|
-
const
|
|
11777
|
+
const signature = code.slice(at, code.indexOf("{", at));
|
|
11778
11778
|
const prefix = code.slice(previous, at);
|
|
11779
11779
|
const attributes = /(?:@\w+(?:\([^{}]*\))?\s*|(?:public|open|private|fileprivate|internal|final|override|static|class|nonisolated|dynamic)\s+)*$/.exec(
|
|
11780
11780
|
prefix
|
|
@@ -11783,12 +11783,12 @@ function lowerTableProtocolMethods(source, conformances) {
|
|
|
11783
11783
|
continue;
|
|
11784
11784
|
let selector;
|
|
11785
11785
|
if (conforms.has("UITableViewDataSource") && /^func\s+numberOfSections\s*\(\s*in\s+\w+\s*:\s*(?:UIKit\.)?UITableView\s*\)/.test(
|
|
11786
|
-
|
|
11786
|
+
signature
|
|
11787
11787
|
))
|
|
11788
11788
|
selector = "numberOfSectionsInTableView:";
|
|
11789
11789
|
else {
|
|
11790
11790
|
const match = /^func\s+tableView\s*\(\s*_\s+\w+\s*:\s*(?:UIKit\.)?UITableView\s*,\s*(\w+)\b/.exec(
|
|
11791
|
-
|
|
11791
|
+
signature
|
|
11792
11792
|
);
|
|
11793
11793
|
if (match) selector = selectors[match[1]];
|
|
11794
11794
|
}
|
|
@@ -13667,15 +13667,13 @@ async function range(url, spec) {
|
|
|
13667
13667
|
total: Number(match[2])
|
|
13668
13668
|
};
|
|
13669
13669
|
}
|
|
13670
|
-
var signature = (bytes, value) => {
|
|
13671
|
-
const needle = Buffer.alloc(4);
|
|
13672
|
-
needle.writeUInt32LE(value);
|
|
13673
|
-
return bytes.lastIndexOf(needle);
|
|
13674
|
-
};
|
|
13675
13670
|
async function zipEntries(url) {
|
|
13676
13671
|
const { total } = await range(url, "0-0");
|
|
13677
13672
|
const tail = await range(url, `${Math.max(0, total - 65558)}-${total - 1}`);
|
|
13678
|
-
|
|
13673
|
+
let end = tail.bytes.length - 22;
|
|
13674
|
+
for (; end >= 0; end--)
|
|
13675
|
+
if (tail.bytes.readUInt32LE(end) === 101010256 && end + 22 + tail.bytes.readUInt16LE(end + 20) === tail.bytes.length)
|
|
13676
|
+
break;
|
|
13679
13677
|
if (end < 0) throw new Error(`${url} has no zip end record`);
|
|
13680
13678
|
let size = tail.bytes.readUInt32LE(end + 12);
|
|
13681
13679
|
let offset = tail.bytes.readUInt32LE(end + 16);
|
|
@@ -14207,7 +14205,7 @@ var import_node_os7 = __toESM(require("node:os"), 1);
|
|
|
14207
14205
|
var import_node_path17 = __toESM(require("node:path"), 1);
|
|
14208
14206
|
|
|
14209
14207
|
// src/swift-standin-emit.ts
|
|
14210
|
-
var STANDIN_EMIT_VERSION = "
|
|
14208
|
+
var STANDIN_EMIT_VERSION = "5";
|
|
14211
14209
|
var TYPE_KINDS = /* @__PURE__ */ new Set([
|
|
14212
14210
|
"swift.class",
|
|
14213
14211
|
"swift.struct",
|
|
@@ -14645,24 +14643,6 @@ function emitSwiftStandin(graphs, options) {
|
|
|
14645
14643
|
);
|
|
14646
14644
|
continue;
|
|
14647
14645
|
}
|
|
14648
|
-
if (raw2 && list2.includes("Hashable")) {
|
|
14649
|
-
if (leaf(member) === "hash(into:)") {
|
|
14650
|
-
emit(
|
|
14651
|
-
`${inner}public func hash(into hasher: inout Hasher) { hasher.combine(rawValue) }`
|
|
14652
|
-
);
|
|
14653
|
-
continue;
|
|
14654
|
-
}
|
|
14655
|
-
if (leaf(member) === "hashValue") {
|
|
14656
|
-
emit(`${inner}public var hashValue: Int { rawValue.hashValue }`);
|
|
14657
|
-
continue;
|
|
14658
|
-
}
|
|
14659
|
-
if (leaf(member).startsWith("==")) {
|
|
14660
|
-
emit(
|
|
14661
|
-
`${inner}public static func == (lhs: ${shape.name}${shape.generics}, rhs: ${shape.name}${shape.generics}) -> Bool { lhs.rawValue == rhs.rawValue }`
|
|
14662
|
-
);
|
|
14663
|
-
continue;
|
|
14664
|
-
}
|
|
14665
|
-
}
|
|
14666
14646
|
emitMember(member, inner, {
|
|
14667
14647
|
openOwner: false,
|
|
14668
14648
|
inClass: false,
|
|
@@ -14678,7 +14658,7 @@ function emitSwiftStandin(graphs, options) {
|
|
|
14678
14658
|
return void skipped.push({ path: path25, reason: `unparsed enum ${text(symbol)}` });
|
|
14679
14659
|
const members = membersOf(id);
|
|
14680
14660
|
const raw2 = rawType(members);
|
|
14681
|
-
const cases =
|
|
14661
|
+
const cases = members.filter(
|
|
14682
14662
|
(member) => member.kind.identifier === "swift.enum.case"
|
|
14683
14663
|
);
|
|
14684
14664
|
const missing = raw2 ? cases.filter((member) => !values.has(member.identifier.precise)) : [];
|
|
@@ -16466,9 +16446,9 @@ function workspaceProjects(xcodeprojOrWorkspace) {
|
|
|
16466
16446
|
const projects2 = [];
|
|
16467
16447
|
const projectAt = /* @__PURE__ */ new Map();
|
|
16468
16448
|
const addProject = (xcodeproj) => {
|
|
16469
|
-
|
|
16449
|
+
if (!xcodeProjectFile(xcodeproj)) return;
|
|
16450
|
+
const key2 = import_node_fs18.default.realpathSync(xcodeproj);
|
|
16470
16451
|
if (projectAt.has(key2) || key2.split(import_node_path19.default.sep).includes("Pods")) return;
|
|
16471
|
-
if (!xcodeProjectFile(key2)) return;
|
|
16472
16452
|
const project = loadProject(key2);
|
|
16473
16453
|
projectAt.set(key2, project);
|
|
16474
16454
|
projects2.push(project);
|
|
@@ -16500,7 +16480,8 @@ function nativeTargets(project) {
|
|
|
16500
16480
|
}
|
|
16501
16481
|
return refs;
|
|
16502
16482
|
}
|
|
16503
|
-
function readXcodeAppTarget(
|
|
16483
|
+
function readXcodeAppTarget(input, targetName) {
|
|
16484
|
+
const xcodeprojOrWorkspace = import_node_fs18.default.realpathSync(input);
|
|
16504
16485
|
const workspace = xcodeprojOrWorkspace.endsWith(".xcworkspace") ? xcodeprojOrWorkspace : null;
|
|
16505
16486
|
const { listed, projects: projects2, projectAt } = workspaceProjects(xcodeprojOrWorkspace);
|
|
16506
16487
|
const allTargets = projects2.flatMap(nativeTargets);
|
|
@@ -16525,7 +16506,8 @@ function readXcodeAppTarget(xcodeprojOrWorkspace, targetName) {
|
|
|
16525
16506
|
const proxy = project.object(proxyId);
|
|
16526
16507
|
if (proxy?.isa !== "PBXContainerItemProxy") return void 0;
|
|
16527
16508
|
const portal = str(proxy.containerPortal);
|
|
16528
|
-
const
|
|
16509
|
+
const portalPath = project.resolvePath(portal ?? "");
|
|
16510
|
+
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;
|
|
16529
16511
|
const remote = str(proxy.remoteGlobalIDString);
|
|
16530
16512
|
if (!owner || !remote) return void 0;
|
|
16531
16513
|
return nativeTargets(owner).find(
|
|
@@ -16674,7 +16656,7 @@ function readXcodeAppTarget(xcodeprojOrWorkspace, targetName) {
|
|
|
16674
16656
|
"swiftpm",
|
|
16675
16657
|
"Package.resolved"
|
|
16676
16658
|
);
|
|
16677
|
-
const used =
|
|
16659
|
+
const used = order.map((ref) => ref.project);
|
|
16678
16660
|
return {
|
|
16679
16661
|
...module2,
|
|
16680
16662
|
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 __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;
|
package/dist-lib/index.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;
|
|
@@ -9992,9 +9992,9 @@ function workspaceProjects(xcodeprojOrWorkspace) {
|
|
|
9992
9992
|
const projects = [];
|
|
9993
9993
|
const projectAt = /* @__PURE__ */ new Map();
|
|
9994
9994
|
const addProject = (xcodeproj) => {
|
|
9995
|
-
|
|
9995
|
+
if (!xcodeProjectFile(xcodeproj)) return;
|
|
9996
|
+
const key = import_node_fs9.default.realpathSync(xcodeproj);
|
|
9996
9997
|
if (projectAt.has(key) || key.split(import_node_path10.default.sep).includes("Pods")) return;
|
|
9997
|
-
if (!xcodeProjectFile(key)) return;
|
|
9998
9998
|
const project = loadProject(key);
|
|
9999
9999
|
projectAt.set(key, project);
|
|
10000
10000
|
projects.push(project);
|
|
@@ -10029,7 +10029,8 @@ function nativeTargets(project) {
|
|
|
10029
10029
|
function listXcodeAppTargets(xcodeprojOrWorkspace) {
|
|
10030
10030
|
return workspaceProjects(xcodeprojOrWorkspace).projects.flatMap(nativeTargets).filter((ref) => ref.target.productType === APPLICATION).map((ref) => str(ref.target.name) ?? ref.id);
|
|
10031
10031
|
}
|
|
10032
|
-
function readXcodeAppTarget(
|
|
10032
|
+
function readXcodeAppTarget(input, targetName) {
|
|
10033
|
+
const xcodeprojOrWorkspace = import_node_fs9.default.realpathSync(input);
|
|
10033
10034
|
const workspace = xcodeprojOrWorkspace.endsWith(".xcworkspace") ? xcodeprojOrWorkspace : null;
|
|
10034
10035
|
const { listed, projects, projectAt } = workspaceProjects(xcodeprojOrWorkspace);
|
|
10035
10036
|
const allTargets = projects.flatMap(nativeTargets);
|
|
@@ -10054,7 +10055,8 @@ function readXcodeAppTarget(xcodeprojOrWorkspace, targetName) {
|
|
|
10054
10055
|
const proxy = project.object(proxyId);
|
|
10055
10056
|
if (proxy?.isa !== "PBXContainerItemProxy") return void 0;
|
|
10056
10057
|
const portal = str(proxy.containerPortal);
|
|
10057
|
-
const
|
|
10058
|
+
const portalPath = project.resolvePath(portal ?? "");
|
|
10059
|
+
const owner = project.object(portal)?.isa === "PBXProject" ? project : portalPath && import_node_fs9.default.existsSync(portalPath) ? projectAt.get(import_node_fs9.default.realpathSync(portalPath)) : void 0;
|
|
10058
10060
|
const remote = str(proxy.remoteGlobalIDString);
|
|
10059
10061
|
if (!owner || !remote) return void 0;
|
|
10060
10062
|
return nativeTargets(owner).find(
|
|
@@ -10203,7 +10205,7 @@ function readXcodeAppTarget(xcodeprojOrWorkspace, targetName) {
|
|
|
10203
10205
|
"swiftpm",
|
|
10204
10206
|
"Package.resolved"
|
|
10205
10207
|
);
|
|
10206
|
-
const used =
|
|
10208
|
+
const used = order.map((ref) => ref.project);
|
|
10207
10209
|
return {
|
|
10208
10210
|
...module2,
|
|
10209
10211
|
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 __create = Object.create;
|
package/dist-lib/kotlin-host.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;
|
|
@@ -32,8 +32,6 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
32
32
|
// src/kotlin-host.ts
|
|
33
33
|
var kotlin_host_exports = {};
|
|
34
34
|
__export(kotlin_host_exports, {
|
|
35
|
-
KOTLIN_ARTIFACT_PREFIX: () => KOTLIN_ARTIFACT_PREFIX,
|
|
36
|
-
KOTLIN_PACKAGE_PATH: () => KOTLIN_PACKAGE_PATH,
|
|
37
35
|
kotlinAppArtifact: () => kotlinAppArtifact,
|
|
38
36
|
kotlinArtifact: () => kotlinArtifact,
|
|
39
37
|
kotlinSources: () => kotlinSources,
|
|
@@ -375,8 +373,8 @@ function viewModelInitializer({ name, signature }) {
|
|
|
375
373
|
)}) }`;
|
|
376
374
|
}
|
|
377
375
|
}
|
|
376
|
+
var argb = (color) => `0x${color.toString(16).padStart(8, "0").toUpperCase()}.toInt()`;
|
|
378
377
|
function windowTheme(window) {
|
|
379
|
-
const argb = (color) => `0x${color.toString(16).padStart(8, "0")}.toInt()`;
|
|
380
378
|
return [
|
|
381
379
|
" android.view.WindowTheme(",
|
|
382
380
|
` ${window.edgeToEdgeEnforced}, ${argb(window.statusBarColor)}, ${argb(window.navigationBarColor)},`,
|
|
@@ -387,7 +385,6 @@ function windowTheme(window) {
|
|
|
387
385
|
}
|
|
388
386
|
async function kotlinAppArtifact(app, moduleRoot, origin) {
|
|
389
387
|
const toolchain = readToolchain(moduleRoot);
|
|
390
|
-
const kotlinString = (value) => JSON.stringify(value).replaceAll("$", "\\$");
|
|
391
388
|
const appEntry = (viewModels) => [
|
|
392
389
|
"@file:OptIn(kotlin.js.ExperimentalJsExport::class)",
|
|
393
390
|
"",
|
|
@@ -398,14 +395,14 @@ async function kotlinAppArtifact(app, moduleRoot, origin) {
|
|
|
398
395
|
" regular: String, medium: String, bold: String, insets: String, night: Boolean,",
|
|
399
396
|
" invalidate: (Boolean) -> Unit): String = dev.peach.app.peachStartApp(",
|
|
400
397
|
" dev.peach.app.PeachAppSpec(",
|
|
401
|
-
` android.content.ComponentName(${
|
|
402
|
-
` android.content.ComponentName(${
|
|
398
|
+
` android.content.ComponentName(${literal(app.packageName)}, ${literal(app.launcher.name)}),`,
|
|
399
|
+
` android.content.ComponentName(${literal(app.packageName)}, ${literal(app.launcher.targetClass)}),`,
|
|
403
400
|
...windowTheme(app.window.day),
|
|
404
401
|
...windowTheme(app.window.night),
|
|
405
402
|
` { ${app.applicationClass ?? "android.app.Application"}() },`,
|
|
406
403
|
` { ${app.launcher.targetClass}() },`,
|
|
407
404
|
` ${app.handlesUiMode},`,
|
|
408
|
-
` ${
|
|
405
|
+
` ${literal(app.softInputAdjust)},`,
|
|
409
406
|
" androidx.lifecycle.viewmodel.viewModelFactory {",
|
|
410
407
|
...viewModels.map(viewModelInitializer),
|
|
411
408
|
" },",
|
|
@@ -474,7 +471,6 @@ function appResourceSources(app) {
|
|
|
474
471
|
name: resource.name,
|
|
475
472
|
init: `mapOf(${Object.entries(resource.values).map(([locale, value]) => `${literal(locale)} to ${render(value)}`).join(", ")})`
|
|
476
473
|
}));
|
|
477
|
-
const argb = (value) => `0x${value.toString(16).padStart(8, "0").toUpperCase()}.toInt()`;
|
|
478
474
|
const kinds = [
|
|
479
475
|
{
|
|
480
476
|
type: "string",
|
|
@@ -575,7 +571,6 @@ function drawableInit(drawable, file) {
|
|
|
575
571
|
)})`;
|
|
576
572
|
const vector = drawable.vector;
|
|
577
573
|
const float = (value) => `${value}f`;
|
|
578
|
-
const argb = (value) => `0x${value.toString(16).padStart(8, "0").toUpperCase()}.toInt()`;
|
|
579
574
|
const pick = (value) => value.day === value.night ? argb(value.day) : `if (night) ${argb(value.night)} else ${argb(value.day)}`;
|
|
580
575
|
const nodes = (pathData) => pathData ? `addPathNodes(${literal(pathData)})` : "emptyList()";
|
|
581
576
|
const calls = vector.calls.map((call) => {
|
|
@@ -633,7 +628,7 @@ async function compileKotlin(input, origin) {
|
|
|
633
628
|
} = input;
|
|
634
629
|
const digest = (0, import_node_crypto.createHash)("sha256");
|
|
635
630
|
digest.update(JSON.stringify({ format: BUILD_FORMAT, toolchain, language }));
|
|
636
|
-
for (const file of [...shims, ...sources])
|
|
631
|
+
for (const file of [...shims, ...sources, ...viewModels ? [viewModels.script] : []])
|
|
637
632
|
digest.update(`${import_node_path2.default.relative(root, file)}\0${import_node_fs.default.readFileSync(file, "utf8")}\0`);
|
|
638
633
|
for (const [name, text] of Object.entries(generated))
|
|
639
634
|
digest.update(`${name}\0${text}\0`);
|
|
@@ -745,6 +740,7 @@ async function compileKotlin(input, origin) {
|
|
|
745
740
|
]);
|
|
746
741
|
if (usesCompose) {
|
|
747
742
|
for (const library of toolchain.composeJsLibraries) {
|
|
743
|
+
let imported = false;
|
|
748
744
|
for (const file of import_node_fs.default.readdirSync(import_node_path2.default.join(work, "js"))) {
|
|
749
745
|
if (!file.endsWith(".mjs")) continue;
|
|
750
746
|
const target = import_node_path2.default.join(work, "js", file);
|
|
@@ -756,18 +752,20 @@ async function compileKotlin(input, origin) {
|
|
|
756
752
|
`from ${quote}./${library.file}${quote}`
|
|
757
753
|
);
|
|
758
754
|
if (next === source) continue;
|
|
759
|
-
const archive = import_node_path2.default.join(
|
|
760
|
-
kotlinHome(),
|
|
761
|
-
toolchain.compiler.version,
|
|
762
|
-
library.name
|
|
763
|
-
);
|
|
764
|
-
await fetchVerified(library, archive);
|
|
765
|
-
const { stdout } = await run("tar", ["-xOf", archive, library.archiveEntry], {
|
|
766
|
-
maxBuffer: 16 * 1024 * 1024
|
|
767
|
-
});
|
|
768
|
-
import_node_fs.default.writeFileSync(import_node_path2.default.join(work, "js", library.file), stdout);
|
|
769
755
|
import_node_fs.default.writeFileSync(target, next);
|
|
756
|
+
imported = true;
|
|
770
757
|
}
|
|
758
|
+
if (!imported) continue;
|
|
759
|
+
const archive = import_node_path2.default.join(
|
|
760
|
+
kotlinHome(),
|
|
761
|
+
toolchain.compiler.version,
|
|
762
|
+
library.name
|
|
763
|
+
);
|
|
764
|
+
await fetchVerified(library, archive);
|
|
765
|
+
const { stdout } = await run("tar", ["-xOf", archive, library.archiveEntry], {
|
|
766
|
+
maxBuffer: 16 * 1024 * 1024
|
|
767
|
+
});
|
|
768
|
+
import_node_fs.default.writeFileSync(import_node_path2.default.join(work, "js", library.file), stdout);
|
|
771
769
|
}
|
|
772
770
|
}
|
|
773
771
|
} catch (error) {
|
|
@@ -805,7 +803,12 @@ ${output.trim() || (error instanceof Error ? error.message : String(error))}`
|
|
|
805
803
|
`kotlin output no longer contains ${from}; recheck how it detects its host in Peach`
|
|
806
804
|
);
|
|
807
805
|
}
|
|
808
|
-
|
|
806
|
+
try {
|
|
807
|
+
import_node_fs.default.renameSync(work, out);
|
|
808
|
+
} catch (error) {
|
|
809
|
+
if (!import_node_fs.default.existsSync(import_node_path2.default.join(out, "js", "app.wasm"))) throw error;
|
|
810
|
+
import_node_fs.default.rmSync(work, { recursive: true, force: true });
|
|
811
|
+
}
|
|
809
812
|
return artifact;
|
|
810
813
|
})().finally(() => builds.delete(hash));
|
|
811
814
|
builds.set(hash, build);
|
|
@@ -859,8 +862,6 @@ async function serveKotlinRequest(pathname, res, app) {
|
|
|
859
862
|
}
|
|
860
863
|
// Annotate the CommonJS export names for ESM import in node:
|
|
861
864
|
0 && (module.exports = {
|
|
862
|
-
KOTLIN_ARTIFACT_PREFIX,
|
|
863
|
-
KOTLIN_PACKAGE_PATH,
|
|
864
865
|
kotlinAppArtifact,
|
|
865
866
|
kotlinArtifact,
|
|
866
867
|
kotlinSources,
|
package/dist-lib/menu.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/menu.mjs
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 __defProp = Object.defineProperty;
|