peachsim 0.1.2379 → 0.1.2382
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 +40 -26
- 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 +39 -25
- 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 +40 -26
- package/dist-lib/host/fetch-proxy-handler.cjs +4 -4
- 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 +4 -4
- 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 +4 -4
- 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 +40 -26
- package/dist-lib/swift-compile.cjs +12 -5
- package/dist-lib/swift-compile.mjs +12 -5
- 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 +31 -19
- package/dist-lib/vite.cjs +4 -4
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/kotlin/sdk.tar.gz +0 -0
- package/node-runtime.json +1 -1
- package/package.json +1 -1
- package/src/expo-swift-host.ts +5 -3
- package/src/react-native-core-build.ts +3 -2
- package/src/swift-compile.ts +14 -8
- package/src/swift-host.ts +24 -20
package/dist-lib/sdk.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2382 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2382 | (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;
|
|
@@ -59037,6 +59037,10 @@ function emitSwiftPackageManifest(args) {
|
|
|
59037
59037
|
const overlayFlags = swiftCrossImportFlags(moduleRoot, Boolean(distribution)).map((flag) => `, ${JSON.stringify(flag)}`).join("");
|
|
59038
59038
|
const executable = targets.find((target) => target.executable);
|
|
59039
59039
|
if (!executable) throw new Error("swift-compile: no executable target to emit");
|
|
59040
|
+
const targetNames = new Set(targets.map((target) => target.name));
|
|
59041
|
+
const executableArchives = [...args.libraries ?? []].flatMap(
|
|
59042
|
+
([name3, library]) => targetNames.has(name3) ? [] : [library]
|
|
59043
|
+
);
|
|
59040
59044
|
const linkedNativeModules = [...args.native?.entries() ?? []].flatMap(
|
|
59041
59045
|
([name3, value]) => value.clang ? [name3] : []
|
|
59042
59046
|
);
|
|
@@ -59190,11 +59194,14 @@ function emitSwiftPackageManifest(args) {
|
|
|
59190
59194
|
const linkedLibraries = (target.linkedLibraries ?? []).map(
|
|
59191
59195
|
(name3) => `.linkedLibrary(${JSON.stringify(name3)})`
|
|
59192
59196
|
);
|
|
59197
|
+
const targetArchive = args.libraries?.get(target.name);
|
|
59198
|
+
const archives = [
|
|
59199
|
+
...targetArchive ? [targetArchive] : [],
|
|
59200
|
+
...target === executable ? executableArchives : []
|
|
59201
|
+
];
|
|
59193
59202
|
const librarySettings = [
|
|
59194
59203
|
...linkedLibraries,
|
|
59195
|
-
...
|
|
59196
|
-
`.unsafeFlags(${flagArray(`[${JSON.stringify(args.libraries.get(target.name))}]`)})`
|
|
59197
|
-
] : []
|
|
59204
|
+
...archives.length ? [`.unsafeFlags(${flagArray(JSON.stringify(archives))})`] : []
|
|
59198
59205
|
];
|
|
59199
59206
|
const link = target.executable ? `,
|
|
59200
59207
|
linkerSettings: [
|
|
@@ -63201,7 +63208,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
|
|
|
63201
63208
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
63202
63209
|
MULTI_MANIFEST_VERSION = 69;
|
|
63203
63210
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
63204
|
-
compilerSourceDigest = true ? "
|
|
63211
|
+
compilerSourceDigest = true ? "7d6f914e0fa45023e39a96f6b22a9b77a3805c230d28c1614ccf77e8cda77665" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
63205
63212
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
63206
63213
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
63207
63214
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -69928,7 +69935,7 @@ var init_swift_standin_digest = __esm({
|
|
|
69928
69935
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
69929
69936
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
69930
69937
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
69931
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
69938
|
+
STANDIN_SOURCE_DIGEST = true ? "762c4967fecca300c01dc513758217fca907a14a03c418d63d2cfcbfd7486c9d" : standinSourceDigest();
|
|
69932
69939
|
}
|
|
69933
69940
|
});
|
|
69934
69941
|
|
|
@@ -70423,7 +70430,7 @@ __export(expo_native_prebuilt_exports, {
|
|
|
70423
70430
|
servedExpoSwift: () => servedExpoSwift
|
|
70424
70431
|
});
|
|
70425
70432
|
function expoNativeCompilerDigestValue() {
|
|
70426
|
-
return true ? "
|
|
70433
|
+
return true ? "b96f394d7402014e1585ab28eeb3e138f99e4241e51cb8eb3ea50aa95c767a26" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
70427
70434
|
}
|
|
70428
70435
|
function readSources(value) {
|
|
70429
70436
|
const sources = isRecord(value) ? value.sources : null;
|
|
@@ -82152,16 +82159,19 @@ function standinLibraries(binaries, standins, rootDir, toolchain) {
|
|
|
82152
82159
|
import_node_fs92.default.mkdirSync(dir, { recursive: true });
|
|
82153
82160
|
const library = import_node_path89.default.join(dir, `lib${standin.module}.a`);
|
|
82154
82161
|
if (!import_node_fs92.default.existsSync(library)) import_node_fs92.default.writeFileSync(library, bytes);
|
|
82155
|
-
linked.set(library, [standin]);
|
|
82162
|
+
linked.set(library, { name: standin.module, standins: [standin] });
|
|
82156
82163
|
}
|
|
82157
82164
|
for (const binary2 of binaries) {
|
|
82158
82165
|
const modules = standins.filter(
|
|
82159
82166
|
(standin) => standin.target === binary2.target && !standin.prebuilt && (`${standin.module}.c` in standin.files || `${standin.module}.cpp` in standin.files)
|
|
82160
82167
|
);
|
|
82161
|
-
if (modules.length === 0) continue;
|
|
82168
|
+
if (modules.length === 0 && !binary2.rustCrate) continue;
|
|
82162
82169
|
const library = standinLibrary(binary2, rootDir, toolchain);
|
|
82163
82170
|
if (!library) continue;
|
|
82164
|
-
linked.set(library,
|
|
82171
|
+
linked.set(library, {
|
|
82172
|
+
name: modules[0]?.module ?? swiftTargetModuleName(binary2.target),
|
|
82173
|
+
standins: modules
|
|
82174
|
+
});
|
|
82165
82175
|
}
|
|
82166
82176
|
return linked;
|
|
82167
82177
|
}
|
|
@@ -82201,16 +82211,18 @@ function packageSnapshot(project2, entry, moduleRoot) {
|
|
|
82201
82211
|
);
|
|
82202
82212
|
const layout2 = xcodeLayout(project2.packagePath);
|
|
82203
82213
|
const pin2 = moduleRoot ? swiftDistributionAt(moduleRoot) ?? JSON.parse(import_node_fs92.default.readFileSync(import_node_path89.default.join(moduleRoot, "toolchain.json"), "utf8")) : null;
|
|
82204
|
-
const linked = layout2 ?
|
|
82205
|
-
|
|
82206
|
-
|
|
82207
|
-
|
|
82208
|
-
|
|
82209
|
-
|
|
82214
|
+
const linked = layout2 ? [
|
|
82215
|
+
...standinLibraries(
|
|
82216
|
+
layout2.binaries,
|
|
82217
|
+
layout2.standins,
|
|
82218
|
+
layout2.app.rootDir,
|
|
82219
|
+
pin2 && moduleRoot ? { moduleRoot, release: pin2.release } : void 0
|
|
82220
|
+
)
|
|
82221
|
+
] : [];
|
|
82210
82222
|
const files2 = packageSources(
|
|
82211
82223
|
project2.packagePath,
|
|
82212
82224
|
Boolean(project2.hosted),
|
|
82213
|
-
new Set(
|
|
82225
|
+
new Set(linked.flatMap(([, { standins }]) => standins))
|
|
82214
82226
|
);
|
|
82215
82227
|
Object.assign(files2, project2.nativeFiles);
|
|
82216
82228
|
const native = nativeSourceDescriptor(project2.packagePath);
|
|
@@ -82312,12 +82324,12 @@ function packageSnapshot(project2, entry, moduleRoot) {
|
|
|
82312
82324
|
])
|
|
82313
82325
|
]
|
|
82314
82326
|
} : {},
|
|
82315
|
-
...linked.
|
|
82327
|
+
...linked.length > 0 || project2.libraries ? {
|
|
82316
82328
|
libraries: {
|
|
82317
82329
|
...project2.libraries,
|
|
82318
82330
|
...Object.fromEntries(
|
|
82319
|
-
|
|
82320
|
-
|
|
82331
|
+
linked.map(([library, { name: name3 }]) => [
|
|
82332
|
+
name3,
|
|
82321
82333
|
import_node_fs92.default.readFileSync(library).toString("base64")
|
|
82322
82334
|
])
|
|
82323
82335
|
)
|
|
@@ -88594,7 +88606,7 @@ async function buildReactNativeCore(project2, reactNativeRoot, mode, moduleRoot)
|
|
|
88594
88606
|
producer.files["Sources/PeachCoreProducerHost/include/PeachCoreProducerHost.h"] = "#pragma once\n";
|
|
88595
88607
|
producer.files["Sources/PeachCoreProducerHost/Dispatch.m"] = "#import <dispatch/dispatch.h>\nvoid peachTurboDispatchAsync(dispatch_block_t block) { dispatch_async(dispatch_get_main_queue(), block); }\n";
|
|
88596
88608
|
}
|
|
88597
|
-
const input = collectTurboCompileInput(producer, null, floor);
|
|
88609
|
+
const input = { ...collectTurboCompileInput(producer, null, floor), optimize: false };
|
|
88598
88610
|
input.files[input.entry] = input.entry.endsWith(".swift") ? "@main struct PeachCoreProducer { static func main() {} }\n" : "int main() { return 0; }\n";
|
|
88599
88611
|
const { compiler: _compiler, recipe: _recipe, ...nativeInputs } = entry.inputs;
|
|
88600
88612
|
const buildRoot = import_node_path95.default.join(
|
|
@@ -88878,7 +88890,7 @@ var init_react_native_core = __esm({
|
|
|
88878
88890
|
init_swift_distribution();
|
|
88879
88891
|
init_swift_package();
|
|
88880
88892
|
init_swiftContract();
|
|
88881
|
-
recipe = true ? "
|
|
88893
|
+
recipe = true ? "001a7b655dd7e7159ffd4ccf0bded8179bce9b48b6d0f5c3b56c41bdaaa78340" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
|
|
88882
88894
|
strings4 = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
|
|
88883
88895
|
building = /* @__PURE__ */ new Map();
|
|
88884
88896
|
}
|
|
@@ -90984,7 +90996,9 @@ async function compileExpoSwiftModulesTraced(root, base2, publishArtifact, optio
|
|
|
90984
90996
|
root,
|
|
90985
90997
|
toolchain
|
|
90986
90998
|
);
|
|
90987
|
-
const linkedStandins = new Set(
|
|
90999
|
+
const linkedStandins = new Set(
|
|
91000
|
+
[...linkedLibraries.values()].flatMap(({ standins }) => standins)
|
|
91001
|
+
);
|
|
90988
91002
|
for (const standin of built2.standins)
|
|
90989
91003
|
for (const [name3, source] of Object.entries(standin.files)) {
|
|
90990
91004
|
const file = `${SWIFT_STANDINS_DIR}/${standin.module}/${name3}`;
|
|
@@ -91007,8 +91021,8 @@ async function compileExpoSwiftModulesTraced(root, base2, publishArtifact, optio
|
|
|
91007
91021
|
libraries.set(unit2, {
|
|
91008
91022
|
...libraries.get(unit2),
|
|
91009
91023
|
...Object.fromEntries(
|
|
91010
|
-
[...linkedLibraries].map(([library,
|
|
91011
|
-
|
|
91024
|
+
[...linkedLibraries].map(([library, { name: name3 }]) => [
|
|
91025
|
+
name3,
|
|
91012
91026
|
import_node_fs100.default.readFileSync(library).toString("base64")
|
|
91013
91027
|
])
|
|
91014
91028
|
)
|
|
@@ -93207,7 +93221,7 @@ var init_nitro_superset = __esm({
|
|
|
93207
93221
|
init_nitroContract();
|
|
93208
93222
|
init_swift_standin_digest();
|
|
93209
93223
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
93210
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
93224
|
+
NITRO_COMPILER_DIGEST = true ? "38b3e4458677b821a8f3ba6ca2f6e430e73362795380b935ae4f8367f31c3dcb" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
93211
93225
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
93212
93226
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
93213
93227
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2382 | (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;
|
|
@@ -13762,7 +13762,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
13762
13762
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
13763
13763
|
var MULTI_MANIFEST_VERSION = 69;
|
|
13764
13764
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
13765
|
-
var compilerSourceDigest = true ? "
|
|
13765
|
+
var compilerSourceDigest = true ? "7d6f914e0fa45023e39a96f6b22a9b77a3805c230d28c1614ccf77e8cda77665" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
13766
13766
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
13767
13767
|
const hash = (0, import_node_crypto14.createHash)("sha256");
|
|
13768
13768
|
hash.update(`swift-compile
|
|
@@ -13975,6 +13975,10 @@ function emitSwiftPackageManifest(args) {
|
|
|
13975
13975
|
const overlayFlags = swiftCrossImportFlags(moduleRoot, Boolean(distribution)).map((flag) => `, ${JSON.stringify(flag)}`).join("");
|
|
13976
13976
|
const executable = targets.find((target) => target.executable);
|
|
13977
13977
|
if (!executable) throw new Error("swift-compile: no executable target to emit");
|
|
13978
|
+
const targetNames = new Set(targets.map((target) => target.name));
|
|
13979
|
+
const executableArchives = [...args.libraries ?? []].flatMap(
|
|
13980
|
+
([name2, library]) => targetNames.has(name2) ? [] : [library]
|
|
13981
|
+
);
|
|
13978
13982
|
const linkedNativeModules = [...args.native?.entries() ?? []].flatMap(
|
|
13979
13983
|
([name2, value]) => value.clang ? [name2] : []
|
|
13980
13984
|
);
|
|
@@ -14128,11 +14132,14 @@ function emitSwiftPackageManifest(args) {
|
|
|
14128
14132
|
const linkedLibraries = (target.linkedLibraries ?? []).map(
|
|
14129
14133
|
(name2) => `.linkedLibrary(${JSON.stringify(name2)})`
|
|
14130
14134
|
);
|
|
14135
|
+
const targetArchive = args.libraries?.get(target.name);
|
|
14136
|
+
const archives = [
|
|
14137
|
+
...targetArchive ? [targetArchive] : [],
|
|
14138
|
+
...target === executable ? executableArchives : []
|
|
14139
|
+
];
|
|
14131
14140
|
const librarySettings = [
|
|
14132
14141
|
...linkedLibraries,
|
|
14133
|
-
...
|
|
14134
|
-
`.unsafeFlags(${flagArray(`[${JSON.stringify(args.libraries.get(target.name))}]`)})`
|
|
14135
|
-
] : []
|
|
14142
|
+
...archives.length ? [`.unsafeFlags(${flagArray(JSON.stringify(archives))})`] : []
|
|
14136
14143
|
];
|
|
14137
14144
|
const link = target.executable ? `,
|
|
14138
14145
|
linkerSettings: [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2382 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -13750,7 +13750,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
13750
13750
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
13751
13751
|
var MULTI_MANIFEST_VERSION = 69;
|
|
13752
13752
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
13753
|
-
var compilerSourceDigest = true ? "
|
|
13753
|
+
var compilerSourceDigest = true ? "7d6f914e0fa45023e39a96f6b22a9b77a3805c230d28c1614ccf77e8cda77665" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
13754
13754
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
13755
13755
|
const hash = createHash14("sha256");
|
|
13756
13756
|
hash.update(`swift-compile
|
|
@@ -13963,6 +13963,10 @@ function emitSwiftPackageManifest(args) {
|
|
|
13963
13963
|
const overlayFlags = swiftCrossImportFlags(moduleRoot, Boolean(distribution)).map((flag) => `, ${JSON.stringify(flag)}`).join("");
|
|
13964
13964
|
const executable = targets.find((target) => target.executable);
|
|
13965
13965
|
if (!executable) throw new Error("swift-compile: no executable target to emit");
|
|
13966
|
+
const targetNames = new Set(targets.map((target) => target.name));
|
|
13967
|
+
const executableArchives = [...args.libraries ?? []].flatMap(
|
|
13968
|
+
([name2, library]) => targetNames.has(name2) ? [] : [library]
|
|
13969
|
+
);
|
|
13966
13970
|
const linkedNativeModules = [...args.native?.entries() ?? []].flatMap(
|
|
13967
13971
|
([name2, value]) => value.clang ? [name2] : []
|
|
13968
13972
|
);
|
|
@@ -14116,11 +14120,14 @@ function emitSwiftPackageManifest(args) {
|
|
|
14116
14120
|
const linkedLibraries = (target.linkedLibraries ?? []).map(
|
|
14117
14121
|
(name2) => `.linkedLibrary(${JSON.stringify(name2)})`
|
|
14118
14122
|
);
|
|
14123
|
+
const targetArchive = args.libraries?.get(target.name);
|
|
14124
|
+
const archives = [
|
|
14125
|
+
...targetArchive ? [targetArchive] : [],
|
|
14126
|
+
...target === executable ? executableArchives : []
|
|
14127
|
+
];
|
|
14119
14128
|
const librarySettings = [
|
|
14120
14129
|
...linkedLibraries,
|
|
14121
|
-
...
|
|
14122
|
-
`.unsafeFlags(${flagArray(`[${JSON.stringify(args.libraries.get(target.name))}]`)})`
|
|
14123
|
-
] : []
|
|
14130
|
+
...archives.length ? [`.unsafeFlags(${flagArray(JSON.stringify(archives))})`] : []
|
|
14124
14131
|
];
|
|
14125
14132
|
const link = target.executable ? `,
|
|
14126
14133
|
linkerSettings: [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2382 | (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.2382 | (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.2382 | (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.2382 | (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.2382 | (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;
|
|
@@ -18677,7 +18677,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
18677
18677
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
18678
18678
|
var MULTI_MANIFEST_VERSION = 69;
|
|
18679
18679
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
18680
|
-
var compilerSourceDigest = true ? "
|
|
18680
|
+
var compilerSourceDigest = true ? "7d6f914e0fa45023e39a96f6b22a9b77a3805c230d28c1614ccf77e8cda77665" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
18681
18681
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
18682
18682
|
const hash = (0, import_node_crypto14.createHash)("sha256");
|
|
18683
18683
|
hash.update(`swift-compile
|
|
@@ -18890,6 +18890,10 @@ function emitSwiftPackageManifest(args) {
|
|
|
18890
18890
|
const overlayFlags = swiftCrossImportFlags(moduleRoot, Boolean(distribution)).map((flag) => `, ${JSON.stringify(flag)}`).join("");
|
|
18891
18891
|
const executable = targets.find((target) => target.executable);
|
|
18892
18892
|
if (!executable) throw new Error("swift-compile: no executable target to emit");
|
|
18893
|
+
const targetNames = new Set(targets.map((target) => target.name));
|
|
18894
|
+
const executableArchives = [...args.libraries ?? []].flatMap(
|
|
18895
|
+
([name3, library]) => targetNames.has(name3) ? [] : [library]
|
|
18896
|
+
);
|
|
18893
18897
|
const linkedNativeModules = [...args.native?.entries() ?? []].flatMap(
|
|
18894
18898
|
([name3, value]) => value.clang ? [name3] : []
|
|
18895
18899
|
);
|
|
@@ -19043,11 +19047,14 @@ function emitSwiftPackageManifest(args) {
|
|
|
19043
19047
|
const linkedLibraries = (target.linkedLibraries ?? []).map(
|
|
19044
19048
|
(name3) => `.linkedLibrary(${JSON.stringify(name3)})`
|
|
19045
19049
|
);
|
|
19050
|
+
const targetArchive = args.libraries?.get(target.name);
|
|
19051
|
+
const archives = [
|
|
19052
|
+
...targetArchive ? [targetArchive] : [],
|
|
19053
|
+
...target === executable ? executableArchives : []
|
|
19054
|
+
];
|
|
19046
19055
|
const librarySettings = [
|
|
19047
19056
|
...linkedLibraries,
|
|
19048
|
-
...
|
|
19049
|
-
`.unsafeFlags(${flagArray(`[${JSON.stringify(args.libraries.get(target.name))}]`)})`
|
|
19050
|
-
] : []
|
|
19057
|
+
...archives.length ? [`.unsafeFlags(${flagArray(JSON.stringify(archives))})`] : []
|
|
19051
19058
|
];
|
|
19052
19059
|
const link = target.executable ? `,
|
|
19053
19060
|
linkerSettings: [
|
|
@@ -34114,7 +34121,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
|
|
|
34114
34121
|
return hash.digest("hex");
|
|
34115
34122
|
}
|
|
34116
34123
|
var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
34117
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
34124
|
+
var STANDIN_SOURCE_DIGEST = true ? "762c4967fecca300c01dc513758217fca907a14a03c418d63d2cfcbfd7486c9d" : standinSourceDigest();
|
|
34118
34125
|
|
|
34119
34126
|
// src/swift-standins.ts
|
|
34120
34127
|
var import_node_child_process32 = require("node:child_process");
|
|
@@ -41255,16 +41262,19 @@ function standinLibraries(binaries, standins, rootDir, toolchain) {
|
|
|
41255
41262
|
import_node_fs58.default.mkdirSync(dir, { recursive: true });
|
|
41256
41263
|
const library = import_node_path58.default.join(dir, `lib${standin.module}.a`);
|
|
41257
41264
|
if (!import_node_fs58.default.existsSync(library)) import_node_fs58.default.writeFileSync(library, bytes);
|
|
41258
|
-
linked.set(library, [standin]);
|
|
41265
|
+
linked.set(library, { name: standin.module, standins: [standin] });
|
|
41259
41266
|
}
|
|
41260
41267
|
for (const binary of binaries) {
|
|
41261
41268
|
const modules = standins.filter(
|
|
41262
41269
|
(standin) => standin.target === binary.target && !standin.prebuilt && (`${standin.module}.c` in standin.files || `${standin.module}.cpp` in standin.files)
|
|
41263
41270
|
);
|
|
41264
|
-
if (modules.length === 0) continue;
|
|
41271
|
+
if (modules.length === 0 && !binary.rustCrate) continue;
|
|
41265
41272
|
const library = standinLibrary(binary, rootDir, toolchain);
|
|
41266
41273
|
if (!library) continue;
|
|
41267
|
-
linked.set(library,
|
|
41274
|
+
linked.set(library, {
|
|
41275
|
+
name: modules[0]?.module ?? swiftTargetModuleName(binary.target),
|
|
41276
|
+
standins: modules
|
|
41277
|
+
});
|
|
41268
41278
|
}
|
|
41269
41279
|
return linked;
|
|
41270
41280
|
}
|
|
@@ -41304,16 +41314,18 @@ function packageSnapshot(project, entry, moduleRoot) {
|
|
|
41304
41314
|
);
|
|
41305
41315
|
const layout2 = xcodeLayout(project.packagePath);
|
|
41306
41316
|
const pin2 = moduleRoot ? swiftDistributionAt(moduleRoot) ?? JSON.parse(import_node_fs58.default.readFileSync(import_node_path58.default.join(moduleRoot, "toolchain.json"), "utf8")) : null;
|
|
41307
|
-
const linked = layout2 ?
|
|
41308
|
-
|
|
41309
|
-
|
|
41310
|
-
|
|
41311
|
-
|
|
41312
|
-
|
|
41317
|
+
const linked = layout2 ? [
|
|
41318
|
+
...standinLibraries(
|
|
41319
|
+
layout2.binaries,
|
|
41320
|
+
layout2.standins,
|
|
41321
|
+
layout2.app.rootDir,
|
|
41322
|
+
pin2 && moduleRoot ? { moduleRoot, release: pin2.release } : void 0
|
|
41323
|
+
)
|
|
41324
|
+
] : [];
|
|
41313
41325
|
const files2 = packageSources(
|
|
41314
41326
|
project.packagePath,
|
|
41315
41327
|
Boolean(project.hosted),
|
|
41316
|
-
new Set(
|
|
41328
|
+
new Set(linked.flatMap(([, { standins }]) => standins))
|
|
41317
41329
|
);
|
|
41318
41330
|
Object.assign(files2, project.nativeFiles);
|
|
41319
41331
|
const native = nativeSourceDescriptor(project.packagePath);
|
|
@@ -41415,12 +41427,12 @@ function packageSnapshot(project, entry, moduleRoot) {
|
|
|
41415
41427
|
])
|
|
41416
41428
|
]
|
|
41417
41429
|
} : {},
|
|
41418
|
-
...linked.
|
|
41430
|
+
...linked.length > 0 || project.libraries ? {
|
|
41419
41431
|
libraries: {
|
|
41420
41432
|
...project.libraries,
|
|
41421
41433
|
...Object.fromEntries(
|
|
41422
|
-
|
|
41423
|
-
|
|
41434
|
+
linked.map(([library, { name: name3 }]) => [
|
|
41435
|
+
name3,
|
|
41424
41436
|
import_node_fs58.default.readFileSync(library).toString("base64")
|
|
41425
41437
|
])
|
|
41426
41438
|
)
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2382 | (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;
|
|
@@ -3244,7 +3244,7 @@ var STANDIN_SOURCE_DIGEST;
|
|
|
3244
3244
|
var init_swift_standin_digest = __esm({
|
|
3245
3245
|
"src/swift-standin-digest.ts"() {
|
|
3246
3246
|
"use strict";
|
|
3247
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
3247
|
+
STANDIN_SOURCE_DIGEST = true ? "762c4967fecca300c01dc513758217fca907a14a03c418d63d2cfcbfd7486c9d" : standinSourceDigest();
|
|
3248
3248
|
}
|
|
3249
3249
|
});
|
|
3250
3250
|
|
|
@@ -4959,7 +4959,7 @@ var init_swift_compile = __esm({
|
|
|
4959
4959
|
FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
|
|
4960
4960
|
(module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
|
|
4961
4961
|
).join("");
|
|
4962
|
-
compilerSourceDigest = true ? "
|
|
4962
|
+
compilerSourceDigest = true ? "7d6f914e0fa45023e39a96f6b22a9b77a3805c230d28c1614ccf77e8cda77665" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
4963
4963
|
C_WORDS = new Set(
|
|
4964
4964
|
"auto bool break case char const continue default do double else enum extern false float for goto if inline int long register restrict return short signed sizeof static struct switch true typedef union unsigned void volatile while YES NO NULL nil Nil id self super instancetype".split(
|
|
4965
4965
|
" "
|
|
@@ -5503,7 +5503,7 @@ var init_react_native_core = __esm({
|
|
|
5503
5503
|
init_swift_distribution();
|
|
5504
5504
|
init_swift_package();
|
|
5505
5505
|
init_swiftContract();
|
|
5506
|
-
recipe = true ? "
|
|
5506
|
+
recipe = true ? "001a7b655dd7e7159ffd4ccf0bded8179bce9b48b6d0f5c3b56c41bdaaa78340" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
|
|
5507
5507
|
}
|
|
5508
5508
|
});
|
|
5509
5509
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2382 | (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/sdk.tar.gz
CHANGED
|
Binary file
|
package/node-runtime.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"abi":1,"archiveSha256":"
|
|
1
|
+
{"abi":1,"archiveSha256":"de63454787d5a732357b118ebe54361533613063234f87a5a34c7cc05bdc49f0","entrySha256":"54347ddbb33d94f43595cef5be16f077f21229e908d3cab723e794f2be96d94e"}
|
package/package.json
CHANGED
package/src/expo-swift-host.ts
CHANGED
|
@@ -2873,7 +2873,9 @@ async function compileExpoSwiftModulesTraced(
|
|
|
2873
2873
|
root,
|
|
2874
2874
|
toolchain,
|
|
2875
2875
|
)
|
|
2876
|
-
const linkedStandins = new Set(
|
|
2876
|
+
const linkedStandins = new Set(
|
|
2877
|
+
[...linkedLibraries.values()].flatMap(({ standins }) => standins),
|
|
2878
|
+
)
|
|
2877
2879
|
for (const standin of built.standins)
|
|
2878
2880
|
for (const [name, source] of Object.entries(standin.files)) {
|
|
2879
2881
|
const file = `${SWIFT_STANDINS_DIR}/${standin.module}/${name}`
|
|
@@ -2906,8 +2908,8 @@ async function compileExpoSwiftModulesTraced(
|
|
|
2906
2908
|
libraries.set(unit, {
|
|
2907
2909
|
...libraries.get(unit),
|
|
2908
2910
|
...Object.fromEntries(
|
|
2909
|
-
[...linkedLibraries].map(([library,
|
|
2910
|
-
|
|
2911
|
+
[...linkedLibraries].map(([library, { name }]) => [
|
|
2912
|
+
name,
|
|
2911
2913
|
fs.readFileSync(library).toString('base64'),
|
|
2912
2914
|
]),
|
|
2913
2915
|
),
|
|
@@ -67,8 +67,9 @@ export async function buildReactNativeCore(
|
|
|
67
67
|
producer.files['Sources/PeachCoreProducerHost/Dispatch.m'] =
|
|
68
68
|
'#import <dispatch/dispatch.h>\nvoid peachTurboDispatchAsync(dispatch_block_t block) { dispatch_async(dispatch_get_main_queue(), block); }\n'
|
|
69
69
|
}
|
|
70
|
-
|
|
71
|
-
//
|
|
70
|
+
// only target archives are published; the producer never launches an app
|
|
71
|
+
// window, and its link only proves the archives resolve, so it skips -Oz.
|
|
72
|
+
const input = { ...collectTurboCompileInput(producer, null, floor), optimize: false }
|
|
72
73
|
input.files[input.entry] = input.entry.endsWith('.swift')
|
|
73
74
|
? '@main struct PeachCoreProducer { static func main() {} }\n'
|
|
74
75
|
: 'int main() { return 0; }\n'
|
package/src/swift-compile.ts
CHANGED
|
@@ -316,9 +316,8 @@ export interface SwiftCompileInput {
|
|
|
316
316
|
*/
|
|
317
317
|
oneModule?: boolean
|
|
318
318
|
/**
|
|
319
|
-
* WebAssembly static libraries
|
|
320
|
-
*
|
|
321
|
-
* replace the stand-in's traps.
|
|
319
|
+
* base64 WebAssembly static libraries keyed by compile target, or by
|
|
320
|
+
* archive name when the executable links them directly.
|
|
322
321
|
*/
|
|
323
322
|
libraries?: Record<string, string>
|
|
324
323
|
/** compiled wasm Swift interfaces, base64 by module, beside their native libraries. */
|
|
@@ -2000,7 +1999,7 @@ export function emitSwiftPackageManifest(args: {
|
|
|
2000
1999
|
* share a build directory with the framework package.
|
|
2001
2000
|
*/
|
|
2002
2001
|
prebuilt?: { modules: string; linkFile: string; link: string[]; moduleMaps: string[] }
|
|
2003
|
-
/**
|
|
2002
|
+
/** static libraries keyed by compile target or by the app's archive name. */
|
|
2004
2003
|
libraries?: Map<string, string>
|
|
2005
2004
|
binaryModules?: string
|
|
2006
2005
|
/** the sdk toolset already searches libc++ before the darwin overlay. */
|
|
@@ -2136,6 +2135,10 @@ export function emitSwiftPackageManifest(args: {
|
|
|
2136
2135
|
.join('')
|
|
2137
2136
|
const executable = targets.find((target) => target.executable)
|
|
2138
2137
|
if (!executable) throw new Error('swift-compile: no executable target to emit')
|
|
2138
|
+
const targetNames = new Set(targets.map((target) => target.name))
|
|
2139
|
+
const executableArchives = [...(args.libraries ?? [])].flatMap(([name, library]) =>
|
|
2140
|
+
targetNames.has(name) ? [] : [library],
|
|
2141
|
+
)
|
|
2139
2142
|
const linkedNativeModules = [...(args.native?.entries() ?? [])].flatMap(
|
|
2140
2143
|
([name, value]) => (value.clang ? [name] : []),
|
|
2141
2144
|
)
|
|
@@ -2406,12 +2409,15 @@ export function emitSwiftPackageManifest(args: {
|
|
|
2406
2409
|
const linkedLibraries = (target.linkedLibraries ?? []).map(
|
|
2407
2410
|
(name) => `.linkedLibrary(${JSON.stringify(name)})`,
|
|
2408
2411
|
)
|
|
2412
|
+
const targetArchive = args.libraries?.get(target.name)
|
|
2413
|
+
const archives = [
|
|
2414
|
+
...(targetArchive ? [targetArchive] : []),
|
|
2415
|
+
...(target === executable ? executableArchives : []),
|
|
2416
|
+
]
|
|
2409
2417
|
const librarySettings = [
|
|
2410
2418
|
...linkedLibraries,
|
|
2411
|
-
...(
|
|
2412
|
-
? [
|
|
2413
|
-
`.unsafeFlags(${flagArray(`[${JSON.stringify(args.libraries.get(target.name))}]`)})`,
|
|
2414
|
-
]
|
|
2419
|
+
...(archives.length
|
|
2420
|
+
? [`.unsafeFlags(${flagArray(JSON.stringify(archives))})`]
|
|
2415
2421
|
: []),
|
|
2416
2422
|
]
|
|
2417
2423
|
const link = target.executable
|