peachsim 0.1.2379 → 0.1.2380
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 +38 -24
- 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 +37 -23
- 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 +38 -24
- 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 +38 -24
- 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 +3 -3
- 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/swift-compile.ts +14 -8
- package/src/swift-host.ts +24 -20
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2380 | (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.2380 | (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.2380 | (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.2380 | (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.2380 | (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.2380 | (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.2380 | (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.2380 | (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
|
" "
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2380 | (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":"d92cc197a475ac9ce42fc8989fa94ce0c23241b7f7062cf9f0318168c9c747c6","entrySha256":"8bf6cf6e3770a9c47ea8842200241d7e08add3e057c5ed583053ff80aac6626a"}
|
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
|
),
|
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
|
package/src/swift-host.ts
CHANGED
|
@@ -2605,17 +2605,16 @@ export function icuUrl(origin: string, artifact: SwiftArtifact): string {
|
|
|
2605
2605
|
: `${origin}${ICU_PATH}${swiftIcuAddress(artifact.icu)}`
|
|
2606
2606
|
}
|
|
2607
2607
|
|
|
2608
|
-
// a
|
|
2609
|
-
//
|
|
2610
|
-
//
|
|
2611
|
-
// links once, through the first module its framework ships.
|
|
2608
|
+
// a framework's WebAssembly library supplies the implementations its
|
|
2609
|
+
// stand-ins would define. an explicit crate also links when the app's
|
|
2610
|
+
// original native targets consume it through their own headers.
|
|
2612
2611
|
export function standinLibraries(
|
|
2613
2612
|
binaries: readonly SwiftPackageBinary[],
|
|
2614
2613
|
standins: readonly SwiftStandin[],
|
|
2615
2614
|
rootDir: string,
|
|
2616
2615
|
toolchain?: { moduleRoot: string; release: string },
|
|
2617
|
-
)
|
|
2618
|
-
const linked = new Map<string, SwiftStandin[]>()
|
|
2616
|
+
) {
|
|
2617
|
+
const linked = new Map<string, { name: string; standins: SwiftStandin[] }>()
|
|
2619
2618
|
for (const standin of standins) {
|
|
2620
2619
|
if (!standin.prebuilt) continue
|
|
2621
2620
|
const bytes = Buffer.from(standin.prebuilt.library, 'base64')
|
|
@@ -2624,7 +2623,7 @@ export function standinLibraries(
|
|
|
2624
2623
|
fs.mkdirSync(dir, { recursive: true })
|
|
2625
2624
|
const library = path.join(dir, `lib${standin.module}.a`)
|
|
2626
2625
|
if (!fs.existsSync(library)) fs.writeFileSync(library, bytes)
|
|
2627
|
-
linked.set(library, [standin])
|
|
2626
|
+
linked.set(library, { name: standin.module, standins: [standin] })
|
|
2628
2627
|
}
|
|
2629
2628
|
for (const binary of binaries) {
|
|
2630
2629
|
const modules = standins.filter(
|
|
@@ -2634,10 +2633,13 @@ export function standinLibraries(
|
|
|
2634
2633
|
(`${standin.module}.c` in standin.files ||
|
|
2635
2634
|
`${standin.module}.cpp` in standin.files),
|
|
2636
2635
|
)
|
|
2637
|
-
if (modules.length === 0) continue
|
|
2636
|
+
if (modules.length === 0 && !binary.rustCrate) continue
|
|
2638
2637
|
const library = standinLibrary(binary, rootDir, toolchain)
|
|
2639
2638
|
if (!library) continue
|
|
2640
|
-
linked.set(library,
|
|
2639
|
+
linked.set(library, {
|
|
2640
|
+
name: modules[0]?.module ?? swiftTargetModuleName(binary.target),
|
|
2641
|
+
standins: modules,
|
|
2642
|
+
})
|
|
2641
2643
|
}
|
|
2642
2644
|
return linked
|
|
2643
2645
|
}
|
|
@@ -2724,17 +2726,19 @@ function packageSnapshot(
|
|
|
2724
2726
|
JSON.parse(fs.readFileSync(path.join(moduleRoot, 'toolchain.json'), 'utf8')))
|
|
2725
2727
|
: null
|
|
2726
2728
|
const linked = layout
|
|
2727
|
-
?
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2729
|
+
? [
|
|
2730
|
+
...standinLibraries(
|
|
2731
|
+
layout.binaries,
|
|
2732
|
+
layout.standins,
|
|
2733
|
+
layout.app.rootDir,
|
|
2734
|
+
pin && moduleRoot ? { moduleRoot, release: pin.release } : undefined,
|
|
2735
|
+
),
|
|
2736
|
+
]
|
|
2737
|
+
: []
|
|
2734
2738
|
const files = packageSources(
|
|
2735
2739
|
project.packagePath,
|
|
2736
2740
|
Boolean(project.hosted),
|
|
2737
|
-
new Set(
|
|
2741
|
+
new Set(linked.flatMap(([, { standins }]) => standins)),
|
|
2738
2742
|
)
|
|
2739
2743
|
Object.assign(files, project.nativeFiles)
|
|
2740
2744
|
const native = nativeSourceDescriptor(project.packagePath)
|
|
@@ -2864,13 +2868,13 @@ function packageSnapshot(
|
|
|
2864
2868
|
],
|
|
2865
2869
|
}
|
|
2866
2870
|
: {}),
|
|
2867
|
-
...(linked.
|
|
2871
|
+
...(linked.length > 0 || project.libraries
|
|
2868
2872
|
? {
|
|
2869
2873
|
libraries: {
|
|
2870
2874
|
...project.libraries,
|
|
2871
2875
|
...Object.fromEntries(
|
|
2872
|
-
|
|
2873
|
-
|
|
2876
|
+
linked.map(([library, { name }]) => [
|
|
2877
|
+
name,
|
|
2874
2878
|
fs.readFileSync(library).toString('base64'),
|
|
2875
2879
|
]),
|
|
2876
2880
|
),
|