peachsim 0.1.2300 → 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/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 +307 -68
- 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 +2 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +306 -67
- 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 +2523 -71
- package/dist-lib/host/fetch-proxy-handler.cjs +5 -5
- 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 +13 -8
- 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 +12 -8
- package/dist-lib/native-app-identity-project.cjs +9 -5
- package/dist-lib/native-app-identity-project.mjs +9 -5
- 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 +368 -78
- package/dist-lib/swift-compile.cjs +15 -7
- package/dist-lib/swift-compile.mjs +15 -7
- 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 +23 -11
- package/dist-lib/vite.cjs +5 -5
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- 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/native-ui-protocol.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-widgetContract.d.ts +3 -1
- package/package.json +1 -1
- 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/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/widget-extension-bundle.ts +48 -0
- package/src/xcode-project.ts +22 -3
|
@@ -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
|
|
@@ -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
|
|
@@ -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;
|
|
@@ -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
|
|
@@ -25483,7 +25491,7 @@ var import_node_fs33 = require("node:fs");
|
|
|
25483
25491
|
var import_node_path33 = require("node:path");
|
|
25484
25492
|
|
|
25485
25493
|
// src/swift-coverage/provenance.ts
|
|
25486
|
-
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, ".."));
|
|
25487
25495
|
|
|
25488
25496
|
// src/swift-coverage/xcode-asset-symbols.ts
|
|
25489
25497
|
var import_node_fs32 = require("node:fs");
|
|
@@ -29423,6 +29431,7 @@ var PRE_CXX20_STANDARDS = /* @__PURE__ */ new Set([
|
|
|
29423
29431
|
"compiler-default"
|
|
29424
29432
|
]);
|
|
29425
29433
|
var APPLICATION = "com.apple.product-type.application";
|
|
29434
|
+
var APP_EXTENSION = "com.apple.product-type.app-extension";
|
|
29426
29435
|
var RESOURCE_BUNDLE = "com.apple.product-type.bundle";
|
|
29427
29436
|
var PRODUCT_MACH_O_TYPES = {
|
|
29428
29437
|
"com.apple.product-type.application": "mh_execute",
|
|
@@ -30361,7 +30370,9 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
30361
30370
|
options.installedPods
|
|
30362
30371
|
);
|
|
30363
30372
|
const allTargets = projects2.flatMap(projectTargets);
|
|
30364
|
-
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
|
+
);
|
|
30365
30376
|
const appTargetNames = appTargets.map((ref) => str(ref.target.name) ?? ref.id);
|
|
30366
30377
|
const container = import_node_path39.default.basename(xcodeprojOrWorkspace);
|
|
30367
30378
|
const named = targetName ? appTargets.filter((ref) => ref.target.name === targetName) : appTargets;
|
|
@@ -30425,7 +30436,8 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
30425
30436
|
const words2 = settingList(flags);
|
|
30426
30437
|
const linked = new Set(linkedTargets(ref).map((link) => link.target));
|
|
30427
30438
|
return words2.flatMap((word, index) => {
|
|
30428
|
-
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;
|
|
30429
30441
|
if (!target || target === ref || linked.has(target)) return [];
|
|
30430
30442
|
linked.add(target);
|
|
30431
30443
|
return [{ target, attributes: [] }];
|
|
@@ -32537,7 +32549,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
|
|
|
32537
32549
|
return hash.digest("hex");
|
|
32538
32550
|
}
|
|
32539
32551
|
var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
32540
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
32552
|
+
var STANDIN_SOURCE_DIGEST = true ? "7dd2fef3ceef6be07d22cfa2f397bda7721d34bc2ef8764f78e05b9637849f09" : standinSourceDigest();
|
|
32541
32553
|
|
|
32542
32554
|
// src/swift-standins.ts
|
|
32543
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;
|
|
@@ -3105,7 +3105,7 @@ var STANDIN_SOURCE_DIGEST;
|
|
|
3105
3105
|
var init_swift_standin_digest = __esm({
|
|
3106
3106
|
"src/swift-standin-digest.ts"() {
|
|
3107
3107
|
"use strict";
|
|
3108
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
3108
|
+
STANDIN_SOURCE_DIGEST = true ? "7dd2fef3ceef6be07d22cfa2f397bda7721d34bc2ef8764f78e05b9637849f09" : standinSourceDigest();
|
|
3109
3109
|
}
|
|
3110
3110
|
});
|
|
3111
3111
|
|
|
@@ -3552,7 +3552,7 @@ var swiftCoverageProvenance;
|
|
|
3552
3552
|
var init_provenance = __esm({
|
|
3553
3553
|
"src/swift-coverage/provenance.ts"() {
|
|
3554
3554
|
"use strict";
|
|
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":"
|
|
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, ".."));
|
|
3556
3556
|
}
|
|
3557
3557
|
});
|
|
3558
3558
|
|
|
@@ -4758,7 +4758,7 @@ var init_swift_compile = __esm({
|
|
|
4758
4758
|
FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
|
|
4759
4759
|
(module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
|
|
4760
4760
|
).join("");
|
|
4761
|
-
compilerSourceDigest = true ? "
|
|
4761
|
+
compilerSourceDigest = true ? "ad311d7f868d4920f32f2ed00502f49f84fb83ae19817180a70ef5f799334169" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
4762
4762
|
CORE_FOUNDATION_HANDLE_IMPORTS = [
|
|
4763
4763
|
"CFAllocator",
|
|
4764
4764
|
"CFArray",
|
|
@@ -5290,7 +5290,7 @@ var init_react_native_core = __esm({
|
|
|
5290
5290
|
init_swift_distribution();
|
|
5291
5291
|
init_swift_package();
|
|
5292
5292
|
init_swiftContract();
|
|
5293
|
-
recipe = true ? "
|
|
5293
|
+
recipe = true ? "96416de7238919b274266f095ef4213211a2a26c133d0df7ab5e0459ded52ef1" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
|
|
5294
5294
|
}
|
|
5295
5295
|
});
|
|
5296
5296
|
|
|
@@ -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;
|
|
@@ -99,6 +99,7 @@ export declare function canonicalRegisteredFamily(family: string): string;
|
|
|
99
99
|
export declare function markSystemCompanionFontFamily(family: string): void;
|
|
100
100
|
export declare function getFontRegistrationGeneration(): number;
|
|
101
101
|
export declare function noteTextSymbolRegistered(): void;
|
|
102
|
+
export declare function getFontCollectionGeneration(): number;
|
|
102
103
|
export declare function registerEngineFontFamily(family: string): void;
|
|
103
104
|
export declare function markSystemNamedFaceFamily(face: SystemNamedFace): void;
|
|
104
105
|
export declare function registerLazySystemFontFamily(family: string): void;
|
|
@@ -136,6 +136,7 @@ export interface SceneNativeBinding {
|
|
|
136
136
|
peachPaintExtentParameters?: (slot: number, x: number, y: number, width: number, height: number, subtree: number, out: number) => number;
|
|
137
137
|
_peach_scene_paint_extent(slot: number, x: number, y: number, width: number, height: number, skipPortalViews: number, subtree: number): number;
|
|
138
138
|
_peach_scene_paint_extent_out(): number;
|
|
139
|
+
_peach_scene_reader_reach(slot: number): number;
|
|
139
140
|
peachRasterTransformParameters?: (slot: number, out: number) => number;
|
|
140
141
|
_peach_scene_raster_candidate(slot: number): void;
|
|
141
142
|
_peach_style_record(): number;
|
|
@@ -314,6 +315,7 @@ export declare class SceneTable {
|
|
|
314
315
|
setPaintExtentPublisher(publisher: PaintExtentPublisher): void;
|
|
315
316
|
setLayerBackdropReader(reader: (node: object) => boolean): void;
|
|
316
317
|
paintExtent(slot: number, x: number, y: number, width: number, height: number, skipPortalViews: boolean, subtree: boolean): Float64Array | null;
|
|
318
|
+
readerReach(slot: number): number | null;
|
|
317
319
|
node(slot: number): object | undefined;
|
|
318
320
|
writeSharedNode(slot: number, update: {
|
|
319
321
|
boundary?: number;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ShellNativeEvaluationOwner } from '../guest/native-evaluation-lease.d.ts';
|
|
2
|
+
import type { NativeSwiftWidgetMount } from './native-widgetContract.d.ts';
|
|
3
|
+
export type ActivityKitExtension = NativeSwiftWidgetMount['entry'];
|
|
4
|
+
export type ActivityKitActivityState = 'pending' | 'active' | 'stale' | 'ended';
|
|
5
|
+
export interface ActivityKitActivity {
|
|
6
|
+
readonly id: string;
|
|
7
|
+
readonly attributes: string;
|
|
8
|
+
readonly state: string;
|
|
9
|
+
readonly staleDate: number | null;
|
|
10
|
+
readonly activityState: ActivityKitActivityState;
|
|
11
|
+
}
|
|
12
|
+
export interface ActivityKitPublication {
|
|
13
|
+
readonly owner: ShellNativeEvaluationOwner;
|
|
14
|
+
readonly extension: ActivityKitExtension | null;
|
|
15
|
+
readonly activities: readonly ActivityKitActivity[];
|
|
16
|
+
}
|
|
17
|
+
export declare function readActivityKitActivities(value: unknown): ActivityKitActivity[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type NativeUICommand } from './native-ui-commandContract.d.ts';
|
|
2
2
|
import type { NativePhotoLibraryRequest, NativePhotoLibraryChange, NativePhotoLibraryResult } from '../ios/photoLibraryContract.d.ts';
|
|
3
3
|
import type { AppPreferenceValue, AppSettingsSnapshot, SystemPermissionApp, SystemPermissionMutation, SystemPermissionRequestContext } from '../permissions/system-permission-types.d.ts';
|
|
4
|
+
import type { ActivityKitPublication } from './activitykit-activityContract.d.ts';
|
|
4
5
|
import type { AuxAppSurfaceId } from './aux-surface-types.d.ts';
|
|
5
6
|
import type { ExpoWidgetsActivityPublication } from './expo-widgets-activityContract.d.ts';
|
|
6
7
|
import type { OneNativeContentPublication } from './one-native-contentContract.d.ts';
|
|
@@ -661,6 +662,9 @@ type NativeUIRequestBody = import('../capture/nativeScreenCaptureContract.d.ts')
|
|
|
661
662
|
} | {
|
|
662
663
|
kind: 'expoWidgets.activities';
|
|
663
664
|
publication: ExpoWidgetsActivityPublication;
|
|
665
|
+
} | {
|
|
666
|
+
kind: 'activityKit.activities';
|
|
667
|
+
publication: ActivityKitPublication;
|
|
664
668
|
} | {
|
|
665
669
|
kind: 'authSession.show';
|
|
666
670
|
ownerId: string;
|
|
@@ -18,10 +18,12 @@ export type NativeWidgetContent = {
|
|
|
18
18
|
presentation: NativeActivityPresentation;
|
|
19
19
|
attributes: string;
|
|
20
20
|
state: string;
|
|
21
|
+
id: string;
|
|
22
|
+
stale: boolean;
|
|
21
23
|
};
|
|
22
24
|
export interface NativeSwiftWidgetMount extends NativeWidgetIdentity {
|
|
23
25
|
entry: SwiftEntryOptions;
|
|
24
|
-
widget: OneWidgetMetadata;
|
|
26
|
+
widget: OneWidgetMetadata | null;
|
|
25
27
|
content: NativeWidgetContent;
|
|
26
28
|
}
|
|
27
29
|
export interface NativeExpoWidgetMount extends NativeWidgetIdentity {
|
package/package.json
CHANGED
|
@@ -103,7 +103,7 @@ export async function expoDiscoveryKey(options: {
|
|
|
103
103
|
// shared across PEACH_HOME overrides: entries are content-addressed by every
|
|
104
104
|
// input, the way the CocoaPods and pnpm machine caches are. a builders root
|
|
105
105
|
// moves it off the internal disk with the other swift caches.
|
|
106
|
-
function
|
|
106
|
+
export function expoDiscoveryCacheDir(): string {
|
|
107
107
|
return path.join(sharedCacheDir(path.join(ambientHomeDir(), 'cache')), 'expo-discovery')
|
|
108
108
|
}
|
|
109
109
|
|
|
@@ -215,7 +215,7 @@ function isStoredUnit(value: unknown): value is StoredExpoSwiftSourceUnit {
|
|
|
215
215
|
// misshapen misses, never throws: the cache must not break discovery.
|
|
216
216
|
export function readExpoDiscovery(key: string): ExpoSwiftSourceUnit[] | null | undefined {
|
|
217
217
|
let parsed: unknown
|
|
218
|
-
const record = path.join(
|
|
218
|
+
const record = path.join(expoDiscoveryCacheDir(), `${key}.json`)
|
|
219
219
|
try {
|
|
220
220
|
parsed = JSON.parse(fs.readFileSync(record, 'utf8'))
|
|
221
221
|
} catch {
|
|
@@ -244,7 +244,7 @@ export function readExpoDiscovery(key: string): ExpoSwiftSourceUnit[] | null | u
|
|
|
244
244
|
const read = (digest: string): string => {
|
|
245
245
|
const known = blobs.get(digest)
|
|
246
246
|
if (known !== undefined) return known
|
|
247
|
-
const blob = path.join(
|
|
247
|
+
const blob = path.join(expoDiscoveryCacheDir(), 'blobs', digest)
|
|
248
248
|
const body = fs.readFileSync(blob, 'utf8')
|
|
249
249
|
if (createHash('sha256').update(body).digest('hex') !== digest)
|
|
250
250
|
throw new Error('discovery blob differs from its digest')
|
|
@@ -299,7 +299,7 @@ let fileHashesLoaded = false
|
|
|
299
299
|
let fileHashesChanged = false
|
|
300
300
|
|
|
301
301
|
function fileHashesPath(): string {
|
|
302
|
-
return path.join(
|
|
302
|
+
return path.join(expoDiscoveryCacheDir(), 'framework-file-hashes.json')
|
|
303
303
|
}
|
|
304
304
|
|
|
305
305
|
function stampedFileHash(file: string): string {
|
|
@@ -525,7 +525,7 @@ function rewritePreparedPaths(options: {
|
|
|
525
525
|
frameworkDependencies[sourceDir] = sourceDigest
|
|
526
526
|
let portableDir = sourceDir
|
|
527
527
|
if (preparedDigest !== sourceDigest) {
|
|
528
|
-
const parent = path.join(
|
|
528
|
+
const parent = path.join(expoDiscoveryCacheDir(), 'frameworks', preparedDigest)
|
|
529
529
|
portableDir = path.join(parent, path.basename(dir))
|
|
530
530
|
if (!fs.existsSync(portableDir)) {
|
|
531
531
|
fs.mkdirSync(parent, { recursive: true })
|
|
@@ -567,7 +567,7 @@ export function writeExpoDiscovery(options: {
|
|
|
567
567
|
signal?: AbortSignal
|
|
568
568
|
}): ExpoSwiftSourceUnit[] | null | string {
|
|
569
569
|
try {
|
|
570
|
-
const dir =
|
|
570
|
+
const dir = expoDiscoveryCacheDir()
|
|
571
571
|
fs.mkdirSync(dir, { recursive: true })
|
|
572
572
|
const tmp = path.join(dir, `.${options.key}.${process.pid}.${randomUUID()}.tmp`)
|
|
573
573
|
if (options.units === null) {
|
package/src/expo-swift-host.ts
CHANGED
|
@@ -16,12 +16,14 @@ import { loadRNXAppConfig } from './app-config'
|
|
|
16
16
|
import { isLoopbackHost } from './backend-origin'
|
|
17
17
|
import { autolinkerAppleFlags } from './expo-autolinking'
|
|
18
18
|
import {
|
|
19
|
+
expoDiscoveryCacheDir,
|
|
19
20
|
expoDiscoveryKey,
|
|
20
21
|
readExpoDiscovery,
|
|
21
22
|
writeExpoDiscovery,
|
|
22
23
|
} from './expo-discovery-cache'
|
|
23
24
|
import { prebuiltExpoNative, prebuiltExpoSwiftResult } from './expo-native-prebuilt'
|
|
24
25
|
import {
|
|
26
|
+
hashExpoWorkspace,
|
|
25
27
|
nativeWorkspaceAvailable,
|
|
26
28
|
prepareExpoNativeWorkspace,
|
|
27
29
|
} from './expo-native-workspace'
|
|
@@ -322,6 +324,8 @@ function installSwiftInputTrace(): void {
|
|
|
322
324
|
path.join(swiftCacheDir(), 'swift-sdk-views'),
|
|
323
325
|
swiftRootLocksDir(),
|
|
324
326
|
path.join(cacheDir(), 'swift-tmp'),
|
|
327
|
+
// content-addressed records whose reads renew their timestamps for expiry.
|
|
328
|
+
expoDiscoveryCacheDir(),
|
|
325
329
|
].filter((prefix, index, all) => all.indexOf(prefix) === index)
|
|
326
330
|
ignoredRoots = prefixes.flatMap((root) => {
|
|
327
331
|
try {
|
|
@@ -437,7 +441,9 @@ async function witnessMatches(witness: Witness): Promise<boolean> {
|
|
|
437
441
|
|
|
438
442
|
// the evaluated Expo config is a key input: a child process evaluates it from
|
|
439
443
|
// app config, plugins and env files the witness cannot see, and its result file
|
|
440
|
-
// is new on every run, so it is read untraced and compared here instead.
|
|
444
|
+
// is new on every run, so it is read untraced and compared here instead. a
|
|
445
|
+
// prepared workspace is a key input the same way: a discovery record served
|
|
446
|
+
// for its hash reads none of the inputs that hash covers.
|
|
441
447
|
async function discoveryKey(
|
|
442
448
|
root: string,
|
|
443
449
|
installedWorkspace: string | undefined,
|
|
@@ -445,11 +451,14 @@ async function discoveryKey(
|
|
|
445
451
|
iosTarget: string | undefined,
|
|
446
452
|
moduleRoot?: string,
|
|
447
453
|
): Promise<string> {
|
|
448
|
-
const
|
|
454
|
+
const preparesWorkspace =
|
|
455
|
+
prepareNative && !installedWorkspace && nativeWorkspaceAvailable()
|
|
456
|
+
const [config, expoConfig, workspace] = await Promise.all([
|
|
449
457
|
loadRNXAppConfig(resolveAppProject(root)),
|
|
450
458
|
readExpoConfigAsync(root),
|
|
459
|
+
preparesWorkspace ? traceStore.exit(() => hashExpoWorkspace(root)) : null,
|
|
451
460
|
])
|
|
452
|
-
return `${fs.realpathSync(root)}\0${installedWorkspace ?? ''}\0${iosTarget ?? ''}\0${moduleRoot ?? ''}\0${prepareNative ? '1' : '0'}\0${JSON.stringify(config)}\0${JSON.stringify(expoConfig)}`
|
|
461
|
+
return `${fs.realpathSync(root)}\0${installedWorkspace ?? ''}\0${iosTarget ?? ''}\0${moduleRoot ?? ''}\0${prepareNative ? '1' : '0'}\0${JSON.stringify(config)}\0${JSON.stringify(expoConfig)}\0${workspace?.hash ?? ''}`
|
|
453
462
|
}
|
|
454
463
|
|
|
455
464
|
function cloneNativeTarget(target: SwiftNativeTarget): SwiftNativeTarget {
|
|
@@ -2114,7 +2123,13 @@ export function expoEntry(units: ExpoSwiftSourceUnit[], oneSDK = false): string
|
|
|
2114
2123
|
Object.keys(unit.files).some((file) => file.startsWith(`Sources/${namespace}/`)),
|
|
2115
2124
|
),
|
|
2116
2125
|
)
|
|
2117
|
-
const bridgeModules = units.flatMap((unit) =>
|
|
2126
|
+
const bridgeModules = units.flatMap((unit) =>
|
|
2127
|
+
unit.bridgeModules.map((registration) =>
|
|
2128
|
+
registration === `${unit.namespace}.__peachReactModule_${unit.namespace}()`
|
|
2129
|
+
? registration.slice(unit.namespace.length + 1)
|
|
2130
|
+
: registration,
|
|
2131
|
+
),
|
|
2132
|
+
)
|
|
2118
2133
|
const subscribers = units.flatMap((unit) => unit.appDelegateSubscribers)
|
|
2119
2134
|
const handlers = units.flatMap((unit) => unit.reactDelegateHandlers)
|
|
2120
2135
|
const delegates =
|
package/src/host/bridge-host.ts
CHANGED
|
@@ -57,6 +57,10 @@ import {
|
|
|
57
57
|
import { rnxRuntime } from '../runtime-delivery.ts'
|
|
58
58
|
import { ensureRuntimePackFor } from '../runtime-packs.ts'
|
|
59
59
|
import { handleTurboRequest, TURBO_ROUTE } from '../turbo-bundle.ts'
|
|
60
|
+
import {
|
|
61
|
+
handleWidgetExtensionRequest,
|
|
62
|
+
WIDGET_EXTENSION_ROUTE,
|
|
63
|
+
} from '../widget-extension-bundle'
|
|
60
64
|
import { AgentHost, type AgentHostOptions } from './agent-host.ts'
|
|
61
65
|
import { serveAppPackageResource } from './app-package-handler'
|
|
62
66
|
import {
|
|
@@ -1566,6 +1570,7 @@ export class SootSimBridgeHost {
|
|
|
1566
1570
|
const route = req.url?.split('?')[0] ?? ''
|
|
1567
1571
|
if (
|
|
1568
1572
|
route === EXPO_WIDGETS_ROUTE ||
|
|
1573
|
+
route === WIDGET_EXTENSION_ROUTE ||
|
|
1569
1574
|
route === NITRO_ROUTE ||
|
|
1570
1575
|
route === ONE_SDK_ROUTE ||
|
|
1571
1576
|
route === TURBO_ROUTE ||
|
|
@@ -1584,6 +1589,10 @@ export class SootSimBridgeHost {
|
|
|
1584
1589
|
void handleExpoWidgetsRequest(req, res)
|
|
1585
1590
|
return
|
|
1586
1591
|
}
|
|
1592
|
+
if (route === WIDGET_EXTENSION_ROUTE) {
|
|
1593
|
+
void handleWidgetExtensionRequest(req, res)
|
|
1594
|
+
return
|
|
1595
|
+
}
|
|
1587
1596
|
if (route === ONE_SDK_ROUTE) {
|
|
1588
1597
|
void handleOneSDKRequest(req, res)
|
|
1589
1598
|
return
|