peachsim 0.1.799 → 0.1.801
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/drivers/playwright-sim-host.ts +2 -0
- package/cli/outbound-endpoints.ts +0 -4
- 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 +125 -10
- 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 +48 -7
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +125 -10
- 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 +125 -10
- 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 +1 -1
- 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 +125 -10
- package/dist-lib/swift-compile.cjs +134 -11
- package/dist-lib/swift-compile.mjs +133 -11
- 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 +125 -10
- package/dist-lib/vite.cjs +1 -1
- package/package.json +1 -1
- package/src/swift-compile.ts +151 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.801 | (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;
|
|
@@ -2045,7 +2045,7 @@ var ONE_IMPLICIT_FLAGS = ', "-Xfrontend", "-import-module", "-Xfrontend", "One"'
|
|
|
2045
2045
|
var MULTI_MANIFEST_VERSION = 12;
|
|
2046
2046
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
2047
2047
|
const hash = (0, import_node_crypto2.createHash)("sha256");
|
|
2048
|
-
hash.update(`swift-compile/
|
|
2048
|
+
hash.update(`swift-compile/v19
|
|
2049
2049
|
${release}
|
|
2050
2050
|
`);
|
|
2051
2051
|
if (input.oneModule) hash.update("one-module\n");
|
|
@@ -2643,6 +2643,118 @@ function lowerNotificationDelegate(source) {
|
|
|
2643
2643
|
result = result.slice(0, at) + text3 + result.slice(at + count);
|
|
2644
2644
|
return result;
|
|
2645
2645
|
}
|
|
2646
|
+
function tableProtocolConformances(sources) {
|
|
2647
|
+
const parents = /* @__PURE__ */ new Map();
|
|
2648
|
+
for (const source of sources) {
|
|
2649
|
+
const code = swiftCodeMask(source);
|
|
2650
|
+
for (const owner of code.matchAll(
|
|
2651
|
+
/\b(?:class|extension)\s+([A-Za-z_]\w*)\s*:\s*([^{}]+)\{/g
|
|
2652
|
+
)) {
|
|
2653
|
+
const inherited = parents.get(owner[1]) ?? /* @__PURE__ */ new Set();
|
|
2654
|
+
for (const type of owner[2].matchAll(/\b[A-Za-z_]\w*\b/g)) inherited.add(type[0]);
|
|
2655
|
+
parents.set(owner[1], inherited);
|
|
2656
|
+
}
|
|
2657
|
+
}
|
|
2658
|
+
const result = /* @__PURE__ */ new Map();
|
|
2659
|
+
const protocols = ["UITableViewDataSource", "UITableViewDelegate"];
|
|
2660
|
+
for (const type of parents.keys()) {
|
|
2661
|
+
const pending = [type];
|
|
2662
|
+
const seen = /* @__PURE__ */ new Set();
|
|
2663
|
+
const conformances = /* @__PURE__ */ new Set();
|
|
2664
|
+
while (pending.length) {
|
|
2665
|
+
const next = pending.pop();
|
|
2666
|
+
if (seen.has(next)) continue;
|
|
2667
|
+
seen.add(next);
|
|
2668
|
+
if (protocols.includes(next)) conformances.add(next);
|
|
2669
|
+
for (const parent of parents.get(next) ?? []) pending.push(parent);
|
|
2670
|
+
}
|
|
2671
|
+
if (conformances.size) result.set(type, conformances);
|
|
2672
|
+
}
|
|
2673
|
+
return result;
|
|
2674
|
+
}
|
|
2675
|
+
function lowerTableProtocolMethods(source, conformances) {
|
|
2676
|
+
const code = swiftCodeMask(source);
|
|
2677
|
+
const dataSource = {
|
|
2678
|
+
numberOfRowsInSection: "tableView:numberOfRowsInSection:",
|
|
2679
|
+
cellForRowAt: "tableView:cellForRowAtIndexPath:",
|
|
2680
|
+
titleForHeaderInSection: "tableView:titleForHeaderInSection:",
|
|
2681
|
+
titleForFooterInSection: "tableView:titleForFooterInSection:"
|
|
2682
|
+
};
|
|
2683
|
+
const delegate = {
|
|
2684
|
+
willDisplay: "tableView:willDisplayCell:forRowAtIndexPath:",
|
|
2685
|
+
didEndDisplaying: "tableView:didEndDisplayingCell:forRowAtIndexPath:",
|
|
2686
|
+
heightForRowAt: "tableView:heightForRowAtIndexPath:",
|
|
2687
|
+
estimatedHeightForRowAt: "tableView:estimatedHeightForRowAtIndexPath:",
|
|
2688
|
+
heightForHeaderInSection: "tableView:heightForHeaderInSection:",
|
|
2689
|
+
heightForFooterInSection: "tableView:heightForFooterInSection:",
|
|
2690
|
+
estimatedHeightForHeaderInSection: "tableView:estimatedHeightForHeaderInSection:",
|
|
2691
|
+
estimatedHeightForFooterInSection: "tableView:estimatedHeightForFooterInSection:",
|
|
2692
|
+
viewForHeaderInSection: "tableView:viewForHeaderInSection:",
|
|
2693
|
+
viewForFooterInSection: "tableView:viewForFooterInSection:",
|
|
2694
|
+
willDisplayHeaderView: "tableView:willDisplayHeaderView:forSection:",
|
|
2695
|
+
willDisplayFooterView: "tableView:willDisplayFooterView:forSection:",
|
|
2696
|
+
didEndDisplayingHeaderView: "tableView:didEndDisplayingHeaderView:forSection:",
|
|
2697
|
+
didEndDisplayingFooterView: "tableView:didEndDisplayingFooterView:forSection:",
|
|
2698
|
+
shouldHighlightRowAt: "tableView:shouldHighlightRowAtIndexPath:",
|
|
2699
|
+
didHighlightRowAt: "tableView:didHighlightRowAtIndexPath:",
|
|
2700
|
+
didUnhighlightRowAt: "tableView:didUnhighlightRowAtIndexPath:",
|
|
2701
|
+
willSelectRowAt: "tableView:willSelectRowAtIndexPath:",
|
|
2702
|
+
willDeselectRowAt: "tableView:willDeselectRowAtIndexPath:",
|
|
2703
|
+
didSelectRowAt: "tableView:didSelectRowAtIndexPath:",
|
|
2704
|
+
didDeselectRowAt: "tableView:didDeselectRowAtIndexPath:",
|
|
2705
|
+
accessoryButtonTappedForRowWith: "tableView:accessoryButtonTappedForRowWithIndexPath:"
|
|
2706
|
+
};
|
|
2707
|
+
const braces = [...code.matchAll(/[{}]/g)].map((match) => match.index);
|
|
2708
|
+
const edits = [];
|
|
2709
|
+
for (const owner of code.matchAll(/\b(?:class|extension)\s+([A-Za-z_]\w*)[^{}]*\{/g)) {
|
|
2710
|
+
const conforms = conformances.get(owner[1]);
|
|
2711
|
+
if (!conforms) continue;
|
|
2712
|
+
const selectors = {
|
|
2713
|
+
...conforms.has("UITableViewDataSource") ? dataSource : {},
|
|
2714
|
+
...conforms.has("UITableViewDelegate") ? delegate : {}
|
|
2715
|
+
};
|
|
2716
|
+
const open = owner.index + owner[0].length - 1;
|
|
2717
|
+
const close = closingBrace(code, braces, open);
|
|
2718
|
+
let depth = 1;
|
|
2719
|
+
let previous = open + 1;
|
|
2720
|
+
for (const token of swiftCodeScan(code.slice(open + 1, close - 1)).tokens) {
|
|
2721
|
+
const at = open + 1 + token;
|
|
2722
|
+
if (code[at] === "{") depth++;
|
|
2723
|
+
else if (code[at] === "}") {
|
|
2724
|
+
depth--;
|
|
2725
|
+
if (depth === 1) previous = at + 1;
|
|
2726
|
+
} else if (depth === 1 && /^func\b/.test(code.slice(at))) {
|
|
2727
|
+
const signature2 = code.slice(at, code.indexOf("{", at));
|
|
2728
|
+
const prefix = code.slice(previous, at);
|
|
2729
|
+
const attributes = /(?:@\w+(?:\([^{}]*\))?\s*|(?:public|open|private|fileprivate|internal|final|override|static|class|nonisolated|dynamic)\s+)*$/.exec(
|
|
2730
|
+
prefix
|
|
2731
|
+
)?.[0] ?? "";
|
|
2732
|
+
if (/\b(?:override|static|class)\b|@(?:objc|ObjC|IBAction)\b/.test(attributes))
|
|
2733
|
+
continue;
|
|
2734
|
+
let selector;
|
|
2735
|
+
if (conforms.has("UITableViewDataSource") && /^func\s+numberOfSections\s*\(\s*in\s+\w+\s*:\s*(?:UIKit\.)?UITableView\s*\)/.test(
|
|
2736
|
+
signature2
|
|
2737
|
+
))
|
|
2738
|
+
selector = "numberOfSectionsInTableView:";
|
|
2739
|
+
else {
|
|
2740
|
+
const match = /^func\s+tableView\s*\(\s*_\s+\w+\s*:\s*(?:UIKit\.)?UITableView\s*,\s*(\w+)\b/.exec(
|
|
2741
|
+
signature2
|
|
2742
|
+
);
|
|
2743
|
+
if (match) selector = selectors[match[1]];
|
|
2744
|
+
}
|
|
2745
|
+
if (selector)
|
|
2746
|
+
edits.push([
|
|
2747
|
+
at,
|
|
2748
|
+
`${/\bnonisolated\b/.test(attributes) ? "" : "@MainActor "}@ObjC(${JSON.stringify(selector)}) `
|
|
2749
|
+
]);
|
|
2750
|
+
}
|
|
2751
|
+
}
|
|
2752
|
+
}
|
|
2753
|
+
let result = source;
|
|
2754
|
+
for (const [at, text3] of edits.sort((a, b) => b[0] - a[0]))
|
|
2755
|
+
result = result.slice(0, at) + text3 + result.slice(at);
|
|
2756
|
+
return result;
|
|
2757
|
+
}
|
|
2646
2758
|
function swiftCodeMask(source) {
|
|
2647
2759
|
const chars = source.split("");
|
|
2648
2760
|
const blank = (from, to) => {
|
|
@@ -2746,9 +2858,9 @@ function swiftCodeMask(source) {
|
|
|
2746
2858
|
scanCode(0, false);
|
|
2747
2859
|
return chars.join("");
|
|
2748
2860
|
}
|
|
2749
|
-
function swiftSourceAsIOS(original, extraObjCExtensions) {
|
|
2861
|
+
function swiftSourceAsIOS(original, extraObjCExtensions, tableConformances = tableProtocolConformances([original])) {
|
|
2750
2862
|
const source = liftExtensionOverrides(
|
|
2751
|
-
lowerNotificationDelegate(original),
|
|
2863
|
+
lowerTableProtocolMethods(lowerNotificationDelegate(original), tableConformances),
|
|
2752
2864
|
extraObjCExtensions
|
|
2753
2865
|
);
|
|
2754
2866
|
const { lineStarts, tokens } = swiftCodeScan(source);
|
|
@@ -2990,7 +3102,7 @@ function swiftCodeScan(source) {
|
|
|
2990
3102
|
}
|
|
2991
3103
|
return { lineStarts: starts, tokens };
|
|
2992
3104
|
}
|
|
2993
|
-
var compiledSource = (file, contents, extraObjCExtensions) => file.endsWith(".swift") ? swiftSourceAsIOS(contents, extraObjCExtensions) : contents;
|
|
3105
|
+
var compiledSource = (file, contents, extraObjCExtensions, tableConformances) => file.endsWith(".swift") ? swiftSourceAsIOS(contents, extraObjCExtensions, tableConformances) : contents;
|
|
2994
3106
|
function writeSwiftProject(layout, input, moduleRoot) {
|
|
2995
3107
|
const resourceTargets = swiftManifestTargets(
|
|
2996
3108
|
input.files["Package.swift"] ?? "",
|
|
@@ -3023,15 +3135,15 @@ function writeSwiftProject(layout, input, moduleRoot) {
|
|
|
3023
3135
|
// sootsim-swift files ${modulePlan.digest("hex").slice(0, 16)}
|
|
3024
3136
|
// resource accessors ${resourcePlan}
|
|
3025
3137
|
`;
|
|
3026
|
-
const
|
|
3027
|
-
|
|
3028
|
-
);
|
|
3138
|
+
const swiftSources = Object.entries(input.files).filter(([file]) => file.endsWith(".swift")).map(([, contents]) => contents);
|
|
3139
|
+
const objcExtensions = objcExtensionMemberIndex(swiftSources);
|
|
3140
|
+
const tableConformances = tableProtocolConformances(swiftSources);
|
|
3029
3141
|
if (targets.length === 0) {
|
|
3030
3142
|
for (const [file, contents] of Object.entries(input.files)) {
|
|
3031
3143
|
if (file === "Package.swift") continue;
|
|
3032
3144
|
files2.set(
|
|
3033
3145
|
import_node_path2.default.join(layout.sources, file),
|
|
3034
|
-
compiledSource(file, contents, objcExtensions)
|
|
3146
|
+
compiledSource(file, contents, objcExtensions, tableConformances)
|
|
3035
3147
|
);
|
|
3036
3148
|
}
|
|
3037
3149
|
let manifest = (0, import_node_fs2.readFileSync)(
|
|
@@ -3078,7 +3190,10 @@ function writeSwiftProject(layout, input, moduleRoot) {
|
|
|
3078
3190
|
const base = layout.multi ? layout.root : layout.sources;
|
|
3079
3191
|
for (const [file, contents] of Object.entries(input.files)) {
|
|
3080
3192
|
if (file === "Package.swift") continue;
|
|
3081
|
-
files2.set(
|
|
3193
|
+
files2.set(
|
|
3194
|
+
import_node_path2.default.join(base, file),
|
|
3195
|
+
compiledSource(file, contents, objcExtensions, tableConformances)
|
|
3196
|
+
);
|
|
3082
3197
|
}
|
|
3083
3198
|
files2.set(
|
|
3084
3199
|
import_node_path2.default.join(layout.root, "Package.swift"),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.801 | (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.801 | (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.801 | (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;
|
|
@@ -11066,7 +11066,7 @@ var ONE_IMPLICIT_FLAGS = ', "-Xfrontend", "-import-module", "-Xfrontend", "One"'
|
|
|
11066
11066
|
var MULTI_MANIFEST_VERSION = 12;
|
|
11067
11067
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
11068
11068
|
const hash = (0, import_node_crypto3.createHash)("sha256");
|
|
11069
|
-
hash.update(`swift-compile/
|
|
11069
|
+
hash.update(`swift-compile/v19
|
|
11070
11070
|
${release}
|
|
11071
11071
|
`);
|
|
11072
11072
|
if (input.oneModule) hash.update("one-module\n");
|
|
@@ -11664,6 +11664,118 @@ function lowerNotificationDelegate(source) {
|
|
|
11664
11664
|
result = result.slice(0, at) + text3 + result.slice(at + count);
|
|
11665
11665
|
return result;
|
|
11666
11666
|
}
|
|
11667
|
+
function tableProtocolConformances(sources) {
|
|
11668
|
+
const parents = /* @__PURE__ */ new Map();
|
|
11669
|
+
for (const source of sources) {
|
|
11670
|
+
const code = swiftCodeMask(source);
|
|
11671
|
+
for (const owner of code.matchAll(
|
|
11672
|
+
/\b(?:class|extension)\s+([A-Za-z_]\w*)\s*:\s*([^{}]+)\{/g
|
|
11673
|
+
)) {
|
|
11674
|
+
const inherited = parents.get(owner[1]) ?? /* @__PURE__ */ new Set();
|
|
11675
|
+
for (const type of owner[2].matchAll(/\b[A-Za-z_]\w*\b/g)) inherited.add(type[0]);
|
|
11676
|
+
parents.set(owner[1], inherited);
|
|
11677
|
+
}
|
|
11678
|
+
}
|
|
11679
|
+
const result = /* @__PURE__ */ new Map();
|
|
11680
|
+
const protocols = ["UITableViewDataSource", "UITableViewDelegate"];
|
|
11681
|
+
for (const type of parents.keys()) {
|
|
11682
|
+
const pending = [type];
|
|
11683
|
+
const seen = /* @__PURE__ */ new Set();
|
|
11684
|
+
const conformances = /* @__PURE__ */ new Set();
|
|
11685
|
+
while (pending.length) {
|
|
11686
|
+
const next = pending.pop();
|
|
11687
|
+
if (seen.has(next)) continue;
|
|
11688
|
+
seen.add(next);
|
|
11689
|
+
if (protocols.includes(next)) conformances.add(next);
|
|
11690
|
+
for (const parent of parents.get(next) ?? []) pending.push(parent);
|
|
11691
|
+
}
|
|
11692
|
+
if (conformances.size) result.set(type, conformances);
|
|
11693
|
+
}
|
|
11694
|
+
return result;
|
|
11695
|
+
}
|
|
11696
|
+
function lowerTableProtocolMethods(source, conformances) {
|
|
11697
|
+
const code = swiftCodeMask(source);
|
|
11698
|
+
const dataSource = {
|
|
11699
|
+
numberOfRowsInSection: "tableView:numberOfRowsInSection:",
|
|
11700
|
+
cellForRowAt: "tableView:cellForRowAtIndexPath:",
|
|
11701
|
+
titleForHeaderInSection: "tableView:titleForHeaderInSection:",
|
|
11702
|
+
titleForFooterInSection: "tableView:titleForFooterInSection:"
|
|
11703
|
+
};
|
|
11704
|
+
const delegate = {
|
|
11705
|
+
willDisplay: "tableView:willDisplayCell:forRowAtIndexPath:",
|
|
11706
|
+
didEndDisplaying: "tableView:didEndDisplayingCell:forRowAtIndexPath:",
|
|
11707
|
+
heightForRowAt: "tableView:heightForRowAtIndexPath:",
|
|
11708
|
+
estimatedHeightForRowAt: "tableView:estimatedHeightForRowAtIndexPath:",
|
|
11709
|
+
heightForHeaderInSection: "tableView:heightForHeaderInSection:",
|
|
11710
|
+
heightForFooterInSection: "tableView:heightForFooterInSection:",
|
|
11711
|
+
estimatedHeightForHeaderInSection: "tableView:estimatedHeightForHeaderInSection:",
|
|
11712
|
+
estimatedHeightForFooterInSection: "tableView:estimatedHeightForFooterInSection:",
|
|
11713
|
+
viewForHeaderInSection: "tableView:viewForHeaderInSection:",
|
|
11714
|
+
viewForFooterInSection: "tableView:viewForFooterInSection:",
|
|
11715
|
+
willDisplayHeaderView: "tableView:willDisplayHeaderView:forSection:",
|
|
11716
|
+
willDisplayFooterView: "tableView:willDisplayFooterView:forSection:",
|
|
11717
|
+
didEndDisplayingHeaderView: "tableView:didEndDisplayingHeaderView:forSection:",
|
|
11718
|
+
didEndDisplayingFooterView: "tableView:didEndDisplayingFooterView:forSection:",
|
|
11719
|
+
shouldHighlightRowAt: "tableView:shouldHighlightRowAtIndexPath:",
|
|
11720
|
+
didHighlightRowAt: "tableView:didHighlightRowAtIndexPath:",
|
|
11721
|
+
didUnhighlightRowAt: "tableView:didUnhighlightRowAtIndexPath:",
|
|
11722
|
+
willSelectRowAt: "tableView:willSelectRowAtIndexPath:",
|
|
11723
|
+
willDeselectRowAt: "tableView:willDeselectRowAtIndexPath:",
|
|
11724
|
+
didSelectRowAt: "tableView:didSelectRowAtIndexPath:",
|
|
11725
|
+
didDeselectRowAt: "tableView:didDeselectRowAtIndexPath:",
|
|
11726
|
+
accessoryButtonTappedForRowWith: "tableView:accessoryButtonTappedForRowWithIndexPath:"
|
|
11727
|
+
};
|
|
11728
|
+
const braces = [...code.matchAll(/[{}]/g)].map((match) => match.index);
|
|
11729
|
+
const edits = [];
|
|
11730
|
+
for (const owner of code.matchAll(/\b(?:class|extension)\s+([A-Za-z_]\w*)[^{}]*\{/g)) {
|
|
11731
|
+
const conforms = conformances.get(owner[1]);
|
|
11732
|
+
if (!conforms) continue;
|
|
11733
|
+
const selectors = {
|
|
11734
|
+
...conforms.has("UITableViewDataSource") ? dataSource : {},
|
|
11735
|
+
...conforms.has("UITableViewDelegate") ? delegate : {}
|
|
11736
|
+
};
|
|
11737
|
+
const open = owner.index + owner[0].length - 1;
|
|
11738
|
+
const close = closingBrace(code, braces, open);
|
|
11739
|
+
let depth = 1;
|
|
11740
|
+
let previous = open + 1;
|
|
11741
|
+
for (const token of swiftCodeScan(code.slice(open + 1, close - 1)).tokens) {
|
|
11742
|
+
const at = open + 1 + token;
|
|
11743
|
+
if (code[at] === "{") depth++;
|
|
11744
|
+
else if (code[at] === "}") {
|
|
11745
|
+
depth--;
|
|
11746
|
+
if (depth === 1) previous = at + 1;
|
|
11747
|
+
} else if (depth === 1 && /^func\b/.test(code.slice(at))) {
|
|
11748
|
+
const signature2 = code.slice(at, code.indexOf("{", at));
|
|
11749
|
+
const prefix = code.slice(previous, at);
|
|
11750
|
+
const attributes = /(?:@\w+(?:\([^{}]*\))?\s*|(?:public|open|private|fileprivate|internal|final|override|static|class|nonisolated|dynamic)\s+)*$/.exec(
|
|
11751
|
+
prefix
|
|
11752
|
+
)?.[0] ?? "";
|
|
11753
|
+
if (/\b(?:override|static|class)\b|@(?:objc|ObjC|IBAction)\b/.test(attributes))
|
|
11754
|
+
continue;
|
|
11755
|
+
let selector;
|
|
11756
|
+
if (conforms.has("UITableViewDataSource") && /^func\s+numberOfSections\s*\(\s*in\s+\w+\s*:\s*(?:UIKit\.)?UITableView\s*\)/.test(
|
|
11757
|
+
signature2
|
|
11758
|
+
))
|
|
11759
|
+
selector = "numberOfSectionsInTableView:";
|
|
11760
|
+
else {
|
|
11761
|
+
const match = /^func\s+tableView\s*\(\s*_\s+\w+\s*:\s*(?:UIKit\.)?UITableView\s*,\s*(\w+)\b/.exec(
|
|
11762
|
+
signature2
|
|
11763
|
+
);
|
|
11764
|
+
if (match) selector = selectors[match[1]];
|
|
11765
|
+
}
|
|
11766
|
+
if (selector)
|
|
11767
|
+
edits.push([
|
|
11768
|
+
at,
|
|
11769
|
+
`${/\bnonisolated\b/.test(attributes) ? "" : "@MainActor "}@ObjC(${JSON.stringify(selector)}) `
|
|
11770
|
+
]);
|
|
11771
|
+
}
|
|
11772
|
+
}
|
|
11773
|
+
}
|
|
11774
|
+
let result = source;
|
|
11775
|
+
for (const [at, text3] of edits.sort((a, b) => b[0] - a[0]))
|
|
11776
|
+
result = result.slice(0, at) + text3 + result.slice(at);
|
|
11777
|
+
return result;
|
|
11778
|
+
}
|
|
11667
11779
|
function swiftCodeMask(source) {
|
|
11668
11780
|
const chars = source.split("");
|
|
11669
11781
|
const blank = (from, to) => {
|
|
@@ -11767,9 +11879,9 @@ function swiftCodeMask(source) {
|
|
|
11767
11879
|
scanCode(0, false);
|
|
11768
11880
|
return chars.join("");
|
|
11769
11881
|
}
|
|
11770
|
-
function swiftSourceAsIOS(original, extraObjCExtensions) {
|
|
11882
|
+
function swiftSourceAsIOS(original, extraObjCExtensions, tableConformances = tableProtocolConformances([original])) {
|
|
11771
11883
|
const source = liftExtensionOverrides(
|
|
11772
|
-
lowerNotificationDelegate(original),
|
|
11884
|
+
lowerTableProtocolMethods(lowerNotificationDelegate(original), tableConformances),
|
|
11773
11885
|
extraObjCExtensions
|
|
11774
11886
|
);
|
|
11775
11887
|
const { lineStarts, tokens } = swiftCodeScan(source);
|
|
@@ -12011,7 +12123,7 @@ function swiftCodeScan(source) {
|
|
|
12011
12123
|
}
|
|
12012
12124
|
return { lineStarts: starts, tokens };
|
|
12013
12125
|
}
|
|
12014
|
-
var compiledSource = (file, contents, extraObjCExtensions) => file.endsWith(".swift") ? swiftSourceAsIOS(contents, extraObjCExtensions) : contents;
|
|
12126
|
+
var compiledSource = (file, contents, extraObjCExtensions, tableConformances) => file.endsWith(".swift") ? swiftSourceAsIOS(contents, extraObjCExtensions, tableConformances) : contents;
|
|
12015
12127
|
function writeSwiftProject(layout, input, moduleRoot) {
|
|
12016
12128
|
const resourceTargets = swiftManifestTargets(
|
|
12017
12129
|
input.files["Package.swift"] ?? "",
|
|
@@ -12044,15 +12156,15 @@ function writeSwiftProject(layout, input, moduleRoot) {
|
|
|
12044
12156
|
// sootsim-swift files ${modulePlan.digest("hex").slice(0, 16)}
|
|
12045
12157
|
// resource accessors ${resourcePlan}
|
|
12046
12158
|
`;
|
|
12047
|
-
const
|
|
12048
|
-
|
|
12049
|
-
);
|
|
12159
|
+
const swiftSources = Object.entries(input.files).filter(([file]) => file.endsWith(".swift")).map(([, contents]) => contents);
|
|
12160
|
+
const objcExtensions = objcExtensionMemberIndex(swiftSources);
|
|
12161
|
+
const tableConformances = tableProtocolConformances(swiftSources);
|
|
12050
12162
|
if (targets.length === 0) {
|
|
12051
12163
|
for (const [file, contents] of Object.entries(input.files)) {
|
|
12052
12164
|
if (file === "Package.swift") continue;
|
|
12053
12165
|
files2.set(
|
|
12054
12166
|
import_node_path7.default.join(layout.sources, file),
|
|
12055
|
-
compiledSource(file, contents, objcExtensions)
|
|
12167
|
+
compiledSource(file, contents, objcExtensions, tableConformances)
|
|
12056
12168
|
);
|
|
12057
12169
|
}
|
|
12058
12170
|
let manifest = (0, import_node_fs7.readFileSync)(
|
|
@@ -12099,7 +12211,10 @@ function writeSwiftProject(layout, input, moduleRoot) {
|
|
|
12099
12211
|
const base = layout.multi ? layout.root : layout.sources;
|
|
12100
12212
|
for (const [file, contents] of Object.entries(input.files)) {
|
|
12101
12213
|
if (file === "Package.swift") continue;
|
|
12102
|
-
files2.set(
|
|
12214
|
+
files2.set(
|
|
12215
|
+
import_node_path7.default.join(base, file),
|
|
12216
|
+
compiledSource(file, contents, objcExtensions, tableConformances)
|
|
12217
|
+
);
|
|
12103
12218
|
}
|
|
12104
12219
|
files2.set(
|
|
12105
12220
|
import_node_path7.default.join(layout.root, "Package.swift"),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.801 | (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.801 | (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.801 | (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.801 | (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.801 | (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.801 | (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.801 | (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.801 | (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/menu.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.801 | (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.801 | (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.801 | (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/metro.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.801 | (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.801 | (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.801 | (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.801 | (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.801 | (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.801 | (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.801 | (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.801 | (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.801 | (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.801 | (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.801 | (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);
|