peachsim 0.1.1858 → 0.1.1860
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 +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 +36 -14
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +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/config.mjs +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 +35 -13
- 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 +36 -14
- 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 +2 -2
- 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 +2 -2
- package/dist-lib/native-app-identity-project.cjs +2 -2
- package/dist-lib/native-app-identity-project.mjs +2 -2
- 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/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.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/public-origins-lib-esm.json +24 -24
- package/dist-lib/public-origins-lib.json +53 -53
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- 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 +1 -1
- package/dist-lib/skills.cjs +36 -14
- package/dist-lib/swift-compile.cjs +33 -11
- package/dist-lib/swift-compile.mjs +33 -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 +34 -12
- 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/swift-compile.ts +35 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1860 | (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;
|
|
@@ -7267,13 +7267,27 @@ function swiftCompileSdkOptions(moduleRoot, toolchainBin) {
|
|
|
7267
7267
|
);
|
|
7268
7268
|
}
|
|
7269
7269
|
function swiftObjCSelectorOptions(moduleRoot) {
|
|
7270
|
-
|
|
7271
|
-
|
|
7272
|
-
|
|
7273
|
-
"
|
|
7274
|
-
|
|
7275
|
-
|
|
7276
|
-
|
|
7270
|
+
let map = import_node_path19.default.join(moduleRoot, SWIFT_DISTRIBUTION_OBJC_SELECTORS);
|
|
7271
|
+
if (!swiftDistributionAt(moduleRoot)) {
|
|
7272
|
+
const classes = {};
|
|
7273
|
+
for (const framework of ["UIKitCore", "WebKit"])
|
|
7274
|
+
for (const [name2, members] of Object.entries(
|
|
7275
|
+
JSON.parse(
|
|
7276
|
+
(0, import_node_fs17.readFileSync)(
|
|
7277
|
+
import_node_path19.default.join(moduleRoot, "Sources", framework, "ObjCSelectors.json"),
|
|
7278
|
+
"utf8"
|
|
7279
|
+
)
|
|
7280
|
+
).classes
|
|
7281
|
+
))
|
|
7282
|
+
classes[name2] = [...classes[name2] ?? [], ...members];
|
|
7283
|
+
map = import_node_path19.default.join(moduleRoot, ".build", SWIFT_DISTRIBUTION_OBJC_SELECTORS);
|
|
7284
|
+
(0, import_node_fs17.mkdirSync)(import_node_path19.default.dirname(map), { recursive: true });
|
|
7285
|
+
const partial = `${map}.${(0, import_node_crypto8.randomUUID)()}`;
|
|
7286
|
+
(0, import_node_fs17.writeFileSync)(partial, `${JSON.stringify({ classes }, null, 2)}
|
|
7287
|
+
`);
|
|
7288
|
+
(0, import_node_fs17.renameSync)(partial, map);
|
|
7289
|
+
}
|
|
7290
|
+
return ["-Xswiftc", "-Xllvm", "-Xswiftc", `-peach-objc-selector-map=${map}`];
|
|
7277
7291
|
}
|
|
7278
7292
|
function swiftModuleInputFiles(root) {
|
|
7279
7293
|
if (swiftDistributionAt(root)) return [SWIFT_DISTRIBUTION_MANIFEST];
|
|
@@ -7863,7 +7877,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
7863
7877
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
7864
7878
|
var MULTI_MANIFEST_VERSION = 65;
|
|
7865
7879
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
7866
|
-
var compilerSourceDigest = true ? "
|
|
7880
|
+
var compilerSourceDigest = true ? "5fa99333d1e9a793713fea96c94d643a3c457fd64ebaaec64418094f900f37ce" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
7867
7881
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
7868
7882
|
const hash = (0, import_node_crypto8.createHash)("sha256");
|
|
7869
7883
|
hash.update(`swift-compile
|
|
@@ -10061,6 +10075,14 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
|
|
|
10061
10075
|
)))
|
|
10062
10076
|
continue;
|
|
10063
10077
|
const includes = `${prefix}include/`;
|
|
10078
|
+
const settings = input.nativeTargets?.find((value) => value.name === target.name);
|
|
10079
|
+
const searchRoots = [
|
|
10080
|
+
...settings?.userHeaderSearchPaths ?? [],
|
|
10081
|
+
...settings?.headerSearchPaths ?? [],
|
|
10082
|
+
...(settings?.flags ?? []).flatMap(
|
|
10083
|
+
(flag, index) => settings.flags[index - 1] === "-I" && flag.startsWith(`${SWIFT_NATIVE_INPUT_ROOT}/`) ? [flag.slice(SWIFT_NATIVE_INPUT_ROOT.length + 1)] : []
|
|
10084
|
+
)
|
|
10085
|
+
];
|
|
10064
10086
|
const consumers = /* @__PURE__ */ new Map();
|
|
10065
10087
|
const reverse = /* @__PURE__ */ new Map();
|
|
10066
10088
|
for (const [file, contents] of entries) {
|
|
@@ -10075,7 +10097,8 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
|
|
|
10075
10097
|
producers2.add(producer);
|
|
10076
10098
|
const local = [
|
|
10077
10099
|
import_node_path19.default.posix.join(import_node_path19.default.posix.dirname(file), include2),
|
|
10078
|
-
`${includes}${include2}
|
|
10100
|
+
`${includes}${include2}`,
|
|
10101
|
+
...searchRoots.map((root) => import_node_path19.default.posix.join(root, include2))
|
|
10079
10102
|
].find((candidate) => input.files[candidate] !== void 0);
|
|
10080
10103
|
if (local) {
|
|
10081
10104
|
reverse.set(local, [...reverse.get(local) ?? [], file]);
|
|
@@ -10098,7 +10121,6 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
|
|
|
10098
10121
|
}
|
|
10099
10122
|
}
|
|
10100
10123
|
const late = units.filter(([file]) => consumers.get(file).size > 0);
|
|
10101
|
-
const settings = input.nativeTargets?.find((value) => value.name === target.name);
|
|
10102
10124
|
if (settings || entries.some(([file]) => file.endsWith(".swift"))) {
|
|
10103
10125
|
try {
|
|
10104
10126
|
if (!settings)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1860 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/swift-compile.ts
|
|
4
4
|
import {
|
|
@@ -7237,13 +7237,27 @@ function swiftCompileSdkOptions(moduleRoot, toolchainBin) {
|
|
|
7237
7237
|
);
|
|
7238
7238
|
}
|
|
7239
7239
|
function swiftObjCSelectorOptions(moduleRoot) {
|
|
7240
|
-
|
|
7241
|
-
|
|
7242
|
-
|
|
7243
|
-
"
|
|
7244
|
-
|
|
7245
|
-
|
|
7246
|
-
|
|
7240
|
+
let map = path19.join(moduleRoot, SWIFT_DISTRIBUTION_OBJC_SELECTORS);
|
|
7241
|
+
if (!swiftDistributionAt(moduleRoot)) {
|
|
7242
|
+
const classes = {};
|
|
7243
|
+
for (const framework of ["UIKitCore", "WebKit"])
|
|
7244
|
+
for (const [name2, members] of Object.entries(
|
|
7245
|
+
JSON.parse(
|
|
7246
|
+
readFileSync11(
|
|
7247
|
+
path19.join(moduleRoot, "Sources", framework, "ObjCSelectors.json"),
|
|
7248
|
+
"utf8"
|
|
7249
|
+
)
|
|
7250
|
+
).classes
|
|
7251
|
+
))
|
|
7252
|
+
classes[name2] = [...classes[name2] ?? [], ...members];
|
|
7253
|
+
map = path19.join(moduleRoot, ".build", SWIFT_DISTRIBUTION_OBJC_SELECTORS);
|
|
7254
|
+
mkdirSync4(path19.dirname(map), { recursive: true });
|
|
7255
|
+
const partial = `${map}.${randomUUID5()}`;
|
|
7256
|
+
writeFileSync4(partial, `${JSON.stringify({ classes }, null, 2)}
|
|
7257
|
+
`);
|
|
7258
|
+
renameSync2(partial, map);
|
|
7259
|
+
}
|
|
7260
|
+
return ["-Xswiftc", "-Xllvm", "-Xswiftc", `-peach-objc-selector-map=${map}`];
|
|
7247
7261
|
}
|
|
7248
7262
|
function swiftModuleInputFiles(root) {
|
|
7249
7263
|
if (swiftDistributionAt(root)) return [SWIFT_DISTRIBUTION_MANIFEST];
|
|
@@ -7833,7 +7847,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
7833
7847
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
7834
7848
|
var MULTI_MANIFEST_VERSION = 65;
|
|
7835
7849
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
7836
|
-
var compilerSourceDigest = true ? "
|
|
7850
|
+
var compilerSourceDigest = true ? "5fa99333d1e9a793713fea96c94d643a3c457fd64ebaaec64418094f900f37ce" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
7837
7851
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
7838
7852
|
const hash = createHash8("sha256");
|
|
7839
7853
|
hash.update(`swift-compile
|
|
@@ -10031,6 +10045,14 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
|
|
|
10031
10045
|
)))
|
|
10032
10046
|
continue;
|
|
10033
10047
|
const includes = `${prefix}include/`;
|
|
10048
|
+
const settings = input.nativeTargets?.find((value) => value.name === target.name);
|
|
10049
|
+
const searchRoots = [
|
|
10050
|
+
...settings?.userHeaderSearchPaths ?? [],
|
|
10051
|
+
...settings?.headerSearchPaths ?? [],
|
|
10052
|
+
...(settings?.flags ?? []).flatMap(
|
|
10053
|
+
(flag, index) => settings.flags[index - 1] === "-I" && flag.startsWith(`${SWIFT_NATIVE_INPUT_ROOT}/`) ? [flag.slice(SWIFT_NATIVE_INPUT_ROOT.length + 1)] : []
|
|
10054
|
+
)
|
|
10055
|
+
];
|
|
10034
10056
|
const consumers = /* @__PURE__ */ new Map();
|
|
10035
10057
|
const reverse = /* @__PURE__ */ new Map();
|
|
10036
10058
|
for (const [file, contents] of entries) {
|
|
@@ -10045,7 +10067,8 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
|
|
|
10045
10067
|
producers2.add(producer);
|
|
10046
10068
|
const local = [
|
|
10047
10069
|
path19.posix.join(path19.posix.dirname(file), include2),
|
|
10048
|
-
`${includes}${include2}
|
|
10070
|
+
`${includes}${include2}`,
|
|
10071
|
+
...searchRoots.map((root) => path19.posix.join(root, include2))
|
|
10049
10072
|
].find((candidate) => input.files[candidate] !== void 0);
|
|
10050
10073
|
if (local) {
|
|
10051
10074
|
reverse.set(local, [...reverse.get(local) ?? [], file]);
|
|
@@ -10068,7 +10091,6 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
|
|
|
10068
10091
|
}
|
|
10069
10092
|
}
|
|
10070
10093
|
const late = units.filter(([file]) => consumers.get(file).size > 0);
|
|
10071
|
-
const settings = input.nativeTargets?.find((value) => value.name === target.name);
|
|
10072
10094
|
if (settings || entries.some(([file]) => file.endsWith(".swift"))) {
|
|
10073
10095
|
try {
|
|
10074
10096
|
if (!settings)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1860 | (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,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1860 | (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,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1860 | (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/swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1860 | (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;
|
package/dist-lib/vite-swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1860 | (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;
|
|
@@ -11566,13 +11566,27 @@ function swiftCompileSdkOptions(moduleRoot, toolchainBin) {
|
|
|
11566
11566
|
);
|
|
11567
11567
|
}
|
|
11568
11568
|
function swiftObjCSelectorOptions(moduleRoot) {
|
|
11569
|
-
|
|
11570
|
-
|
|
11571
|
-
|
|
11572
|
-
"
|
|
11573
|
-
|
|
11574
|
-
|
|
11575
|
-
|
|
11569
|
+
let map = import_node_path19.default.join(moduleRoot, SWIFT_DISTRIBUTION_OBJC_SELECTORS);
|
|
11570
|
+
if (!swiftDistributionAt(moduleRoot)) {
|
|
11571
|
+
const classes = {};
|
|
11572
|
+
for (const framework of ["UIKitCore", "WebKit"])
|
|
11573
|
+
for (const [name3, members2] of Object.entries(
|
|
11574
|
+
JSON.parse(
|
|
11575
|
+
(0, import_node_fs19.readFileSync)(
|
|
11576
|
+
import_node_path19.default.join(moduleRoot, "Sources", framework, "ObjCSelectors.json"),
|
|
11577
|
+
"utf8"
|
|
11578
|
+
)
|
|
11579
|
+
).classes
|
|
11580
|
+
))
|
|
11581
|
+
classes[name3] = [...classes[name3] ?? [], ...members2];
|
|
11582
|
+
map = import_node_path19.default.join(moduleRoot, ".build", SWIFT_DISTRIBUTION_OBJC_SELECTORS);
|
|
11583
|
+
(0, import_node_fs19.mkdirSync)(import_node_path19.default.dirname(map), { recursive: true });
|
|
11584
|
+
const partial = `${map}.${(0, import_node_crypto8.randomUUID)()}`;
|
|
11585
|
+
(0, import_node_fs19.writeFileSync)(partial, `${JSON.stringify({ classes }, null, 2)}
|
|
11586
|
+
`);
|
|
11587
|
+
(0, import_node_fs19.renameSync)(partial, map);
|
|
11588
|
+
}
|
|
11589
|
+
return ["-Xswiftc", "-Xllvm", "-Xswiftc", `-peach-objc-selector-map=${map}`];
|
|
11576
11590
|
}
|
|
11577
11591
|
function swiftModuleInputFiles(root) {
|
|
11578
11592
|
if (swiftDistributionAt(root)) return [SWIFT_DISTRIBUTION_MANIFEST];
|
|
@@ -12158,7 +12172,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
12158
12172
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
12159
12173
|
var MULTI_MANIFEST_VERSION = 65;
|
|
12160
12174
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
12161
|
-
var compilerSourceDigest = true ? "
|
|
12175
|
+
var compilerSourceDigest = true ? "5fa99333d1e9a793713fea96c94d643a3c457fd64ebaaec64418094f900f37ce" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
12162
12176
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
12163
12177
|
const hash = (0, import_node_crypto8.createHash)("sha256");
|
|
12164
12178
|
hash.update(`swift-compile
|
|
@@ -14281,6 +14295,14 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
|
|
|
14281
14295
|
)))
|
|
14282
14296
|
continue;
|
|
14283
14297
|
const includes = `${prefix}include/`;
|
|
14298
|
+
const settings = input.nativeTargets?.find((value) => value.name === target.name);
|
|
14299
|
+
const searchRoots = [
|
|
14300
|
+
...settings?.userHeaderSearchPaths ?? [],
|
|
14301
|
+
...settings?.headerSearchPaths ?? [],
|
|
14302
|
+
...(settings?.flags ?? []).flatMap(
|
|
14303
|
+
(flag, index) => settings.flags[index - 1] === "-I" && flag.startsWith(`${SWIFT_NATIVE_INPUT_ROOT}/`) ? [flag.slice(SWIFT_NATIVE_INPUT_ROOT.length + 1)] : []
|
|
14304
|
+
)
|
|
14305
|
+
];
|
|
14284
14306
|
const consumers = /* @__PURE__ */ new Map();
|
|
14285
14307
|
const reverse = /* @__PURE__ */ new Map();
|
|
14286
14308
|
for (const [file, contents] of entries) {
|
|
@@ -14295,7 +14317,8 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
|
|
|
14295
14317
|
producers2.add(producer);
|
|
14296
14318
|
const local = [
|
|
14297
14319
|
import_node_path19.default.posix.join(import_node_path19.default.posix.dirname(file), include2),
|
|
14298
|
-
`${includes}${include2}
|
|
14320
|
+
`${includes}${include2}`,
|
|
14321
|
+
...searchRoots.map((root) => import_node_path19.default.posix.join(root, include2))
|
|
14299
14322
|
].find((candidate) => input.files[candidate] !== void 0);
|
|
14300
14323
|
if (local) {
|
|
14301
14324
|
reverse.set(local, [...reverse.get(local) ?? [], file]);
|
|
@@ -14318,7 +14341,6 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
|
|
|
14318
14341
|
}
|
|
14319
14342
|
}
|
|
14320
14343
|
const late = units.filter(([file]) => consumers.get(file).size > 0);
|
|
14321
|
-
const settings = input.nativeTargets?.find((value) => value.name === target.name);
|
|
14322
14344
|
if (settings || entries.some(([file]) => file.endsWith(".swift"))) {
|
|
14323
14345
|
try {
|
|
14324
14346
|
if (!settings)
|
|
@@ -24870,7 +24892,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
|
|
|
24870
24892
|
return hash.digest("hex");
|
|
24871
24893
|
}
|
|
24872
24894
|
var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
24873
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
24895
|
+
var STANDIN_SOURCE_DIGEST = true ? "8813103bd2b0fe030d5459523439650b9ce9be80f96873b1836911a61631b4a2" : standinSourceDigest();
|
|
24874
24896
|
|
|
24875
24897
|
// src/swift-standins.ts
|
|
24876
24898
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1860 | (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.1860 | (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;
|
package/package.json
CHANGED
package/src/swift-compile.ts
CHANGED
|
@@ -491,13 +491,28 @@ export function swiftCompileSdkOptions(
|
|
|
491
491
|
|
|
492
492
|
/** consumer targets send the selectors iOS names, as the SDK's own targets do. */
|
|
493
493
|
function swiftObjCSelectorOptions(moduleRoot: string): string[] {
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
494
|
+
let map = path.join(moduleRoot, SWIFT_DISTRIBUTION_OBJC_SELECTORS)
|
|
495
|
+
// the compiler reads one map per compile; a distribution ships the SDK
|
|
496
|
+
// targets' maps merged, a source checkout merges them here.
|
|
497
|
+
if (!swiftDistributionAt(moduleRoot)) {
|
|
498
|
+
const classes: Record<string, unknown[]> = {}
|
|
499
|
+
for (const framework of ['UIKitCore', 'WebKit'])
|
|
500
|
+
for (const [name, members] of Object.entries<unknown[]>(
|
|
501
|
+
JSON.parse(
|
|
502
|
+
readFileSync(
|
|
503
|
+
path.join(moduleRoot, 'Sources', framework, 'ObjCSelectors.json'),
|
|
504
|
+
'utf8',
|
|
505
|
+
),
|
|
506
|
+
).classes,
|
|
507
|
+
))
|
|
508
|
+
classes[name] = [...(classes[name] ?? []), ...members]
|
|
509
|
+
map = path.join(moduleRoot, '.build', SWIFT_DISTRIBUTION_OBJC_SELECTORS)
|
|
510
|
+
mkdirSync(path.dirname(map), { recursive: true })
|
|
511
|
+
const partial = `${map}.${randomUUID()}`
|
|
512
|
+
writeFileSync(partial, `${JSON.stringify({ classes }, null, 2)}\n`)
|
|
513
|
+
renameSync(partial, map)
|
|
514
|
+
}
|
|
515
|
+
return ['-Xswiftc', '-Xllvm', '-Xswiftc', `-peach-objc-selector-map=${map}`]
|
|
501
516
|
}
|
|
502
517
|
|
|
503
518
|
// toolchain.json is an input for its wasm sdk checksum: the sdk's icu blob,
|
|
@@ -4297,6 +4312,18 @@ export function writeSwiftProject(
|
|
|
4297
4312
|
)
|
|
4298
4313
|
continue
|
|
4299
4314
|
const includes = `${prefix}include/`
|
|
4315
|
+
// a quoted include may name a file relative to a declared header search path
|
|
4316
|
+
const settings = input.nativeTargets?.find((value) => value.name === target.name)
|
|
4317
|
+
const searchRoots = [
|
|
4318
|
+
...(settings?.userHeaderSearchPaths ?? []),
|
|
4319
|
+
...(settings?.headerSearchPaths ?? []),
|
|
4320
|
+
...(settings?.flags ?? []).flatMap((flag, index) =>
|
|
4321
|
+
settings!.flags[index - 1] === '-I' &&
|
|
4322
|
+
flag.startsWith(`${SWIFT_NATIVE_INPUT_ROOT}/`)
|
|
4323
|
+
? [flag.slice(SWIFT_NATIVE_INPUT_ROOT.length + 1)]
|
|
4324
|
+
: [],
|
|
4325
|
+
),
|
|
4326
|
+
]
|
|
4300
4327
|
const consumers = new Map<string, Set<string>>()
|
|
4301
4328
|
const reverse = new Map<string, string[]>()
|
|
4302
4329
|
for (const [file, contents] of entries) {
|
|
@@ -4313,6 +4340,7 @@ export function writeSwiftProject(
|
|
|
4313
4340
|
const local = [
|
|
4314
4341
|
path.posix.join(path.posix.dirname(file), include),
|
|
4315
4342
|
`${includes}${include}`,
|
|
4343
|
+
...searchRoots.map((root) => path.posix.join(root, include)),
|
|
4316
4344
|
].find((candidate) => input.files[candidate] !== undefined)
|
|
4317
4345
|
if (local) {
|
|
4318
4346
|
reverse.set(local, [...(reverse.get(local) ?? []), file])
|
|
@@ -4335,7 +4363,6 @@ export function writeSwiftProject(
|
|
|
4335
4363
|
}
|
|
4336
4364
|
}
|
|
4337
4365
|
const late = units.filter(([file]) => consumers.get(file)!.size > 0)
|
|
4338
|
-
const settings = input.nativeTargets?.find((value) => value.name === target.name)
|
|
4339
4366
|
if (settings || entries.some(([file]) => file.endsWith('.swift'))) {
|
|
4340
4367
|
try {
|
|
4341
4368
|
if (!settings)
|