peachsim 0.1.1845 → 0.1.1847
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/detox/index.ts +14 -4
- 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 +139 -61
- 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 +14 -6
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +45 -23
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +138 -60
- package/dist-lib/host/fetch-proxy-handler.cjs +2 -2
- 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 +43 -19
- 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 +43 -19
- package/dist-lib/native-app-identity-project.cjs +39 -15
- package/dist-lib/native-app-identity-project.mjs +39 -15
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +24 -24
- package/dist-lib/public-origins-lib.json +53 -53
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +143 -65
- package/dist-lib/swift-compile.cjs +8 -3
- package/dist-lib/swift-compile.mjs +7 -3
- 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 +28 -13
- package/dist-lib/vite.cjs +2 -2
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/settings/duo-fold-bus.d.ts +3 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/src/expo-swift-host.ts +35 -18
- package/src/native-firebase-config.ts +3 -3
- package/src/swift-compile.ts +11 -3
- package/src/swift-host.ts +5 -1
- package/src/turbo-codegen-intake.ts +41 -6
- package/src/turbo-source.ts +56 -24
- package/src/xcode-project.ts +51 -18
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1847 | (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;
|
|
@@ -39,7 +39,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
39
39
|
var define_SWIFT_COVERAGE_SOURCE_DIGESTS_default;
|
|
40
40
|
var init_define_SWIFT_COVERAGE_SOURCE_DIGESTS = __esm({
|
|
41
41
|
"<define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>"() {
|
|
42
|
-
define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "8b398ceb60faf4a5729842cab60f49c2e601d6fc6bbbc1faec9023ecb8141990", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "08583ee03b92e00f3f331e52fb480ef81c9fd7e668d796a5afcfa07978bcaf03", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "26f8d4a25d1af9917f0005153c73c9cefa4f6681c9d56c6333b8096190db0431", "swift-package.ts": "e224b5e20ed3a86df1c62d6429e88234ed65317ce32c61c1b6b02aaee173d64f", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "a90155695844684e625ab83687161104f028ef34030715a40042a4407b77fca0", "home-paths.ts": "744d0e29fcc4baae6748161da45dd75e357348703331dad685c74ec813abcc83", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "
|
|
42
|
+
define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "8b398ceb60faf4a5729842cab60f49c2e601d6fc6bbbc1faec9023ecb8141990", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "08583ee03b92e00f3f331e52fb480ef81c9fd7e668d796a5afcfa07978bcaf03", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "26f8d4a25d1af9917f0005153c73c9cefa4f6681c9d56c6333b8096190db0431", "swift-package.ts": "e224b5e20ed3a86df1c62d6429e88234ed65317ce32c61c1b6b02aaee173d64f", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "a90155695844684e625ab83687161104f028ef34030715a40042a4407b77fca0", "home-paths.ts": "744d0e29fcc4baae6748161da45dd75e357348703331dad685c74ec813abcc83", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "02dac6951dc7dd8465a421670901c932ac320fc9f8fe277885b2916149d40182", "xcode-target-members.ts": "75a23a5fc54cc6f5e952d545f2f0f86241ff36525ab4e568c172e83c3bfb9da4", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
|
|
@@ -10408,7 +10408,7 @@ var init_standalone = __esm({
|
|
|
10408
10408
|
var runtime_companion_default;
|
|
10409
10409
|
var init_runtime_companion = __esm({
|
|
10410
10410
|
"runtime-companion.json"() {
|
|
10411
|
-
runtime_companion_default = { abi: 1, sha256: "
|
|
10411
|
+
runtime_companion_default = { abi: 1, sha256: "031fe7fcb9db836c5df1ddc8cf3ce1690992fc0465ae1d1210d7ef9b62547d48", file: "node/cli-031fe7fcb9db836c5df1ddc8cf3ce1690992fc0465ae1d1210d7ef9b62547d48.cjs" };
|
|
10412
10412
|
}
|
|
10413
10413
|
});
|
|
10414
10414
|
|
|
@@ -29917,6 +29917,9 @@ var OPTIONAL_FRAMEWORK_DEPENDENCIES = {
|
|
|
29917
29917
|
FBAudienceNetwork: []
|
|
29918
29918
|
};
|
|
29919
29919
|
var OPTIONAL_FRAMEWORKS = new Set(Object.keys(OPTIONAL_FRAMEWORK_DEPENDENCIES));
|
|
29920
|
+
function swiftOptionalFramework(name3) {
|
|
29921
|
+
return OPTIONAL_FRAMEWORKS.has(name3);
|
|
29922
|
+
}
|
|
29920
29923
|
var SWIFT_IMPORT = /^\s*(?:@\w+(?:\([^)]*\))?\s+)*import\s+(?:(?:typealias|struct|class|enum|protocol|let|var|func)\s+)?([A-Za-z_][A-Za-z0-9_]*)/;
|
|
29921
29924
|
var kleeneNot = (value) => value === void 0 ? void 0 : !value;
|
|
29922
29925
|
var kleeneAnd = (left, right) => left === false || right === false ? false : left === true && right === true ? true : void 0;
|
|
@@ -30192,7 +30195,7 @@ function swiftTargetDependencies(files2, targets) {
|
|
|
30192
30195
|
);
|
|
30193
30196
|
const deps = new Set(
|
|
30194
30197
|
(target.dependencies ?? []).flatMap(
|
|
30195
|
-
(dependency) => dependency.kind === "target" && dependency.name !== target.name && names.has(dependency.name) ? [dependency.name] : []
|
|
30198
|
+
(dependency) => dependency.kind === "target" && dependency.name !== target.name && names.has(dependency.name) || dependency.kind === "product" && dependency.package === "sootsim-swift" && OPTIONAL_FRAMEWORKS.has(dependency.name) ? [dependency.name] : []
|
|
30196
30199
|
)
|
|
30197
30200
|
);
|
|
30198
30201
|
for (const [file, contents] of Object.entries(files2)) {
|
|
@@ -30239,7 +30242,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
30239
30242
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
30240
30243
|
var MULTI_MANIFEST_VERSION = 65;
|
|
30241
30244
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
30242
|
-
var compilerSourceDigest = true ? "
|
|
30245
|
+
var compilerSourceDigest = true ? "de4cf043c56670d57d1dccc969b1b12b70e242e3015fd98011df86b7ce82c4d6" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
30243
30246
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
30244
30247
|
const hash = (0, import_node_crypto17.createHash)("sha256");
|
|
30245
30248
|
hash.update(`swift-compile
|
|
@@ -36107,7 +36110,7 @@ function applyConditions(raw2, configuration) {
|
|
|
36107
36110
|
);
|
|
36108
36111
|
if (matches) conditional[key2.slice(0, bracket)] = value;
|
|
36109
36112
|
}
|
|
36110
|
-
return
|
|
36113
|
+
return [plain, conditional];
|
|
36111
36114
|
}
|
|
36112
36115
|
function applyOperator(value, operator) {
|
|
36113
36116
|
if (operator.startsWith("default=")) return value === "" ? operator.slice(8) : value;
|
|
@@ -36352,8 +36355,8 @@ function targetSettings(ref, configuration, builtins, options = {}, overrides =
|
|
|
36352
36355
|
const fromFile = baseFile ? readXcconfig(baseFile, read) : {};
|
|
36353
36356
|
xcconfigs.push(...read);
|
|
36354
36357
|
return [
|
|
36355
|
-
applyConditions(fromFile, name3),
|
|
36356
|
-
applyConditions(
|
|
36358
|
+
...applyConditions(fromFile, name3),
|
|
36359
|
+
...applyConditions(
|
|
36357
36360
|
Object.fromEntries(
|
|
36358
36361
|
Object.entries(own).flatMap(
|
|
36359
36362
|
([key2, value]) => typeof value === "string" ? [[key2, value]] : Array.isArray(value) ? [[key2, list(value).join(" ")]] : []
|
|
@@ -36997,11 +37000,24 @@ function selectIosAppTarget(projectRoot, iosTarget) {
|
|
|
36997
37000
|
const nested = import_node_path45.default.join(projectRoot, "ios");
|
|
36998
37001
|
const iosRoot = import_node_fs46.default.existsSync(nested) ? nested : projectRoot;
|
|
36999
37002
|
const entries = import_node_fs46.default.readdirSync(iosRoot, { withFileTypes: true });
|
|
37000
|
-
const projects2 = (entries.some((entry) => entry.isDirectory() && entry.name.endsWith(".xcodeproj")) ? entries.filter((entry) => entry.isDirectory() && entry.name.endsWith(".xcodeproj")).map((entry) =>
|
|
37001
|
-
|
|
37003
|
+
const projects2 = (entries.some((entry) => entry.isDirectory() && entry.name.endsWith(".xcodeproj")) ? entries.filter((entry) => entry.isDirectory() && entry.name.endsWith(".xcodeproj")).map((entry) => ({
|
|
37004
|
+
xcodeproj: import_node_path45.default.join(iosRoot, entry.name),
|
|
37005
|
+
workspace: null
|
|
37006
|
+
})) : entries.filter((entry) => entry.isDirectory() && entry.name.endsWith(".xcworkspace")).flatMap((entry) => {
|
|
37007
|
+
const workspace = import_node_path45.default.join(iosRoot, entry.name);
|
|
37008
|
+
return workspaceReferences(workspace).map((xcodeproj2) => ({
|
|
37009
|
+
xcodeproj: xcodeproj2,
|
|
37010
|
+
workspace
|
|
37011
|
+
}));
|
|
37012
|
+
}).filter(
|
|
37013
|
+
({ xcodeproj: xcodeproj2 }) => xcodeproj2.endsWith(".xcodeproj") && !xcodeproj2.split(import_node_path45.default.sep).includes("Pods") && import_node_fs46.default.existsSync(xcodeproj2)
|
|
37002
37014
|
).filter(
|
|
37003
|
-
(xcodeproj2) => listXcodeAppTargets(xcodeproj2, { requireSources: false }).length > 0
|
|
37004
|
-
)).map((
|
|
37015
|
+
({ xcodeproj: xcodeproj2 }) => listXcodeAppTargets(xcodeproj2, { requireSources: false }).length > 0
|
|
37016
|
+
)).map(({ xcodeproj: xcodeproj2, workspace }) => ({
|
|
37017
|
+
xcodeproj: xcodeproj2,
|
|
37018
|
+
workspace,
|
|
37019
|
+
name: import_node_path45.default.basename(xcodeproj2)
|
|
37020
|
+
}));
|
|
37005
37021
|
if (projects2.length === 0) return null;
|
|
37006
37022
|
if (projects2.length > 1 && !iosTarget) {
|
|
37007
37023
|
throw new NativeAppTargetSelectionError(
|
|
@@ -37042,7 +37058,7 @@ function selectIosAppTarget(projectRoot, iosTarget) {
|
|
|
37042
37058
|
}
|
|
37043
37059
|
if (!appTargets.includes(target))
|
|
37044
37060
|
throw new Error(`native app identity has no application target ${target}`);
|
|
37045
|
-
return { xcodeproj, target };
|
|
37061
|
+
return { xcodeproj, target, workspace: project2.workspace };
|
|
37046
37062
|
}
|
|
37047
37063
|
var workspaceResolvedFile = (xcodeprojOrWorkspace) => import_node_path45.default.join(
|
|
37048
37064
|
xcodeprojOrWorkspace.endsWith(".xcworkspace") ? xcodeprojOrWorkspace : import_node_path45.default.join(xcodeprojOrWorkspace, "project.xcworkspace"),
|
|
@@ -37819,7 +37835,14 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
37819
37835
|
const binaryFrameworks = /* @__PURE__ */ new Map();
|
|
37820
37836
|
const searchedFrameworks = /* @__PURE__ */ new Map();
|
|
37821
37837
|
const frameworkSearchDirectories = /* @__PURE__ */ new Set();
|
|
37838
|
+
const sdkFrameworks = /* @__PURE__ */ new Set();
|
|
37822
37839
|
for (const { ref, settings: settings2 } of builtTargets) {
|
|
37840
|
+
const ldflags = settingList(settings2("OTHER_LDFLAGS"));
|
|
37841
|
+
ldflags.forEach((flag, index) => {
|
|
37842
|
+
const name3 = ldflags[index + 1];
|
|
37843
|
+
if ((flag === "-framework" || flag === "-weak_framework") && name3)
|
|
37844
|
+
sdkFrameworks.add(name3);
|
|
37845
|
+
});
|
|
37823
37846
|
const absolute = (raw2) => import_node_path45.default.resolve(ref.project.projectDir, expand(raw2, settings2));
|
|
37824
37847
|
const requested = options.nativeModules;
|
|
37825
37848
|
const includeBinary = (name3, dir) => {
|
|
@@ -37936,10 +37959,11 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
37936
37959
|
const rawPath = str(file?.path) ?? "";
|
|
37937
37960
|
const name3 = /([^/]+)\.(xc)?framework$/.exec(rawPath)?.[1];
|
|
37938
37961
|
if (file?.isa !== "PBXFileReference" || !name3) continue;
|
|
37939
|
-
if (tree3 === "
|
|
37940
|
-
|
|
37941
|
-
|
|
37942
|
-
|
|
37962
|
+
if (tree3 === "SDKROOT" || /\/System\/Library\/Frameworks\/[^/]+$/.test(`/${rawPath}`)) {
|
|
37963
|
+
sdkFrameworks.add(name3);
|
|
37964
|
+
continue;
|
|
37965
|
+
}
|
|
37966
|
+
if (tree3 === "BUILT_PRODUCTS_DIR" || tree3 === "DEVELOPER_DIR" || // a target in the workspace builds it, so it exists only after that build
|
|
37943
37967
|
byProduct.has(import_node_path45.default.basename(rawPath)))
|
|
37944
37968
|
continue;
|
|
37945
37969
|
const resolved = fileId ? project2.resolvePath(fileId) : null;
|
|
@@ -38021,6 +38045,9 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
38021
38045
|
...new Set(localPackageDirs.map((dir) => import_node_fs46.default.realpathSync(dir)))
|
|
38022
38046
|
].sort(),
|
|
38023
38047
|
binaryFrameworks: [...binaryFrameworks].map(([name3, file]) => ({ name: name3, path: file })).sort((left, right) => left.name.localeCompare(right.name)),
|
|
38048
|
+
sdkFrameworks: [...sdkFrameworks].filter(
|
|
38049
|
+
(name3) => !binaryFrameworks.has(name3) && !byProduct.has(`${name3}.framework`)
|
|
38050
|
+
).sort(),
|
|
38024
38051
|
packageResolved,
|
|
38025
38052
|
appTargets: appTargetNames,
|
|
38026
38053
|
configuration,
|
|
@@ -40592,7 +40619,7 @@ function standinSourceDigest(srcDir = __sootsim_import_meta_dirname) {
|
|
|
40592
40619
|
}
|
|
40593
40620
|
return hash.digest("hex");
|
|
40594
40621
|
}
|
|
40595
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
40622
|
+
var STANDIN_SOURCE_DIGEST = true ? "a6f60f933c899da637801bc8d8f40e2f842fc5d4e54188240596b705c8b167fa" : standinSourceDigest();
|
|
40596
40623
|
|
|
40597
40624
|
// src/swift-standins.ts
|
|
40598
40625
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -47958,6 +47985,7 @@ function xcodeManifest(layout) {
|
|
|
47958
47985
|
);
|
|
47959
47986
|
return native ? [productDependency(native.name, native.packageDir)] : [];
|
|
47960
47987
|
});
|
|
47988
|
+
const sdkProducts = layout.app.sdkFrameworks.filter(swiftOptionalFramework).map((name3) => `.product(name: ${JSON.stringify(name3)}, package: "sootsim-swift")`);
|
|
47961
47989
|
const clangSettings = (target) => [
|
|
47962
47990
|
["cSettings", "c", target.cDefines],
|
|
47963
47991
|
["cxxSettings", "cxx", target.cxxDefines]
|
|
@@ -47980,7 +48008,7 @@ function xcodeManifest(layout) {
|
|
|
47980
48008
|
"// swift-tools-version: 6.2",
|
|
47981
48009
|
"import PackageDescription",
|
|
47982
48010
|
`let package = Package(name: "app", ${layout.app.iosDeploymentTarget ? `platforms: [.iOS(${JSON.stringify(layout.app.iosDeploymentTarget)})], ` : ""}dependencies: [${[...nativePaths].map(([name3, directory2]) => `.package(name: ${JSON.stringify(name3)}, path: ${JSON.stringify(directory2)})`).join(", ")}], targets: [`,
|
|
47983
|
-
` .executableTarget(name: "${layout.app.moduleName}", dependencies: [${appProducts.join(", ")}], path: "${XCODE_APP_DIR}", ${appSettings}),`,
|
|
48011
|
+
` .executableTarget(name: "${layout.app.moduleName}", dependencies: [${[...appProducts, ...sdkProducts].join(", ")}], path: "${XCODE_APP_DIR}", ${appSettings}),`,
|
|
47984
48012
|
...layout.targets.map(
|
|
47985
48013
|
(target) => target.systemLibrary ? ` .systemLibrary(name: "${target.name}", path: "${target.path}"),` : ` .target(name: "${target.name}", dependencies: [${dependencies(target)}], path: "${target.path}", ${target.exclude.length > 0 ? `exclude: ${JSON.stringify(target.exclude)}, ` : ""}${target.resources ? "resources: [], " : ""}${target.publicHeadersPath === void 0 ? "" : `publicHeadersPath: ${JSON.stringify(target.publicHeadersPath)}, `}${clangSettings(target)}${swiftManifestSettings(target)}${libraries(target)}),`
|
|
47986
48014
|
),
|
|
@@ -51099,7 +51127,21 @@ var RENDERER_PODS_VERSIONED = /* @__PURE__ */ new Set([
|
|
|
51099
51127
|
"RCTSwiftUI"
|
|
51100
51128
|
]);
|
|
51101
51129
|
var COMPILED_SOURCE = /\.(?:c|cc|cpp|cxx|m|mm|swift)$/;
|
|
51102
|
-
|
|
51130
|
+
var LEGACY_BRIDGE_DEV_SUPPORT = [
|
|
51131
|
+
"RCTInspectorNetworkHelper.mm",
|
|
51132
|
+
"RCTInspectorUtils.mm",
|
|
51133
|
+
"RCTPausedInDebuggerOverlayController.mm"
|
|
51134
|
+
];
|
|
51135
|
+
var LEGACY_BRIDGE_PODS = /* @__PURE__ */ new Set([
|
|
51136
|
+
"React-Core",
|
|
51137
|
+
"React-cxxreact",
|
|
51138
|
+
"React-jsinspector",
|
|
51139
|
+
"React-jsinspectortracing",
|
|
51140
|
+
"React-perflogger",
|
|
51141
|
+
"React-jsiexecutor",
|
|
51142
|
+
"Yoga"
|
|
51143
|
+
]);
|
|
51144
|
+
function installedFabricSources(reactNativeRoot, { legacyBridge = false, bridgeOnly = false } = {}) {
|
|
51103
51145
|
const root = import_node_fs73.default.realpathSync(reactNativeRoot);
|
|
51104
51146
|
const specs = ["React", "ReactCommon", "ReactApple", "Libraries"].flatMap(
|
|
51105
51147
|
(directory2) => import_node_fs73.default.readdirSync(import_node_path71.default.join(root, directory2), {
|
|
@@ -51107,12 +51149,16 @@ function installedFabricSources(reactNativeRoot) {
|
|
|
51107
51149
|
withFileTypes: true
|
|
51108
51150
|
})
|
|
51109
51151
|
).filter(
|
|
51110
|
-
(entry) => entry.isFile() && (RENDERER_PODS.has(import_node_path71.default.basename(entry.name, ".podspec")) || RENDERER_PODS_VERSIONED.has(import_node_path71.default.basename(entry.name, ".podspec"))) && entry.name.endsWith(".podspec")
|
|
51111
|
-
).map((entry) => import_node_path71.default.join(entry.parentPath, entry.name)).concat(import_node_path71.default.join(root, "React-Core.podspec")).
|
|
51152
|
+
(entry) => entry.isFile() && (RENDERER_PODS.has(import_node_path71.default.basename(entry.name, ".podspec")) || RENDERER_PODS_VERSIONED.has(import_node_path71.default.basename(entry.name, ".podspec")) || bridgeOnly && LEGACY_BRIDGE_PODS.has(import_node_path71.default.basename(entry.name, ".podspec"))) && entry.name.endsWith(".podspec")
|
|
51153
|
+
).map((entry) => import_node_path71.default.join(entry.parentPath, entry.name)).concat(import_node_path71.default.join(root, "React-Core.podspec")).filter(
|
|
51154
|
+
(file) => !bridgeOnly || LEGACY_BRIDGE_PODS.has(import_node_path71.default.basename(file, ".podspec"))
|
|
51155
|
+
).sort();
|
|
51112
51156
|
const required = specs.filter(
|
|
51113
|
-
(file) => RENDERER_PODS.has(
|
|
51157
|
+
(file) => (bridgeOnly ? LEGACY_BRIDGE_PODS : RENDERER_PODS).has(
|
|
51158
|
+
import_node_path71.default.basename(file, ".podspec")
|
|
51159
|
+
)
|
|
51114
51160
|
);
|
|
51115
|
-
if (required.length !== RENDERER_PODS.size)
|
|
51161
|
+
if (required.length !== (bridgeOnly ? LEGACY_BRIDGE_PODS : RENDERER_PODS).size)
|
|
51116
51162
|
throw new Error(`${reactNativeRoot}: installed renderer podspecs are incomplete`);
|
|
51117
51163
|
return specs.map((file) => {
|
|
51118
51164
|
const directory2 = import_node_path71.default.dirname(file);
|
|
@@ -51122,7 +51168,7 @@ function installedFabricSources(reactNativeRoot) {
|
|
|
51122
51168
|
if (core) {
|
|
51123
51169
|
files2.push(
|
|
51124
51170
|
...podspecSourceFiles(directory2, podspecSubspec(spec, "DevSupport")).filter(
|
|
51125
|
-
(source) => import_node_path71.default.posix.basename(source) === "RCTDevLoadingViewSetEnabled.m"
|
|
51171
|
+
(source) => import_node_path71.default.posix.basename(source) === "RCTDevLoadingViewSetEnabled.m" || legacyBridge && LEGACY_BRIDGE_DEV_SUPPORT.includes(import_node_path71.default.posix.basename(source))
|
|
51126
51172
|
)
|
|
51127
51173
|
);
|
|
51128
51174
|
}
|
|
@@ -51201,6 +51247,7 @@ function codegenSpecRoot(codegen) {
|
|
|
51201
51247
|
return import_node_fs74.default.existsSync(nested) ? nested : codegen;
|
|
51202
51248
|
}
|
|
51203
51249
|
var TURBO_CORE_TARGET = "TurboCore";
|
|
51250
|
+
var TURBO_FMT_TARGET = "TurboFmt";
|
|
51204
51251
|
var TURBO_ENTRY_HEADER = "PeachTurboEntry.hpp";
|
|
51205
51252
|
var REGISTRATION = "registerCxxModuleToGlobalModuleMap";
|
|
51206
51253
|
var CODEGEN_OBJC = /@generated by codegen project: GenerateModuleObjCpp\b/;
|
|
@@ -52275,8 +52322,32 @@ async function collectTurboSources(options) {
|
|
|
52275
52322
|
original(TURBO_CORE_TARGET, "react-native", reactNative.root, unit2);
|
|
52276
52323
|
};
|
|
52277
52324
|
addUnits(REACT_NATIVE_UNITS);
|
|
52325
|
+
const addPodSources = (pods) => {
|
|
52326
|
+
for (const pod of pods) {
|
|
52327
|
+
const swift = pod.files.some((file) => file.endsWith(".swift"));
|
|
52328
|
+
const name3 = swift ? pod.module : TURBO_CORE_TARGET;
|
|
52329
|
+
if (swift) {
|
|
52330
|
+
if (!pod.swiftVersion || !/^[56](?:\.0)?$/.test(pod.swiftVersion))
|
|
52331
|
+
throw new Error(
|
|
52332
|
+
pod.module + ": renderer pod must declare its Swift language version"
|
|
52333
|
+
);
|
|
52334
|
+
result.targets.push({
|
|
52335
|
+
...target(name3, []),
|
|
52336
|
+
languageMode: Number(pod.swiftVersion),
|
|
52337
|
+
cxxInterop: false
|
|
52338
|
+
});
|
|
52339
|
+
result.rendererSwiftTargets.push(name3);
|
|
52340
|
+
}
|
|
52341
|
+
for (const file of pod.files) {
|
|
52342
|
+
const collected = original(name3, "react-native", reactNative.root, file);
|
|
52343
|
+
if (swift)
|
|
52344
|
+
result.externalPodSources.push({ moduleName: pod.module, file: collected });
|
|
52345
|
+
}
|
|
52346
|
+
}
|
|
52347
|
+
};
|
|
52278
52348
|
let objc = false;
|
|
52279
52349
|
let fabric = false;
|
|
52350
|
+
let legacyBridge = false;
|
|
52280
52351
|
const objcClasses = /* @__PURE__ */ new Set();
|
|
52281
52352
|
const unregisteredObjcClasses = /* @__PURE__ */ new Set();
|
|
52282
52353
|
const deferredDepUnits = [];
|
|
@@ -52734,6 +52805,9 @@ ${declared.map((symbol2) => `extern "C" void ${symbol2}();
|
|
|
52734
52805
|
);
|
|
52735
52806
|
addUnits(REACT_NATIVE_OBJC_UNITS);
|
|
52736
52807
|
addUnits(REACT_NATIVE_OBJC_VERSIONED_UNITS, true);
|
|
52808
|
+
legacyBridge = /\bRCTCxxBridge\b/.test(
|
|
52809
|
+
import_node_fs74.default.readFileSync(import_node_path72.default.join(reactNative.root, "React/Base/RCTBridge.mm"), "utf8")
|
|
52810
|
+
);
|
|
52737
52811
|
if (decoratorHasPerformanceLogger)
|
|
52738
52812
|
addUnits([
|
|
52739
52813
|
"React/Base/RCTPerformanceLogger.mm",
|
|
@@ -52750,28 +52824,11 @@ ${declared.map((symbol2) => `extern "C" void ${symbol2}();
|
|
|
52750
52824
|
);
|
|
52751
52825
|
}
|
|
52752
52826
|
}
|
|
52753
|
-
if (fabric) {
|
|
52754
|
-
|
|
52755
|
-
|
|
52756
|
-
|
|
52757
|
-
|
|
52758
|
-
if (!pod.swiftVersion || !/^[56](?:\.0)?$/.test(pod.swiftVersion))
|
|
52759
|
-
throw new Error(
|
|
52760
|
-
pod.module + ": renderer pod must declare its Swift language version"
|
|
52761
|
-
);
|
|
52762
|
-
result.targets.push({
|
|
52763
|
-
...target(name3, []),
|
|
52764
|
-
languageMode: Number(pod.swiftVersion),
|
|
52765
|
-
cxxInterop: false
|
|
52766
|
-
});
|
|
52767
|
-
result.rendererSwiftTargets.push(name3);
|
|
52768
|
-
}
|
|
52769
|
-
for (const file of pod.files) {
|
|
52770
|
-
const collected = original(name3, "react-native", reactNative.root, file);
|
|
52771
|
-
if (swift)
|
|
52772
|
-
result.externalPodSources.push({ moduleName: pod.module, file: collected });
|
|
52773
|
-
}
|
|
52774
|
-
}
|
|
52827
|
+
if (fabric || legacyBridge) {
|
|
52828
|
+
if (!fabric) result.targets[0].cxxDefines = [...defines, "USE_HERMES=1"];
|
|
52829
|
+
addPodSources(
|
|
52830
|
+
installedFabricSources(reactNative.root, { legacyBridge, bridgeOnly: !fabric })
|
|
52831
|
+
);
|
|
52775
52832
|
const patterns = installedRendererDependencyGlobs(reactNative.root);
|
|
52776
52833
|
const matchers = new Map(
|
|
52777
52834
|
Object.entries(patterns).map(([name3, globs]) => [name3, globs.map(globRegex)])
|
|
@@ -52781,13 +52838,27 @@ ${declared.map((symbol2) => `extern "C" void ${symbol2}();
|
|
|
52781
52838
|
reactNative.root,
|
|
52782
52839
|
(name3, relative4) => matchers.get(name3)?.some((pattern) => pattern.test(relative4)) ?? false
|
|
52783
52840
|
)) {
|
|
52784
|
-
const
|
|
52841
|
+
const fmtUnit = unit2.name === "fmt" && !fabric;
|
|
52842
|
+
const unitTarget = fmtUnit ? TURBO_FMT_TARGET : TURBO_CORE_TARGET;
|
|
52843
|
+
if (fmtUnit && !result.targets.some((t) => t.name === TURBO_FMT_TARGET)) {
|
|
52844
|
+
result.targets.push({
|
|
52845
|
+
...target(TURBO_FMT_TARGET, [TURBO_CORE_TARGET]),
|
|
52846
|
+
clangSettings: [
|
|
52847
|
+
{ tool: "cxx", flags: ["-fexperimental-new-constant-interpreter"] }
|
|
52848
|
+
]
|
|
52849
|
+
});
|
|
52850
|
+
add(
|
|
52851
|
+
`${targetPath(TURBO_FMT_TARGET)}/include/${TURBO_FMT_TARGET}.h`,
|
|
52852
|
+
"#pragma once\n"
|
|
52853
|
+
);
|
|
52854
|
+
}
|
|
52855
|
+
const key2 = `${targetPath(unitTarget)}/dependencies/${unit2.name}/${unit2.relative}`;
|
|
52785
52856
|
if (add(key2, unit2.text)) {
|
|
52786
52857
|
result.sources.push({ file: key2, source: unit2.source, sha256: unit2.sha256 });
|
|
52787
52858
|
scanText(
|
|
52788
52859
|
{
|
|
52789
52860
|
key: key2,
|
|
52790
|
-
targetName:
|
|
52861
|
+
targetName: unitTarget,
|
|
52791
52862
|
label: "",
|
|
52792
52863
|
root: "",
|
|
52793
52864
|
relative: unit2.includePath
|
|
@@ -53802,9 +53873,12 @@ ${source}` : source;
|
|
|
53802
53873
|
unit2.files["Package.swift"] = expoManifest(
|
|
53803
53874
|
unit2.files,
|
|
53804
53875
|
"",
|
|
53805
|
-
new Map(
|
|
53806
|
-
installedTargets.filter((target2) => included.has(target2.name)).map((target2) => [target2.name, target2])
|
|
53807
|
-
|
|
53876
|
+
new Map([
|
|
53877
|
+
...installedTargets.filter((target2) => included.has(target2.name)).map((target2) => [target2.name, target2]),
|
|
53878
|
+
...installedTargets.filter((target2) => target2.executable).map(
|
|
53879
|
+
(target2) => ["PeachExpoApp", target2]
|
|
53880
|
+
)
|
|
53881
|
+
])
|
|
53808
53882
|
);
|
|
53809
53883
|
}
|
|
53810
53884
|
const support = Object.assign(
|
|
@@ -54512,9 +54586,12 @@ function expoManifest(files2, generation = "", settings = /* @__PURE__ */ new Ma
|
|
|
54512
54586
|
);
|
|
54513
54587
|
return `.target(name: ${JSON.stringify(name3)}, dependencies: ${JSON.stringify(dependencies)}, path: ${JSON.stringify(dir)}${declared?.resources ? ", resources: []" : ""}${configuration ? ", " + swiftManifestSettings(configuration) : ""})`;
|
|
54514
54588
|
});
|
|
54589
|
+
const appProducts = (settings.get("PeachExpoApp")?.dependencies ?? []).flatMap(
|
|
54590
|
+
(dependency) => dependency.kind === "product" && dependency.package === "sootsim-swift" ? [`.product(name: ${JSON.stringify(dependency.name)}, package: "sootsim-swift")`] : []
|
|
54591
|
+
);
|
|
54515
54592
|
return `// swift-tools-version: 6.0
|
|
54516
54593
|
import PackageDescription
|
|
54517
|
-
let package = Package(name: "PeachExpo", targets: [${declarations.join(", ")}, .executableTarget(name: "PeachExpoApp", path: "Sources/PeachExpoApp")])
|
|
54594
|
+
let package = Package(name: "PeachExpo", targets: [${declarations.join(", ")}, .executableTarget(name: "PeachExpoApp", dependencies: [${appProducts.join(", ")}], path: "Sources/PeachExpoApp")])
|
|
54518
54595
|
// stand-in inputs: ${generation}
|
|
54519
54596
|
`;
|
|
54520
54597
|
}
|
|
@@ -55042,15 +55119,16 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
|
|
|
55042
55119
|
error instanceof Error ? error.message : String(error),
|
|
55043
55120
|
...gaps.get(unit2) ?? []
|
|
55044
55121
|
].join("\n");
|
|
55045
|
-
const
|
|
55122
|
+
const unitFiles = [...Object.keys(unit2.files), ...expoUnitAppPaths(unit2)];
|
|
55046
55123
|
const errors = diagnostic.match(/^.+:\d+(?::\d+)?: error:.*$/gm) ?? [];
|
|
55047
|
-
const sourceErrors = errors.filter(
|
|
55048
|
-
|
|
55124
|
+
const sourceErrors = errors.filter((line) => {
|
|
55125
|
+
const file = /^.+?(?=:\d+(?::\d+)?: error:)/.exec(line)[0];
|
|
55126
|
+
return unitFiles.some((name3) => file === name3 || file.endsWith(`/${name3}`)) && !/external macro implementation type|failed to load library plugin/.test(
|
|
55049
55127
|
line
|
|
55050
|
-
)
|
|
55051
|
-
);
|
|
55128
|
+
);
|
|
55129
|
+
});
|
|
55052
55130
|
const targetErrors = diagnostic.match(
|
|
55053
|
-
/^error: target .*$|^(?:error: )?[^\n:]+: missing or unsupported declared iOS deployment target .*$/gm
|
|
55131
|
+
/^error: target .*$|^(?:error: )?[^\n:]+: missing or unsupported declared iOS deployment target .*$|^(?:ld(?:\.lld)?|wasm-ld): error: .*$/gm
|
|
55054
55132
|
) ?? [];
|
|
55055
55133
|
const unitErrors = [...targetErrors, ...sourceErrors];
|
|
55056
55134
|
if (publishArtifact && targetErrors.length === 0 && (sourceErrors.length === 0 || sourceErrors.length !== errors.length) && !(error instanceof SwiftMissingModulesError))
|
|
@@ -56633,7 +56711,7 @@ function nitroSupersetInputs(options) {
|
|
|
56633
56711
|
inputs[`provider:${name3}`] = `${packageVersion(root)}\0${treeDigest3(root)}`;
|
|
56634
56712
|
return inputs;
|
|
56635
56713
|
}
|
|
56636
|
-
var NITRO_COMPILER_DIGEST = true ? "
|
|
56714
|
+
var NITRO_COMPILER_DIGEST = true ? "381eedf9ef6738ad89af113ebb689916b0126afd7690eaff12e4e781695643e0" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
56637
56715
|
function readInputs(value) {
|
|
56638
56716
|
if (!isRecord(value)) return null;
|
|
56639
56717
|
const inputs = {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1847 | (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;
|
|
@@ -4495,7 +4495,7 @@ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
|
4495
4495
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4496
4496
|
|
|
4497
4497
|
// runtime-companion.json
|
|
4498
|
-
var runtime_companion_default = { abi: 1, sha256: "
|
|
4498
|
+
var runtime_companion_default = { abi: 1, sha256: "031fe7fcb9db836c5df1ddc8cf3ce1690992fc0465ae1d1210d7ef9b62547d48", file: "node/cli-031fe7fcb9db836c5df1ddc8cf3ce1690992fc0465ae1d1210d7ef9b62547d48.cjs" };
|
|
4499
4499
|
|
|
4500
4500
|
// src/answeredNativePackages.ts
|
|
4501
4501
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1847 | (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.1847 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1847 | (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/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1847 | (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;
|
|
@@ -39,7 +39,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
39
39
|
var define_SWIFT_COVERAGE_SOURCE_DIGESTS_default;
|
|
40
40
|
var init_define_SWIFT_COVERAGE_SOURCE_DIGESTS = __esm({
|
|
41
41
|
"<define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>"() {
|
|
42
|
-
define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "8b398ceb60faf4a5729842cab60f49c2e601d6fc6bbbc1faec9023ecb8141990", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "08583ee03b92e00f3f331e52fb480ef81c9fd7e668d796a5afcfa07978bcaf03", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "26f8d4a25d1af9917f0005153c73c9cefa4f6681c9d56c6333b8096190db0431", "swift-package.ts": "e224b5e20ed3a86df1c62d6429e88234ed65317ce32c61c1b6b02aaee173d64f", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "a90155695844684e625ab83687161104f028ef34030715a40042a4407b77fca0", "home-paths.ts": "744d0e29fcc4baae6748161da45dd75e357348703331dad685c74ec813abcc83", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "
|
|
42
|
+
define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "8b398ceb60faf4a5729842cab60f49c2e601d6fc6bbbc1faec9023ecb8141990", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "08583ee03b92e00f3f331e52fb480ef81c9fd7e668d796a5afcfa07978bcaf03", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "26f8d4a25d1af9917f0005153c73c9cefa4f6681c9d56c6333b8096190db0431", "swift-package.ts": "e224b5e20ed3a86df1c62d6429e88234ed65317ce32c61c1b6b02aaee173d64f", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "a90155695844684e625ab83687161104f028ef34030715a40042a4407b77fca0", "home-paths.ts": "744d0e29fcc4baae6748161da45dd75e357348703331dad685c74ec813abcc83", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "02dac6951dc7dd8465a421670901c932ac320fc9f8fe277885b2916149d40182", "xcode-target-members.ts": "75a23a5fc54cc6f5e952d545f2f0f86241ff36525ab4e568c172e83c3bfb9da4", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
|
|
@@ -6922,7 +6922,7 @@ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
|
6922
6922
|
init_version();
|
|
6923
6923
|
|
|
6924
6924
|
// runtime-companion.json
|
|
6925
|
-
var runtime_companion_default = { abi: 1, sha256: "
|
|
6925
|
+
var runtime_companion_default = { abi: 1, sha256: "031fe7fcb9db836c5df1ddc8cf3ce1690992fc0465ae1d1210d7ef9b62547d48", file: "node/cli-031fe7fcb9db836c5df1ddc8cf3ce1690992fc0465ae1d1210d7ef9b62547d48.cjs" };
|
|
6926
6926
|
|
|
6927
6927
|
// src/answeredNativePackages.ts
|
|
6928
6928
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -19273,7 +19273,7 @@ var FOUNDATION_IMPLICIT_MODULES = [
|
|
|
19273
19273
|
var FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
|
|
19274
19274
|
(module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
|
|
19275
19275
|
).join("");
|
|
19276
|
-
var compilerSourceDigest = true ? "
|
|
19276
|
+
var compilerSourceDigest = true ? "de4cf043c56670d57d1dccc969b1b12b70e242e3015fd98011df86b7ce82c4d6" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
19277
19277
|
var CORE_FOUNDATION_HANDLE_IMPORTS = [
|
|
19278
19278
|
"CFAllocator",
|
|
19279
19279
|
"CFArray",
|
|
@@ -19786,7 +19786,7 @@ function applyConditions(raw, configuration) {
|
|
|
19786
19786
|
);
|
|
19787
19787
|
if (matches) conditional[key.slice(0, bracket)] = value;
|
|
19788
19788
|
}
|
|
19789
|
-
return
|
|
19789
|
+
return [plain, conditional];
|
|
19790
19790
|
}
|
|
19791
19791
|
function applyOperator(value, operator) {
|
|
19792
19792
|
if (operator.startsWith("default=")) return value === "" ? operator.slice(8) : value;
|
|
@@ -19948,8 +19948,8 @@ function targetSettings(ref, configuration, builtins, options = {}, overrides =
|
|
|
19948
19948
|
const fromFile = baseFile ? readXcconfig(baseFile, read) : {};
|
|
19949
19949
|
xcconfigs.push(...read);
|
|
19950
19950
|
return [
|
|
19951
|
-
applyConditions(fromFile, name2),
|
|
19952
|
-
applyConditions(
|
|
19951
|
+
...applyConditions(fromFile, name2),
|
|
19952
|
+
...applyConditions(
|
|
19953
19953
|
Object.fromEntries(
|
|
19954
19954
|
Object.entries(own).flatMap(
|
|
19955
19955
|
([key, value]) => typeof value === "string" ? [[key, value]] : Array.isArray(value) ? [[key, list(value).join(" ")]] : []
|
|
@@ -20553,11 +20553,24 @@ function selectIosAppTarget(projectRoot, iosTarget) {
|
|
|
20553
20553
|
const nested = import_node_path26.default.join(projectRoot, "ios");
|
|
20554
20554
|
const iosRoot = import_node_fs23.default.existsSync(nested) ? nested : projectRoot;
|
|
20555
20555
|
const entries = import_node_fs23.default.readdirSync(iosRoot, { withFileTypes: true });
|
|
20556
|
-
const projects = (entries.some((entry) => entry.isDirectory() && entry.name.endsWith(".xcodeproj")) ? entries.filter((entry) => entry.isDirectory() && entry.name.endsWith(".xcodeproj")).map((entry) =>
|
|
20557
|
-
|
|
20556
|
+
const projects = (entries.some((entry) => entry.isDirectory() && entry.name.endsWith(".xcodeproj")) ? entries.filter((entry) => entry.isDirectory() && entry.name.endsWith(".xcodeproj")).map((entry) => ({
|
|
20557
|
+
xcodeproj: import_node_path26.default.join(iosRoot, entry.name),
|
|
20558
|
+
workspace: null
|
|
20559
|
+
})) : entries.filter((entry) => entry.isDirectory() && entry.name.endsWith(".xcworkspace")).flatMap((entry) => {
|
|
20560
|
+
const workspace = import_node_path26.default.join(iosRoot, entry.name);
|
|
20561
|
+
return workspaceReferences(workspace).map((xcodeproj2) => ({
|
|
20562
|
+
xcodeproj: xcodeproj2,
|
|
20563
|
+
workspace
|
|
20564
|
+
}));
|
|
20565
|
+
}).filter(
|
|
20566
|
+
({ xcodeproj: xcodeproj2 }) => xcodeproj2.endsWith(".xcodeproj") && !xcodeproj2.split(import_node_path26.default.sep).includes("Pods") && import_node_fs23.default.existsSync(xcodeproj2)
|
|
20558
20567
|
).filter(
|
|
20559
|
-
(xcodeproj2) => listXcodeAppTargets(xcodeproj2, { requireSources: false }).length > 0
|
|
20560
|
-
)).map((
|
|
20568
|
+
({ xcodeproj: xcodeproj2 }) => listXcodeAppTargets(xcodeproj2, { requireSources: false }).length > 0
|
|
20569
|
+
)).map(({ xcodeproj: xcodeproj2, workspace }) => ({
|
|
20570
|
+
xcodeproj: xcodeproj2,
|
|
20571
|
+
workspace,
|
|
20572
|
+
name: import_node_path26.default.basename(xcodeproj2)
|
|
20573
|
+
}));
|
|
20561
20574
|
if (projects.length === 0) return null;
|
|
20562
20575
|
if (projects.length > 1 && !iosTarget) {
|
|
20563
20576
|
throw new NativeAppTargetSelectionError(
|
|
@@ -20598,7 +20611,7 @@ function selectIosAppTarget(projectRoot, iosTarget) {
|
|
|
20598
20611
|
}
|
|
20599
20612
|
if (!appTargets.includes(target))
|
|
20600
20613
|
throw new Error(`native app identity has no application target ${target}`);
|
|
20601
|
-
return { xcodeproj, target };
|
|
20614
|
+
return { xcodeproj, target, workspace: project.workspace };
|
|
20602
20615
|
}
|
|
20603
20616
|
var workspaceResolvedFile = (xcodeprojOrWorkspace) => import_node_path26.default.join(
|
|
20604
20617
|
xcodeprojOrWorkspace.endsWith(".xcworkspace") ? xcodeprojOrWorkspace : import_node_path26.default.join(xcodeprojOrWorkspace, "project.xcworkspace"),
|
|
@@ -21358,7 +21371,14 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
21358
21371
|
const binaryFrameworks = /* @__PURE__ */ new Map();
|
|
21359
21372
|
const searchedFrameworks = /* @__PURE__ */ new Map();
|
|
21360
21373
|
const frameworkSearchDirectories = /* @__PURE__ */ new Set();
|
|
21374
|
+
const sdkFrameworks = /* @__PURE__ */ new Set();
|
|
21361
21375
|
for (const { ref, settings: settings2 } of builtTargets) {
|
|
21376
|
+
const ldflags = settingList(settings2("OTHER_LDFLAGS"));
|
|
21377
|
+
ldflags.forEach((flag, index) => {
|
|
21378
|
+
const name2 = ldflags[index + 1];
|
|
21379
|
+
if ((flag === "-framework" || flag === "-weak_framework") && name2)
|
|
21380
|
+
sdkFrameworks.add(name2);
|
|
21381
|
+
});
|
|
21362
21382
|
const absolute = (raw) => import_node_path26.default.resolve(ref.project.projectDir, expand(raw, settings2));
|
|
21363
21383
|
const requested = options.nativeModules;
|
|
21364
21384
|
const includeBinary = (name2, dir) => {
|
|
@@ -21475,10 +21495,11 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
21475
21495
|
const rawPath = str(file?.path) ?? "";
|
|
21476
21496
|
const name2 = /([^/]+)\.(xc)?framework$/.exec(rawPath)?.[1];
|
|
21477
21497
|
if (file?.isa !== "PBXFileReference" || !name2) continue;
|
|
21478
|
-
if (tree2 === "
|
|
21479
|
-
|
|
21480
|
-
|
|
21481
|
-
|
|
21498
|
+
if (tree2 === "SDKROOT" || /\/System\/Library\/Frameworks\/[^/]+$/.test(`/${rawPath}`)) {
|
|
21499
|
+
sdkFrameworks.add(name2);
|
|
21500
|
+
continue;
|
|
21501
|
+
}
|
|
21502
|
+
if (tree2 === "BUILT_PRODUCTS_DIR" || tree2 === "DEVELOPER_DIR" || // a target in the workspace builds it, so it exists only after that build
|
|
21482
21503
|
byProduct.has(import_node_path26.default.basename(rawPath)))
|
|
21483
21504
|
continue;
|
|
21484
21505
|
const resolved = fileId ? project.resolvePath(fileId) : null;
|
|
@@ -21560,6 +21581,9 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
21560
21581
|
...new Set(localPackageDirs.map((dir) => import_node_fs23.default.realpathSync(dir)))
|
|
21561
21582
|
].sort(),
|
|
21562
21583
|
binaryFrameworks: [...binaryFrameworks].map(([name2, file]) => ({ name: name2, path: file })).sort((left, right) => left.name.localeCompare(right.name)),
|
|
21584
|
+
sdkFrameworks: [...sdkFrameworks].filter(
|
|
21585
|
+
(name2) => !binaryFrameworks.has(name2) && !byProduct.has(`${name2}.framework`)
|
|
21586
|
+
).sort(),
|
|
21563
21587
|
packageResolved,
|
|
21564
21588
|
appTargets: appTargetNames,
|
|
21565
21589
|
configuration,
|
|
@@ -22232,8 +22256,8 @@ function findDefaultConfigureCall(body, sources) {
|
|
|
22232
22256
|
}
|
|
22233
22257
|
return null;
|
|
22234
22258
|
}
|
|
22235
|
-
function readTargetGoogleServicesFile(projectRoot,
|
|
22236
|
-
const app = readXcodeAppTarget(
|
|
22259
|
+
function readTargetGoogleServicesFile(projectRoot, container, target, prepareGeneratedSources = false) {
|
|
22260
|
+
const app = readXcodeAppTarget(container, target, void 0, {
|
|
22237
22261
|
requireSources: false,
|
|
22238
22262
|
prepareGeneratedSources
|
|
22239
22263
|
});
|
|
@@ -22341,7 +22365,7 @@ function readNativeFirebaseConfig(projectRoot, platforms = ["ios", "android"], i
|
|
|
22341
22365
|
if (selected) {
|
|
22342
22366
|
const file = readTargetGoogleServicesFile(
|
|
22343
22367
|
projectRoot,
|
|
22344
|
-
selected.xcodeproj,
|
|
22368
|
+
selected.workspace ?? selected.xcodeproj,
|
|
22345
22369
|
selected.target,
|
|
22346
22370
|
prepareGeneratedSources
|
|
22347
22371
|
);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1847 | (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.1847 | (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;
|