peachsim 0.1.2472 → 0.1.2474
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/catalog/meta.ts +1 -1
- package/cli/commands/canvas.ts +14 -0
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +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 +6893 -6893
- 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 +2 -2
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/esm-chunks/{acorn-QIMLXJTI.mjs → acorn-YTSD2ERK.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-NQ4WLOZ2.mjs → chunk-3ML4ZA6O.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-I4NQBHWT.mjs → chunk-DWRXXDEJ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-BLJMIS4D.mjs → chunk-F4ILLR4V.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-4TLFZLBT.mjs → chunk-G7HCTMTL.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-KY5MCRDQ.mjs → chunk-GIJ4Z2F7.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-4YR6CPOD.mjs → chunk-GZCBZQ76.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-BERSJG2N.mjs → chunk-IS6GMMDQ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-57KHHRE4.mjs → chunk-J6P7DNES.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-MER2MOVT.mjs → chunk-LGA5H5FE.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-WLK6TCKI.mjs → chunk-LNYUHOSR.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-NOIPV2UU.mjs → chunk-NC3KLCCO.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-GJI5PS7F.mjs → chunk-OMR4UKQD.mjs} +4644 -4643
- package/dist-lib/esm-chunks/{chunk-45VKM7N5.mjs → chunk-PQ6M5ZWY.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-BQ7AFT33.mjs → chunk-Q4MVUDIZ.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-STZKGNIY.mjs → chunk-Q7ZPBH3G.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-TBT2N4IT.mjs → chunk-RES3W47Q.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-LODJ5JY3.mjs → chunk-VGCXPG5P.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-DBL2SPLB.mjs → chunk-XCDLJRXM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-ZSITGCQ4.mjs → chunk-YVMNK5H7.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-CIRUDWWA.mjs → chunk-Z2JRLIZU.mjs} +2 -2
- package/dist-lib/esm-chunks/{metro-layout-parser-3LHDZADO.mjs → metro-layout-parser-ABF5VKK3.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-3L57A5BV.mjs → swift-package-prebuilt-2X23SKII.mjs} +9 -9
- package/dist-lib/esm-chunks/{swift-sdk-app-module-IOLCLSPU.mjs → swift-sdk-app-module-YWJTB7X3.mjs} +12 -12
- package/dist-lib/esm-chunks/{swift-sdk-image-BDVQHA62.mjs → swift-sdk-image-NPGGJYCJ.mjs} +12 -12
- package/dist-lib/expo-swift-bundle.cjs +6419 -6419
- 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 +6972 -6972
- package/dist-lib/host/fetch-proxy-handler.cjs +217 -217
- 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 +185 -185
- package/dist-lib/native-app-identity-project.mjs +14 -14
- 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 +76 -76
- package/dist-lib/public-origins-lib.json +76 -76
- 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 +7 -7
- package/dist-lib/skills.cjs +3027 -3027
- package/dist-lib/swift-compile.cjs +5181 -5181
- package/dist-lib/swift-compile.mjs +9 -9
- 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 +5 -5
- 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/@xmldom/xmldom.cjs +1 -1
- package/dist-lib/vendor/acorn.cjs +1 -1
- package/dist-lib/vendor/bplist-parser.cjs +1 -1
- package/dist-lib/vendor/ignore.cjs +1 -1
- package/dist-lib/vendor/magic-string.cjs +1 -1
- package/dist-lib/vendor/plist.cjs +1 -1
- package/dist-lib/vendor/smol-toml.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/dist-types/packages/peach-engine/src/engine/remote-display-protocol.d.ts +10 -1
- package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/render-worker/text-inputContract.d.ts +5 -3
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/src/react-bridge-importers.ts +1 -0
- package/src/swift-sdk-image-map.ts +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2474 | (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;
|
|
@@ -1170,13 +1170,23 @@ var init_swift_resource_class_names = __esm({
|
|
|
1170
1170
|
}
|
|
1171
1171
|
});
|
|
1172
1172
|
|
|
1173
|
+
// src/swift-guest-linked-spans.ts
|
|
1174
|
+
var import_node_fs27, import_node_string_decoder;
|
|
1175
|
+
var init_swift_guest_linked_spans = __esm({
|
|
1176
|
+
"src/swift-guest-linked-spans.ts"() {
|
|
1177
|
+
"use strict";
|
|
1178
|
+
import_node_fs27 = require("node:fs");
|
|
1179
|
+
import_node_string_decoder = require("node:string_decoder");
|
|
1180
|
+
}
|
|
1181
|
+
});
|
|
1182
|
+
|
|
1173
1183
|
// src/swift-sdk-image-map.ts
|
|
1174
|
-
var
|
|
1184
|
+
var import_node_path27;
|
|
1175
1185
|
var init_swift_sdk_image_map = __esm({
|
|
1176
1186
|
"src/swift-sdk-image-map.ts"() {
|
|
1177
1187
|
"use strict";
|
|
1178
|
-
import_node_fs27 = require("node:fs");
|
|
1179
1188
|
import_node_path27 = require("node:path");
|
|
1189
|
+
init_swift_guest_linked_spans();
|
|
1180
1190
|
}
|
|
1181
1191
|
});
|
|
1182
1192
|
|
|
@@ -1417,16 +1427,6 @@ var init_swift_guest_image_ledger = __esm({
|
|
|
1417
1427
|
}
|
|
1418
1428
|
});
|
|
1419
1429
|
|
|
1420
|
-
// src/swift-guest-linked-spans.ts
|
|
1421
|
-
var import_node_fs30, import_node_string_decoder;
|
|
1422
|
-
var init_swift_guest_linked_spans = __esm({
|
|
1423
|
-
"src/swift-guest-linked-spans.ts"() {
|
|
1424
|
-
"use strict";
|
|
1425
|
-
import_node_fs30 = require("node:fs");
|
|
1426
|
-
import_node_string_decoder = require("node:string_decoder");
|
|
1427
|
-
}
|
|
1428
|
-
});
|
|
1429
|
-
|
|
1430
1430
|
// src/wasm-binary-sections.ts
|
|
1431
1431
|
var init_wasm_binary_sections = __esm({
|
|
1432
1432
|
"src/wasm-binary-sections.ts"() {
|
|
@@ -1466,12 +1466,12 @@ var init_swift_guest_link_plan = __esm({
|
|
|
1466
1466
|
});
|
|
1467
1467
|
|
|
1468
1468
|
// src/swift-guest-manifest.ts
|
|
1469
|
-
var import_node_crypto19,
|
|
1469
|
+
var import_node_crypto19, import_node_fs30;
|
|
1470
1470
|
var init_swift_guest_manifest = __esm({
|
|
1471
1471
|
"src/swift-guest-manifest.ts"() {
|
|
1472
1472
|
"use strict";
|
|
1473
1473
|
import_node_crypto19 = require("node:crypto");
|
|
1474
|
-
|
|
1474
|
+
import_node_fs30 = require("node:fs");
|
|
1475
1475
|
init_swift_guest_link_plan();
|
|
1476
1476
|
init_swift_wasm_prune();
|
|
1477
1477
|
init_swiftTargetContract();
|
|
@@ -1539,12 +1539,12 @@ var init_swift_runtime_products = __esm({
|
|
|
1539
1539
|
});
|
|
1540
1540
|
|
|
1541
1541
|
// src/swift-guest-runtime-plan.ts
|
|
1542
|
-
var import_node_crypto21,
|
|
1542
|
+
var import_node_crypto21, import_node_fs31, import_node_path30, v5;
|
|
1543
1543
|
var init_swift_guest_runtime_plan = __esm({
|
|
1544
1544
|
"src/swift-guest-runtime-plan.ts"() {
|
|
1545
1545
|
"use strict";
|
|
1546
1546
|
import_node_crypto21 = require("node:crypto");
|
|
1547
|
-
|
|
1547
|
+
import_node_fs31 = require("node:fs");
|
|
1548
1548
|
import_node_path30 = __toESM(require("node:path"), 1);
|
|
1549
1549
|
v5 = __toESM(require("peachsim/vendor/valibot"), 1);
|
|
1550
1550
|
init_swift_guest_source_plan();
|
|
@@ -1606,12 +1606,12 @@ var init_wasm_features = __esm({
|
|
|
1606
1606
|
});
|
|
1607
1607
|
|
|
1608
1608
|
// src/wasm-optimize.ts
|
|
1609
|
-
var import_node_child_process15,
|
|
1609
|
+
var import_node_child_process15, import_node_fs32, import_node_path31, import_node_util2, FEATURES, KEEP_WASM_NAMES, LOWERING, BINARYEN_VERSION, runBinaryen, WASM_LOWER_IDENTITY, BINARYEN_RELEASES;
|
|
1610
1610
|
var init_wasm_optimize = __esm({
|
|
1611
1611
|
"src/wasm-optimize.ts"() {
|
|
1612
1612
|
"use strict";
|
|
1613
1613
|
import_node_child_process15 = require("node:child_process");
|
|
1614
|
-
|
|
1614
|
+
import_node_fs32 = require("node:fs");
|
|
1615
1615
|
import_node_path31 = require("node:path");
|
|
1616
1616
|
import_node_util2 = require("node:util");
|
|
1617
1617
|
init_src();
|
|
@@ -1632,12 +1632,12 @@ var init_wasm_optimize = __esm({
|
|
|
1632
1632
|
});
|
|
1633
1633
|
|
|
1634
1634
|
// src/swift-guest-link.ts
|
|
1635
|
-
var import_node_child_process16,
|
|
1635
|
+
var import_node_child_process16, import_node_fs33, import_node_path32;
|
|
1636
1636
|
var init_swift_guest_link = __esm({
|
|
1637
1637
|
"src/swift-guest-link.ts"() {
|
|
1638
1638
|
"use strict";
|
|
1639
1639
|
import_node_child_process16 = require("node:child_process");
|
|
1640
|
-
|
|
1640
|
+
import_node_fs33 = __toESM(require("node:fs"), 1);
|
|
1641
1641
|
import_node_path32 = __toESM(require("node:path"), 1);
|
|
1642
1642
|
init_swift_guest_archive();
|
|
1643
1643
|
init_swift_guest_dyld_functions();
|
|
@@ -1663,13 +1663,13 @@ var init_forked_script_contract = __esm({
|
|
|
1663
1663
|
});
|
|
1664
1664
|
|
|
1665
1665
|
// src/swift-guest-source-inputs.ts
|
|
1666
|
-
var import_node_child_process17, import_node_crypto22,
|
|
1666
|
+
var import_node_child_process17, import_node_crypto22, import_node_fs34, import_node_path33;
|
|
1667
1667
|
var init_swift_guest_source_inputs = __esm({
|
|
1668
1668
|
"src/swift-guest-source-inputs.ts"() {
|
|
1669
1669
|
"use strict";
|
|
1670
1670
|
import_node_child_process17 = require("node:child_process");
|
|
1671
1671
|
import_node_crypto22 = require("node:crypto");
|
|
1672
|
-
|
|
1672
|
+
import_node_fs34 = require("node:fs");
|
|
1673
1673
|
import_node_path33 = __toESM(require("node:path"), 1);
|
|
1674
1674
|
init_forked_script_contract();
|
|
1675
1675
|
init_swift_guest_source_plan();
|
|
@@ -1678,23 +1678,23 @@ var init_swift_guest_source_inputs = __esm({
|
|
|
1678
1678
|
});
|
|
1679
1679
|
|
|
1680
1680
|
// src/swift-project-user.ts
|
|
1681
|
-
var import_node_child_process18,
|
|
1681
|
+
var import_node_child_process18, import_node_fs35, import_node_path34;
|
|
1682
1682
|
var init_swift_project_user = __esm({
|
|
1683
1683
|
"src/swift-project-user.ts"() {
|
|
1684
1684
|
"use strict";
|
|
1685
1685
|
import_node_child_process18 = require("node:child_process");
|
|
1686
|
-
|
|
1686
|
+
import_node_fs35 = require("node:fs");
|
|
1687
1687
|
import_node_path34 = __toESM(require("node:path"), 1);
|
|
1688
1688
|
}
|
|
1689
1689
|
});
|
|
1690
1690
|
|
|
1691
1691
|
// src/swift-sdk-guest-lookups.ts
|
|
1692
|
-
var import_node_crypto23,
|
|
1692
|
+
var import_node_crypto23, import_node_fs36, import_node_path35;
|
|
1693
1693
|
var init_swift_sdk_guest_lookups = __esm({
|
|
1694
1694
|
"src/swift-sdk-guest-lookups.ts"() {
|
|
1695
1695
|
"use strict";
|
|
1696
1696
|
import_node_crypto23 = require("node:crypto");
|
|
1697
|
-
|
|
1697
|
+
import_node_fs36 = require("node:fs");
|
|
1698
1698
|
import_node_path35 = __toESM(require("node:path"), 1);
|
|
1699
1699
|
init_swift_guest_image_ledger();
|
|
1700
1700
|
init_swift_guest_runtime_plan();
|
|
@@ -1705,12 +1705,12 @@ var init_swift_sdk_guest_lookups = __esm({
|
|
|
1705
1705
|
});
|
|
1706
1706
|
|
|
1707
1707
|
// src/swift-guest-compile.ts
|
|
1708
|
-
var import_node_child_process19,
|
|
1708
|
+
var import_node_child_process19, import_node_fs37, import_node_path36;
|
|
1709
1709
|
var init_swift_guest_compile = __esm({
|
|
1710
1710
|
"src/swift-guest-compile.ts"() {
|
|
1711
1711
|
"use strict";
|
|
1712
1712
|
import_node_child_process19 = require("node:child_process");
|
|
1713
|
-
|
|
1713
|
+
import_node_fs37 = require("node:fs");
|
|
1714
1714
|
import_node_path36 = __toESM(require("node:path"), 1);
|
|
1715
1715
|
init_swift_guest_archive();
|
|
1716
1716
|
init_swift_guest_dyld_functions();
|
|
@@ -1731,12 +1731,12 @@ var init_swift_guest_compile = __esm({
|
|
|
1731
1731
|
});
|
|
1732
1732
|
|
|
1733
1733
|
// src/swift-header-compiler.ts
|
|
1734
|
-
var import_node_crypto24,
|
|
1734
|
+
var import_node_crypto24, import_node_fs38, import_node_http, import_node_path37;
|
|
1735
1735
|
var init_swift_header_compiler = __esm({
|
|
1736
1736
|
"src/swift-header-compiler.ts"() {
|
|
1737
1737
|
"use strict";
|
|
1738
1738
|
import_node_crypto24 = require("node:crypto");
|
|
1739
|
-
|
|
1739
|
+
import_node_fs38 = require("node:fs");
|
|
1740
1740
|
import_node_http = require("node:http");
|
|
1741
1741
|
import_node_path37 = __toESM(require("node:path"), 1);
|
|
1742
1742
|
init_forked_script_contract();
|
|
@@ -1776,13 +1776,13 @@ var init_icuData = __esm({
|
|
|
1776
1776
|
});
|
|
1777
1777
|
|
|
1778
1778
|
// src/swift-icu.ts
|
|
1779
|
-
var import_node_child_process20, import_node_crypto25,
|
|
1779
|
+
var import_node_child_process20, import_node_crypto25, import_node_fs39, import_promises5, import_node_os8, import_node_path39, import_node_util3, import_node_zlib4, run, deflate, compressBrotli, inflateGzip;
|
|
1780
1780
|
var init_swift_icu = __esm({
|
|
1781
1781
|
"src/swift-icu.ts"() {
|
|
1782
1782
|
"use strict";
|
|
1783
1783
|
import_node_child_process20 = require("node:child_process");
|
|
1784
1784
|
import_node_crypto25 = require("node:crypto");
|
|
1785
|
-
|
|
1785
|
+
import_node_fs39 = require("node:fs");
|
|
1786
1786
|
import_promises5 = require("node:fs/promises");
|
|
1787
1787
|
import_node_os8 = __toESM(require("node:os"), 1);
|
|
1788
1788
|
import_node_path39 = __toESM(require("node:path"), 1);
|
|
@@ -1844,12 +1844,12 @@ var init_standalone = __esm({
|
|
|
1844
1844
|
});
|
|
1845
1845
|
|
|
1846
1846
|
// cli/self-invocation.ts
|
|
1847
|
-
var import_node_child_process21,
|
|
1847
|
+
var import_node_child_process21, import_node_fs40, import_node_path40, import_node_url2;
|
|
1848
1848
|
var init_self_invocation = __esm({
|
|
1849
1849
|
"cli/self-invocation.ts"() {
|
|
1850
1850
|
"use strict";
|
|
1851
1851
|
import_node_child_process21 = require("node:child_process");
|
|
1852
|
-
|
|
1852
|
+
import_node_fs40 = require("node:fs");
|
|
1853
1853
|
import_node_path40 = require("node:path");
|
|
1854
1854
|
import_node_url2 = require("node:url");
|
|
1855
1855
|
init_public_brand();
|
|
@@ -1858,13 +1858,13 @@ var init_self_invocation = __esm({
|
|
|
1858
1858
|
});
|
|
1859
1859
|
|
|
1860
1860
|
// src/native-prebuilt.ts
|
|
1861
|
-
var import_node_child_process22, import_node_crypto26,
|
|
1861
|
+
var import_node_child_process22, import_node_crypto26, import_node_fs41, import_node_path41;
|
|
1862
1862
|
var init_native_prebuilt = __esm({
|
|
1863
1863
|
"src/native-prebuilt.ts"() {
|
|
1864
1864
|
"use strict";
|
|
1865
1865
|
import_node_child_process22 = require("node:child_process");
|
|
1866
1866
|
import_node_crypto26 = require("node:crypto");
|
|
1867
|
-
|
|
1867
|
+
import_node_fs41 = __toESM(require("node:fs"), 1);
|
|
1868
1868
|
import_node_path41 = __toESM(require("node:path"), 1);
|
|
1869
1869
|
init_home_paths();
|
|
1870
1870
|
init_is_record();
|
|
@@ -1879,13 +1879,13 @@ var init_swift_objc_prebuilt_catalog = __esm({
|
|
|
1879
1879
|
});
|
|
1880
1880
|
|
|
1881
1881
|
// src/swift-objc-prebuilt.ts
|
|
1882
|
-
var import_node_child_process23, import_node_crypto27,
|
|
1882
|
+
var import_node_child_process23, import_node_crypto27, import_node_fs42, import_node_path42;
|
|
1883
1883
|
var init_swift_objc_prebuilt = __esm({
|
|
1884
1884
|
"src/swift-objc-prebuilt.ts"() {
|
|
1885
1885
|
"use strict";
|
|
1886
1886
|
import_node_child_process23 = require("node:child_process");
|
|
1887
1887
|
import_node_crypto27 = require("node:crypto");
|
|
1888
|
-
|
|
1888
|
+
import_node_fs42 = __toESM(require("node:fs"), 1);
|
|
1889
1889
|
import_node_path42 = __toESM(require("node:path"), 1);
|
|
1890
1890
|
init_internal_child_contract();
|
|
1891
1891
|
init_self_invocation();
|
|
@@ -1896,23 +1896,23 @@ var init_swift_objc_prebuilt = __esm({
|
|
|
1896
1896
|
});
|
|
1897
1897
|
|
|
1898
1898
|
// src/swift-reproducible.ts
|
|
1899
|
-
var
|
|
1899
|
+
var import_node_fs43, import_node_os9;
|
|
1900
1900
|
var init_swift_reproducible = __esm({
|
|
1901
1901
|
"src/swift-reproducible.ts"() {
|
|
1902
1902
|
"use strict";
|
|
1903
|
-
|
|
1903
|
+
import_node_fs43 = require("node:fs");
|
|
1904
1904
|
import_node_os9 = __toESM(require("node:os"), 1);
|
|
1905
1905
|
}
|
|
1906
1906
|
});
|
|
1907
1907
|
|
|
1908
1908
|
// src/swift-root-lock.ts
|
|
1909
|
-
var import_node_child_process24, import_node_crypto28,
|
|
1909
|
+
var import_node_child_process24, import_node_crypto28, import_node_fs44, import_node_os10, import_node_path43;
|
|
1910
1910
|
var init_swift_root_lock = __esm({
|
|
1911
1911
|
"src/swift-root-lock.ts"() {
|
|
1912
1912
|
"use strict";
|
|
1913
1913
|
import_node_child_process24 = require("node:child_process");
|
|
1914
1914
|
import_node_crypto28 = require("node:crypto");
|
|
1915
|
-
|
|
1915
|
+
import_node_fs44 = require("node:fs");
|
|
1916
1916
|
import_node_os10 = require("node:os");
|
|
1917
1917
|
import_node_path43 = __toESM(require("node:path"), 1);
|
|
1918
1918
|
init_process_group();
|
|
@@ -1934,11 +1934,11 @@ var init_swift_uniform_type_constants = __esm({
|
|
|
1934
1934
|
});
|
|
1935
1935
|
|
|
1936
1936
|
// src/xcode-header-search.ts
|
|
1937
|
-
var
|
|
1937
|
+
var import_node_fs45, import_node_path45;
|
|
1938
1938
|
var init_xcode_header_search = __esm({
|
|
1939
1939
|
"src/xcode-header-search.ts"() {
|
|
1940
1940
|
"use strict";
|
|
1941
|
-
|
|
1941
|
+
import_node_fs45 = __toESM(require("node:fs"), 1);
|
|
1942
1942
|
import_node_path45 = __toESM(require("node:path"), 1);
|
|
1943
1943
|
init_case_insensitive_header_overlay();
|
|
1944
1944
|
init_write_build_file();
|
|
@@ -1946,13 +1946,13 @@ var init_xcode_header_search = __esm({
|
|
|
1946
1946
|
});
|
|
1947
1947
|
|
|
1948
1948
|
// src/swift-compile.ts
|
|
1949
|
-
var import_node_child_process26, import_node_crypto29,
|
|
1949
|
+
var import_node_child_process26, import_node_crypto29, import_node_fs46, import_node_os11, import_node_path46, v6, OPTIONAL_FRAMEWORK_DEPENDENCIES, OPTIONAL_FRAMEWORKS, NON_IOS_MODULES, compilerSourceDigest, NOT_ON_IOS, C_WORDS, CODE_MASK_CACHE_CHARS, CORE_FOUNDATION_HANDLE_IMPORTS, emptyMacroEnvironment, wasmMacroEnvironment, ROOT_LOCKS, host, rootLocks, SHARED_ARTIFACT_BUDGET_BYTES;
|
|
1950
1950
|
var init_swift_compile = __esm({
|
|
1951
1951
|
"src/swift-compile.ts"() {
|
|
1952
1952
|
"use strict";
|
|
1953
1953
|
import_node_child_process26 = require("node:child_process");
|
|
1954
1954
|
import_node_crypto29 = require("node:crypto");
|
|
1955
|
-
|
|
1955
|
+
import_node_fs46 = require("node:fs");
|
|
1956
1956
|
import_node_os11 = __toESM(require("node:os"), 1);
|
|
1957
1957
|
import_node_path46 = __toESM(require("node:path"), 1);
|
|
1958
1958
|
v6 = __toESM(require("peachsim/vendor/valibot"), 1);
|
|
@@ -2060,7 +2060,7 @@ var init_swift_compile = __esm({
|
|
|
2060
2060
|
};
|
|
2061
2061
|
OPTIONAL_FRAMEWORKS = new Set(Object.keys(OPTIONAL_FRAMEWORK_DEPENDENCIES));
|
|
2062
2062
|
NON_IOS_MODULES = /* @__PURE__ */ new Set(["FoundationNetworking", "WASILibc"]);
|
|
2063
|
-
compilerSourceDigest = true ? "
|
|
2063
|
+
compilerSourceDigest = true ? "19f61a1f860d64dedbb29d4a4add8984273245db278e584e315849aeb2e63581" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
2064
2064
|
NOT_ON_IOS = new RegExp(
|
|
2065
2065
|
`\\b(?:os\\(\\s*WASI\\s*\\)|canImport\\(\\s*(?:${[...NON_IOS_MODULES].join("|")})\\s*\\))`,
|
|
2066
2066
|
"g"
|
|
@@ -2111,11 +2111,11 @@ var init_swift_compile = __esm({
|
|
|
2111
2111
|
});
|
|
2112
2112
|
|
|
2113
2113
|
// src/swift-distribution.ts
|
|
2114
|
-
var
|
|
2114
|
+
var import_node_fs47, import_node_os12, import_node_path47;
|
|
2115
2115
|
var init_swift_distribution = __esm({
|
|
2116
2116
|
"src/swift-distribution.ts"() {
|
|
2117
2117
|
"use strict";
|
|
2118
|
-
|
|
2118
|
+
import_node_fs47 = __toESM(require("node:fs"), 1);
|
|
2119
2119
|
import_node_os12 = __toESM(require("node:os"), 1);
|
|
2120
2120
|
import_node_path47 = __toESM(require("node:path"), 1);
|
|
2121
2121
|
init_src();
|
|
@@ -3250,7 +3250,7 @@ __export(native_app_identity_project_exports, {
|
|
|
3250
3250
|
readNativeAppIdentityFromXcodeTarget: () => readNativeAppIdentityFromXcodeTarget
|
|
3251
3251
|
});
|
|
3252
3252
|
module.exports = __toCommonJS(native_app_identity_project_exports);
|
|
3253
|
-
var
|
|
3253
|
+
var import_node_fs51 = __toESM(require("node:fs"), 1);
|
|
3254
3254
|
var import_node_module2 = require("node:module");
|
|
3255
3255
|
var import_node_path52 = __toESM(require("node:path"), 1);
|
|
3256
3256
|
|
|
@@ -4328,7 +4328,7 @@ init_swift_objc_standin();
|
|
|
4328
4328
|
// src/xcode-project.ts
|
|
4329
4329
|
var import_node_child_process28 = require("node:child_process");
|
|
4330
4330
|
var import_node_crypto33 = require("node:crypto");
|
|
4331
|
-
var
|
|
4331
|
+
var import_node_fs50 = __toESM(require("node:fs"), 1);
|
|
4332
4332
|
var import_node_module = require("node:module");
|
|
4333
4333
|
var import_node_path51 = __toESM(require("node:path"), 1);
|
|
4334
4334
|
var import_plist4 = __toESM(require("peachsim/vendor/plist"), 1);
|
|
@@ -5868,7 +5868,7 @@ init_swift_package();
|
|
|
5868
5868
|
// src/swift-package-manifest.ts
|
|
5869
5869
|
var import_node_child_process27 = require("node:child_process");
|
|
5870
5870
|
var import_node_crypto30 = require("node:crypto");
|
|
5871
|
-
var
|
|
5871
|
+
var import_node_fs48 = __toESM(require("node:fs"), 1);
|
|
5872
5872
|
var import_node_os13 = __toESM(require("node:os"), 1);
|
|
5873
5873
|
var import_node_path48 = __toESM(require("node:path"), 1);
|
|
5874
5874
|
var import_node_util4 = require("node:util");
|
|
@@ -5894,7 +5894,7 @@ init_swift_toolchain();
|
|
|
5894
5894
|
|
|
5895
5895
|
// src/xcode-intents.ts
|
|
5896
5896
|
var import_node_crypto32 = require("node:crypto");
|
|
5897
|
-
var
|
|
5897
|
+
var import_node_fs49 = __toESM(require("node:fs"), 1);
|
|
5898
5898
|
var import_node_path49 = __toESM(require("node:path"), 1);
|
|
5899
5899
|
|
|
5900
5900
|
// src/intent-definition/fields.ts
|
|
@@ -7581,7 +7581,7 @@ function preparePortableIntent(definition, derivedDirectory, prefix, language, m
|
|
|
7581
7581
|
throw new Error(`${definition}: invalid intent code generation language ${language}`);
|
|
7582
7582
|
if (prefix) identifier(prefix);
|
|
7583
7583
|
if (module2) identifier(module2);
|
|
7584
|
-
const source =
|
|
7584
|
+
const source = import_node_fs49.default.readFileSync(definition);
|
|
7585
7585
|
const key = (0, import_node_crypto32.createHash)("sha256").update(
|
|
7586
7586
|
JSON.stringify([intentCompilerRevision, definition, prefix, language, module2])
|
|
7587
7587
|
).update("\0").update(source).digest("hex");
|
|
@@ -7591,7 +7591,7 @@ function preparePortableIntent(definition, derivedDirectory, prefix, language, m
|
|
|
7591
7591
|
const compiledRelative = import_node_path49.default.join("Resources", localization, import_node_path49.default.basename(definition));
|
|
7592
7592
|
const compiled = import_node_path49.default.join(output, compiledRelative);
|
|
7593
7593
|
const generated = import_node_path49.default.join(output, "Sources");
|
|
7594
|
-
if (
|
|
7594
|
+
if (import_node_fs49.default.existsSync(compiled) && import_node_fs49.default.existsSync(generated)) return { compiled, generated };
|
|
7595
7595
|
let metadata;
|
|
7596
7596
|
let sources;
|
|
7597
7597
|
try {
|
|
@@ -7601,25 +7601,25 @@ function preparePortableIntent(definition, derivedDirectory, prefix, language, m
|
|
|
7601
7601
|
} catch (cause) {
|
|
7602
7602
|
throw new Error(`could not compile intent definition ${definition}`, { cause });
|
|
7603
7603
|
}
|
|
7604
|
-
|
|
7605
|
-
const stage =
|
|
7604
|
+
import_node_fs49.default.mkdirSync(cache, { recursive: true });
|
|
7605
|
+
const stage = import_node_fs49.default.mkdtempSync(import_node_path49.default.join(cache, ".compile-"));
|
|
7606
7606
|
try {
|
|
7607
7607
|
const sourceDirectory = import_node_path49.default.join(stage, "Sources");
|
|
7608
7608
|
const resource = import_node_path49.default.join(stage, compiledRelative);
|
|
7609
|
-
|
|
7610
|
-
|
|
7611
|
-
|
|
7609
|
+
import_node_fs49.default.mkdirSync(sourceDirectory);
|
|
7610
|
+
import_node_fs49.default.mkdirSync(import_node_path49.default.dirname(resource), { recursive: true });
|
|
7611
|
+
import_node_fs49.default.writeFileSync(resource, metadata);
|
|
7612
7612
|
for (const [file, contents] of sources)
|
|
7613
|
-
|
|
7613
|
+
import_node_fs49.default.writeFileSync(import_node_path49.default.join(sourceDirectory, file), contents);
|
|
7614
7614
|
try {
|
|
7615
|
-
|
|
7615
|
+
import_node_fs49.default.renameSync(stage, output);
|
|
7616
7616
|
} catch (error) {
|
|
7617
|
-
if (!isRecord(error) || error.code !== "EEXIST" && error.code !== "ENOTEMPTY" || !
|
|
7617
|
+
if (!isRecord(error) || error.code !== "EEXIST" && error.code !== "ENOTEMPTY" || !import_node_fs49.default.existsSync(compiled) || !import_node_fs49.default.existsSync(generated))
|
|
7618
7618
|
throw error;
|
|
7619
7619
|
}
|
|
7620
7620
|
return { compiled, generated };
|
|
7621
7621
|
} finally {
|
|
7622
|
-
|
|
7622
|
+
import_node_fs49.default.rmSync(stage, { recursive: true, force: true });
|
|
7623
7623
|
}
|
|
7624
7624
|
}
|
|
7625
7625
|
|
|
@@ -8115,9 +8115,9 @@ var CONDITIONS = {
|
|
|
8115
8115
|
variant: "normal"
|
|
8116
8116
|
};
|
|
8117
8117
|
function walkFiles(dir) {
|
|
8118
|
-
if (!
|
|
8118
|
+
if (!import_node_fs50.default.existsSync(dir)) return [];
|
|
8119
8119
|
const out = [];
|
|
8120
|
-
for (const entry of
|
|
8120
|
+
for (const entry of import_node_fs50.default.readdirSync(dir, { withFileTypes: true }).sort((left, right) => left.name.localeCompare(right.name))) {
|
|
8121
8121
|
if (entry.name.startsWith(".")) continue;
|
|
8122
8122
|
const full = import_node_path51.default.join(dir, entry.name);
|
|
8123
8123
|
if (entry.isDirectory()) out.push(...walkFiles(full));
|
|
@@ -8125,12 +8125,12 @@ function walkFiles(dir) {
|
|
|
8125
8125
|
}
|
|
8126
8126
|
return out;
|
|
8127
8127
|
}
|
|
8128
|
-
var isDirectory = (dir) =>
|
|
8128
|
+
var isDirectory = (dir) => import_node_fs50.default.existsSync(dir) && import_node_fs50.default.statSync(dir).isDirectory();
|
|
8129
8129
|
function readXcconfig(file, read) {
|
|
8130
|
-
if (read.includes(file) || !
|
|
8130
|
+
if (read.includes(file) || !import_node_fs50.default.existsSync(file)) return {};
|
|
8131
8131
|
read.push(file);
|
|
8132
8132
|
const settings = {};
|
|
8133
|
-
for (const raw of
|
|
8133
|
+
for (const raw of import_node_fs50.default.readFileSync(file, "utf8").split("\n")) {
|
|
8134
8134
|
const line = raw.replace(/\/\/.*$/, "").trim();
|
|
8135
8135
|
const include = /^#include\??\s+"([^"]+)"/.exec(line);
|
|
8136
8136
|
if (include) {
|
|
@@ -8192,7 +8192,7 @@ function decodeXml(text3) {
|
|
|
8192
8192
|
}
|
|
8193
8193
|
function workspaceReferences(workspace) {
|
|
8194
8194
|
const data = import_node_path51.default.join(workspace, "contents.xcworkspacedata");
|
|
8195
|
-
if (!
|
|
8195
|
+
if (!import_node_fs50.default.existsSync(data))
|
|
8196
8196
|
throw new Error(`${workspace} has no contents.xcworkspacedata`);
|
|
8197
8197
|
const container = import_node_path51.default.dirname(workspace);
|
|
8198
8198
|
const locate = (location, base) => {
|
|
@@ -8206,7 +8206,7 @@ function workspaceReferences(workspace) {
|
|
|
8206
8206
|
};
|
|
8207
8207
|
const groups = [container];
|
|
8208
8208
|
const references = [];
|
|
8209
|
-
for (const [, closing, tag, attributes, selfClosing] of
|
|
8209
|
+
for (const [, closing, tag, attributes, selfClosing] of import_node_fs50.default.readFileSync(data, "utf8").matchAll(/<(\/?)(Group|FileRef)\b([^>]*?)(\/?)>/g)) {
|
|
8210
8210
|
if (closing) {
|
|
8211
8211
|
if (tag === "Group") groups.pop();
|
|
8212
8212
|
continue;
|
|
@@ -8258,7 +8258,7 @@ var loaded = /* @__PURE__ */ new Map();
|
|
|
8258
8258
|
function xcodeProjectFile(xcodeproj) {
|
|
8259
8259
|
for (const name2 of ["project.pbxproj", "project.xcproj"]) {
|
|
8260
8260
|
const file = import_node_path51.default.join(xcodeproj, name2);
|
|
8261
|
-
if (
|
|
8261
|
+
if (import_node_fs50.default.existsSync(file)) return file;
|
|
8262
8262
|
}
|
|
8263
8263
|
return null;
|
|
8264
8264
|
}
|
|
@@ -8266,7 +8266,7 @@ function loadProject(xcodeproj) {
|
|
|
8266
8266
|
const projectFile = xcodeProjectFile(xcodeproj);
|
|
8267
8267
|
if (!projectFile)
|
|
8268
8268
|
throw new Error(`${xcodeproj} has no project.pbxproj or project.xcproj`);
|
|
8269
|
-
const source =
|
|
8269
|
+
const source = import_node_fs50.default.readFileSync(projectFile, "utf8");
|
|
8270
8270
|
const digest = (0, import_node_crypto33.createHash)("sha256").update(source).digest("hex");
|
|
8271
8271
|
const cached = loaded.get(projectFile);
|
|
8272
8272
|
if (cached?.digest === digest) return cached.project;
|
|
@@ -8283,7 +8283,7 @@ function loadProject(xcodeproj) {
|
|
|
8283
8283
|
if (!project || project.isa !== "PBXProject") {
|
|
8284
8284
|
throw new Error(`${projectFile} has no PBXProject root`);
|
|
8285
8285
|
}
|
|
8286
|
-
const projectDir =
|
|
8286
|
+
const projectDir = import_node_fs50.default.realpathSync.native(
|
|
8287
8287
|
import_node_path51.default.resolve(import_node_path51.default.dirname(xcodeproj), str(project.projectDirPath) ?? "")
|
|
8288
8288
|
);
|
|
8289
8289
|
const resolvePath = xcodePathResolver(objects, projectDir, import_node_path51.default.join);
|
|
@@ -8331,7 +8331,7 @@ function expandValue(value, settings) {
|
|
|
8331
8331
|
return value;
|
|
8332
8332
|
}
|
|
8333
8333
|
function processedInfoPlist(name2, file, settings, settingKeys) {
|
|
8334
|
-
const source = file ? import_plist4.default.parse(
|
|
8334
|
+
const source = file ? import_plist4.default.parse(import_node_fs50.default.readFileSync(file, "utf8")) : {};
|
|
8335
8335
|
if (!source || typeof source !== "object" || Array.isArray(source) || source instanceof Date || Buffer.isBuffer(source))
|
|
8336
8336
|
throw new Error(`${name2} Info.plist must contain a dictionary`);
|
|
8337
8337
|
const info = {};
|
|
@@ -8372,7 +8372,7 @@ function targetSettings(ref, configuration, builtins, options2 = {}, overrides =
|
|
|
8372
8372
|
const own = isDict(config.buildSettings) ? config.buildSettings : {};
|
|
8373
8373
|
const directory = anchor ? project.resolvePath(anchor) : null;
|
|
8374
8374
|
const baseFile = base ? project.resolvePath(base) : directory && relative2 ? import_node_path51.default.resolve(directory, relative2) : null;
|
|
8375
|
-
if (options2.requireSources !== false && (base || anchor || relative2) && (!baseFile || !
|
|
8375
|
+
if (options2.requireSources !== false && (base || anchor || relative2) && (!baseFile || !import_node_fs50.default.existsSync(baseFile)))
|
|
8376
8376
|
throw new Error(
|
|
8377
8377
|
`Unable to open base configuration reference file '${baseFile ?? base ?? relative2 ?? anchor}'`
|
|
8378
8378
|
);
|
|
@@ -8467,8 +8467,8 @@ function hostMacroPluginFlags(flags) {
|
|
|
8467
8467
|
if (separator < 0) return flag;
|
|
8468
8468
|
const root = import_node_path51.default.dirname(import_node_path51.default.dirname(flag.slice(0, separator)));
|
|
8469
8469
|
const manifest = import_node_path51.default.join(root, "package.json");
|
|
8470
|
-
if (!
|
|
8471
|
-
const pkg = JSON.parse(
|
|
8470
|
+
if (!import_node_fs50.default.existsSync(manifest)) return flag;
|
|
8471
|
+
const pkg = JSON.parse(import_node_fs50.default.readFileSync(manifest, "utf8"));
|
|
8472
8472
|
if (!isRecord(pkg) || pkg.name !== "expo-modules-macros") return flag;
|
|
8473
8473
|
const macros = (0, import_node_module.createRequire)(manifest)(root);
|
|
8474
8474
|
if (!isRecord(macros) || typeof macros.getScannerBinaryPath !== "function")
|
|
@@ -8494,14 +8494,14 @@ function expandSearchPath(directory, rules2) {
|
|
|
8494
8494
|
const current = queue[at];
|
|
8495
8495
|
let real;
|
|
8496
8496
|
try {
|
|
8497
|
-
real =
|
|
8497
|
+
real = import_node_fs50.default.realpathSync.native(current);
|
|
8498
8498
|
} catch {
|
|
8499
8499
|
continue;
|
|
8500
8500
|
}
|
|
8501
|
-
if (!
|
|
8501
|
+
if (!import_node_fs50.default.statSync(real).isDirectory() || seen.has(real)) continue;
|
|
8502
8502
|
seen.add(real);
|
|
8503
8503
|
expanded.push(current);
|
|
8504
|
-
for (const entry of
|
|
8504
|
+
for (const entry of import_node_fs50.default.readdirSync(real, { withFileTypes: true }).sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0)) {
|
|
8505
8505
|
if (entry.isSymbolicLink() ? !rules2.followLinks : !entry.isDirectory()) continue;
|
|
8506
8506
|
if (rules2.excluded.some((pattern) => pattern.test(entry.name)) && !rules2.included.some((pattern) => pattern.test(entry.name)))
|
|
8507
8507
|
continue;
|
|
@@ -8523,10 +8523,10 @@ function searchedLinkerFlags(projectDir, settings) {
|
|
|
8523
8523
|
const library = (directory2, extension) => import_node_path51.default.join(directory2, `lib${name2}.${extension}`);
|
|
8524
8524
|
const directory = name2 ? directories.find(
|
|
8525
8525
|
(dir) => ["dylib", "tbd", "a"].some(
|
|
8526
|
-
(extension) =>
|
|
8526
|
+
(extension) => import_node_fs50.default.existsSync(library(dir, extension))
|
|
8527
8527
|
)
|
|
8528
8528
|
) : void 0;
|
|
8529
|
-
if (!directory || ["dylib", "tbd"].some((extension) =>
|
|
8529
|
+
if (!directory || ["dylib", "tbd"].some((extension) => import_node_fs50.default.existsSync(library(directory, extension)))) {
|
|
8530
8530
|
resolved.push(flag);
|
|
8531
8531
|
continue;
|
|
8532
8532
|
}
|
|
@@ -8673,7 +8673,7 @@ function shellCopies(script, settings, projectDir) {
|
|
|
8673
8673
|
return copies;
|
|
8674
8674
|
}
|
|
8675
8675
|
function fileListEntries(file, absolute) {
|
|
8676
|
-
return
|
|
8676
|
+
return import_node_fs50.default.readFileSync(file, "utf8").split(/\r?\n/).map((line) => line.trim()).filter((line) => line !== "" && !line.startsWith("#")).map(absolute);
|
|
8677
8677
|
}
|
|
8678
8678
|
function targetMembers(ref, settings, options2, settingKeys, projectInputs) {
|
|
8679
8679
|
const { project, target, id: targetId } = ref;
|
|
@@ -8711,7 +8711,7 @@ function targetMembers(ref, settings, options2, settingKeys, projectInputs) {
|
|
|
8711
8711
|
kind === "INPUT" ? phase.inputFileListPaths : phase.outputFileListPaths
|
|
8712
8712
|
).map((raw) => {
|
|
8713
8713
|
const file = absolute(raw);
|
|
8714
|
-
if (!
|
|
8714
|
+
if (!import_node_fs50.default.existsSync(file)) {
|
|
8715
8715
|
return { file, entries: [] };
|
|
8716
8716
|
}
|
|
8717
8717
|
return { file, entries: fileListEntries(file, absolute) };
|
|
@@ -8732,13 +8732,13 @@ function targetMembers(ref, settings, options2, settingKeys, projectInputs) {
|
|
|
8732
8732
|
...fileLists.get("OUTPUT").map((item) => item.file)
|
|
8733
8733
|
];
|
|
8734
8734
|
if (allOutputs.some((file) => file.endsWith(".swift") || file === infoPlistOutput)) {
|
|
8735
|
-
for (const file of inputFiles) if (
|
|
8735
|
+
for (const file of inputFiles) if (import_node_fs50.default.existsSync(file)) projectInputs.add(file);
|
|
8736
8736
|
}
|
|
8737
8737
|
if (options2.prepareGeneratedSources === true && allOutputs.some(isPreparedOutput)) {
|
|
8738
8738
|
const phaseDir = import_node_path51.default.join(settings("TARGET_TEMP_DIR"), `Script-${phaseId}`);
|
|
8739
8739
|
for (const lists of fileLists.values())
|
|
8740
8740
|
for (const { file } of lists)
|
|
8741
|
-
if (!
|
|
8741
|
+
if (!import_node_fs50.default.existsSync(file))
|
|
8742
8742
|
throw new Error(
|
|
8743
8743
|
`${targetName}: Run Script "${script}" missing file list ${file}`
|
|
8744
8744
|
);
|
|
@@ -8768,22 +8768,22 @@ function targetMembers(ref, settings, options2, settingKeys, projectInputs) {
|
|
|
8768
8768
|
);
|
|
8769
8769
|
for (const file of inputFiles) {
|
|
8770
8770
|
signature.update(file);
|
|
8771
|
-
if (
|
|
8772
|
-
const stat =
|
|
8771
|
+
if (import_node_fs50.default.existsSync(file)) {
|
|
8772
|
+
const stat = import_node_fs50.default.statSync(file);
|
|
8773
8773
|
signature.update(`${stat.mtimeMs}:${stat.ctimeMs}:${stat.size}`);
|
|
8774
8774
|
} else signature.update("missing");
|
|
8775
8775
|
}
|
|
8776
8776
|
const stamp = signature.digest("hex");
|
|
8777
8777
|
const key = `${project.projectFile}:${targetId}:${phaseId}:${settings("CONFIGURATION")}`;
|
|
8778
|
-
if (preparedSourcePhases.get(key) === stamp && allOutputs.every((file) =>
|
|
8778
|
+
if (preparedSourcePhases.get(key) === stamp && allOutputs.every((file) => import_node_fs50.default.existsSync(file)))
|
|
8779
8779
|
continue;
|
|
8780
|
-
|
|
8780
|
+
import_node_fs50.default.mkdirSync(phaseDir, { recursive: true });
|
|
8781
8781
|
if (process.platform === "linux") {
|
|
8782
8782
|
const bin = swiftToolchainBin(
|
|
8783
8783
|
privateSwiftRelease() ?? swiftNativePin().distribution.release
|
|
8784
8784
|
);
|
|
8785
8785
|
const startup = import_node_path51.default.join(phaseDir, "peach-tools.sh");
|
|
8786
|
-
|
|
8786
|
+
import_node_fs50.default.writeFileSync(
|
|
8787
8787
|
startup,
|
|
8788
8788
|
'if [[ -n "$PEACH_PHASE_BASH_ENV" ]]; then source "$PEACH_PHASE_BASH_ENV"; fi\nexport PATH="$PEACH_PHASE_TOOLCHAIN:$PATH"\n'
|
|
8789
8789
|
);
|
|
@@ -8794,13 +8794,13 @@ function targetMembers(ref, settings, options2, settingKeys, projectInputs) {
|
|
|
8794
8794
|
env.BASH_ENV = startup;
|
|
8795
8795
|
env.PATH = [bin, env.PATH].filter(Boolean).join(import_node_path51.default.delimiter);
|
|
8796
8796
|
}
|
|
8797
|
-
|
|
8798
|
-
|
|
8797
|
+
import_node_fs50.default.mkdirSync(settings("BUILT_PRODUCTS_DIR"), { recursive: true });
|
|
8798
|
+
import_node_fs50.default.mkdirSync(settings("DERIVED_FILE_DIR"), { recursive: true });
|
|
8799
8799
|
for (const output of allOutputs)
|
|
8800
|
-
|
|
8800
|
+
import_node_fs50.default.mkdirSync(import_node_path51.default.dirname(output), { recursive: true });
|
|
8801
8801
|
for (const [kind, lists] of fileLists)
|
|
8802
8802
|
lists.forEach((item, index) => {
|
|
8803
|
-
|
|
8803
|
+
import_node_fs50.default.writeFileSync(
|
|
8804
8804
|
env[`SCRIPT_${kind}_FILE_LIST_${index}`],
|
|
8805
8805
|
`${item.entries.join("\n")}
|
|
8806
8806
|
`
|
|
@@ -8809,8 +8809,8 @@ function targetMembers(ref, settings, options2, settingKeys, projectInputs) {
|
|
|
8809
8809
|
const rawScript = str(phase.shellScript) ?? "";
|
|
8810
8810
|
if (rawScript.includes("generate-modules-provider")) {
|
|
8811
8811
|
const preloadPath = import_node_path51.default.join(phaseDir, "expo-scan-timeout.cjs");
|
|
8812
|
-
|
|
8813
|
-
|
|
8812
|
+
import_node_fs50.default.mkdirSync(phaseDir, { recursive: true });
|
|
8813
|
+
import_node_fs50.default.writeFileSync(
|
|
8814
8814
|
preloadPath,
|
|
8815
8815
|
[
|
|
8816
8816
|
"const cp = require('node:child_process');",
|
|
@@ -8848,7 +8848,7 @@ ${output}`
|
|
|
8848
8848
|
);
|
|
8849
8849
|
}
|
|
8850
8850
|
const missing = allOutputs.filter(
|
|
8851
|
-
(file) => file === infoPlistOutput && !
|
|
8851
|
+
(file) => file === infoPlistOutput && !import_node_fs50.default.existsSync(file)
|
|
8852
8852
|
);
|
|
8853
8853
|
if (missing.length > 0)
|
|
8854
8854
|
throw new Error(
|
|
@@ -8860,7 +8860,7 @@ ${output}`
|
|
|
8860
8860
|
project.visitMembers(
|
|
8861
8861
|
targetId,
|
|
8862
8862
|
xcodePathResolver(project.objects, project.projectDir, import_node_path51.default.join, settings),
|
|
8863
|
-
(file) => isDirectory(file) ? walkFiles(file) :
|
|
8863
|
+
(file) => isDirectory(file) ? walkFiles(file) : import_node_fs50.default.existsSync(file) ? [file] : [],
|
|
8864
8864
|
import_node_path51.default.join,
|
|
8865
8865
|
(file, kind, bundleName) => {
|
|
8866
8866
|
if (kind === "header") {
|
|
@@ -8872,7 +8872,7 @@ ${output}`
|
|
|
8872
8872
|
if (bundleName) resourceNames[file] = bundleName;
|
|
8873
8873
|
return;
|
|
8874
8874
|
}
|
|
8875
|
-
if (!
|
|
8875
|
+
if (!import_node_fs50.default.existsSync(file)) {
|
|
8876
8876
|
if (options2.requireSources === false) return;
|
|
8877
8877
|
const script = scriptForOutput.get(import_node_path51.default.normalize(file));
|
|
8878
8878
|
throw new Error(
|
|
@@ -8888,8 +8888,8 @@ ${output}`
|
|
|
8888
8888
|
(file) => /\.(storyboard|xib)$/.test(file) && !file.split(import_node_path51.default.sep).some((part) => part.endsWith(".bundle"))
|
|
8889
8889
|
);
|
|
8890
8890
|
let launchName = settings("INFOPLIST_KEY_UILaunchStoryboardName");
|
|
8891
|
-
if (process.platform !== "darwin" && !launchName && infoPlistOutput &&
|
|
8892
|
-
const info = import_plist4.default.parse(
|
|
8891
|
+
if (process.platform !== "darwin" && !launchName && infoPlistOutput && import_node_fs50.default.existsSync(infoPlistOutput)) {
|
|
8892
|
+
const info = import_plist4.default.parse(import_node_fs50.default.readFileSync(infoPlistOutput, "utf8"));
|
|
8893
8893
|
const declared = isRecord(info) ? info.UILaunchStoryboardName : void 0;
|
|
8894
8894
|
if (typeof declared === "string") launchName = expand(declared, settings);
|
|
8895
8895
|
}
|
|
@@ -8918,10 +8918,10 @@ ${output}`
|
|
|
8918
8918
|
const inputs = JSON.stringify([
|
|
8919
8919
|
1,
|
|
8920
8920
|
args,
|
|
8921
|
-
(0, import_node_crypto33.createHash)("sha256").update(
|
|
8921
|
+
(0, import_node_crypto33.createHash)("sha256").update(import_node_fs50.default.readFileSync(file)).digest("hex")
|
|
8922
8922
|
]);
|
|
8923
8923
|
const developer = settings("DEVELOPER_DIR");
|
|
8924
|
-
const cached =
|
|
8924
|
+
const cached = import_node_fs50.default.existsSync(output) && import_node_fs50.default.existsSync(stamp) ? import_node_fs50.default.readFileSync(stamp, "utf8").split("\n") : [];
|
|
8925
8925
|
projectInputs.add(file);
|
|
8926
8926
|
resources.delete(file);
|
|
8927
8927
|
if (cached[0] !== inputs || process.platform === "darwin" && cached[1] !== developer) {
|
|
@@ -8931,15 +8931,15 @@ ${output}`
|
|
|
8931
8931
|
`${targetName}: Interface Builder compilation requires macOS and Xcode`
|
|
8932
8932
|
);
|
|
8933
8933
|
}
|
|
8934
|
-
|
|
8935
|
-
|
|
8936
|
-
|
|
8934
|
+
import_node_fs50.default.rmSync(output, { recursive: true, force: true });
|
|
8935
|
+
import_node_fs50.default.rmSync(stamp, { force: true });
|
|
8936
|
+
import_node_fs50.default.mkdirSync(import_node_path51.default.dirname(output), { recursive: true });
|
|
8937
8937
|
(0, import_node_child_process28.execFileSync)("xcrun", ["ibtool", "--compile", output, file, ...args], {
|
|
8938
8938
|
cwd: project.projectDir,
|
|
8939
8939
|
stdio: ["ignore", "pipe", "pipe"],
|
|
8940
8940
|
timeout: runScriptTimeoutMs
|
|
8941
8941
|
});
|
|
8942
|
-
|
|
8942
|
+
import_node_fs50.default.writeFileSync(stamp, `${inputs}
|
|
8943
8943
|
${developer}
|
|
8944
8944
|
`);
|
|
8945
8945
|
}
|
|
@@ -8990,16 +8990,16 @@ var isPodsProject = (xcodeproj) => import_node_path51.default.basename(xcodeproj
|
|
|
8990
8990
|
function installedPodsSandbox(pods) {
|
|
8991
8991
|
const podfileLock = import_node_path51.default.join(import_node_path51.default.dirname(pods), "Podfile.lock");
|
|
8992
8992
|
const manifestLock = import_node_path51.default.join(pods, "Manifest.lock");
|
|
8993
|
-
if (!
|
|
8993
|
+
if (!import_node_fs50.default.existsSync(podfileLock))
|
|
8994
8994
|
throw new Error(
|
|
8995
8995
|
`${pods} has no ${podfileLock}: run \`pod install\` in ${import_node_path51.default.dirname(pods)}`
|
|
8996
8996
|
);
|
|
8997
|
-
if (!
|
|
8997
|
+
if (!import_node_fs50.default.existsSync(manifestLock) || !import_node_fs50.default.readFileSync(manifestLock).equals(import_node_fs50.default.readFileSync(podfileLock)))
|
|
8998
8998
|
throw new Error(
|
|
8999
8999
|
`The sandbox is not in sync with the Podfile.lock: ${manifestLock} differs from ${podfileLock}. Run \`pod install\` in ${import_node_path51.default.dirname(pods)}`
|
|
9000
9000
|
);
|
|
9001
9001
|
const specChecksums = {};
|
|
9002
|
-
const lines =
|
|
9002
|
+
const lines = import_node_fs50.default.readFileSync(manifestLock, "utf8").split("\n");
|
|
9003
9003
|
const start = lines.indexOf("SPEC CHECKSUMS:");
|
|
9004
9004
|
for (const line of start === -1 ? [] : lines.slice(start + 1)) {
|
|
9005
9005
|
const entry = /^ {2}"?([^":]+)"?: ([0-9a-f]+)$/.exec(line);
|
|
@@ -9008,7 +9008,7 @@ function installedPodsSandbox(pods) {
|
|
|
9008
9008
|
}
|
|
9009
9009
|
const specs = import_node_path51.default.join(pods, "Local Podspecs");
|
|
9010
9010
|
const generated = import_node_path51.default.join(pods, POD_GRAPH_SPECIFICATIONS);
|
|
9011
|
-
if (
|
|
9011
|
+
if (import_node_fs50.default.existsSync(generated))
|
|
9012
9012
|
return {
|
|
9013
9013
|
podfileLock,
|
|
9014
9014
|
manifestLock,
|
|
@@ -9016,7 +9016,7 @@ function installedPodsSandbox(pods) {
|
|
|
9016
9016
|
localPodspecs: readPodGraphSpecifications(generated),
|
|
9017
9017
|
specificationFiles: [generated]
|
|
9018
9018
|
};
|
|
9019
|
-
const specificationFiles = isDirectory(specs) ?
|
|
9019
|
+
const specificationFiles = isDirectory(specs) ? import_node_fs50.default.readdirSync(specs).filter((name2) => name2.endsWith(".podspec.json")).sort().map((name2) => import_node_path51.default.join(specs, name2)) : [];
|
|
9020
9020
|
return {
|
|
9021
9021
|
podfileLock,
|
|
9022
9022
|
manifestLock,
|
|
@@ -9024,7 +9024,7 @@ function installedPodsSandbox(pods) {
|
|
|
9024
9024
|
localPodspecs: new Map(
|
|
9025
9025
|
specificationFiles.map((file) => [
|
|
9026
9026
|
import_node_path51.default.basename(file, ".podspec.json"),
|
|
9027
|
-
|
|
9027
|
+
import_node_fs50.default.readFileSync(file, "utf8")
|
|
9028
9028
|
])
|
|
9029
9029
|
),
|
|
9030
9030
|
specificationFiles
|
|
@@ -9043,7 +9043,7 @@ function workspaceProjects(xcodeprojOrWorkspace, installedPods = false) {
|
|
|
9043
9043
|
);
|
|
9044
9044
|
return;
|
|
9045
9045
|
}
|
|
9046
|
-
const key =
|
|
9046
|
+
const key = import_node_fs50.default.realpathSync.native(xcodeproj);
|
|
9047
9047
|
if (projectAt.has(key) || !installedPods && key.split(import_node_path51.default.sep).includes("Pods"))
|
|
9048
9048
|
return;
|
|
9049
9049
|
if (isPodsProject(key)) cocoapods = installedPodsSandbox(import_node_path51.default.dirname(key));
|
|
@@ -9065,7 +9065,7 @@ function workspaceProjects(xcodeprojOrWorkspace, installedPods = false) {
|
|
|
9065
9065
|
throw new Error(`${import_node_path51.default.basename(xcodeprojOrWorkspace)} lists no Xcode project`);
|
|
9066
9066
|
}
|
|
9067
9067
|
const podfile = import_node_path51.default.join(import_node_path51.default.dirname(xcodeprojOrWorkspace), "Podfile");
|
|
9068
|
-
if (installedPods && !cocoapods &&
|
|
9068
|
+
if (installedPods && !cocoapods && import_node_fs50.default.existsSync(podfile))
|
|
9069
9069
|
throw new Error(
|
|
9070
9070
|
`${podfile} is not installed into ${import_node_path51.default.basename(xcodeprojOrWorkspace)}: run \`pod install\` in ${import_node_path51.default.dirname(podfile)} and open the workspace it writes`
|
|
9071
9071
|
);
|
|
@@ -9105,7 +9105,7 @@ function listXcodeAppTargets(xcodeprojOrWorkspace, options2 = {}) {
|
|
|
9105
9105
|
return workspaceProjects(xcodeprojOrWorkspace).projects.flatMap(projectTargets).filter((ref) => isIosAppTarget(ref, options2)).map((ref) => str(ref.target.name) ?? ref.id);
|
|
9106
9106
|
}
|
|
9107
9107
|
function defaultXcodeAppTarget(xcodeproj) {
|
|
9108
|
-
const project = loadProject(
|
|
9108
|
+
const project = loadProject(import_node_fs50.default.realpathSync.native(xcodeproj));
|
|
9109
9109
|
for (const [id, target] of Object.entries(project.objects)) {
|
|
9110
9110
|
if (!isDict(target) || target.isa !== "PBXNativeTarget") continue;
|
|
9111
9111
|
if (isIosAppTarget({ project, id, target }, { requireSources: false }))
|
|
@@ -9113,7 +9113,7 @@ function defaultXcodeAppTarget(xcodeproj) {
|
|
|
9113
9113
|
}
|
|
9114
9114
|
}
|
|
9115
9115
|
function readXcodeScheme(xcodeprojOrWorkspace, scheme) {
|
|
9116
|
-
const container =
|
|
9116
|
+
const container = import_node_fs50.default.realpathSync.native(xcodeprojOrWorkspace);
|
|
9117
9117
|
const { projects } = workspaceProjects(container);
|
|
9118
9118
|
const containers = [
|
|
9119
9119
|
.../* @__PURE__ */ new Set([container, ...projects.map((project2) => project2.xcodeproj)])
|
|
@@ -9121,22 +9121,22 @@ function readXcodeScheme(xcodeprojOrWorkspace, scheme) {
|
|
|
9121
9121
|
const found = containers.flatMap(
|
|
9122
9122
|
(dir) => [
|
|
9123
9123
|
import_node_path51.default.join(dir, "xcshareddata"),
|
|
9124
|
-
...isDirectory(import_node_path51.default.join(dir, "xcuserdata")) ?
|
|
9124
|
+
...isDirectory(import_node_path51.default.join(dir, "xcuserdata")) ? import_node_fs50.default.readdirSync(import_node_path51.default.join(dir, "xcuserdata")).sort().map((user) => import_node_path51.default.join(dir, "xcuserdata", user)) : []
|
|
9125
9125
|
].map((data) => ({
|
|
9126
9126
|
dir,
|
|
9127
9127
|
file: import_node_path51.default.join(data, "xcschemes", `${scheme}.xcscheme`)
|
|
9128
9128
|
}))
|
|
9129
|
-
).find((candidate) =>
|
|
9129
|
+
).find((candidate) => import_node_fs50.default.existsSync(candidate.file));
|
|
9130
9130
|
if (!found) {
|
|
9131
9131
|
const known = containers.flatMap(
|
|
9132
|
-
(dir) =>
|
|
9132
|
+
(dir) => import_node_fs50.default.existsSync(import_node_path51.default.join(dir, "xcshareddata", "xcschemes")) ? import_node_fs50.default.readdirSync(import_node_path51.default.join(dir, "xcshareddata", "xcschemes")).filter((name3) => name3.endsWith(".xcscheme")).map((name3) => name3.slice(0, -".xcscheme".length)).sort() : []
|
|
9133
9133
|
);
|
|
9134
9134
|
throw new Error(
|
|
9135
9135
|
`${import_node_path51.default.basename(container)} has no scheme ${scheme}; it shares ${known.join(", ") || "none"}`
|
|
9136
9136
|
);
|
|
9137
9137
|
}
|
|
9138
9138
|
const launch = /<LaunchAction\b([^>]*)>([\s\S]*?)<\/LaunchAction>/.exec(
|
|
9139
|
-
|
|
9139
|
+
import_node_fs50.default.readFileSync(found.file, "utf8")
|
|
9140
9140
|
);
|
|
9141
9141
|
const attribute = (text3, name3) => {
|
|
9142
9142
|
const value = new RegExp(`\\b${name3}\\s*=\\s*"([^"]*)"`).exec(text3)?.[1];
|
|
@@ -9154,7 +9154,7 @@ function readXcodeScheme(xcodeprojOrWorkspace, scheme) {
|
|
|
9154
9154
|
referenced.slice("container:".length)
|
|
9155
9155
|
);
|
|
9156
9156
|
const project = projects.find(
|
|
9157
|
-
(candidate) =>
|
|
9157
|
+
(candidate) => import_node_fs50.default.existsSync(projectPath) && candidate.xcodeproj === import_node_fs50.default.realpathSync.native(projectPath)
|
|
9158
9158
|
);
|
|
9159
9159
|
const target = project && projectTargets(project).find((ref) => ref.id === blueprint);
|
|
9160
9160
|
const name2 = target && str(target.target.name);
|
|
@@ -9175,8 +9175,8 @@ var NativeAppTargetSelectionError = class extends Error {
|
|
|
9175
9175
|
};
|
|
9176
9176
|
function selectIosAppTarget(projectRoot, iosTarget) {
|
|
9177
9177
|
const nested = import_node_path51.default.join(projectRoot, "ios");
|
|
9178
|
-
const iosRoot =
|
|
9179
|
-
const entries =
|
|
9178
|
+
const iosRoot = import_node_fs50.default.existsSync(nested) ? nested : projectRoot;
|
|
9179
|
+
const entries = import_node_fs50.default.readdirSync(iosRoot, { withFileTypes: true });
|
|
9180
9180
|
const projects = (entries.some((entry) => entry.isDirectory() && entry.name.endsWith(".xcodeproj")) ? entries.filter((entry) => entry.isDirectory() && entry.name.endsWith(".xcodeproj")).map((entry) => ({
|
|
9181
9181
|
xcodeproj: import_node_path51.default.join(iosRoot, entry.name),
|
|
9182
9182
|
workspace: null
|
|
@@ -9187,7 +9187,7 @@ function selectIosAppTarget(projectRoot, iosTarget) {
|
|
|
9187
9187
|
workspace
|
|
9188
9188
|
}));
|
|
9189
9189
|
}).filter(
|
|
9190
|
-
({ xcodeproj: xcodeproj2 }) => xcodeproj2.endsWith(".xcodeproj") && !xcodeproj2.split(import_node_path51.default.sep).includes("Pods") &&
|
|
9190
|
+
({ xcodeproj: xcodeproj2 }) => xcodeproj2.endsWith(".xcodeproj") && !xcodeproj2.split(import_node_path51.default.sep).includes("Pods") && import_node_fs50.default.existsSync(xcodeproj2)
|
|
9191
9191
|
).filter(
|
|
9192
9192
|
({ xcodeproj: xcodeproj2 }) => listXcodeAppTargets(xcodeproj2, { requireSources: false }).length > 0
|
|
9193
9193
|
)).map(({ xcodeproj: xcodeproj2, workspace }) => ({
|
|
@@ -9232,13 +9232,13 @@ function selectIosAppTarget(projectRoot, iosTarget) {
|
|
|
9232
9232
|
if (!target) throw new Error("native app identity has no iOS application target");
|
|
9233
9233
|
if (!iosTarget) {
|
|
9234
9234
|
const workspace = xcodeproj.replace(/\.xcodeproj$/, ".xcworkspace");
|
|
9235
|
-
const container =
|
|
9235
|
+
const container = import_node_fs50.default.existsSync(workspace) ? workspace : xcodeproj;
|
|
9236
9236
|
const hasScheme = [container, xcodeproj].some((dir) => {
|
|
9237
|
-
if (
|
|
9237
|
+
if (import_node_fs50.default.existsSync(import_node_path51.default.join(dir, "xcshareddata", "xcschemes", `${target}.xcscheme`)))
|
|
9238
9238
|
return true;
|
|
9239
9239
|
const users = import_node_path51.default.join(dir, "xcuserdata");
|
|
9240
|
-
return
|
|
9241
|
-
(user) =>
|
|
9240
|
+
return import_node_fs50.default.existsSync(users) && import_node_fs50.default.readdirSync(users).some(
|
|
9241
|
+
(user) => import_node_fs50.default.existsSync(import_node_path51.default.join(users, user, "xcschemes", `${target}.xcscheme`))
|
|
9242
9242
|
);
|
|
9243
9243
|
});
|
|
9244
9244
|
if (hasScheme) target = readXcodeScheme(container, target).target;
|
|
@@ -9267,7 +9267,7 @@ var SwiftPackageResolutionRequired = class extends Error {
|
|
|
9267
9267
|
function readXcodeAppTarget(input, targetName, configurationName, options2 = {}) {
|
|
9268
9268
|
if (isBazelPackage(input))
|
|
9269
9269
|
return readBazelAppTarget(input, targetName, configurationName, options2);
|
|
9270
|
-
const xcodeprojOrWorkspace =
|
|
9270
|
+
const xcodeprojOrWorkspace = import_node_fs50.default.realpathSync.native(input);
|
|
9271
9271
|
const workspace = xcodeprojOrWorkspace.endsWith(".xcworkspace") ? xcodeprojOrWorkspace : null;
|
|
9272
9272
|
const { listed, projects, projectAt, cocoapods } = workspaceProjects(
|
|
9273
9273
|
xcodeprojOrWorkspace,
|
|
@@ -9311,7 +9311,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
|
|
|
9311
9311
|
if (proxy?.isa !== "PBXContainerItemProxy") return void 0;
|
|
9312
9312
|
const portal = str(proxy.containerPortal);
|
|
9313
9313
|
const portalPath = project.resolvePath(portal ?? "");
|
|
9314
|
-
const owner = project.object(portal)?.isa === "PBXProject" ? project : portalPath &&
|
|
9314
|
+
const owner = project.object(portal)?.isa === "PBXProject" ? project : portalPath && import_node_fs50.default.existsSync(portalPath) ? projectAt.get(import_node_fs50.default.realpathSync.native(portalPath)) : void 0;
|
|
9315
9315
|
const remote = str(proxy.remoteGlobalIDString);
|
|
9316
9316
|
if (!owner || !remote) return void 0;
|
|
9317
9317
|
return projectTargets(owner).find(
|
|
@@ -9439,7 +9439,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
|
|
|
9439
9439
|
ref.project.visitMembers(
|
|
9440
9440
|
ref.id,
|
|
9441
9441
|
ref.project.resolvePath,
|
|
9442
|
-
(file) => isDirectory(file) ? walkFiles(file) :
|
|
9442
|
+
(file) => isDirectory(file) ? walkFiles(file) : import_node_fs50.default.existsSync(file) ? [file] : [],
|
|
9443
9443
|
import_node_path51.default.join,
|
|
9444
9444
|
(file, kind) => {
|
|
9445
9445
|
if (kind === "header") found.push(file);
|
|
@@ -9621,9 +9621,9 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
|
|
|
9621
9621
|
` const double ${symbol}VersionNumber __attribute__ ((used)) = (double)${number2};`,
|
|
9622
9622
|
""
|
|
9623
9623
|
].join("\n");
|
|
9624
|
-
if (!
|
|
9625
|
-
|
|
9626
|
-
|
|
9624
|
+
if (!import_node_fs50.default.existsSync(versioning) || import_node_fs50.default.readFileSync(versioning, "utf8") !== unit) {
|
|
9625
|
+
import_node_fs50.default.mkdirSync(import_node_path51.default.dirname(versioning), { recursive: true });
|
|
9626
|
+
import_node_fs50.default.writeFileSync(versioning, unit);
|
|
9627
9627
|
}
|
|
9628
9628
|
allSources.push(versioning);
|
|
9629
9629
|
}
|
|
@@ -9668,7 +9668,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
|
|
|
9668
9668
|
);
|
|
9669
9669
|
const moduleMap = (settings2("DEFINES_MODULE") === "YES" || !framework) && settings2("MODULEMAP_FILE") ? absolute(settings2("MODULEMAP_FILE")) : null;
|
|
9670
9670
|
const frameworkUmbrella = !compatibility && framework && members.sources.length > 0 && moduleMap ? import_node_path51.default.join(import_node_path51.default.dirname(moduleMap), `${moduleName}-umbrella.h`) : null;
|
|
9671
|
-
const frameworkCompatibility = frameworkUmbrella && moduleMap &&
|
|
9671
|
+
const frameworkCompatibility = frameworkUmbrella && moduleMap && import_node_fs50.default.existsSync(moduleMap) && import_node_fs50.default.existsSync(frameworkUmbrella) ? {
|
|
9672
9672
|
framework: true,
|
|
9673
9673
|
moduleMap,
|
|
9674
9674
|
umbrella: frameworkUmbrella,
|
|
@@ -9692,10 +9692,10 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
|
|
|
9692
9692
|
outputUmbrella: compatibility.outputUmbrella,
|
|
9693
9693
|
outputHeader: compatibility.outputHeader
|
|
9694
9694
|
} : frameworkCompatibility;
|
|
9695
|
-
const podHeaders = !framework && isPodsProject(ref.project.xcodeproj) && moduleMap && import_node_path51.default.relative(import_node_path51.default.join(ref.project.projectDir, "Headers", "Public"), moduleMap).split(import_node_path51.default.sep)[0] !== ".." &&
|
|
9695
|
+
const podHeaders = !framework && isPodsProject(ref.project.xcodeproj) && moduleMap && import_node_path51.default.relative(import_node_path51.default.join(ref.project.projectDir, "Headers", "Public"), moduleMap).split(import_node_path51.default.sep)[0] !== ".." && import_node_fs50.default.existsSync(moduleMap) ? import_node_fs50.default.readdirSync(import_node_path51.default.dirname(moduleMap)).flatMap((entry) => {
|
|
9696
9696
|
if (!/\.(h|hh|hpp|hxx|modulemap)$/.test(entry)) return [];
|
|
9697
9697
|
const file = import_node_path51.default.join(import_node_path51.default.dirname(moduleMap), entry);
|
|
9698
|
-
return
|
|
9698
|
+
return import_node_fs50.default.existsSync(file) ? [file] : [];
|
|
9699
9699
|
}) : [];
|
|
9700
9700
|
const fileFlags = {};
|
|
9701
9701
|
for (const phaseId of list(ref.target.buildPhases)) {
|
|
@@ -9928,7 +9928,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
|
|
|
9928
9928
|
});
|
|
9929
9929
|
const frameworks = frameworkTargets.map(({ framework }) => framework);
|
|
9930
9930
|
const podSourceDirs = builtTargets.slice(0, -1).flatMap(
|
|
9931
|
-
({ ref, module: module3 }) => isPodsProject(ref.project.xcodeproj) ? [...module3.allSources, ...module3.objc?.headers ?? []].map((file) => import_node_path51.default.dirname(file)).filter((dir) =>
|
|
9931
|
+
({ ref, module: module3 }) => isPodsProject(ref.project.xcodeproj) ? [...module3.allSources, ...module3.objc?.headers ?? []].map((file) => import_node_path51.default.dirname(file)).filter((dir) => import_node_fs50.default.existsSync(dir)) : []
|
|
9932
9932
|
);
|
|
9933
9933
|
const resourceProducts = [];
|
|
9934
9934
|
const bundleTargets = builtTargets.filter(
|
|
@@ -9992,12 +9992,12 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
|
|
|
9992
9992
|
resources: product.module.resources,
|
|
9993
9993
|
infoPlist: import_plist4.default.build(
|
|
9994
9994
|
expandValue(
|
|
9995
|
-
import_plist4.default.parse(
|
|
9995
|
+
import_plist4.default.parse(import_node_fs50.default.readFileSync(infoFile, "utf8")),
|
|
9996
9996
|
product.productSettings
|
|
9997
9997
|
)
|
|
9998
9998
|
)
|
|
9999
9999
|
} : {
|
|
10000
|
-
resources:
|
|
10000
|
+
resources: import_node_fs50.default.readdirSync(input2, { recursive: true, withFileTypes: true }).filter((entry) => entry.isFile()).map((entry) => import_node_path51.default.join(entry.parentPath, entry.name)).sort(),
|
|
10001
10001
|
sourceRoot: input2
|
|
10002
10002
|
}
|
|
10003
10003
|
});
|
|
@@ -10014,7 +10014,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
|
|
|
10014
10014
|
settingKeys
|
|
10015
10015
|
);
|
|
10016
10016
|
const bundleIdentifier = productSettings("PRODUCT_BUNDLE_IDENTIFIER") || (typeof info.CFBundleIdentifier === "string" ? info.CFBundleIdentifier : "");
|
|
10017
|
-
const entitlements = entitlementsFile ? import_plist4.default.parse(
|
|
10017
|
+
const entitlements = entitlementsFile ? import_plist4.default.parse(import_node_fs50.default.readFileSync(entitlementsFile, "utf8")) : void 0;
|
|
10018
10018
|
const keychainAccessGroups = entitlementsFile ? readKeychainAccessGroups(
|
|
10019
10019
|
entitlements,
|
|
10020
10020
|
(value) => expand(value, (key) => {
|
|
@@ -10052,7 +10052,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
|
|
|
10052
10052
|
};
|
|
10053
10053
|
}
|
|
10054
10054
|
const localPackageDirs = [
|
|
10055
|
-
...listed.filter((reference) =>
|
|
10055
|
+
...listed.filter((reference) => import_node_fs50.default.existsSync(import_node_path51.default.join(reference, "Package.swift"))),
|
|
10056
10056
|
...projects.flatMap(
|
|
10057
10057
|
(project) => Object.entries(project.objects).flatMap(([id, entry]) => {
|
|
10058
10058
|
if (!isDict(entry)) return [];
|
|
@@ -10062,19 +10062,19 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
|
|
|
10062
10062
|
const packages = [];
|
|
10063
10063
|
while (pending.length > 0) {
|
|
10064
10064
|
const dir = pending.pop();
|
|
10065
|
-
if (
|
|
10065
|
+
if (import_node_fs50.default.existsSync(import_node_path51.default.join(dir, "Package.swift"))) {
|
|
10066
10066
|
packages.push(dir);
|
|
10067
10067
|
continue;
|
|
10068
10068
|
}
|
|
10069
10069
|
if (!isDirectory(dir)) continue;
|
|
10070
|
-
for (const child of
|
|
10070
|
+
for (const child of import_node_fs50.default.readdirSync(dir, { withFileTypes: true }))
|
|
10071
10071
|
if (child.isDirectory() && !child.name.startsWith("."))
|
|
10072
10072
|
pending.push(import_node_path51.default.join(dir, child.name));
|
|
10073
10073
|
}
|
|
10074
10074
|
return packages;
|
|
10075
10075
|
}
|
|
10076
10076
|
const candidate = entry.isa === "XCLocalSwiftPackageReference" ? import_node_path51.default.resolve(project.projectDir, str(entry.relativePath) ?? "") : entry.isa === "PBXFileReference" ? project.resolvePath(id) : null;
|
|
10077
|
-
return candidate &&
|
|
10077
|
+
return candidate && import_node_fs50.default.existsSync(import_node_path51.default.join(candidate, "Package.swift")) ? [candidate] : [];
|
|
10078
10078
|
})
|
|
10079
10079
|
)
|
|
10080
10080
|
];
|
|
@@ -10116,14 +10116,14 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
|
|
|
10116
10116
|
for (const directory of expandSearchPath(absolute(raw), searchRules)) {
|
|
10117
10117
|
if (frameworkSearchDirectories.has(directory)) continue;
|
|
10118
10118
|
frameworkSearchDirectories.add(directory);
|
|
10119
|
-
if (!
|
|
10119
|
+
if (!import_node_fs50.default.statSync(directory, { throwIfNoEntry: false })?.isDirectory() || /\.sdk\/(?:System|Developer)\/Library\/Frameworks\/?$/.test(directory))
|
|
10120
10120
|
continue;
|
|
10121
|
-
for (const entry of
|
|
10121
|
+
for (const entry of import_node_fs50.default.readdirSync(directory, { withFileTypes: true })) {
|
|
10122
10122
|
const name2 = /^(.+)\.framework$/.exec(entry.name)?.[1];
|
|
10123
10123
|
if (!name2 || byProduct.has(entry.name) || searchedFrameworks.has(name2))
|
|
10124
10124
|
continue;
|
|
10125
10125
|
const file = import_node_path51.default.join(directory, entry.name);
|
|
10126
|
-
if (
|
|
10126
|
+
if (import_node_fs50.default.statSync(file, { throwIfNoEntry: false })?.isDirectory())
|
|
10127
10127
|
searchedFrameworks.set(name2, file);
|
|
10128
10128
|
}
|
|
10129
10129
|
}
|
|
@@ -10132,8 +10132,8 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
|
|
|
10132
10132
|
for (const raw of settingList(settings2("SWIFT_INCLUDE_PATHS"))) {
|
|
10133
10133
|
const dir = absolute(raw);
|
|
10134
10134
|
const modulemap = import_node_path51.default.join(dir, "module.modulemap");
|
|
10135
|
-
if (!
|
|
10136
|
-
const name2 = moduleMapName(
|
|
10135
|
+
if (!import_node_fs50.default.existsSync(modulemap)) continue;
|
|
10136
|
+
const name2 = moduleMapName(import_node_fs50.default.readFileSync(modulemap, "utf8"));
|
|
10137
10137
|
if (name2 && !binaryFrameworks.has(name2)) includeBinary(name2, dir);
|
|
10138
10138
|
}
|
|
10139
10139
|
for (const phaseId of list(ref.target.buildPhases)) {
|
|
@@ -10142,7 +10142,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
|
|
|
10142
10142
|
const inputs = list(phase.inputPaths).map(absolute);
|
|
10143
10143
|
for (const raw of list(phase.inputFileListPaths)) {
|
|
10144
10144
|
const file = absolute(raw);
|
|
10145
|
-
if (!
|
|
10145
|
+
if (!import_node_fs50.default.existsSync(file)) continue;
|
|
10146
10146
|
xcconfigs.add(file);
|
|
10147
10147
|
inputs.push(...fileListEntries(file, absolute));
|
|
10148
10148
|
}
|
|
@@ -10244,11 +10244,11 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
|
|
|
10244
10244
|
byProduct.has(import_node_path51.default.basename(rawPath)))
|
|
10245
10245
|
continue;
|
|
10246
10246
|
const resolved = fileId ? project.resolvePath(fileId) : null;
|
|
10247
|
-
if (fileId && resolved !== null && !
|
|
10247
|
+
if (fileId && resolved !== null && !import_node_fs50.default.existsSync(resolved)) {
|
|
10248
10248
|
const parts = resolved.split(import_node_path51.default.sep);
|
|
10249
10249
|
const pods = parts.lastIndexOf("Pods");
|
|
10250
10250
|
const sandbox = parts.slice(0, pods + 1).join(import_node_path51.default.sep);
|
|
10251
|
-
if (!options2.installedPods && options2.requireSources === false && pods > 0 &&
|
|
10251
|
+
if (!options2.installedPods && options2.requireSources === false && pods > 0 && import_node_fs50.default.existsSync(import_node_path51.default.join(import_node_path51.default.dirname(sandbox), "Podfile")))
|
|
10252
10252
|
continue;
|
|
10253
10253
|
if (!ios_sdk_frameworks_default.frameworks.includes(name2))
|
|
10254
10254
|
throw new Error(
|
|
@@ -10276,7 +10276,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
|
|
|
10276
10276
|
({ product }) => !options2.nativeModules || nativeTargets.has(built.ref) || options2.nativeModules.includes(product)
|
|
10277
10277
|
);
|
|
10278
10278
|
const resolvedFile = workspaceResolvedFile(xcodeprojOrWorkspace);
|
|
10279
|
-
let packageResolved =
|
|
10279
|
+
let packageResolved = import_node_fs50.default.existsSync(resolvedFile) ? [import_node_fs50.default.realpathSync.native(resolvedFile)] : [...new Set(localPackageDirs.map((dir) => import_node_path51.default.join(dir, "Package.resolved")))].filter((file) => import_node_fs50.default.existsSync(file)).map((file) => import_node_fs50.default.realpathSync.native(file)).sort();
|
|
10280
10280
|
if (packageResolved.length === 0) {
|
|
10281
10281
|
const requirements = remotePackageRequirements(projects);
|
|
10282
10282
|
if (requirements.length > 0) {
|
|
@@ -10331,15 +10331,15 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
|
|
|
10331
10331
|
...used.map((project) => project.projectDir),
|
|
10332
10332
|
...localPackageDirs,
|
|
10333
10333
|
...linkedProducts.flatMap(
|
|
10334
|
-
({ source }) => source.kind === "local" &&
|
|
10334
|
+
({ source }) => source.kind === "local" && import_node_fs50.default.existsSync(source.dir) ? [source.dir] : []
|
|
10335
10335
|
),
|
|
10336
10336
|
...new Set(podSourceDirs),
|
|
10337
10337
|
// a target's own files may sit beside the project, such as an asset
|
|
10338
10338
|
// catalog one folder up, and xcode builds them from there
|
|
10339
10339
|
...new Set(
|
|
10340
|
-
[...module2.allSources, ...module2.resources].filter((file) =>
|
|
10340
|
+
[...module2.allSources, ...module2.resources].filter((file) => import_node_fs50.default.existsSync(file)).map((file) => import_node_path51.default.dirname(file))
|
|
10341
10341
|
)
|
|
10342
|
-
].map((dir) =>
|
|
10342
|
+
].map((dir) => import_node_fs50.default.realpathSync.native(dir))
|
|
10343
10343
|
),
|
|
10344
10344
|
projectFiles: [
|
|
10345
10345
|
.../* @__PURE__ */ new Set([
|
|
@@ -10365,7 +10365,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
|
|
|
10365
10365
|
resourceProducts,
|
|
10366
10366
|
linkedProducts,
|
|
10367
10367
|
localPackageDirs: [
|
|
10368
|
-
...new Set(localPackageDirs.map((dir) =>
|
|
10368
|
+
...new Set(localPackageDirs.map((dir) => import_node_fs50.default.realpathSync.native(dir)))
|
|
10369
10369
|
].sort(),
|
|
10370
10370
|
binaryFrameworks: [...binaryFrameworks].map(([name2, file]) => ({ name: name2, path: file })).sort((left, right) => left.name.localeCompare(right.name)),
|
|
10371
10371
|
sdkFrameworks: [...sdkFrameworks].filter(
|
|
@@ -10470,7 +10470,7 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
|
|
|
10470
10470
|
const rtcAppGroupIdentifier = nonEmptyString2(dictionary2.RTCAppGroupIdentifier);
|
|
10471
10471
|
const screenShareExtensionBundleId = typeof dictionary2.ScreenShareExtensionBundleId === "string" ? dictionary2.ScreenShareExtensionBundleId : void 0;
|
|
10472
10472
|
const rootModuleName = readRootModuleName(
|
|
10473
|
-
app.allSources.filter((file) => /Delegate\.(?:swift|mm|m)$/.test(file) &&
|
|
10473
|
+
app.allSources.filter((file) => /Delegate\.(?:swift|mm|m)$/.test(file) && import_node_fs51.default.existsSync(file)).map((file) => import_node_fs51.default.readFileSync(file, "utf8"))
|
|
10474
10474
|
);
|
|
10475
10475
|
const identity2 = {
|
|
10476
10476
|
...app.keychainAccessGroups === void 0 ? {} : { keychainAccessGroups: app.keychainAccessGroups },
|
|
@@ -10494,7 +10494,7 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
|
|
|
10494
10494
|
googleSignIn: readGoogleSignInConfiguration(
|
|
10495
10495
|
dictionary2,
|
|
10496
10496
|
Object.fromEntries(
|
|
10497
|
-
app.resources.filter((file) => file.endsWith(".plist")).map((file) => [file, parsePlistBytes(
|
|
10497
|
+
app.resources.filter((file) => file.endsWith(".plist")).map((file) => [file, parsePlistBytes(import_node_fs51.default.readFileSync(file), parseInfoPlist)])
|
|
10498
10498
|
)
|
|
10499
10499
|
),
|
|
10500
10500
|
supportedInterfaceOrientations,
|
|
@@ -10504,11 +10504,11 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
|
|
|
10504
10504
|
bundleIcons: resolveNativeBundleIcons(icons, catalogAlternateNames, (value) => value),
|
|
10505
10505
|
appIconArtwork: resolveNativeAppIconArtwork(
|
|
10506
10506
|
app.resources,
|
|
10507
|
-
(file) =>
|
|
10507
|
+
(file) => import_node_fs51.default.readFileSync(file, "utf8"),
|
|
10508
10508
|
(file) => {
|
|
10509
10509
|
const extension = import_node_path52.default.extname(file).toLowerCase();
|
|
10510
10510
|
const contentType = extension === ".jpg" || extension === ".jpeg" ? "image/jpeg" : extension === ".webp" ? "image/webp" : "image/png";
|
|
10511
|
-
return `data:${contentType};base64,${
|
|
10511
|
+
return `data:${contentType};base64,${import_node_fs51.default.readFileSync(file).toString("base64")}`;
|
|
10512
10512
|
},
|
|
10513
10513
|
icons,
|
|
10514
10514
|
app.appIconName,
|
|
@@ -10546,10 +10546,10 @@ function readNativeAppIdentityFromSources(projectRoot, platform, parseInfoPlist,
|
|
|
10546
10546
|
android: () => null,
|
|
10547
10547
|
ios: () => {
|
|
10548
10548
|
const nested = import_node_path52.default.join(projectRoot, "ios");
|
|
10549
|
-
const iosRoot =
|
|
10549
|
+
const iosRoot = import_node_fs51.default.existsSync(nested) ? nested : projectRoot;
|
|
10550
10550
|
const prefix = iosRoot === nested ? "ios/" : "";
|
|
10551
10551
|
const files = {};
|
|
10552
|
-
for (const entry of
|
|
10552
|
+
for (const entry of import_node_fs51.default.readdirSync(iosRoot, { withFileTypes: true })) {
|
|
10553
10553
|
if (entry.name === "Pods") continue;
|
|
10554
10554
|
if (entry.isDirectory()) {
|
|
10555
10555
|
const names = entry.name.endsWith(".xcodeproj") ? ["project.pbxproj"] : [
|
|
@@ -10557,17 +10557,17 @@ function readNativeAppIdentityFromSources(projectRoot, platform, parseInfoPlist,
|
|
|
10557
10557
|
"AppDelegate.swift",
|
|
10558
10558
|
"AppDelegate.mm",
|
|
10559
10559
|
"AppDelegate.m",
|
|
10560
|
-
...
|
|
10560
|
+
...import_node_fs51.default.readdirSync(import_node_path52.default.join(iosRoot, entry.name)).filter((name2) => name2.endsWith(".entitlements"))
|
|
10561
10561
|
];
|
|
10562
10562
|
for (const name2 of names) {
|
|
10563
10563
|
const relative2 = `${prefix}${entry.name}/${name2}`;
|
|
10564
10564
|
const file = import_node_path52.default.join(projectRoot, relative2);
|
|
10565
|
-
if (
|
|
10565
|
+
if (import_node_fs51.default.existsSync(file)) files[relative2] = import_node_fs51.default.readFileSync(file, "utf8");
|
|
10566
10566
|
}
|
|
10567
10567
|
} else if (/AppDelegate\.(?:swift|mm|m)$|\.entitlements$/.test(entry.name)) {
|
|
10568
10568
|
const relative2 = `${prefix}${entry.name}`;
|
|
10569
10569
|
const file = import_node_path52.default.join(projectRoot, relative2);
|
|
10570
|
-
if (
|
|
10570
|
+
if (import_node_fs51.default.existsSync(file)) files[relative2] = import_node_fs51.default.readFileSync(file, "utf8");
|
|
10571
10571
|
}
|
|
10572
10572
|
}
|
|
10573
10573
|
const identity2 = extractNativeAppIdentityFromFiles(
|
|
@@ -10585,40 +10585,40 @@ function readAndroidNativeAppIdentity(projectRoot, androidMergedManifest) {
|
|
|
10585
10585
|
const files = {};
|
|
10586
10586
|
if (androidMergedManifest) {
|
|
10587
10587
|
const file = import_node_path52.default.resolve(projectRoot, androidMergedManifest);
|
|
10588
|
-
if (!
|
|
10589
|
-
files[androidMergedManifest] =
|
|
10588
|
+
if (!import_node_fs51.default.existsSync(file)) return null;
|
|
10589
|
+
files[androidMergedManifest] = import_node_fs51.default.readFileSync(file, "utf8");
|
|
10590
10590
|
} else {
|
|
10591
10591
|
const androidRoot = import_node_path52.default.join(projectRoot, "android");
|
|
10592
|
-
if (!
|
|
10592
|
+
if (!import_node_fs51.default.existsSync(androidRoot)) return null;
|
|
10593
10593
|
const collect = (directory) => {
|
|
10594
|
-
for (const entry of
|
|
10594
|
+
for (const entry of import_node_fs51.default.readdirSync(directory, { withFileTypes: true })) {
|
|
10595
10595
|
const file = import_node_path52.default.join(directory, entry.name);
|
|
10596
10596
|
if (entry.isDirectory()) collect(file);
|
|
10597
10597
|
else if (entry.isFile() && entry.name === "AndroidManifest.xml")
|
|
10598
|
-
files[import_node_path52.default.relative(projectRoot, file).split(import_node_path52.default.sep).join("/")] =
|
|
10598
|
+
files[import_node_path52.default.relative(projectRoot, file).split(import_node_path52.default.sep).join("/")] = import_node_fs51.default.readFileSync(file, "utf8");
|
|
10599
10599
|
}
|
|
10600
10600
|
};
|
|
10601
|
-
for (const module2 of
|
|
10601
|
+
for (const module2 of import_node_fs51.default.readdirSync(androidRoot, { withFileTypes: true })) {
|
|
10602
10602
|
if (!module2.isDirectory()) continue;
|
|
10603
10603
|
const outputs = import_node_path52.default.join(
|
|
10604
10604
|
androidRoot,
|
|
10605
10605
|
module2.name,
|
|
10606
10606
|
"build/intermediates/merged_manifests"
|
|
10607
10607
|
);
|
|
10608
|
-
if (
|
|
10608
|
+
if (import_node_fs51.default.existsSync(outputs)) collect(outputs);
|
|
10609
10609
|
}
|
|
10610
10610
|
}
|
|
10611
10611
|
for (const manifest of Object.keys(files)) {
|
|
10612
10612
|
const resourceDirectory = androidMergedResourceValuesDirectory(manifest);
|
|
10613
10613
|
if (!resourceDirectory) continue;
|
|
10614
10614
|
const absolute = import_node_path52.default.resolve(projectRoot, resourceDirectory);
|
|
10615
|
-
if (!
|
|
10616
|
-
for (const entry of
|
|
10615
|
+
if (!import_node_fs51.default.existsSync(absolute)) continue;
|
|
10616
|
+
for (const entry of import_node_fs51.default.readdirSync(absolute, { withFileTypes: true })) {
|
|
10617
10617
|
if (!entry.isDirectory() || !/^values(?:-|$)/.test(entry.name)) continue;
|
|
10618
|
-
for (const resource of
|
|
10618
|
+
for (const resource of import_node_fs51.default.readdirSync(import_node_path52.default.join(absolute, entry.name))) {
|
|
10619
10619
|
if (!resource.endsWith(".xml")) continue;
|
|
10620
10620
|
const file = `${resourceDirectory}/${entry.name}/${resource}`;
|
|
10621
|
-
files[file] =
|
|
10621
|
+
files[file] = import_node_fs51.default.readFileSync(import_node_path52.default.resolve(projectRoot, file), "utf8");
|
|
10622
10622
|
}
|
|
10623
10623
|
}
|
|
10624
10624
|
}
|
|
@@ -10653,13 +10653,13 @@ function readIosNativeAppIdentity(projectRoot, parseInfoPlist, iosTarget, enviro
|
|
|
10653
10653
|
throw error;
|
|
10654
10654
|
}
|
|
10655
10655
|
const installedManifest = JSON.parse(
|
|
10656
|
-
|
|
10656
|
+
import_node_fs51.default.readFileSync(reanimatedManifestPath, "utf8")
|
|
10657
10657
|
);
|
|
10658
10658
|
const installedVersion = isRecord(installedManifest) ? nonEmptyString2(installedManifest.version) : void 0;
|
|
10659
10659
|
if (!installedVersion) throw new Error("Reanimated package version is malformed");
|
|
10660
10660
|
if (Number.parseInt(installedVersion, 10) < 4) return identity2;
|
|
10661
10661
|
const defaults = JSON.parse(
|
|
10662
|
-
|
|
10662
|
+
import_node_fs51.default.readFileSync(
|
|
10663
10663
|
import_node_path52.default.join(
|
|
10664
10664
|
import_node_path52.default.dirname(reanimatedManifestPath),
|
|
10665
10665
|
"src/featureFlags/staticFlags.json"
|
|
@@ -10668,7 +10668,7 @@ function readIosNativeAppIdentity(projectRoot, parseInfoPlist, iosTarget, enviro
|
|
|
10668
10668
|
)
|
|
10669
10669
|
);
|
|
10670
10670
|
if (!isRecord(defaults)) throw new Error("Reanimated static flags are malformed");
|
|
10671
|
-
const manifest = JSON.parse(
|
|
10671
|
+
const manifest = JSON.parse(import_node_fs51.default.readFileSync(projectManifestPath, "utf8"));
|
|
10672
10672
|
const reanimated = isRecord(manifest) ? manifest.reanimated : void 0;
|
|
10673
10673
|
const overrides = isRecord(reanimated) ? reanimated.staticFeatureFlags : void 0;
|
|
10674
10674
|
if (overrides !== void 0 && !isRecord(overrides)) {
|