peachsim 0.1.2587 → 0.1.2588
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/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +2 -2
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +5 -5
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +3 -3
- package/dist-lib/bundle-channel.cjs +61 -46
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +3 -3
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +3 -3
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +2 -2
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +7 -7
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +5 -5
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/esm-chunks/{acorn-YIT53CUW.mjs → acorn-DG2TVZRD.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-KIM7TUG6.mjs → chunk-4GOTTBDL.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-EINVPQJH.mjs → chunk-4PNMHEJB.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-33X4F77A.mjs → chunk-AGQHPM6E.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-MHQ3V3HA.mjs → chunk-ASL4MACC.mjs} +63 -54
- package/dist-lib/esm-chunks/{chunk-LBJDNPVZ.mjs → chunk-BAU3IFLL.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-PDSHFDO2.mjs → chunk-BGCADZA2.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-HH6E35Z7.mjs → chunk-BSPFA6V2.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-W7KT52XE.mjs → chunk-C7MHFZIA.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-YQETPIM2.mjs → chunk-CJ6UJWGD.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-TOK4D3JW.mjs → chunk-ELSAXANF.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-Q7MIJAYP.mjs → chunk-GIS6FXRN.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-7UTPX7DP.mjs → chunk-JE7EWYAV.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-WIS3FIS4.mjs → chunk-LW5F24Y7.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-SES3L2SB.mjs → chunk-NSNT4FFS.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-MCQPJCCL.mjs → chunk-OLEYCMVV.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-MKUJNT6M.mjs → chunk-PL3OUSN3.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-TI62KNSX.mjs → chunk-QRKZ3NSY.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-DS7BSRKS.mjs → chunk-SDGYG4FM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-WQB3O2KB.mjs → chunk-UFXK4UQL.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-VZ2SRV3L.mjs → chunk-V2PI4V6K.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-QRBN2H6X.mjs → chunk-WZHOX3BM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-BZY37WHL.mjs → chunk-YHJXN2S6.mjs} +5 -5
- package/dist-lib/esm-chunks/{metro-layout-parser-IGRR2DCH.mjs → metro-layout-parser-VWCTMFOO.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-B2NMSGIS.mjs → swift-package-prebuilt-W7FEW6PS.mjs} +10 -10
- package/dist-lib/esm-chunks/{swift-sdk-app-module-FYORV7GD.mjs → swift-sdk-app-module-J4KH7G35.mjs} +14 -14
- package/dist-lib/esm-chunks/{swift-sdk-image-BQ4UZV7O.mjs → swift-sdk-image-MUWMBAKB.mjs} +14 -14
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-ESIHEVXH.mjs → swift-sdk-image-producer-BLO2DZ2C.mjs} +4 -4
- package/dist-lib/expo-swift-bundle.cjs +60 -45
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +7 -7
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +219 -120
- package/dist-lib/host/fetch-proxy-handler.cjs +12 -4
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
- 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/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +3 -3
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +3 -3
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +4 -4
- package/dist-lib/native-app-identity-project.cjs +10 -2
- package/dist-lib/native-app-identity-project.mjs +16 -16
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +6 -6
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +3 -3
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +2 -2
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +3 -3
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +82 -81
- package/dist-lib/public-origins-lib.json +76 -69
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +2 -2
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +8 -8
- package/dist-lib/skills.cjs +219 -120
- package/dist-lib/swift-compile.cjs +58 -43
- package/dist-lib/swift-compile.mjs +10 -10
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +3 -3
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +6 -6
- package/dist-lib/swift-svg-raster.cjs +1 -1
- package/dist-lib/swift-svg-raster.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
- package/dist-lib/vendor/@xmldom/xmldom.cjs +1 -1
- package/dist-lib/vendor/acorn.cjs +1 -1
- package/dist-lib/vendor/bplist-parser.cjs +1 -1
- package/dist-lib/vendor/ignore.cjs +1 -1
- package/dist-lib/vendor/magic-string.cjs +1 -1
- package/dist-lib/vendor/plist.cjs +1 -1
- package/dist-lib/vendor/smol-toml.cjs +1 -1
- package/dist-lib/vendor/stream-json.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
- package/dist-lib/vendor/sucrase.cjs +1 -1
- package/dist-lib/vendor/terser.cjs +1 -1
- package/dist-lib/vendor/valibot.cjs +1 -1
- package/dist-lib/vendor/ws.cjs +1 -1
- package/dist-lib/vendor/zod.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +3 -3
- package/package.json +1 -1
- package/src/one-native-controls-package.ts +119 -76
- package/src/swift-compile.ts +2 -44
- package/src/swift-source-closure.ts +59 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2588 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -5712,13 +5712,13 @@ var init_swift_standin_digest = __esm({
|
|
|
5712
5712
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
5713
5713
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
5714
5714
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
5715
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
5715
|
+
STANDIN_SOURCE_DIGEST = true ? "3f599241e9565977a3b4bc4cae7ce5ee8032948cc6c47ca8496c9edb45f25011" : standinSourceDigest();
|
|
5716
5716
|
}
|
|
5717
5717
|
});
|
|
5718
5718
|
|
|
5719
5719
|
// src/expo-native-compiler-digest.ts
|
|
5720
5720
|
function expoNativeCompilerDigestValue() {
|
|
5721
|
-
return true ? "
|
|
5721
|
+
return true ? "ab61e93963022a221353be8f410397787d6eb35d6fdb9441d4daca8c413670ee" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
5722
5722
|
}
|
|
5723
5723
|
var import_node_crypto11;
|
|
5724
5724
|
var init_expo_native_compiler_digest = __esm({
|
|
@@ -51647,6 +51647,60 @@ var init_swift_reproducible = __esm({
|
|
|
51647
51647
|
}
|
|
51648
51648
|
});
|
|
51649
51649
|
|
|
51650
|
+
// src/swift-source-closure.ts
|
|
51651
|
+
function collectSwiftSourceClosure(files2, roots, swiftCodeMask2, extensionMembersOnly) {
|
|
51652
|
+
const sources = /* @__PURE__ */ new Map();
|
|
51653
|
+
const owners = /* @__PURE__ */ new Map();
|
|
51654
|
+
for (const [file, source] of Object.entries(files2)) {
|
|
51655
|
+
if (!file.endsWith(".swift")) continue;
|
|
51656
|
+
const code = swiftCodeMask2(source);
|
|
51657
|
+
const references = new Set(code.match(/[A-Za-z_]\w*/g) ?? []);
|
|
51658
|
+
const pattern = /[{}]|\b(class|struct|enum|protocol|actor|typealias|func|var|let|extension)\s+([A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*)|\b(?:init|subscript)(?=\s*[?(])/g;
|
|
51659
|
+
let depth = 0;
|
|
51660
|
+
let memberExtension;
|
|
51661
|
+
for (const match of code.matchAll(pattern)) {
|
|
51662
|
+
if (match[0] === "{") {
|
|
51663
|
+
depth++;
|
|
51664
|
+
continue;
|
|
51665
|
+
}
|
|
51666
|
+
if (match[0] === "}") {
|
|
51667
|
+
if (--depth === 0) memberExtension = void 0;
|
|
51668
|
+
continue;
|
|
51669
|
+
}
|
|
51670
|
+
if (depth !== 0 && !(depth === 1 && memberExtension)) continue;
|
|
51671
|
+
const name3 = match[2]?.split(".").pop() ?? memberExtension;
|
|
51672
|
+
if (!name3) continue;
|
|
51673
|
+
if (match[1] === "extension" && extensionMembersOnly?.has(name3) && /^\s*\{/.test(code.slice(match.index + match[0].length))) {
|
|
51674
|
+
memberExtension = name3;
|
|
51675
|
+
continue;
|
|
51676
|
+
}
|
|
51677
|
+
const set2 = owners.get(name3) ?? /* @__PURE__ */ new Set();
|
|
51678
|
+
set2.add(file);
|
|
51679
|
+
owners.set(name3, set2);
|
|
51680
|
+
}
|
|
51681
|
+
sources.set(file, references);
|
|
51682
|
+
}
|
|
51683
|
+
const included = /* @__PURE__ */ new Set();
|
|
51684
|
+
const pending = [...roots];
|
|
51685
|
+
const seen = /* @__PURE__ */ new Set();
|
|
51686
|
+
while (pending.length) {
|
|
51687
|
+
const name3 = pending.pop();
|
|
51688
|
+
if (seen.has(name3)) continue;
|
|
51689
|
+
seen.add(name3);
|
|
51690
|
+
for (const file of owners.get(name3) ?? []) {
|
|
51691
|
+
if (included.has(file)) continue;
|
|
51692
|
+
included.add(file);
|
|
51693
|
+
for (const reference of sources.get(file)) pending.push(reference);
|
|
51694
|
+
}
|
|
51695
|
+
}
|
|
51696
|
+
return Object.fromEntries(Object.entries(files2).filter(([file]) => included.has(file)));
|
|
51697
|
+
}
|
|
51698
|
+
var init_swift_source_closure = __esm({
|
|
51699
|
+
"src/swift-source-closure.ts"() {
|
|
51700
|
+
"use strict";
|
|
51701
|
+
}
|
|
51702
|
+
});
|
|
51703
|
+
|
|
51650
51704
|
// src/swift-uniform-type-constants.ts
|
|
51651
51705
|
function compileUniformTypeConstants(args) {
|
|
51652
51706
|
const source = import_node_path77.default.join(args.packageRoot, "runtime/UniformTypeIdentifiersConstants.m");
|
|
@@ -53986,47 +54040,7 @@ function swiftSourceAsIOS(source, overlayFrameworks, swiftPackage, arm64 = true)
|
|
|
53986
54040
|
return lowerAVAssetURLCluster(out + conditioned.slice(copied));
|
|
53987
54041
|
}
|
|
53988
54042
|
function swiftSourceClosure(files2, roots) {
|
|
53989
|
-
|
|
53990
|
-
const owners = /* @__PURE__ */ new Map();
|
|
53991
|
-
const extensions = /* @__PURE__ */ new Map();
|
|
53992
|
-
for (const [file, source] of Object.entries(files2)) {
|
|
53993
|
-
if (!file.endsWith(".swift")) continue;
|
|
53994
|
-
const code = swiftCodeMask(source);
|
|
53995
|
-
const references = new Set(code.match(/[A-Za-z_]\w*/g) ?? []);
|
|
53996
|
-
const pattern = /[{}]|\b(class|struct|enum|protocol|actor|typealias|func|var|let|extension)\s+([A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*)/g;
|
|
53997
|
-
let depth = 0;
|
|
53998
|
-
for (const match of code.matchAll(pattern)) {
|
|
53999
|
-
if (match[0] === "{") {
|
|
54000
|
-
depth++;
|
|
54001
|
-
continue;
|
|
54002
|
-
}
|
|
54003
|
-
if (match[0] === "}") {
|
|
54004
|
-
depth--;
|
|
54005
|
-
continue;
|
|
54006
|
-
}
|
|
54007
|
-
if (depth !== 0 || !match[2]) continue;
|
|
54008
|
-
const name3 = match[2].split(".").pop();
|
|
54009
|
-
const index = match[1] === "extension" ? extensions : owners;
|
|
54010
|
-
const set2 = index.get(name3) ?? /* @__PURE__ */ new Set();
|
|
54011
|
-
set2.add(file);
|
|
54012
|
-
index.set(name3, set2);
|
|
54013
|
-
}
|
|
54014
|
-
sources.set(file, references);
|
|
54015
|
-
}
|
|
54016
|
-
const included = /* @__PURE__ */ new Set();
|
|
54017
|
-
const pending = [...roots];
|
|
54018
|
-
const seen = /* @__PURE__ */ new Set();
|
|
54019
|
-
while (pending.length) {
|
|
54020
|
-
const name3 = pending.pop();
|
|
54021
|
-
if (seen.has(name3)) continue;
|
|
54022
|
-
seen.add(name3);
|
|
54023
|
-
for (const file of [...owners.get(name3) ?? [], ...extensions.get(name3) ?? []]) {
|
|
54024
|
-
if (included.has(file)) continue;
|
|
54025
|
-
included.add(file);
|
|
54026
|
-
for (const reference of sources.get(file)) pending.push(reference);
|
|
54027
|
-
}
|
|
54028
|
-
}
|
|
54029
|
-
return Object.fromEntries(Object.entries(files2).filter(([file]) => included.has(file)));
|
|
54043
|
+
return collectSwiftSourceClosure(files2, roots, swiftCodeMask);
|
|
54030
54044
|
}
|
|
54031
54045
|
function swiftApplicationEntry(file, source) {
|
|
54032
54046
|
const code = [...swiftConditionalLines(swiftCodeMask(source))].map(({ line, active }) => active === false ? " ".repeat(line.length) : line).join("\n");
|
|
@@ -57922,6 +57936,7 @@ var init_swift_compile = __esm({
|
|
|
57922
57936
|
init_swift_root_lock();
|
|
57923
57937
|
init_swift_sdk_image_wasm();
|
|
57924
57938
|
init_swift_shared_sdk();
|
|
57939
|
+
init_swift_source_closure();
|
|
57925
57940
|
init_swift_toolchain();
|
|
57926
57941
|
init_swift_uniform_type_constants();
|
|
57927
57942
|
init_swift_wasm_prune();
|
|
@@ -58129,7 +58144,7 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
|
|
|
58129
58144
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
58130
58145
|
MULTI_MANIFEST_VERSION = 76;
|
|
58131
58146
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
58132
|
-
compilerSourceDigest = true ? "
|
|
58147
|
+
compilerSourceDigest = true ? "6433b1a7f6d99095c2a444c33cfbf4bc62bedbf18b40e3415e37cd83e450f0df" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
58133
58148
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
58134
58149
|
MODULE_MAP_RESPONSE_FILE_RUN = 16;
|
|
58135
58150
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
@@ -113599,6 +113614,23 @@ function configuration(name3, source) {
|
|
|
113599
113614
|
if (!update) throw new Error(`${name3}: no updateProps`);
|
|
113600
113615
|
return { viewClass, guard, update };
|
|
113601
113616
|
}
|
|
113617
|
+
function arrayBindings(name3, body) {
|
|
113618
|
+
const bindings = /* @__PURE__ */ new Map();
|
|
113619
|
+
for (const [, prop, element] of body.matchAll(
|
|
113620
|
+
/for \(const auto &item : next\.(\w+)\) \[\w+ addObject:(.*?)\];/g
|
|
113621
|
+
)) {
|
|
113622
|
+
if (element === "RCTNSStringFromString(item)") {
|
|
113623
|
+
bindings.set(prop, []);
|
|
113624
|
+
continue;
|
|
113625
|
+
}
|
|
113626
|
+
const fields = [
|
|
113627
|
+
...element.matchAll(/@"(\w+)" ?: (RCTNSStringFromString|@)\(item\.\w+\)/g)
|
|
113628
|
+
].map(([, name4, kind]) => ({ name: name4, defaultValue: kind === "@" ? 0 : "" }));
|
|
113629
|
+
if (!fields.length) throw new Error(`${name3}: unmapped array ${prop}`);
|
|
113630
|
+
bindings.set(prop, fields);
|
|
113631
|
+
}
|
|
113632
|
+
return bindings;
|
|
113633
|
+
}
|
|
113602
113634
|
function componentViews(one, selected) {
|
|
113603
113635
|
const schema4 = JSON.parse((0, import_node_fs150.readFileSync)((0, import_node_path151.join)(one, "schema.json"), "utf8"));
|
|
113604
113636
|
const folders = [(0, import_node_path151.join)(one, "ios/Generated"), (0, import_node_path151.join)(one, "ios")];
|
|
@@ -113617,15 +113649,18 @@ function componentViews(one, selected) {
|
|
|
113617
113649
|
}
|
|
113618
113650
|
function swiftGuestControls(one, names) {
|
|
113619
113651
|
const watched = [(0, import_node_path151.join)(one, "schema.json")];
|
|
113652
|
+
const defines = /* @__PURE__ */ new Set();
|
|
113620
113653
|
const views = componentViews(one, names);
|
|
113621
113654
|
const entries2 = views.map(({ name: name3, props, source, file }) => {
|
|
113622
|
-
const { viewClass, update } = configuration(name3, source);
|
|
113655
|
+
const { viewClass, guard, update } = configuration(name3, source);
|
|
113656
|
+
if (guard) defines.add(guard);
|
|
113657
|
+
const arrays = arrayBindings(name3, update);
|
|
113623
113658
|
const swift = (0, import_node_path151.join)((0, import_node_path151.dirname)(file), viewClass + ".swift");
|
|
113624
113659
|
const declaration = (0, import_node_fs150.readFileSync)(swift, "utf8");
|
|
113625
113660
|
watched.push(file, swift);
|
|
113626
113661
|
const initializer = /public (?:override )?init\(\)/.test(declaration) ? "()" : "(frame: .zero)";
|
|
113627
113662
|
const lines = [
|
|
113628
|
-
` "${name3}": { existing, spec, style, emit in`,
|
|
113663
|
+
` "${name3}": { existing, spec, previous, style, emit in`,
|
|
113629
113664
|
` let view = existing as? ${viewClass} ?? ${viewClass}${initializer}`
|
|
113630
113665
|
];
|
|
113631
113666
|
for (const statement of statements(update)) {
|
|
@@ -113640,8 +113675,18 @@ function swiftGuestControls(one, names) {
|
|
|
113640
113675
|
}
|
|
113641
113676
|
const withLabel = /^(\w+)With([A-Z])(\w*)$/.exec(first);
|
|
113642
113677
|
const args = selector.map(({ label, expression }, index) => {
|
|
113678
|
+
const fields = arrays.get(expression);
|
|
113643
113679
|
let value;
|
|
113644
113680
|
if (expression === "OneNativeStyleDictionary(next.swiftStyle)") value = "style";
|
|
113681
|
+
else if (expression === "boundedHeight")
|
|
113682
|
+
value = 'spec["boundedHeight"] as? Bool ?? false';
|
|
113683
|
+
else if (/^@"[^"]*"$/.test(expression)) value = expression.slice(1);
|
|
113684
|
+
else if (fields?.length) {
|
|
113685
|
+
const entries3 = fields.map(
|
|
113686
|
+
({ name: name4, defaultValue: defaultValue2 }) => `"${name4}": row["${name4}"].flatMap { $0 is NSNull ? nil : $0 } ?? ${JSON.stringify(defaultValue2)}`
|
|
113687
|
+
).join(", ");
|
|
113688
|
+
value = `(spec["${expression}"] as? [Spec] ?? []).map { row in [${entries3}] }`;
|
|
113689
|
+
} else if (fields) value = `spec["${expression}"] as? [String] ?? []`;
|
|
113645
113690
|
else {
|
|
113646
113691
|
const prop = /\bnext\.(\w+)/.exec(expression)?.[1];
|
|
113647
113692
|
const types2 = {
|
|
@@ -113650,14 +113695,19 @@ function swiftGuestControls(one, names) {
|
|
|
113650
113695
|
Double: "Double ?? 0",
|
|
113651
113696
|
Int32: "Int ?? 0"
|
|
113652
113697
|
};
|
|
113653
|
-
|
|
113654
|
-
|
|
113655
|
-
value = `spec["${prop}"] as? ${types2[
|
|
113698
|
+
const type = prop && props[prop]?.type;
|
|
113699
|
+
if (type === "ColorValue") value = `spec["${prop}"].flatMap(oneControlColor)`;
|
|
113700
|
+
else if (type && types2[type]) value = `spec["${prop}"] as? ${types2[type]}`;
|
|
113701
|
+
else throw new Error(`${name3}: unmapped guest argument ${expression}`);
|
|
113656
113702
|
}
|
|
113657
113703
|
const argLabel = index ? label : withLabel ? withLabel[2].toLowerCase() + withLabel[3] : "";
|
|
113658
113704
|
return argLabel ? argLabel + ": " + value : value;
|
|
113659
113705
|
});
|
|
113660
|
-
|
|
113706
|
+
const call = `view.${withLabel?.[1] ?? first}(${args.join(", ")})`;
|
|
113707
|
+
const array8 = selector[0].expression;
|
|
113708
|
+
lines.push(
|
|
113709
|
+
arrays.has(array8) ? ` if previous == nil || (spec["${array8}"] as? NSArray) != (previous?["${array8}"] as? NSArray) { ${call} }` : ` ${call}`
|
|
113710
|
+
);
|
|
113661
113711
|
}
|
|
113662
113712
|
for (const { property, parameters, fields, event, sync } of eventBindings(
|
|
113663
113713
|
name3,
|
|
@@ -113680,11 +113730,12 @@ function swiftGuestControls(one, names) {
|
|
|
113680
113730
|
return {
|
|
113681
113731
|
source: [
|
|
113682
113732
|
"import UIKit",
|
|
113683
|
-
"let guestControls: [String: (UIView?, Spec, Spec, @escaping (String, Spec) -> Void) -> UIView] = [",
|
|
113733
|
+
"let guestControls: [String: (UIView?, Spec, Spec?, Spec, @escaping (String, Spec) -> Void) -> UIView] = [",
|
|
113684
113734
|
...entries2,
|
|
113685
113735
|
"]",
|
|
113686
113736
|
""
|
|
113687
113737
|
].join("\n"),
|
|
113738
|
+
defines: [...defines].sort(),
|
|
113688
113739
|
watched
|
|
113689
113740
|
};
|
|
113690
113741
|
}
|
|
@@ -113746,35 +113797,62 @@ function resolveOneNativeAppleIosDir(appRoot) {
|
|
|
113746
113797
|
}
|
|
113747
113798
|
return workspace;
|
|
113748
113799
|
}
|
|
113800
|
+
function excludedGroupSource(source, defines) {
|
|
113801
|
+
const code = swiftCodeMask(source).trim();
|
|
113802
|
+
const group = /^#if (ONE_GROUP_\w+)[ \t]*\r?\n/.exec(code)?.[1];
|
|
113803
|
+
if (!group || defines.has(group)) return false;
|
|
113804
|
+
let depth = 0;
|
|
113805
|
+
for (const directive of code.matchAll(/^[ \t]*#(if|elseif|else|endif)\b[^\n]*/gm)) {
|
|
113806
|
+
if (directive[1] === "if") depth++;
|
|
113807
|
+
else if (directive[1] === "endif" && --depth === 0)
|
|
113808
|
+
return directive.index + directive[0].length === code.length;
|
|
113809
|
+
else if ((directive[1] === "else" || directive[1] === "elseif") && depth === 1)
|
|
113810
|
+
return false;
|
|
113811
|
+
}
|
|
113812
|
+
return false;
|
|
113813
|
+
}
|
|
113749
113814
|
async function oneNativeControlsPackage(appRoot) {
|
|
113750
113815
|
const iosDir = resolveOneNativeAppleIosDir(appRoot);
|
|
113751
|
-
const sdkDir = import_node_path152.default.join(iosDir, "SDK");
|
|
113752
|
-
const sdkFiles = import_node_fs151.default.readdirSync(sdkDir).filter((name3) => name3.endsWith(".swift")).sort().map((name3) => `SDK/${name3}`);
|
|
113753
|
-
const files2 = /* @__PURE__ */ new Map();
|
|
113754
|
-
const watched = [];
|
|
113755
|
-
const digest3 = (0, import_node_crypto89.createHash)("sha256");
|
|
113756
|
-
for (const relative5 of [...ONE_CONTROL_SOURCES, ...sdkFiles]) {
|
|
113757
|
-
const full = import_node_path152.default.join(iosDir, relative5);
|
|
113758
|
-
const content = import_node_fs151.default.readFileSync(full, "utf8");
|
|
113759
|
-
const flatName = import_node_path152.default.basename(relative5);
|
|
113760
|
-
if (files2.has(flatName)) {
|
|
113761
|
-
throw new Error(`duplicate Swift filename ${flatName} in OneNativeControls`);
|
|
113762
|
-
}
|
|
113763
|
-
files2.set(flatName, content);
|
|
113764
|
-
watched.push(full);
|
|
113765
|
-
digest3.update(flatName).update("\0").update(content).update("\0");
|
|
113766
|
-
}
|
|
113767
113816
|
const generated = swiftGuestControls(import_node_path152.default.dirname(iosDir), [
|
|
113768
113817
|
"OneNativeButton",
|
|
113769
113818
|
"OneNativeLabel",
|
|
113770
113819
|
"OneNativeText",
|
|
113771
113820
|
"OneNativeImage"
|
|
113772
113821
|
]);
|
|
113773
|
-
|
|
113774
|
-
|
|
113775
|
-
|
|
113776
|
-
|
|
113777
|
-
|
|
113822
|
+
const sources = {};
|
|
113823
|
+
const paths = /* @__PURE__ */ new Map();
|
|
113824
|
+
const defines = /* @__PURE__ */ new Set([...ONE_SDK_DEFINES, ...generated.defines]);
|
|
113825
|
+
for (const folder of ["", "Generated", "SDK"]) {
|
|
113826
|
+
for (const name3 of import_node_fs151.default.readdirSync(import_node_path152.default.join(iosDir, folder)).sort()) {
|
|
113827
|
+
if (!name3.endsWith(".swift") || name3 === "OneSwiftPackage.swift") continue;
|
|
113828
|
+
if (paths.has(name3))
|
|
113829
|
+
throw new Error(`duplicate Swift filename ${name3} in OneNativeControls`);
|
|
113830
|
+
const full = import_node_path152.default.join(iosDir, folder, name3);
|
|
113831
|
+
const source = import_node_fs151.default.readFileSync(full, "utf8");
|
|
113832
|
+
if (excludedGroupSource(source, defines)) continue;
|
|
113833
|
+
paths.set(name3, full);
|
|
113834
|
+
sources[name3] = source;
|
|
113835
|
+
}
|
|
113836
|
+
}
|
|
113837
|
+
sources["OneNativeGuestControls.swift"] = generated.source;
|
|
113838
|
+
sources["OneNativeControlsBridge.swift"] = BRIDGE_SWIFT;
|
|
113839
|
+
const files2 = new Map(
|
|
113840
|
+
Object.entries(
|
|
113841
|
+
collectSwiftSourceClosure(
|
|
113842
|
+
sources,
|
|
113843
|
+
["OneNativeControlsGuest"],
|
|
113844
|
+
swiftCodeMask,
|
|
113845
|
+
/* @__PURE__ */ new Set(["View"])
|
|
113846
|
+
)
|
|
113847
|
+
)
|
|
113848
|
+
);
|
|
113849
|
+
const watched = new Set(generated.watched);
|
|
113850
|
+
const digest3 = (0, import_node_crypto89.createHash)("sha256").update([...defines].join("\0")).update("\0");
|
|
113851
|
+
for (const [name3, source] of files2) {
|
|
113852
|
+
const full = paths.get(name3);
|
|
113853
|
+
if (full) watched.add(full);
|
|
113854
|
+
digest3.update(name3).update("\0").update(source).update("\0");
|
|
113855
|
+
}
|
|
113778
113856
|
const key2 = digest3.digest("hex").slice(0, 16);
|
|
113779
113857
|
files2.set(
|
|
113780
113858
|
"Package.swift",
|
|
@@ -113783,7 +113861,7 @@ async function oneNativeControlsPackage(appRoot) {
|
|
|
113783
113861
|
`// OneNativeControls ${key2}`,
|
|
113784
113862
|
"import PackageDescription",
|
|
113785
113863
|
`let package = Package(name: "${ONE_NATIVE_CONTROLS_PACKAGE}", platforms: [.iOS(.v17)], targets: [`,
|
|
113786
|
-
` .executableTarget(name: "${ONE_NATIVE_CONTROLS_PACKAGE}", path: ".", swiftSettings: [.swiftLanguageMode(.v5), ${
|
|
113864
|
+
` .executableTarget(name: "${ONE_NATIVE_CONTROLS_PACKAGE}", path: ".", swiftSettings: [.swiftLanguageMode(.v5), ${[...defines].map((flag) => `.define("${flag}")`).join(", ")}]),`,
|
|
113787
113865
|
"])",
|
|
113788
113866
|
""
|
|
113789
113867
|
].join("\n")
|
|
@@ -113799,9 +113877,9 @@ async function oneNativeControlsPackage(appRoot) {
|
|
|
113799
113877
|
packagePath,
|
|
113800
113878
|
new Map([...files2].map(([file, text7]) => [import_node_path152.default.join(packagePath, file), text7]))
|
|
113801
113879
|
);
|
|
113802
|
-
return { packagePath, watched };
|
|
113880
|
+
return { packagePath, watched: [...watched] };
|
|
113803
113881
|
}
|
|
113804
|
-
var import_node_crypto89, import_node_fs151, import_node_module21, import_node_path152, import_node_url8,
|
|
113882
|
+
var import_node_crypto89, import_node_fs151, import_node_module21, import_node_path152, import_node_url8, ONE_SDK_DEFINES, BRIDGE_SWIFT;
|
|
113805
113883
|
var init_one_native_controls_package = __esm({
|
|
113806
113884
|
"src/one-native-controls-package.ts"() {
|
|
113807
113885
|
"use strict";
|
|
@@ -113814,37 +113892,9 @@ var init_one_native_controls_package = __esm({
|
|
|
113814
113892
|
init_oneNativeControlsContract2();
|
|
113815
113893
|
init_swift_compile();
|
|
113816
113894
|
init_swift_host();
|
|
113895
|
+
init_swift_source_closure();
|
|
113817
113896
|
init_swift_submit();
|
|
113818
113897
|
init_swift_toolchain();
|
|
113819
|
-
ONE_CONTROL_SOURCES = [
|
|
113820
|
-
"Generated/OneNativeNavigationSplitViewView.swift",
|
|
113821
|
-
"Generated/OneNativeNavigationStackView.swift",
|
|
113822
|
-
"Generated/OneNativeViewSlots.swift",
|
|
113823
|
-
"Generated/OneNativeToolbarView.swift",
|
|
113824
|
-
"Generated/OneNativeListView.swift",
|
|
113825
|
-
"Generated/OneNativeSectionView.swift",
|
|
113826
|
-
"Generated/OneNativeFileImporterView.swift",
|
|
113827
|
-
"Generated/OneNativeButtonView.swift",
|
|
113828
|
-
"Generated/OneNativeLabelView.swift",
|
|
113829
|
-
"Generated/OneNativeTextView.swift",
|
|
113830
|
-
"Generated/OneNativeImageView.swift",
|
|
113831
|
-
"Generated/OneNativeSwiftUI.swift",
|
|
113832
|
-
"Generated/OneNativeAnimationValues.swift",
|
|
113833
|
-
"Generated/OneNativeEnvironment.swift",
|
|
113834
|
-
"OneNativeContainerSlotView.swift",
|
|
113835
|
-
"OneNativeSyncState.swift",
|
|
113836
|
-
"OneNativeAnimators.swift",
|
|
113837
|
-
"OneNativeDragBinding.swift",
|
|
113838
|
-
"OneNativeAccessibility.swift",
|
|
113839
|
-
"OneNativeAsyncAction.swift",
|
|
113840
|
-
"OneNativeControlled.swift",
|
|
113841
|
-
"OneZoomSources.swift",
|
|
113842
|
-
"OneNativeComposition.swift",
|
|
113843
|
-
"OneNativeHostingController.swift",
|
|
113844
|
-
"OneNativeSlot.swift",
|
|
113845
|
-
"OneNativeStyle.swift",
|
|
113846
|
-
"OneNativeRemoteImage.swift"
|
|
113847
|
-
];
|
|
113848
113898
|
ONE_SDK_DEFINES = ["ONE_IOS_27_SDK", "ONE_IOS_27_1_SDK"];
|
|
113849
113899
|
BRIDGE_SWIFT = `import SwiftUI
|
|
113850
113900
|
@_spi(Peach) import UIKit
|
|
@@ -113892,7 +113942,7 @@ private func platformColor(named name: String) -> UIColor? {
|
|
|
113892
113942
|
}
|
|
113893
113943
|
}
|
|
113894
113944
|
|
|
113895
|
-
|
|
113945
|
+
func oneControlColor(_ raw: Any) -> UIColor? {
|
|
113896
113946
|
if let color = raw as? UIColor { return color }
|
|
113897
113947
|
if let number = raw as? NSNumber {
|
|
113898
113948
|
let argb = UInt32(truncatingIfNeeded: number.int64Value)
|
|
@@ -113932,8 +113982,8 @@ private func parseColor(_ raw: Any) -> UIColor? {
|
|
|
113932
113982
|
}
|
|
113933
113983
|
}
|
|
113934
113984
|
if let dynamic = dict["dynamic"] as? Spec,
|
|
113935
|
-
let light = dynamic["light"].flatMap(
|
|
113936
|
-
let dark = dynamic["dark"].flatMap(
|
|
113985
|
+
let light = dynamic["light"].flatMap(oneControlColor),
|
|
113986
|
+
let dark = dynamic["dark"].flatMap(oneControlColor) {
|
|
113937
113987
|
return UIColor { traits in
|
|
113938
113988
|
traits.userInterfaceStyle == .dark ? dark : light
|
|
113939
113989
|
}
|
|
@@ -113950,7 +114000,7 @@ private func normalizeStyle(_ raw: Spec?) -> Spec {
|
|
|
113950
114000
|
}
|
|
113951
114001
|
}
|
|
113952
114002
|
for key in ["foregroundStyle", "tint", "background", "borderColor", "glassEffectTint"] {
|
|
113953
|
-
if let value = style[key], let color =
|
|
114003
|
+
if let value = style[key], let color = oneControlColor(value) {
|
|
113954
114004
|
style[key] = color
|
|
113955
114005
|
}
|
|
113956
114006
|
}
|
|
@@ -113966,7 +114016,12 @@ private func normalizeStyle(_ raw: Spec?) -> Spec {
|
|
|
113966
114016
|
}
|
|
113967
114017
|
|
|
113968
114018
|
private class ControlComposition {
|
|
114019
|
+
private static let reconciledContainers: Set<String> = [
|
|
114020
|
+
"OneNativeLazyVStack", "OneNativeLazyHStack", "OneNativeLazyVGrid", "OneNativeLazyHGrid",
|
|
114021
|
+
"OneNativeList", "OneNativeSection", "OneNativeForm",
|
|
114022
|
+
]
|
|
113969
114023
|
var views: [String: UIView] = [:]
|
|
114024
|
+
var specs: [String: Spec] = [:]
|
|
113970
114025
|
var children: [String: [UIView]] = [:]
|
|
113971
114026
|
var slots: [String: UIView] = [:]
|
|
113972
114027
|
var emit: ((String, String) -> Void)?
|
|
@@ -113984,7 +114039,10 @@ private class ControlComposition {
|
|
|
113984
114039
|
) {
|
|
113985
114040
|
let prefix = zip(previous, next).prefix(while: { $0 === $1 }).count
|
|
113986
114041
|
for child in previous.dropFirst(prefix).reversed() { remove(child) }
|
|
113987
|
-
for (index, child) in next.enumerated().dropFirst(prefix) {
|
|
114042
|
+
for (index, child) in next.enumerated().dropFirst(prefix) {
|
|
114043
|
+
child.removeFromSuperview()
|
|
114044
|
+
insert(child, index)
|
|
114045
|
+
}
|
|
113988
114046
|
}
|
|
113989
114047
|
|
|
113990
114048
|
func render(_ node: Spec, visited: inout Set<String>) -> UIView {
|
|
@@ -114028,22 +114086,30 @@ private class ControlComposition {
|
|
|
114028
114086
|
slot.configure(height: spec["height"] as? Double ?? 0, width: spec["width"] as? Double ?? 0)
|
|
114029
114087
|
slot.configureSwiftStyle(style)
|
|
114030
114088
|
slot.onSwiftStyleEvent = visit
|
|
114089
|
+
slot.onLayout = { [weak self] frame in
|
|
114090
|
+
self?.send(id, "onNativeLayout", ["x": frame.minX, "y": frame.minY, "width": frame.width, "height": frame.height])
|
|
114091
|
+
}
|
|
114031
114092
|
view = slot
|
|
114032
114093
|
default:
|
|
114033
|
-
guard let mount = guestControls[control] else { preconditionFailure("unsupported One
|
|
114034
|
-
view = mount(views[id], spec, style) { [weak self] event, fields in self?.send(id, event, fields) }
|
|
114094
|
+
guard let mount = guestControls[control] else { preconditionFailure("unsupported One control \\(control)") }
|
|
114095
|
+
view = mount(views[id], spec, specs[id], style) { [weak self] event, fields in self?.send(id, event, fields) }
|
|
114096
|
+
specs[id] = spec
|
|
114035
114097
|
}
|
|
114036
114098
|
views[id] = view
|
|
114037
114099
|
if let container = view as? OneNativeContainerView {
|
|
114038
114100
|
container.configureSwiftStyle(style)
|
|
114039
114101
|
container.onSwiftStyleEvent = visit
|
|
114040
114102
|
let nested = (node["children"] as? [Spec] ?? []).map { render($0, visited: &visited) }
|
|
114041
|
-
|
|
114042
|
-
nested
|
|
114043
|
-
|
|
114044
|
-
|
|
114045
|
-
|
|
114046
|
-
|
|
114103
|
+
if Self.reconciledContainers.contains(control) {
|
|
114104
|
+
container.reconcileComposedChildren(nested)
|
|
114105
|
+
} else {
|
|
114106
|
+
reconcile(
|
|
114107
|
+
nested,
|
|
114108
|
+
previous: children[id] ?? [],
|
|
114109
|
+
remove: container.removeChild,
|
|
114110
|
+
insert: container.insertChild
|
|
114111
|
+
)
|
|
114112
|
+
}
|
|
114047
114113
|
children[id] = nested
|
|
114048
114114
|
}
|
|
114049
114115
|
return view
|
|
@@ -114053,12 +114119,42 @@ private class ControlComposition {
|
|
|
114053
114119
|
for (id, view) in views where !visited.contains(id) {
|
|
114054
114120
|
if let container = view as? OneNativeContainerView { container.reset() }
|
|
114055
114121
|
views.removeValue(forKey: id)
|
|
114122
|
+
specs.removeValue(forKey: id)
|
|
114056
114123
|
children.removeValue(forKey: id)
|
|
114057
114124
|
slots.removeValue(forKey: id)
|
|
114058
114125
|
}
|
|
114059
114126
|
}
|
|
114060
114127
|
}
|
|
114061
114128
|
|
|
114129
|
+
private struct ControlBridge: UIViewRepresentable {
|
|
114130
|
+
let root: Spec
|
|
114131
|
+
let emit: (String, String) -> Void
|
|
114132
|
+
|
|
114133
|
+
func makeCoordinator() -> ControlComposition { ControlComposition() }
|
|
114134
|
+
|
|
114135
|
+
func makeUIView(context: Context) -> UIView { UIView(frame: .zero) }
|
|
114136
|
+
|
|
114137
|
+
func updateUIView(_ host: UIView, context: Context) {
|
|
114138
|
+
let state = context.coordinator
|
|
114139
|
+
state.emit = emit
|
|
114140
|
+
var visited = Set<String>()
|
|
114141
|
+
let control = state.render(root, visited: &visited)
|
|
114142
|
+
if control.superview !== host {
|
|
114143
|
+
host.subviews.forEach { $0.removeFromSuperview() }
|
|
114144
|
+
control.frame = host.bounds
|
|
114145
|
+
control.autoresizingMask = [.flexibleWidth, .flexibleHeight]
|
|
114146
|
+
host.addSubview(control)
|
|
114147
|
+
}
|
|
114148
|
+
state.prune(keeping: visited)
|
|
114149
|
+
}
|
|
114150
|
+
|
|
114151
|
+
static func dismantleUIView(_ host: UIView, coordinator: ControlComposition) {
|
|
114152
|
+
host.subviews.forEach { $0.removeFromSuperview() }
|
|
114153
|
+
coordinator.prune(keeping: [])
|
|
114154
|
+
coordinator.emit = nil
|
|
114155
|
+
}
|
|
114156
|
+
}
|
|
114157
|
+
|
|
114062
114158
|
private struct NavigationDestinationSlot: Identifiable, Equatable {
|
|
114063
114159
|
let id: String
|
|
114064
114160
|
let contentHost: String
|
|
@@ -114330,7 +114426,10 @@ private struct NavigationSplitViewBridge: UIViewRepresentable {
|
|
|
114330
114426
|
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
|
114331
114427
|
.ignoresSafeArea(.container))
|
|
114332
114428
|
default:
|
|
114333
|
-
|
|
114429
|
+
let root = spec["root"] as! Spec
|
|
114430
|
+
precondition((root["spec"] as? Spec)?["control"] as? String == view)
|
|
114431
|
+
return AnyView(ControlBridge(root: root, emit: emit)
|
|
114432
|
+
.frame(maxWidth: .infinity, maxHeight: .infinity))
|
|
114334
114433
|
}
|
|
114335
114434
|
}
|
|
114336
114435
|
}
|
|
@@ -118747,7 +118846,7 @@ var init_nitro_superset = __esm({
|
|
|
118747
118846
|
init_nitroContract();
|
|
118748
118847
|
init_swift_standin_digest();
|
|
118749
118848
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
118750
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
118849
|
+
NITRO_COMPILER_DIGEST = true ? "aadb826ed82edbe82333b9bc9eef9ac7e3faa094f27facdbba72feb1f5e3adc6" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
118751
118850
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
118752
118851
|
nitroSupersetKey = (inputs2) => nativeEntryKey({ ...inputs2, compiler: NITRO_COMPILER_DIGEST });
|
|
118753
118852
|
published3 = /* @__PURE__ */ new Map();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2588 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -989,13 +989,13 @@ var init_swift_standin_digest = __esm({
|
|
|
989
989
|
import_node_crypto5 = require("node:crypto");
|
|
990
990
|
import_node_fs11 = require("node:fs");
|
|
991
991
|
import_node_path12 = __toESM(require("node:path"), 1);
|
|
992
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
992
|
+
STANDIN_SOURCE_DIGEST = true ? "3f599241e9565977a3b4bc4cae7ce5ee8032948cc6c47ca8496c9edb45f25011" : standinSourceDigest();
|
|
993
993
|
}
|
|
994
994
|
});
|
|
995
995
|
|
|
996
996
|
// src/expo-native-compiler-digest.ts
|
|
997
997
|
function expoNativeCompilerDigestValue() {
|
|
998
|
-
return true ? "
|
|
998
|
+
return true ? "ab61e93963022a221353be8f410397787d6eb35d6fdb9441d4daca8c413670ee" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
999
999
|
}
|
|
1000
1000
|
var import_node_crypto6;
|
|
1001
1001
|
var init_expo_native_compiler_digest = __esm({
|
|
@@ -9568,6 +9568,13 @@ var init_swift_root_lock = __esm({
|
|
|
9568
9568
|
}
|
|
9569
9569
|
});
|
|
9570
9570
|
|
|
9571
|
+
// src/swift-source-closure.ts
|
|
9572
|
+
var init_swift_source_closure = __esm({
|
|
9573
|
+
"src/swift-source-closure.ts"() {
|
|
9574
|
+
"use strict";
|
|
9575
|
+
}
|
|
9576
|
+
});
|
|
9577
|
+
|
|
9571
9578
|
// src/swift-uniform-type-constants.ts
|
|
9572
9579
|
var import_node_child_process33, import_node_path60;
|
|
9573
9580
|
var init_swift_uniform_type_constants = __esm({
|
|
@@ -9633,6 +9640,7 @@ var init_swift_compile = __esm({
|
|
|
9633
9640
|
init_swift_root_lock();
|
|
9634
9641
|
init_swift_sdk_image_wasm();
|
|
9635
9642
|
init_swift_shared_sdk();
|
|
9643
|
+
init_swift_source_closure();
|
|
9636
9644
|
init_swift_toolchain();
|
|
9637
9645
|
init_swift_uniform_type_constants();
|
|
9638
9646
|
init_swift_wasm_prune();
|
|
@@ -9708,7 +9716,7 @@ var init_swift_compile = __esm({
|
|
|
9708
9716
|
};
|
|
9709
9717
|
OPTIONAL_FRAMEWORKS = new Set(Object.keys(OPTIONAL_FRAMEWORK_DEPENDENCIES));
|
|
9710
9718
|
NON_IOS_MODULES = /* @__PURE__ */ new Set(["FoundationNetworking", "WASILibc"]);
|
|
9711
|
-
compilerSourceDigest = true ? "
|
|
9719
|
+
compilerSourceDigest = true ? "6433b1a7f6d99095c2a444c33cfbf4bc62bedbf18b40e3415e37cd83e450f0df" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
9712
9720
|
NOT_ON_IOS = new RegExp(
|
|
9713
9721
|
`\\b(?:os\\(\\s*WASI\\s*\\)|canImport\\(\\s*(?:${[...NON_IOS_MODULES].join("|")})\\s*\\))`,
|
|
9714
9722
|
"g"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2588 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
import "../esm-chunks/chunk-
|
|
1
|
+
/*! peach v0.1.2588 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
|
+
import "../esm-chunks/chunk-C7MHFZIA.mjs";
|
|
3
3
|
|
|
4
4
|
// src/host/fetch-proxy-overrides.ts
|
|
5
5
|
var FETCH_PROXY_NATIVE_USER_AGENT_HEADER = "x-sootsim-native-user-agent";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2588 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2588 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2588 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/kotlin-host.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2588 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/menu.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2588 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|