peachsim 0.1.2299 → 0.1.2301
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/control.ts +1 -0
- package/cli/commands/serve.ts +12 -3
- package/cli/commands/shell-url.ts +5 -0
- 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 +413 -100
- 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 +3 -2
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +385 -93
- 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 +2608 -102
- package/dist-lib/host/fetch-proxy-handler.cjs +6 -10
- 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 +68 -33
- 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 +66 -32
- package/dist-lib/native-app-identity-project.cjs +49 -24
- package/dist-lib/native-app-identity-project.mjs +49 -24
- 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 +56 -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 +2 -1
- package/dist-lib/sdk.mjs +2 -1
- package/dist-lib/skills.cjs +481 -125
- package/dist-lib/swift-compile.cjs +40 -8
- package/dist-lib/swift-compile.mjs +40 -8
- 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 +94 -37
- package/dist-lib/vite.cjs +12 -11
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-compat/src/stubs/native-seams/react-native-gesture-handler.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/engine/font-config.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/activitykit-activityContract.d.ts +17 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/gesture-arbitration-native.d.ts +124 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-widgetContract.d.ts +3 -1
- package/dist-types/packages/peach-kit/src/transitions/screen-transition-math.d.ts +2 -2
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/src/bundle-channel.mjs +4 -3
- package/src/cli-runtime.ts +6 -0
- package/src/expo-discovery-cache.ts +6 -6
- package/src/expo-swift-host.ts +19 -4
- package/src/host/bridge-host.ts +9 -0
- package/src/launchMetadataContract.ts +1 -0
- package/src/native-firebase-config.ts +14 -0
- package/src/swift-compile.ts +28 -1
- package/src/swift-guest-compile.ts +19 -3
- package/src/swift-guest-source-plan.ts +7 -2
- package/src/swiftContract.ts +3 -0
- package/src/turbo-compile.ts +60 -4
- package/src/turbo-source.ts +239 -35
- package/src/vite-plugin-one.ts +3 -3
- package/src/widget-extension-bundle.ts +48 -0
- package/src/xcode-project.ts +67 -25
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2301 | (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;
|
|
@@ -8392,8 +8392,8 @@ function swiftPackageLinkage(target) {
|
|
|
8392
8392
|
function guestSourceImages(graph) {
|
|
8393
8393
|
const targets = new Map(graph.targets.map((target) => [target.id, target]));
|
|
8394
8394
|
const entry = targets.get(graph.entry);
|
|
8395
|
-
if (!entry || entry.productType !== "com.apple.product-type.application")
|
|
8396
|
-
throw new Error("source graph has no application entry");
|
|
8395
|
+
if (!entry || entry.productType !== "com.apple.product-type.application" && entry.productType !== "com.apple.product-type.app-extension")
|
|
8396
|
+
throw new Error("source graph has no application or app extension entry");
|
|
8397
8397
|
const images = [
|
|
8398
8398
|
{ id: 0, owner: entry.id, members: [] }
|
|
8399
8399
|
];
|
|
@@ -11125,6 +11125,12 @@ async function compileGuestLink(options) {
|
|
|
11125
11125
|
(target) => target.productName.endsWith(".framework") ? [target.productName.slice(0, -10)] : []
|
|
11126
11126
|
)
|
|
11127
11127
|
);
|
|
11128
|
+
const sourceLibraries = new Set(
|
|
11129
|
+
options.graph.targets.flatMap((target) => {
|
|
11130
|
+
const library = /^lib(.+)\.(?:a|dylib)$/.exec(target.productName);
|
|
11131
|
+
return library ? [library[1]] : [];
|
|
11132
|
+
})
|
|
11133
|
+
);
|
|
11128
11134
|
const entry = targets.get(options.graph.entry);
|
|
11129
11135
|
if (!entry) throw new Error("guest source graph has no entry");
|
|
11130
11136
|
const imageBuildVersion = (value) => {
|
|
@@ -11294,10 +11300,12 @@ async function compileGuestLink(options) {
|
|
|
11294
11300
|
images: sourceImages.map((image) => ({
|
|
11295
11301
|
id: image.id,
|
|
11296
11302
|
objects: selectedSource.filter((artifact) => artifact.image === image.id).map((artifact) => artifact.path),
|
|
11297
|
-
// a `-framework Name` for a
|
|
11298
|
-
// that
|
|
11303
|
+
// a `-framework Name` or `-lname` for a product the source graph
|
|
11304
|
+
// builds links that product's own target, which the plan already holds
|
|
11299
11305
|
linkerFlags: image.members.flatMap((id) => targets.get(id).linkerFlags).filter(
|
|
11300
|
-
(flag, index, flags) => !sourceFrameworks.has(flags[index - 1] === "-framework" ? flag : "") && !(flag === "-framework" && sourceFrameworks.has(flags[index + 1] ?? ""))
|
|
11306
|
+
(flag, index, flags) => !sourceFrameworks.has(flags[index - 1] === "-framework" ? flag : "") && !(flag === "-framework" && sourceFrameworks.has(flags[index + 1] ?? "")) && !sourceLibraries.has(
|
|
11307
|
+
flag.startsWith("-l") && flag.length > 2 ? flag.slice(2) : flags[index - 1] === "-l" ? flag : ""
|
|
11308
|
+
) && !(flag === "-l" && sourceLibraries.has(flags[index + 1] ?? ""))
|
|
11301
11309
|
),
|
|
11302
11310
|
clangLinkOptions: selectedSource.filter((artifact) => artifact.image === image.id).map((artifact) => ({
|
|
11303
11311
|
object: import_node_path17.default.resolve(rewritten.get(artifact.path) ?? artifact.path),
|
|
@@ -13493,7 +13501,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
13493
13501
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
13494
13502
|
var MULTI_MANIFEST_VERSION = 68;
|
|
13495
13503
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
13496
|
-
var compilerSourceDigest = true ? "
|
|
13504
|
+
var compilerSourceDigest = true ? "ad311d7f868d4920f32f2ed00502f49f84fb83ae19817180a70ef5f799334169" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
13497
13505
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
13498
13506
|
const hash = (0, import_node_crypto13.createHash)("sha256");
|
|
13499
13507
|
hash.update(`swift-compile
|
|
@@ -17815,6 +17823,28 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
17815
17823
|
(0, import_node_fs24.rmSync)(linked, { force: true });
|
|
17816
17824
|
report("compiling and linking Swift modules");
|
|
17817
17825
|
const frameworkInterfaces = /* @__PURE__ */ new Map();
|
|
17826
|
+
const nativeDeclarations = /* @__PURE__ */ new Map();
|
|
17827
|
+
for (const [file, contents] of Object.entries(input.files)) {
|
|
17828
|
+
if (!file.endsWith(".modulemap")) continue;
|
|
17829
|
+
const name2 = moduleMapName(contents);
|
|
17830
|
+
const umbrella = /\bumbrella\s+header\s+"([^"]+)"/.exec(contents)?.[1];
|
|
17831
|
+
if (!name2 || !umbrella) continue;
|
|
17832
|
+
const header = input.files[import_node_path25.default.posix.join(import_node_path25.default.posix.dirname(file), umbrella)];
|
|
17833
|
+
if (header === void 0) continue;
|
|
17834
|
+
const included = new Set(
|
|
17835
|
+
[
|
|
17836
|
+
...header.matchAll(/^\s*#\s*(?:import|include)\s*[<"]([^">]+)[">]/gm)
|
|
17837
|
+
].map((match) => import_node_path25.default.posix.basename(match[1]))
|
|
17838
|
+
);
|
|
17839
|
+
const declarations = nativeDeclarations.get(name2) ?? /* @__PURE__ */ new Set();
|
|
17840
|
+
for (const declaration of swiftInterfaceDeclarations(header))
|
|
17841
|
+
declarations.add(declaration);
|
|
17842
|
+
for (const [candidate, source] of Object.entries(input.files))
|
|
17843
|
+
if (included.has(import_node_path25.default.posix.basename(candidate)))
|
|
17844
|
+
for (const declaration of swiftInterfaceDeclarations(source))
|
|
17845
|
+
declarations.add(declaration);
|
|
17846
|
+
nativeDeclarations.set(name2, declarations);
|
|
17847
|
+
}
|
|
17818
17848
|
const frameworkInterface = (name2) => {
|
|
17819
17849
|
if (frameworkInterfaces.has(name2)) return frameworkInterfaces.get(name2);
|
|
17820
17850
|
const source = distribution ? import_node_path25.default.join(frameworkRoot, "modules", `${name2}-Swift.h`) : import_node_path25.default.join(
|
|
@@ -17842,10 +17872,12 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
17842
17872
|
))
|
|
17843
17873
|
declared.add(name3);
|
|
17844
17874
|
}
|
|
17875
|
+
for (const declaration of nativeDeclarations.get(name2) ?? [])
|
|
17876
|
+
declared.add(declaration);
|
|
17845
17877
|
const own = withoutSwiftDeclarations(
|
|
17846
17878
|
clangInterfaceHeader((0, import_node_fs24.readFileSync)(source, "utf8")),
|
|
17847
17879
|
declared,
|
|
17848
|
-
`#import <${name2}/${name2}.h>`
|
|
17880
|
+
nativeDeclarations.has(name2) ? `@import ${name2};` : `#import <${name2}/${name2}.h>`
|
|
17849
17881
|
);
|
|
17850
17882
|
const owners = sdkObjCDeclarationOwners(import_node_path25.default.dirname(import_node_path25.default.dirname(headers)));
|
|
17851
17883
|
const foreign = /* @__PURE__ */ new Map();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2301 | (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);
|
|
@@ -8345,8 +8345,8 @@ function swiftPackageLinkage(target) {
|
|
|
8345
8345
|
function guestSourceImages(graph) {
|
|
8346
8346
|
const targets = new Map(graph.targets.map((target) => [target.id, target]));
|
|
8347
8347
|
const entry = targets.get(graph.entry);
|
|
8348
|
-
if (!entry || entry.productType !== "com.apple.product-type.application")
|
|
8349
|
-
throw new Error("source graph has no application entry");
|
|
8348
|
+
if (!entry || entry.productType !== "com.apple.product-type.application" && entry.productType !== "com.apple.product-type.app-extension")
|
|
8349
|
+
throw new Error("source graph has no application or app extension entry");
|
|
8350
8350
|
const images = [
|
|
8351
8351
|
{ id: 0, owner: entry.id, members: [] }
|
|
8352
8352
|
];
|
|
@@ -11087,6 +11087,12 @@ async function compileGuestLink(options) {
|
|
|
11087
11087
|
(target) => target.productName.endsWith(".framework") ? [target.productName.slice(0, -10)] : []
|
|
11088
11088
|
)
|
|
11089
11089
|
);
|
|
11090
|
+
const sourceLibraries = new Set(
|
|
11091
|
+
options.graph.targets.flatMap((target) => {
|
|
11092
|
+
const library = /^lib(.+)\.(?:a|dylib)$/.exec(target.productName);
|
|
11093
|
+
return library ? [library[1]] : [];
|
|
11094
|
+
})
|
|
11095
|
+
);
|
|
11090
11096
|
const entry = targets.get(options.graph.entry);
|
|
11091
11097
|
if (!entry) throw new Error("guest source graph has no entry");
|
|
11092
11098
|
const imageBuildVersion = (value) => {
|
|
@@ -11256,10 +11262,12 @@ async function compileGuestLink(options) {
|
|
|
11256
11262
|
images: sourceImages.map((image) => ({
|
|
11257
11263
|
id: image.id,
|
|
11258
11264
|
objects: selectedSource.filter((artifact) => artifact.image === image.id).map((artifact) => artifact.path),
|
|
11259
|
-
// a `-framework Name` for a
|
|
11260
|
-
// that
|
|
11265
|
+
// a `-framework Name` or `-lname` for a product the source graph
|
|
11266
|
+
// builds links that product's own target, which the plan already holds
|
|
11261
11267
|
linkerFlags: image.members.flatMap((id) => targets.get(id).linkerFlags).filter(
|
|
11262
|
-
(flag, index, flags) => !sourceFrameworks.has(flags[index - 1] === "-framework" ? flag : "") && !(flag === "-framework" && sourceFrameworks.has(flags[index + 1] ?? ""))
|
|
11268
|
+
(flag, index, flags) => !sourceFrameworks.has(flags[index - 1] === "-framework" ? flag : "") && !(flag === "-framework" && sourceFrameworks.has(flags[index + 1] ?? "")) && !sourceLibraries.has(
|
|
11269
|
+
flag.startsWith("-l") && flag.length > 2 ? flag.slice(2) : flags[index - 1] === "-l" ? flag : ""
|
|
11270
|
+
) && !(flag === "-l" && sourceLibraries.has(flags[index + 1] ?? ""))
|
|
11263
11271
|
),
|
|
11264
11272
|
clangLinkOptions: selectedSource.filter((artifact) => artifact.image === image.id).map((artifact) => ({
|
|
11265
11273
|
object: path19.resolve(rewritten.get(artifact.path) ?? artifact.path),
|
|
@@ -13479,7 +13487,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
13479
13487
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
13480
13488
|
var MULTI_MANIFEST_VERSION = 68;
|
|
13481
13489
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
13482
|
-
var compilerSourceDigest = true ? "
|
|
13490
|
+
var compilerSourceDigest = true ? "ad311d7f868d4920f32f2ed00502f49f84fb83ae19817180a70ef5f799334169" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
13483
13491
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
13484
13492
|
const hash = createHash13("sha256");
|
|
13485
13493
|
hash.update(`swift-compile
|
|
@@ -17801,6 +17809,28 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
17801
17809
|
rmSync7(linked, { force: true });
|
|
17802
17810
|
report("compiling and linking Swift modules");
|
|
17803
17811
|
const frameworkInterfaces = /* @__PURE__ */ new Map();
|
|
17812
|
+
const nativeDeclarations = /* @__PURE__ */ new Map();
|
|
17813
|
+
for (const [file, contents] of Object.entries(input.files)) {
|
|
17814
|
+
if (!file.endsWith(".modulemap")) continue;
|
|
17815
|
+
const name2 = moduleMapName(contents);
|
|
17816
|
+
const umbrella = /\bumbrella\s+header\s+"([^"]+)"/.exec(contents)?.[1];
|
|
17817
|
+
if (!name2 || !umbrella) continue;
|
|
17818
|
+
const header = input.files[path27.posix.join(path27.posix.dirname(file), umbrella)];
|
|
17819
|
+
if (header === void 0) continue;
|
|
17820
|
+
const included = new Set(
|
|
17821
|
+
[
|
|
17822
|
+
...header.matchAll(/^\s*#\s*(?:import|include)\s*[<"]([^">]+)[">]/gm)
|
|
17823
|
+
].map((match) => path27.posix.basename(match[1]))
|
|
17824
|
+
);
|
|
17825
|
+
const declarations = nativeDeclarations.get(name2) ?? /* @__PURE__ */ new Set();
|
|
17826
|
+
for (const declaration of swiftInterfaceDeclarations(header))
|
|
17827
|
+
declarations.add(declaration);
|
|
17828
|
+
for (const [candidate, source] of Object.entries(input.files))
|
|
17829
|
+
if (included.has(path27.posix.basename(candidate)))
|
|
17830
|
+
for (const declaration of swiftInterfaceDeclarations(source))
|
|
17831
|
+
declarations.add(declaration);
|
|
17832
|
+
nativeDeclarations.set(name2, declarations);
|
|
17833
|
+
}
|
|
17804
17834
|
const frameworkInterface = (name2) => {
|
|
17805
17835
|
if (frameworkInterfaces.has(name2)) return frameworkInterfaces.get(name2);
|
|
17806
17836
|
const source = distribution ? path27.join(frameworkRoot, "modules", `${name2}-Swift.h`) : path27.join(
|
|
@@ -17828,10 +17858,12 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
17828
17858
|
))
|
|
17829
17859
|
declared.add(name3);
|
|
17830
17860
|
}
|
|
17861
|
+
for (const declaration of nativeDeclarations.get(name2) ?? [])
|
|
17862
|
+
declared.add(declaration);
|
|
17831
17863
|
const own = withoutSwiftDeclarations(
|
|
17832
17864
|
clangInterfaceHeader(readFileSync17(source, "utf8")),
|
|
17833
17865
|
declared,
|
|
17834
|
-
`#import <${name2}/${name2}.h>`
|
|
17866
|
+
nativeDeclarations.has(name2) ? `@import ${name2};` : `#import <${name2}/${name2}.h>`
|
|
17835
17867
|
);
|
|
17836
17868
|
const owners = sdkObjCDeclarationOwners(path27.dirname(path27.dirname(headers)));
|
|
17837
17869
|
const foreign = /* @__PURE__ */ new Map();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2301 | (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.2301 | (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.2301 | (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.2301 | (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.2301 | (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;
|
|
@@ -7669,8 +7669,8 @@ function developerDirs() {
|
|
|
7669
7669
|
}
|
|
7670
7670
|
return found;
|
|
7671
7671
|
}
|
|
7672
|
-
function readNativeSdk(
|
|
7673
|
-
const env = { ...process.env, DEVELOPER_DIR:
|
|
7672
|
+
function readNativeSdk(developerDir2) {
|
|
7673
|
+
const env = { ...process.env, DEVELOPER_DIR: developerDir2 };
|
|
7674
7674
|
const xcrun = (args) => (
|
|
7675
7675
|
// runner-toolchain-platform: darwin
|
|
7676
7676
|
(0, import_node_child_process6.execFileSync)("xcrun", args, {
|
|
@@ -7709,19 +7709,19 @@ function nativeGraphMismatches(read) {
|
|
|
7709
7709
|
function pinnedNativeSdk() {
|
|
7710
7710
|
if (resolvedPinnedSdk) return resolvedPinnedSdk;
|
|
7711
7711
|
let mismatches;
|
|
7712
|
-
for (const
|
|
7712
|
+
for (const developerDir2 of developerDirs()) {
|
|
7713
7713
|
let read;
|
|
7714
7714
|
try {
|
|
7715
|
-
read = readNativeSdk(
|
|
7715
|
+
read = readNativeSdk(developerDir2);
|
|
7716
7716
|
} catch {
|
|
7717
7717
|
continue;
|
|
7718
7718
|
}
|
|
7719
7719
|
if (read.sdk !== NATIVE_GRAPH_SDK_VERSION) continue;
|
|
7720
7720
|
const differ = nativeGraphMismatches(read);
|
|
7721
7721
|
if (differ.length === 0) {
|
|
7722
|
-
process.env.DEVELOPER_DIR =
|
|
7722
|
+
process.env.DEVELOPER_DIR = developerDir2;
|
|
7723
7723
|
resolvedPinnedSdk = {
|
|
7724
|
-
developerDir,
|
|
7724
|
+
developerDir: developerDir2,
|
|
7725
7725
|
sdkPath: read.sdkPath,
|
|
7726
7726
|
compiler: read.compiler
|
|
7727
7727
|
};
|
|
@@ -13357,8 +13357,8 @@ function swiftPackageLinkage(target) {
|
|
|
13357
13357
|
function guestSourceImages(graph) {
|
|
13358
13358
|
const targets = new Map(graph.targets.map((target) => [target.id, target]));
|
|
13359
13359
|
const entry = targets.get(graph.entry);
|
|
13360
|
-
if (!entry || entry.productType !== "com.apple.product-type.application")
|
|
13361
|
-
throw new Error("source graph has no application entry");
|
|
13360
|
+
if (!entry || entry.productType !== "com.apple.product-type.application" && entry.productType !== "com.apple.product-type.app-extension")
|
|
13361
|
+
throw new Error("source graph has no application or app extension entry");
|
|
13362
13362
|
const images = [
|
|
13363
13363
|
{ id: 0, owner: entry.id, members: [] }
|
|
13364
13364
|
];
|
|
@@ -16112,6 +16112,12 @@ async function compileGuestLink(options) {
|
|
|
16112
16112
|
(target) => target.productName.endsWith(".framework") ? [target.productName.slice(0, -10)] : []
|
|
16113
16113
|
)
|
|
16114
16114
|
);
|
|
16115
|
+
const sourceLibraries = new Set(
|
|
16116
|
+
options.graph.targets.flatMap((target) => {
|
|
16117
|
+
const library = /^lib(.+)\.(?:a|dylib)$/.exec(target.productName);
|
|
16118
|
+
return library ? [library[1]] : [];
|
|
16119
|
+
})
|
|
16120
|
+
);
|
|
16115
16121
|
const entry = targets.get(options.graph.entry);
|
|
16116
16122
|
if (!entry) throw new Error("guest source graph has no entry");
|
|
16117
16123
|
const imageBuildVersion = (value) => {
|
|
@@ -16281,10 +16287,12 @@ async function compileGuestLink(options) {
|
|
|
16281
16287
|
images: sourceImages.map((image) => ({
|
|
16282
16288
|
id: image.id,
|
|
16283
16289
|
objects: selectedSource.filter((artifact) => artifact.image === image.id).map((artifact) => artifact.path),
|
|
16284
|
-
// a `-framework Name` for a
|
|
16285
|
-
// that
|
|
16290
|
+
// a `-framework Name` or `-lname` for a product the source graph
|
|
16291
|
+
// builds links that product's own target, which the plan already holds
|
|
16286
16292
|
linkerFlags: image.members.flatMap((id) => targets.get(id).linkerFlags).filter(
|
|
16287
|
-
(flag, index, flags) => !sourceFrameworks.has(flags[index - 1] === "-framework" ? flag : "") && !(flag === "-framework" && sourceFrameworks.has(flags[index + 1] ?? ""))
|
|
16293
|
+
(flag, index, flags) => !sourceFrameworks.has(flags[index - 1] === "-framework" ? flag : "") && !(flag === "-framework" && sourceFrameworks.has(flags[index + 1] ?? "")) && !sourceLibraries.has(
|
|
16294
|
+
flag.startsWith("-l") && flag.length > 2 ? flag.slice(2) : flags[index - 1] === "-l" ? flag : ""
|
|
16295
|
+
) && !(flag === "-l" && sourceLibraries.has(flags[index + 1] ?? ""))
|
|
16288
16296
|
),
|
|
16289
16297
|
clangLinkOptions: selectedSource.filter((artifact) => artifact.image === image.id).map((artifact) => ({
|
|
16290
16298
|
object: import_node_path19.default.resolve(rewritten.get(artifact.path) ?? artifact.path),
|
|
@@ -18306,7 +18314,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
18306
18314
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
18307
18315
|
var MULTI_MANIFEST_VERSION = 68;
|
|
18308
18316
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
18309
|
-
var compilerSourceDigest = true ? "
|
|
18317
|
+
var compilerSourceDigest = true ? "ad311d7f868d4920f32f2ed00502f49f84fb83ae19817180a70ef5f799334169" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
18310
18318
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
18311
18319
|
const hash = (0, import_node_crypto13.createHash)("sha256");
|
|
18312
18320
|
hash.update(`swift-compile
|
|
@@ -22535,6 +22543,28 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
22535
22543
|
(0, import_node_fs27.rmSync)(linked, { force: true });
|
|
22536
22544
|
report("compiling and linking Swift modules");
|
|
22537
22545
|
const frameworkInterfaces = /* @__PURE__ */ new Map();
|
|
22546
|
+
const nativeDeclarations = /* @__PURE__ */ new Map();
|
|
22547
|
+
for (const [file, contents] of Object.entries(input.files)) {
|
|
22548
|
+
if (!file.endsWith(".modulemap")) continue;
|
|
22549
|
+
const name3 = moduleMapName(contents);
|
|
22550
|
+
const umbrella = /\bumbrella\s+header\s+"([^"]+)"/.exec(contents)?.[1];
|
|
22551
|
+
if (!name3 || !umbrella) continue;
|
|
22552
|
+
const header = input.files[import_node_path27.default.posix.join(import_node_path27.default.posix.dirname(file), umbrella)];
|
|
22553
|
+
if (header === void 0) continue;
|
|
22554
|
+
const included = new Set(
|
|
22555
|
+
[
|
|
22556
|
+
...header.matchAll(/^\s*#\s*(?:import|include)\s*[<"]([^">]+)[">]/gm)
|
|
22557
|
+
].map((match) => import_node_path27.default.posix.basename(match[1]))
|
|
22558
|
+
);
|
|
22559
|
+
const declarations = nativeDeclarations.get(name3) ?? /* @__PURE__ */ new Set();
|
|
22560
|
+
for (const declaration of swiftInterfaceDeclarations(header))
|
|
22561
|
+
declarations.add(declaration);
|
|
22562
|
+
for (const [candidate, source] of Object.entries(input.files))
|
|
22563
|
+
if (included.has(import_node_path27.default.posix.basename(candidate)))
|
|
22564
|
+
for (const declaration of swiftInterfaceDeclarations(source))
|
|
22565
|
+
declarations.add(declaration);
|
|
22566
|
+
nativeDeclarations.set(name3, declarations);
|
|
22567
|
+
}
|
|
22538
22568
|
const frameworkInterface = (name3) => {
|
|
22539
22569
|
if (frameworkInterfaces.has(name3)) return frameworkInterfaces.get(name3);
|
|
22540
22570
|
const source = distribution ? import_node_path27.default.join(frameworkRoot, "modules", `${name3}-Swift.h`) : import_node_path27.default.join(
|
|
@@ -22562,10 +22592,12 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
22562
22592
|
))
|
|
22563
22593
|
declared.add(name4);
|
|
22564
22594
|
}
|
|
22595
|
+
for (const declaration of nativeDeclarations.get(name3) ?? [])
|
|
22596
|
+
declared.add(declaration);
|
|
22565
22597
|
const own = withoutSwiftDeclarations(
|
|
22566
22598
|
clangInterfaceHeader((0, import_node_fs27.readFileSync)(source, "utf8")),
|
|
22567
22599
|
declared,
|
|
22568
|
-
`#import <${name3}/${name3}.h>`
|
|
22600
|
+
nativeDeclarations.has(name3) ? `@import ${name3};` : `#import <${name3}/${name3}.h>`
|
|
22569
22601
|
);
|
|
22570
22602
|
const owners = sdkObjCDeclarationOwners(import_node_path27.default.dirname(import_node_path27.default.dirname(headers)));
|
|
22571
22603
|
const foreign = /* @__PURE__ */ new Map();
|
|
@@ -25459,7 +25491,7 @@ var import_node_fs33 = require("node:fs");
|
|
|
25459
25491
|
var import_node_path33 = require("node:path");
|
|
25460
25492
|
|
|
25461
25493
|
// src/swift-coverage/provenance.ts
|
|
25462
|
-
var swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"bfde06f157f52d3dd76577b3c6059c95c0393180b054ced773624ea89558992b","swift-package.ts":"338cfef9a34a930206ac2e1a8a90b85c8d61f776d9a41e6445dc18e0c5385cdb","swift-source-file.ts":"93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94","swift-toolchain.ts":"b60efa4eb7516378344cb7c48216aea5fa36590ace91a698655b48cfd0db96fe","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1","xcode-project.ts":"
|
|
25494
|
+
var swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"bfde06f157f52d3dd76577b3c6059c95c0393180b054ced773624ea89558992b","swift-package.ts":"338cfef9a34a930206ac2e1a8a90b85c8d61f776d9a41e6445dc18e0c5385cdb","swift-source-file.ts":"93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94","swift-toolchain.ts":"b60efa4eb7516378344cb7c48216aea5fa36590ace91a698655b48cfd0db96fe","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1","xcode-project.ts":"f0e86caccf203fa58395cbac9fed64577bb98a061efdf24f85a289c4e5996db9","xcode-target-members.ts":"2f25aaf5a3aa34395983c75935491c06bd68554c47ff1cb06b49c79499c03db0","xcode-json-project.ts":"41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6","openstep-plist.ts":"74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3"}') : swiftCoverageSourceDigests((0, import_node_path.join)(__sootsim_import_meta_dirname, ".."));
|
|
25463
25495
|
|
|
25464
25496
|
// src/swift-coverage/xcode-asset-symbols.ts
|
|
25465
25497
|
var import_node_fs32 = require("node:fs");
|
|
@@ -29399,6 +29431,7 @@ var PRE_CXX20_STANDARDS = /* @__PURE__ */ new Set([
|
|
|
29399
29431
|
"compiler-default"
|
|
29400
29432
|
]);
|
|
29401
29433
|
var APPLICATION = "com.apple.product-type.application";
|
|
29434
|
+
var APP_EXTENSION = "com.apple.product-type.app-extension";
|
|
29402
29435
|
var RESOURCE_BUNDLE = "com.apple.product-type.bundle";
|
|
29403
29436
|
var PRODUCT_MACH_O_TYPES = {
|
|
29404
29437
|
"com.apple.product-type.application": "mh_execute",
|
|
@@ -29622,6 +29655,17 @@ function loadProject(xcodeproj) {
|
|
|
29622
29655
|
loaded.set(projectFile, { digest, project: result });
|
|
29623
29656
|
return result;
|
|
29624
29657
|
}
|
|
29658
|
+
var developerDir;
|
|
29659
|
+
function selectedDeveloperDir() {
|
|
29660
|
+
developerDir ??= process.platform === "darwin" ? (
|
|
29661
|
+
// runner-toolchain-platform: darwin
|
|
29662
|
+
(0, import_node_child_process23.execFileSync)("xcode-select", ["-p"], {
|
|
29663
|
+
encoding: "utf8",
|
|
29664
|
+
stdio: ["ignore", "pipe", "pipe"]
|
|
29665
|
+
}).trim()
|
|
29666
|
+
) : "";
|
|
29667
|
+
return developerDir;
|
|
29668
|
+
}
|
|
29625
29669
|
function defaultConfiguration(project) {
|
|
29626
29670
|
const configList = project.object(str(project.project.buildConfigurationList));
|
|
29627
29671
|
const names = list(configList?.buildConfigurations).flatMap(
|
|
@@ -29688,15 +29732,8 @@ function targetSettings(ref, configuration, builtins, options = {}, overrides =
|
|
|
29688
29732
|
resolving.delete(marker);
|
|
29689
29733
|
return value;
|
|
29690
29734
|
};
|
|
29691
|
-
let developerDir;
|
|
29692
29735
|
const derivedSettings = {
|
|
29693
|
-
DEVELOPER_DIR: () => options.environment?.DEVELOPER_DIR ?? process.env.DEVELOPER_DIR ?? (
|
|
29694
|
-
// runner-toolchain-platform: darwin
|
|
29695
|
-
(0, import_node_child_process23.execFileSync)("xcode-select", ["-p"], {
|
|
29696
|
-
encoding: "utf8",
|
|
29697
|
-
stdio: ["ignore", "pipe", "pipe"]
|
|
29698
|
-
}).trim()
|
|
29699
|
-
) : ""),
|
|
29736
|
+
DEVELOPER_DIR: () => options.environment?.DEVELOPER_DIR ?? process.env.DEVELOPER_DIR ?? selectedDeveloperDir(),
|
|
29700
29737
|
PRODUCT_NAME: () => get("TARGET_NAME"),
|
|
29701
29738
|
PRODUCT_MODULE_NAME: () => applyOperator(get("PRODUCT_NAME"), "c99extidentifier"),
|
|
29702
29739
|
EXECUTABLE_NAME: () => get("PRODUCT_NAME"),
|
|
@@ -30333,7 +30370,9 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
30333
30370
|
options.installedPods
|
|
30334
30371
|
);
|
|
30335
30372
|
const allTargets = projects2.flatMap(projectTargets);
|
|
30336
|
-
const appTargets = allTargets.filter(
|
|
30373
|
+
const appTargets = allTargets.filter(
|
|
30374
|
+
(ref) => isIosAppTarget(ref, options) || targetName !== void 0 && ref.target.name === targetName && ref.target.productType === APP_EXTENSION
|
|
30375
|
+
);
|
|
30337
30376
|
const appTargetNames = appTargets.map((ref) => str(ref.target.name) ?? ref.id);
|
|
30338
30377
|
const container = import_node_path39.default.basename(xcodeprojOrWorkspace);
|
|
30339
30378
|
const named = targetName ? appTargets.filter((ref) => ref.target.name === targetName) : appTargets;
|
|
@@ -30397,7 +30436,8 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
30397
30436
|
const words2 = settingList(flags);
|
|
30398
30437
|
const linked = new Set(linkedTargets(ref).map((link) => link.target));
|
|
30399
30438
|
return words2.flatMap((word, index) => {
|
|
30400
|
-
const
|
|
30439
|
+
const library = word.startsWith("-l") && word.length > 2 ? word.slice(2) : words2[index - 1] === "-l" ? word : void 0;
|
|
30440
|
+
const target = words2[index - 1] === "-framework" ? byProduct.get(`${word}.framework`) : library ? byProduct.get(`lib${library}.a`) ?? byProduct.get(`lib${library}.dylib`) : void 0;
|
|
30401
30441
|
if (!target || target === ref || linked.has(target)) return [];
|
|
30402
30442
|
linked.add(target);
|
|
30403
30443
|
return [{ target, attributes: [] }];
|
|
@@ -30425,7 +30465,16 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
30425
30465
|
order.push(ref);
|
|
30426
30466
|
};
|
|
30427
30467
|
visit(app);
|
|
30428
|
-
const
|
|
30468
|
+
const headerPhases = /* @__PURE__ */ new Map();
|
|
30469
|
+
const headerPhase = (ref) => {
|
|
30470
|
+
const key2 = `${ref.project.xcodeproj}\0${ref.id}`;
|
|
30471
|
+
const cached = headerPhases.get(key2);
|
|
30472
|
+
if (cached) return cached;
|
|
30473
|
+
const files2 = readHeaderPhase(ref);
|
|
30474
|
+
headerPhases.set(key2, files2);
|
|
30475
|
+
return files2;
|
|
30476
|
+
};
|
|
30477
|
+
const readHeaderPhase = (ref) => list(ref.target.buildPhases).flatMap((phaseId) => {
|
|
30429
30478
|
const phase = ref.project.object(phaseId);
|
|
30430
30479
|
if (phase?.isa !== "PBXHeadersBuildPhase") return [];
|
|
30431
30480
|
return list(phase.files).flatMap((id) => {
|
|
@@ -30442,6 +30491,23 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
30442
30491
|
];
|
|
30443
30492
|
});
|
|
30444
30493
|
});
|
|
30494
|
+
const projectNonFrameworkHeaders = /* @__PURE__ */ new Map();
|
|
30495
|
+
const nonFrameworkHeadersOf = (project) => {
|
|
30496
|
+
const cached = projectNonFrameworkHeaders.get(project);
|
|
30497
|
+
if (cached) return cached;
|
|
30498
|
+
const headers = /* @__PURE__ */ new Map();
|
|
30499
|
+
for (const other of projectTargets(project)) {
|
|
30500
|
+
if (FRAMEWORK_PRODUCTS.has(str(other.target.productType) ?? "")) continue;
|
|
30501
|
+
const otherProduct = productName(other);
|
|
30502
|
+
for (const { file, visibility } of headerPhase(other)) {
|
|
30503
|
+
if (visibility === "Project") continue;
|
|
30504
|
+
const key2 = `${otherProduct}/${import_node_path39.default.basename(file)}`;
|
|
30505
|
+
if (!headers.has(key2)) headers.set(key2, file);
|
|
30506
|
+
}
|
|
30507
|
+
}
|
|
30508
|
+
projectNonFrameworkHeaders.set(project, headers);
|
|
30509
|
+
return headers;
|
|
30510
|
+
};
|
|
30445
30511
|
const productNames = /* @__PURE__ */ new Map();
|
|
30446
30512
|
const productName = (ref) => {
|
|
30447
30513
|
const key2 = `${ref.project.xcodeproj}\0${ref.id}`;
|
|
@@ -30674,16 +30740,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
30674
30740
|
const qualified2 = `${product}/${name4}`;
|
|
30675
30741
|
if (!ownHeaders.has(qualified2)) ownHeaders.set(qualified2, file);
|
|
30676
30742
|
}
|
|
30677
|
-
const nonFrameworkHeaders =
|
|
30678
|
-
for (const other of projectTargets(ref.project)) {
|
|
30679
|
-
if (FRAMEWORK_PRODUCTS.has(str(other.target.productType) ?? "")) continue;
|
|
30680
|
-
const otherProduct = productName(other);
|
|
30681
|
-
for (const { file, visibility } of headerPhase(other)) {
|
|
30682
|
-
if (visibility === "Project") continue;
|
|
30683
|
-
const key2 = `${otherProduct}/${import_node_path39.default.basename(file)}`;
|
|
30684
|
-
if (!nonFrameworkHeaders.has(key2)) nonFrameworkHeaders.set(key2, file);
|
|
30685
|
-
}
|
|
30686
|
-
}
|
|
30743
|
+
const nonFrameworkHeaders = nonFrameworkHeadersOf(ref.project);
|
|
30687
30744
|
const wrapper = import_node_path39.default.join(settings2("BUILT_PRODUCTS_DIR"), `${product}.framework`);
|
|
30688
30745
|
const moduleMap = (settings2("DEFINES_MODULE") === "YES" || !framework) && settings2("MODULEMAP_FILE") ? absolute(settings2("MODULEMAP_FILE")) : null;
|
|
30689
30746
|
const frameworkUmbrella = !compatibility && framework && members2.sources.length > 0 && moduleMap ? import_node_path39.default.join(import_node_path39.default.dirname(moduleMap), `${moduleName}-umbrella.h`) : null;
|
|
@@ -32492,7 +32549,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
|
|
|
32492
32549
|
return hash.digest("hex");
|
|
32493
32550
|
}
|
|
32494
32551
|
var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
32495
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
32552
|
+
var STANDIN_SOURCE_DIGEST = true ? "7dd2fef3ceef6be07d22cfa2f397bda7721d34bc2ef8764f78e05b9637849f09" : standinSourceDigest();
|
|
32496
32553
|
|
|
32497
32554
|
// src/swift-standins.ts
|
|
32498
32555
|
var import_node_child_process31 = require("node:child_process");
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2301 | (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;
|
|
@@ -2742,7 +2742,7 @@ var init_src = __esm({
|
|
|
2742
2742
|
var runtime_companion_default;
|
|
2743
2743
|
var init_runtime_companion = __esm({
|
|
2744
2744
|
"runtime-companion.json"() {
|
|
2745
|
-
runtime_companion_default = { abi: 1, sha256: "
|
|
2745
|
+
runtime_companion_default = { abi: 1, sha256: "60900a3af6e6213c855e6682baa0ebdb6a6865510e4e3a51a24d4c584b3fdec2", file: "node/cli-60900a3af6e6213c855e6682baa0ebdb6a6865510e4e3a51a24d4c584b3fdec2.cjs" };
|
|
2746
2746
|
}
|
|
2747
2747
|
});
|
|
2748
2748
|
|
|
@@ -2983,6 +2983,7 @@ __export(cli_runtime_exports, {
|
|
|
2983
2983
|
cliCompanionPath: () => cliCompanionPath,
|
|
2984
2984
|
ensureCliCompanion: () => ensureCliCompanion,
|
|
2985
2985
|
getCliRuntime: () => getCliRuntime,
|
|
2986
|
+
loadCliRuntime: () => loadCliRuntime,
|
|
2986
2987
|
verifyCliCompanion: () => verifyCliCompanion
|
|
2987
2988
|
});
|
|
2988
2989
|
function cliCompanionPath() {
|
|
@@ -3030,6 +3031,10 @@ async function ensureCliCompanion(root) {
|
|
|
3030
3031
|
(0, import_node_fs13.rmSync)(staged, { force: true });
|
|
3031
3032
|
}
|
|
3032
3033
|
}
|
|
3034
|
+
async function loadCliRuntime() {
|
|
3035
|
+
if (!loaded) await ensureCliCompanion(peachRuntimeRoot());
|
|
3036
|
+
return getCliRuntime();
|
|
3037
|
+
}
|
|
3033
3038
|
function getCliRuntime() {
|
|
3034
3039
|
if (loaded) return loaded.runtime;
|
|
3035
3040
|
const root = peachRuntimeRoot();
|
|
@@ -3100,7 +3105,7 @@ var STANDIN_SOURCE_DIGEST;
|
|
|
3100
3105
|
var init_swift_standin_digest = __esm({
|
|
3101
3106
|
"src/swift-standin-digest.ts"() {
|
|
3102
3107
|
"use strict";
|
|
3103
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
3108
|
+
STANDIN_SOURCE_DIGEST = true ? "7dd2fef3ceef6be07d22cfa2f397bda7721d34bc2ef8764f78e05b9637849f09" : standinSourceDigest();
|
|
3104
3109
|
}
|
|
3105
3110
|
});
|
|
3106
3111
|
|
|
@@ -3547,7 +3552,7 @@ var swiftCoverageProvenance;
|
|
|
3547
3552
|
var init_provenance = __esm({
|
|
3548
3553
|
"src/swift-coverage/provenance.ts"() {
|
|
3549
3554
|
"use strict";
|
|
3550
|
-
swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"bfde06f157f52d3dd76577b3c6059c95c0393180b054ced773624ea89558992b","swift-package.ts":"338cfef9a34a930206ac2e1a8a90b85c8d61f776d9a41e6445dc18e0c5385cdb","swift-source-file.ts":"93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94","swift-toolchain.ts":"b60efa4eb7516378344cb7c48216aea5fa36590ace91a698655b48cfd0db96fe","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1","xcode-project.ts":"
|
|
3555
|
+
swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"bfde06f157f52d3dd76577b3c6059c95c0393180b054ced773624ea89558992b","swift-package.ts":"338cfef9a34a930206ac2e1a8a90b85c8d61f776d9a41e6445dc18e0c5385cdb","swift-source-file.ts":"93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94","swift-toolchain.ts":"b60efa4eb7516378344cb7c48216aea5fa36590ace91a698655b48cfd0db96fe","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1","xcode-project.ts":"f0e86caccf203fa58395cbac9fed64577bb98a061efdf24f85a289c4e5996db9","xcode-target-members.ts":"2f25aaf5a3aa34395983c75935491c06bd68554c47ff1cb06b49c79499c03db0","xcode-json-project.ts":"41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6","openstep-plist.ts":"74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3"}') : swiftCoverageSourceDigests((0, import_node_path.join)(__sootsim_import_meta_dirname, ".."));
|
|
3551
3556
|
}
|
|
3552
3557
|
});
|
|
3553
3558
|
|
|
@@ -4753,7 +4758,7 @@ var init_swift_compile = __esm({
|
|
|
4753
4758
|
FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
|
|
4754
4759
|
(module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
|
|
4755
4760
|
).join("");
|
|
4756
|
-
compilerSourceDigest = true ? "
|
|
4761
|
+
compilerSourceDigest = true ? "ad311d7f868d4920f32f2ed00502f49f84fb83ae19817180a70ef5f799334169" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
4757
4762
|
CORE_FOUNDATION_HANDLE_IMPORTS = [
|
|
4758
4763
|
"CFAllocator",
|
|
4759
4764
|
"CFArray",
|
|
@@ -5285,7 +5290,7 @@ var init_react_native_core = __esm({
|
|
|
5285
5290
|
init_swift_distribution();
|
|
5286
5291
|
init_swift_package();
|
|
5287
5292
|
init_swiftContract();
|
|
5288
|
-
recipe = true ? "
|
|
5293
|
+
recipe = true ? "96416de7238919b274266f095ef4213211a2a26c133d0df7ab5e0459ded52ef1" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
|
|
5289
5294
|
}
|
|
5290
5295
|
});
|
|
5291
5296
|
|
|
@@ -11599,7 +11604,6 @@ var NATIVE_RUNTIME_PACKAGE_NAMES = [
|
|
|
11599
11604
|
|
|
11600
11605
|
// ../peach-globals/src/guest-modules/lazy-stub-patterns.ts
|
|
11601
11606
|
var LAZY_STUB_PATTERNS = [
|
|
11602
|
-
"@10play/tentap-editor",
|
|
11603
11607
|
"@adobe/react-native-aepcore",
|
|
11604
11608
|
"@azesmway/react-native-unity",
|
|
11605
11609
|
"@azzapp/react-native-skia-video",
|
|
@@ -11672,8 +11676,6 @@ var LAZY_STUB_PATTERNS = [
|
|
|
11672
11676
|
"react-native-agora",
|
|
11673
11677
|
"react-native-android-location-enabler",
|
|
11674
11678
|
"react-native-animateable-text",
|
|
11675
|
-
"react-native-app-clip",
|
|
11676
|
-
"react-native-avoid-softinput",
|
|
11677
11679
|
"react-native-azure-auth",
|
|
11678
11680
|
"react-native-bare-kit",
|
|
11679
11681
|
"react-native-bluetooth-classic",
|
|
@@ -11688,7 +11690,6 @@ var LAZY_STUB_PATTERNS = [
|
|
|
11688
11690
|
"react-native-extra-dimensions-android",
|
|
11689
11691
|
"react-native-fast-opencv",
|
|
11690
11692
|
"react-native-fast-shadow",
|
|
11691
|
-
"react-native-fast-squircle",
|
|
11692
11693
|
"react-native-fast-tflite",
|
|
11693
11694
|
"react-native-file-viewer-turbo",
|
|
11694
11695
|
"react-native-floating-label-input",
|
|
@@ -15132,7 +15133,7 @@ globalThis.${PEACH_WORKSPACE_MODULE_MARKER}=[${JSON.stringify(match.pattern)},{$
|
|
|
15132
15133
|
async generateBundle(_options, bundle) {
|
|
15133
15134
|
if (options.enabled === false || dev) return;
|
|
15134
15135
|
const versions = readInstalledNativePackageVersions(root);
|
|
15135
|
-
const { attachRolldownBundleInventory } =
|
|
15136
|
+
const { attachRolldownBundleInventory } = (await loadCliRuntime()).rolldown_bundle_inventory;
|
|
15136
15137
|
for (const output of Object.values(bundle)) {
|
|
15137
15138
|
if (output.type !== "chunk") continue;
|
|
15138
15139
|
output.code = await attachRolldownBundleInventory(
|