peachsim 0.1.2609 → 0.1.2611
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/commands/perf-native.ts +120 -6
- 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 +2 -2
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +5 -5
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +3 -3
- package/dist-lib/bundle-channel.cjs +60541 -60228
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +3 -3
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +3 -3
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +2 -2
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +7 -7
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +5 -5
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/esm-chunks/{acorn-P6Q3SN6U.mjs → acorn-BKODFARF.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-5V7JOQMI.mjs → chunk-3JA6XLP4.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-4HCHYS5S.mjs → chunk-45CENTIY.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-FIUWBFDV.mjs → chunk-4C3LKD3A.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-MF7HNQ5K.mjs → chunk-4CJMDUKF.mjs} +1490 -3950
- package/dist-lib/esm-chunks/{chunk-L4ATOCRX.mjs → chunk-52XQJZ6O.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-DN4RY4ZO.mjs → chunk-7L5LUPZA.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-VHBBOWKT.mjs → chunk-A6GNAMLP.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-3MJN4KBR.mjs → chunk-C4BW35N7.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-UMKSCALR.mjs → chunk-CAFNSCPD.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-LSNKOL3L.mjs → chunk-CWLKT7TD.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-3LX34QVB.mjs → chunk-FWUDTM5Y.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-PKXGC5OZ.mjs → chunk-H2JPB73X.mjs} +1 -1
- package/dist-lib/esm-chunks/chunk-HWMD7II5.mjs +322 -0
- package/dist-lib/esm-chunks/{chunk-GJZ2ROIK.mjs → chunk-J6N5KKMZ.mjs} +14 -12
- package/dist-lib/esm-chunks/{chunk-7JYSTMRO.mjs → chunk-JWA5AIJM.mjs} +1 -1
- package/dist-lib/esm-chunks/chunk-KOT7HREP.mjs +2655 -0
- package/dist-lib/esm-chunks/{chunk-2UJG76LY.mjs → chunk-LDV2MZFL.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-62CUUMJF.mjs → chunk-LNZNCA7M.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-T554RY2B.mjs → chunk-NUISME6Y.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-IHK4FK5A.mjs → chunk-SFDNE5S2.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-CJLXAXGU.mjs → chunk-SKW2UNWS.mjs} +17 -328
- package/dist-lib/esm-chunks/{chunk-ZUBTL7EH.mjs → chunk-SNMPI3I2.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-D44BCQPZ.mjs → chunk-XSRZQWH5.mjs} +34 -28
- package/dist-lib/esm-chunks/{chunk-FOM5H3FB.mjs → chunk-YFSTB4CX.mjs} +4 -4
- package/dist-lib/esm-chunks/{metro-layout-parser-7VIYXTX3.mjs → metro-layout-parser-BMN3E2RD.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-GNRGNGKJ.mjs → swift-package-prebuilt-VMBB763C.mjs} +14 -11
- package/dist-lib/esm-chunks/{swift-sdk-app-module-QMYD4WKD.mjs → swift-sdk-app-module-SJ6OZAVA.mjs} +16 -14
- package/dist-lib/esm-chunks/{swift-sdk-image-LUAWELUR.mjs → swift-sdk-image-U53EKCZW.mjs} +16 -14
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-A4Y2EYPV.mjs → swift-sdk-image-producer-TQQ33C3G.mjs} +8 -6
- package/dist-lib/expo-swift-bundle.cjs +42532 -42219
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +7 -7
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +43727 -43251
- package/dist-lib/host/fetch-proxy-handler.cjs +670 -645
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +3 -3
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +3 -3
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +4 -4
- package/dist-lib/native-app-identity-project.cjs +1499 -2889
- package/dist-lib/native-app-identity-project.mjs +317 -339
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +6 -6
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +3 -3
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +2 -2
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +3 -3
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +166 -154
- package/dist-lib/public-origins-lib.json +141 -198
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +2 -2
- 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 +8 -8
- package/dist-lib/skills.cjs +38917 -38441
- package/dist-lib/swift-compile.cjs +12239 -12121
- package/dist-lib/swift-compile.mjs +36 -33
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +3 -3
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +6 -6
- package/dist-lib/swift-svg-raster.cjs +1 -1
- package/dist-lib/swift-svg-raster.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
- package/dist-lib/vendor/acorn.cjs +1 -1
- package/dist-lib/vendor/magic-string.cjs +1 -1
- package/dist-lib/vendor/stream-json.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
- package/dist-lib/vendor/sucrase.cjs +1 -1
- package/dist-lib/vendor/terser.cjs +1 -1
- package/dist-lib/vendor/valibot.cjs +1 -1
- package/dist-lib/vendor/ws.cjs +1 -1
- package/dist-lib/vendor/zod.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +3 -3
- package/package.json +1 -1
- package/src/binaryen.lock.json +3 -3
- package/src/genrule-archives.ts +5 -2
- package/src/gitignore.ts +8 -3
- package/src/kotlin-library-sources.ts +320 -0
- package/src/native-framework-compiler.ts +1 -1
- package/src/native-static-libraries.ts +2 -3
- package/src/native-swift-slices.ts +1 -1
- package/src/nitro-dependencies.ts +3 -7
- package/src/one-native-controls-package.ts +165 -11
- package/src/oneNativeControlsContract.ts +1 -0
- package/src/rive-runtime-dependencies.ts +1 -2
- package/src/swift-compile.ts +165 -1796
- package/src/swift-compiler-digest.ts +2 -0
- package/src/swift-distribution.ts +39 -15
- package/src/swift-objc-compile.ts +194 -32
- package/src/swift-package-manifest.ts +6 -29
- package/src/swift-packages.ts +6 -14
- package/src/swift-sdk-surface.ts +1811 -0
- package/src/swift-standin-digest.ts +28 -5
- package/src/swift-standins.ts +16 -19
- package/src/swift-wasm-archive.ts +200 -0
- package/src/swift-wasm-prune.ts +3 -93
- package/src/swift-wasm64-native-source.ts +4 -2
- package/src/swiftWasm64ConfigContract.ts +10 -0
- package/src/wasm-optimize.ts +18 -14
- package/src/xcode-project.ts +2 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2611 | (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;
|
|
@@ -989,13 +989,13 @@ var init_swift_standin_digest = __esm({
|
|
|
989
989
|
import_node_crypto5 = require("node:crypto");
|
|
990
990
|
import_node_fs11 = require("node:fs");
|
|
991
991
|
import_node_path12 = __toESM(require("node:path"), 1);
|
|
992
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
992
|
+
STANDIN_SOURCE_DIGEST = true ? "50a5456d1d027c009c10792b85618252cc788b290b745d16463d26584bfc163f" : standinSourceDigest();
|
|
993
993
|
}
|
|
994
994
|
});
|
|
995
995
|
|
|
996
996
|
// src/expo-native-compiler-digest.ts
|
|
997
997
|
function expoNativeCompilerDigestValue() {
|
|
998
|
-
return true ? "
|
|
998
|
+
return true ? "587abe71f8ffa4c9a9681563b49d62ef0c8e41df27f31054748faca214f30400" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
999
999
|
}
|
|
1000
1000
|
var import_node_crypto6;
|
|
1001
1001
|
var init_expo_native_compiler_digest = __esm({
|
|
@@ -1255,7 +1255,7 @@ var init_rustWasm64ConfigContract = __esm({
|
|
|
1255
1255
|
});
|
|
1256
1256
|
|
|
1257
1257
|
// src/swiftWasm64ConfigContract.ts
|
|
1258
|
-
var boringsslWordSize, swiftWasm64PlatformGates;
|
|
1258
|
+
var boringsslWordSize, swiftWasm64PlatformGates, DOUBLE_CONVERSION_WASM64_BACKPORT;
|
|
1259
1259
|
var init_swiftWasm64ConfigContract = __esm({
|
|
1260
1260
|
"src/swiftWasm64ConfigContract.ts"() {
|
|
1261
1261
|
"use strict";
|
|
@@ -1272,6 +1272,13 @@ var init_swiftWasm64ConfigContract = __esm({
|
|
|
1272
1272
|
swiftWasm64PlatformGates = {
|
|
1273
1273
|
"swift-nio-ssl/wasm64-word-size": boringsslWordSize
|
|
1274
1274
|
};
|
|
1275
|
+
DOUBLE_CONVERSION_WASM64_BACKPORT = {
|
|
1276
|
+
upstreamCommit: "8857767d5b2f5a035321e3712e8cd0008840ba6b",
|
|
1277
|
+
originalSha256: "b495b11f7b61693486894f747add5b454894b8b3ca41aa1610d370ba16407ab7",
|
|
1278
|
+
derivedSha256: "d8e40c283479c1d8682646a65a869ed42c68b6dc3fb27e502aed5291d7dd223c",
|
|
1279
|
+
before: " defined(__AARCH64EL__)\n",
|
|
1280
|
+
after: " defined(__AARCH64EL__) || defined(__wasm64__)\n"
|
|
1281
|
+
};
|
|
1275
1282
|
}
|
|
1276
1283
|
});
|
|
1277
1284
|
|
|
@@ -1367,7 +1374,7 @@ var init_swift_submit = __esm({
|
|
|
1367
1374
|
});
|
|
1368
1375
|
|
|
1369
1376
|
// src/nitro-dependencies.ts
|
|
1370
|
-
var import_node_child_process6, import_node_crypto8, import_node_fs15, import_node_path16, import_node_util2, run2,
|
|
1377
|
+
var import_node_child_process6, import_node_crypto8, import_node_fs15, import_node_path16, import_node_util2, run2, DOUBLE_CONVERSION_WASM64_BACKPORT2, RN_SHARED_DEPENDENCIES, RN_FMT_11_DEPENDENCIES, RN_FAST_FLOAT_6_DEPENDENCIES, RN_FMT_12_DEPENDENCIES;
|
|
1371
1378
|
var init_nitro_dependencies = __esm({
|
|
1372
1379
|
"src/nitro-dependencies.ts"() {
|
|
1373
1380
|
"use strict";
|
|
@@ -1381,14 +1388,9 @@ var init_nitro_dependencies = __esm({
|
|
|
1381
1388
|
init_kotlin_toolchain();
|
|
1382
1389
|
init_swift_source_file();
|
|
1383
1390
|
init_swift_submit();
|
|
1391
|
+
init_swiftWasm64ConfigContract();
|
|
1384
1392
|
run2 = (0, import_node_util2.promisify)(import_node_child_process6.execFile);
|
|
1385
|
-
|
|
1386
|
-
upstreamCommit: "8857767d5b2f5a035321e3712e8cd0008840ba6b",
|
|
1387
|
-
originalSha256: "b495b11f7b61693486894f747add5b454894b8b3ca41aa1610d370ba16407ab7",
|
|
1388
|
-
derivedSha256: "d8e40c283479c1d8682646a65a869ed42c68b6dc3fb27e502aed5291d7dd223c",
|
|
1389
|
-
before: " defined(__AARCH64EL__)\n",
|
|
1390
|
-
after: " defined(__AARCH64EL__) || defined(__wasm64__)\n"
|
|
1391
|
-
};
|
|
1393
|
+
DOUBLE_CONVERSION_WASM64_BACKPORT2 = DOUBLE_CONVERSION_WASM64_BACKPORT;
|
|
1392
1394
|
RN_SHARED_DEPENDENCIES = [
|
|
1393
1395
|
{
|
|
1394
1396
|
name: "RCT-Folly",
|
|
@@ -1414,7 +1416,7 @@ var init_nitro_dependencies = __esm({
|
|
|
1414
1416
|
prefix: "double-conversion-1.1.6",
|
|
1415
1417
|
headers: { from: "src", to: "double-conversion" },
|
|
1416
1418
|
files: /\.(?:h|cc)$/,
|
|
1417
|
-
backport: { file: "src/utils.h", ...
|
|
1419
|
+
backport: { file: "src/utils.h", ...DOUBLE_CONVERSION_WASM64_BACKPORT2 }
|
|
1418
1420
|
},
|
|
1419
1421
|
{
|
|
1420
1422
|
name: "fast_float",
|
|
@@ -4929,6 +4931,13 @@ var init_swift_sdk_image_wasm = __esm({
|
|
|
4929
4931
|
}
|
|
4930
4932
|
});
|
|
4931
4933
|
|
|
4934
|
+
// src/swift-wasm-archive.ts
|
|
4935
|
+
var init_swift_wasm_archive = __esm({
|
|
4936
|
+
"src/swift-wasm-archive.ts"() {
|
|
4937
|
+
"use strict";
|
|
4938
|
+
}
|
|
4939
|
+
});
|
|
4940
|
+
|
|
4932
4941
|
// src/swiftRuntimeProductContract.ts
|
|
4933
4942
|
var v2, swiftFrameworkProductSchema, swiftSdkProductSchema, swiftSdkProductsSchema;
|
|
4934
4943
|
var init_swiftRuntimeProductContract = __esm({
|
|
@@ -5063,6 +5072,7 @@ var init_swift_wasm_prune = __esm({
|
|
|
5063
5072
|
init_swift_resource_class_names();
|
|
5064
5073
|
init_swift_sdk_image_wasm();
|
|
5065
5074
|
init_swift_toolchain();
|
|
5075
|
+
init_swift_wasm_archive();
|
|
5066
5076
|
init_swiftRuntimeProductContract();
|
|
5067
5077
|
PRUNED_SDK_ARCHIVES = /* @__PURE__ */ new Set([
|
|
5068
5078
|
"libFoundation",
|
|
@@ -5299,17 +5309,17 @@ var init_binaryen_lock = __esm({
|
|
|
5299
5309
|
"linux-x64": {
|
|
5300
5310
|
asset: "x86_64-linux",
|
|
5301
5311
|
upstreamSha256: "195ddc94f9bc89f45abdabb0b9eea86023d727ba90eac8b35b80f2544fc30572",
|
|
5302
|
-
sha256: "
|
|
5312
|
+
sha256: "34e359dae4b35ad379755df85d0c17308c4e02a99dc86a7faf8ee5db50a65ee4"
|
|
5303
5313
|
},
|
|
5304
5314
|
"linux-arm64": {
|
|
5305
5315
|
asset: "aarch64-linux",
|
|
5306
5316
|
upstreamSha256: "c58562417836c5d0493d89bdefc434933bdc097db641b483df86bcfa557a107f",
|
|
5307
|
-
sha256: "
|
|
5317
|
+
sha256: "5e59bd2d85b10f9a55a652a84e0d082498bea7e2fefd3bcc4387fa3c70e79d9a"
|
|
5308
5318
|
},
|
|
5309
5319
|
"darwin-arm64": {
|
|
5310
5320
|
asset: "arm64-macos",
|
|
5311
5321
|
upstreamSha256: "98aad827847af7ef990ed7098d885725c8e5b5aae75073403635617ae4e259aa",
|
|
5312
|
-
sha256: "
|
|
5322
|
+
sha256: "bb007fa7c964e00eacc90389b37dfaaf0a4e3a98ea60244986e9317597440443"
|
|
5313
5323
|
}
|
|
5314
5324
|
}
|
|
5315
5325
|
};
|
|
@@ -5622,6 +5632,42 @@ var init_swift_root_lock = __esm({
|
|
|
5622
5632
|
}
|
|
5623
5633
|
});
|
|
5624
5634
|
|
|
5635
|
+
// src/swift-sdk-surface.ts
|
|
5636
|
+
var import_node_child_process33, import_node_crypto37, import_node_fs60, import_node_os13, import_node_path61, NON_IOS_MODULES, CODE_MASK_CACHE_CHARS, emptyMacroEnvironment, wasmMacroEnvironment;
|
|
5637
|
+
var init_swift_sdk_surface = __esm({
|
|
5638
|
+
"src/swift-sdk-surface.ts"() {
|
|
5639
|
+
"use strict";
|
|
5640
|
+
import_node_child_process33 = require("node:child_process");
|
|
5641
|
+
import_node_crypto37 = require("node:crypto");
|
|
5642
|
+
import_node_fs60 = require("node:fs");
|
|
5643
|
+
import_node_os13 = __toESM(require("node:os"), 1);
|
|
5644
|
+
import_node_path61 = __toESM(require("node:path"), 1);
|
|
5645
|
+
init_admitted_mac_build();
|
|
5646
|
+
init_home_paths();
|
|
5647
|
+
init_swift_distribution_contract();
|
|
5648
|
+
init_swift_package();
|
|
5649
|
+
init_swift_shared_sdk();
|
|
5650
|
+
init_swift_toolchain();
|
|
5651
|
+
init_swiftContract();
|
|
5652
|
+
init_swiftTargetContract();
|
|
5653
|
+
NON_IOS_MODULES = /* @__PURE__ */ new Set(["FoundationNetworking", "WASILibc"]);
|
|
5654
|
+
CODE_MASK_CACHE_CHARS = 256 * 1024 * 1024;
|
|
5655
|
+
emptyMacroEnvironment = {
|
|
5656
|
+
defines: /* @__PURE__ */ new Map(),
|
|
5657
|
+
predefines: /* @__PURE__ */ new Map(),
|
|
5658
|
+
targetDefined: /* @__PURE__ */ new Set()
|
|
5659
|
+
};
|
|
5660
|
+
wasmMacroEnvironment = {
|
|
5661
|
+
...emptyMacroEnvironment,
|
|
5662
|
+
defines: /* @__PURE__ */ new Map([
|
|
5663
|
+
["__wasm__", "1"],
|
|
5664
|
+
["__wasm64__", "1"],
|
|
5665
|
+
["__wasi__", "1"]
|
|
5666
|
+
])
|
|
5667
|
+
};
|
|
5668
|
+
}
|
|
5669
|
+
});
|
|
5670
|
+
|
|
5625
5671
|
// src/swift-source-closure.ts
|
|
5626
5672
|
var init_swift_source_closure = __esm({
|
|
5627
5673
|
"src/swift-source-closure.ts"() {
|
|
@@ -5630,12 +5676,12 @@ var init_swift_source_closure = __esm({
|
|
|
5630
5676
|
});
|
|
5631
5677
|
|
|
5632
5678
|
// src/swift-uniform-type-constants.ts
|
|
5633
|
-
var
|
|
5679
|
+
var import_node_child_process34, import_node_path62;
|
|
5634
5680
|
var init_swift_uniform_type_constants = __esm({
|
|
5635
5681
|
"src/swift-uniform-type-constants.ts"() {
|
|
5636
5682
|
"use strict";
|
|
5637
|
-
|
|
5638
|
-
|
|
5683
|
+
import_node_child_process34 = require("node:child_process");
|
|
5684
|
+
import_node_path62 = __toESM(require("node:path"), 1);
|
|
5639
5685
|
init_swift_objc_runtime();
|
|
5640
5686
|
init_swift_objc_standin();
|
|
5641
5687
|
init_swiftTargetContract();
|
|
@@ -5643,27 +5689,27 @@ var init_swift_uniform_type_constants = __esm({
|
|
|
5643
5689
|
});
|
|
5644
5690
|
|
|
5645
5691
|
// src/xcode-header-search.ts
|
|
5646
|
-
var
|
|
5692
|
+
var import_node_fs61, import_node_path63;
|
|
5647
5693
|
var init_xcode_header_search = __esm({
|
|
5648
5694
|
"src/xcode-header-search.ts"() {
|
|
5649
5695
|
"use strict";
|
|
5650
|
-
|
|
5651
|
-
|
|
5696
|
+
import_node_fs61 = __toESM(require("node:fs"), 1);
|
|
5697
|
+
import_node_path63 = __toESM(require("node:path"), 1);
|
|
5652
5698
|
init_case_insensitive_header_overlay();
|
|
5653
5699
|
init_write_build_file();
|
|
5654
5700
|
}
|
|
5655
5701
|
});
|
|
5656
5702
|
|
|
5657
5703
|
// src/swift-compile.ts
|
|
5658
|
-
var
|
|
5704
|
+
var import_node_child_process35, import_node_crypto38, import_node_fs62, import_node_os14, import_node_path64, v6, OPTIONAL_FRAMEWORK_DEPENDENCIES, OPTIONAL_FRAMEWORKS, compilerSourceDigest, NOT_ON_IOS, C_WORDS, CORE_FOUNDATION_HANDLE_IMPORTS, ROOT_LOCKS, host, rootLocks, SHARED_ARTIFACT_BUDGET_BYTES, frameworkProductsReceiptSchema;
|
|
5659
5705
|
var init_swift_compile = __esm({
|
|
5660
5706
|
"src/swift-compile.ts"() {
|
|
5661
5707
|
"use strict";
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
-
|
|
5708
|
+
import_node_child_process35 = require("node:child_process");
|
|
5709
|
+
import_node_crypto38 = require("node:crypto");
|
|
5710
|
+
import_node_fs62 = require("node:fs");
|
|
5711
|
+
import_node_os14 = __toESM(require("node:os"), 1);
|
|
5712
|
+
import_node_path64 = __toESM(require("node:path"), 1);
|
|
5667
5713
|
v6 = __toESM(require("peachsim/vendor/valibot"), 1);
|
|
5668
5714
|
init_admitted_mac_build();
|
|
5669
5715
|
init_is_record();
|
|
@@ -5693,6 +5739,7 @@ var init_swift_compile = __esm({
|
|
|
5693
5739
|
init_swift_reproducible();
|
|
5694
5740
|
init_swift_root_lock();
|
|
5695
5741
|
init_swift_sdk_image_wasm();
|
|
5742
|
+
init_swift_sdk_surface();
|
|
5696
5743
|
init_swift_shared_sdk();
|
|
5697
5744
|
init_swift_source_closure();
|
|
5698
5745
|
init_swift_toolchain();
|
|
@@ -5769,8 +5816,7 @@ var init_swift_compile = __esm({
|
|
|
5769
5816
|
ExpoModulesCore: []
|
|
5770
5817
|
};
|
|
5771
5818
|
OPTIONAL_FRAMEWORKS = new Set(Object.keys(OPTIONAL_FRAMEWORK_DEPENDENCIES));
|
|
5772
|
-
|
|
5773
|
-
compilerSourceDigest = true ? "203439fc20df8d328b0c245496fc6db90092265409adb61b593725e82ce837de" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
5819
|
+
compilerSourceDigest = true ? "14c29bea6e3f4c2903f38541d91c0969bd135b22af4fd295ab1fe858313491f6" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
5774
5820
|
NOT_ON_IOS = new RegExp(
|
|
5775
5821
|
`\\b(?:os\\(\\s*WASI\\s*\\)|canImport\\(\\s*(?:${[...NON_IOS_MODULES].join("|")})\\s*\\))`,
|
|
5776
5822
|
"g"
|
|
@@ -5780,7 +5826,6 @@ var init_swift_compile = __esm({
|
|
|
5780
5826
|
" "
|
|
5781
5827
|
)
|
|
5782
5828
|
);
|
|
5783
|
-
CODE_MASK_CACHE_CHARS = 256 * 1024 * 1024;
|
|
5784
5829
|
CORE_FOUNDATION_HANDLE_IMPORTS = [
|
|
5785
5830
|
"CFAllocator",
|
|
5786
5831
|
"CFArray",
|
|
@@ -5800,19 +5845,6 @@ var init_swift_compile = __esm({
|
|
|
5800
5845
|
"import typealias CoreFoundation.CFTypeRef",
|
|
5801
5846
|
"import CoreGraphics"
|
|
5802
5847
|
]).join("; ");
|
|
5803
|
-
emptyMacroEnvironment = {
|
|
5804
|
-
defines: /* @__PURE__ */ new Map(),
|
|
5805
|
-
predefines: /* @__PURE__ */ new Map(),
|
|
5806
|
-
targetDefined: /* @__PURE__ */ new Set()
|
|
5807
|
-
};
|
|
5808
|
-
wasmMacroEnvironment = {
|
|
5809
|
-
...emptyMacroEnvironment,
|
|
5810
|
-
defines: /* @__PURE__ */ new Map([
|
|
5811
|
-
["__wasm__", "1"],
|
|
5812
|
-
["__wasm64__", "1"],
|
|
5813
|
-
["__wasi__", "1"]
|
|
5814
|
-
])
|
|
5815
|
-
};
|
|
5816
5848
|
ROOT_LOCKS = Symbol.for("peachsim.swiftCompile.rootLocks");
|
|
5817
5849
|
host = globalThis;
|
|
5818
5850
|
rootLocks = host[ROOT_LOCKS] ??= /* @__PURE__ */ new Map();
|
|
@@ -5840,13 +5872,13 @@ var init_cli_release_origin = __esm({
|
|
|
5840
5872
|
});
|
|
5841
5873
|
|
|
5842
5874
|
// cli/drivers/linux-browser-libs.ts
|
|
5843
|
-
var
|
|
5875
|
+
var import_node_child_process36, import_node_fs63, import_node_path65;
|
|
5844
5876
|
var init_linux_browser_libs = __esm({
|
|
5845
5877
|
"cli/drivers/linux-browser-libs.ts"() {
|
|
5846
5878
|
"use strict";
|
|
5847
|
-
|
|
5848
|
-
|
|
5849
|
-
|
|
5879
|
+
import_node_child_process36 = require("node:child_process");
|
|
5880
|
+
import_node_fs63 = require("node:fs");
|
|
5881
|
+
import_node_path65 = require("node:path");
|
|
5850
5882
|
init_src();
|
|
5851
5883
|
init_home_paths();
|
|
5852
5884
|
init_is_record();
|
|
@@ -5921,13 +5953,13 @@ function parseAdapterLock(family, value) {
|
|
|
5921
5953
|
});
|
|
5922
5954
|
return { ...shared, schema: 2, archives };
|
|
5923
5955
|
}
|
|
5924
|
-
var
|
|
5956
|
+
var import_node_crypto39, import_node_fs64, import_node_path66, ADAPTER_FAMILIES, hex64, sameHeaders;
|
|
5925
5957
|
var init_nitroAdapterContract = __esm({
|
|
5926
5958
|
"src/nitroAdapterContract.ts"() {
|
|
5927
5959
|
"use strict";
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
|
-
|
|
5960
|
+
import_node_crypto39 = require("node:crypto");
|
|
5961
|
+
import_node_fs64 = require("node:fs");
|
|
5962
|
+
import_node_path66 = __toESM(require("node:path"), 1);
|
|
5931
5963
|
init_is_record();
|
|
5932
5964
|
ADAPTER_FAMILIES = {
|
|
5933
5965
|
nitro: {
|
|
@@ -6028,32 +6060,58 @@ var init_swift_native_pin = __esm({
|
|
|
6028
6060
|
}
|
|
6029
6061
|
});
|
|
6030
6062
|
|
|
6063
|
+
// src/swift-package-manifest.ts
|
|
6064
|
+
var import_node_child_process37, import_node_crypto40, import_node_fs65, import_node_os15, import_node_path67, import_node_util8, cacheDir2, execFileAsync2;
|
|
6065
|
+
var init_swift_package_manifest = __esm({
|
|
6066
|
+
"src/swift-package-manifest.ts"() {
|
|
6067
|
+
"use strict";
|
|
6068
|
+
import_node_child_process37 = require("node:child_process");
|
|
6069
|
+
import_node_crypto40 = require("node:crypto");
|
|
6070
|
+
import_node_fs65 = __toESM(require("node:fs"), 1);
|
|
6071
|
+
import_node_os15 = __toESM(require("node:os"), 1);
|
|
6072
|
+
import_node_path67 = __toESM(require("node:path"), 1);
|
|
6073
|
+
import_node_util8 = require("node:util");
|
|
6074
|
+
init_git_repo_env();
|
|
6075
|
+
init_home_paths();
|
|
6076
|
+
init_swift_lexical();
|
|
6077
|
+
init_swift_native_pin();
|
|
6078
|
+
init_swift_package();
|
|
6079
|
+
init_swift_sdk_surface();
|
|
6080
|
+
init_swift_toolchain();
|
|
6081
|
+
cacheDir2 = import_node_path67.default.join(cacheDir(), "swift-manifests");
|
|
6082
|
+
execFileAsync2 = (0, import_node_util8.promisify)(import_node_child_process37.execFile);
|
|
6083
|
+
}
|
|
6084
|
+
});
|
|
6085
|
+
|
|
6031
6086
|
// src/swift-distribution.ts
|
|
6032
|
-
var
|
|
6087
|
+
var import_node_child_process38, import_node_fs66, import_node_os16, import_node_path68, import_node_util9;
|
|
6033
6088
|
var init_swift_distribution = __esm({
|
|
6034
6089
|
"src/swift-distribution.ts"() {
|
|
6035
6090
|
"use strict";
|
|
6036
|
-
|
|
6037
|
-
|
|
6038
|
-
|
|
6091
|
+
import_node_child_process38 = require("node:child_process");
|
|
6092
|
+
import_node_fs66 = __toESM(require("node:fs"), 1);
|
|
6093
|
+
import_node_os16 = __toESM(require("node:os"), 1);
|
|
6094
|
+
import_node_path68 = __toESM(require("node:path"), 1);
|
|
6095
|
+
import_node_util9 = require("node:util");
|
|
6039
6096
|
init_src();
|
|
6040
6097
|
init_linux_browser_libs();
|
|
6041
6098
|
init_home_paths();
|
|
6042
|
-
init_swift_compile();
|
|
6043
6099
|
init_swift_distribution_contract();
|
|
6044
6100
|
init_swift_native_pin();
|
|
6101
|
+
init_swift_package_manifest();
|
|
6102
|
+
init_swift_sdk_surface();
|
|
6045
6103
|
init_swift_toolchain();
|
|
6046
6104
|
}
|
|
6047
6105
|
});
|
|
6048
6106
|
|
|
6049
6107
|
// src/pod-prepare-toolchain.ts
|
|
6050
|
-
var
|
|
6108
|
+
var import_node_crypto41, import_node_fs67, import_node_path69, XCRUN, CLANG;
|
|
6051
6109
|
var init_pod_prepare_toolchain = __esm({
|
|
6052
6110
|
"src/pod-prepare-toolchain.ts"() {
|
|
6053
6111
|
"use strict";
|
|
6054
|
-
|
|
6055
|
-
|
|
6056
|
-
|
|
6112
|
+
import_node_crypto41 = require("node:crypto");
|
|
6113
|
+
import_node_fs67 = __toESM(require("node:fs"), 1);
|
|
6114
|
+
import_node_path69 = __toESM(require("node:path"), 1);
|
|
6057
6115
|
init_home_paths();
|
|
6058
6116
|
init_swift_compile();
|
|
6059
6117
|
init_swift_distribution();
|
|
@@ -6116,15 +6174,15 @@ exec "$compiler" --target=${SWIFT_WASM_TRIPLE} --sysroot="$PEACH_POD_SYSROOT" \\
|
|
|
6116
6174
|
});
|
|
6117
6175
|
|
|
6118
6176
|
// src/pod-sources.ts
|
|
6119
|
-
var
|
|
6177
|
+
var import_node_child_process39, import_node_crypto42, import_node_fs68, import_node_os17, import_node_path70, COCOAPODS_VERSION, USER_AGENT, HEADER_EXTENSIONS, SOURCE_EXTENSIONS, SOURCE_FILES_PATTERN;
|
|
6120
6178
|
var init_pod_sources = __esm({
|
|
6121
6179
|
"src/pod-sources.ts"() {
|
|
6122
6180
|
"use strict";
|
|
6123
|
-
|
|
6124
|
-
|
|
6125
|
-
|
|
6126
|
-
|
|
6127
|
-
|
|
6181
|
+
import_node_child_process39 = require("node:child_process");
|
|
6182
|
+
import_node_crypto42 = require("node:crypto");
|
|
6183
|
+
import_node_fs68 = __toESM(require("node:fs"), 1);
|
|
6184
|
+
import_node_os17 = __toESM(require("node:os"), 1);
|
|
6185
|
+
import_node_path70 = __toESM(require("node:path"), 1);
|
|
6128
6186
|
init_home_paths();
|
|
6129
6187
|
init_pod_prepare_toolchain();
|
|
6130
6188
|
COCOAPODS_VERSION = "1.17.0";
|
|
@@ -6207,17 +6265,17 @@ function visit(node, visitor) {
|
|
|
6207
6265
|
} else
|
|
6208
6266
|
visit_(null, node, visitor_, Object.freeze([]));
|
|
6209
6267
|
}
|
|
6210
|
-
function visit_(key, node, visitor,
|
|
6211
|
-
const ctrl = callVisitor(key, node, visitor,
|
|
6268
|
+
function visit_(key, node, visitor, path115) {
|
|
6269
|
+
const ctrl = callVisitor(key, node, visitor, path115);
|
|
6212
6270
|
if (isNode(ctrl) || isPair(ctrl)) {
|
|
6213
|
-
replaceNode(key,
|
|
6214
|
-
return visit_(key, ctrl, visitor,
|
|
6271
|
+
replaceNode(key, path115, ctrl);
|
|
6272
|
+
return visit_(key, ctrl, visitor, path115);
|
|
6215
6273
|
}
|
|
6216
6274
|
if (typeof ctrl !== "symbol") {
|
|
6217
6275
|
if (isCollection(node)) {
|
|
6218
|
-
|
|
6276
|
+
path115 = Object.freeze(path115.concat(node));
|
|
6219
6277
|
for (let i = 0; i < node.items.length; ++i) {
|
|
6220
|
-
const ci = visit_(i, node.items[i], visitor,
|
|
6278
|
+
const ci = visit_(i, node.items[i], visitor, path115);
|
|
6221
6279
|
if (typeof ci === "number")
|
|
6222
6280
|
i = ci - 1;
|
|
6223
6281
|
else if (ci === BREAK)
|
|
@@ -6228,13 +6286,13 @@ function visit_(key, node, visitor, path114) {
|
|
|
6228
6286
|
}
|
|
6229
6287
|
}
|
|
6230
6288
|
} else if (isPair(node)) {
|
|
6231
|
-
|
|
6232
|
-
const ck = visit_("key", node.key, visitor,
|
|
6289
|
+
path115 = Object.freeze(path115.concat(node));
|
|
6290
|
+
const ck = visit_("key", node.key, visitor, path115);
|
|
6233
6291
|
if (ck === BREAK)
|
|
6234
6292
|
return BREAK;
|
|
6235
6293
|
else if (ck === REMOVE)
|
|
6236
6294
|
node.key = null;
|
|
6237
|
-
const cv = visit_("value", node.value, visitor,
|
|
6295
|
+
const cv = visit_("value", node.value, visitor, path115);
|
|
6238
6296
|
if (cv === BREAK)
|
|
6239
6297
|
return BREAK;
|
|
6240
6298
|
else if (cv === REMOVE)
|
|
@@ -6252,17 +6310,17 @@ async function visitAsync(node, visitor) {
|
|
|
6252
6310
|
} else
|
|
6253
6311
|
await visitAsync_(null, node, visitor_, Object.freeze([]));
|
|
6254
6312
|
}
|
|
6255
|
-
async function visitAsync_(key, node, visitor,
|
|
6256
|
-
const ctrl = await callVisitor(key, node, visitor,
|
|
6313
|
+
async function visitAsync_(key, node, visitor, path115) {
|
|
6314
|
+
const ctrl = await callVisitor(key, node, visitor, path115);
|
|
6257
6315
|
if (isNode(ctrl) || isPair(ctrl)) {
|
|
6258
|
-
replaceNode(key,
|
|
6259
|
-
return visitAsync_(key, ctrl, visitor,
|
|
6316
|
+
replaceNode(key, path115, ctrl);
|
|
6317
|
+
return visitAsync_(key, ctrl, visitor, path115);
|
|
6260
6318
|
}
|
|
6261
6319
|
if (typeof ctrl !== "symbol") {
|
|
6262
6320
|
if (isCollection(node)) {
|
|
6263
|
-
|
|
6321
|
+
path115 = Object.freeze(path115.concat(node));
|
|
6264
6322
|
for (let i = 0; i < node.items.length; ++i) {
|
|
6265
|
-
const ci = await visitAsync_(i, node.items[i], visitor,
|
|
6323
|
+
const ci = await visitAsync_(i, node.items[i], visitor, path115);
|
|
6266
6324
|
if (typeof ci === "number")
|
|
6267
6325
|
i = ci - 1;
|
|
6268
6326
|
else if (ci === BREAK)
|
|
@@ -6273,13 +6331,13 @@ async function visitAsync_(key, node, visitor, path114) {
|
|
|
6273
6331
|
}
|
|
6274
6332
|
}
|
|
6275
6333
|
} else if (isPair(node)) {
|
|
6276
|
-
|
|
6277
|
-
const ck = await visitAsync_("key", node.key, visitor,
|
|
6334
|
+
path115 = Object.freeze(path115.concat(node));
|
|
6335
|
+
const ck = await visitAsync_("key", node.key, visitor, path115);
|
|
6278
6336
|
if (ck === BREAK)
|
|
6279
6337
|
return BREAK;
|
|
6280
6338
|
else if (ck === REMOVE)
|
|
6281
6339
|
node.key = null;
|
|
6282
|
-
const cv = await visitAsync_("value", node.value, visitor,
|
|
6340
|
+
const cv = await visitAsync_("value", node.value, visitor, path115);
|
|
6283
6341
|
if (cv === BREAK)
|
|
6284
6342
|
return BREAK;
|
|
6285
6343
|
else if (cv === REMOVE)
|
|
@@ -6306,23 +6364,23 @@ function initVisitor(visitor) {
|
|
|
6306
6364
|
}
|
|
6307
6365
|
return visitor;
|
|
6308
6366
|
}
|
|
6309
|
-
function callVisitor(key, node, visitor,
|
|
6367
|
+
function callVisitor(key, node, visitor, path115) {
|
|
6310
6368
|
if (typeof visitor === "function")
|
|
6311
|
-
return visitor(key, node,
|
|
6369
|
+
return visitor(key, node, path115);
|
|
6312
6370
|
if (isMap(node))
|
|
6313
|
-
return visitor.Map?.(key, node,
|
|
6371
|
+
return visitor.Map?.(key, node, path115);
|
|
6314
6372
|
if (isSeq(node))
|
|
6315
|
-
return visitor.Seq?.(key, node,
|
|
6373
|
+
return visitor.Seq?.(key, node, path115);
|
|
6316
6374
|
if (isPair(node))
|
|
6317
|
-
return visitor.Pair?.(key, node,
|
|
6375
|
+
return visitor.Pair?.(key, node, path115);
|
|
6318
6376
|
if (isScalar(node))
|
|
6319
|
-
return visitor.Scalar?.(key, node,
|
|
6377
|
+
return visitor.Scalar?.(key, node, path115);
|
|
6320
6378
|
if (isAlias(node))
|
|
6321
|
-
return visitor.Alias?.(key, node,
|
|
6379
|
+
return visitor.Alias?.(key, node, path115);
|
|
6322
6380
|
return void 0;
|
|
6323
6381
|
}
|
|
6324
|
-
function replaceNode(key,
|
|
6325
|
-
const parent =
|
|
6382
|
+
function replaceNode(key, path115, node) {
|
|
6383
|
+
const parent = path115[path115.length - 1];
|
|
6326
6384
|
if (isCollection(parent)) {
|
|
6327
6385
|
parent.items[key] = node;
|
|
6328
6386
|
} else if (isPair(parent)) {
|
|
@@ -6873,10 +6931,10 @@ var init_createNode = __esm({
|
|
|
6873
6931
|
});
|
|
6874
6932
|
|
|
6875
6933
|
// ../../node_modules/yaml/browser/dist/nodes/Collection.js
|
|
6876
|
-
function collectionFromPath(schema4,
|
|
6934
|
+
function collectionFromPath(schema4, path115, value) {
|
|
6877
6935
|
let v10 = value;
|
|
6878
|
-
for (let i =
|
|
6879
|
-
const k =
|
|
6936
|
+
for (let i = path115.length - 1; i >= 0; --i) {
|
|
6937
|
+
const k = path115[i];
|
|
6880
6938
|
if (typeof k === "number" && Number.isInteger(k) && k >= 0) {
|
|
6881
6939
|
const a = [];
|
|
6882
6940
|
a[k] = v10;
|
|
@@ -6901,7 +6959,7 @@ var init_Collection = __esm({
|
|
|
6901
6959
|
init_createNode();
|
|
6902
6960
|
init_identity();
|
|
6903
6961
|
init_Node();
|
|
6904
|
-
isEmptyPath = (
|
|
6962
|
+
isEmptyPath = (path115) => path115 == null || typeof path115 === "object" && !!path115[Symbol.iterator]().next().done;
|
|
6905
6963
|
Collection = class extends NodeBase {
|
|
6906
6964
|
constructor(type, schema4) {
|
|
6907
6965
|
super(type);
|
|
@@ -6931,11 +6989,11 @@ var init_Collection = __esm({
|
|
|
6931
6989
|
* be a Pair instance or a `{ key, value }` object, which may not have a key
|
|
6932
6990
|
* that already exists in the map.
|
|
6933
6991
|
*/
|
|
6934
|
-
addIn(
|
|
6935
|
-
if (isEmptyPath(
|
|
6992
|
+
addIn(path115, value) {
|
|
6993
|
+
if (isEmptyPath(path115))
|
|
6936
6994
|
this.add(value);
|
|
6937
6995
|
else {
|
|
6938
|
-
const [key, ...rest] =
|
|
6996
|
+
const [key, ...rest] = path115;
|
|
6939
6997
|
const node = this.get(key, true);
|
|
6940
6998
|
if (isCollection(node))
|
|
6941
6999
|
node.addIn(rest, value);
|
|
@@ -6949,8 +7007,8 @@ var init_Collection = __esm({
|
|
|
6949
7007
|
* Removes a value from the collection.
|
|
6950
7008
|
* @returns `true` if the item was found and removed.
|
|
6951
7009
|
*/
|
|
6952
|
-
deleteIn(
|
|
6953
|
-
const [key, ...rest] =
|
|
7010
|
+
deleteIn(path115) {
|
|
7011
|
+
const [key, ...rest] = path115;
|
|
6954
7012
|
if (rest.length === 0)
|
|
6955
7013
|
return this.delete(key);
|
|
6956
7014
|
const node = this.get(key, true);
|
|
@@ -6964,8 +7022,8 @@ var init_Collection = __esm({
|
|
|
6964
7022
|
* scalar values from their surrounding node; to disable set `keepScalar` to
|
|
6965
7023
|
* `true` (collections are always returned intact).
|
|
6966
7024
|
*/
|
|
6967
|
-
getIn(
|
|
6968
|
-
const [key, ...rest] =
|
|
7025
|
+
getIn(path115, keepScalar) {
|
|
7026
|
+
const [key, ...rest] = path115;
|
|
6969
7027
|
const node = this.get(key, true);
|
|
6970
7028
|
if (rest.length === 0)
|
|
6971
7029
|
return !keepScalar && isScalar(node) ? node.value : node;
|
|
@@ -6983,8 +7041,8 @@ var init_Collection = __esm({
|
|
|
6983
7041
|
/**
|
|
6984
7042
|
* Checks if the collection includes a value with the key `key`.
|
|
6985
7043
|
*/
|
|
6986
|
-
hasIn(
|
|
6987
|
-
const [key, ...rest] =
|
|
7044
|
+
hasIn(path115) {
|
|
7045
|
+
const [key, ...rest] = path115;
|
|
6988
7046
|
if (rest.length === 0)
|
|
6989
7047
|
return this.has(key);
|
|
6990
7048
|
const node = this.get(key, true);
|
|
@@ -6994,8 +7052,8 @@ var init_Collection = __esm({
|
|
|
6994
7052
|
* Sets a value in this collection. For `!!set`, `value` needs to be a
|
|
6995
7053
|
* boolean to add/remove the item from the set.
|
|
6996
7054
|
*/
|
|
6997
|
-
setIn(
|
|
6998
|
-
const [key, ...rest] =
|
|
7055
|
+
setIn(path115, value) {
|
|
7056
|
+
const [key, ...rest] = path115;
|
|
6999
7057
|
if (rest.length === 0) {
|
|
7000
7058
|
this.set(key, value);
|
|
7001
7059
|
} else {
|
|
@@ -8914,15 +8972,15 @@ function visit2(cst, visitor) {
|
|
|
8914
8972
|
cst = { start: cst.start, value: cst.value };
|
|
8915
8973
|
_visit(Object.freeze([]), cst, visitor);
|
|
8916
8974
|
}
|
|
8917
|
-
function _visit(
|
|
8918
|
-
let ctrl = visitor(item,
|
|
8975
|
+
function _visit(path115, item, visitor) {
|
|
8976
|
+
let ctrl = visitor(item, path115);
|
|
8919
8977
|
if (typeof ctrl === "symbol")
|
|
8920
8978
|
return ctrl;
|
|
8921
8979
|
for (const field of ["key", "value"]) {
|
|
8922
8980
|
const token = item[field];
|
|
8923
8981
|
if (token && "items" in token) {
|
|
8924
8982
|
for (let i = 0; i < token.items.length; ++i) {
|
|
8925
|
-
const ci = _visit(Object.freeze(
|
|
8983
|
+
const ci = _visit(Object.freeze(path115.concat([[field, i]])), token.items[i], visitor);
|
|
8926
8984
|
if (typeof ci === "number")
|
|
8927
8985
|
i = ci - 1;
|
|
8928
8986
|
else if (ci === BREAK2)
|
|
@@ -8933,10 +8991,10 @@ function _visit(path114, item, visitor) {
|
|
|
8933
8991
|
}
|
|
8934
8992
|
}
|
|
8935
8993
|
if (typeof ctrl === "function" && field === "key")
|
|
8936
|
-
ctrl = ctrl(item,
|
|
8994
|
+
ctrl = ctrl(item, path115);
|
|
8937
8995
|
}
|
|
8938
8996
|
}
|
|
8939
|
-
return typeof ctrl === "function" ? ctrl(item,
|
|
8997
|
+
return typeof ctrl === "function" ? ctrl(item, path115) : ctrl;
|
|
8940
8998
|
}
|
|
8941
8999
|
var BREAK2, SKIP2, REMOVE2;
|
|
8942
9000
|
var init_cst_visit = __esm({
|
|
@@ -8947,9 +9005,9 @@ var init_cst_visit = __esm({
|
|
|
8947
9005
|
visit2.BREAK = BREAK2;
|
|
8948
9006
|
visit2.SKIP = SKIP2;
|
|
8949
9007
|
visit2.REMOVE = REMOVE2;
|
|
8950
|
-
visit2.itemAtPath = (cst,
|
|
9008
|
+
visit2.itemAtPath = (cst, path115) => {
|
|
8951
9009
|
let item = cst;
|
|
8952
|
-
for (const [field, index] of
|
|
9010
|
+
for (const [field, index] of path115) {
|
|
8953
9011
|
const tok = item?.[field];
|
|
8954
9012
|
if (tok && "items" in tok) {
|
|
8955
9013
|
item = tok.items[index];
|
|
@@ -8958,9 +9016,9 @@ var init_cst_visit = __esm({
|
|
|
8958
9016
|
}
|
|
8959
9017
|
return item;
|
|
8960
9018
|
};
|
|
8961
|
-
visit2.parentCollection = (cst,
|
|
8962
|
-
const parent = visit2.itemAtPath(cst,
|
|
8963
|
-
const field =
|
|
9019
|
+
visit2.parentCollection = (cst, path115) => {
|
|
9020
|
+
const parent = visit2.itemAtPath(cst, path115.slice(0, -1));
|
|
9021
|
+
const field = path115[path115.length - 1][0];
|
|
8964
9022
|
const coll = parent?.[field];
|
|
8965
9023
|
if (coll && "items" in coll)
|
|
8966
9024
|
return coll;
|
|
@@ -9048,36 +9106,36 @@ var init_browser = __esm({
|
|
|
9048
9106
|
});
|
|
9049
9107
|
|
|
9050
9108
|
// src/cocoapods-trunk.ts
|
|
9051
|
-
var
|
|
9109
|
+
var import_node_child_process40, import_node_crypto43, import_node_fs69, import_node_path71;
|
|
9052
9110
|
var init_cocoapods_trunk = __esm({
|
|
9053
9111
|
"src/cocoapods-trunk.ts"() {
|
|
9054
9112
|
"use strict";
|
|
9055
|
-
|
|
9056
|
-
|
|
9057
|
-
|
|
9058
|
-
|
|
9113
|
+
import_node_child_process40 = require("node:child_process");
|
|
9114
|
+
import_node_crypto43 = require("node:crypto");
|
|
9115
|
+
import_node_fs69 = __toESM(require("node:fs"), 1);
|
|
9116
|
+
import_node_path71 = __toESM(require("node:path"), 1);
|
|
9059
9117
|
init_browser();
|
|
9060
9118
|
init_home_paths();
|
|
9061
9119
|
}
|
|
9062
9120
|
});
|
|
9063
9121
|
|
|
9064
9122
|
// src/pod-lockfile.ts
|
|
9065
|
-
var
|
|
9123
|
+
var import_node_fs70;
|
|
9066
9124
|
var init_pod_lockfile = __esm({
|
|
9067
9125
|
"src/pod-lockfile.ts"() {
|
|
9068
9126
|
"use strict";
|
|
9069
|
-
|
|
9127
|
+
import_node_fs70 = __toESM(require("node:fs"), 1);
|
|
9070
9128
|
init_browser();
|
|
9071
9129
|
}
|
|
9072
9130
|
});
|
|
9073
9131
|
|
|
9074
9132
|
// src/podfile-cocoapods.ts
|
|
9075
|
-
var
|
|
9133
|
+
var import_node_fs71, import_node_path72, PODFILE, RESOLVER;
|
|
9076
9134
|
var init_podfile_cocoapods = __esm({
|
|
9077
9135
|
"src/podfile-cocoapods.ts"() {
|
|
9078
9136
|
"use strict";
|
|
9079
|
-
|
|
9080
|
-
|
|
9137
|
+
import_node_fs71 = __toESM(require("node:fs"), 1);
|
|
9138
|
+
import_node_path72 = __toESM(require("node:path"), 1);
|
|
9081
9139
|
init_cocoapods_trunk();
|
|
9082
9140
|
init_pod_lockfile();
|
|
9083
9141
|
init_podspec_cocoapods();
|
|
@@ -10438,11 +10496,11 @@ end
|
|
|
10438
10496
|
});
|
|
10439
10497
|
|
|
10440
10498
|
// src/pods-analysis.ts
|
|
10441
|
-
var
|
|
10499
|
+
var import_node_path73, ANALYSIS, EXPORT;
|
|
10442
10500
|
var init_pods_analysis = __esm({
|
|
10443
10501
|
"src/pods-analysis.ts"() {
|
|
10444
10502
|
"use strict";
|
|
10445
|
-
|
|
10503
|
+
import_node_path73 = __toESM(require("node:path"), 1);
|
|
10446
10504
|
init_podspec_cocoapods();
|
|
10447
10505
|
init_podspec_ruby();
|
|
10448
10506
|
init_podspec_ruby_stdlib();
|
|
@@ -10969,12 +11027,12 @@ var init_plist_bytes = __esm({
|
|
|
10969
11027
|
});
|
|
10970
11028
|
|
|
10971
11029
|
// src/pods-files.ts
|
|
10972
|
-
var
|
|
11030
|
+
var import_node_fs72, import_node_path74, HEADER_EXTENSIONS2, SOURCE_FILE_EXTENSIONS, GLOB_PATTERNS;
|
|
10973
11031
|
var init_pods_files = __esm({
|
|
10974
11032
|
"src/pods-files.ts"() {
|
|
10975
11033
|
"use strict";
|
|
10976
|
-
|
|
10977
|
-
|
|
11034
|
+
import_node_fs72 = __toESM(require("node:fs"), 1);
|
|
11035
|
+
import_node_path74 = __toESM(require("node:path"), 1);
|
|
10978
11036
|
init_is_record();
|
|
10979
11037
|
init_plist_bytes();
|
|
10980
11038
|
HEADER_EXTENSIONS2 = [
|
|
@@ -11010,12 +11068,12 @@ var init_pods_files = __esm({
|
|
|
11010
11068
|
});
|
|
11011
11069
|
|
|
11012
11070
|
// src/pods-targets.ts
|
|
11013
|
-
var
|
|
11071
|
+
var import_node_fs73, import_node_path75;
|
|
11014
11072
|
var init_pods_targets = __esm({
|
|
11015
11073
|
"src/pods-targets.ts"() {
|
|
11016
11074
|
"use strict";
|
|
11017
|
-
|
|
11018
|
-
|
|
11075
|
+
import_node_fs73 = require("node:fs");
|
|
11076
|
+
import_node_path75 = __toESM(require("node:path"), 1);
|
|
11019
11077
|
init_pods_files();
|
|
11020
11078
|
}
|
|
11021
11079
|
});
|
|
@@ -11028,23 +11086,23 @@ var init_pods_xcconfig = __esm({
|
|
|
11028
11086
|
});
|
|
11029
11087
|
|
|
11030
11088
|
// src/pods-build-settings.ts
|
|
11031
|
-
var
|
|
11089
|
+
var import_node_path76;
|
|
11032
11090
|
var init_pods_build_settings = __esm({
|
|
11033
11091
|
"src/pods-build-settings.ts"() {
|
|
11034
11092
|
"use strict";
|
|
11035
|
-
|
|
11093
|
+
import_node_path76 = __toESM(require("node:path"), 1);
|
|
11036
11094
|
init_pods_targets();
|
|
11037
11095
|
init_pods_xcconfig();
|
|
11038
11096
|
}
|
|
11039
11097
|
});
|
|
11040
11098
|
|
|
11041
11099
|
// src/pods-integration.ts
|
|
11042
|
-
var
|
|
11100
|
+
var import_node_fs74, import_node_path77;
|
|
11043
11101
|
var init_pods_integration = __esm({
|
|
11044
11102
|
"src/pods-integration.ts"() {
|
|
11045
11103
|
"use strict";
|
|
11046
|
-
|
|
11047
|
-
|
|
11104
|
+
import_node_fs74 = __toESM(require("node:fs"), 1);
|
|
11105
|
+
import_node_path77 = __toESM(require("node:path"), 1);
|
|
11048
11106
|
init_pods_build_settings();
|
|
11049
11107
|
init_pods_files();
|
|
11050
11108
|
init_pods_targets();
|
|
@@ -11052,12 +11110,12 @@ var init_pods_integration = __esm({
|
|
|
11052
11110
|
});
|
|
11053
11111
|
|
|
11054
11112
|
// src/pods-post-install.ts
|
|
11055
|
-
var
|
|
11113
|
+
var import_node_fs75, import_node_path78, XCODEPROJ, INSTALLER;
|
|
11056
11114
|
var init_pods_post_install = __esm({
|
|
11057
11115
|
"src/pods-post-install.ts"() {
|
|
11058
11116
|
"use strict";
|
|
11059
|
-
|
|
11060
|
-
|
|
11117
|
+
import_node_fs75 = __toESM(require("node:fs"), 1);
|
|
11118
|
+
import_node_path78 = __toESM(require("node:path"), 1);
|
|
11061
11119
|
init_openstep_plist();
|
|
11062
11120
|
init_pbx_table();
|
|
11063
11121
|
init_plist_bytes();
|
|
@@ -12461,12 +12519,12 @@ var init_pods_scripts = __esm({
|
|
|
12461
12519
|
});
|
|
12462
12520
|
|
|
12463
12521
|
// src/pods-project.ts
|
|
12464
|
-
var
|
|
12522
|
+
var import_node_fs76, import_node_path79, HEADERS, SOURCES;
|
|
12465
12523
|
var init_pods_project = __esm({
|
|
12466
12524
|
"src/pods-project.ts"() {
|
|
12467
12525
|
"use strict";
|
|
12468
|
-
|
|
12469
|
-
|
|
12526
|
+
import_node_fs76 = __toESM(require("node:fs"), 1);
|
|
12527
|
+
import_node_path79 = __toESM(require("node:path"), 1);
|
|
12470
12528
|
init_openstep_plist();
|
|
12471
12529
|
init_pbx_table();
|
|
12472
12530
|
init_pods_files();
|
|
@@ -12478,12 +12536,12 @@ var init_pods_project = __esm({
|
|
|
12478
12536
|
});
|
|
12479
12537
|
|
|
12480
12538
|
// src/pods-install.ts
|
|
12481
|
-
var
|
|
12539
|
+
var import_node_fs77, import_node_path80, COCOAPODS_VERSION2, INSTALL_INPUTS, LOCKFILE;
|
|
12482
12540
|
var init_pods_install = __esm({
|
|
12483
12541
|
"src/pods-install.ts"() {
|
|
12484
12542
|
"use strict";
|
|
12485
|
-
|
|
12486
|
-
|
|
12543
|
+
import_node_fs77 = __toESM(require("node:fs"), 1);
|
|
12544
|
+
import_node_path80 = __toESM(require("node:path"), 1);
|
|
12487
12545
|
init_openstep_plist();
|
|
12488
12546
|
init_pbx_table();
|
|
12489
12547
|
init_pod_graph_specifications();
|
|
@@ -12533,18 +12591,18 @@ end
|
|
|
12533
12591
|
});
|
|
12534
12592
|
|
|
12535
12593
|
// src/bazel-project.ts
|
|
12536
|
-
var
|
|
12594
|
+
var import_node_child_process41, import_node_crypto44, import_node_fs78, import_node_os18, import_node_path81, PRODUCTS;
|
|
12537
12595
|
var init_bazel_project = __esm({
|
|
12538
12596
|
"src/bazel-project.ts"() {
|
|
12539
12597
|
"use strict";
|
|
12540
|
-
|
|
12541
|
-
|
|
12542
|
-
|
|
12543
|
-
|
|
12544
|
-
|
|
12598
|
+
import_node_child_process41 = require("node:child_process");
|
|
12599
|
+
import_node_crypto44 = require("node:crypto");
|
|
12600
|
+
import_node_fs78 = __toESM(require("node:fs"), 1);
|
|
12601
|
+
import_node_os18 = __toESM(require("node:os"), 1);
|
|
12602
|
+
import_node_path81 = __toESM(require("node:path"), 1);
|
|
12545
12603
|
init_is_record();
|
|
12546
12604
|
init_plist();
|
|
12547
|
-
PRODUCTS =
|
|
12605
|
+
PRODUCTS = import_node_path81.default.join(".build", "peach-bazel", "Products");
|
|
12548
12606
|
}
|
|
12549
12607
|
});
|
|
12550
12608
|
|
|
@@ -12993,38 +13051,38 @@ var init_native_app_identity = __esm({
|
|
|
12993
13051
|
});
|
|
12994
13052
|
|
|
12995
13053
|
// src/swift-binary-modules.ts
|
|
12996
|
-
var
|
|
13054
|
+
var import_node_crypto45, import_node_fs79, import_node_path82, cacheDir3;
|
|
12997
13055
|
var init_swift_binary_modules = __esm({
|
|
12998
13056
|
"src/swift-binary-modules.ts"() {
|
|
12999
13057
|
"use strict";
|
|
13000
|
-
|
|
13001
|
-
|
|
13002
|
-
|
|
13058
|
+
import_node_crypto45 = require("node:crypto");
|
|
13059
|
+
import_node_fs79 = __toESM(require("node:fs"), 1);
|
|
13060
|
+
import_node_path82 = __toESM(require("node:path"), 1);
|
|
13003
13061
|
init_home_paths();
|
|
13004
13062
|
init_swift_package();
|
|
13005
|
-
|
|
13063
|
+
cacheDir3 = import_node_path82.default.join(cacheDir(), "swift-binary-modules");
|
|
13006
13064
|
}
|
|
13007
13065
|
});
|
|
13008
13066
|
|
|
13009
13067
|
// src/swift-coverage/provenance.ts
|
|
13010
|
-
var
|
|
13068
|
+
var import_node_crypto46, import_node_fs80, import_node_path83, swiftCoverageProvenance;
|
|
13011
13069
|
var init_provenance = __esm({
|
|
13012
13070
|
"src/swift-coverage/provenance.ts"() {
|
|
13013
13071
|
"use strict";
|
|
13014
|
-
|
|
13015
|
-
|
|
13016
|
-
|
|
13017
|
-
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":"d6a3228567a46c6d5280895383093889d9b868958a117881061bdd74729a225f","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":"facdbeb9de6bb12da4ab4954553edfaadd0e486f1181443138be70c3d8396236","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"
|
|
13072
|
+
import_node_crypto46 = require("node:crypto");
|
|
13073
|
+
import_node_fs80 = require("node:fs");
|
|
13074
|
+
import_node_path83 = require("node:path");
|
|
13075
|
+
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":"d6a3228567a46c6d5280895383093889d9b868958a117881061bdd74729a225f","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":"facdbeb9de6bb12da4ab4954553edfaadd0e486f1181443138be70c3d8396236","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"523fdfffc0cff95c8df7beeca437622a07d4fd666f0bb22b0ff67d14c42a7b10","swift-package.ts":"05c6cf101fbc944f6684a70db0a9c5aede846b2f0482a6b4a5a0abed737d4658","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"32bf10d6f3396dd1a20ff6d415499a5990ec2550c63306fd9ef071bdf4a58f1e","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"c72b724fc497e4cf603c355f86eb3c07c929ad299758cffbc6ff88ed241654c6","xcode-project.ts":"e30510099ee19d34de62d8ae859df53f77594a4ab105fdb5bcd7e005ec9689ca","xcode-target-members.ts":"96f6a9f5567a4fbd9806252229b35b9a451a112b20f70f8c20189ffd428815fd","xcode-json-project.ts":"df6d6db28e0c8cfdf1f480e1e32d35f12c9cf1936642d5dda923889fb18a8fd6","openstep-plist.ts":"da11f86885ef1e25979ad989f332195c113c4b7a43f108e8d36646973430b81b"}') : swiftCoverageSourceDigests((0, import_node_path83.join)(__sootsim_import_meta_dirname, ".."));
|
|
13018
13076
|
}
|
|
13019
13077
|
});
|
|
13020
13078
|
|
|
13021
13079
|
// src/swift-coverage/xcode-asset-symbols.ts
|
|
13022
|
-
var
|
|
13080
|
+
var import_node_fs81, import_node_path84, silentTypes, stackTypes, unprovenTypes, knownTypes, compressionTypes, renditionRules, setRules, inclusionRules, rules, swiftKeywords, nsColorConflicts, uiColorConflicts, colorConflicts, nsImageConflicts;
|
|
13023
13081
|
var init_xcode_asset_symbols = __esm({
|
|
13024
13082
|
"src/swift-coverage/xcode-asset-symbols.ts"() {
|
|
13025
13083
|
"use strict";
|
|
13026
|
-
|
|
13027
|
-
|
|
13084
|
+
import_node_fs81 = require("node:fs");
|
|
13085
|
+
import_node_path84 = require("node:path");
|
|
13028
13086
|
silentTypes = /* @__PURE__ */ new Set([
|
|
13029
13087
|
"appiconset",
|
|
13030
13088
|
"brandassets",
|
|
@@ -13187,13 +13245,13 @@ var init_xcode_asset_symbols = __esm({
|
|
|
13187
13245
|
});
|
|
13188
13246
|
|
|
13189
13247
|
// src/swift-coverage/xcode-assets.ts
|
|
13190
|
-
var
|
|
13248
|
+
var import_node_crypto47, import_node_fs82, import_node_path85, unprovenAssetSettings, assetSymbolSettingKeys;
|
|
13191
13249
|
var init_xcode_assets = __esm({
|
|
13192
13250
|
"src/swift-coverage/xcode-assets.ts"() {
|
|
13193
13251
|
"use strict";
|
|
13194
|
-
|
|
13195
|
-
|
|
13196
|
-
|
|
13252
|
+
import_node_crypto47 = require("node:crypto");
|
|
13253
|
+
import_node_fs82 = require("node:fs");
|
|
13254
|
+
import_node_path85 = require("node:path");
|
|
13197
13255
|
init_provenance();
|
|
13198
13256
|
init_xcode_asset_symbols();
|
|
13199
13257
|
unprovenAssetSettings = [
|
|
@@ -13218,29 +13276,6 @@ var init_xcode_assets = __esm({
|
|
|
13218
13276
|
}
|
|
13219
13277
|
});
|
|
13220
13278
|
|
|
13221
|
-
// src/swift-package-manifest.ts
|
|
13222
|
-
var import_node_child_process39, import_node_crypto46, import_node_fs81, import_node_os17, import_node_path84, import_node_util8, cacheDir3, execFileAsync2;
|
|
13223
|
-
var init_swift_package_manifest = __esm({
|
|
13224
|
-
"src/swift-package-manifest.ts"() {
|
|
13225
|
-
"use strict";
|
|
13226
|
-
import_node_child_process39 = require("node:child_process");
|
|
13227
|
-
import_node_crypto46 = require("node:crypto");
|
|
13228
|
-
import_node_fs81 = __toESM(require("node:fs"), 1);
|
|
13229
|
-
import_node_os17 = __toESM(require("node:os"), 1);
|
|
13230
|
-
import_node_path84 = __toESM(require("node:path"), 1);
|
|
13231
|
-
import_node_util8 = require("node:util");
|
|
13232
|
-
init_git_repo_env();
|
|
13233
|
-
init_home_paths();
|
|
13234
|
-
init_swift_distribution();
|
|
13235
|
-
init_swift_lexical();
|
|
13236
|
-
init_swift_native_pin();
|
|
13237
|
-
init_swift_package();
|
|
13238
|
-
init_swift_toolchain();
|
|
13239
|
-
cacheDir3 = import_node_path84.default.join(cacheDir(), "swift-manifests");
|
|
13240
|
-
execFileAsync2 = (0, import_node_util8.promisify)(import_node_child_process39.execFile);
|
|
13241
|
-
}
|
|
13242
|
-
});
|
|
13243
|
-
|
|
13244
13279
|
// src/intent-definition/system-types.ts
|
|
13245
13280
|
var init_system_types = __esm({
|
|
13246
13281
|
"src/intent-definition/system-types.ts"() {
|
|
@@ -13427,12 +13462,12 @@ var init_siphash = __esm({
|
|
|
13427
13462
|
});
|
|
13428
13463
|
|
|
13429
13464
|
// src/intent-definition/metadata.ts
|
|
13430
|
-
var import_strict4,
|
|
13465
|
+
var import_strict4, import_node_crypto48, typeMetadata, initializeMetadata;
|
|
13431
13466
|
var init_metadata = __esm({
|
|
13432
13467
|
"src/intent-definition/metadata.ts"() {
|
|
13433
13468
|
"use strict";
|
|
13434
13469
|
import_strict4 = __toESM(require("node:assert/strict"), 1);
|
|
13435
|
-
|
|
13470
|
+
import_node_crypto48 = require("node:crypto");
|
|
13436
13471
|
init_fields();
|
|
13437
13472
|
init_hash_input();
|
|
13438
13473
|
init_siphash();
|
|
@@ -13537,13 +13572,13 @@ var init_source = __esm({
|
|
|
13537
13572
|
});
|
|
13538
13573
|
|
|
13539
13574
|
// src/xcode-intents.ts
|
|
13540
|
-
var
|
|
13575
|
+
var import_node_crypto49, import_node_fs83, import_node_path86;
|
|
13541
13576
|
var init_xcode_intents = __esm({
|
|
13542
13577
|
"src/xcode-intents.ts"() {
|
|
13543
13578
|
"use strict";
|
|
13544
|
-
|
|
13545
|
-
|
|
13546
|
-
|
|
13579
|
+
import_node_crypto49 = require("node:crypto");
|
|
13580
|
+
import_node_fs83 = __toESM(require("node:fs"), 1);
|
|
13581
|
+
import_node_path86 = __toESM(require("node:path"), 1);
|
|
13547
13582
|
init_fields();
|
|
13548
13583
|
init_metadata();
|
|
13549
13584
|
init_plist_reader();
|
|
@@ -13553,11 +13588,11 @@ var init_xcode_intents = __esm({
|
|
|
13553
13588
|
});
|
|
13554
13589
|
|
|
13555
13590
|
// src/xcode-json-project.ts
|
|
13556
|
-
var
|
|
13591
|
+
var import_node_path87;
|
|
13557
13592
|
var init_xcode_json_project = __esm({
|
|
13558
13593
|
"src/xcode-json-project.ts"() {
|
|
13559
13594
|
"use strict";
|
|
13560
|
-
|
|
13595
|
+
import_node_path87 = __toESM(require("node:path"), 1);
|
|
13561
13596
|
}
|
|
13562
13597
|
});
|
|
13563
13598
|
|
|
@@ -13603,15 +13638,15 @@ var init_xcode_swift_features = __esm({
|
|
|
13603
13638
|
});
|
|
13604
13639
|
|
|
13605
13640
|
// src/xcode-project.ts
|
|
13606
|
-
var
|
|
13641
|
+
var import_node_child_process42, import_node_crypto50, import_node_fs84, import_node_module8, import_node_path88, runScriptTimeoutMs;
|
|
13607
13642
|
var init_xcode_project = __esm({
|
|
13608
13643
|
"src/xcode-project.ts"() {
|
|
13609
13644
|
"use strict";
|
|
13610
|
-
|
|
13611
|
-
|
|
13612
|
-
|
|
13645
|
+
import_node_child_process42 = require("node:child_process");
|
|
13646
|
+
import_node_crypto50 = require("node:crypto");
|
|
13647
|
+
import_node_fs84 = __toESM(require("node:fs"), 1);
|
|
13613
13648
|
import_node_module8 = require("node:module");
|
|
13614
|
-
|
|
13649
|
+
import_node_path88 = __toESM(require("node:path"), 1);
|
|
13615
13650
|
init_bazel_project();
|
|
13616
13651
|
init_is_record();
|
|
13617
13652
|
init_native_app_identity();
|
|
@@ -13619,9 +13654,9 @@ var init_xcode_project = __esm({
|
|
|
13619
13654
|
init_pod_graph_specifications();
|
|
13620
13655
|
init_swift_binary_modules();
|
|
13621
13656
|
init_xcode_assets();
|
|
13657
|
+
init_swift_distribution();
|
|
13622
13658
|
init_swift_native_pin();
|
|
13623
13659
|
init_swift_package();
|
|
13624
|
-
init_swift_package_manifest();
|
|
13625
13660
|
init_swift_toolchain();
|
|
13626
13661
|
init_xcode_intents();
|
|
13627
13662
|
init_xcode_json_project();
|
|
@@ -13634,17 +13669,17 @@ var init_xcode_project = __esm({
|
|
|
13634
13669
|
});
|
|
13635
13670
|
|
|
13636
13671
|
// src/expo-native-workspace.ts
|
|
13637
|
-
var
|
|
13672
|
+
var import_node_child_process43, import_node_crypto51, import_node_fs85, import_node_module9, import_node_os19, import_node_path89, import_node_util10, ABANDONED_WORKSPACE_MS, CLONE_ENTRIES;
|
|
13638
13673
|
var init_expo_native_workspace = __esm({
|
|
13639
13674
|
"src/expo-native-workspace.ts"() {
|
|
13640
13675
|
"use strict";
|
|
13641
|
-
|
|
13642
|
-
|
|
13643
|
-
|
|
13676
|
+
import_node_child_process43 = require("node:child_process");
|
|
13677
|
+
import_node_crypto51 = require("node:crypto");
|
|
13678
|
+
import_node_fs85 = __toESM(require("node:fs"), 1);
|
|
13644
13679
|
import_node_module9 = require("node:module");
|
|
13645
|
-
|
|
13646
|
-
|
|
13647
|
-
|
|
13680
|
+
import_node_os19 = __toESM(require("node:os"), 1);
|
|
13681
|
+
import_node_path89 = __toESM(require("node:path"), 1);
|
|
13682
|
+
import_node_util10 = require("node:util");
|
|
13648
13683
|
init_detect();
|
|
13649
13684
|
init_admitted_mac_build();
|
|
13650
13685
|
init_expo_workspace_exclusion();
|
|
@@ -13696,13 +13731,13 @@ function run() {
|
|
|
13696
13731
|
});
|
|
13697
13732
|
|
|
13698
13733
|
// src/expo-discovery-cache.ts
|
|
13699
|
-
var
|
|
13734
|
+
var import_node_crypto52, import_node_fs86, import_node_path90, import_node_zlib5, EXPIRY_MS, ORPHAN_TEMPORARY_MS, MISSING_TREE;
|
|
13700
13735
|
var init_expo_discovery_cache = __esm({
|
|
13701
13736
|
"src/expo-discovery-cache.ts"() {
|
|
13702
13737
|
"use strict";
|
|
13703
|
-
|
|
13704
|
-
|
|
13705
|
-
|
|
13738
|
+
import_node_crypto52 = require("node:crypto");
|
|
13739
|
+
import_node_fs86 = __toESM(require("node:fs"), 1);
|
|
13740
|
+
import_node_path90 = __toESM(require("node:path"), 1);
|
|
13706
13741
|
import_node_zlib5 = require("node:zlib");
|
|
13707
13742
|
init_expo_eager_seam_contract();
|
|
13708
13743
|
init_answeredNativePackages();
|
|
@@ -13756,13 +13791,13 @@ var init_expoSwiftContract = __esm({
|
|
|
13756
13791
|
});
|
|
13757
13792
|
|
|
13758
13793
|
// src/native-app-identity-project.ts
|
|
13759
|
-
var
|
|
13794
|
+
var import_node_fs87, import_node_module10, import_node_path91;
|
|
13760
13795
|
var init_native_app_identity_project = __esm({
|
|
13761
13796
|
"src/native-app-identity-project.ts"() {
|
|
13762
13797
|
"use strict";
|
|
13763
|
-
|
|
13798
|
+
import_node_fs87 = __toESM(require("node:fs"), 1);
|
|
13764
13799
|
import_node_module10 = require("node:module");
|
|
13765
|
-
|
|
13800
|
+
import_node_path91 = __toESM(require("node:path"), 1);
|
|
13766
13801
|
init_android_app_identity();
|
|
13767
13802
|
init_is_record();
|
|
13768
13803
|
init_native_app_identity();
|
|
@@ -13776,15 +13811,15 @@ var init_native_app_identity_project = __esm({
|
|
|
13776
13811
|
});
|
|
13777
13812
|
|
|
13778
13813
|
// src/native-firebase-config.ts
|
|
13779
|
-
var
|
|
13814
|
+
var import_node_child_process44, import_node_fs88, import_node_module11, import_node_os20, import_node_path92;
|
|
13780
13815
|
var init_native_firebase_config = __esm({
|
|
13781
13816
|
"src/native-firebase-config.ts"() {
|
|
13782
13817
|
"use strict";
|
|
13783
|
-
|
|
13784
|
-
|
|
13818
|
+
import_node_child_process44 = require("node:child_process");
|
|
13819
|
+
import_node_fs88 = __toESM(require("node:fs"), 1);
|
|
13785
13820
|
import_node_module11 = require("node:module");
|
|
13786
|
-
|
|
13787
|
-
|
|
13821
|
+
import_node_os20 = __toESM(require("node:os"), 1);
|
|
13822
|
+
import_node_path92 = __toESM(require("node:path"), 1);
|
|
13788
13823
|
init_is_record();
|
|
13789
13824
|
init_plist();
|
|
13790
13825
|
init_xcode_project();
|
|
@@ -13805,21 +13840,21 @@ var init_nitroContract = __esm({
|
|
|
13805
13840
|
function hashPackageTree(root, options) {
|
|
13806
13841
|
const files = [];
|
|
13807
13842
|
const walk2 = (directory, relative3) => {
|
|
13808
|
-
for (const entry of (0,
|
|
13843
|
+
for (const entry of (0, import_node_fs89.readdirSync)(directory, { withFileTypes: true }).sort(
|
|
13809
13844
|
(a, b) => options.compareNames(a.name, b.name)
|
|
13810
13845
|
)) {
|
|
13811
13846
|
if (entry.name === "node_modules") continue;
|
|
13812
|
-
const
|
|
13813
|
-
if (entry.isDirectory()) walk2((0,
|
|
13814
|
-
else if (entry.isFile() && !options.skipFile?.(entry.name)) files.push(
|
|
13847
|
+
const path115 = `${relative3}${entry.name}`;
|
|
13848
|
+
if (entry.isDirectory()) walk2((0, import_node_path93.join)(directory, entry.name), `${path115}/`);
|
|
13849
|
+
else if (entry.isFile() && !options.skipFile?.(entry.name)) files.push(path115);
|
|
13815
13850
|
}
|
|
13816
13851
|
};
|
|
13817
13852
|
walk2(root, "");
|
|
13818
|
-
const hash = (0,
|
|
13853
|
+
const hash = (0, import_node_crypto53.createHash)("sha256");
|
|
13819
13854
|
return (async () => {
|
|
13820
13855
|
for (let start = 0; start < files.length; start += READ_AHEAD) {
|
|
13821
13856
|
const batch = files.slice(start, start + READ_AHEAD);
|
|
13822
|
-
const bytes = await Promise.all(batch.map((file) => (0, import_promises9.readFile)((0,
|
|
13857
|
+
const bytes = await Promise.all(batch.map((file) => (0, import_promises9.readFile)((0, import_node_path93.join)(root, file))));
|
|
13823
13858
|
batch.forEach((file, index) => hash.update(`${file}\0`).update(bytes[index]));
|
|
13824
13859
|
}
|
|
13825
13860
|
return hash.digest("hex");
|
|
@@ -13831,28 +13866,28 @@ function nativePackageTreeDigest(root) {
|
|
|
13831
13866
|
skipFile: (name2) => name2.endsWith(".d.ts") || name2.endsWith(".d.ts.map") || name2.endsWith(".js.map")
|
|
13832
13867
|
});
|
|
13833
13868
|
}
|
|
13834
|
-
var
|
|
13869
|
+
var import_node_crypto53, import_node_fs89, import_promises9, import_node_path93, READ_AHEAD;
|
|
13835
13870
|
var init_package_tree_digest = __esm({
|
|
13836
13871
|
"src/package-tree-digest.ts"() {
|
|
13837
13872
|
"use strict";
|
|
13838
|
-
|
|
13839
|
-
|
|
13873
|
+
import_node_crypto53 = require("node:crypto");
|
|
13874
|
+
import_node_fs89 = require("node:fs");
|
|
13840
13875
|
import_promises9 = require("node:fs/promises");
|
|
13841
|
-
|
|
13876
|
+
import_node_path93 = require("node:path");
|
|
13842
13877
|
READ_AHEAD = 64;
|
|
13843
13878
|
}
|
|
13844
13879
|
});
|
|
13845
13880
|
|
|
13846
13881
|
// src/expo-native-prebuilt.ts
|
|
13847
|
-
var
|
|
13882
|
+
var import_node_crypto54, import_node_fs90, import_node_module12, import_node_path94, import_node_util11, IDENTITY_SOURCE_SKIPS;
|
|
13848
13883
|
var init_expo_native_prebuilt = __esm({
|
|
13849
13884
|
"src/expo-native-prebuilt.ts"() {
|
|
13850
13885
|
"use strict";
|
|
13851
|
-
|
|
13852
|
-
|
|
13886
|
+
import_node_crypto54 = require("node:crypto");
|
|
13887
|
+
import_node_fs90 = __toESM(require("node:fs"), 1);
|
|
13853
13888
|
import_node_module12 = require("node:module");
|
|
13854
|
-
|
|
13855
|
-
|
|
13889
|
+
import_node_path94 = __toESM(require("node:path"), 1);
|
|
13890
|
+
import_node_util11 = require("node:util");
|
|
13856
13891
|
init_answeredNativePackages();
|
|
13857
13892
|
init_expo_native_compiler_digest();
|
|
13858
13893
|
init_expo_native_workspace();
|
|
@@ -13882,8 +13917,8 @@ var init_nativePreparationContract = __esm({
|
|
|
13882
13917
|
|
|
13883
13918
|
// src/native-preparation.ts
|
|
13884
13919
|
function ignoredChange(relative3) {
|
|
13885
|
-
const parts = relative3.split(
|
|
13886
|
-
return relative3 ===
|
|
13920
|
+
const parts = relative3.split(import_node_path95.default.sep);
|
|
13921
|
+
return relative3 === import_node_path95.default.join(".git", "index") || parts.includes(".cache") || parts.includes(".expo") || /(?:^|[\\/])node_modules[\\/]expo-widgets[\\/]bundle[\\/]build(?:[\\/]|$)/.test(
|
|
13887
13922
|
relative3
|
|
13888
13923
|
);
|
|
13889
13924
|
}
|
|
@@ -13903,9 +13938,9 @@ function watchNativeInputs(root) {
|
|
|
13903
13938
|
(0, import_node_timers.clearTimeout)(expiry);
|
|
13904
13939
|
for (const watcher of watchers) watcher.close();
|
|
13905
13940
|
}
|
|
13906
|
-
const inputs2 = { expiry, revision: (0,
|
|
13941
|
+
const inputs2 = { expiry, revision: (0, import_node_crypto55.randomUUID)() };
|
|
13907
13942
|
const watch = (directory, recursive, name2) => {
|
|
13908
|
-
const watcher =
|
|
13943
|
+
const watcher = import_node_fs91.default.watch(
|
|
13909
13944
|
directory,
|
|
13910
13945
|
{ recursive, persistent: false },
|
|
13911
13946
|
(_event, file) => {
|
|
@@ -13918,17 +13953,17 @@ function watchNativeInputs(root) {
|
|
|
13918
13953
|
const scan = (directory, watchRoot) => {
|
|
13919
13954
|
if (visited.has(directory)) return;
|
|
13920
13955
|
visited.add(directory);
|
|
13921
|
-
for (const entry of
|
|
13922
|
-
const file =
|
|
13923
|
-
if (ignoredChange(
|
|
13956
|
+
for (const entry of import_node_fs91.default.readdirSync(directory, { withFileTypes: true })) {
|
|
13957
|
+
const file = import_node_path95.default.join(directory, entry.name);
|
|
13958
|
+
if (ignoredChange(import_node_path95.default.relative(watchRoot, file)) || entry.name === ".git") continue;
|
|
13924
13959
|
if (entry.isDirectory()) scan(file, watchRoot);
|
|
13925
13960
|
if (!entry.isSymbolicLink()) continue;
|
|
13926
|
-
const target =
|
|
13927
|
-
if (target === workspace || target.startsWith(workspace +
|
|
13928
|
-
const real =
|
|
13961
|
+
const target = import_node_path95.default.resolve(directory, import_node_fs91.default.readlinkSync(file));
|
|
13962
|
+
if (target === workspace || target.startsWith(workspace + import_node_path95.default.sep)) continue;
|
|
13963
|
+
const real = import_node_fs91.default.realpathSync(file);
|
|
13929
13964
|
if (visited.has(real)) continue;
|
|
13930
|
-
watch(
|
|
13931
|
-
if (
|
|
13965
|
+
watch(import_node_path95.default.dirname(real), false, import_node_path95.default.basename(real));
|
|
13966
|
+
if (import_node_fs91.default.statSync(real).isDirectory()) {
|
|
13932
13967
|
watch(real, true);
|
|
13933
13968
|
scan(real, real);
|
|
13934
13969
|
} else visited.add(real);
|
|
@@ -13944,13 +13979,13 @@ function watchNativeInputs(root) {
|
|
|
13944
13979
|
watchedInputs.set(workspace, inputs2);
|
|
13945
13980
|
return inputs2;
|
|
13946
13981
|
}
|
|
13947
|
-
var
|
|
13982
|
+
var import_node_crypto55, import_node_fs91, import_node_path95, import_node_timers, setTimeoutNode, RETENTION_MS, watchedInputs, NativePreparation;
|
|
13948
13983
|
var init_native_preparation = __esm({
|
|
13949
13984
|
"src/native-preparation.ts"() {
|
|
13950
13985
|
"use strict";
|
|
13951
|
-
|
|
13952
|
-
|
|
13953
|
-
|
|
13986
|
+
import_node_crypto55 = require("node:crypto");
|
|
13987
|
+
import_node_fs91 = __toESM(require("node:fs"), 1);
|
|
13988
|
+
import_node_path95 = __toESM(require("node:path"), 1);
|
|
13954
13989
|
import_node_timers = require("node:timers");
|
|
13955
13990
|
init_nativePreparationContract();
|
|
13956
13991
|
init_runtime_assets();
|
|
@@ -14015,12 +14050,12 @@ var init_native_preparation = __esm({
|
|
|
14015
14050
|
});
|
|
14016
14051
|
|
|
14017
14052
|
// src/swift-xcframework.ts
|
|
14018
|
-
var
|
|
14053
|
+
var import_node_fs92, import_node_path96;
|
|
14019
14054
|
var init_swift_xcframework = __esm({
|
|
14020
14055
|
"src/swift-xcframework.ts"() {
|
|
14021
14056
|
"use strict";
|
|
14022
|
-
|
|
14023
|
-
|
|
14057
|
+
import_node_fs92 = __toESM(require("node:fs"), 1);
|
|
14058
|
+
import_node_path96 = __toESM(require("node:path"), 1);
|
|
14024
14059
|
init_is_record();
|
|
14025
14060
|
init_plist_bytes();
|
|
14026
14061
|
init_swift_source_file();
|
|
@@ -14028,20 +14063,19 @@ var init_swift_xcframework = __esm({
|
|
|
14028
14063
|
});
|
|
14029
14064
|
|
|
14030
14065
|
// src/native-static-libraries.ts
|
|
14031
|
-
var
|
|
14066
|
+
var import_node_child_process45, import_node_crypto56, import_node_fs93, import_node_path97, WEBRTC_NATIVE_FRAMEWORK, SIGNAL_WEBRTC_NATIVE_FRAMEWORK, WEBRTC_NATIVE_FRAMEWORK_RECIPES, NATIVE_STATIC_LIBRARY_RECIPES;
|
|
14032
14067
|
var init_native_static_libraries = __esm({
|
|
14033
14068
|
"src/native-static-libraries.ts"() {
|
|
14034
14069
|
"use strict";
|
|
14035
|
-
|
|
14036
|
-
|
|
14037
|
-
|
|
14038
|
-
|
|
14070
|
+
import_node_child_process45 = require("node:child_process");
|
|
14071
|
+
import_node_crypto56 = require("node:crypto");
|
|
14072
|
+
import_node_fs93 = __toESM(require("node:fs"), 1);
|
|
14073
|
+
import_node_path97 = __toESM(require("node:path"), 1);
|
|
14039
14074
|
init_home_paths();
|
|
14040
14075
|
init_native_prebuilt();
|
|
14041
|
-
|
|
14042
|
-
init_swift_distribution();
|
|
14076
|
+
init_swift_sdk_surface();
|
|
14043
14077
|
init_swift_toolchain();
|
|
14044
|
-
|
|
14078
|
+
init_swift_wasm_archive();
|
|
14045
14079
|
init_swift_xcframework();
|
|
14046
14080
|
WEBRTC_NATIVE_FRAMEWORK = {
|
|
14047
14081
|
name: "WebRTC",
|
|
@@ -14331,143 +14365,23 @@ var init_native_static_libraries = __esm({
|
|
|
14331
14365
|
}
|
|
14332
14366
|
});
|
|
14333
14367
|
|
|
14334
|
-
// src/numbered-lock.ts
|
|
14335
|
-
var import_node_crypto56, import_node_fs93, import_node_path97;
|
|
14336
|
-
var init_numbered_lock = __esm({
|
|
14337
|
-
"src/numbered-lock.ts"() {
|
|
14338
|
-
"use strict";
|
|
14339
|
-
import_node_crypto56 = require("node:crypto");
|
|
14340
|
-
import_node_fs93 = require("node:fs");
|
|
14341
|
-
import_node_path97 = require("node:path");
|
|
14342
|
-
}
|
|
14343
|
-
});
|
|
14344
|
-
|
|
14345
|
-
// src/rive-runtime-dependencies.ts
|
|
14346
|
-
var import_node_child_process44, import_node_crypto57, import_node_fs94, import_node_os20, import_node_path98, import_promises10;
|
|
14347
|
-
var init_rive_runtime_dependencies = __esm({
|
|
14348
|
-
"src/rive-runtime-dependencies.ts"() {
|
|
14349
|
-
"use strict";
|
|
14350
|
-
import_node_child_process44 = require("node:child_process");
|
|
14351
|
-
import_node_crypto57 = require("node:crypto");
|
|
14352
|
-
import_node_fs94 = __toESM(require("node:fs"), 1);
|
|
14353
|
-
import_node_os20 = __toESM(require("node:os"), 1);
|
|
14354
|
-
import_node_path98 = __toESM(require("node:path"), 1);
|
|
14355
|
-
import_promises10 = require("node:timers/promises");
|
|
14356
|
-
init_home_paths();
|
|
14357
|
-
init_numbered_lock();
|
|
14358
|
-
init_swift_compile();
|
|
14359
|
-
init_swift_distribution();
|
|
14360
|
-
init_swift_objc_runtime();
|
|
14361
|
-
init_swift_objc_standin();
|
|
14362
|
-
init_swiftTargetContract();
|
|
14363
|
-
}
|
|
14364
|
-
});
|
|
14365
|
-
|
|
14366
|
-
// src/swift-shipped-archives.json
|
|
14367
|
-
var swift_shipped_archives_default;
|
|
14368
|
-
var init_swift_shipped_archives = __esm({
|
|
14369
|
-
"src/swift-shipped-archives.json"() {
|
|
14370
|
-
swift_shipped_archives_default = {
|
|
14371
|
-
AppCheckCore: "a18d4e5aff27ff4b9bce8d6e73e55ccf1d11515311e219aa4473319cdff3187b",
|
|
14372
|
-
AppLovinSDK: "c00f052c4b15766a6a2734e2b3685234e6bd28dbc47fbe7cbc3edbf56f701d5c",
|
|
14373
|
-
AppsFlyerLib: "13bae495e63e22579dd9525a1c9e88d8eedc78b4586979b7e2d492cfd3efbe1f",
|
|
14374
|
-
FBAEMKit: "ceaf685683c6a23ae4893150d0d770aeeaec34811ac8c146b3aa351beade5fa0",
|
|
14375
|
-
FBAudienceNetwork: "4d84bf1e404a83852a93af2ae73e22e45bb2b11e0a9a445c3b461173a5d6aec3",
|
|
14376
|
-
FBLPromises: "3544fb457e7f60c69740cdd26617a75bdd613943e948becca643022c7edd76c0",
|
|
14377
|
-
FBSDKCoreKit: "1577edd62ec0c172928befed3b309dc59ae8915d2aaad091460d9d1be5ddc13d",
|
|
14378
|
-
FBSDKCoreKit_Basics: "c780833f204f9ec6eab70a3758a45c5c78bfb6f4e590289ccf395497f204cac1",
|
|
14379
|
-
FirebaseAnalytics: "e3253a494375c5174d20cb81925e20afa1ff6b1419125cb608d39b092b53ff2a",
|
|
14380
|
-
FirebaseAppCheck: "af82d72727d55d14f65eee96845d4d9495e4e603b4673709d6f3448b9595cc63",
|
|
14381
|
-
FirebaseAppCheckInterop: "7ffd54e6fe187bf8cd714e3d863e0095f7cbbb0fb802adb87a40c552de7cffcc",
|
|
14382
|
-
FirebaseAuth: "fcde09db8d45ffba67802e81c17b8046db6b56568226ace3fca898983b08c968",
|
|
14383
|
-
FirebaseAuthInterop: "e8e6f4fb42b3fa76c2bade7a522ab0f224558d27d2321175c791d307541787a8",
|
|
14384
|
-
FirebaseCore: "30e3505c715e17682c1dc20bb26ba475e99e6981a9a0dba3cf9352eea632fc1d",
|
|
14385
|
-
FirebaseCoreExtension: "e37ce2abcd4c218ab5426da78cbe7ab41f79ee7eba1d02dd4b0cde952ed2c4a0",
|
|
14386
|
-
FirebaseCoreInternal: "72a15c0c63585faf93e9ffa91e8a8c1c50b24749405804ffae19a29ec05b07ab",
|
|
14387
|
-
FirebaseCrashlytics: "e03c71913efd97678b895abb1e968c83e58b3fbd7955a81ec6e6581b95db16e3",
|
|
14388
|
-
FirebaseFirestore: "f7a1bb7fc4a2fb09298b514114d6aaca9a4f00fd8868667524a05bc4563bf1fd",
|
|
14389
|
-
FirebaseFirestoreInternal: "d9595a1784beaf5cd4a8e0dda0f4364ddfa6b536ad60f82746d81d14dce037a3",
|
|
14390
|
-
FirebaseInstallations: "141e313325bab001f2dbb79dc8a433f884f4c4a12a5feb665e6958098d637f7b",
|
|
14391
|
-
FirebaseRemoteConfig: "e0ae6d626a423d535bc67216f9f0cd66f98f1c0fb4b5bf88074d4496733e2db1",
|
|
14392
|
-
FirebaseRemoteConfigInterop: "794f599eb4232058715b606fa671639c8cc5d821655a0f739651d17c5ef65c37",
|
|
14393
|
-
FirebaseSessions: "1781d72e47dac0fc7a532412641021730bd5b659135633cd9ef7b97ccd31b0ce",
|
|
14394
|
-
FirebaseSharedSwift: "8d63b09a517733ef3a58390bf1e8cf054f058bdd618bb4f19a1f4b5a0b4f09e5",
|
|
14395
|
-
FirebaseStorage: "636b33180dd5ad60b4878357691fe6472cf3bd57ec691e9d661c5444f523df66",
|
|
14396
|
-
GTMSessionFetcher: "f58dc2bd9db39defd73f0f67e7a11893a0c6e6f0ba45cd83cf420b2b3c15f1bd",
|
|
14397
|
-
GoogleAdsOnDeviceConversion: "31a5a1f5204f4844a480d3889b6ebe2e69473ef32b868935c51812c0483cb08b",
|
|
14398
|
-
GoogleAppMeasurement: "5741e6334392e0345f1b5896111ffef4d5a78859970f5e197fa0b7d881165305",
|
|
14399
|
-
GoogleAppMeasurementIdentitySupport: "b70cb033eeb002ed1c5a8140953ccb3be0221ca754c05fe450ed9c9c6547f274",
|
|
14400
|
-
GoogleDataTransport: "7d08050419e0906f13039cc4d2dd69be075234c0bf5bbb34df9dd4891e48831d",
|
|
14401
|
-
GoogleMobileAds: "f2c09c60ee331ce029f563304ad73a481d57ace0d4bc11ce33a2bf59497c59bf",
|
|
14402
|
-
GoogleUtilities: "37a9d3d3810dad763a8a79bd4c7cc4c37b386240725aca07f45dba1826676c8c",
|
|
14403
|
-
Intercom: "fc8251f24b305b91f83304d4dffaf1a90c424a7bc37be8b595dd1fc5cff566ea",
|
|
14404
|
-
Promises: "6d8f1a4b3d561d67adfc2026834779b05685d1cdacea6e83c70d0641c39f24de",
|
|
14405
|
-
RecaptchaInterop: "cf5cc62ebc237b34d5267c1190d18f33b424dbc7f81713f127108d0ad8a592cf",
|
|
14406
|
-
RiveRuntime: "72b6ff5c5a1d153c9cdbea9a917c09be557cfcb1fafa02853fa06b0268551710",
|
|
14407
|
-
absl: "fff0388cf074c69a2da4bc197a005da0b8e5c23ebdcfa383600c540a342f9df1",
|
|
14408
|
-
grpc: "918737c9f8f93e14127b3894e31c7a0522475f2247b74f87d8166dff3a6bafb0",
|
|
14409
|
-
grpcpp: "b83f85e0256cf06df00cf0ed728b5c0d68373ca401742877935771447450b90a",
|
|
14410
|
-
leveldb: "5521a6e6e4cd01b2e31b099d4341f1bccae7e8ba43de648b028928573daf8bb4",
|
|
14411
|
-
nanopb: "a7fafe2e4e16d99de4c58f72e22dcc53221885aa6d678d1270123e4b01badfa3",
|
|
14412
|
-
openssl_grpc: "b2aaede82457cdd15915762a4f57b38e28ba0f47b9b48556a7e0c46881973096"
|
|
14413
|
-
};
|
|
14414
|
-
}
|
|
14415
|
-
});
|
|
14416
|
-
|
|
14417
|
-
// src/swift-shipped-binaries.ts
|
|
14418
|
-
var SHIPPED_ARCHIVES, SHIPPED_MODULES;
|
|
14419
|
-
var init_swift_shipped_binaries = __esm({
|
|
14420
|
-
"src/swift-shipped-binaries.ts"() {
|
|
14421
|
-
"use strict";
|
|
14422
|
-
init_swift_shipped_archives();
|
|
14423
|
-
SHIPPED_ARCHIVES = new Map(Object.entries(swift_shipped_archives_default));
|
|
14424
|
-
SHIPPED_MODULES = new Map(
|
|
14425
|
-
[...SHIPPED_ARCHIVES].map(([module2, checksum]) => [checksum, module2])
|
|
14426
|
-
);
|
|
14427
|
-
}
|
|
14428
|
-
});
|
|
14429
|
-
|
|
14430
|
-
// src/swift-packages.ts
|
|
14431
|
-
var import_node_child_process45, import_node_crypto58, import_node_fs95, import_node_path99, import_promises11, import_node_util11, execFileAsync3;
|
|
14432
|
-
var init_swift_packages = __esm({
|
|
14433
|
-
"src/swift-packages.ts"() {
|
|
14434
|
-
"use strict";
|
|
14435
|
-
import_node_child_process45 = require("node:child_process");
|
|
14436
|
-
import_node_crypto58 = require("node:crypto");
|
|
14437
|
-
import_node_fs95 = __toESM(require("node:fs"), 1);
|
|
14438
|
-
import_node_path99 = __toESM(require("node:path"), 1);
|
|
14439
|
-
import_promises11 = require("node:timers/promises");
|
|
14440
|
-
import_node_util11 = require("node:util");
|
|
14441
|
-
init_git_repo_env();
|
|
14442
|
-
init_home_paths();
|
|
14443
|
-
init_native_git();
|
|
14444
|
-
init_numbered_lock();
|
|
14445
|
-
init_rive_runtime_dependencies();
|
|
14446
|
-
init_swift_compile();
|
|
14447
|
-
init_swift_package();
|
|
14448
|
-
init_swift_package_manifest();
|
|
14449
|
-
init_swift_shipped_binaries();
|
|
14450
|
-
execFileAsync3 = (0, import_node_util11.promisify)(import_node_child_process45.execFile);
|
|
14451
|
-
}
|
|
14452
|
-
});
|
|
14453
|
-
|
|
14454
14368
|
// src/ffmpeg-source-build.ts
|
|
14455
14369
|
function inputs(declaration) {
|
|
14456
14370
|
const source = declaration.sources.find(
|
|
14457
|
-
({ file }) =>
|
|
14371
|
+
({ file }) => import_node_path98.default.basename(file) === "configure" && import_node_fs94.default.existsSync(import_node_path98.default.join(import_node_path98.default.dirname(file), "ffbuild/common.mak"))
|
|
14458
14372
|
)?.file;
|
|
14459
14373
|
const script = declaration.sources.find(
|
|
14460
|
-
({ file }) => file.endsWith(".sh") &&
|
|
14374
|
+
({ file }) => file.endsWith(".sh") && import_node_fs94.default.readFileSync(file, "utf8").includes("CONFIGURE_FLAGS=") && import_node_fs94.default.readFileSync(file, "utf8").includes("$SOURCE/configure")
|
|
14461
14375
|
)?.file;
|
|
14462
|
-
return source && script ? { source:
|
|
14376
|
+
return source && script ? { source: import_node_path98.default.dirname(source), script } : null;
|
|
14463
14377
|
}
|
|
14464
|
-
var import_node_child_process46,
|
|
14378
|
+
var import_node_child_process46, import_node_fs94, import_node_path98, ffmpegBuilder;
|
|
14465
14379
|
var init_ffmpeg_source_build = __esm({
|
|
14466
14380
|
"src/ffmpeg-source-build.ts"() {
|
|
14467
14381
|
"use strict";
|
|
14468
14382
|
import_node_child_process46 = require("node:child_process");
|
|
14469
|
-
|
|
14470
|
-
|
|
14383
|
+
import_node_fs94 = __toESM(require("node:fs"), 1);
|
|
14384
|
+
import_node_path98 = __toESM(require("node:path"), 1);
|
|
14471
14385
|
ffmpegBuilder = {
|
|
14472
14386
|
name: "ffmpeg-configure-v2",
|
|
14473
14387
|
probesFrameworks: true,
|
|
@@ -14475,7 +14389,7 @@ var init_ffmpeg_source_build = __esm({
|
|
|
14475
14389
|
build(declaration, toolchain, dependencyOutputs, outDir) {
|
|
14476
14390
|
const input = inputs(declaration);
|
|
14477
14391
|
if (!input) throw new Error(`${declaration.label} has no FFmpeg configure source`);
|
|
14478
|
-
const script =
|
|
14392
|
+
const script = import_node_fs94.default.readFileSync(input.script, "utf8");
|
|
14479
14393
|
const common = /\bCONFIGURE_FLAGS="([^"$]*)"/.exec(script)?.[1];
|
|
14480
14394
|
const portable = /--target-os=linux\s+([\s\S]*?)\|\| exit 1/.exec(script)?.[1];
|
|
14481
14395
|
const extra = /\bEXTRA_CFLAGS="([^"$]*)"/.exec(script)?.[1];
|
|
@@ -14489,9 +14403,9 @@ var init_ffmpeg_source_build = __esm({
|
|
|
14489
14403
|
"--enable-decoder=aac_at,alac_at,gsm_ms_at",
|
|
14490
14404
|
"--enable-hwaccel=h264_videotoolbox,hevc_videotoolbox"
|
|
14491
14405
|
);
|
|
14492
|
-
const work =
|
|
14493
|
-
const prefix =
|
|
14494
|
-
|
|
14406
|
+
const work = import_node_path98.default.join(outDir, ".work");
|
|
14407
|
+
const prefix = import_node_path98.default.join(work, "install");
|
|
14408
|
+
import_node_fs94.default.mkdirSync(work, { recursive: true });
|
|
14495
14409
|
const libraries = [
|
|
14496
14410
|
{
|
|
14497
14411
|
option: "libopus",
|
|
@@ -14515,7 +14429,7 @@ var init_ffmpeg_source_build = __esm({
|
|
|
14515
14429
|
for (const library of libraries) {
|
|
14516
14430
|
if (!flags.includes(`--enable-${library.option}`)) continue;
|
|
14517
14431
|
const dependency = declaration.dependencies.find(
|
|
14518
|
-
(candidate) => candidate.outputs.some((output) =>
|
|
14432
|
+
(candidate) => candidate.outputs.some((output) => import_node_path98.default.basename(output.path) === library.header)
|
|
14519
14433
|
);
|
|
14520
14434
|
const built = dependency && dependencyOutputs.get(dependency.label);
|
|
14521
14435
|
if (!dependency || !built)
|
|
@@ -14526,31 +14440,31 @@ var init_ffmpeg_source_build = __esm({
|
|
|
14526
14440
|
(output) => /\.(?:h|inc)$/.test(output.path)
|
|
14527
14441
|
);
|
|
14528
14442
|
const main = headers.find(
|
|
14529
|
-
(output) =>
|
|
14443
|
+
(output) => import_node_path98.default.basename(output.path) === library.header
|
|
14530
14444
|
);
|
|
14531
|
-
const includeRoot = library.option === "libdav1d" ?
|
|
14532
|
-
const destination =
|
|
14445
|
+
const includeRoot = library.option === "libdav1d" ? import_node_path98.default.dirname(import_node_path98.default.dirname(main.path)) : import_node_path98.default.dirname(main.path);
|
|
14446
|
+
const destination = import_node_path98.default.join(work, library.option);
|
|
14533
14447
|
for (const header of headers) {
|
|
14534
|
-
const relative3 =
|
|
14448
|
+
const relative3 = import_node_path98.default.relative(includeRoot, header.path);
|
|
14535
14449
|
if (relative3.startsWith("..")) continue;
|
|
14536
|
-
const target =
|
|
14450
|
+
const target = import_node_path98.default.join(
|
|
14537
14451
|
destination,
|
|
14538
14452
|
library.option === "libdav1d" ? "include" : library.include,
|
|
14539
14453
|
relative3
|
|
14540
14454
|
);
|
|
14541
|
-
|
|
14542
|
-
|
|
14455
|
+
import_node_fs94.default.mkdirSync(import_node_path98.default.dirname(target), { recursive: true });
|
|
14456
|
+
import_node_fs94.default.copyFileSync(import_node_path98.default.join(built, header.path), target);
|
|
14543
14457
|
}
|
|
14544
14458
|
const archive = dependency.outputs.find((output) => output.path.endsWith(".a"));
|
|
14545
14459
|
if (!archive) throw new Error(`${dependency.label} declares no library`);
|
|
14546
|
-
|
|
14547
|
-
|
|
14548
|
-
|
|
14549
|
-
|
|
14460
|
+
import_node_fs94.default.mkdirSync(import_node_path98.default.join(destination, "lib"), { recursive: true });
|
|
14461
|
+
import_node_fs94.default.copyFileSync(
|
|
14462
|
+
import_node_path98.default.join(built, archive.path),
|
|
14463
|
+
import_node_path98.default.join(destination, "lib", library.archive)
|
|
14550
14464
|
);
|
|
14551
14465
|
}
|
|
14552
14466
|
const compiler = [toolchain.cc, ...toolchain.cFlags].join(" ");
|
|
14553
|
-
const pkgConfig =
|
|
14467
|
+
const pkgConfig = import_node_path98.default.join(import_node_path98.default.dirname(input.script), "pkg-config");
|
|
14554
14468
|
const options = {
|
|
14555
14469
|
cwd: work,
|
|
14556
14470
|
env: { ...process.env, CPPFLAGS: "", CFLAGS: "", CXXFLAGS: "", LDFLAGS: "" },
|
|
@@ -14571,34 +14485,34 @@ var init_ffmpeg_source_build = __esm({
|
|
|
14571
14485
|
`--cc=${compiler}`,
|
|
14572
14486
|
`--ar=${toolchain.ar}`,
|
|
14573
14487
|
`--ranlib=${toolchain.ranlib}`,
|
|
14574
|
-
`--nm=${
|
|
14488
|
+
`--nm=${import_node_path98.default.join(toolchain.toolchainBin, "llvm-nm")}`,
|
|
14575
14489
|
`--extra-cflags=${extra} -Oz -fPIC -fwasm-exceptions -ffunction-sections -fdata-sections`,
|
|
14576
14490
|
"--extra-ldflags=-fwasm-exceptions",
|
|
14577
14491
|
`--prefix=${prefix}`,
|
|
14578
14492
|
`--pkg-config=${pkgConfig}`,
|
|
14579
|
-
`--pkg-config-flags=${libraries.map(({ option }) => `--${option}_path ${
|
|
14493
|
+
`--pkg-config-flags=${libraries.map(({ option }) => `--${option}_path ${import_node_path98.default.join(work, option)}`).join(" ")}`
|
|
14580
14494
|
];
|
|
14581
|
-
(0, import_node_child_process46.execFileSync)(
|
|
14582
|
-
const config =
|
|
14495
|
+
(0, import_node_child_process46.execFileSync)(import_node_path98.default.join(input.source, "configure"), configure, options);
|
|
14496
|
+
const config = import_node_path98.default.join(work, "config.h");
|
|
14583
14497
|
const portableConfig = configure.filter((arg) => !/^--(?:cc|ar|nm|ranlib|prefix|pkg-config(?:-flags)?)=/.test(arg)).join(" ");
|
|
14584
|
-
|
|
14498
|
+
import_node_fs94.default.writeFileSync(
|
|
14585
14499
|
config,
|
|
14586
|
-
|
|
14500
|
+
import_node_fs94.default.readFileSync(config, "utf8").replace(
|
|
14587
14501
|
/^#define FFMPEG_CONFIGURATION .*$/m,
|
|
14588
14502
|
() => `#define FFMPEG_CONFIGURATION ${JSON.stringify(portableConfig)}`
|
|
14589
14503
|
)
|
|
14590
14504
|
);
|
|
14591
14505
|
(0, import_node_child_process46.execFileSync)("make", [`-j${toolchain.jobs}`, "install"], options);
|
|
14592
14506
|
for (const output of declaration.outputs) {
|
|
14593
|
-
const target =
|
|
14507
|
+
const target = import_node_path98.default.join(outDir, output.path);
|
|
14594
14508
|
const component = /(?:^|\/)((?:libavutil|libavcodec|libavformat|libswresample)\/.*)$/.exec(
|
|
14595
14509
|
output.path
|
|
14596
14510
|
)?.[1];
|
|
14597
|
-
const source = output.path.endsWith(".a") ?
|
|
14598
|
-
if (!source || !
|
|
14511
|
+
const source = output.path.endsWith(".a") ? import_node_path98.default.join(prefix, "lib", import_node_path98.default.basename(output.path)) : component ? import_node_path98.default.join(prefix, "include", component) : null;
|
|
14512
|
+
if (!source || !import_node_fs94.default.existsSync(source))
|
|
14599
14513
|
throw new Error(`${declaration.label}: FFmpeg did not produce ${output.path}`);
|
|
14600
|
-
|
|
14601
|
-
|
|
14514
|
+
import_node_fs94.default.mkdirSync(import_node_path98.default.dirname(target), { recursive: true });
|
|
14515
|
+
import_node_fs94.default.copyFileSync(source, target);
|
|
14602
14516
|
}
|
|
14603
14517
|
}
|
|
14604
14518
|
};
|
|
@@ -14614,13 +14528,13 @@ var init_swift_wasm64_wamr = __esm({
|
|
|
14614
14528
|
|
|
14615
14529
|
// src/swift-wasm64-native-source.ts
|
|
14616
14530
|
function deriveSource(file, bytes, backport) {
|
|
14617
|
-
if (!backport || (0,
|
|
14531
|
+
if (!backport || (0, import_node_crypto57.createHash)("sha256").update(bytes).digest("hex") !== backport.originalSha256)
|
|
14618
14532
|
return null;
|
|
14619
14533
|
const source = bytes.toString("utf8");
|
|
14620
14534
|
const derived = Buffer.from(
|
|
14621
14535
|
"rewrite" in backport ? backport.rewrite(source) : source.replace(backport.before, backport.after)
|
|
14622
14536
|
);
|
|
14623
|
-
if ((0,
|
|
14537
|
+
if ((0, import_node_crypto57.createHash)("sha256").update(derived).digest("hex") !== backport.derivedSha256)
|
|
14624
14538
|
throw new Error(`Native source derivation differs: ${file}`);
|
|
14625
14539
|
return {
|
|
14626
14540
|
bytes: derived,
|
|
@@ -14629,15 +14543,14 @@ function deriveSource(file, bytes, backport) {
|
|
|
14629
14543
|
};
|
|
14630
14544
|
}
|
|
14631
14545
|
function deriveWasm64Header(file, bytes) {
|
|
14632
|
-
return deriveSource(file, bytes, headerDerivations.get(
|
|
14546
|
+
return deriveSource(file, bytes, headerDerivations.get(import_node_path99.default.basename(file)));
|
|
14633
14547
|
}
|
|
14634
|
-
var
|
|
14548
|
+
var import_node_crypto57, import_node_path99, webrtcUnknownArchitecture, boringsslWordSize2, headerDerivations;
|
|
14635
14549
|
var init_swift_wasm64_native_source = __esm({
|
|
14636
14550
|
"src/swift-wasm64-native-source.ts"() {
|
|
14637
14551
|
"use strict";
|
|
14638
|
-
|
|
14639
|
-
|
|
14640
|
-
init_nitro_dependencies();
|
|
14552
|
+
import_node_crypto57 = require("node:crypto");
|
|
14553
|
+
import_node_path99 = __toESM(require("node:path"), 1);
|
|
14641
14554
|
init_swift_wasm64_wamr();
|
|
14642
14555
|
init_swiftWasm64ConfigContract();
|
|
14643
14556
|
webrtcUnknownArchitecture = "#else\n#error Please add support for your architecture in rtc_base/system/arch.h";
|
|
@@ -14680,7 +14593,7 @@ function sourceNamed(declaration, pattern) {
|
|
|
14680
14593
|
}
|
|
14681
14594
|
function sourceTree(declaration, marker) {
|
|
14682
14595
|
const file = declaration.sources.find(
|
|
14683
|
-
(source) => source.file.endsWith(`${
|
|
14596
|
+
(source) => source.file.endsWith(`${import_node_path100.default.sep}${marker}`)
|
|
14684
14597
|
)?.file;
|
|
14685
14598
|
if (!file) throw new Error(`${declaration.label} names no ${marker}`);
|
|
14686
14599
|
return file.slice(0, -marker.length - 1);
|
|
@@ -14694,20 +14607,20 @@ function run4(command, args, cwd, env) {
|
|
|
14694
14607
|
});
|
|
14695
14608
|
}
|
|
14696
14609
|
function walk(dir) {
|
|
14697
|
-
if (!
|
|
14698
|
-
return
|
|
14699
|
-
const full =
|
|
14610
|
+
if (!import_node_fs95.default.existsSync(dir)) return [];
|
|
14611
|
+
return import_node_fs95.default.readdirSync(dir, { withFileTypes: true }).flatMap((entry) => {
|
|
14612
|
+
const full = import_node_path100.default.join(dir, entry.name);
|
|
14700
14613
|
return entry.isDirectory() ? walk(full) : [full];
|
|
14701
14614
|
});
|
|
14702
14615
|
}
|
|
14703
14616
|
function placeOutputs(declaration, roots, outDir) {
|
|
14704
14617
|
const built = roots.flatMap(walk);
|
|
14705
14618
|
for (const output of declaration.outputs) {
|
|
14706
|
-
const parts = output.path.split(
|
|
14619
|
+
const parts = output.path.split(import_node_path100.default.sep);
|
|
14707
14620
|
const name2 = parts.at(-1).toLowerCase();
|
|
14708
|
-
const candidates = built.filter((file) =>
|
|
14621
|
+
const candidates = built.filter((file) => import_node_path100.default.basename(file).toLowerCase() === name2);
|
|
14709
14622
|
const score = (file) => {
|
|
14710
|
-
const theirs = file.split(
|
|
14623
|
+
const theirs = file.split(import_node_path100.default.sep);
|
|
14711
14624
|
let shared = 1;
|
|
14712
14625
|
while (shared < parts.length && theirs.at(-1 - shared) === parts.at(-1 - shared))
|
|
14713
14626
|
shared++;
|
|
@@ -14715,16 +14628,16 @@ function placeOutputs(declaration, roots, outDir) {
|
|
|
14715
14628
|
};
|
|
14716
14629
|
const best = candidates.sort((a, b) => score(b) - score(a))[0];
|
|
14717
14630
|
if (!best) continue;
|
|
14718
|
-
const target =
|
|
14719
|
-
|
|
14720
|
-
|
|
14631
|
+
const target = import_node_path100.default.join(outDir, output.path);
|
|
14632
|
+
import_node_fs95.default.mkdirSync(import_node_path100.default.dirname(target), { recursive: true });
|
|
14633
|
+
import_node_fs95.default.copyFileSync(best, target);
|
|
14721
14634
|
}
|
|
14722
14635
|
}
|
|
14723
14636
|
function copyTree(source, target) {
|
|
14724
|
-
|
|
14637
|
+
import_node_fs95.default.cpSync(source, target, {
|
|
14725
14638
|
recursive: true,
|
|
14726
14639
|
dereference: true,
|
|
14727
|
-
filter: (file) =>
|
|
14640
|
+
filter: (file) => import_node_path100.default.basename(file) !== ".git"
|
|
14728
14641
|
});
|
|
14729
14642
|
}
|
|
14730
14643
|
function toolEnv(toolchain, extra = []) {
|
|
@@ -14740,8 +14653,8 @@ function toolEnv(toolchain, extra = []) {
|
|
|
14740
14653
|
CXX: toolchain.cxx,
|
|
14741
14654
|
AR: toolchain.ar,
|
|
14742
14655
|
RANLIB: toolchain.ranlib,
|
|
14743
|
-
NM:
|
|
14744
|
-
STRIP:
|
|
14656
|
+
NM: import_node_path100.default.join(toolchain.toolchainBin, "llvm-nm"),
|
|
14657
|
+
STRIP: import_node_path100.default.join(toolchain.toolchainBin, "llvm-strip"),
|
|
14745
14658
|
CFLAGS: flags.join(" "),
|
|
14746
14659
|
CXXFLAGS: flags.join(" "),
|
|
14747
14660
|
CPPFLAGS: "",
|
|
@@ -14757,8 +14670,8 @@ function toolEnv(toolchain, extra = []) {
|
|
|
14757
14670
|
};
|
|
14758
14671
|
}
|
|
14759
14672
|
function cmakeToolchainFile(toolchain, dir) {
|
|
14760
|
-
const file =
|
|
14761
|
-
|
|
14673
|
+
const file = import_node_path100.default.join(dir, "wasm64.cmake");
|
|
14674
|
+
import_node_fs95.default.writeFileSync(
|
|
14762
14675
|
file,
|
|
14763
14676
|
[
|
|
14764
14677
|
"set(CMAKE_SYSTEM_NAME WASI)",
|
|
@@ -14782,8 +14695,8 @@ function cmakeToolchainFile(toolchain, dir) {
|
|
|
14782
14695
|
return file;
|
|
14783
14696
|
}
|
|
14784
14697
|
function cmakeBuild(toolchain, source, work, options, targets = []) {
|
|
14785
|
-
const build =
|
|
14786
|
-
|
|
14698
|
+
const build = import_node_path100.default.join(work, "build");
|
|
14699
|
+
import_node_fs95.default.mkdirSync(build, { recursive: true });
|
|
14787
14700
|
const env = toolEnv(toolchain);
|
|
14788
14701
|
run4(
|
|
14789
14702
|
"cmake",
|
|
@@ -14814,13 +14727,13 @@ function cmakeBuild(toolchain, source, work, options, targets = []) {
|
|
|
14814
14727
|
);
|
|
14815
14728
|
return build;
|
|
14816
14729
|
}
|
|
14817
|
-
var import_node_child_process47,
|
|
14730
|
+
var import_node_child_process47, import_node_fs95, import_node_path100, opusBuilder, libvpxBuilder, libwebpBuilder, mozjpegBuilder, dav1dBuilder, tdBuilder, GENRULE_LIBRARY_BUILDERS;
|
|
14818
14731
|
var init_genrule_library_builds = __esm({
|
|
14819
14732
|
"src/genrule-library-builds.ts"() {
|
|
14820
14733
|
"use strict";
|
|
14821
14734
|
import_node_child_process47 = require("node:child_process");
|
|
14822
|
-
|
|
14823
|
-
|
|
14735
|
+
import_node_fs95 = __toESM(require("node:fs"), 1);
|
|
14736
|
+
import_node_path100 = __toESM(require("node:path"), 1);
|
|
14824
14737
|
init_swift_wasm64_native_source();
|
|
14825
14738
|
init_swiftTargetContract();
|
|
14826
14739
|
opusBuilder = {
|
|
@@ -14828,11 +14741,11 @@ var init_genrule_library_builds = __esm({
|
|
|
14828
14741
|
recognizes: (declaration) => !!sourceNamed(declaration, /\/opus-[\d.]+\.tar\.gz$/),
|
|
14829
14742
|
build(declaration, toolchain, _dependencies, outDir) {
|
|
14830
14743
|
const tarball = sourceNamed(declaration, /\/opus-[\d.]+\.tar\.gz$/);
|
|
14831
|
-
const work =
|
|
14832
|
-
|
|
14744
|
+
const work = import_node_path100.default.join(outDir, ".work");
|
|
14745
|
+
import_node_fs95.default.mkdirSync(work, { recursive: true });
|
|
14833
14746
|
run4("tar", ["-xzf", tarball, "--no-same-owner", "-C", work], work, {});
|
|
14834
|
-
const source =
|
|
14835
|
-
const prefix =
|
|
14747
|
+
const source = import_node_path100.default.join(work, import_node_path100.default.basename(tarball, ".tar.gz"));
|
|
14748
|
+
const prefix = import_node_path100.default.join(work, "install");
|
|
14836
14749
|
run4(
|
|
14837
14750
|
"./configure",
|
|
14838
14751
|
[
|
|
@@ -14856,15 +14769,15 @@ var init_genrule_library_builds = __esm({
|
|
|
14856
14769
|
libvpxBuilder = {
|
|
14857
14770
|
name: "libvpx",
|
|
14858
14771
|
recognizes: (declaration) => declaration.sources.some(
|
|
14859
|
-
(source) => source.file.endsWith(`${
|
|
14860
|
-
) && declaration.sources.some((source) => source.file.endsWith(`${
|
|
14772
|
+
(source) => source.file.endsWith(`${import_node_path100.default.sep}vpx${import_node_path100.default.sep}vpx_codec.h`)
|
|
14773
|
+
) && declaration.sources.some((source) => source.file.endsWith(`${import_node_path100.default.sep}vpxenc.c`)),
|
|
14861
14774
|
build(declaration, toolchain, _dependencies, outDir) {
|
|
14862
14775
|
const original = sourceTree(declaration, "vpxenc.c");
|
|
14863
|
-
const work =
|
|
14864
|
-
const source =
|
|
14776
|
+
const work = import_node_path100.default.join(outDir, ".work");
|
|
14777
|
+
const source = import_node_path100.default.join(work, "source");
|
|
14865
14778
|
copyTree(original, source);
|
|
14866
|
-
const build =
|
|
14867
|
-
|
|
14779
|
+
const build = import_node_path100.default.join(work, "build");
|
|
14780
|
+
import_node_fs95.default.mkdirSync(build, { recursive: true });
|
|
14868
14781
|
const env = toolEnv(toolchain);
|
|
14869
14782
|
const configure = [
|
|
14870
14783
|
"--target=generic-gnu",
|
|
@@ -14883,15 +14796,15 @@ var init_genrule_library_builds = __esm({
|
|
|
14883
14796
|
"--size-limit=8192x8192"
|
|
14884
14797
|
];
|
|
14885
14798
|
run4(
|
|
14886
|
-
|
|
14799
|
+
import_node_path100.default.join(source, "configure"),
|
|
14887
14800
|
[...configure, `--extra-cflags=${env.CFLAGS}`, `--extra-cxxflags=${env.CXXFLAGS}`],
|
|
14888
14801
|
build,
|
|
14889
14802
|
{ ...env, CROSS: "", LD: env.CC, AS: "" }
|
|
14890
14803
|
);
|
|
14891
|
-
const config =
|
|
14892
|
-
|
|
14804
|
+
const config = import_node_path100.default.join(build, "vpx_config.c");
|
|
14805
|
+
import_node_fs95.default.writeFileSync(
|
|
14893
14806
|
config,
|
|
14894
|
-
|
|
14807
|
+
import_node_fs95.default.readFileSync(config, "utf8").replace(
|
|
14895
14808
|
/^static const char\* const cfg = .*;$/m,
|
|
14896
14809
|
() => `static const char* const cfg = ${JSON.stringify(configure.join(" "))};`
|
|
14897
14810
|
)
|
|
@@ -14899,17 +14812,17 @@ var init_genrule_library_builds = __esm({
|
|
|
14899
14812
|
run4("make", [`-j${toolchain.jobs}`, "dist", "DIST_DIR=dist"], build, {
|
|
14900
14813
|
CROSS: ""
|
|
14901
14814
|
});
|
|
14902
|
-
placeOutputs(declaration, [
|
|
14815
|
+
placeOutputs(declaration, [import_node_path100.default.join(build, "dist"), build], outDir);
|
|
14903
14816
|
}
|
|
14904
14817
|
};
|
|
14905
14818
|
libwebpBuilder = {
|
|
14906
14819
|
name: "libwebp",
|
|
14907
14820
|
recognizes: (declaration) => declaration.sources.some(
|
|
14908
|
-
(source) => source.file.endsWith(`${
|
|
14821
|
+
(source) => source.file.endsWith(`${import_node_path100.default.sep}src${import_node_path100.default.sep}webp${import_node_path100.default.sep}decode.h`)
|
|
14909
14822
|
),
|
|
14910
14823
|
build(declaration, toolchain, _dependencies, outDir) {
|
|
14911
|
-
const source = sourceTree(declaration,
|
|
14912
|
-
const work =
|
|
14824
|
+
const source = sourceTree(declaration, import_node_path100.default.join("src", "webp", "decode.h"));
|
|
14825
|
+
const work = import_node_path100.default.join(outDir, ".work");
|
|
14913
14826
|
const build = cmakeBuild(toolchain, source, work, [
|
|
14914
14827
|
"-DWEBP_LINK_STATIC=1",
|
|
14915
14828
|
"-DWEBP_BUILD_CWEBP=0",
|
|
@@ -14925,15 +14838,15 @@ var init_genrule_library_builds = __esm({
|
|
|
14925
14838
|
"-DWEBP_ENABLE_SIMD=0",
|
|
14926
14839
|
"-DWEBP_USE_THREAD=0"
|
|
14927
14840
|
]);
|
|
14928
|
-
placeOutputs(declaration, [build,
|
|
14841
|
+
placeOutputs(declaration, [build, import_node_path100.default.join(source, "src")], outDir);
|
|
14929
14842
|
}
|
|
14930
14843
|
};
|
|
14931
14844
|
mozjpegBuilder = {
|
|
14932
14845
|
name: "mozjpeg",
|
|
14933
|
-
recognizes: (declaration) => declaration.sources.some((source) => source.file.endsWith(`${
|
|
14846
|
+
recognizes: (declaration) => declaration.sources.some((source) => source.file.endsWith(`${import_node_path100.default.sep}jcmaster.c`)) && declaration.sources.some((source) => source.file.endsWith(`${import_node_path100.default.sep}turbojpeg.c`)),
|
|
14934
14847
|
build(declaration, toolchain, _dependencies, outDir) {
|
|
14935
14848
|
const source = sourceTree(declaration, "turbojpeg.c");
|
|
14936
|
-
const work =
|
|
14849
|
+
const work = import_node_path100.default.join(outDir, ".work");
|
|
14937
14850
|
const build = cmakeBuild(
|
|
14938
14851
|
toolchain,
|
|
14939
14852
|
source,
|
|
@@ -14955,22 +14868,22 @@ var init_genrule_library_builds = __esm({
|
|
|
14955
14868
|
dav1dBuilder = {
|
|
14956
14869
|
name: "dav1d",
|
|
14957
14870
|
recognizes: (declaration) => declaration.sources.some(
|
|
14958
|
-
(source) => source.file.endsWith(`${
|
|
14871
|
+
(source) => source.file.endsWith(`${import_node_path100.default.sep}include${import_node_path100.default.sep}dav1d${import_node_path100.default.sep}dav1d.h`)
|
|
14959
14872
|
),
|
|
14960
14873
|
build(declaration, toolchain, _dependencies, outDir) {
|
|
14961
|
-
const source = sourceTree(declaration,
|
|
14962
|
-
const work =
|
|
14963
|
-
|
|
14874
|
+
const source = sourceTree(declaration, import_node_path100.default.join("include", "dav1d", "dav1d.h"));
|
|
14875
|
+
const work = import_node_path100.default.join(outDir, ".work");
|
|
14876
|
+
import_node_fs95.default.mkdirSync(work, { recursive: true });
|
|
14964
14877
|
const quote = (item) => `'${item.replaceAll("\\", "\\\\").replaceAll("'", "\\'")}'`;
|
|
14965
14878
|
const list2 = (items) => `[${items.map(quote).join(", ")}]`;
|
|
14966
|
-
const cross =
|
|
14967
|
-
|
|
14879
|
+
const cross = import_node_path100.default.join(work, "wasm64.meson");
|
|
14880
|
+
import_node_fs95.default.writeFileSync(
|
|
14968
14881
|
cross,
|
|
14969
14882
|
[
|
|
14970
14883
|
"[binaries]",
|
|
14971
14884
|
`c = ${list2([toolchain.cc, ...toolchain.cFlags])}`,
|
|
14972
14885
|
`ar = ${quote(toolchain.ar)}`,
|
|
14973
|
-
`strip = ${quote(
|
|
14886
|
+
`strip = ${quote(import_node_path100.default.join(toolchain.toolchainBin, "llvm-strip"))}`,
|
|
14974
14887
|
"[built-in options]",
|
|
14975
14888
|
`c_link_args = ${list2(toolEnv(toolchain).LDFLAGS.split(" "))}`,
|
|
14976
14889
|
"[properties]",
|
|
@@ -14987,7 +14900,7 @@ var init_genrule_library_builds = __esm({
|
|
|
14987
14900
|
""
|
|
14988
14901
|
].join("\n")
|
|
14989
14902
|
);
|
|
14990
|
-
const build =
|
|
14903
|
+
const build = import_node_path100.default.join(work, "build");
|
|
14991
14904
|
run4(
|
|
14992
14905
|
"meson",
|
|
14993
14906
|
[
|
|
@@ -15005,30 +14918,30 @@ var init_genrule_library_builds = __esm({
|
|
|
15005
14918
|
{}
|
|
15006
14919
|
);
|
|
15007
14920
|
run4("ninja", ["-C", build, `-j${toolchain.jobs}`], work, {});
|
|
15008
|
-
placeOutputs(declaration, [build,
|
|
14921
|
+
placeOutputs(declaration, [build, import_node_path100.default.join(source, "include")], outDir);
|
|
15009
14922
|
}
|
|
15010
14923
|
};
|
|
15011
14924
|
tdBuilder = {
|
|
15012
14925
|
name: "td",
|
|
15013
14926
|
recognizes: (declaration) => declaration.sources.some(
|
|
15014
|
-
(source) => source.file.endsWith(`${
|
|
14927
|
+
(source) => source.file.endsWith(`${import_node_path100.default.sep}tde2e${import_node_path100.default.sep}CMakeLists.txt`)
|
|
15015
14928
|
),
|
|
15016
14929
|
build(declaration, toolchain, _dependencies, outDir) {
|
|
15017
|
-
const original = sourceTree(declaration,
|
|
15018
|
-
const openssl = sourceTree(declaration,
|
|
15019
|
-
const work =
|
|
15020
|
-
const source =
|
|
14930
|
+
const original = sourceTree(declaration, import_node_path100.default.join("tde2e", "CMakeLists.txt"));
|
|
14931
|
+
const openssl = sourceTree(declaration, import_node_path100.default.join("openssl", "crypto.h"));
|
|
14932
|
+
const work = import_node_path100.default.join(outDir, ".work");
|
|
14933
|
+
const source = import_node_path100.default.join(work, "source");
|
|
15021
14934
|
copyTree(original, source);
|
|
15022
|
-
const include =
|
|
14935
|
+
const include = import_node_path100.default.join(work, "include");
|
|
15023
14936
|
copyTree(openssl, include);
|
|
15024
|
-
const target =
|
|
14937
|
+
const target = import_node_path100.default.join(openssl, "openssl", "target.h");
|
|
15025
14938
|
if (declaration.sources.some(({ file }) => file === target)) {
|
|
15026
|
-
const header = deriveWasm64Header(target,
|
|
14939
|
+
const header = deriveWasm64Header(target, import_node_fs95.default.readFileSync(target));
|
|
15027
14940
|
if (header)
|
|
15028
|
-
|
|
14941
|
+
import_node_fs95.default.writeFileSync(import_node_path100.default.join(include, "openssl", "target.h"), header.bytes);
|
|
15029
14942
|
}
|
|
15030
|
-
const native =
|
|
15031
|
-
|
|
14943
|
+
const native = import_node_path100.default.join(work, "native");
|
|
14944
|
+
import_node_fs95.default.mkdirSync(native, { recursive: true });
|
|
15032
14945
|
run4(
|
|
15033
14946
|
"cmake",
|
|
15034
14947
|
["-G", "Unix Makefiles", "-DTD_GENERATE_SOURCE_FILES=ON", source],
|
|
@@ -15062,30 +14975,41 @@ var init_genrule_library_builds = __esm({
|
|
|
15062
14975
|
});
|
|
15063
14976
|
|
|
15064
14977
|
// src/native-framework-compiler.ts
|
|
15065
|
-
var
|
|
14978
|
+
var import_node_crypto58, import_node_fs96, import_node_path101, v7;
|
|
15066
14979
|
var init_native_framework_compiler = __esm({
|
|
15067
14980
|
"src/native-framework-compiler.ts"() {
|
|
15068
14981
|
"use strict";
|
|
15069
|
-
|
|
15070
|
-
|
|
15071
|
-
|
|
14982
|
+
import_node_crypto58 = require("node:crypto");
|
|
14983
|
+
import_node_fs96 = __toESM(require("node:fs"), 1);
|
|
14984
|
+
import_node_path101 = __toESM(require("node:path"), 1);
|
|
15072
14985
|
v7 = __toESM(require("peachsim/vendor/valibot"), 1);
|
|
15073
|
-
|
|
14986
|
+
init_swift_sdk_surface();
|
|
15074
14987
|
init_swiftRuntimeProductContract();
|
|
15075
14988
|
init_swiftTargetContract();
|
|
15076
14989
|
}
|
|
15077
14990
|
});
|
|
15078
14991
|
|
|
14992
|
+
// src/numbered-lock.ts
|
|
14993
|
+
var import_node_crypto59, import_node_fs97, import_node_path102;
|
|
14994
|
+
var init_numbered_lock = __esm({
|
|
14995
|
+
"src/numbered-lock.ts"() {
|
|
14996
|
+
"use strict";
|
|
14997
|
+
import_node_crypto59 = require("node:crypto");
|
|
14998
|
+
import_node_fs97 = require("node:fs");
|
|
14999
|
+
import_node_path102 = require("node:path");
|
|
15000
|
+
}
|
|
15001
|
+
});
|
|
15002
|
+
|
|
15079
15003
|
// src/genrule-archives.ts
|
|
15080
|
-
var import_node_child_process48,
|
|
15004
|
+
var import_node_child_process48, import_node_crypto60, import_node_fs98, import_node_os21, import_node_path103, v8, BUILDERS, cacheDir4;
|
|
15081
15005
|
var init_genrule_archives = __esm({
|
|
15082
15006
|
"src/genrule-archives.ts"() {
|
|
15083
15007
|
"use strict";
|
|
15084
15008
|
import_node_child_process48 = require("node:child_process");
|
|
15085
|
-
|
|
15086
|
-
|
|
15009
|
+
import_node_crypto60 = require("node:crypto");
|
|
15010
|
+
import_node_fs98 = __toESM(require("node:fs"), 1);
|
|
15087
15011
|
import_node_os21 = __toESM(require("node:os"), 1);
|
|
15088
|
-
|
|
15012
|
+
import_node_path103 = __toESM(require("node:path"), 1);
|
|
15089
15013
|
v8 = __toESM(require("peachsim/vendor/valibot"), 1);
|
|
15090
15014
|
init_ffmpeg_source_build();
|
|
15091
15015
|
init_genrule_library_builds();
|
|
@@ -15094,14 +15018,13 @@ var init_genrule_archives = __esm({
|
|
|
15094
15018
|
init_native_framework_compiler();
|
|
15095
15019
|
init_native_prebuilt();
|
|
15096
15020
|
init_numbered_lock();
|
|
15097
|
-
|
|
15098
|
-
init_swift_distribution();
|
|
15021
|
+
init_swift_sdk_surface();
|
|
15099
15022
|
init_swift_toolchain();
|
|
15100
15023
|
init_swift_wasm64_native_source();
|
|
15101
15024
|
init_swiftRuntimeProductContract();
|
|
15102
15025
|
init_swiftTargetContract();
|
|
15103
15026
|
BUILDERS = [ffmpegBuilder, ...GENRULE_LIBRARY_BUILDERS];
|
|
15104
|
-
cacheDir4 =
|
|
15027
|
+
cacheDir4 = import_node_path103.default.join(cacheDir(), "genrule-archives");
|
|
15105
15028
|
}
|
|
15106
15029
|
});
|
|
15107
15030
|
|
|
@@ -15114,39 +15037,39 @@ var init_native_slices = __esm({
|
|
|
15114
15037
|
});
|
|
15115
15038
|
|
|
15116
15039
|
// src/native-swift-slices.ts
|
|
15117
|
-
var import_node_child_process49,
|
|
15040
|
+
var import_node_child_process49, import_node_crypto61, import_node_fs99, import_node_os22, import_node_path104;
|
|
15118
15041
|
var init_native_swift_slices = __esm({
|
|
15119
15042
|
"src/native-swift-slices.ts"() {
|
|
15120
15043
|
"use strict";
|
|
15121
15044
|
import_node_child_process49 = require("node:child_process");
|
|
15122
|
-
|
|
15123
|
-
|
|
15045
|
+
import_node_crypto61 = require("node:crypto");
|
|
15046
|
+
import_node_fs99 = __toESM(require("node:fs"), 1);
|
|
15124
15047
|
import_node_os22 = __toESM(require("node:os"), 1);
|
|
15125
|
-
|
|
15048
|
+
import_node_path104 = __toESM(require("node:path"), 1);
|
|
15126
15049
|
init_native_prebuilt();
|
|
15127
|
-
|
|
15050
|
+
init_swift_sdk_surface();
|
|
15128
15051
|
init_swift_toolchain();
|
|
15129
15052
|
init_swift_xcframework();
|
|
15130
15053
|
}
|
|
15131
15054
|
});
|
|
15132
15055
|
|
|
15133
15056
|
// src/output-lock-stdio.ts
|
|
15134
|
-
var
|
|
15057
|
+
var import_node_fs100;
|
|
15135
15058
|
var init_output_lock_stdio = __esm({
|
|
15136
15059
|
"src/output-lock-stdio.ts"() {
|
|
15137
15060
|
"use strict";
|
|
15138
|
-
|
|
15061
|
+
import_node_fs100 = require("node:fs");
|
|
15139
15062
|
}
|
|
15140
15063
|
});
|
|
15141
15064
|
|
|
15142
15065
|
// src/swift-cxx-declarations.ts
|
|
15143
|
-
var
|
|
15066
|
+
var import_node_fs101, import_node_path105, import_promises10, import_stream_json;
|
|
15144
15067
|
var init_swift_cxx_declarations = __esm({
|
|
15145
15068
|
"src/swift-cxx-declarations.ts"() {
|
|
15146
15069
|
"use strict";
|
|
15147
|
-
|
|
15148
|
-
|
|
15149
|
-
|
|
15070
|
+
import_node_fs101 = __toESM(require("node:fs"), 1);
|
|
15071
|
+
import_node_path105 = __toESM(require("node:path"), 1);
|
|
15072
|
+
import_promises10 = require("node:stream/promises");
|
|
15150
15073
|
import_stream_json = __toESM(require("peachsim/vendor/stream-json"), 1);
|
|
15151
15074
|
}
|
|
15152
15075
|
});
|
|
@@ -15159,13 +15082,13 @@ var init_swift_cxx_deps = __esm({
|
|
|
15159
15082
|
});
|
|
15160
15083
|
|
|
15161
15084
|
// src/swift-cxx-standin.ts
|
|
15162
|
-
var import_node_child_process50,
|
|
15085
|
+
var import_node_child_process50, import_node_fs102, import_node_path106;
|
|
15163
15086
|
var init_swift_cxx_standin = __esm({
|
|
15164
15087
|
"src/swift-cxx-standin.ts"() {
|
|
15165
15088
|
"use strict";
|
|
15166
15089
|
import_node_child_process50 = require("node:child_process");
|
|
15167
|
-
|
|
15168
|
-
|
|
15090
|
+
import_node_fs102 = __toESM(require("node:fs"), 1);
|
|
15091
|
+
import_node_path106 = __toESM(require("node:path"), 1);
|
|
15169
15092
|
init_swift_cxx_declarations();
|
|
15170
15093
|
init_swift_cxx_deps();
|
|
15171
15094
|
init_swift_objc_standin();
|
|
@@ -15175,6 +15098,70 @@ var init_swift_cxx_standin = __esm({
|
|
|
15175
15098
|
}
|
|
15176
15099
|
});
|
|
15177
15100
|
|
|
15101
|
+
// src/swift-shipped-archives.json
|
|
15102
|
+
var swift_shipped_archives_default;
|
|
15103
|
+
var init_swift_shipped_archives = __esm({
|
|
15104
|
+
"src/swift-shipped-archives.json"() {
|
|
15105
|
+
swift_shipped_archives_default = {
|
|
15106
|
+
AppCheckCore: "a18d4e5aff27ff4b9bce8d6e73e55ccf1d11515311e219aa4473319cdff3187b",
|
|
15107
|
+
AppLovinSDK: "c00f052c4b15766a6a2734e2b3685234e6bd28dbc47fbe7cbc3edbf56f701d5c",
|
|
15108
|
+
AppsFlyerLib: "13bae495e63e22579dd9525a1c9e88d8eedc78b4586979b7e2d492cfd3efbe1f",
|
|
15109
|
+
FBAEMKit: "ceaf685683c6a23ae4893150d0d770aeeaec34811ac8c146b3aa351beade5fa0",
|
|
15110
|
+
FBAudienceNetwork: "4d84bf1e404a83852a93af2ae73e22e45bb2b11e0a9a445c3b461173a5d6aec3",
|
|
15111
|
+
FBLPromises: "3544fb457e7f60c69740cdd26617a75bdd613943e948becca643022c7edd76c0",
|
|
15112
|
+
FBSDKCoreKit: "1577edd62ec0c172928befed3b309dc59ae8915d2aaad091460d9d1be5ddc13d",
|
|
15113
|
+
FBSDKCoreKit_Basics: "c780833f204f9ec6eab70a3758a45c5c78bfb6f4e590289ccf395497f204cac1",
|
|
15114
|
+
FirebaseAnalytics: "e3253a494375c5174d20cb81925e20afa1ff6b1419125cb608d39b092b53ff2a",
|
|
15115
|
+
FirebaseAppCheck: "af82d72727d55d14f65eee96845d4d9495e4e603b4673709d6f3448b9595cc63",
|
|
15116
|
+
FirebaseAppCheckInterop: "7ffd54e6fe187bf8cd714e3d863e0095f7cbbb0fb802adb87a40c552de7cffcc",
|
|
15117
|
+
FirebaseAuth: "fcde09db8d45ffba67802e81c17b8046db6b56568226ace3fca898983b08c968",
|
|
15118
|
+
FirebaseAuthInterop: "e8e6f4fb42b3fa76c2bade7a522ab0f224558d27d2321175c791d307541787a8",
|
|
15119
|
+
FirebaseCore: "30e3505c715e17682c1dc20bb26ba475e99e6981a9a0dba3cf9352eea632fc1d",
|
|
15120
|
+
FirebaseCoreExtension: "e37ce2abcd4c218ab5426da78cbe7ab41f79ee7eba1d02dd4b0cde952ed2c4a0",
|
|
15121
|
+
FirebaseCoreInternal: "72a15c0c63585faf93e9ffa91e8a8c1c50b24749405804ffae19a29ec05b07ab",
|
|
15122
|
+
FirebaseCrashlytics: "e03c71913efd97678b895abb1e968c83e58b3fbd7955a81ec6e6581b95db16e3",
|
|
15123
|
+
FirebaseFirestore: "f7a1bb7fc4a2fb09298b514114d6aaca9a4f00fd8868667524a05bc4563bf1fd",
|
|
15124
|
+
FirebaseFirestoreInternal: "d9595a1784beaf5cd4a8e0dda0f4364ddfa6b536ad60f82746d81d14dce037a3",
|
|
15125
|
+
FirebaseInstallations: "141e313325bab001f2dbb79dc8a433f884f4c4a12a5feb665e6958098d637f7b",
|
|
15126
|
+
FirebaseRemoteConfig: "e0ae6d626a423d535bc67216f9f0cd66f98f1c0fb4b5bf88074d4496733e2db1",
|
|
15127
|
+
FirebaseRemoteConfigInterop: "794f599eb4232058715b606fa671639c8cc5d821655a0f739651d17c5ef65c37",
|
|
15128
|
+
FirebaseSessions: "1781d72e47dac0fc7a532412641021730bd5b659135633cd9ef7b97ccd31b0ce",
|
|
15129
|
+
FirebaseSharedSwift: "8d63b09a517733ef3a58390bf1e8cf054f058bdd618bb4f19a1f4b5a0b4f09e5",
|
|
15130
|
+
FirebaseStorage: "636b33180dd5ad60b4878357691fe6472cf3bd57ec691e9d661c5444f523df66",
|
|
15131
|
+
GTMSessionFetcher: "f58dc2bd9db39defd73f0f67e7a11893a0c6e6f0ba45cd83cf420b2b3c15f1bd",
|
|
15132
|
+
GoogleAdsOnDeviceConversion: "31a5a1f5204f4844a480d3889b6ebe2e69473ef32b868935c51812c0483cb08b",
|
|
15133
|
+
GoogleAppMeasurement: "5741e6334392e0345f1b5896111ffef4d5a78859970f5e197fa0b7d881165305",
|
|
15134
|
+
GoogleAppMeasurementIdentitySupport: "b70cb033eeb002ed1c5a8140953ccb3be0221ca754c05fe450ed9c9c6547f274",
|
|
15135
|
+
GoogleDataTransport: "7d08050419e0906f13039cc4d2dd69be075234c0bf5bbb34df9dd4891e48831d",
|
|
15136
|
+
GoogleMobileAds: "f2c09c60ee331ce029f563304ad73a481d57ace0d4bc11ce33a2bf59497c59bf",
|
|
15137
|
+
GoogleUtilities: "37a9d3d3810dad763a8a79bd4c7cc4c37b386240725aca07f45dba1826676c8c",
|
|
15138
|
+
Intercom: "fc8251f24b305b91f83304d4dffaf1a90c424a7bc37be8b595dd1fc5cff566ea",
|
|
15139
|
+
Promises: "6d8f1a4b3d561d67adfc2026834779b05685d1cdacea6e83c70d0641c39f24de",
|
|
15140
|
+
RecaptchaInterop: "cf5cc62ebc237b34d5267c1190d18f33b424dbc7f81713f127108d0ad8a592cf",
|
|
15141
|
+
RiveRuntime: "72b6ff5c5a1d153c9cdbea9a917c09be557cfcb1fafa02853fa06b0268551710",
|
|
15142
|
+
absl: "fff0388cf074c69a2da4bc197a005da0b8e5c23ebdcfa383600c540a342f9df1",
|
|
15143
|
+
grpc: "918737c9f8f93e14127b3894e31c7a0522475f2247b74f87d8166dff3a6bafb0",
|
|
15144
|
+
grpcpp: "b83f85e0256cf06df00cf0ed728b5c0d68373ca401742877935771447450b90a",
|
|
15145
|
+
leveldb: "5521a6e6e4cd01b2e31b099d4341f1bccae7e8ba43de648b028928573daf8bb4",
|
|
15146
|
+
nanopb: "a7fafe2e4e16d99de4c58f72e22dcc53221885aa6d678d1270123e4b01badfa3",
|
|
15147
|
+
openssl_grpc: "b2aaede82457cdd15915762a4f57b38e28ba0f47b9b48556a7e0c46881973096"
|
|
15148
|
+
};
|
|
15149
|
+
}
|
|
15150
|
+
});
|
|
15151
|
+
|
|
15152
|
+
// src/swift-shipped-binaries.ts
|
|
15153
|
+
var SHIPPED_ARCHIVES, SHIPPED_MODULES;
|
|
15154
|
+
var init_swift_shipped_binaries = __esm({
|
|
15155
|
+
"src/swift-shipped-binaries.ts"() {
|
|
15156
|
+
"use strict";
|
|
15157
|
+
init_swift_shipped_archives();
|
|
15158
|
+
SHIPPED_ARCHIVES = new Map(Object.entries(swift_shipped_archives_default));
|
|
15159
|
+
SHIPPED_MODULES = new Map(
|
|
15160
|
+
[...SHIPPED_ARCHIVES].map(([module2, checksum]) => [checksum, module2])
|
|
15161
|
+
);
|
|
15162
|
+
}
|
|
15163
|
+
});
|
|
15164
|
+
|
|
15178
15165
|
// src/swift-standin-builtin-behavior.ts
|
|
15179
15166
|
var init_swift_standin_builtin_behavior = __esm({
|
|
15180
15167
|
"src/swift-standin-builtin-behavior.ts"() {
|
|
@@ -15183,14 +15170,14 @@ var init_swift_standin_builtin_behavior = __esm({
|
|
|
15183
15170
|
});
|
|
15184
15171
|
|
|
15185
15172
|
// src/swift-standins.ts
|
|
15186
|
-
var import_node_child_process51,
|
|
15173
|
+
var import_node_child_process51, import_node_crypto62, import_node_fs103, import_node_path107, cacheDir5;
|
|
15187
15174
|
var init_swift_standins = __esm({
|
|
15188
15175
|
"src/swift-standins.ts"() {
|
|
15189
15176
|
"use strict";
|
|
15190
15177
|
import_node_child_process51 = require("node:child_process");
|
|
15191
|
-
|
|
15192
|
-
|
|
15193
|
-
|
|
15178
|
+
import_node_crypto62 = require("node:crypto");
|
|
15179
|
+
import_node_fs103 = __toESM(require("node:fs"), 1);
|
|
15180
|
+
import_node_path107 = __toESM(require("node:path"), 1);
|
|
15194
15181
|
init_forked_script_contract();
|
|
15195
15182
|
init_genrule_archives();
|
|
15196
15183
|
init_home_paths();
|
|
@@ -15201,13 +15188,11 @@ var init_swift_standins = __esm({
|
|
|
15201
15188
|
init_native_swift_slices();
|
|
15202
15189
|
init_numbered_lock();
|
|
15203
15190
|
init_output_lock_stdio();
|
|
15204
|
-
init_swift_compile();
|
|
15205
15191
|
init_swift_cxx_standin();
|
|
15206
|
-
init_swift_distribution();
|
|
15207
15192
|
init_swift_objc_sdk();
|
|
15208
15193
|
init_swift_objc_standin();
|
|
15209
15194
|
init_swift_package();
|
|
15210
|
-
|
|
15195
|
+
init_swift_sdk_surface();
|
|
15211
15196
|
init_swift_shared_sdk();
|
|
15212
15197
|
init_swift_shipped_binaries();
|
|
15213
15198
|
init_swift_source_file();
|
|
@@ -15218,30 +15203,28 @@ var init_swift_standins = __esm({
|
|
|
15218
15203
|
init_swift_xcframework();
|
|
15219
15204
|
init_swiftContract();
|
|
15220
15205
|
init_swiftTargetContract();
|
|
15221
|
-
cacheDir5 =
|
|
15206
|
+
cacheDir5 = import_node_path107.default.join(cacheDir(), "swift-standins");
|
|
15222
15207
|
}
|
|
15223
15208
|
});
|
|
15224
15209
|
|
|
15225
15210
|
// src/swift-objc-compile.ts
|
|
15226
|
-
var import_node_child_process52,
|
|
15211
|
+
var import_node_child_process52, import_node_crypto63, import_node_fs104, import_node_path108;
|
|
15227
15212
|
var init_swift_objc_compile = __esm({
|
|
15228
15213
|
"src/swift-objc-compile.ts"() {
|
|
15229
15214
|
"use strict";
|
|
15230
15215
|
import_node_child_process52 = require("node:child_process");
|
|
15231
|
-
|
|
15232
|
-
|
|
15233
|
-
|
|
15216
|
+
import_node_crypto63 = require("node:crypto");
|
|
15217
|
+
import_node_fs104 = __toESM(require("node:fs"), 1);
|
|
15218
|
+
import_node_path108 = __toESM(require("node:path"), 1);
|
|
15234
15219
|
init_mapLimit();
|
|
15235
15220
|
init_home_paths();
|
|
15236
15221
|
init_is_record();
|
|
15237
|
-
init_swift_compile();
|
|
15238
|
-
init_swift_distribution();
|
|
15239
15222
|
init_swift_objc_import();
|
|
15240
15223
|
init_swift_objc_runtime();
|
|
15241
15224
|
init_swift_objc_standin();
|
|
15242
15225
|
init_swift_package();
|
|
15243
15226
|
init_swift_package_manifest();
|
|
15244
|
-
|
|
15227
|
+
init_swift_sdk_surface();
|
|
15245
15228
|
init_swift_source_file();
|
|
15246
15229
|
init_swift_standin_digest();
|
|
15247
15230
|
init_swift_standins();
|
|
@@ -15253,13 +15236,13 @@ var init_swift_objc_compile = __esm({
|
|
|
15253
15236
|
});
|
|
15254
15237
|
|
|
15255
15238
|
// src/react-native-bridge-modules.ts
|
|
15256
|
-
var
|
|
15239
|
+
var import_node_fs105, import_node_module13, import_node_path109;
|
|
15257
15240
|
var init_react_native_bridge_modules = __esm({
|
|
15258
15241
|
"src/react-native-bridge-modules.ts"() {
|
|
15259
15242
|
"use strict";
|
|
15260
|
-
|
|
15243
|
+
import_node_fs105 = __toESM(require("node:fs"), 1);
|
|
15261
15244
|
import_node_module13 = require("node:module");
|
|
15262
|
-
|
|
15245
|
+
import_node_path109 = __toESM(require("node:path"), 1);
|
|
15263
15246
|
init_answeredNativePackages();
|
|
15264
15247
|
init_swift_compile();
|
|
15265
15248
|
init_swift_objc_compile();
|
|
@@ -15269,14 +15252,14 @@ var init_react_native_bridge_modules = __esm({
|
|
|
15269
15252
|
});
|
|
15270
15253
|
|
|
15271
15254
|
// src/react-native-core.ts
|
|
15272
|
-
var
|
|
15255
|
+
var import_node_crypto64, import_node_fs106, import_node_module14, import_node_path110, import_node_util12, recipe;
|
|
15273
15256
|
var init_react_native_core = __esm({
|
|
15274
15257
|
"src/react-native-core.ts"() {
|
|
15275
15258
|
"use strict";
|
|
15276
|
-
|
|
15277
|
-
|
|
15259
|
+
import_node_crypto64 = require("node:crypto");
|
|
15260
|
+
import_node_fs106 = __toESM(require("node:fs"), 1);
|
|
15278
15261
|
import_node_module14 = require("node:module");
|
|
15279
|
-
|
|
15262
|
+
import_node_path110 = __toESM(require("node:path"), 1);
|
|
15280
15263
|
import_node_util12 = require("node:util");
|
|
15281
15264
|
init_home_paths();
|
|
15282
15265
|
init_is_record();
|
|
@@ -15287,19 +15270,19 @@ var init_react_native_core = __esm({
|
|
|
15287
15270
|
init_swift_distribution();
|
|
15288
15271
|
init_swift_package();
|
|
15289
15272
|
init_swiftContract();
|
|
15290
|
-
recipe = true ? "
|
|
15273
|
+
recipe = true ? "2aeec225b2e550246cadee239c032b7a9c5d2c76cede0e14057cc26a48f9acff" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
|
|
15291
15274
|
}
|
|
15292
15275
|
});
|
|
15293
15276
|
|
|
15294
15277
|
// src/swift-clang-type-ownership.ts
|
|
15295
|
-
var import_node_child_process53,
|
|
15278
|
+
var import_node_child_process53, import_node_crypto65, import_node_fs107, import_node_path111;
|
|
15296
15279
|
var init_swift_clang_type_ownership = __esm({
|
|
15297
15280
|
"src/swift-clang-type-ownership.ts"() {
|
|
15298
15281
|
"use strict";
|
|
15299
15282
|
import_node_child_process53 = require("node:child_process");
|
|
15300
|
-
|
|
15301
|
-
|
|
15302
|
-
|
|
15283
|
+
import_node_crypto65 = require("node:crypto");
|
|
15284
|
+
import_node_fs107 = __toESM(require("node:fs"), 1);
|
|
15285
|
+
import_node_path111 = __toESM(require("node:path"), 1);
|
|
15303
15286
|
init_is_record();
|
|
15304
15287
|
init_swift_compile();
|
|
15305
15288
|
init_swift_distribution();
|
|
@@ -15379,10 +15362,10 @@ var require_path_parse = __commonJS({
|
|
|
15379
15362
|
code === 45 || /* - */
|
|
15380
15363
|
code === 46;
|
|
15381
15364
|
}
|
|
15382
|
-
function State(
|
|
15365
|
+
function State(path115) {
|
|
15383
15366
|
this.index = 0;
|
|
15384
|
-
this.path =
|
|
15385
|
-
this.max =
|
|
15367
|
+
this.path = path115;
|
|
15368
|
+
this.max = path115.length;
|
|
15386
15369
|
this.result = [];
|
|
15387
15370
|
this.param = 0;
|
|
15388
15371
|
this.err = "";
|
|
@@ -15902,11 +15885,11 @@ var require_svgpath = __commonJS({
|
|
|
15902
15885
|
var matrix = require_matrix();
|
|
15903
15886
|
var a2c = require_a2c();
|
|
15904
15887
|
var ellipse = require_ellipse();
|
|
15905
|
-
function SvgPath(
|
|
15888
|
+
function SvgPath(path115) {
|
|
15906
15889
|
if (!(this instanceof SvgPath)) {
|
|
15907
|
-
return new SvgPath(
|
|
15890
|
+
return new SvgPath(path115);
|
|
15908
15891
|
}
|
|
15909
|
-
var pstate = pathParse(
|
|
15892
|
+
var pstate = pathParse(path115);
|
|
15910
15893
|
this.segments = pstate.segments;
|
|
15911
15894
|
this.err = pstate.err;
|
|
15912
15895
|
this.__stack = [];
|
|
@@ -16362,24 +16345,24 @@ var init_stringCatalog = __esm({
|
|
|
16362
16345
|
});
|
|
16363
16346
|
|
|
16364
16347
|
// src/core-data-entity-classes.ts
|
|
16365
|
-
var
|
|
16348
|
+
var import_node_fs108, import_node_path112;
|
|
16366
16349
|
var init_core_data_entity_classes = __esm({
|
|
16367
16350
|
"src/core-data-entity-classes.ts"() {
|
|
16368
16351
|
"use strict";
|
|
16369
|
-
|
|
16370
|
-
|
|
16352
|
+
import_node_fs108 = require("node:fs");
|
|
16353
|
+
import_node_path112 = __toESM(require("node:path"), 1);
|
|
16371
16354
|
init_plist();
|
|
16372
16355
|
}
|
|
16373
16356
|
});
|
|
16374
16357
|
|
|
16375
16358
|
// src/core-data-model.ts
|
|
16376
|
-
var
|
|
16359
|
+
var import_node_crypto66, import_node_fs109, import_node_path113, uid, NULL;
|
|
16377
16360
|
var init_core_data_model = __esm({
|
|
16378
16361
|
"src/core-data-model.ts"() {
|
|
16379
16362
|
"use strict";
|
|
16380
|
-
|
|
16381
|
-
|
|
16382
|
-
|
|
16363
|
+
import_node_crypto66 = require("node:crypto");
|
|
16364
|
+
import_node_fs109 = require("node:fs");
|
|
16365
|
+
import_node_path113 = __toESM(require("node:path"), 1);
|
|
16383
16366
|
init_core_data_entity_classes();
|
|
16384
16367
|
init_plist_bytes();
|
|
16385
16368
|
uid = (index) => ({ CF$UID: index });
|
|
@@ -18486,15 +18469,57 @@ var init_swift_catalog_png = __esm({
|
|
|
18486
18469
|
}
|
|
18487
18470
|
});
|
|
18488
18471
|
|
|
18472
|
+
// src/rive-runtime-dependencies.ts
|
|
18473
|
+
var import_node_child_process54, import_node_crypto67, import_node_fs110, import_node_os23, import_node_path114, import_promises11;
|
|
18474
|
+
var init_rive_runtime_dependencies = __esm({
|
|
18475
|
+
"src/rive-runtime-dependencies.ts"() {
|
|
18476
|
+
"use strict";
|
|
18477
|
+
import_node_child_process54 = require("node:child_process");
|
|
18478
|
+
import_node_crypto67 = require("node:crypto");
|
|
18479
|
+
import_node_fs110 = __toESM(require("node:fs"), 1);
|
|
18480
|
+
import_node_os23 = __toESM(require("node:os"), 1);
|
|
18481
|
+
import_node_path114 = __toESM(require("node:path"), 1);
|
|
18482
|
+
import_promises11 = require("node:timers/promises");
|
|
18483
|
+
init_home_paths();
|
|
18484
|
+
init_numbered_lock();
|
|
18485
|
+
init_swift_objc_runtime();
|
|
18486
|
+
init_swift_objc_standin();
|
|
18487
|
+
init_swift_sdk_surface();
|
|
18488
|
+
init_swiftTargetContract();
|
|
18489
|
+
}
|
|
18490
|
+
});
|
|
18491
|
+
|
|
18492
|
+
// src/swift-packages.ts
|
|
18493
|
+
var import_node_child_process55, import_node_fs111, import_node_path115, import_promises12, import_node_util13, execFileAsync3;
|
|
18494
|
+
var init_swift_packages = __esm({
|
|
18495
|
+
"src/swift-packages.ts"() {
|
|
18496
|
+
"use strict";
|
|
18497
|
+
import_node_child_process55 = require("node:child_process");
|
|
18498
|
+
import_node_fs111 = __toESM(require("node:fs"), 1);
|
|
18499
|
+
import_node_path115 = __toESM(require("node:path"), 1);
|
|
18500
|
+
import_promises12 = require("node:timers/promises");
|
|
18501
|
+
import_node_util13 = require("node:util");
|
|
18502
|
+
init_git_repo_env();
|
|
18503
|
+
init_native_git();
|
|
18504
|
+
init_numbered_lock();
|
|
18505
|
+
init_rive_runtime_dependencies();
|
|
18506
|
+
init_swift_package();
|
|
18507
|
+
init_swift_package_manifest();
|
|
18508
|
+
init_swift_sdk_surface();
|
|
18509
|
+
init_swift_shipped_binaries();
|
|
18510
|
+
execFileAsync3 = (0, import_node_util13.promisify)(import_node_child_process55.execFile);
|
|
18511
|
+
}
|
|
18512
|
+
});
|
|
18513
|
+
|
|
18489
18514
|
// src/swift-cxx-reachable.ts
|
|
18490
|
-
var
|
|
18515
|
+
var import_node_child_process56, import_node_crypto68, import_node_fs112, import_node_path116;
|
|
18491
18516
|
var init_swift_cxx_reachable = __esm({
|
|
18492
18517
|
"src/swift-cxx-reachable.ts"() {
|
|
18493
18518
|
"use strict";
|
|
18494
|
-
|
|
18519
|
+
import_node_child_process56 = require("node:child_process");
|
|
18495
18520
|
import_node_crypto68 = require("node:crypto");
|
|
18496
|
-
|
|
18497
|
-
|
|
18521
|
+
import_node_fs112 = __toESM(require("node:fs"), 1);
|
|
18522
|
+
import_node_path116 = __toESM(require("node:path"), 1);
|
|
18498
18523
|
init_is_record();
|
|
18499
18524
|
init_swift_cxx_deps();
|
|
18500
18525
|
init_swift_objc_compile();
|
|
@@ -18507,14 +18532,14 @@ var init_swift_cxx_reachable = __esm({
|
|
|
18507
18532
|
});
|
|
18508
18533
|
|
|
18509
18534
|
// src/swift-pdf-raster.ts
|
|
18510
|
-
var
|
|
18535
|
+
var import_node_child_process57, import_node_fs113, import_node_os24, import_node_path117;
|
|
18511
18536
|
var init_swift_pdf_raster = __esm({
|
|
18512
18537
|
"src/swift-pdf-raster.ts"() {
|
|
18513
18538
|
"use strict";
|
|
18514
|
-
|
|
18515
|
-
|
|
18516
|
-
|
|
18517
|
-
|
|
18539
|
+
import_node_child_process57 = require("node:child_process");
|
|
18540
|
+
import_node_fs113 = __toESM(require("node:fs"), 1);
|
|
18541
|
+
import_node_os24 = __toESM(require("node:os"), 1);
|
|
18542
|
+
import_node_path117 = __toESM(require("node:path"), 1);
|
|
18518
18543
|
init_internal_child_contract();
|
|
18519
18544
|
init_self_invocation();
|
|
18520
18545
|
init_home_paths();
|
|
@@ -18533,16 +18558,16 @@ var init_swift_standin_config = __esm({
|
|
|
18533
18558
|
});
|
|
18534
18559
|
|
|
18535
18560
|
// src/swift-host.ts
|
|
18536
|
-
var import_node_async_hooks2,
|
|
18561
|
+
var import_node_async_hooks2, import_node_child_process58, import_node_crypto69, import_node_fs114, import_node_os25, import_node_path118, projectScope, layoutScope, IOS_SDK_FRAMEWORKS;
|
|
18537
18562
|
var init_swift_host = __esm({
|
|
18538
18563
|
"src/swift-host.ts"() {
|
|
18539
18564
|
"use strict";
|
|
18540
18565
|
import_node_async_hooks2 = require("node:async_hooks");
|
|
18541
|
-
|
|
18566
|
+
import_node_child_process58 = require("node:child_process");
|
|
18542
18567
|
import_node_crypto69 = require("node:crypto");
|
|
18543
|
-
|
|
18544
|
-
|
|
18545
|
-
|
|
18568
|
+
import_node_fs114 = __toESM(require("node:fs"), 1);
|
|
18569
|
+
import_node_os25 = __toESM(require("node:os"), 1);
|
|
18570
|
+
import_node_path118 = __toESM(require("node:path"), 1);
|
|
18546
18571
|
init_pngHeader();
|
|
18547
18572
|
init_nativeSdkBindingContract();
|
|
18548
18573
|
init_nativeWasmContract();
|
|
@@ -18590,13 +18615,13 @@ var init_swift_host = __esm({
|
|
|
18590
18615
|
});
|
|
18591
18616
|
|
|
18592
18617
|
// src/installed-native-libraries.ts
|
|
18593
|
-
var
|
|
18618
|
+
var import_node_fs115, import_node_module15, import_node_path119;
|
|
18594
18619
|
var init_installed_native_libraries = __esm({
|
|
18595
18620
|
"src/installed-native-libraries.ts"() {
|
|
18596
18621
|
"use strict";
|
|
18597
|
-
|
|
18622
|
+
import_node_fs115 = __toESM(require("node:fs"), 1);
|
|
18598
18623
|
import_node_module15 = require("node:module");
|
|
18599
|
-
|
|
18624
|
+
import_node_path119 = __toESM(require("node:path"), 1);
|
|
18600
18625
|
init_is_record();
|
|
18601
18626
|
init_native_static_libraries();
|
|
18602
18627
|
init_swift_source_file();
|
|
@@ -18606,32 +18631,32 @@ var init_installed_native_libraries = __esm({
|
|
|
18606
18631
|
});
|
|
18607
18632
|
|
|
18608
18633
|
// src/turbo-codegen-intake.ts
|
|
18609
|
-
var
|
|
18634
|
+
var import_node_child_process59, import_node_crypto70, import_node_fs116, import_node_module16, import_node_path120, import_node_util14, run5;
|
|
18610
18635
|
var init_turbo_codegen_intake = __esm({
|
|
18611
18636
|
"src/turbo-codegen-intake.ts"() {
|
|
18612
18637
|
"use strict";
|
|
18613
|
-
|
|
18638
|
+
import_node_child_process59 = require("node:child_process");
|
|
18614
18639
|
import_node_crypto70 = require("node:crypto");
|
|
18615
|
-
|
|
18640
|
+
import_node_fs116 = __toESM(require("node:fs"), 1);
|
|
18616
18641
|
import_node_module16 = require("node:module");
|
|
18617
|
-
|
|
18618
|
-
|
|
18642
|
+
import_node_path120 = __toESM(require("node:path"), 1);
|
|
18643
|
+
import_node_util14 = require("node:util");
|
|
18619
18644
|
init_forked_script_contract();
|
|
18620
18645
|
init_is_record();
|
|
18621
18646
|
init_nitro_source();
|
|
18622
18647
|
init_podspec_sources();
|
|
18623
|
-
run5 = (0,
|
|
18648
|
+
run5 = (0, import_node_util14.promisify)(import_node_child_process59.execFile);
|
|
18624
18649
|
}
|
|
18625
18650
|
});
|
|
18626
18651
|
|
|
18627
18652
|
// src/turbo-source.ts
|
|
18628
|
-
var import_node_crypto71,
|
|
18653
|
+
var import_node_crypto71, import_node_fs117, import_node_path121;
|
|
18629
18654
|
var init_turbo_source = __esm({
|
|
18630
18655
|
"src/turbo-source.ts"() {
|
|
18631
18656
|
"use strict";
|
|
18632
18657
|
import_node_crypto71 = require("node:crypto");
|
|
18633
|
-
|
|
18634
|
-
|
|
18658
|
+
import_node_fs117 = __toESM(require("node:fs"), 1);
|
|
18659
|
+
import_node_path121 = __toESM(require("node:path"), 1);
|
|
18635
18660
|
init_cocoapods_trunk();
|
|
18636
18661
|
init_installed_native_libraries();
|
|
18637
18662
|
init_pod_sources();
|
|
@@ -18649,19 +18674,19 @@ var init_turbo_source = __esm({
|
|
|
18649
18674
|
});
|
|
18650
18675
|
|
|
18651
18676
|
// src/expo-swift-host.ts
|
|
18652
|
-
var import_node_async_hooks3,
|
|
18677
|
+
var import_node_async_hooks3, import_node_child_process60, import_node_crypto72, import_node_fs118, import_node_module17, import_node_os26, import_node_path122, import_node_url5, import_node_util15, run6, scriptEnv, traceStore, openPreparations;
|
|
18653
18678
|
var init_expo_swift_host = __esm({
|
|
18654
18679
|
"src/expo-swift-host.ts"() {
|
|
18655
18680
|
"use strict";
|
|
18656
18681
|
import_node_async_hooks3 = require("node:async_hooks");
|
|
18657
|
-
|
|
18682
|
+
import_node_child_process60 = require("node:child_process");
|
|
18658
18683
|
import_node_crypto72 = require("node:crypto");
|
|
18659
|
-
|
|
18684
|
+
import_node_fs118 = __toESM(require("node:fs"), 1);
|
|
18660
18685
|
import_node_module17 = require("node:module");
|
|
18661
|
-
|
|
18662
|
-
|
|
18686
|
+
import_node_os26 = __toESM(require("node:os"), 1);
|
|
18687
|
+
import_node_path122 = __toESM(require("node:path"), 1);
|
|
18663
18688
|
import_node_url5 = require("node:url");
|
|
18664
|
-
|
|
18689
|
+
import_node_util15 = require("node:util");
|
|
18665
18690
|
init_expo_eager_seam_contract();
|
|
18666
18691
|
init_app_project();
|
|
18667
18692
|
init_answeredNativePackages();
|
|
@@ -18691,7 +18716,7 @@ var init_expo_swift_host = __esm({
|
|
|
18691
18716
|
init_swift_submit();
|
|
18692
18717
|
init_swift_toolchain();
|
|
18693
18718
|
init_turbo_source();
|
|
18694
|
-
run6 = (0,
|
|
18719
|
+
run6 = (0, import_node_util15.promisify)(import_node_child_process60.execFile);
|
|
18695
18720
|
scriptEnv = { ...process.env, [PEACH_FORKED_SCRIPT_ENV]: "1" };
|
|
18696
18721
|
traceStore = new import_node_async_hooks3.AsyncLocalStorage();
|
|
18697
18722
|
openPreparations = new NativePreparation();
|
|
@@ -18723,14 +18748,14 @@ function expoPodsBundleInputs(podKeys, oneSDK = false) {
|
|
|
18723
18748
|
)
|
|
18724
18749
|
};
|
|
18725
18750
|
}
|
|
18726
|
-
var
|
|
18751
|
+
var import_node_child_process61, import_node_fs119, import_node_os27, import_node_path123, v9, sliceTargetSchema, resourceBundleSchema, sliceManifestSchema, expoAppBundleEntryUrl;
|
|
18727
18752
|
var init_native_package_slice = __esm({
|
|
18728
18753
|
"src/native-package-slice.ts"() {
|
|
18729
18754
|
"use strict";
|
|
18730
|
-
|
|
18731
|
-
|
|
18732
|
-
|
|
18733
|
-
|
|
18755
|
+
import_node_child_process61 = require("node:child_process");
|
|
18756
|
+
import_node_fs119 = __toESM(require("node:fs"), 1);
|
|
18757
|
+
import_node_os27 = __toESM(require("node:os"), 1);
|
|
18758
|
+
import_node_path123 = __toESM(require("node:path"), 1);
|
|
18734
18759
|
v9 = __toESM(require("peachsim/vendor/valibot"), 1);
|
|
18735
18760
|
init_expo_swift_host();
|
|
18736
18761
|
init_expoSwiftContract();
|
|
@@ -18807,10 +18832,10 @@ async function expoPodPackages(appRoot) {
|
|
|
18807
18832
|
const answered = peachAnsweredNativePackages();
|
|
18808
18833
|
return (await expoAutolinkedPackages(appRoot)).flatMap((pod) => {
|
|
18809
18834
|
const [swiftModule] = pod.swiftModuleNames;
|
|
18810
|
-
if (swiftModule === void 0 || pod.swiftModuleNames.length !== 1 || !pod.hasRegistrations || answered.has(pod.name) || !pod.root.split(
|
|
18835
|
+
if (swiftModule === void 0 || pod.swiftModuleNames.length !== 1 || !pod.hasRegistrations || answered.has(pod.name) || !pod.root.split(import_node_path124.default.sep).includes("node_modules"))
|
|
18811
18836
|
return [];
|
|
18812
18837
|
const manifest = JSON.parse(
|
|
18813
|
-
|
|
18838
|
+
import_node_fs120.default.readFileSync(import_node_path124.default.join(pod.root, "package.json"), "utf8")
|
|
18814
18839
|
);
|
|
18815
18840
|
const version = isRecord(manifest) ? manifest.version : null;
|
|
18816
18841
|
if (typeof version !== "string")
|
|
@@ -18853,7 +18878,7 @@ function lookup2(url) {
|
|
|
18853
18878
|
return pending;
|
|
18854
18879
|
}
|
|
18855
18880
|
async function prebuiltExpoPods(appRoot) {
|
|
18856
|
-
const pods = await expoPodPackages(
|
|
18881
|
+
const pods = await expoPodPackages(import_node_fs120.default.realpathSync(appRoot));
|
|
18857
18882
|
if (pods.length === 0) {
|
|
18858
18883
|
console.error(`expo pod miss: no packages at ${appRoot}`);
|
|
18859
18884
|
return null;
|
|
@@ -18917,12 +18942,12 @@ async function prebuiltExpoPods(appRoot) {
|
|
|
18917
18942
|
failures: []
|
|
18918
18943
|
};
|
|
18919
18944
|
}
|
|
18920
|
-
var
|
|
18945
|
+
var import_node_fs120, import_node_path124, expoPodEntryName, expoPodEntryUrl, published;
|
|
18921
18946
|
var init_expo_pod_prebuilt = __esm({
|
|
18922
18947
|
"src/expo-pod-prebuilt.ts"() {
|
|
18923
18948
|
"use strict";
|
|
18924
|
-
|
|
18925
|
-
|
|
18949
|
+
import_node_fs120 = __toESM(require("node:fs"), 1);
|
|
18950
|
+
import_node_path124 = __toESM(require("node:path"), 1);
|
|
18926
18951
|
init_answeredNativePackages();
|
|
18927
18952
|
init_expo_autolinking();
|
|
18928
18953
|
init_expo_native_compiler_digest();
|
|
@@ -21520,11 +21545,11 @@ function missing(error) {
|
|
|
21520
21545
|
}
|
|
21521
21546
|
async function answerAsync(step) {
|
|
21522
21547
|
try {
|
|
21523
|
-
if (step.type === "realpath") return await
|
|
21524
|
-
if (step.type === "read") return await
|
|
21548
|
+
if (step.type === "realpath") return await import_node_fs121.default.promises.realpath(step.path);
|
|
21549
|
+
if (step.type === "read") return await import_node_fs121.default.promises.readFile(step.path, "utf8");
|
|
21525
21550
|
if (step.type === "isDirectory")
|
|
21526
|
-
return (await
|
|
21527
|
-
return (await
|
|
21551
|
+
return (await import_node_fs121.default.promises.stat(step.path)).isDirectory();
|
|
21552
|
+
return (await import_node_fs121.default.promises.readdir(step.path, { withFileTypes: true })).map(
|
|
21528
21553
|
(entry) => ({
|
|
21529
21554
|
name: entry.name,
|
|
21530
21555
|
directory: entry.isDirectory(),
|
|
@@ -21557,7 +21582,7 @@ function* rubyFiles(directory, seen, iosRoot = false) {
|
|
|
21557
21582
|
const files = [];
|
|
21558
21583
|
for (const entry of entries.sort((a, b) => a.name.localeCompare(b.name))) {
|
|
21559
21584
|
if (iosRoot && (entry.name === "Pods" || entry.name === "build")) continue;
|
|
21560
|
-
const target =
|
|
21585
|
+
const target = import_node_path125.default.join(directory, entry.name);
|
|
21561
21586
|
let isDirectory = entry.directory;
|
|
21562
21587
|
if (entry.symbolicLink)
|
|
21563
21588
|
isDirectory = (yield { type: "isDirectory", path: target }) === true;
|
|
@@ -21570,7 +21595,7 @@ function* nativeBuildOptionsWalk(projectRoot, versions, environment) {
|
|
|
21570
21595
|
let sensorOptions = {};
|
|
21571
21596
|
const sensors = versions["expo-sensors"];
|
|
21572
21597
|
if (sensors && resolveCompatVersionRange([">=58.0.4 <59.0.0"], sensors).status === "matched") {
|
|
21573
|
-
const file =
|
|
21598
|
+
const file = import_node_path125.default.join(projectRoot, "ios", "Podfile.properties.json");
|
|
21574
21599
|
const source = yield { type: "read", path: file };
|
|
21575
21600
|
if (source !== null && typeof source !== "string")
|
|
21576
21601
|
throw new Error(`cannot inspect ${file}`);
|
|
@@ -21586,8 +21611,8 @@ function* nativeBuildOptionsWalk(projectRoot, versions, environment) {
|
|
|
21586
21611
|
if (!needsRiveOptions(versions)) return sensorOptions;
|
|
21587
21612
|
if (environment.USE_RIVE_LEGACY === "1" || environment.USE_RIVE_LEGACY === "true")
|
|
21588
21613
|
return { ...sensorOptions, [RIVE_PACKAGE]: { USE_RIVE_LEGACY: true } };
|
|
21589
|
-
const ios =
|
|
21590
|
-
const podfile =
|
|
21614
|
+
const ios = import_node_path125.default.join(projectRoot, "ios");
|
|
21615
|
+
const podfile = import_node_path125.default.join(ios, "Podfile");
|
|
21591
21616
|
const files = [podfile, ...yield* rubyFiles(ios, /* @__PURE__ */ new Set(), true)];
|
|
21592
21617
|
let value = false;
|
|
21593
21618
|
let assigned = false;
|
|
@@ -21615,12 +21640,12 @@ async function readInstalledNativeBuildOptionsAsync(projectRoot, versions, envir
|
|
|
21615
21640
|
step = walk2.next(await answerAsync(step.value));
|
|
21616
21641
|
}
|
|
21617
21642
|
}
|
|
21618
|
-
var
|
|
21643
|
+
var import_node_fs121, import_node_path125, RIVE_PACKAGE, RIVE_05;
|
|
21619
21644
|
var init_installed_native_build_options = __esm({
|
|
21620
21645
|
"src/installed-native-build-options.ts"() {
|
|
21621
21646
|
"use strict";
|
|
21622
|
-
|
|
21623
|
-
|
|
21647
|
+
import_node_fs121 = __toESM(require("node:fs"), 1);
|
|
21648
|
+
import_node_path125 = __toESM(require("node:path"), 1);
|
|
21624
21649
|
init_version_range();
|
|
21625
21650
|
RIVE_PACKAGE = "@rive-app/react-native";
|
|
21626
21651
|
RIVE_05 = [">=0.5.0 <0.6.0"];
|
|
@@ -22086,24 +22111,24 @@ var init_dev_bundle_resolution = __esm({
|
|
|
22086
22111
|
});
|
|
22087
22112
|
|
|
22088
22113
|
// src/settings-bundle.ts
|
|
22089
|
-
var import_promises13,
|
|
22114
|
+
var import_promises13, import_node_path126;
|
|
22090
22115
|
var init_settings_bundle = __esm({
|
|
22091
22116
|
"src/settings-bundle.ts"() {
|
|
22092
22117
|
"use strict";
|
|
22093
22118
|
import_promises13 = require("node:fs/promises");
|
|
22094
|
-
|
|
22119
|
+
import_node_path126 = require("node:path");
|
|
22095
22120
|
init_is_record();
|
|
22096
22121
|
init_plist();
|
|
22097
22122
|
}
|
|
22098
22123
|
});
|
|
22099
22124
|
|
|
22100
22125
|
// scripts/optional-demo-registry.ts
|
|
22101
|
-
var
|
|
22126
|
+
var import_node_fs122, import_node_path127, import_node_url6;
|
|
22102
22127
|
var init_optional_demo_registry = __esm({
|
|
22103
22128
|
"scripts/optional-demo-registry.ts"() {
|
|
22104
22129
|
"use strict";
|
|
22105
|
-
|
|
22106
|
-
|
|
22130
|
+
import_node_fs122 = require("node:fs");
|
|
22131
|
+
import_node_path127 = require("node:path");
|
|
22107
22132
|
import_node_url6 = require("node:url");
|
|
22108
22133
|
}
|
|
22109
22134
|
});
|
|
@@ -22124,8 +22149,8 @@ function pidIsAlive(pid) {
|
|
|
22124
22149
|
}
|
|
22125
22150
|
function readLockOwner() {
|
|
22126
22151
|
try {
|
|
22127
|
-
const raw = (0,
|
|
22128
|
-
const mtimeMs = (0,
|
|
22152
|
+
const raw = (0, import_node_fs123.readFileSync)(LISTENER_LOCK_PATH, "utf8");
|
|
22153
|
+
const mtimeMs = (0, import_node_fs123.statSync)(LISTENER_LOCK_PATH).mtimeMs;
|
|
22129
22154
|
const pid = Number(raw.split("-")[0]);
|
|
22130
22155
|
return { raw, pid: Number.isInteger(pid) ? pid : -1, mtimeMs };
|
|
22131
22156
|
} catch {
|
|
@@ -22138,15 +22163,15 @@ function lockIsAbandoned(owner) {
|
|
|
22138
22163
|
}
|
|
22139
22164
|
function clearLock(raw) {
|
|
22140
22165
|
try {
|
|
22141
|
-
if ((0,
|
|
22142
|
-
(0,
|
|
22166
|
+
if ((0, import_node_fs123.readFileSync)(LISTENER_LOCK_PATH, "utf8") !== raw) return;
|
|
22167
|
+
(0, import_node_fs123.unlinkSync)(LISTENER_LOCK_PATH);
|
|
22143
22168
|
} catch {
|
|
22144
22169
|
}
|
|
22145
22170
|
}
|
|
22146
22171
|
function readResult() {
|
|
22147
22172
|
try {
|
|
22148
22173
|
const parsed = JSON.parse(
|
|
22149
|
-
(0,
|
|
22174
|
+
(0, import_node_fs123.readFileSync)(LISTENER_RESULT_PATH, "utf8")
|
|
22150
22175
|
);
|
|
22151
22176
|
if (!parsed || typeof parsed.token !== "string" || typeof parsed.key !== "string")
|
|
22152
22177
|
return null;
|
|
@@ -22157,8 +22182,8 @@ function readResult() {
|
|
|
22157
22182
|
}
|
|
22158
22183
|
function publishResult(payload) {
|
|
22159
22184
|
const tmp = `${LISTENER_RESULT_PATH}.${process.pid}.tmp`;
|
|
22160
|
-
(0,
|
|
22161
|
-
(0,
|
|
22185
|
+
(0, import_node_fs123.writeFileSync)(tmp, JSON.stringify(payload));
|
|
22186
|
+
(0, import_node_fs123.renameSync)(tmp, LISTENER_RESULT_PATH);
|
|
22162
22187
|
}
|
|
22163
22188
|
function throwPublished(payload) {
|
|
22164
22189
|
throw Object.assign(new Error(payload.message || "listener scan failed"), {
|
|
@@ -22201,7 +22226,7 @@ async function withListenerLock(key, body) {
|
|
|
22201
22226
|
for (; ; ) {
|
|
22202
22227
|
let fd = null;
|
|
22203
22228
|
try {
|
|
22204
|
-
fd = (0,
|
|
22229
|
+
fd = (0, import_node_fs123.openSync)(LISTENER_LOCK_PATH, "wx");
|
|
22205
22230
|
} catch (error) {
|
|
22206
22231
|
const code = error instanceof Error && "code" in error ? error.code : "";
|
|
22207
22232
|
if (code !== "EEXIST") throw error;
|
|
@@ -22210,7 +22235,7 @@ async function withListenerLock(key, body) {
|
|
|
22210
22235
|
if (owner) clearLock(owner.raw);
|
|
22211
22236
|
else {
|
|
22212
22237
|
try {
|
|
22213
|
-
(0,
|
|
22238
|
+
(0, import_node_fs123.unlinkSync)(LISTENER_LOCK_PATH);
|
|
22214
22239
|
} catch {
|
|
22215
22240
|
}
|
|
22216
22241
|
}
|
|
@@ -22226,7 +22251,7 @@ async function withListenerLock(key, body) {
|
|
|
22226
22251
|
}
|
|
22227
22252
|
if (fd === null) continue;
|
|
22228
22253
|
try {
|
|
22229
|
-
(0,
|
|
22254
|
+
(0, import_node_fs123.writeSync)(fd, token);
|
|
22230
22255
|
try {
|
|
22231
22256
|
const value = await body();
|
|
22232
22257
|
publishResult({ token, key, ok: true, value });
|
|
@@ -22243,7 +22268,7 @@ async function withListenerLock(key, body) {
|
|
|
22243
22268
|
}
|
|
22244
22269
|
} finally {
|
|
22245
22270
|
try {
|
|
22246
|
-
(0,
|
|
22271
|
+
(0, import_node_fs123.closeSync)(fd);
|
|
22247
22272
|
} catch {
|
|
22248
22273
|
}
|
|
22249
22274
|
clearLock(token);
|
|
@@ -22525,7 +22550,7 @@ function resolveProcessCwd(pid) {
|
|
|
22525
22550
|
kickCwdFlush();
|
|
22526
22551
|
});
|
|
22527
22552
|
}
|
|
22528
|
-
var import_child_process, import_promises14, import_http, import_net,
|
|
22553
|
+
var import_child_process, import_promises14, import_http, import_net, import_node_fs123, import_node_os28, import_node_path128, LISTENER_LOCK_PATH, LISTENER_RESULT_PATH, LISTENER_LOCK_STALE_MS, LISTENER_LOCK_WAIT_MS, FALLBACK_PORTS, LISTING_TIMEOUT_MS, LISTENER_CACHE_MS, listenerCache, inflightListing, listenerHolds, cwdByPid, cwdQueue, cwdFlushing;
|
|
22529
22554
|
var init_dev_server_scanner = __esm({
|
|
22530
22555
|
"scripts/dev-server-scanner.ts"() {
|
|
22531
22556
|
"use strict";
|
|
@@ -22533,9 +22558,9 @@ var init_dev_server_scanner = __esm({
|
|
|
22533
22558
|
import_promises14 = require("fs/promises");
|
|
22534
22559
|
import_http = __toESM(require("http"), 1);
|
|
22535
22560
|
import_net = __toESM(require("net"), 1);
|
|
22536
|
-
|
|
22537
|
-
|
|
22538
|
-
|
|
22561
|
+
import_node_fs123 = require("node:fs");
|
|
22562
|
+
import_node_os28 = require("node:os");
|
|
22563
|
+
import_node_path128 = require("node:path");
|
|
22539
22564
|
init_kotlinDiscoveryContract();
|
|
22540
22565
|
init_swiftDiscoveryContract();
|
|
22541
22566
|
init_backend_origin();
|
|
@@ -22545,8 +22570,8 @@ var init_dev_server_scanner = __esm({
|
|
|
22545
22570
|
init_native_dev_bundle_url();
|
|
22546
22571
|
init_settings_bundle();
|
|
22547
22572
|
init_optional_demo_registry();
|
|
22548
|
-
LISTENER_LOCK_PATH = (0,
|
|
22549
|
-
LISTENER_RESULT_PATH = (0,
|
|
22573
|
+
LISTENER_LOCK_PATH = (0, import_node_path128.join)((0, import_node_os28.tmpdir)(), "peach-listener-scan.lock");
|
|
22574
|
+
LISTENER_RESULT_PATH = (0, import_node_path128.join)((0, import_node_os28.tmpdir)(), "peach-listener-scan.result");
|
|
22550
22575
|
LISTENER_LOCK_STALE_MS = 25e3;
|
|
22551
22576
|
LISTENER_LOCK_WAIT_MS = 8e3;
|
|
22552
22577
|
FALLBACK_PORTS = [
|
|
@@ -22675,12 +22700,12 @@ function cliCompanionPath() {
|
|
|
22675
22700
|
return `node/cli-${runtime_companion_default.sha256}.cjs`;
|
|
22676
22701
|
}
|
|
22677
22702
|
function verifyCliCompanion(root) {
|
|
22678
|
-
verifyCompanionFile((0,
|
|
22703
|
+
verifyCompanionFile((0, import_node_path129.join)(root, cliCompanionPath()));
|
|
22679
22704
|
}
|
|
22680
22705
|
function verifyCompanionFile(file) {
|
|
22681
22706
|
let bytes;
|
|
22682
22707
|
try {
|
|
22683
|
-
bytes = (0,
|
|
22708
|
+
bytes = (0, import_node_fs124.readFileSync)(file);
|
|
22684
22709
|
} catch (error) {
|
|
22685
22710
|
if (error instanceof Error) {
|
|
22686
22711
|
const missing2 = "code" in error && error.code === "ENOENT" ? `; run \`peach runtime install\`, which fetches the companion this CLI published${process.platform === "win32" ? ", and check Windows Security protection history if it repeats" : ""}` : "";
|
|
@@ -22700,7 +22725,7 @@ function getCliRuntime() {
|
|
|
22700
22725
|
const root = peachRuntimeRoot();
|
|
22701
22726
|
verifyCliCompanion(root);
|
|
22702
22727
|
const require2 = (0, import_node_module18.createRequire)(__sootsim_import_meta_url);
|
|
22703
|
-
const runtime = require2((0,
|
|
22728
|
+
const runtime = require2((0, import_node_path129.join)(root, cliCompanionPath()));
|
|
22704
22729
|
if (runtime.cliCompanionAbi !== CLI_COMPANION_ABI) {
|
|
22705
22730
|
throw new Error(
|
|
22706
22731
|
"Incompatible Peach runtime companion ABI; run `peach runtime install`"
|
|
@@ -22710,14 +22735,14 @@ function getCliRuntime() {
|
|
|
22710
22735
|
loaded = { root, runtime };
|
|
22711
22736
|
return runtime;
|
|
22712
22737
|
}
|
|
22713
|
-
var import_node_crypto73,
|
|
22738
|
+
var import_node_crypto73, import_node_fs124, import_node_module18, import_node_path129, CLI_COMPANION_ABI, loaded;
|
|
22714
22739
|
var init_cli_runtime = __esm({
|
|
22715
22740
|
"src/cli-runtime.ts"() {
|
|
22716
22741
|
"use strict";
|
|
22717
22742
|
import_node_crypto73 = require("node:crypto");
|
|
22718
|
-
|
|
22743
|
+
import_node_fs124 = require("node:fs");
|
|
22719
22744
|
import_node_module18 = require("node:module");
|
|
22720
|
-
|
|
22745
|
+
import_node_path129 = require("node:path");
|
|
22721
22746
|
init_src();
|
|
22722
22747
|
init_runtime_companion();
|
|
22723
22748
|
init_answeredNativePackages();
|