peachsim 0.1.2409 → 0.1.2411
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/README.md +2 -5
- package/cli/internal-child-contract.ts +0 -1
- package/cli/internal-child.ts +0 -6
- package/cli/outbound-endpoints.ts +0 -23
- 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 +10313 -4172
- 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 +11579 -5438
- 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 +12830 -6689
- package/dist-lib/host/fetch-proxy-handler.cjs +925 -151
- 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 +1045 -246
- 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 +961 -162
- package/dist-lib/native-app-identity-project.cjs +36 -11
- package/dist-lib/native-app-identity-project.mjs +36 -11
- 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 +124 -104
- 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 +13937 -7796
- package/dist-lib/swift-compile.cjs +62 -14
- package/dist-lib/swift-compile.mjs +62 -13
- 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 +110 -28
- package/dist-lib/vite.cjs +3101 -2327
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +3 -3
- package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASWebAuthenticationSession.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHAsset.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHAssetResource.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHChange.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHFetchOptions.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHFetchResult.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHImageManager.h +2 -2
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHObject.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHPhotoLibrary.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIVibrancyEffect.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIVisualEffectView.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKitActivity.framework/Headers/UIKitActivity.h +1 -1
- package/src/nitro-adapter.lock.json +262 -262
- package/src/nitro-superset.lock.json +4 -4
- package/src/podspec-cocoapods.ts +934 -0
- package/src/podspec-prism.ts +66 -0
- package/src/podspec-ruby-stdlib.ts +1121 -0
- package/src/podspec-ruby.ts +5175 -0
- package/src/podspec-sources.ts +25 -112
- package/src/swift-compile.ts +70 -12
- package/src/swift-distribution.lock.json +9 -8
- package/src/swift-host.ts +14 -4
- package/src/turbo-runtime.lock.json +19 -19
- package/src/xcode-project.ts +37 -11
- package/cli/drivers/linux-cocoapods.lock.json +0 -303
- package/cli/drivers/linux-cocoapods.ts +0 -99
package/dist-lib/vite-swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2411 | (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;
|
|
@@ -18781,7 +18781,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
18781
18781
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
18782
18782
|
var MULTI_MANIFEST_VERSION = 71;
|
|
18783
18783
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
18784
|
-
var compilerSourceDigest = true ? "
|
|
18784
|
+
var compilerSourceDigest = true ? "5bdda04d424b3a504c042269bf0bebf701fc0435974970611138a79db9b959cd" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
18785
18785
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
18786
18786
|
const hash = (0, import_node_crypto14.createHash)("sha256");
|
|
18787
18787
|
hash.update(`swift-compile
|
|
@@ -19301,6 +19301,8 @@ var ARCH_ARM64 = /\barch\(\s*arm64\s*\)/g;
|
|
|
19301
19301
|
var NOT_ON_IOS = /\b(?:os\(\s*WASI\s*\)|canImport\(\s*FoundationNetworking\s*\))/g;
|
|
19302
19302
|
var DELEGATE_CLASS = /^class\s+[A-Za-z_]\w*\s*(?:<[^>{]*>)?\s*:[^{]*\b(?:UIApplicationDelegate|UISceneDelegate|UIWindowSceneDelegate)\b[^{]*\{/;
|
|
19303
19303
|
var ARM64_MACRO = /^__(?:aarch64|arm64|AARCH64|ARM)/;
|
|
19304
|
+
var WASM_MACRO = /\b__(?:wasm(?:32|64)?|wasi)__\b/;
|
|
19305
|
+
var ARCH_WASM32 = /\barch\(\s*wasm32\s*\)/;
|
|
19304
19306
|
var C_WORDS = new Set(
|
|
19305
19307
|
"auto bool break case char const continue default do double else enum extern false float for goto if inline int long register restrict return short signed sizeof static struct switch true typedef union unsigned void volatile while YES NO NULL nil Nil id self super instancetype".split(
|
|
19306
19308
|
" "
|
|
@@ -19318,18 +19320,28 @@ function headerNamesByArch(headers) {
|
|
|
19318
19320
|
}
|
|
19319
19321
|
};
|
|
19320
19322
|
})();
|
|
19321
|
-
const names = {
|
|
19323
|
+
const names = {
|
|
19324
|
+
arm64: /* @__PURE__ */ new Set(),
|
|
19325
|
+
wasm: /* @__PURE__ */ new Set(),
|
|
19326
|
+
withoutWasm: /* @__PURE__ */ new Set()
|
|
19327
|
+
};
|
|
19328
|
+
const withoutWasm = { ...archEnvironments.wasm, defines: emptyMacroEnvironment.defines };
|
|
19322
19329
|
for (const header of headers) {
|
|
19323
19330
|
const code = stripCCode(header);
|
|
19324
19331
|
const wasm = cActiveCode(code, archEnvironments.wasm).match(/[A-Za-z_]\w*/g) ?? [];
|
|
19325
19332
|
for (const name3 of wasm) names.wasm.add(name3);
|
|
19333
|
+
if (WASM_MACRO.test(code))
|
|
19334
|
+
for (const match of cActiveCode(code, withoutWasm).matchAll(
|
|
19335
|
+
/\b([A-Za-z_]\w*)\s*\(/g
|
|
19336
|
+
))
|
|
19337
|
+
names.withoutWasm.add(match[1]);
|
|
19326
19338
|
if (!/\b__(?:aarch64|arm64|AARCH64|ARM)/.test(code)) continue;
|
|
19327
19339
|
for (const name3 of cActiveCode(code, archEnvironments.arm64).match(/[A-Za-z_]\w*/g) ?? [])
|
|
19328
19340
|
names.arm64.add(name3);
|
|
19329
19341
|
}
|
|
19330
19342
|
return names;
|
|
19331
19343
|
}
|
|
19332
|
-
function
|
|
19344
|
+
function swiftTargetArchitectures(targets, swiftSources, headers) {
|
|
19333
19345
|
const byName = new Map(targets.map((target) => [target.name, target]));
|
|
19334
19346
|
const namesByTarget = /* @__PURE__ */ new Map();
|
|
19335
19347
|
const targetNames = (target) => {
|
|
@@ -19339,6 +19351,7 @@ function swiftTargetsOnWasmArch(targets, swiftSources, headers) {
|
|
|
19339
19351
|
return names;
|
|
19340
19352
|
};
|
|
19341
19353
|
const onWasm = /* @__PURE__ */ new Set();
|
|
19354
|
+
const withoutWasm = /* @__PURE__ */ new Map();
|
|
19342
19355
|
for (const [name3, sources] of swiftSources) {
|
|
19343
19356
|
const target = byName.get(name3);
|
|
19344
19357
|
if (!target) continue;
|
|
@@ -19350,6 +19363,12 @@ function swiftTargetsOnWasmArch(targets, swiftSources, headers) {
|
|
|
19350
19363
|
})
|
|
19351
19364
|
].map(targetNames);
|
|
19352
19365
|
const wasm = new Set(visible.flatMap((names) => [...names.wasm]));
|
|
19366
|
+
if (sources.some((source) => ARCH_WASM32.test(source))) {
|
|
19367
|
+
const unavailable2 = new Set(
|
|
19368
|
+
visible.flatMap((names) => [...names.withoutWasm]).filter((name4) => !wasm.has(name4))
|
|
19369
|
+
);
|
|
19370
|
+
if (unavailable2.size) withoutWasm.set(name3, unavailable2);
|
|
19371
|
+
}
|
|
19353
19372
|
const arm64Only = [...new Set(visible.flatMap((names) => [...names.arm64]))].filter(
|
|
19354
19373
|
(name4) => !wasm.has(name4) && !C_WORDS.has(name4)
|
|
19355
19374
|
);
|
|
@@ -19358,7 +19377,41 @@ function swiftTargetsOnWasmArch(targets, swiftSources, headers) {
|
|
|
19358
19377
|
if (sources.some((source) => named.test(source) && named.test(swiftCodeMask(source))))
|
|
19359
19378
|
onWasm.add(name3);
|
|
19360
19379
|
}
|
|
19361
|
-
return onWasm;
|
|
19380
|
+
return { onWasm, withoutWasm };
|
|
19381
|
+
}
|
|
19382
|
+
function swiftWasmCallGuards(source, unavailable2) {
|
|
19383
|
+
if (!ARCH_WASM32.test(source)) return source;
|
|
19384
|
+
const code = swiftCodeMask(source);
|
|
19385
|
+
const clauses = /^[ \t]*#(if|elseif|else|endif)\b([^\n]*)/gm;
|
|
19386
|
+
const stack = [];
|
|
19387
|
+
const edits = [];
|
|
19388
|
+
for (const directive of code.matchAll(clauses)) {
|
|
19389
|
+
const kind = directive[1];
|
|
19390
|
+
if (kind !== "if") {
|
|
19391
|
+
const previous = stack.pop();
|
|
19392
|
+
if (previous) {
|
|
19393
|
+
const body = code.slice(previous.body, directive.index);
|
|
19394
|
+
for (const match of body.matchAll(/\b([A-Za-z_]\w*)\s*\(/g)) {
|
|
19395
|
+
if (!unavailable2.has(match[1])) continue;
|
|
19396
|
+
const condition = ARCH_WASM32.exec(code.slice(previous.start, previous.body));
|
|
19397
|
+
edits.push([
|
|
19398
|
+
previous.start + condition.index,
|
|
19399
|
+
condition[0].length,
|
|
19400
|
+
"true".padEnd(condition[0].length)
|
|
19401
|
+
]);
|
|
19402
|
+
break;
|
|
19403
|
+
}
|
|
19404
|
+
}
|
|
19405
|
+
}
|
|
19406
|
+
if (kind !== "endif")
|
|
19407
|
+
stack.push(
|
|
19408
|
+
/^\s*!\s*arch\(\s*wasm32\s*\)\s*$/.test(directive[2]) ? { start: directive.index, body: directive.index + directive[0].length } : void 0
|
|
19409
|
+
);
|
|
19410
|
+
}
|
|
19411
|
+
let out = source;
|
|
19412
|
+
for (const [at, width, replacement] of edits.sort((a, b) => b[0] - a[0]))
|
|
19413
|
+
out = out.slice(0, at) + replacement + out.slice(at + width);
|
|
19414
|
+
return out;
|
|
19362
19415
|
}
|
|
19363
19416
|
function compiledSwiftSources(files2, targets, overlayFrameworks, headers, nativeSourceGlue = false) {
|
|
19364
19417
|
const ordered = [...targets].sort((a, b) => b.path.length - a.path.length);
|
|
@@ -19379,7 +19432,7 @@ function compiledSwiftSources(files2, targets, overlayFrameworks, headers, nativ
|
|
|
19379
19432
|
for (const { source, owner } of owners.values())
|
|
19380
19433
|
if (owner)
|
|
19381
19434
|
swiftSources.set(owner.name, [...swiftSources.get(owner.name) ?? [], source]);
|
|
19382
|
-
const
|
|
19435
|
+
const { onWasm, withoutWasm } = swiftTargetArchitectures(targets, swiftSources, headers);
|
|
19383
19436
|
return new Map(
|
|
19384
19437
|
[...owners].map(([file, { source, owner }]) => {
|
|
19385
19438
|
if (nativeSourceGlue && import_node_path28.default.posix.basename(file) === "OneNativeSource.generated.swift")
|
|
@@ -19387,11 +19440,12 @@ function compiledSwiftSources(files2, targets, overlayFrameworks, headers, nativ
|
|
|
19387
19440
|
const manifest = /(?:^|\/)Package(?:@swift-[\d.]+)?\.swift$/.test(file);
|
|
19388
19441
|
if (manifest && (!owner || /^Package(?:@swift-[\d.]+)?\.swift$/.test(file)))
|
|
19389
19442
|
return [file, source];
|
|
19443
|
+
const unavailable2 = owner && withoutWasm.get(owner.name);
|
|
19390
19444
|
const ios = swiftSourceAsIOS(
|
|
19391
|
-
source,
|
|
19445
|
+
unavailable2 ? swiftWasmCallGuards(source, unavailable2) : source,
|
|
19392
19446
|
overlayFrameworks,
|
|
19393
19447
|
owner?.defines?.includes(SWIFT_XCODE_BUILD_CONDITION) && !owner.defines.includes("SWIFT_PACKAGE") ? false : void 0,
|
|
19394
|
-
!owner || !
|
|
19448
|
+
!owner || !onWasm.has(owner.name)
|
|
19395
19449
|
);
|
|
19396
19450
|
return [file, withPreconcurrencyFoundationModules(ios)];
|
|
19397
19451
|
})
|
|
@@ -19533,7 +19587,6 @@ var FOUNDATION_OVERLAY_TYPES = /* @__PURE__ */ new Set([
|
|
|
19533
19587
|
"NSAssertionHandler",
|
|
19534
19588
|
"NSAttributedStringFormattingContextKey",
|
|
19535
19589
|
"NSBundleResourceRequest",
|
|
19536
|
-
"NSCollectionChangeType",
|
|
19537
19590
|
"NSConditionLock",
|
|
19538
19591
|
"NSException",
|
|
19539
19592
|
"NSExtensionItem",
|
|
@@ -19571,9 +19624,6 @@ var FOUNDATION_OVERLAY_TYPES = /* @__PURE__ */ new Set([
|
|
|
19571
19624
|
"NSMetadataQueryAttributeValueTuple",
|
|
19572
19625
|
"NSMetadataQueryDelegate",
|
|
19573
19626
|
"NSMetadataQueryResultGroup",
|
|
19574
|
-
"NSOrderedCollectionChange",
|
|
19575
|
-
"NSOrderedCollectionDifference",
|
|
19576
|
-
"NSOrderedCollectionDifferenceCalculationOptions",
|
|
19577
19627
|
"NSPointerArray",
|
|
19578
19628
|
"NSPredicateValidating",
|
|
19579
19629
|
"NSProxy",
|
|
@@ -27098,7 +27148,7 @@ var import_node_fs35 = require("node:fs");
|
|
|
27098
27148
|
var import_node_path35 = require("node:path");
|
|
27099
27149
|
|
|
27100
27150
|
// src/swift-coverage/provenance.ts
|
|
27101
|
-
var swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"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":"
|
|
27151
|
+
var swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"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":"b0da81ab133ad067978e174c2f62f5a9655dfe6b5639bc4b884f3137a8136144","xcode-target-members.ts":"2f25aaf5a3aa34395983c75935491c06bd68554c47ff1cb06b49c79499c03db0","xcode-json-project.ts":"41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6","openstep-plist.ts":"74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3"}') : swiftCoverageSourceDigests((0, import_node_path.join)(__sootsim_import_meta_dirname, ".."));
|
|
27102
27152
|
|
|
27103
27153
|
// src/swift-coverage/xcode-asset-symbols.ts
|
|
27104
27154
|
var import_node_fs34 = require("node:fs");
|
|
@@ -31170,6 +31220,11 @@ function applyOperator(value, operator) {
|
|
|
31170
31220
|
case "identifier":
|
|
31171
31221
|
case "c99extidentifier":
|
|
31172
31222
|
return value.replace(/[^A-Za-z0-9_]/g, "_").replace(/^[0-9]/, "_");
|
|
31223
|
+
case "standardizepath":
|
|
31224
|
+
if (value === ".") return value;
|
|
31225
|
+
if (import_node_path41.default.posix.isAbsolute(value))
|
|
31226
|
+
return import_node_path41.default.posix.normalize(value).replace(/(?<=.)\/$/, "");
|
|
31227
|
+
return value.split("/").filter((component) => component !== "" && component !== ".").join("/");
|
|
31173
31228
|
}
|
|
31174
31229
|
throw new Error(`unsupported build setting operator :${operator}`);
|
|
31175
31230
|
}
|
|
@@ -31478,14 +31533,34 @@ function compilationConditions(settings) {
|
|
|
31478
31533
|
];
|
|
31479
31534
|
}
|
|
31480
31535
|
function expand(value, lookup) {
|
|
31481
|
-
|
|
31482
|
-
|
|
31483
|
-
|
|
31484
|
-
|
|
31485
|
-
|
|
31486
|
-
|
|
31487
|
-
|
|
31488
|
-
|
|
31536
|
+
const references = /\$([({]|[A-Za-z_][A-Za-z0-9_]*)/g;
|
|
31537
|
+
let output2 = "";
|
|
31538
|
+
let cursor = 0;
|
|
31539
|
+
for (let match = references.exec(value); match; match = references.exec(value)) {
|
|
31540
|
+
let expression = match[1];
|
|
31541
|
+
let end = references.lastIndex;
|
|
31542
|
+
if (expression === "(" || expression === "{") {
|
|
31543
|
+
const start = end;
|
|
31544
|
+
const delimiters = [expression === "(" ? ")" : "}"];
|
|
31545
|
+
while (end < value.length && delimiters.length > 0) {
|
|
31546
|
+
const character = value[end++];
|
|
31547
|
+
if (character === delimiters.at(-1)) delimiters.pop();
|
|
31548
|
+
else if (character === "$" && (value[end] === "(" || value[end] === "{"))
|
|
31549
|
+
delimiters.push(value[end++] === "(" ? ")" : "}");
|
|
31550
|
+
}
|
|
31551
|
+
if (delimiters.length > 0) continue;
|
|
31552
|
+
expression = expand(value.slice(start, end - 1), lookup);
|
|
31553
|
+
}
|
|
31554
|
+
const [name3, ...operators] = expression.split(":");
|
|
31555
|
+
if (!name3 || !/^[A-Za-z_][A-Za-z0-9_-]*$/.test(name3)) continue;
|
|
31556
|
+
output2 += value.slice(cursor, match.index);
|
|
31557
|
+
output2 += operators.reduce(
|
|
31558
|
+
(current, operator) => applyOperator(current, operator),
|
|
31559
|
+
lookup(name3)
|
|
31560
|
+
);
|
|
31561
|
+
cursor = references.lastIndex = end;
|
|
31562
|
+
}
|
|
31563
|
+
return output2 + value.slice(cursor);
|
|
31489
31564
|
}
|
|
31490
31565
|
var preparedSourcePhases = /* @__PURE__ */ new Map();
|
|
31491
31566
|
function shellAssetCatalogs(script, settings, projectDir) {
|
|
@@ -34294,7 +34369,7 @@ function sourceClosureDigest(srcDir, entrypoints, excludedFiles) {
|
|
|
34294
34369
|
return hash.digest("hex");
|
|
34295
34370
|
}
|
|
34296
34371
|
var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
34297
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
34372
|
+
var STANDIN_SOURCE_DIGEST = true ? "2d765e977c08a74dad452d5ca662fba6baa967ccf18a7456e60717372076300b" : standinSourceDigest();
|
|
34298
34373
|
|
|
34299
34374
|
// src/swift-standins.ts
|
|
34300
34375
|
var import_node_child_process32 = require("node:child_process");
|
|
@@ -39665,8 +39740,7 @@ var RNX_INTERNAL_CHILDREN = {
|
|
|
39665
39740
|
playwrightInstall: "playwright-install",
|
|
39666
39741
|
playwrightHost: "playwright-host",
|
|
39667
39742
|
syncHttp: "sync-http",
|
|
39668
|
-
pdfRaster: "pdf-raster"
|
|
39669
|
-
linuxCocoaPods: "linux-cocoapods"
|
|
39743
|
+
pdfRaster: "pdf-raster"
|
|
39670
39744
|
};
|
|
39671
39745
|
|
|
39672
39746
|
// cli/self-invocation.ts
|
|
@@ -41008,13 +41082,21 @@ function buildSwiftResourceTable(project, baseUrl, inputs) {
|
|
|
41008
41082
|
return swiftResourceBundleForFile(bundles, key2)?.path ?? ".";
|
|
41009
41083
|
}
|
|
41010
41084
|
).map((image) => ({ ...image, file: bundled.get(image.file) ?? image.file }));
|
|
41011
|
-
const
|
|
41012
|
-
const symbols = enumerateBundleSymbols(catalogFiles, readContents2, (file) => {
|
|
41085
|
+
const catalogBundle = (file) => {
|
|
41013
41086
|
const disk = byRelative.get(file);
|
|
41014
|
-
if (!disk) throw new Error(`
|
|
41087
|
+
if (!disk) throw new Error(`catalog source ${file} has no input file`);
|
|
41015
41088
|
const key2 = layout2 ? xcodeInputKey(layout2, disk, file) : file;
|
|
41016
41089
|
return swiftResourceBundleForFile(bundles, key2)?.path ?? ".";
|
|
41017
|
-
}
|
|
41090
|
+
};
|
|
41091
|
+
const colors = enumerateBundleColors(catalogFiles, readContents2);
|
|
41092
|
+
const packageCatalogs = Map.groupBy(catalogFiles, catalogBundle);
|
|
41093
|
+
packageCatalogs.delete(".");
|
|
41094
|
+
for (const [bundle, files2] of packageCatalogs)
|
|
41095
|
+
for (const [name3, color] of Object.entries(
|
|
41096
|
+
enumerateBundleColors(files2, readContents2)
|
|
41097
|
+
))
|
|
41098
|
+
colors[`${bundle}/${name3}`] = color;
|
|
41099
|
+
const symbols = enumerateBundleSymbols(catalogFiles, readContents2, catalogBundle);
|
|
41018
41100
|
const table = /* @__PURE__ */ Object.create(null);
|
|
41019
41101
|
const images = {};
|
|
41020
41102
|
const metalSources = {};
|