peachsim 0.1.2180 → 0.1.2182
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/commands/shell-url.ts +28 -22
- 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 +141 -70
- 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 +68 -36
- 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 +106 -59
- package/dist-lib/host/fetch-proxy-handler.cjs +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +131 -67
- package/dist-lib/swift-compile.cjs +13 -4
- package/dist-lib/swift-compile.mjs +13 -4
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +2 -2
- package/dist-lib/swift-submit.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +15 -6
- package/dist-lib/vite.cjs +3 -3
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/map-command-channel.d.ts +14 -0
- package/package.json +1 -1
- package/src/expo-native-workspace.ts +17 -20
- package/src/expo-swift-bundle.ts +6 -1
- package/src/expo-swift-host.ts +35 -6
- package/src/expoSwiftContract.ts +3 -0
- package/src/native-bundles.ts +30 -10
- package/src/one-sdk/source.ts +10 -4
- package/src/one-sdk-bundle.ts +56 -24
- package/src/swift-compile.ts +3 -1
- package/src/swift-submit.ts +2 -1
- package/src/wasm-optimize.ts +11 -1
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2182 | (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;
|
|
@@ -30850,7 +30850,7 @@ var init_swift_submit = __esm({
|
|
|
30850
30850
|
MAX_SWIFT_COMPILE_IMAGES = 256;
|
|
30851
30851
|
MAX_SWIFT_COMPILE_IMAGE_BYTES = 4 * 1024 * 1024;
|
|
30852
30852
|
MAX_SWIFT_COMPILE_IMAGE_TOTAL_BYTES = 16 * 1024 * 1024;
|
|
30853
|
-
SWIFT_HOST_ABI =
|
|
30853
|
+
SWIFT_HOST_ABI = 70;
|
|
30854
30854
|
POLL_INTERVAL_MS = 1500;
|
|
30855
30855
|
}
|
|
30856
30856
|
});
|
|
@@ -51918,6 +51918,13 @@ var init_swift_guest_source_inputs = __esm({
|
|
|
51918
51918
|
|
|
51919
51919
|
// src/wasm-optimize.ts
|
|
51920
51920
|
async function runWasmOpt(file, output2, skipPasses, binary2) {
|
|
51921
|
+
const admittedCores = windowAdmission()?.cores ?? Number(process.env.TM_EXEC_CPU_CORES);
|
|
51922
|
+
const requestedCores = Number(process.env.BINARYEN_CORES);
|
|
51923
|
+
const environment = { ...process.env, WASM_OPT_PATH: binary2 };
|
|
51924
|
+
if (Number.isInteger(admittedCores) && admittedCores > 0)
|
|
51925
|
+
environment.BINARYEN_CORES = String(
|
|
51926
|
+
Number.isInteger(requestedCores) && requestedCores > 0 ? Math.min(admittedCores, requestedCores) : admittedCores
|
|
51927
|
+
);
|
|
51921
51928
|
const result = await (0, import_wasm_opt.wasmOpt)(
|
|
51922
51929
|
[
|
|
51923
51930
|
"-Oz",
|
|
@@ -51927,7 +51934,7 @@ async function runWasmOpt(file, output2, skipPasses, binary2) {
|
|
|
51927
51934
|
"-o",
|
|
51928
51935
|
output2
|
|
51929
51936
|
],
|
|
51930
|
-
{ env:
|
|
51937
|
+
{ env: environment }
|
|
51931
51938
|
);
|
|
51932
51939
|
if (result.status !== 0)
|
|
51933
51940
|
throw new Error(`wasm-opt exited ${result.status}: ${result.stderr}`);
|
|
@@ -51963,6 +51970,7 @@ var init_wasm_optimize = __esm({
|
|
|
51963
51970
|
import_node_path41 = require("node:path");
|
|
51964
51971
|
init_src();
|
|
51965
51972
|
import_wasm_opt = require("wasm-opt");
|
|
51973
|
+
init_admitted_mac_build();
|
|
51966
51974
|
init_home_paths();
|
|
51967
51975
|
FEATURES = [
|
|
51968
51976
|
"threads",
|
|
@@ -56705,7 +56713,7 @@ function readCompiledArtifact(directory2, hash) {
|
|
|
56705
56713
|
return null;
|
|
56706
56714
|
const bytes = (0, import_node_fs53.readFileSync)(import_node_path50.default.join(directory2, "app.wasm"));
|
|
56707
56715
|
const gzip2 = (0, import_node_fs53.readFileSync)(import_node_path50.default.join(directory2, "icu.gz"));
|
|
56708
|
-
if ((0, import_node_crypto25.createHash)("sha256").update(bytes).digest("hex") !== receipt.wasm || (0, import_node_crypto25.createHash)("sha256").update(gzip2).digest("hex") !== receipt.icu || bytes.length
|
|
56716
|
+
if ((0, import_node_crypto25.createHash)("sha256").update(bytes).digest("hex") !== receipt.wasm || (0, import_node_crypto25.createHash)("sha256").update(gzip2).digest("hex") !== receipt.icu || bytes.length <= 8 || bytes.readUInt32LE(0) !== 1836278016 || bytes.readUInt32LE(4) !== 1)
|
|
56709
56717
|
return null;
|
|
56710
56718
|
return { hash, bytes, icu: { sha256: receipt.icu, gzip: gzip2 } };
|
|
56711
56719
|
} catch (error) {
|
|
@@ -57758,6 +57766,8 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
57758
57766
|
bytes: (0, import_node_fs53.readFileSync)(executable),
|
|
57759
57767
|
icu: await icu
|
|
57760
57768
|
};
|
|
57769
|
+
if (artifact.bytes.length <= 8)
|
|
57770
|
+
throw new Error("swift-compile: deferred linker produced no executable");
|
|
57761
57771
|
if (!options.project) saveCompiledArtifact(root, artifact);
|
|
57762
57772
|
saveSharedArtifact(sharedRoot, artifact);
|
|
57763
57773
|
report("compiled artifact verified");
|
|
@@ -57937,7 +57947,7 @@ var init_swift_compile = __esm({
|
|
|
57937
57947
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
57938
57948
|
MULTI_MANIFEST_VERSION = 68;
|
|
57939
57949
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
57940
|
-
compilerSourceDigest = true ? "
|
|
57950
|
+
compilerSourceDigest = true ? "73960368f0b83cf042511655d857d5f64204fa539e2c984423a12c08657b068e" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
57941
57951
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
57942
57952
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
57943
57953
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -63786,6 +63796,7 @@ async function prepareWorkspace(app, stage, key2, podsEnvironment) {
|
|
|
63786
63796
|
const nodeVersion = typeof manifest.engines?.node === "string" && /^\d+(\.\d+){0,2}$/.test(manifest.engines.node) ? manifest.engines.node : null;
|
|
63787
63797
|
const prefix = nodeVersion ? ["mise", "exec", `node@${nodeVersion}`, "--"] : [];
|
|
63788
63798
|
const bunPrefix = import_node_path61.default.join(cacheDir(), "package-managers", manager);
|
|
63799
|
+
const bunExecutable = import_node_path61.default.join(bunPrefix, "node_modules/.bin/bun");
|
|
63789
63800
|
const install = manager === "pnpm" || manager.startsWith("pnpm@") ? [
|
|
63790
63801
|
"npx",
|
|
63791
63802
|
"--yes",
|
|
@@ -63794,11 +63805,7 @@ async function prepareWorkspace(app, stage, key2, podsEnvironment) {
|
|
|
63794
63805
|
"--frozen-lockfile",
|
|
63795
63806
|
// the copied node_modules link into the store pnpm chose on the app's volume
|
|
63796
63807
|
...pnpmStoreArgs(root)
|
|
63797
|
-
] : manager === "yarn" || manager.startsWith("yarn@") ? ["corepack", "yarn", "install", "--immutable"] : manager === "bun" || manager.startsWith("bun@") ? manager === "bun" ? ["bun", "install", "--frozen-lockfile"] : [
|
|
63798
|
-
import_node_path61.default.join(bunPrefix, "node_modules/.bin/bun"),
|
|
63799
|
-
"install",
|
|
63800
|
-
"--frozen-lockfile"
|
|
63801
|
-
] : (
|
|
63808
|
+
] : manager === "yarn" || manager.startsWith("yarn@") ? ["corepack", "yarn", "install", "--immutable"] : manager === "bun" || manager.startsWith("bun@") ? manager === "bun" ? ["bun", "install", "--frozen-lockfile"] : [bunExecutable, "install", "--frozen-lockfile"] : (
|
|
63802
63809
|
// npm ci would delete the cloned tree before installing it again
|
|
63803
63810
|
["npm", "install", "--no-audit", "--no-fund"]
|
|
63804
63811
|
);
|
|
@@ -63807,22 +63814,22 @@ async function prepareWorkspace(app, stage, key2, podsEnvironment) {
|
|
|
63807
63814
|
const command = [...prefix, ...args];
|
|
63808
63815
|
await run12(command[0], command.slice(1), cwd, env);
|
|
63809
63816
|
};
|
|
63817
|
+
if (manager.startsWith("bun@") && (!projectReady || !import_node_fs63.default.existsSync(bunExecutable)))
|
|
63818
|
+
await execute(
|
|
63819
|
+
[
|
|
63820
|
+
"npm",
|
|
63821
|
+
"install",
|
|
63822
|
+
"--prefix",
|
|
63823
|
+
bunPrefix,
|
|
63824
|
+
// the bun package ships a placeholder binary its postinstall replaces
|
|
63825
|
+
"--ignore-scripts=false",
|
|
63826
|
+
"--no-audit",
|
|
63827
|
+
"--no-fund",
|
|
63828
|
+
manager
|
|
63829
|
+
],
|
|
63830
|
+
work
|
|
63831
|
+
);
|
|
63810
63832
|
if (!projectReady) {
|
|
63811
|
-
if (manager.startsWith("bun@"))
|
|
63812
|
-
await execute(
|
|
63813
|
-
[
|
|
63814
|
-
"npm",
|
|
63815
|
-
"install",
|
|
63816
|
-
"--prefix",
|
|
63817
|
-
bunPrefix,
|
|
63818
|
-
// the bun package ships a placeholder binary its postinstall replaces
|
|
63819
|
-
"--ignore-scripts=false",
|
|
63820
|
-
"--no-audit",
|
|
63821
|
-
"--no-fund",
|
|
63822
|
-
manager
|
|
63823
|
-
],
|
|
63824
|
-
work
|
|
63825
|
-
);
|
|
63826
63833
|
if (install[0] === "npm" && import_node_fs63.default.existsSync(import_node_path61.default.join(work, "package-lock.json"))) {
|
|
63827
63834
|
await execute(
|
|
63828
63835
|
["npm", "ci", "--dry-run", "--ignore-scripts", "--no-audit", "--no-fund"],
|
|
@@ -64506,7 +64513,7 @@ var init_swift_standin_digest = __esm({
|
|
|
64506
64513
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
64507
64514
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
64508
64515
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
64509
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
64516
|
+
STANDIN_SOURCE_DIGEST = true ? "cc396d180b261e922288f645807b4a704fa92410ffc902bfbaac72b81af6413a" : standinSourceDigest();
|
|
64510
64517
|
}
|
|
64511
64518
|
});
|
|
64512
64519
|
|
|
@@ -64962,7 +64969,7 @@ var init_package_tree_digest = __esm({
|
|
|
64962
64969
|
|
|
64963
64970
|
// src/expo-native-prebuilt.ts
|
|
64964
64971
|
function expoNativeCompilerDigestValue() {
|
|
64965
|
-
return true ? "
|
|
64972
|
+
return true ? "2799fbdcc514ac59227047679bf5780658834c45f46965b7b41455f6453d53e2" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
64966
64973
|
}
|
|
64967
64974
|
function readSources(value) {
|
|
64968
64975
|
const sources = isRecord(value) ? value.sources : null;
|
|
@@ -82038,7 +82045,15 @@ function targetSettings2(units) {
|
|
|
82038
82045
|
}
|
|
82039
82046
|
return settings;
|
|
82040
82047
|
}
|
|
82041
|
-
function
|
|
82048
|
+
function oneSDKStamp(oneSDK) {
|
|
82049
|
+
if (!oneSDK) return "";
|
|
82050
|
+
const hash = (0, import_node_crypto49.createHash)("sha256");
|
|
82051
|
+
for (const files2 of [oneSDK.targets, oneSDK.entry])
|
|
82052
|
+
for (const [name3, source] of [...files2].sort(([a], [b]) => a.localeCompare(b)))
|
|
82053
|
+
hash.update(`${name3}\0${source}\0`);
|
|
82054
|
+
return hash.digest("hex");
|
|
82055
|
+
}
|
|
82056
|
+
function expoEntry(units, oneSDK = false) {
|
|
82042
82057
|
const namespaces = [...new Set(units.map((unit2) => unit2.namespace))].filter((namespace) => namespace !== "PeachExpoApp").filter(
|
|
82043
82058
|
(namespace) => units.some(
|
|
82044
82059
|
(unit2) => Object.keys(unit2.files).some((file) => file.startsWith(`Sources/${namespace}/`))
|
|
@@ -82048,13 +82063,14 @@ function expoEntry(units) {
|
|
|
82048
82063
|
const subscribers = units.flatMap((unit2) => unit2.appDelegateSubscribers);
|
|
82049
82064
|
const handlers = units.flatMap((unit2) => unit2.reactDelegateHandlers);
|
|
82050
82065
|
const delegates = subscribers.length + handlers.length > 0 ? `; PeachExpoRuntime.registerDelegates(subscribers: [${subscribers.join(", ")}], handlers: [${handlers.join(", ")}])` : "";
|
|
82066
|
+
const view = oneSDK ? '@ViewBuilder func view(props: JSON) -> some View {\n if props["oneSDKHost"] != nil { OneSDKUIKitHost(props: props) } else { PeachExpoNativeView(props: props) }\n }' : "func view(props: JSON) -> PeachExpoNativeView { PeachExpoNativeView(props: props) }";
|
|
82051
82067
|
return `import SwiftUI
|
|
82052
82068
|
internal import ExpoModulesCore
|
|
82053
|
-
${bridgeModules.length ? "import React\n" : ""}${namespaces.map((namespace) => `import ${namespace}`).join("\n")}
|
|
82069
|
+
${bridgeModules.length ? "import React\n" : ""}${oneSDK ? "import One\nimport OneSDKBindings\n" : ""}${namespaces.map((namespace) => `import ${namespace}`).join("\n")}
|
|
82054
82070
|
|
|
82055
82071
|
@main struct PeachExpoApp: PeachPackage {
|
|
82056
82072
|
init() { MainActor.assumeIsolated { PeachExpoRuntime.register([${units.flatMap((unit2) => unit2.classes).join(", ")}])${delegates}${bridgeModules.length ? `; RCTModuleHost.register([${bridgeModules.join(", ")}])` : ""} } }
|
|
82057
|
-
|
|
82073
|
+
${view}
|
|
82058
82074
|
}
|
|
82059
82075
|
|
|
82060
82076
|
@_expose(wasm, "peach_expo_call")
|
|
@@ -82146,7 +82162,7 @@ async function compileExpoSwiftModules(root, base, publishArtifact, options = {}
|
|
|
82146
82162
|
installSwiftInputTrace();
|
|
82147
82163
|
let key2;
|
|
82148
82164
|
try {
|
|
82149
|
-
key2 = `${await discoveryKey(root, options.installedWorkspace, true, options.iosTarget, options.moduleRoot)}\0${options.only?.join(",") ?? ""}`;
|
|
82165
|
+
key2 = `${await discoveryKey(root, options.installedWorkspace, true, options.iosTarget, options.moduleRoot)}\0${options.only?.join(",") ?? ""}\0${oneSDKStamp(options.oneSDK)}`;
|
|
82150
82166
|
} catch {
|
|
82151
82167
|
return compileExpoSwiftModulesTraced(root, base, publishArtifact, options);
|
|
82152
82168
|
}
|
|
@@ -82183,11 +82199,23 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
|
|
|
82183
82199
|
throw new Error(`conflicting Expo Swift binary source ${name3}`);
|
|
82184
82200
|
files2[name3] = source;
|
|
82185
82201
|
}
|
|
82186
|
-
|
|
82202
|
+
const settings = targetSettings2(linked2);
|
|
82203
|
+
if (options.oneSDK) {
|
|
82204
|
+
for (const [name3, source] of options.oneSDK.targets) files2[name3] = source;
|
|
82205
|
+
for (const [name3, source] of options.oneSDK.entry)
|
|
82206
|
+
files2[`Sources/PeachExpoApp/${name3}`] = source;
|
|
82207
|
+
settings.set("OneSDKBindings", {
|
|
82208
|
+
languageMode: 5,
|
|
82209
|
+
mainActorIsolation: false,
|
|
82210
|
+
swiftFlags: ["-suppress-warnings"],
|
|
82211
|
+
dependencies: [{ kind: "target", name: "One" }]
|
|
82212
|
+
});
|
|
82213
|
+
}
|
|
82214
|
+
files2[EXPO_SWIFT_ENTRY] = expoEntry(linked2, options.oneSDK !== void 0);
|
|
82187
82215
|
files2["Package.swift"] = expoManifest(
|
|
82188
82216
|
files2,
|
|
82189
82217
|
linked2.map((unit2) => generations.get(unit2) ?? "").join(","),
|
|
82190
|
-
|
|
82218
|
+
settings
|
|
82191
82219
|
);
|
|
82192
82220
|
const provider = linked2.some((unit2) => unit2.reactNativeProvider) ? reactProvider : void 0;
|
|
82193
82221
|
if (provider) {
|
|
@@ -82548,7 +82576,11 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
|
|
|
82548
82576
|
stamps.set(unit2, stamp);
|
|
82549
82577
|
candidates.push(unit2);
|
|
82550
82578
|
}
|
|
82551
|
-
const preparedKey = expoSwiftPreparedKey(
|
|
82579
|
+
const preparedKey = expoSwiftPreparedKey(
|
|
82580
|
+
base,
|
|
82581
|
+
units,
|
|
82582
|
+
reactProviderStamp + oneSDKStamp(options.oneSDK)
|
|
82583
|
+
);
|
|
82552
82584
|
if (!publishArtifact) {
|
|
82553
82585
|
const prepared = preparedExpoSwift.get(preparedKey);
|
|
82554
82586
|
if (prepared) {
|
|
@@ -84647,7 +84679,7 @@ var init_nitro_superset = __esm({
|
|
|
84647
84679
|
init_nitroContract();
|
|
84648
84680
|
init_swift_standin_digest();
|
|
84649
84681
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
84650
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
84682
|
+
NITRO_COMPILER_DIGEST = true ? "4b0c1069391aa3533d7f86ec0218e3db332433aaaa017425707f0273d51d8ce5" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
84651
84683
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
84652
84684
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
84653
84685
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -84888,7 +84920,7 @@ var init_expo_widgets_bundle = __esm({
|
|
|
84888
84920
|
});
|
|
84889
84921
|
|
|
84890
84922
|
// src/one-sdk/source.ts
|
|
84891
|
-
var oneSDKModule, oneSDKApp, oneSDKTransport;
|
|
84923
|
+
var oneSDKModule, oneSDKHost, oneSDKApp, oneSDKTransport;
|
|
84892
84924
|
var init_source = __esm({
|
|
84893
84925
|
"src/one-sdk/source.ts"() {
|
|
84894
84926
|
"use strict";
|
|
@@ -84924,12 +84956,11 @@ extension OneNativeComposable {
|
|
|
84924
84956
|
public func propagateActive(_ active: Bool) {}
|
|
84925
84957
|
}
|
|
84926
84958
|
`;
|
|
84927
|
-
|
|
84959
|
+
oneSDKHost = String.raw`import SwiftUI
|
|
84928
84960
|
@_spi(Peach) import UIKit
|
|
84929
84961
|
import One
|
|
84930
|
-
import OneSDKBindings
|
|
84931
84962
|
|
|
84932
|
-
|
|
84963
|
+
struct OneSDKUIKitHost: UIViewRepresentable {
|
|
84933
84964
|
let props: JSON
|
|
84934
84965
|
func makeUIView(context: Context) -> OneNativeUIKitHostView { OneNativeUIKitHostView() }
|
|
84935
84966
|
func updateUIView(_ view: OneNativeUIKitHostView, context: Context) {
|
|
@@ -84941,10 +84972,14 @@ private struct UIKitHost: UIViewRepresentable {
|
|
|
84941
84972
|
}
|
|
84942
84973
|
static func dismantleUIView(_ view: OneNativeUIKitHostView, coordinator: Coordinator) { view.reset() }
|
|
84943
84974
|
}
|
|
84975
|
+
`;
|
|
84976
|
+
oneSDKApp = String.raw`import SwiftUI
|
|
84977
|
+
import One
|
|
84978
|
+
import OneSDKBindings
|
|
84944
84979
|
|
|
84945
84980
|
@main
|
|
84946
84981
|
struct SDKGuest: PeachPackage {
|
|
84947
|
-
func view(props: JSON) -> some View {
|
|
84982
|
+
func view(props: JSON) -> some View { OneSDKUIKitHost(props: props) }
|
|
84948
84983
|
}
|
|
84949
84984
|
`;
|
|
84950
84985
|
oneSDKTransport = String.raw`import Foundation
|
|
@@ -85242,7 +85277,7 @@ async function compileOneSDKApp(appRoot, origin, moduleRootOverride) {
|
|
|
85242
85277
|
const prepared = await prepareExpoNativeProject(appRoot);
|
|
85243
85278
|
return compilePreparedOneSDKApp(appRoot, prepared.app, origin, moduleRootOverride);
|
|
85244
85279
|
}
|
|
85245
|
-
async function
|
|
85280
|
+
async function oneSDKLinkSources(appRoot, preparedRoot) {
|
|
85246
85281
|
const selected = await selectOneSDK(appRoot);
|
|
85247
85282
|
if (!selected) throw new Error("prepared app has no One SDK imports");
|
|
85248
85283
|
const { one, frameworks } = selected;
|
|
@@ -85257,6 +85292,35 @@ async function compilePreparedOneSDKApp(appRoot, preparedRoot, origin, moduleRoo
|
|
|
85257
85292
|
throw new Error(
|
|
85258
85293
|
"prepared One SDK sources differ from the installed facades or app imports"
|
|
85259
85294
|
);
|
|
85295
|
+
const targets = /* @__PURE__ */ new Map();
|
|
85296
|
+
targets.set("Sources/One/One.swift", oneSDKModule);
|
|
85297
|
+
for (const source of [
|
|
85298
|
+
"SDK/OneSDKRuntime.swift",
|
|
85299
|
+
"OneNativeUIKitHostView.swift",
|
|
85300
|
+
"OneNativeContent.swift",
|
|
85301
|
+
"OneNativeAccessibility.swift",
|
|
85302
|
+
"SDKViews/OneNativeViewsTable.swift"
|
|
85303
|
+
])
|
|
85304
|
+
targets.set(
|
|
85305
|
+
`Sources/One/${import_node_path99.default.basename(source)}`,
|
|
85306
|
+
import_node_fs100.default.readFileSync(import_node_path99.default.join(one, "ios", source), "utf8")
|
|
85307
|
+
);
|
|
85308
|
+
for (const name3 of generated.files)
|
|
85309
|
+
targets.set(
|
|
85310
|
+
`Sources/OneSDKBindings/${name3}`,
|
|
85311
|
+
import_node_fs100.default.readFileSync(import_node_path99.default.join(sourceRoot, name3), "utf8")
|
|
85312
|
+
);
|
|
85313
|
+
return {
|
|
85314
|
+
targets,
|
|
85315
|
+
entry: /* @__PURE__ */ new Map([
|
|
85316
|
+
["OneSDKHost.swift", oneSDKHost],
|
|
85317
|
+
["OneSDKTransport.swift", oneSDKTransport]
|
|
85318
|
+
]),
|
|
85319
|
+
modules: frameworks.map((name3) => `${name3}_${generated.generation}`)
|
|
85320
|
+
};
|
|
85321
|
+
}
|
|
85322
|
+
async function compilePreparedOneSDKApp(appRoot, preparedRoot, origin, moduleRootOverride) {
|
|
85323
|
+
const sources = await oneSDKLinkSources(appRoot, preparedRoot);
|
|
85260
85324
|
const moduleRoot = moduleRootOverride ?? (await resolveSwiftModule()).root;
|
|
85261
85325
|
const packagePath = import_node_path99.default.join(
|
|
85262
85326
|
swiftCacheDir(),
|
|
@@ -85276,25 +85340,9 @@ let package = Package(name: "OneSDKGuest", targets: [
|
|
|
85276
85340
|
])
|
|
85277
85341
|
`
|
|
85278
85342
|
);
|
|
85279
|
-
files2.set(
|
|
85280
|
-
for (const source of
|
|
85281
|
-
"SDK/OneSDKRuntime.swift",
|
|
85282
|
-
"OneNativeUIKitHostView.swift",
|
|
85283
|
-
"OneNativeContent.swift",
|
|
85284
|
-
"OneNativeAccessibility.swift",
|
|
85285
|
-
"SDKViews/OneNativeViewsTable.swift"
|
|
85286
|
-
])
|
|
85287
|
-
files2.set(
|
|
85288
|
-
`Sources/One/${import_node_path99.default.basename(source)}`,
|
|
85289
|
-
import_node_fs100.default.readFileSync(import_node_path99.default.join(one, "ios", source), "utf8")
|
|
85290
|
-
);
|
|
85291
|
-
for (const name3 of generated.files)
|
|
85292
|
-
files2.set(
|
|
85293
|
-
`Sources/OneSDKBindings/${name3}`,
|
|
85294
|
-
import_node_fs100.default.readFileSync(import_node_path99.default.join(sourceRoot, name3), "utf8")
|
|
85295
|
-
);
|
|
85343
|
+
for (const [name3, source] of sources.targets) files2.set(name3, source);
|
|
85344
|
+
for (const [name3, source] of sources.entry) files2.set(`Sources/App/${name3}`, source);
|
|
85296
85345
|
files2.set("Sources/App/App.swift", oneSDKApp);
|
|
85297
|
-
files2.set("Sources/App/Transport.swift", oneSDKTransport);
|
|
85298
85346
|
import_node_fs100.default.mkdirSync(packagePath, { recursive: true });
|
|
85299
85347
|
syncSwiftTree(
|
|
85300
85348
|
packagePath,
|
|
@@ -85310,7 +85358,7 @@ let package = Package(name: "OneSDKGuest", targets: [
|
|
|
85310
85358
|
icuUrl: icuUrl(origin, artifact),
|
|
85311
85359
|
rootId: `one-sdk-${artifact.hash.slice(0, 16)}`,
|
|
85312
85360
|
bundleFiles: artifact.package.bundleFiles.files,
|
|
85313
|
-
modules:
|
|
85361
|
+
modules: sources.modules
|
|
85314
85362
|
};
|
|
85315
85363
|
return { metadata, artifact };
|
|
85316
85364
|
}
|
|
@@ -113271,6 +113319,17 @@ function bundleUrlOf(urlStr) {
|
|
|
113271
113319
|
}
|
|
113272
113320
|
async function buildShellUrl(target, baseUrl = resolveDefaultShellBaseUrl(), opts = {}) {
|
|
113273
113321
|
const resolved = await resolveShellUrl(target, baseUrl, opts);
|
|
113322
|
+
const supplied = new URL(resolved);
|
|
113323
|
+
if (!opts.project && looksLikeSootsimUrl(target) && [
|
|
113324
|
+
LAUNCH_METADATA_QUERY_PARAM,
|
|
113325
|
+
"oneSDK",
|
|
113326
|
+
"expoSwift",
|
|
113327
|
+
"expoWidgets",
|
|
113328
|
+
"nitro",
|
|
113329
|
+
"turbo",
|
|
113330
|
+
"expoKotlin"
|
|
113331
|
+
].some((key2) => supplied.searchParams.has(key2)))
|
|
113332
|
+
return applyShellLaunchOptions(supplied, opts).toString();
|
|
113274
113333
|
const project2 = opts.offline ? opts.project : opts.project ?? await resolveAppProjectForBundleUrl(bundleUrlOf(resolved));
|
|
113275
113334
|
const expoRoot = project2?.appDir ?? null;
|
|
113276
113335
|
const world = resolveBridgeWorld();
|
|
@@ -113380,9 +113439,6 @@ async function buildShellUrl(target, baseUrl = resolveDefaultShellBaseUrl(), opt
|
|
|
113380
113439
|
const manifest = "config" in expoConfigRead ? stageBuiltBundleManifest(stampedBundle, expoConfigRead.config) : null;
|
|
113381
113440
|
if (manifest) expoStamped.searchParams.set("appManifest", manifest);
|
|
113382
113441
|
}
|
|
113383
|
-
if (opts.bundleOriginOverride)
|
|
113384
|
-
expoStamped.searchParams.set("bundleOriginOverride", opts.bundleOriginOverride);
|
|
113385
|
-
if (opts.hostDriver) expoStamped.searchParams.set("peachHostDriver", opts.hostDriver);
|
|
113386
113442
|
if (expoRoot && !opts.offline) {
|
|
113387
113443
|
if (packageVersions?.["expo-widgets"])
|
|
113388
113444
|
expoStamped.searchParams.set(
|
|
@@ -113411,9 +113467,16 @@ async function buildShellUrl(target, baseUrl = resolveDefaultShellBaseUrl(), opt
|
|
|
113411
113467
|
`${nativeAssetOrigin}/__peach/expo-kotlin?root=${encodeURIComponent(expoRoot)}`
|
|
113412
113468
|
);
|
|
113413
113469
|
}
|
|
113414
|
-
|
|
113415
|
-
|
|
113416
|
-
|
|
113470
|
+
const url = applyShellLaunchOptions(expoStamped, opts);
|
|
113471
|
+
return opts.offline ? url.toString() : stageHostLaunchMetadata(url, nativeAssetOrigin);
|
|
113472
|
+
}
|
|
113473
|
+
function applyShellLaunchOptions(url, opts) {
|
|
113474
|
+
const bundle = url.searchParams.get("bundle");
|
|
113475
|
+
if (bundle && opts.hot !== void 0)
|
|
113476
|
+
url.searchParams.set("bundle", applyHotMode(bundle, opts.hot));
|
|
113477
|
+
if (opts.bundleOriginOverride)
|
|
113478
|
+
url.searchParams.set("bundleOriginOverride", opts.bundleOriginOverride);
|
|
113479
|
+
if (opts.hostDriver) url.searchParams.set("peachHostDriver", opts.hostDriver);
|
|
113417
113480
|
if (opts.dotEnv) url.searchParams.set("dotEnv", JSON.stringify(opts.dotEnv));
|
|
113418
113481
|
if (opts.device) url.searchParams.set("device", opts.device);
|
|
113419
113482
|
if (opts.posture) url.searchParams.set("posture", opts.posture);
|
|
@@ -113433,7 +113496,7 @@ async function buildShellUrl(target, baseUrl = resolveDefaultShellBaseUrl(), opt
|
|
|
113433
113496
|
if (opts.ephemeral) url.searchParams.set("ephemeral", "1");
|
|
113434
113497
|
for (const entry of opts.env ?? []) url.searchParams.append("env", entry);
|
|
113435
113498
|
for (const entry of opts.args ?? []) url.searchParams.append("arg", entry);
|
|
113436
|
-
return
|
|
113499
|
+
return url;
|
|
113437
113500
|
}
|
|
113438
113501
|
var import_node_fs134, import_node_os24, import_node_path136, SHELL_APPS, DEV_BUNDLE_RESOLVE_ATTEMPTS, DEV_BUNDLE_RESOLVE_INTERVAL_MS, startedExpoConfigReads;
|
|
113439
113502
|
var init_shell_url = __esm({
|
|
@@ -113456,6 +113519,7 @@ var init_shell_url = __esm({
|
|
|
113456
113519
|
init_loopback_ports();
|
|
113457
113520
|
init_staged_host_files();
|
|
113458
113521
|
init_installed_package_versions();
|
|
113522
|
+
init_launchMetadataContract();
|
|
113459
113523
|
init_metro_project_root();
|
|
113460
113524
|
init_native_app_identity();
|
|
113461
113525
|
init_native_app_identity_project();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2182 | (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;
|
|
@@ -10246,6 +10246,13 @@ var BINARYEN_RELEASES = /* @__PURE__ */ new Map([
|
|
|
10246
10246
|
]
|
|
10247
10247
|
]);
|
|
10248
10248
|
async function runWasmOpt(file, output, skipPasses, binary) {
|
|
10249
|
+
const admittedCores = windowAdmission()?.cores ?? Number(process.env.TM_EXEC_CPU_CORES);
|
|
10250
|
+
const requestedCores = Number(process.env.BINARYEN_CORES);
|
|
10251
|
+
const environment = { ...process.env, WASM_OPT_PATH: binary };
|
|
10252
|
+
if (Number.isInteger(admittedCores) && admittedCores > 0)
|
|
10253
|
+
environment.BINARYEN_CORES = String(
|
|
10254
|
+
Number.isInteger(requestedCores) && requestedCores > 0 ? Math.min(admittedCores, requestedCores) : admittedCores
|
|
10255
|
+
);
|
|
10249
10256
|
const result = await (0, import_wasm_opt.wasmOpt)(
|
|
10250
10257
|
[
|
|
10251
10258
|
"-Oz",
|
|
@@ -10255,7 +10262,7 @@ async function runWasmOpt(file, output, skipPasses, binary) {
|
|
|
10255
10262
|
"-o",
|
|
10256
10263
|
output
|
|
10257
10264
|
],
|
|
10258
|
-
{ env:
|
|
10265
|
+
{ env: environment }
|
|
10259
10266
|
);
|
|
10260
10267
|
if (result.status !== 0)
|
|
10261
10268
|
throw new Error(`wasm-opt exited ${result.status}: ${result.stderr}`);
|
|
@@ -12467,7 +12474,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
12467
12474
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
12468
12475
|
var MULTI_MANIFEST_VERSION = 68;
|
|
12469
12476
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
12470
|
-
var compilerSourceDigest = true ? "
|
|
12477
|
+
var compilerSourceDigest = true ? "73960368f0b83cf042511655d857d5f64204fa539e2c984423a12c08657b068e" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
12471
12478
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
12472
12479
|
const hash = (0, import_node_crypto13.createHash)("sha256");
|
|
12473
12480
|
hash.update(`swift-compile
|
|
@@ -15864,7 +15871,7 @@ function readCompiledArtifact(directory, hash) {
|
|
|
15864
15871
|
return null;
|
|
15865
15872
|
const bytes = (0, import_node_fs25.readFileSync)(import_node_path27.default.join(directory, "app.wasm"));
|
|
15866
15873
|
const gzip2 = (0, import_node_fs25.readFileSync)(import_node_path27.default.join(directory, "icu.gz"));
|
|
15867
|
-
if ((0, import_node_crypto13.createHash)("sha256").update(bytes).digest("hex") !== receipt.wasm || (0, import_node_crypto13.createHash)("sha256").update(gzip2).digest("hex") !== receipt.icu || bytes.length
|
|
15874
|
+
if ((0, import_node_crypto13.createHash)("sha256").update(bytes).digest("hex") !== receipt.wasm || (0, import_node_crypto13.createHash)("sha256").update(gzip2).digest("hex") !== receipt.icu || bytes.length <= 8 || bytes.readUInt32LE(0) !== 1836278016 || bytes.readUInt32LE(4) !== 1)
|
|
15868
15875
|
return null;
|
|
15869
15876
|
return { hash, bytes, icu: { sha256: receipt.icu, gzip: gzip2 } };
|
|
15870
15877
|
} catch (error) {
|
|
@@ -16926,6 +16933,8 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
16926
16933
|
bytes: (0, import_node_fs25.readFileSync)(executable),
|
|
16927
16934
|
icu: await icu
|
|
16928
16935
|
};
|
|
16936
|
+
if (artifact.bytes.length <= 8)
|
|
16937
|
+
throw new Error("swift-compile: deferred linker produced no executable");
|
|
16929
16938
|
if (!options.project) saveCompiledArtifact(root, artifact);
|
|
16930
16939
|
saveSharedArtifact(sharedRoot, artifact);
|
|
16931
16940
|
report("compiled artifact verified");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2182 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/swift-compile.ts
|
|
4
4
|
import {
|
|
@@ -10202,6 +10202,13 @@ var BINARYEN_RELEASES = /* @__PURE__ */ new Map([
|
|
|
10202
10202
|
]
|
|
10203
10203
|
]);
|
|
10204
10204
|
async function runWasmOpt(file, output, skipPasses, binary) {
|
|
10205
|
+
const admittedCores = windowAdmission()?.cores ?? Number(process.env.TM_EXEC_CPU_CORES);
|
|
10206
|
+
const requestedCores = Number(process.env.BINARYEN_CORES);
|
|
10207
|
+
const environment = { ...process.env, WASM_OPT_PATH: binary };
|
|
10208
|
+
if (Number.isInteger(admittedCores) && admittedCores > 0)
|
|
10209
|
+
environment.BINARYEN_CORES = String(
|
|
10210
|
+
Number.isInteger(requestedCores) && requestedCores > 0 ? Math.min(admittedCores, requestedCores) : admittedCores
|
|
10211
|
+
);
|
|
10205
10212
|
const result = await wasmOpt(
|
|
10206
10213
|
[
|
|
10207
10214
|
"-Oz",
|
|
@@ -10211,7 +10218,7 @@ async function runWasmOpt(file, output, skipPasses, binary) {
|
|
|
10211
10218
|
"-o",
|
|
10212
10219
|
output
|
|
10213
10220
|
],
|
|
10214
|
-
{ env:
|
|
10221
|
+
{ env: environment }
|
|
10215
10222
|
);
|
|
10216
10223
|
if (result.status !== 0)
|
|
10217
10224
|
throw new Error(`wasm-opt exited ${result.status}: ${result.stderr}`);
|
|
@@ -12447,7 +12454,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
12447
12454
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
12448
12455
|
var MULTI_MANIFEST_VERSION = 68;
|
|
12449
12456
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
12450
|
-
var compilerSourceDigest = true ? "
|
|
12457
|
+
var compilerSourceDigest = true ? "73960368f0b83cf042511655d857d5f64204fa539e2c984423a12c08657b068e" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
12451
12458
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
12452
12459
|
const hash = createHash13("sha256");
|
|
12453
12460
|
hash.update(`swift-compile
|
|
@@ -15844,7 +15851,7 @@ function readCompiledArtifact(directory, hash) {
|
|
|
15844
15851
|
return null;
|
|
15845
15852
|
const bytes = readFileSync16(path27.join(directory, "app.wasm"));
|
|
15846
15853
|
const gzip2 = readFileSync16(path27.join(directory, "icu.gz"));
|
|
15847
|
-
if (createHash13("sha256").update(bytes).digest("hex") !== receipt.wasm || createHash13("sha256").update(gzip2).digest("hex") !== receipt.icu || bytes.length
|
|
15854
|
+
if (createHash13("sha256").update(bytes).digest("hex") !== receipt.wasm || createHash13("sha256").update(gzip2).digest("hex") !== receipt.icu || bytes.length <= 8 || bytes.readUInt32LE(0) !== 1836278016 || bytes.readUInt32LE(4) !== 1)
|
|
15848
15855
|
return null;
|
|
15849
15856
|
return { hash, bytes, icu: { sha256: receipt.icu, gzip: gzip2 } };
|
|
15850
15857
|
} catch (error) {
|
|
@@ -16906,6 +16913,8 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
16906
16913
|
bytes: readFileSync16(executable),
|
|
16907
16914
|
icu: await icu
|
|
16908
16915
|
};
|
|
16916
|
+
if (artifact.bytes.length <= 8)
|
|
16917
|
+
throw new Error("swift-compile: deferred linker produced no executable");
|
|
16909
16918
|
if (!options.project) saveCompiledArtifact(root, artifact);
|
|
16910
16919
|
saveSharedArtifact(sharedRoot, artifact);
|
|
16911
16920
|
report("compiled artifact verified");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2182 | (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.2182 | (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;
|
|
@@ -86,7 +86,7 @@ var MAX_SWIFT_COMPILE_METAL_TOTAL_BYTES = 8 * 1024 * 1024;
|
|
|
86
86
|
var MAX_SWIFT_COMPILE_IMAGES = 256;
|
|
87
87
|
var MAX_SWIFT_COMPILE_IMAGE_BYTES = 4 * 1024 * 1024;
|
|
88
88
|
var MAX_SWIFT_COMPILE_IMAGE_TOTAL_BYTES = 16 * 1024 * 1024;
|
|
89
|
-
var SWIFT_HOST_ABI =
|
|
89
|
+
var SWIFT_HOST_ABI = 70;
|
|
90
90
|
var POLL_INTERVAL_MS = 1500;
|
|
91
91
|
function swiftNativeEntry(native, file) {
|
|
92
92
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2182 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/is-record.ts
|
|
4
4
|
function isRecord(value) {
|
|
@@ -40,7 +40,7 @@ var MAX_SWIFT_COMPILE_METAL_TOTAL_BYTES = 8 * 1024 * 1024;
|
|
|
40
40
|
var MAX_SWIFT_COMPILE_IMAGES = 256;
|
|
41
41
|
var MAX_SWIFT_COMPILE_IMAGE_BYTES = 4 * 1024 * 1024;
|
|
42
42
|
var MAX_SWIFT_COMPILE_IMAGE_TOTAL_BYTES = 16 * 1024 * 1024;
|
|
43
|
-
var SWIFT_HOST_ABI =
|
|
43
|
+
var SWIFT_HOST_ABI = 70;
|
|
44
44
|
var POLL_INTERVAL_MS = 1500;
|
|
45
45
|
function swiftNativeEntry(native, file) {
|
|
46
46
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2182 | (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.2182 | (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;
|