peachsim 0.1.1899 → 0.1.1902
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/README.md +2 -2
- package/cli/account-gate.ts +1 -1
- package/cli/app-stubs.ts +1 -1
- package/cli/commands/box/checkout-plane.ts +1 -1
- package/cli/commands/box/search-command.ts +1 -1
- package/cli/commands/perf-record.ts +1 -1
- 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 +128 -58
- 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 +49 -33
- 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 +138 -69
- 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 +31 -30
- 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 +29 -28
- package/dist-lib/native-app-identity-project.cjs +21 -20
- package/dist-lib/native-app-identity-project.mjs +21 -20
- 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 +173 -103
- package/dist-lib/swift-compile.cjs +25 -9
- package/dist-lib/swift-compile.mjs +25 -9
- 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 +3 -3
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +35 -19
- package/dist-lib/vite.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/kotlin/README.md +4 -4
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/src/assetCatalogContract.ts +1 -1
- package/src/bundle-channel.mjs +1 -1
- package/src/config.ts +2 -2
- package/src/device-catalog.ts +4 -4
- package/src/expo-native-prebuilt.ts +1 -1
- package/src/nitro-adapter.ts +1 -1
- package/src/nitro-dependencies.ts +1 -1
- package/src/settingsContract.ts +1 -1
- package/src/swift-compile.ts +23 -4
- package/src/swift-darwin-records.ts +1 -1
- package/src/swift-distribution-contract.ts +1 -1
- package/src/swift-distribution.ts +1 -1
- package/src/swift-guest-compile.ts +7 -1
- package/src/swift-guest-link.ts +3 -2
- package/src/swift-toolchain.ts +3 -2
- package/src/turbo-codegen-intake.ts +3 -0
- package/src/turbo-compile.ts +1 -0
- package/src/turbo-source.ts +62 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1902 | (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;
|
|
@@ -95,6 +95,7 @@ var import_node_crypto12 = require("node:crypto");
|
|
|
95
95
|
var import_node_fs23 = require("node:fs");
|
|
96
96
|
var import_node_os9 = __toESM(require("node:os"), 1);
|
|
97
97
|
var import_node_path25 = __toESM(require("node:path"), 1);
|
|
98
|
+
var v5 = __toESM(require("valibot"), 1);
|
|
98
99
|
|
|
99
100
|
// src/admitted-mac-build.ts
|
|
100
101
|
var import_node_child_process = require("node:child_process");
|
|
@@ -2933,7 +2934,7 @@ function swiftToolchainBin(release) {
|
|
|
2933
2934
|
return (process.env.PATH ?? "").split(import_node_path4.default.delimiter).find((dir) => dir && import_node_fs6.default.existsSync(import_node_path4.default.join(dir, "swift"))) ?? image;
|
|
2934
2935
|
}
|
|
2935
2936
|
var SWIFT_AUTOLINK_LINKER = ".peach-wasm-ld";
|
|
2936
|
-
function writeSwiftAutolinkLinker(directory, toolchainBin) {
|
|
2937
|
+
function writeSwiftAutolinkLinker(directory, toolchainBin, omitLibraries = []) {
|
|
2937
2938
|
const linker = import_node_path4.default.join(directory, SWIFT_AUTOLINK_LINKER);
|
|
2938
2939
|
const script = `#!/bin/sh
|
|
2939
2940
|
set -eu
|
|
@@ -2941,7 +2942,7 @@ for arg in "$@"; do
|
|
|
2941
2942
|
case $arg in
|
|
2942
2943
|
@*)
|
|
2943
2944
|
rsp=\${arg#@}
|
|
2944
|
-
awk 'BEGIN { RS = " "; ORS = " " } /^"-l/ { if (seen[$0]++) next } { print }' "$rsp" > "$rsp.dedup"
|
|
2945
|
+
awk 'BEGIN { RS = " "; ORS = " " } /^"-l/ { if (seen[$0]++) next }${omitLibraries.map((name2) => ` $0 == "\\"-l${name2}\\"" { next }`).join("")} { print }' "$rsp" > "$rsp.dedup"
|
|
2945
2946
|
mv "$rsp.dedup" "$rsp"
|
|
2946
2947
|
if [ "\${PEACH_DEFER_WASM_LINK:-}" = "1" ] && grep -q '"--start-lib"' "$rsp"; then
|
|
2947
2948
|
cp "$rsp" ${JSON.stringify(import_node_path4.default.join(directory, ".peach-link.rsp"))}
|
|
@@ -7579,7 +7580,7 @@ function emitGuestImageProjection(images) {
|
|
|
7579
7580
|
lines.push("const struct peach_guest_image __peach_guest_images[] = {");
|
|
7580
7581
|
for (const [i, image] of images.entries()) {
|
|
7581
7582
|
const uuid = image.uuid.match(/../g).map((byte) => `0x${byte}`).join(", ");
|
|
7582
|
-
const version2 = (
|
|
7583
|
+
const version2 = (v6) => (v6.major * 65536 + v6.minor * 256 + v6.patch).toString();
|
|
7583
7584
|
lines.push(
|
|
7584
7585
|
` {${cString(image.installName)}, ${image.fileType === "executable" ? 2 : 6}u, {${uuid}}, ${image.buildVersion.platform}u, ${version2(image.buildVersion.minimum)}u, ${version2(image.buildVersion.sdk)}u, ${image.regions.length}u, ${image.regions.length ? `regions_${i}` : "0"}},`
|
|
7585
7586
|
);
|
|
@@ -9281,8 +9282,8 @@ function verifyGuestSymbolScopes(options) {
|
|
|
9281
9282
|
providers: /* @__PURE__ */ new Map(),
|
|
9282
9283
|
physicalModule: false
|
|
9283
9284
|
};
|
|
9284
|
-
if (object3 === "<internal>"
|
|
9285
|
-
record.physicalModule = true;
|
|
9285
|
+
if (object3 === "<internal>") {
|
|
9286
|
+
if (kind === "definition of") record.physicalModule = true;
|
|
9286
9287
|
} else {
|
|
9287
9288
|
const image = options.owners.get(object3);
|
|
9288
9289
|
if (image === void 0)
|
|
@@ -10222,9 +10223,14 @@ async function compileGuestLink(options) {
|
|
|
10222
10223
|
systemProviders,
|
|
10223
10224
|
hostImports: scope.hostImports
|
|
10224
10225
|
});
|
|
10226
|
+
const wrapped = new Set(
|
|
10227
|
+
prepared.args.flatMap(
|
|
10228
|
+
(arg) => arg.startsWith("--wrap=") ? [arg.slice(7), `__wrap_${arg.slice(7)}`] : []
|
|
10229
|
+
)
|
|
10230
|
+
);
|
|
10225
10231
|
return {
|
|
10226
10232
|
...plan,
|
|
10227
|
-
symbols: scope.definitions,
|
|
10233
|
+
symbols: scope.definitions.filter((symbol) => !wrapped.has(symbol)),
|
|
10228
10234
|
directBindings: verified.directBindings
|
|
10229
10235
|
};
|
|
10230
10236
|
}
|
|
@@ -12080,7 +12086,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
12080
12086
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
12081
12087
|
var MULTI_MANIFEST_VERSION = 66;
|
|
12082
12088
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
12083
|
-
var compilerSourceDigest = true ? "
|
|
12089
|
+
var compilerSourceDigest = true ? "8768dadacf2e909cf808df3a31fe261832d51fb29d48f2b45bd4df5c117c6f69" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
12084
12090
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
12085
12091
|
const hash = (0, import_node_crypto12.createHash)("sha256");
|
|
12086
12092
|
hash.update(`swift-compile
|
|
@@ -16198,7 +16204,17 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
16198
16204
|
report("framework revision changed; rebuilding the app link");
|
|
16199
16205
|
const nativeToolset = needsNativeToolset(input, prebuilt);
|
|
16200
16206
|
const preparation = writeSwiftProject(layout2, input, frameworkRoot, prebuilt);
|
|
16201
|
-
|
|
16207
|
+
const productFile = import_node_path25.default.join(frameworkRoot, SWIFT_FRAMEWORK_PRODUCT_FILE);
|
|
16208
|
+
writeSwiftAutolinkLinker(
|
|
16209
|
+
root,
|
|
16210
|
+
options.toolchainBin,
|
|
16211
|
+
(0, import_node_fs23.existsSync)(productFile) ? [
|
|
16212
|
+
v5.parse(
|
|
16213
|
+
swiftFrameworkProductSchema,
|
|
16214
|
+
JSON.parse((0, import_node_fs23.readFileSync)(productFile, "utf8"))
|
|
16215
|
+
).product.name
|
|
16216
|
+
] : []
|
|
16217
|
+
);
|
|
16202
16218
|
const projectProcess = options.project ? prepareSwiftProjectProcess(root, options.project) : void 0;
|
|
16203
16219
|
const appOptions = projectProcess ? {
|
|
16204
16220
|
...buildOptions,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1902 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/swift-compile.ts
|
|
4
4
|
import {
|
|
@@ -26,6 +26,7 @@ import {
|
|
|
26
26
|
} from "node:fs";
|
|
27
27
|
import os5 from "node:os";
|
|
28
28
|
import path25 from "node:path";
|
|
29
|
+
import * as v5 from "valibot";
|
|
29
30
|
|
|
30
31
|
// src/admitted-mac-build.ts
|
|
31
32
|
import { spawnSync } from "node:child_process";
|
|
@@ -2880,7 +2881,7 @@ function swiftToolchainBin(release) {
|
|
|
2880
2881
|
return (process.env.PATH ?? "").split(path4.delimiter).find((dir) => dir && fs.existsSync(path4.join(dir, "swift"))) ?? image;
|
|
2881
2882
|
}
|
|
2882
2883
|
var SWIFT_AUTOLINK_LINKER = ".peach-wasm-ld";
|
|
2883
|
-
function writeSwiftAutolinkLinker(directory, toolchainBin) {
|
|
2884
|
+
function writeSwiftAutolinkLinker(directory, toolchainBin, omitLibraries = []) {
|
|
2884
2885
|
const linker = path4.join(directory, SWIFT_AUTOLINK_LINKER);
|
|
2885
2886
|
const script = `#!/bin/sh
|
|
2886
2887
|
set -eu
|
|
@@ -2888,7 +2889,7 @@ for arg in "$@"; do
|
|
|
2888
2889
|
case $arg in
|
|
2889
2890
|
@*)
|
|
2890
2891
|
rsp=\${arg#@}
|
|
2891
|
-
awk 'BEGIN { RS = " "; ORS = " " } /^"-l/ { if (seen[$0]++) next } { print }' "$rsp" > "$rsp.dedup"
|
|
2892
|
+
awk 'BEGIN { RS = " "; ORS = " " } /^"-l/ { if (seen[$0]++) next }${omitLibraries.map((name2) => ` $0 == "\\"-l${name2}\\"" { next }`).join("")} { print }' "$rsp" > "$rsp.dedup"
|
|
2892
2893
|
mv "$rsp.dedup" "$rsp"
|
|
2893
2894
|
if [ "\${PEACH_DEFER_WASM_LINK:-}" = "1" ] && grep -q '"--start-lib"' "$rsp"; then
|
|
2894
2895
|
cp "$rsp" ${JSON.stringify(path4.join(directory, ".peach-link.rsp"))}
|
|
@@ -7528,7 +7529,7 @@ function emitGuestImageProjection(images) {
|
|
|
7528
7529
|
lines.push("const struct peach_guest_image __peach_guest_images[] = {");
|
|
7529
7530
|
for (const [i, image] of images.entries()) {
|
|
7530
7531
|
const uuid = image.uuid.match(/../g).map((byte) => `0x${byte}`).join(", ");
|
|
7531
|
-
const version2 = (
|
|
7532
|
+
const version2 = (v6) => (v6.major * 65536 + v6.minor * 256 + v6.patch).toString();
|
|
7532
7533
|
lines.push(
|
|
7533
7534
|
` {${cString(image.installName)}, ${image.fileType === "executable" ? 2 : 6}u, {${uuid}}, ${image.buildVersion.platform}u, ${version2(image.buildVersion.minimum)}u, ${version2(image.buildVersion.sdk)}u, ${image.regions.length}u, ${image.regions.length ? `regions_${i}` : "0"}},`
|
|
7534
7535
|
);
|
|
@@ -9231,8 +9232,8 @@ function verifyGuestSymbolScopes(options) {
|
|
|
9231
9232
|
providers: /* @__PURE__ */ new Map(),
|
|
9232
9233
|
physicalModule: false
|
|
9233
9234
|
};
|
|
9234
|
-
if (object3 === "<internal>"
|
|
9235
|
-
record.physicalModule = true;
|
|
9235
|
+
if (object3 === "<internal>") {
|
|
9236
|
+
if (kind === "definition of") record.physicalModule = true;
|
|
9236
9237
|
} else {
|
|
9237
9238
|
const image = options.owners.get(object3);
|
|
9238
9239
|
if (image === void 0)
|
|
@@ -10172,9 +10173,14 @@ async function compileGuestLink(options) {
|
|
|
10172
10173
|
systemProviders,
|
|
10173
10174
|
hostImports: scope.hostImports
|
|
10174
10175
|
});
|
|
10176
|
+
const wrapped = new Set(
|
|
10177
|
+
prepared.args.flatMap(
|
|
10178
|
+
(arg) => arg.startsWith("--wrap=") ? [arg.slice(7), `__wrap_${arg.slice(7)}`] : []
|
|
10179
|
+
)
|
|
10180
|
+
);
|
|
10175
10181
|
return {
|
|
10176
10182
|
...plan,
|
|
10177
|
-
symbols: scope.definitions,
|
|
10183
|
+
symbols: scope.definitions.filter((symbol) => !wrapped.has(symbol)),
|
|
10178
10184
|
directBindings: verified.directBindings
|
|
10179
10185
|
};
|
|
10180
10186
|
}
|
|
@@ -12057,7 +12063,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
12057
12063
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
12058
12064
|
var MULTI_MANIFEST_VERSION = 66;
|
|
12059
12065
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
12060
|
-
var compilerSourceDigest = true ? "
|
|
12066
|
+
var compilerSourceDigest = true ? "8768dadacf2e909cf808df3a31fe261832d51fb29d48f2b45bd4df5c117c6f69" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
12061
12067
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
12062
12068
|
const hash = createHash13("sha256");
|
|
12063
12069
|
hash.update(`swift-compile
|
|
@@ -16175,7 +16181,17 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
16175
16181
|
report("framework revision changed; rebuilding the app link");
|
|
16176
16182
|
const nativeToolset = needsNativeToolset(input, prebuilt);
|
|
16177
16183
|
const preparation = writeSwiftProject(layout2, input, frameworkRoot, prebuilt);
|
|
16178
|
-
|
|
16184
|
+
const productFile = path25.join(frameworkRoot, SWIFT_FRAMEWORK_PRODUCT_FILE);
|
|
16185
|
+
writeSwiftAutolinkLinker(
|
|
16186
|
+
root,
|
|
16187
|
+
options.toolchainBin,
|
|
16188
|
+
existsSync4(productFile) ? [
|
|
16189
|
+
v5.parse(
|
|
16190
|
+
swiftFrameworkProductSchema,
|
|
16191
|
+
JSON.parse(readFileSync16(productFile, "utf8"))
|
|
16192
|
+
).product.name
|
|
16193
|
+
] : []
|
|
16194
|
+
);
|
|
16179
16195
|
const projectProcess = options.project ? prepareSwiftProjectProcess(root, options.project) : void 0;
|
|
16180
16196
|
const appOptions = projectProcess ? {
|
|
16181
16197
|
...buildOptions,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1902 | (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.1902 | (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.1902 | (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;
|
|
@@ -455,7 +455,7 @@ function swiftToolchainBin(release) {
|
|
|
455
455
|
return (process.env.PATH ?? "").split(import_node_path.default.delimiter).find((dir) => dir && import_node_fs.default.existsSync(import_node_path.default.join(dir, "swift"))) ?? image;
|
|
456
456
|
}
|
|
457
457
|
var SWIFT_AUTOLINK_LINKER = ".peach-wasm-ld";
|
|
458
|
-
function writeSwiftAutolinkLinker(directory, toolchainBin) {
|
|
458
|
+
function writeSwiftAutolinkLinker(directory, toolchainBin, omitLibraries = []) {
|
|
459
459
|
const linker = import_node_path.default.join(directory, SWIFT_AUTOLINK_LINKER);
|
|
460
460
|
const script = `#!/bin/sh
|
|
461
461
|
set -eu
|
|
@@ -463,7 +463,7 @@ for arg in "$@"; do
|
|
|
463
463
|
case $arg in
|
|
464
464
|
@*)
|
|
465
465
|
rsp=\${arg#@}
|
|
466
|
-
awk 'BEGIN { RS = " "; ORS = " " } /^"-l/ { if (seen[$0]++) next } { print }' "$rsp" > "$rsp.dedup"
|
|
466
|
+
awk 'BEGIN { RS = " "; ORS = " " } /^"-l/ { if (seen[$0]++) next }${omitLibraries.map((name) => ` $0 == "\\"-l${name}\\"" { next }`).join("")} { print }' "$rsp" > "$rsp.dedup"
|
|
467
467
|
mv "$rsp.dedup" "$rsp"
|
|
468
468
|
if [ "\${PEACH_DEFER_WASM_LINK:-}" = "1" ] && grep -q '"--start-lib"' "$rsp"; then
|
|
469
469
|
cp "$rsp" ${JSON.stringify(import_node_path.default.join(directory, ".peach-link.rsp"))}
|
package/dist-lib/swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1902 | (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.1902 | (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;
|
|
@@ -39,7 +39,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
39
39
|
var define_SWIFT_COVERAGE_SOURCE_DIGESTS_default;
|
|
40
40
|
var init_define_SWIFT_COVERAGE_SOURCE_DIGESTS = __esm({
|
|
41
41
|
"<define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>"() {
|
|
42
|
-
define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "8b398ceb60faf4a5729842cab60f49c2e601d6fc6bbbc1faec9023ecb8141990", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "8e6020d17d24474150a5a50d042aca6261819ef75c79680a287a66f395909915", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "4b7d4a715cdaf57468ead23f2ff9dce76d02c6a888d73d144d4baa2ae571ba3c", "swift-package.ts": "e66452b430a7dc749e0db64e21a2f3cd969ba48fa1ae31cd5de5c366c3783bf7", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "
|
|
42
|
+
define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "8b398ceb60faf4a5729842cab60f49c2e601d6fc6bbbc1faec9023ecb8141990", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "8e6020d17d24474150a5a50d042aca6261819ef75c79680a287a66f395909915", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "4b7d4a715cdaf57468ead23f2ff9dce76d02c6a888d73d144d4baa2ae571ba3c", "swift-package.ts": "e66452b430a7dc749e0db64e21a2f3cd969ba48fa1ae31cd5de5c366c3783bf7", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "450ee02b48bcdbbacbb4e94cd161308f1dac1bdb540ed5033c2433f717f738d2", "home-paths.ts": "744d0e29fcc4baae6748161da45dd75e357348703331dad685c74ec813abcc83", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "0669e4cca53dc8db00059018d7f93ff9139915fc0f4fb0c82a938febb7862dfe", "xcode-target-members.ts": "75a23a5fc54cc6f5e952d545f2f0f86241ff36525ab4e568c172e83c3bfb9da4", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
|
|
@@ -92,7 +92,7 @@ var require_parse = __commonJS({
|
|
|
92
92
|
var token;
|
|
93
93
|
var key2;
|
|
94
94
|
var root;
|
|
95
|
-
module2.exports = function
|
|
95
|
+
module2.exports = function parse6(text5, reviver) {
|
|
96
96
|
source = String(text5);
|
|
97
97
|
parseState = "start";
|
|
98
98
|
stack = [];
|
|
@@ -947,12 +947,12 @@ var require_stringify = __commonJS({
|
|
|
947
947
|
replacerFunc = replacer;
|
|
948
948
|
} else if (Array.isArray(replacer)) {
|
|
949
949
|
propertyList = [];
|
|
950
|
-
for (const
|
|
950
|
+
for (const v6 of replacer) {
|
|
951
951
|
let item;
|
|
952
|
-
if (typeof
|
|
953
|
-
item =
|
|
954
|
-
} else if (typeof
|
|
955
|
-
item = String(
|
|
952
|
+
if (typeof v6 === "string") {
|
|
953
|
+
item = v6;
|
|
954
|
+
} else if (typeof v6 === "number" || v6 instanceof String || v6 instanceof Number) {
|
|
955
|
+
item = String(v6);
|
|
956
956
|
}
|
|
957
957
|
if (item !== void 0 && propertyList.indexOf(item) < 0) {
|
|
958
958
|
propertyList.push(item);
|
|
@@ -1150,10 +1150,10 @@ var require_stringify = __commonJS({
|
|
|
1150
1150
|
var require_lib = __commonJS({
|
|
1151
1151
|
"../../node_modules/json5/lib/index.js"(exports2, module2) {
|
|
1152
1152
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1153
|
-
var
|
|
1153
|
+
var parse6 = require_parse();
|
|
1154
1154
|
var stringify = require_stringify();
|
|
1155
1155
|
var JSON52 = {
|
|
1156
|
-
parse:
|
|
1156
|
+
parse: parse6,
|
|
1157
1157
|
stringify
|
|
1158
1158
|
};
|
|
1159
1159
|
module2.exports = JSON52;
|
|
@@ -1790,6 +1790,7 @@ var import_node_crypto12 = require("node:crypto");
|
|
|
1790
1790
|
var import_node_fs25 = require("node:fs");
|
|
1791
1791
|
var import_node_os9 = __toESM(require("node:os"), 1);
|
|
1792
1792
|
var import_node_path25 = __toESM(require("node:path"), 1);
|
|
1793
|
+
var v5 = __toESM(require("valibot"), 1);
|
|
1793
1794
|
|
|
1794
1795
|
// src/admitted-mac-build.ts
|
|
1795
1796
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -4715,7 +4716,7 @@ function swiftToolchainBin(release) {
|
|
|
4715
4716
|
return (process.env.PATH ?? "").split(import_node_path4.default.delimiter).find((dir) => dir && import_node_fs6.default.existsSync(import_node_path4.default.join(dir, "swift"))) ?? image;
|
|
4716
4717
|
}
|
|
4717
4718
|
var SWIFT_AUTOLINK_LINKER = ".peach-wasm-ld";
|
|
4718
|
-
function writeSwiftAutolinkLinker(directory, toolchainBin) {
|
|
4719
|
+
function writeSwiftAutolinkLinker(directory, toolchainBin, omitLibraries = []) {
|
|
4719
4720
|
const linker = import_node_path4.default.join(directory, SWIFT_AUTOLINK_LINKER);
|
|
4720
4721
|
const script = `#!/bin/sh
|
|
4721
4722
|
set -eu
|
|
@@ -4723,7 +4724,7 @@ for arg in "$@"; do
|
|
|
4723
4724
|
case $arg in
|
|
4724
4725
|
@*)
|
|
4725
4726
|
rsp=\${arg#@}
|
|
4726
|
-
awk 'BEGIN { RS = " "; ORS = " " } /^"-l/ { if (seen[$0]++) next } { print }' "$rsp" > "$rsp.dedup"
|
|
4727
|
+
awk 'BEGIN { RS = " "; ORS = " " } /^"-l/ { if (seen[$0]++) next }${omitLibraries.map((name3) => ` $0 == "\\"-l${name3}\\"" { next }`).join("")} { print }' "$rsp" > "$rsp.dedup"
|
|
4727
4728
|
mv "$rsp.dedup" "$rsp"
|
|
4728
4729
|
if [ "\${PEACH_DEFER_WASM_LINK:-}" = "1" ] && grep -q '"--start-lib"' "$rsp"; then
|
|
4729
4730
|
cp "$rsp" ${JSON.stringify(import_node_path4.default.join(directory, ".peach-link.rsp"))}
|
|
@@ -12024,7 +12025,7 @@ function emitGuestImageProjection(images) {
|
|
|
12024
12025
|
lines.push("const struct peach_guest_image __peach_guest_images[] = {");
|
|
12025
12026
|
for (const [i, image] of images.entries()) {
|
|
12026
12027
|
const uuid = image.uuid.match(/../g).map((byte) => `0x${byte}`).join(", ");
|
|
12027
|
-
const version2 = (
|
|
12028
|
+
const version2 = (v6) => (v6.major * 65536 + v6.minor * 256 + v6.patch).toString();
|
|
12028
12029
|
lines.push(
|
|
12029
12030
|
` {${cString(image.installName)}, ${image.fileType === "executable" ? 2 : 6}u, {${uuid}}, ${image.buildVersion.platform}u, ${version2(image.buildVersion.minimum)}u, ${version2(image.buildVersion.sdk)}u, ${image.regions.length}u, ${image.regions.length ? `regions_${i}` : "0"}},`
|
|
12030
12031
|
);
|
|
@@ -13729,8 +13730,8 @@ function verifyGuestSymbolScopes(options) {
|
|
|
13729
13730
|
providers: /* @__PURE__ */ new Map(),
|
|
13730
13731
|
physicalModule: false
|
|
13731
13732
|
};
|
|
13732
|
-
if (object4 === "<internal>"
|
|
13733
|
-
record2.physicalModule = true;
|
|
13733
|
+
if (object4 === "<internal>") {
|
|
13734
|
+
if (kind === "definition of") record2.physicalModule = true;
|
|
13734
13735
|
} else {
|
|
13735
13736
|
const image = options.owners.get(object4);
|
|
13736
13737
|
if (image === void 0)
|
|
@@ -14672,9 +14673,14 @@ async function compileGuestLink(options) {
|
|
|
14672
14673
|
systemProviders,
|
|
14673
14674
|
hostImports: scope2.hostImports
|
|
14674
14675
|
});
|
|
14676
|
+
const wrapped = new Set(
|
|
14677
|
+
prepared.args.flatMap(
|
|
14678
|
+
(arg) => arg.startsWith("--wrap=") ? [arg.slice(7), `__wrap_${arg.slice(7)}`] : []
|
|
14679
|
+
)
|
|
14680
|
+
);
|
|
14675
14681
|
return {
|
|
14676
14682
|
...plan,
|
|
14677
|
-
symbols: scope2.definitions,
|
|
14683
|
+
symbols: scope2.definitions.filter((symbol2) => !wrapped.has(symbol2)),
|
|
14678
14684
|
directBindings: verified2.directBindings
|
|
14679
14685
|
};
|
|
14680
14686
|
}
|
|
@@ -16394,7 +16400,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
16394
16400
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
16395
16401
|
var MULTI_MANIFEST_VERSION = 66;
|
|
16396
16402
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
16397
|
-
var compilerSourceDigest = true ? "
|
|
16403
|
+
var compilerSourceDigest = true ? "8768dadacf2e909cf808df3a31fe261832d51fb29d48f2b45bd4df5c117c6f69" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
16398
16404
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
16399
16405
|
const hash = (0, import_node_crypto12.createHash)("sha256");
|
|
16400
16406
|
hash.update(`swift-compile
|
|
@@ -20419,7 +20425,17 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
20419
20425
|
report("framework revision changed; rebuilding the app link");
|
|
20420
20426
|
const nativeToolset = needsNativeToolset(input, prebuilt);
|
|
20421
20427
|
const preparation = writeSwiftProject(layout2, input, frameworkRoot, prebuilt);
|
|
20422
|
-
|
|
20428
|
+
const productFile = import_node_path25.default.join(frameworkRoot, SWIFT_FRAMEWORK_PRODUCT_FILE);
|
|
20429
|
+
writeSwiftAutolinkLinker(
|
|
20430
|
+
root,
|
|
20431
|
+
options.toolchainBin,
|
|
20432
|
+
(0, import_node_fs25.existsSync)(productFile) ? [
|
|
20433
|
+
v5.parse(
|
|
20434
|
+
swiftFrameworkProductSchema,
|
|
20435
|
+
JSON.parse((0, import_node_fs25.readFileSync)(productFile, "utf8"))
|
|
20436
|
+
).product.name
|
|
20437
|
+
] : []
|
|
20438
|
+
);
|
|
20423
20439
|
const projectProcess = options.project ? prepareSwiftProjectProcess(root, options.project) : void 0;
|
|
20424
20440
|
const appOptions = projectProcess ? {
|
|
20425
20441
|
...buildOptions,
|
|
@@ -29527,7 +29543,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
|
|
|
29527
29543
|
return hash.digest("hex");
|
|
29528
29544
|
}
|
|
29529
29545
|
var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
29530
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
29546
|
+
var STANDIN_SOURCE_DIGEST = true ? "ae26db314b6d3703c6fc172d019e3cb0fe28a018e5f614bb804fae720ab78ff8" : standinSourceDigest();
|
|
29531
29547
|
|
|
29532
29548
|
// src/swift-standins.ts
|
|
29533
29549
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1902 | (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.1902 | (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/kotlin/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# peachsim kotlin
|
|
2
2
|
|
|
3
3
|
The Android side of a One app's directly imported Kotlin in Peach. Owner spec:
|
|
4
|
-
[`specs/peach
|
|
4
|
+
[`specs/peach/kotlin.md`](../../../specs/peach/kotlin.md).
|
|
5
5
|
|
|
6
6
|
Kotlin and Compose must add zero bytes to a native-free baseline bundle. Compiler
|
|
7
7
|
hosts and plugins, runtime, libraries and mounts stay behind lazy entry points.
|
|
@@ -30,10 +30,10 @@ traffic in `scripts/debug/peach-swift-lazy-network.sh`.
|
|
|
30
30
|
`AppSources/` adds the activity and window implementation only pure Kotlin apps link.
|
|
31
31
|
- `ExpoSources/`: the expo-modules-core Kotlin DSL port and `PeachExpoRuntime`
|
|
32
32
|
that local Expo Android modules compile against. Owner spec:
|
|
33
|
-
[`specs/peach
|
|
33
|
+
[`specs/peach/kotlin/expo-modules.md`](../../../specs/peach/kotlin/expo-modules.md).
|
|
34
34
|
- `BridgeSources/`: React Native's legacy bridge classes, `PeachBridgeRuntime` and the Android,
|
|
35
35
|
androidx and Play services types an app's own `ReactPackage` Kotlin imports. Owner spec:
|
|
36
|
-
[`specs/peach
|
|
36
|
+
[`specs/peach/kotlin/bridge-modules.md`](../../../specs/peach/kotlin/bridge-modules.md).
|
|
37
37
|
- `CompilerSources/`: the native member compiler plugin and JVM service
|
|
38
38
|
registration. Release producers compile it to `plugin.jar`; clients load that
|
|
39
39
|
jar without compiling or receiving plugin source. `ToolSources/` builds
|
|
@@ -42,7 +42,7 @@ traffic in `scripts/debug/peach-swift-lazy-network.sh`.
|
|
|
42
42
|
native invocation runtime. Incoming JNI lookup retains stable IDs, private
|
|
43
43
|
and virtual calls, constructors and backing fields. Native static companion
|
|
44
44
|
calls preserve the enclosing JVM owner and null receiver. The
|
|
45
|
-
[binding contract](../../../docs/research/
|
|
45
|
+
[binding contract](../../../docs/peach/research/kotlin-native-bindings.md)
|
|
46
46
|
owns APIs, holder lifetime and unsupported forms.
|
|
47
47
|
|
|
48
48
|
`packages/peachsim/scripts/build-kotlin-sdk.ts` builds `sdk.tar.gz` from private
|
package/kotlin/sdk.tar.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -127,7 +127,7 @@ export function sfSymbolImageDimensions(
|
|
|
127
127
|
// uiimage's baseline above the image bottom and its cap height, in device
|
|
128
128
|
// pixels: each glyph metric rounds at the display scale, and the baseline
|
|
129
129
|
// rides on the bottom bearing
|
|
130
|
-
// (docs/ios
|
|
130
|
+
// (docs/ios/framework-oracle/sf-symbol-image-alignment-metrics-and-weight-scale-boundary-uikitcore-coreui.md)
|
|
131
131
|
export function sfSymbolImageAlignment(
|
|
132
132
|
drawing: SfSymbolImageMetadata,
|
|
133
133
|
pointSize: number,
|
package/src/bundle-channel.mjs
CHANGED
|
@@ -415,7 +415,7 @@ export async function snapshotDevServerBundles(
|
|
|
415
415
|
|
|
416
416
|
// a One app's production bundles. unminified, because the catalog recognises
|
|
417
417
|
// a module by the shape of its factory and only unminified output is
|
|
418
|
-
// deterministic (specs/
|
|
418
|
+
// deterministic (specs/peach/engine/one-updates.md).
|
|
419
419
|
export async function snapshotOneProductionBundle(
|
|
420
420
|
projectRoot,
|
|
421
421
|
entryFile,
|
package/src/config.ts
CHANGED
|
@@ -44,7 +44,7 @@ export type NativeStub = string
|
|
|
44
44
|
|
|
45
45
|
// what answers one Nitro HybridObject name: 'unsupported' (this Peach build
|
|
46
46
|
// registers no constructor) or a file whose default export is the factory for
|
|
47
|
-
// the object. 'noop' would invent a native object (specs/peach
|
|
47
|
+
// the object. 'noop' would invent a native object (specs/peach/app-stubs.md).
|
|
48
48
|
export type HybridObjectAnswer = 'unsupported' | { file: string }
|
|
49
49
|
|
|
50
50
|
function isHybridObjectAnswer(answer: unknown): answer is HybridObjectAnswer {
|
|
@@ -80,7 +80,7 @@ function isPackageHybridObjects(value: unknown): value is Record<string, string>
|
|
|
80
80
|
// the stubs for one package's native side, keyed by the names its JavaScript
|
|
81
81
|
// asks for. a whole-package 'noop' answers every name the installed package
|
|
82
82
|
// requests. the same shape is a published stub package's `peach` field
|
|
83
|
-
// (specs/peach
|
|
83
|
+
// (specs/peach/app-stubs.md).
|
|
84
84
|
export type PackageStubs =
|
|
85
85
|
| 'noop'
|
|
86
86
|
| {
|
package/src/device-catalog.ts
CHANGED
|
@@ -273,7 +273,7 @@ export interface DeviceSpec {
|
|
|
273
273
|
}
|
|
274
274
|
|
|
275
275
|
// the dynamic device's window limits, from the iOS 27.0 Stage Manager window
|
|
276
|
-
// on the iPad Pro 13-inch (M5), docs/ios
|
|
276
|
+
// on the iPad Pro 13-inch (M5), docs/ios/ipad-window-geometry.md: the smallest
|
|
277
277
|
// window is 375 x 486 and the largest the 1032 x 1376 display.
|
|
278
278
|
export const DYNAMIC_WINDOW_LIMITS = {
|
|
279
279
|
minWidth: 375,
|
|
@@ -349,7 +349,7 @@ function iosDevice(
|
|
|
349
349
|
const profile = {
|
|
350
350
|
// normal-scale dynamic split providers share this intrinsic height and
|
|
351
351
|
// linked-sdk whole-point rounding. safe areas are independent.
|
|
352
|
-
// source receipt: docs/ios
|
|
352
|
+
// source receipt: docs/ios/framework-oracle/status-bar-hit-region-and-scene-routing.md
|
|
353
353
|
statusBarHeight:
|
|
354
354
|
'statusBarHeight' in spec ? spec.statusBarHeight : Math.round(53.666666666666664),
|
|
355
355
|
scale: 3,
|
|
@@ -763,7 +763,7 @@ const profiles = {
|
|
|
763
763
|
safeAreaInsets: { top: 0, bottom: 34, left: 0, right: 84 },
|
|
764
764
|
iosVersion: '27.1',
|
|
765
765
|
// ios 27.1 24a94425: ordinary qwerty host (0,413,466,265)pt;
|
|
766
|
-
// docs/ios
|
|
766
|
+
// docs/ios/framework-oracle/keyboard-tray-accessibility-and-duo-recipes.md.
|
|
767
767
|
// the cover keyboard cells report number pad 269; emoji keeps 338.
|
|
768
768
|
keyboardPanelHeights: { qwerty: 265, pad: 269, emoji: 338 },
|
|
769
769
|
physicalPPI: 460,
|
|
@@ -808,7 +808,7 @@ const profiles = {
|
|
|
808
808
|
// an iPadOS app window the user resizes, on the iPad Pro 13-inch (M5). the
|
|
809
809
|
// profile is the launch window; the host sizes it with withWindowSize.
|
|
810
810
|
// numbers are the iOS 27.0 Stage Manager window in
|
|
811
|
-
// docs/ios
|
|
811
|
+
// docs/ios/ipad-window-geometry.md.
|
|
812
812
|
dynamic: {
|
|
813
813
|
.../* @__PURE__ */ ipadProDevice('dynamic', 'Dynamic Window', 375, 753, 13, 403),
|
|
814
814
|
// the window starts below the screen's status strip and no home indicator
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// a standard Expo app's native build from the prebuilt registry
|
|
2
|
-
// (specs/peach
|
|
2
|
+
// (specs/peach/swift/expo-native-compilation.md). preparing an Expo app's native
|
|
3
3
|
// workspace runs prebuild and pod install before the Expo Swift and TurboModule
|
|
4
4
|
// compilers can read it, which is most of a first open. our builder publishes
|
|
5
5
|
// both compilers' outputs for an app under a key of every native input, read
|
package/src/nitro-adapter.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// the app's own original headers, downloaded from the Swift distribution endpoint,
|
|
4
4
|
// verified against the lock this build carries, then checked against the
|
|
5
5
|
// compiler, SDK and framework the module root compiles with
|
|
6
|
-
// (docs/swift
|
|
6
|
+
// (docs/peach/swift/distribution.md). the adapter source never reaches this machine.
|
|
7
7
|
import { execFileSync, spawnSync } from 'node:child_process'
|
|
8
8
|
import fs from 'node:fs'
|
|
9
9
|
import path from 'node:path'
|
|
@@ -42,7 +42,7 @@ export interface NativeBackport {
|
|
|
42
42
|
|
|
43
43
|
// double-conversion 1.1.6's utils.h stops at an architecture allowlist with
|
|
44
44
|
// no wasm32 entry. the owner approved this one upstream target-recognition
|
|
45
|
-
// backport (specs/
|
|
45
|
+
// backport (specs/peach/engine/unistyles-native-boundary.md).
|
|
46
46
|
export const DOUBLE_CONVERSION_WASM32_BACKPORT: NativeBackport = {
|
|
47
47
|
upstreamCommit: '8857767d5b2f5a035321e3712e8cd0008840ba6b',
|
|
48
48
|
originalSha256: 'b495b11f7b61693486894f747add5b454894b8b3ca41aa1610d370ba16407ab7',
|
package/src/settingsContract.ts
CHANGED
|
@@ -210,7 +210,7 @@ export const settingsSchema: Record<SettingKey, SettingDef> = {
|
|
|
210
210
|
options: ['left', 'right'] as const,
|
|
211
211
|
group: 'device',
|
|
212
212
|
},
|
|
213
|
-
// an iPadOS window launches at 375 x 753 (docs/ios
|
|
213
|
+
// an iPadOS window launches at 375 x 753 (docs/ios/ipad-window-geometry.md)
|
|
214
214
|
dynamicWidth: {
|
|
215
215
|
type: 'number',
|
|
216
216
|
default: devices.dynamic.width,
|