peachsim 0.1.2411 → 0.1.2412
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +119 -22
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +118 -21
- 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 +119 -22
- package/dist-lib/host/fetch-proxy-handler.cjs +3 -3
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +9 -5
- 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 +9 -5
- package/dist-lib/native-app-identity-project.cjs +8 -4
- package/dist-lib/native-app-identity-project.mjs +8 -4
- 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 +119 -22
- package/dist-lib/swift-compile.cjs +1 -1
- package/dist-lib/swift-compile.mjs +1 -1
- 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 +116 -19
- package/dist-lib/vite.cjs +3 -3
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-gpu.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-widgetContract.d.ts +5 -0
- package/package.json +1 -1
- package/src/expo-native-workspace.ts +4 -0
- package/src/swift-host.ts +82 -15
- package/src/swift-objc-compile.ts +5 -0
- package/src/swift-packages.ts +46 -0
- package/src/xcode-project.ts +17 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2412 | (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;
|
|
@@ -13083,7 +13083,7 @@ var swiftCoverageProvenance;
|
|
|
13083
13083
|
var init_provenance = __esm({
|
|
13084
13084
|
"src/swift-coverage/provenance.ts"() {
|
|
13085
13085
|
"use strict";
|
|
13086
|
-
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":"a19fe4c5e2efe18bbc3ece544ff2c8be660170d63274cccb0ab58e53083050e4","swift-package.ts":"851417572ca9aff699ad368bdc3ff05309b0256e483d40812b9c0beb869d0a5b","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"dec93d0206df8efbd9f538d1f3e3f6173f6eb022cb9ad6b02271481db7578d77","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"4a775ba92c7b23ce71dd6bb08c188c4bccd6e1ed500cc9fc7850030b945fc8d4","xcode-project.ts":"
|
|
13086
|
+
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":"a19fe4c5e2efe18bbc3ece544ff2c8be660170d63274cccb0ab58e53083050e4","swift-package.ts":"851417572ca9aff699ad368bdc3ff05309b0256e483d40812b9c0beb869d0a5b","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"dec93d0206df8efbd9f538d1f3e3f6173f6eb022cb9ad6b02271481db7578d77","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"4a775ba92c7b23ce71dd6bb08c188c4bccd6e1ed500cc9fc7850030b945fc8d4","xcode-project.ts":"5e7daa9fabfa1c7f38e7b7e11bb0d4168e26d958b1acdb65e54e06e7de5c6804","xcode-target-members.ts":"2f25aaf5a3aa34395983c75935491c06bd68554c47ff1cb06b49c79499c03db0","xcode-json-project.ts":"41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6","openstep-plist.ts":"74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3"}') : swiftCoverageSourceDigests((0, import_node_path.join)(__sootsim_import_meta_dirname, ".."));
|
|
13087
13087
|
}
|
|
13088
13088
|
});
|
|
13089
13089
|
|
|
@@ -38948,12 +38948,16 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
38948
38948
|
);
|
|
38949
38949
|
const allTargets = projects2.flatMap(projectTargets);
|
|
38950
38950
|
const appTargets = allTargets.filter(
|
|
38951
|
-
(ref) => isIosAppTarget(ref, options) || targetName !== void 0 && ref.target.name === targetName && ref.target.productType === APP_EXTENSION
|
|
38951
|
+
(ref) => options.frameworkMachOType ? ref.target.name === targetName && FRAMEWORK_PRODUCTS.has(str2(ref.target.productType) ?? "") : isIosAppTarget(ref, options) || targetName !== void 0 && ref.target.name === targetName && ref.target.productType === APP_EXTENSION
|
|
38952
38952
|
);
|
|
38953
38953
|
const appTargetNames = appTargets.map((ref) => str2(ref.target.name) ?? ref.id);
|
|
38954
38954
|
const container = import_node_path58.default.basename(xcodeprojOrWorkspace);
|
|
38955
38955
|
const named = targetName ? appTargets.filter((ref) => ref.target.name === targetName) : appTargets;
|
|
38956
38956
|
if (named.length !== 1) {
|
|
38957
|
+
if (options.frameworkMachOType)
|
|
38958
|
+
throw new Error(
|
|
38959
|
+
`${container} must declare one framework target named ${targetName}`
|
|
38960
|
+
);
|
|
38957
38961
|
if (appTargets.length === 0)
|
|
38958
38962
|
throw new Error(
|
|
38959
38963
|
`${container} has no application targets; open a project or workspace that contains one`
|
|
@@ -39216,7 +39220,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
39216
39220
|
DEVELOPMENT_LANGUAGE: str2(ref.project.project.developmentRegion) ?? "en"
|
|
39217
39221
|
},
|
|
39218
39222
|
options,
|
|
39219
|
-
workspaceBuild
|
|
39223
|
+
ref === app && options.frameworkMachOType ? { ...workspaceBuild, MACH_O_TYPE: options.frameworkMachOType } : workspaceBuild
|
|
39220
39224
|
);
|
|
39221
39225
|
for (const file of read) xcconfigs.add(file);
|
|
39222
39226
|
const swiftVersion = Number.parseFloat(settings2("SWIFT_VERSION") || "5");
|
|
@@ -40221,7 +40225,7 @@ var init_swift_standin_digest = __esm({
|
|
|
40221
40225
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
40222
40226
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
40223
40227
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
40224
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
40228
|
+
STANDIN_SOURCE_DIGEST = true ? "467738b34c64972f28a4f51bb4a9e09b15d846aaf5143fa94e95cf779eb7bf82" : standinSourceDigest();
|
|
40225
40229
|
}
|
|
40226
40230
|
});
|
|
40227
40231
|
|
|
@@ -41354,6 +41358,7 @@ function resolveSwiftPackages(options) {
|
|
|
41354
41358
|
targets: [],
|
|
41355
41359
|
nativePackages: [],
|
|
41356
41360
|
nativeProducts: [],
|
|
41361
|
+
sourceFrameworks: [],
|
|
41357
41362
|
unavailable: /* @__PURE__ */ new Map(),
|
|
41358
41363
|
modules: /* @__PURE__ */ new Map(),
|
|
41359
41364
|
binaries: [],
|
|
@@ -41362,6 +41367,7 @@ function resolveSwiftPackages(options) {
|
|
|
41362
41367
|
const pins = resolved.length > 0 ? readPins(resolved) : null;
|
|
41363
41368
|
const checkouts = remoteSwiftCheckouts(rootDir);
|
|
41364
41369
|
const packages = /* @__PURE__ */ new Map();
|
|
41370
|
+
const sourceFrameworks = /* @__PURE__ */ new Map();
|
|
41365
41371
|
const packageKey = (source) => import_node_path73.default.isAbsolute(source) ? source : swiftPackageIdentity(source);
|
|
41366
41372
|
const sourceKey = (source) => packageKey(source.kind === "local" ? import_node_path73.default.resolve(source.dir) : source.url);
|
|
41367
41373
|
const load2 = (source) => {
|
|
@@ -41385,6 +41391,7 @@ function resolveSwiftPackages(options) {
|
|
|
41385
41391
|
loaded2 = {
|
|
41386
41392
|
source: source.url,
|
|
41387
41393
|
remote: true,
|
|
41394
|
+
revision: pin2.revision,
|
|
41388
41395
|
manifest: swiftPackageManifest(
|
|
41389
41396
|
fetchedCheckout(checkouts, identity2, pin2),
|
|
41390
41397
|
void 0,
|
|
@@ -41436,6 +41443,7 @@ function resolveSwiftPackages(options) {
|
|
|
41436
41443
|
const targetOutcomes = /* @__PURE__ */ new Map();
|
|
41437
41444
|
const resolveTarget = (pkg, name3) => {
|
|
41438
41445
|
const key2 = `${pkg.manifest.dir}\0${name3}`;
|
|
41446
|
+
if (sourceFrameworks.has(key2)) return [];
|
|
41439
41447
|
if (targetOutcomes.has(key2)) return targetOutcomes.get(key2);
|
|
41440
41448
|
targetOutcomes.set(key2, []);
|
|
41441
41449
|
const outcome = (() => {
|
|
@@ -41531,6 +41539,18 @@ function resolveSwiftPackages(options) {
|
|
|
41531
41539
|
if (!binaryOnly && claimed.has(key2)) return true;
|
|
41532
41540
|
const target = pkg.manifest.targets.get(name3);
|
|
41533
41541
|
if (target?.type === "binary") {
|
|
41542
|
+
const recipe2 = target.checksum ? sourceFrameworkRecipes.get(target.checksum) : void 0;
|
|
41543
|
+
if (recipe2 && pkg.revision === recipe2.revision && name3 === recipe2.target) {
|
|
41544
|
+
sourceFrameworks.set(key2, {
|
|
41545
|
+
packageTarget: import_node_path73.default.join(pkg.manifest.dir, "#target", name3),
|
|
41546
|
+
project: import_node_path73.default.join(pkg.manifest.dir, recipe2.project),
|
|
41547
|
+
target: name3,
|
|
41548
|
+
configuration: recipe2.configuration,
|
|
41549
|
+
machOType: recipe2.machOType
|
|
41550
|
+
});
|
|
41551
|
+
providedTargets.delete(name3);
|
|
41552
|
+
return true;
|
|
41553
|
+
}
|
|
41534
41554
|
const changed = !options.standinTargets?.has(name3) && shippedBinaryDiffers(name3, target.checksum);
|
|
41535
41555
|
if (changed) providedTargets.delete(name3);
|
|
41536
41556
|
return changed;
|
|
@@ -41575,6 +41595,7 @@ function resolveSwiftPackages(options) {
|
|
|
41575
41595
|
for (const pkg of packages.values()) {
|
|
41576
41596
|
if (typeof pkg === "string") continue;
|
|
41577
41597
|
for (const [name3, target] of pkg.manifest.targets) {
|
|
41598
|
+
if (sourceFrameworks.has(`${pkg.manifest.dir}\0${name3}`)) continue;
|
|
41578
41599
|
if (target.type === "test" || target.type === "plugin" || target.type === "macro")
|
|
41579
41600
|
continue;
|
|
41580
41601
|
if (target.type === "executable") continue;
|
|
@@ -41792,6 +41813,8 @@ function resolveSwiftPackages(options) {
|
|
|
41792
41813
|
const id = targetId(pkg, name3);
|
|
41793
41814
|
if (emitted.has(id)) return id;
|
|
41794
41815
|
emitted.add(id);
|
|
41816
|
+
const framework = sourceFrameworks.get(`${pkg.manifest.dir}\0${name3}`);
|
|
41817
|
+
if (framework) result.sourceFrameworks.push(framework);
|
|
41795
41818
|
const target = pkg.manifest.targets.get(name3);
|
|
41796
41819
|
if (!target) throw new Error(`missing resolved package target ${name3}`);
|
|
41797
41820
|
const dependencies = target.type === "macro" ? [] : target.dependencies.flatMap((dependency) => {
|
|
@@ -41838,7 +41861,7 @@ function resolveSwiftPackages(options) {
|
|
|
41838
41861
|
result.nativeProducts.push({ name: name3, packageDir: manifest.dir, source });
|
|
41839
41862
|
return result;
|
|
41840
41863
|
}
|
|
41841
|
-
var import_node_child_process39, import_node_crypto41, import_node_fs75, import_node_path73, import_promises8, import_node_util11, swiftBinaryOnDisk, SWIFT_PLACEHOLDER_PACKAGES, placeholderPackage, UNSUPPORTED_NATIVE, BINARY, blockers, verified, execFileAsync2, checkoutKey;
|
|
41864
|
+
var import_node_child_process39, import_node_crypto41, import_node_fs75, import_node_path73, import_promises8, import_node_util11, swiftBinaryOnDisk, SWIFT_PLACEHOLDER_PACKAGES, placeholderPackage, sourceFrameworkRecipes, UNSUPPORTED_NATIVE, BINARY, blockers, verified, execFileAsync2, checkoutKey;
|
|
41842
41865
|
var init_swift_packages = __esm({
|
|
41843
41866
|
"src/swift-packages.ts"() {
|
|
41844
41867
|
"use strict";
|
|
@@ -41860,6 +41883,18 @@ var init_swift_packages = __esm({
|
|
|
41860
41883
|
swiftBinaryOnDisk = (binary2) => binary2.url !== null || import_node_fs75.default.existsSync(binary2.dir);
|
|
41861
41884
|
SWIFT_PLACEHOLDER_PACKAGES = /* @__PURE__ */ new Map();
|
|
41862
41885
|
placeholderPackage = (pkg) => SWIFT_PLACEHOLDER_PACKAGES.get(swiftPackageIdentity(pkg.manifest.dir));
|
|
41886
|
+
sourceFrameworkRecipes = /* @__PURE__ */ new Map([
|
|
41887
|
+
[
|
|
41888
|
+
"438de2c5afb7dde20b640af35dd841961aa2aa4d2719e40c92d48bd2aa5dca56",
|
|
41889
|
+
{
|
|
41890
|
+
revision: "a49e7c2148ac9e38bd35ef4f13bc9d6ea3ff0b81",
|
|
41891
|
+
project: "Sentry.xcodeproj",
|
|
41892
|
+
target: "Sentry",
|
|
41893
|
+
configuration: "Release",
|
|
41894
|
+
machOType: "staticlib"
|
|
41895
|
+
}
|
|
41896
|
+
]
|
|
41897
|
+
]);
|
|
41863
41898
|
UNSUPPORTED_NATIVE = /\.(s|S)$/;
|
|
41864
41899
|
BINARY = "is a binary framework";
|
|
41865
41900
|
blockers = (reasons) => [...new Set(reasons.flat())];
|
|
@@ -45770,6 +45805,11 @@ function* xcodeObjCInputSteps(app, binaries, moduleRoot, products, sourceRoot =
|
|
|
45770
45805
|
}
|
|
45771
45806
|
return regular ? source : null;
|
|
45772
45807
|
};
|
|
45808
|
+
for (const directory2 of target.objc.headerSearchPaths) {
|
|
45809
|
+
if (isSdkInclude(directory2)) continue;
|
|
45810
|
+
const file = availableHeader(import_node_path78.default.join(directory2, "module.modulemap"));
|
|
45811
|
+
if (file) queue.push({ file, origin: directory2 });
|
|
45812
|
+
}
|
|
45773
45813
|
for (const name3 of forced) {
|
|
45774
45814
|
const file = [...quoted2, ...includes].filter((directory2) => !isSdkInclude(directory2)).map((directory2) => availableHeader(import_node_path78.default.resolve(directory2, name3))).find((candidate) => candidate !== null);
|
|
45775
45815
|
if (file) queue.push({ file });
|
|
@@ -49856,17 +49896,15 @@ async function swiftPackages(entry, app) {
|
|
|
49856
49896
|
}
|
|
49857
49897
|
function xcodeInputKey(layout2, file, relative3) {
|
|
49858
49898
|
const owner = layout2.targetDirs.get(file);
|
|
49899
|
+
const checkouts = layout2.checkouts;
|
|
49900
|
+
const checkoutPath = file.startsWith(`${checkouts}${import_node_path85.default.sep}`) ? import_node_path85.default.relative(checkouts, file).split(import_node_path85.default.sep).join("/") : null;
|
|
49859
49901
|
if (owner) {
|
|
49860
|
-
const input = file.endsWith(".swift") ? relative3.split("/").map(
|
|
49902
|
+
const input = file.endsWith(".swift") ? (checkoutPath ?? relative3).split("/").map(
|
|
49861
49903
|
(part) => part === "." || part === ".." ? part : part.replaceAll("%", "%25").replace(/^\./, "%2E")
|
|
49862
|
-
).join("/") : relative3;
|
|
49904
|
+
).join("/") : checkoutPath ?? relative3;
|
|
49863
49905
|
return import_node_path85.default.posix.join(owner, input);
|
|
49864
49906
|
}
|
|
49865
|
-
|
|
49866
|
-
return file.startsWith(`${checkouts}${import_node_path85.default.sep}`) ? import_node_path85.default.posix.join(
|
|
49867
|
-
XCODE_PACKAGES_DIR,
|
|
49868
|
-
import_node_path85.default.relative(checkouts, file).split(import_node_path85.default.sep).join("/")
|
|
49869
|
-
) : relative3 === ".." || relative3.startsWith("../") ? import_node_path85.default.posix.join("external", file.split(import_node_path85.default.sep).join("/")) : relative3;
|
|
49907
|
+
return checkoutPath !== null ? import_node_path85.default.posix.join(XCODE_PACKAGES_DIR, checkoutPath) : relative3 === ".." || relative3.startsWith("../") ? import_node_path85.default.posix.join("external", file.split(import_node_path85.default.sep).join("/")) : relative3;
|
|
49870
49908
|
}
|
|
49871
49909
|
async function withXcodeLayout(root, run6) {
|
|
49872
49910
|
const scope2 = /* @__PURE__ */ new Map();
|
|
@@ -49884,7 +49922,7 @@ function xcodeLayout(root) {
|
|
|
49884
49922
|
async function buildXcodeLayout(root) {
|
|
49885
49923
|
const registered = xcodeProjects().get(root);
|
|
49886
49924
|
if (!registered) return null;
|
|
49887
|
-
const
|
|
49925
|
+
const appTarget = readXcodeAppTargetPrepared(
|
|
49888
49926
|
registered.xcodeproj,
|
|
49889
49927
|
registered.target,
|
|
49890
49928
|
registered.configuration,
|
|
@@ -49894,6 +49932,51 @@ async function buildXcodeLayout(root) {
|
|
|
49894
49932
|
nativeModules: registered.nativeModules
|
|
49895
49933
|
}
|
|
49896
49934
|
);
|
|
49935
|
+
const { packages, standins, projectGaps, binaries } = await swiftPackages(
|
|
49936
|
+
registered,
|
|
49937
|
+
appTarget
|
|
49938
|
+
);
|
|
49939
|
+
const sourceFrameworks = new Map(
|
|
49940
|
+
packages.sourceFrameworks.map(
|
|
49941
|
+
({ packageTarget, project, target, configuration, machOType }) => {
|
|
49942
|
+
const framework = readXcodeAppTarget(project, target, configuration, {
|
|
49943
|
+
prepareGeneratedSources: true,
|
|
49944
|
+
frameworkMachOType: machOType
|
|
49945
|
+
});
|
|
49946
|
+
if (framework.moduleName !== target || framework.allSources.length === 0)
|
|
49947
|
+
throw new Error(
|
|
49948
|
+
`${project}: ${target} did not produce its declared source module`
|
|
49949
|
+
);
|
|
49950
|
+
if (framework.linkedProducts.length > 0 || framework.binaryFrameworks.some(({ path: path82 }) => path82))
|
|
49951
|
+
throw new Error(
|
|
49952
|
+
`${project}: ${target} has external dependencies outside the source framework build`
|
|
49953
|
+
);
|
|
49954
|
+
return [packageTarget, framework];
|
|
49955
|
+
}
|
|
49956
|
+
)
|
|
49957
|
+
);
|
|
49958
|
+
const frameworkTargets = [...sourceFrameworks.values()];
|
|
49959
|
+
const app = {
|
|
49960
|
+
...appTarget,
|
|
49961
|
+
frameworks: [
|
|
49962
|
+
...appTarget.frameworks,
|
|
49963
|
+
...frameworkTargets.flatMap((framework) => [...framework.frameworks, framework])
|
|
49964
|
+
],
|
|
49965
|
+
projectFiles: [
|
|
49966
|
+
...appTarget.projectFiles,
|
|
49967
|
+
...frameworkTargets.flatMap((framework) => framework.projectFiles)
|
|
49968
|
+
],
|
|
49969
|
+
resourceProducts: [
|
|
49970
|
+
...appTarget.resourceProducts,
|
|
49971
|
+
...frameworkTargets.flatMap((framework) => framework.resourceProducts)
|
|
49972
|
+
],
|
|
49973
|
+
sdkFrameworks: [
|
|
49974
|
+
.../* @__PURE__ */ new Set([
|
|
49975
|
+
...appTarget.sdkFrameworks,
|
|
49976
|
+
...frameworkTargets.flatMap((framework) => framework.sdkFrameworks)
|
|
49977
|
+
])
|
|
49978
|
+
]
|
|
49979
|
+
};
|
|
49897
49980
|
const appSources = app.allSources;
|
|
49898
49981
|
const checkouts = remoteSwiftCheckouts(app.rootDir);
|
|
49899
49982
|
const files2 = /* @__PURE__ */ new Set([
|
|
@@ -49909,10 +49992,6 @@ async function buildXcodeLayout(root) {
|
|
|
49909
49992
|
const resourceBundles = [
|
|
49910
49993
|
{ target: app.moduleName, sourcePath: XCODE_APP_DIR, path: "." }
|
|
49911
49994
|
];
|
|
49912
|
-
const { packages, standins, projectGaps, binaries } = await swiftPackages(
|
|
49913
|
-
registered,
|
|
49914
|
-
app
|
|
49915
|
-
);
|
|
49916
49995
|
const targets = [];
|
|
49917
49996
|
const frameworkNames = /* @__PURE__ */ new Map();
|
|
49918
49997
|
const usedNames = new Set(
|
|
@@ -50387,7 +50466,14 @@ async function buildXcodeLayout(root) {
|
|
|
50387
50466
|
)
|
|
50388
50467
|
});
|
|
50389
50468
|
}
|
|
50390
|
-
const graphTargets = [
|
|
50469
|
+
const graphTargets = [
|
|
50470
|
+
...app.sourceLinkGraph.targets,
|
|
50471
|
+
...frameworkTargets.flatMap((framework) => framework.sourceLinkGraph.targets),
|
|
50472
|
+
...packages.sourceLinks.targets.map((target) => {
|
|
50473
|
+
const source = sourceFrameworks.get(target.id);
|
|
50474
|
+
return source ? { ...target, dependencies: [{ target: source.id, attributes: [] }] } : target;
|
|
50475
|
+
})
|
|
50476
|
+
];
|
|
50391
50477
|
const applicationBuildVersion = app.sourceLinkGraph.targets.find(
|
|
50392
50478
|
(target) => target.id === app.sourceLinkGraph.entry
|
|
50393
50479
|
).buildVersion;
|
|
@@ -51450,11 +51536,22 @@ async function compile(packagePath, stamp, moduleRootOverride, hosted, snapshot,
|
|
|
51450
51536
|
const parsed2 = compileTargets(input);
|
|
51451
51537
|
const targets = parsed2.map((target) => swiftTargetModuleName(target.name));
|
|
51452
51538
|
const byPath = [...parsed2].sort((left, right) => right.path.length - left.path.length);
|
|
51539
|
+
const clangModulesByTarget = new Map(
|
|
51540
|
+
(input.nativeTargets ?? []).map(({ name: name3, headerSearchPaths }) => [
|
|
51541
|
+
name3,
|
|
51542
|
+
headerSearchPaths.flatMap((directory2) => {
|
|
51543
|
+
const map2 = input.files[import_node_path85.default.posix.join(directory2, "module.modulemap")];
|
|
51544
|
+
return map2 === void 0 ? [] : moduleMapModules(map2).map(({ name: name4 }) => name4);
|
|
51545
|
+
})
|
|
51546
|
+
])
|
|
51547
|
+
);
|
|
51453
51548
|
const providedByFile = (file) => {
|
|
51454
51549
|
const owner = byPath.find(
|
|
51455
51550
|
(target) => target.path === "." ? true : file.startsWith(`${target.path}/`)
|
|
51456
51551
|
);
|
|
51457
|
-
|
|
51552
|
+
if (!owner) return [];
|
|
51553
|
+
const clangModules = clangModulesByTarget.get(owner.name) ?? [];
|
|
51554
|
+
return owner.experimentalFeatures?.includes("BuiltinModule") ? [...clangModules, "Builtin"] : clangModules;
|
|
51458
51555
|
};
|
|
51459
51556
|
const missing = missingSwiftModules(
|
|
51460
51557
|
input.files,
|
|
@@ -62825,7 +62922,7 @@ init_swift_native_pin();
|
|
|
62825
62922
|
init_xcode_project();
|
|
62826
62923
|
var EXPO_NATIVE_ENTRY_NAME = "ios";
|
|
62827
62924
|
function expoNativeCompilerDigestValue() {
|
|
62828
|
-
return true ? "
|
|
62925
|
+
return true ? "d4d0faa36585edc650e4af73f22815b669e67e40bd5df77ec7d25f8d87e65a0f" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
62829
62926
|
}
|
|
62830
62927
|
var IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
|
|
62831
62928
|
function readSources(value) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2412 | (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/home-paths.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2412 | (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.2412 | (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;
|
|
@@ -22509,7 +22509,7 @@ var swiftCoverageProvenance;
|
|
|
22509
22509
|
var init_provenance = __esm({
|
|
22510
22510
|
"src/swift-coverage/provenance.ts"() {
|
|
22511
22511
|
"use strict";
|
|
22512
|
-
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":"a19fe4c5e2efe18bbc3ece544ff2c8be660170d63274cccb0ab58e53083050e4","swift-package.ts":"851417572ca9aff699ad368bdc3ff05309b0256e483d40812b9c0beb869d0a5b","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"dec93d0206df8efbd9f538d1f3e3f6173f6eb022cb9ad6b02271481db7578d77","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"4a775ba92c7b23ce71dd6bb08c188c4bccd6e1ed500cc9fc7850030b945fc8d4","xcode-project.ts":"
|
|
22512
|
+
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":"a19fe4c5e2efe18bbc3ece544ff2c8be660170d63274cccb0ab58e53083050e4","swift-package.ts":"851417572ca9aff699ad368bdc3ff05309b0256e483d40812b9c0beb869d0a5b","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"dec93d0206df8efbd9f538d1f3e3f6173f6eb022cb9ad6b02271481db7578d77","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"4a775ba92c7b23ce71dd6bb08c188c4bccd6e1ed500cc9fc7850030b945fc8d4","xcode-project.ts":"5e7daa9fabfa1c7f38e7b7e11bb0d4168e26d958b1acdb65e54e06e7de5c6804","xcode-target-members.ts":"2f25aaf5a3aa34395983c75935491c06bd68554c47ff1cb06b49c79499c03db0","xcode-json-project.ts":"41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6","openstep-plist.ts":"74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3"}') : swiftCoverageSourceDigests((0, import_node_path.join)(__sootsim_import_meta_dirname, ".."));
|
|
22513
22513
|
}
|
|
22514
22514
|
});
|
|
22515
22515
|
|
|
@@ -48750,12 +48750,16 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
48750
48750
|
);
|
|
48751
48751
|
const allTargets = projects2.flatMap(projectTargets);
|
|
48752
48752
|
const appTargets = allTargets.filter(
|
|
48753
|
-
(ref) => isIosAppTarget(ref, options) || targetName !== void 0 && ref.target.name === targetName && ref.target.productType === APP_EXTENSION
|
|
48753
|
+
(ref) => options.frameworkMachOType ? ref.target.name === targetName && FRAMEWORK_PRODUCTS.has(str2(ref.target.productType) ?? "") : isIosAppTarget(ref, options) || targetName !== void 0 && ref.target.name === targetName && ref.target.productType === APP_EXTENSION
|
|
48754
48754
|
);
|
|
48755
48755
|
const appTargetNames = appTargets.map((ref) => str2(ref.target.name) ?? ref.id);
|
|
48756
48756
|
const container = import_node_path63.default.basename(xcodeprojOrWorkspace);
|
|
48757
48757
|
const named = targetName ? appTargets.filter((ref) => ref.target.name === targetName) : appTargets;
|
|
48758
48758
|
if (named.length !== 1) {
|
|
48759
|
+
if (options.frameworkMachOType)
|
|
48760
|
+
throw new Error(
|
|
48761
|
+
`${container} must declare one framework target named ${targetName}`
|
|
48762
|
+
);
|
|
48759
48763
|
if (appTargets.length === 0)
|
|
48760
48764
|
throw new Error(
|
|
48761
48765
|
`${container} has no application targets; open a project or workspace that contains one`
|
|
@@ -49018,7 +49022,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
49018
49022
|
DEVELOPMENT_LANGUAGE: str2(ref.project.project.developmentRegion) ?? "en"
|
|
49019
49023
|
},
|
|
49020
49024
|
options,
|
|
49021
|
-
workspaceBuild
|
|
49025
|
+
ref === app && options.frameworkMachOType ? { ...workspaceBuild, MACH_O_TYPE: options.frameworkMachOType } : workspaceBuild
|
|
49022
49026
|
);
|
|
49023
49027
|
for (const file of read) xcconfigs.add(file);
|
|
49024
49028
|
const swiftVersion = Number.parseFloat(settings2("SWIFT_VERSION") || "5");
|
|
@@ -50025,7 +50029,7 @@ var init_swift_standin_digest = __esm({
|
|
|
50025
50029
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
50026
50030
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
50027
50031
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
50028
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
50032
|
+
STANDIN_SOURCE_DIGEST = true ? "467738b34c64972f28a4f51bb4a9e09b15d846aaf5143fa94e95cf779eb7bf82" : standinSourceDigest();
|
|
50029
50033
|
}
|
|
50030
50034
|
});
|
|
50031
50035
|
|
|
@@ -51226,6 +51230,7 @@ function resolveSwiftPackages(options) {
|
|
|
51226
51230
|
targets: [],
|
|
51227
51231
|
nativePackages: [],
|
|
51228
51232
|
nativeProducts: [],
|
|
51233
|
+
sourceFrameworks: [],
|
|
51229
51234
|
unavailable: /* @__PURE__ */ new Map(),
|
|
51230
51235
|
modules: /* @__PURE__ */ new Map(),
|
|
51231
51236
|
binaries: [],
|
|
@@ -51234,6 +51239,7 @@ function resolveSwiftPackages(options) {
|
|
|
51234
51239
|
const pins = resolved.length > 0 ? readPins(resolved) : null;
|
|
51235
51240
|
const checkouts = remoteSwiftCheckouts(rootDir);
|
|
51236
51241
|
const packages = /* @__PURE__ */ new Map();
|
|
51242
|
+
const sourceFrameworks = /* @__PURE__ */ new Map();
|
|
51237
51243
|
const packageKey = (source) => import_node_path78.default.isAbsolute(source) ? source : swiftPackageIdentity(source);
|
|
51238
51244
|
const sourceKey = (source) => packageKey(source.kind === "local" ? import_node_path78.default.resolve(source.dir) : source.url);
|
|
51239
51245
|
const load2 = (source) => {
|
|
@@ -51257,6 +51263,7 @@ function resolveSwiftPackages(options) {
|
|
|
51257
51263
|
loaded3 = {
|
|
51258
51264
|
source: source.url,
|
|
51259
51265
|
remote: true,
|
|
51266
|
+
revision: pin2.revision,
|
|
51260
51267
|
manifest: swiftPackageManifest(
|
|
51261
51268
|
fetchedCheckout(checkouts, identity2, pin2),
|
|
51262
51269
|
void 0,
|
|
@@ -51308,6 +51315,7 @@ function resolveSwiftPackages(options) {
|
|
|
51308
51315
|
const targetOutcomes = /* @__PURE__ */ new Map();
|
|
51309
51316
|
const resolveTarget = (pkg, name3) => {
|
|
51310
51317
|
const key2 = `${pkg.manifest.dir}\0${name3}`;
|
|
51318
|
+
if (sourceFrameworks.has(key2)) return [];
|
|
51311
51319
|
if (targetOutcomes.has(key2)) return targetOutcomes.get(key2);
|
|
51312
51320
|
targetOutcomes.set(key2, []);
|
|
51313
51321
|
const outcome = (() => {
|
|
@@ -51403,6 +51411,18 @@ function resolveSwiftPackages(options) {
|
|
|
51403
51411
|
if (!binaryOnly && claimed.has(key2)) return true;
|
|
51404
51412
|
const target = pkg.manifest.targets.get(name3);
|
|
51405
51413
|
if (target?.type === "binary") {
|
|
51414
|
+
const recipe2 = target.checksum ? sourceFrameworkRecipes.get(target.checksum) : void 0;
|
|
51415
|
+
if (recipe2 && pkg.revision === recipe2.revision && name3 === recipe2.target) {
|
|
51416
|
+
sourceFrameworks.set(key2, {
|
|
51417
|
+
packageTarget: import_node_path78.default.join(pkg.manifest.dir, "#target", name3),
|
|
51418
|
+
project: import_node_path78.default.join(pkg.manifest.dir, recipe2.project),
|
|
51419
|
+
target: name3,
|
|
51420
|
+
configuration: recipe2.configuration,
|
|
51421
|
+
machOType: recipe2.machOType
|
|
51422
|
+
});
|
|
51423
|
+
providedTargets.delete(name3);
|
|
51424
|
+
return true;
|
|
51425
|
+
}
|
|
51406
51426
|
const changed = !options.standinTargets?.has(name3) && shippedBinaryDiffers(name3, target.checksum);
|
|
51407
51427
|
if (changed) providedTargets.delete(name3);
|
|
51408
51428
|
return changed;
|
|
@@ -51447,6 +51467,7 @@ function resolveSwiftPackages(options) {
|
|
|
51447
51467
|
for (const pkg of packages.values()) {
|
|
51448
51468
|
if (typeof pkg === "string") continue;
|
|
51449
51469
|
for (const [name3, target] of pkg.manifest.targets) {
|
|
51470
|
+
if (sourceFrameworks.has(`${pkg.manifest.dir}\0${name3}`)) continue;
|
|
51450
51471
|
if (target.type === "test" || target.type === "plugin" || target.type === "macro")
|
|
51451
51472
|
continue;
|
|
51452
51473
|
if (target.type === "executable") continue;
|
|
@@ -51664,6 +51685,8 @@ function resolveSwiftPackages(options) {
|
|
|
51664
51685
|
const id = targetId(pkg, name3);
|
|
51665
51686
|
if (emitted.has(id)) return id;
|
|
51666
51687
|
emitted.add(id);
|
|
51688
|
+
const framework = sourceFrameworks.get(`${pkg.manifest.dir}\0${name3}`);
|
|
51689
|
+
if (framework) result.sourceFrameworks.push(framework);
|
|
51667
51690
|
const target = pkg.manifest.targets.get(name3);
|
|
51668
51691
|
if (!target) throw new Error(`missing resolved package target ${name3}`);
|
|
51669
51692
|
const dependencies = target.type === "macro" ? [] : target.dependencies.flatMap((dependency) => {
|
|
@@ -51710,7 +51733,7 @@ function resolveSwiftPackages(options) {
|
|
|
51710
51733
|
result.nativeProducts.push({ name: name3, packageDir: manifest.dir, source });
|
|
51711
51734
|
return result;
|
|
51712
51735
|
}
|
|
51713
|
-
var import_node_child_process40, import_node_crypto44, import_node_fs79, import_node_path78, import_promises8, import_node_util11, swiftBinaryOnDisk, SWIFT_PLACEHOLDER_PACKAGES, placeholderPackage, UNSUPPORTED_NATIVE, BINARY, blockers, verified, execFileAsync2, checkoutKey;
|
|
51736
|
+
var import_node_child_process40, import_node_crypto44, import_node_fs79, import_node_path78, import_promises8, import_node_util11, swiftBinaryOnDisk, SWIFT_PLACEHOLDER_PACKAGES, placeholderPackage, sourceFrameworkRecipes, UNSUPPORTED_NATIVE, BINARY, blockers, verified, execFileAsync2, checkoutKey;
|
|
51714
51737
|
var init_swift_packages = __esm({
|
|
51715
51738
|
"src/swift-packages.ts"() {
|
|
51716
51739
|
"use strict";
|
|
@@ -51732,6 +51755,18 @@ var init_swift_packages = __esm({
|
|
|
51732
51755
|
swiftBinaryOnDisk = (binary2) => binary2.url !== null || import_node_fs79.default.existsSync(binary2.dir);
|
|
51733
51756
|
SWIFT_PLACEHOLDER_PACKAGES = /* @__PURE__ */ new Map();
|
|
51734
51757
|
placeholderPackage = (pkg) => SWIFT_PLACEHOLDER_PACKAGES.get(swiftPackageIdentity(pkg.manifest.dir));
|
|
51758
|
+
sourceFrameworkRecipes = /* @__PURE__ */ new Map([
|
|
51759
|
+
[
|
|
51760
|
+
"438de2c5afb7dde20b640af35dd841961aa2aa4d2719e40c92d48bd2aa5dca56",
|
|
51761
|
+
{
|
|
51762
|
+
revision: "a49e7c2148ac9e38bd35ef4f13bc9d6ea3ff0b81",
|
|
51763
|
+
project: "Sentry.xcodeproj",
|
|
51764
|
+
target: "Sentry",
|
|
51765
|
+
configuration: "Release",
|
|
51766
|
+
machOType: "staticlib"
|
|
51767
|
+
}
|
|
51768
|
+
]
|
|
51769
|
+
]);
|
|
51735
51770
|
UNSUPPORTED_NATIVE = /\.(s|S)$/;
|
|
51736
51771
|
BINARY = "is a binary framework";
|
|
51737
51772
|
blockers = (reasons) => [...new Set(reasons.flat())];
|
|
@@ -55642,6 +55677,11 @@ function* xcodeObjCInputSteps(app, binaries, moduleRoot, products, sourceRoot =
|
|
|
55642
55677
|
}
|
|
55643
55678
|
return regular ? source : null;
|
|
55644
55679
|
};
|
|
55680
|
+
for (const directory2 of target.objc.headerSearchPaths) {
|
|
55681
|
+
if (isSdkInclude(directory2)) continue;
|
|
55682
|
+
const file = availableHeader(import_node_path83.default.join(directory2, "module.modulemap"));
|
|
55683
|
+
if (file) queue.push({ file, origin: directory2 });
|
|
55684
|
+
}
|
|
55645
55685
|
for (const name3 of forced) {
|
|
55646
55686
|
const file = [...quoted2, ...includes].filter((directory2) => !isSdkInclude(directory2)).map((directory2) => availableHeader(import_node_path83.default.resolve(directory2, name3))).find((candidate) => candidate !== null);
|
|
55647
55687
|
if (file) queue.push({ file });
|
|
@@ -59859,17 +59899,15 @@ async function swiftPackages(entry, app) {
|
|
|
59859
59899
|
}
|
|
59860
59900
|
function xcodeInputKey(layout2, file, relative4) {
|
|
59861
59901
|
const owner = layout2.targetDirs.get(file);
|
|
59902
|
+
const checkouts = layout2.checkouts;
|
|
59903
|
+
const checkoutPath = file.startsWith(`${checkouts}${import_node_path91.default.sep}`) ? import_node_path91.default.relative(checkouts, file).split(import_node_path91.default.sep).join("/") : null;
|
|
59862
59904
|
if (owner) {
|
|
59863
|
-
const input = file.endsWith(".swift") ? relative4.split("/").map(
|
|
59905
|
+
const input = file.endsWith(".swift") ? (checkoutPath ?? relative4).split("/").map(
|
|
59864
59906
|
(part) => part === "." || part === ".." ? part : part.replaceAll("%", "%25").replace(/^\./, "%2E")
|
|
59865
|
-
).join("/") : relative4;
|
|
59907
|
+
).join("/") : checkoutPath ?? relative4;
|
|
59866
59908
|
return import_node_path91.default.posix.join(owner, input);
|
|
59867
59909
|
}
|
|
59868
|
-
|
|
59869
|
-
return file.startsWith(`${checkouts}${import_node_path91.default.sep}`) ? import_node_path91.default.posix.join(
|
|
59870
|
-
XCODE_PACKAGES_DIR,
|
|
59871
|
-
import_node_path91.default.relative(checkouts, file).split(import_node_path91.default.sep).join("/")
|
|
59872
|
-
) : relative4 === ".." || relative4.startsWith("../") ? import_node_path91.default.posix.join("external", file.split(import_node_path91.default.sep).join("/")) : relative4;
|
|
59910
|
+
return checkoutPath !== null ? import_node_path91.default.posix.join(XCODE_PACKAGES_DIR, checkoutPath) : relative4 === ".." || relative4.startsWith("../") ? import_node_path91.default.posix.join("external", file.split(import_node_path91.default.sep).join("/")) : relative4;
|
|
59873
59911
|
}
|
|
59874
59912
|
async function withXcodeLayout(root, run10) {
|
|
59875
59913
|
const scope2 = /* @__PURE__ */ new Map();
|
|
@@ -59887,7 +59925,7 @@ function xcodeLayout(root) {
|
|
|
59887
59925
|
async function buildXcodeLayout(root) {
|
|
59888
59926
|
const registered = xcodeProjects().get(root);
|
|
59889
59927
|
if (!registered) return null;
|
|
59890
|
-
const
|
|
59928
|
+
const appTarget = readXcodeAppTargetPrepared(
|
|
59891
59929
|
registered.xcodeproj,
|
|
59892
59930
|
registered.target,
|
|
59893
59931
|
registered.configuration,
|
|
@@ -59897,6 +59935,51 @@ async function buildXcodeLayout(root) {
|
|
|
59897
59935
|
nativeModules: registered.nativeModules
|
|
59898
59936
|
}
|
|
59899
59937
|
);
|
|
59938
|
+
const { packages, standins, projectGaps, binaries } = await swiftPackages(
|
|
59939
|
+
registered,
|
|
59940
|
+
appTarget
|
|
59941
|
+
);
|
|
59942
|
+
const sourceFrameworks = new Map(
|
|
59943
|
+
packages.sourceFrameworks.map(
|
|
59944
|
+
({ packageTarget, project: project2, target, configuration, machOType }) => {
|
|
59945
|
+
const framework = readXcodeAppTarget(project2, target, configuration, {
|
|
59946
|
+
prepareGeneratedSources: true,
|
|
59947
|
+
frameworkMachOType: machOType
|
|
59948
|
+
});
|
|
59949
|
+
if (framework.moduleName !== target || framework.allSources.length === 0)
|
|
59950
|
+
throw new Error(
|
|
59951
|
+
`${project2}: ${target} did not produce its declared source module`
|
|
59952
|
+
);
|
|
59953
|
+
if (framework.linkedProducts.length > 0 || framework.binaryFrameworks.some(({ path: path121 }) => path121))
|
|
59954
|
+
throw new Error(
|
|
59955
|
+
`${project2}: ${target} has external dependencies outside the source framework build`
|
|
59956
|
+
);
|
|
59957
|
+
return [packageTarget, framework];
|
|
59958
|
+
}
|
|
59959
|
+
)
|
|
59960
|
+
);
|
|
59961
|
+
const frameworkTargets = [...sourceFrameworks.values()];
|
|
59962
|
+
const app = {
|
|
59963
|
+
...appTarget,
|
|
59964
|
+
frameworks: [
|
|
59965
|
+
...appTarget.frameworks,
|
|
59966
|
+
...frameworkTargets.flatMap((framework) => [...framework.frameworks, framework])
|
|
59967
|
+
],
|
|
59968
|
+
projectFiles: [
|
|
59969
|
+
...appTarget.projectFiles,
|
|
59970
|
+
...frameworkTargets.flatMap((framework) => framework.projectFiles)
|
|
59971
|
+
],
|
|
59972
|
+
resourceProducts: [
|
|
59973
|
+
...appTarget.resourceProducts,
|
|
59974
|
+
...frameworkTargets.flatMap((framework) => framework.resourceProducts)
|
|
59975
|
+
],
|
|
59976
|
+
sdkFrameworks: [
|
|
59977
|
+
.../* @__PURE__ */ new Set([
|
|
59978
|
+
...appTarget.sdkFrameworks,
|
|
59979
|
+
...frameworkTargets.flatMap((framework) => framework.sdkFrameworks)
|
|
59980
|
+
])
|
|
59981
|
+
]
|
|
59982
|
+
};
|
|
59900
59983
|
const appSources = app.allSources;
|
|
59901
59984
|
const checkouts = remoteSwiftCheckouts(app.rootDir);
|
|
59902
59985
|
const files2 = /* @__PURE__ */ new Set([
|
|
@@ -59912,10 +59995,6 @@ async function buildXcodeLayout(root) {
|
|
|
59912
59995
|
const resourceBundles = [
|
|
59913
59996
|
{ target: app.moduleName, sourcePath: XCODE_APP_DIR, path: "." }
|
|
59914
59997
|
];
|
|
59915
|
-
const { packages, standins, projectGaps, binaries } = await swiftPackages(
|
|
59916
|
-
registered,
|
|
59917
|
-
app
|
|
59918
|
-
);
|
|
59919
59998
|
const targets = [];
|
|
59920
59999
|
const frameworkNames = /* @__PURE__ */ new Map();
|
|
59921
60000
|
const usedNames = new Set(
|
|
@@ -60390,7 +60469,14 @@ async function buildXcodeLayout(root) {
|
|
|
60390
60469
|
)
|
|
60391
60470
|
});
|
|
60392
60471
|
}
|
|
60393
|
-
const graphTargets = [
|
|
60472
|
+
const graphTargets = [
|
|
60473
|
+
...app.sourceLinkGraph.targets,
|
|
60474
|
+
...frameworkTargets.flatMap((framework) => framework.sourceLinkGraph.targets),
|
|
60475
|
+
...packages.sourceLinks.targets.map((target) => {
|
|
60476
|
+
const source = sourceFrameworks.get(target.id);
|
|
60477
|
+
return source ? { ...target, dependencies: [{ target: source.id, attributes: [] }] } : target;
|
|
60478
|
+
})
|
|
60479
|
+
];
|
|
60394
60480
|
const applicationBuildVersion = app.sourceLinkGraph.targets.find(
|
|
60395
60481
|
(target) => target.id === app.sourceLinkGraph.entry
|
|
60396
60482
|
).buildVersion;
|
|
@@ -61463,11 +61549,22 @@ async function compile(packagePath, stamp, moduleRootOverride, hosted, snapshot,
|
|
|
61463
61549
|
const parsed2 = compileTargets(input);
|
|
61464
61550
|
const targets = parsed2.map((target) => swiftTargetModuleName(target.name));
|
|
61465
61551
|
const byPath = [...parsed2].sort((left, right) => right.path.length - left.path.length);
|
|
61552
|
+
const clangModulesByTarget = new Map(
|
|
61553
|
+
(input.nativeTargets ?? []).map(({ name: name3, headerSearchPaths }) => [
|
|
61554
|
+
name3,
|
|
61555
|
+
headerSearchPaths.flatMap((directory2) => {
|
|
61556
|
+
const map2 = input.files[import_node_path91.default.posix.join(directory2, "module.modulemap")];
|
|
61557
|
+
return map2 === void 0 ? [] : moduleMapModules(map2).map(({ name: name4 }) => name4);
|
|
61558
|
+
})
|
|
61559
|
+
])
|
|
61560
|
+
);
|
|
61466
61561
|
const providedByFile = (file) => {
|
|
61467
61562
|
const owner = byPath.find(
|
|
61468
61563
|
(target) => target.path === "." ? true : file.startsWith(`${target.path}/`)
|
|
61469
61564
|
);
|
|
61470
|
-
|
|
61565
|
+
if (!owner) return [];
|
|
61566
|
+
const clangModules = clangModulesByTarget.get(owner.name) ?? [];
|
|
61567
|
+
return owner.experimentalFeatures?.includes("BuiltinModule") ? [...clangModules, "Builtin"] : clangModules;
|
|
61471
61568
|
};
|
|
61472
61569
|
const missing2 = missingSwiftModules(
|
|
61473
61570
|
input.files,
|
|
@@ -68165,7 +68262,7 @@ var init_nitro_superset = __esm({
|
|
|
68165
68262
|
init_nitroContract();
|
|
68166
68263
|
init_swift_standin_digest();
|
|
68167
68264
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
68168
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
68265
|
+
NITRO_COMPILER_DIGEST = true ? "09d634619adc6638e3825b30f0b525d9161241c4f85cc899ea493a7d4c2773e4" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
68169
68266
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
68170
68267
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
68171
68268
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -78345,7 +78442,7 @@ init_swift_native_pin();
|
|
|
78345
78442
|
init_xcode_project();
|
|
78346
78443
|
var EXPO_NATIVE_ENTRY_NAME = "ios";
|
|
78347
78444
|
function expoNativeCompilerDigestValue() {
|
|
78348
|
-
return true ? "
|
|
78445
|
+
return true ? "d4d0faa36585edc650e4af73f22815b669e67e40bd5df77ec7d25f8d87e65a0f" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
78349
78446
|
}
|
|
78350
78447
|
var IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
|
|
78351
78448
|
function readSources(value) {
|