peachsim 0.1.2412 → 0.1.2421
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/cli/catalog/content.ts +6 -3
- package/cli/catalog/meta.ts +63 -17
- package/cli/catalog/routes.ts +4 -0
- package/cli/cloud-box-artifact.ts +45 -24
- package/cli/cloud-client.ts +6 -2
- package/cli/command-registry.ts +3 -1
- package/cli/commands/control.ts +74 -55
- package/cli/commands/desktop.ts +3 -3
- package/cli/commands/electron.ts +7 -5
- package/cli/commands/kotlin.ts +8 -1
- package/cli/commands/platform.ts +5 -7
- package/cli/commands/profile.ts +2 -2
- package/cli/commands/settings.ts +90 -0
- package/cli/commands/shell-url.ts +18 -10
- package/cli/commands/swift.ts +3 -1
- package/cli/main.ts +6 -0
- package/cli/outbound-endpoints.ts +17 -15
- package/cli/settings-flags.ts +115 -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 +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +3606 -1815
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +3 -7
- package/dist-lib/config.mjs +3 -7
- package/dist-lib/detox/index.cjs +4 -4
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +17049 -15297
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +63367 -62445
- package/dist-lib/host/fetch-proxy-handler.cjs +1598 -211
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +2704 -1213
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +972 -246
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +1737 -246
- package/dist-lib/native-app-identity-project.cjs +35 -203
- package/dist-lib/native-app-identity-project.mjs +35 -203
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +26 -24
- package/dist-lib/public-origins-lib.json +198 -117
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +2 -2
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +21665 -20508
- package/dist-lib/swift-compile.cjs +48 -228
- package/dist-lib/swift-compile.mjs +48 -228
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -199
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +126 -247
- package/dist-lib/vite.cjs +5240 -3788
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/config.d.ts +1 -4
- package/kotlin/README.md +4 -3
- package/kotlin/sdk.tar.gz +0 -0
- package/kotlin/toolchain.json +3 -6
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h +1 -43
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CALayerContents.h +55 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Modules/module.modulemap +3 -3
- package/sdk/ios/usr/include/ObjectiveC.apinotes +0 -24
- package/sdk/ios/usr/include/grp.h +93 -0
- package/sdk/ios/usr/include/netinet/tcp.h +299 -0
- package/sdk/ios/wasm/include/netinet/tcp.h +6 -0
- package/sdk/ios/wasm/include/stdlib.h +1 -0
- package/sdk/ios/wasm/include/unistd.h +2 -0
- package/skills/contrast/SKILL.md +1 -0
- package/skills/peach-setup/SKILL.md +11 -1
- package/src/android-bridge-dependencies.ts +1 -1
- package/src/app-config.ts +7 -0
- package/src/binaryen.lock.json +21 -0
- package/src/cocoapods-trunk.ts +52 -0
- package/src/config.ts +21 -31
- package/src/kotlin-host.ts +1 -1
- package/src/kotlin-sdk.ts +7 -7
- package/src/kotlin-toolchain.ts +28 -24
- package/src/kotlinSdkContract.ts +2 -2
- package/src/native-bundles.ts +5 -2
- package/src/native-static-libraries.ts +38 -5
- package/src/podfile-cocoapods.ts +1473 -0
- package/src/podspec-cocoapods.ts +331 -106
- package/src/podspec-ruby-stdlib.ts +134 -19
- package/src/podspec-ruby.ts +199 -46
- package/src/settingsContract.ts +74 -0
- package/src/swift-compile.ts +1 -1
- package/src/swift-compiler-digest.ts +1 -0
- package/src/swift-host.ts +32 -7
- package/src/swift-packages.ts +35 -6
- package/src/swift-shared-sdk.ts +19 -0
- package/src/swift-toolchain.ts +2 -201
- package/src/turbo-source.ts +7 -37
- package/src/wasm-optimize.ts +4 -27
- package/src/xcode-project.ts +6 -1
package/dist-lib/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2421 | (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;
|
|
@@ -1173,7 +1173,7 @@ var init_src = __esm({
|
|
|
1173
1173
|
var runtime_companion_default;
|
|
1174
1174
|
var init_runtime_companion = __esm({
|
|
1175
1175
|
"runtime-companion.json"() {
|
|
1176
|
-
runtime_companion_default = { abi: 1, sha256: "
|
|
1176
|
+
runtime_companion_default = { abi: 1, sha256: "9bc75c6ccfa87cb58eff71992a2fafa21b4e7acbb37f0b4bef6f74279c98317a", file: "node/cli-9bc75c6ccfa87cb58eff71992a2fafa21b4e7acbb37f0b4bef6f74279c98317a.cjs" };
|
|
1177
1177
|
}
|
|
1178
1178
|
});
|
|
1179
1179
|
|
|
@@ -6285,7 +6285,7 @@ function isPeachConfig(value) {
|
|
|
6285
6285
|
"nativeHybridObjects",
|
|
6286
6286
|
"env",
|
|
6287
6287
|
"network",
|
|
6288
|
-
"
|
|
6288
|
+
"profiles",
|
|
6289
6289
|
"initialProps",
|
|
6290
6290
|
"initialState"
|
|
6291
6291
|
].every((key) => value[key] === void 0 || isRecord(value[key])) && (value.packages === void 0 || isRecord(value.packages) && Object.values(value.packages).every(isPackageStubs)) && (value.nativeHybridObjects === void 0 || isHybridObjects(value.nativeHybridObjects)) && (value.nativeViews === void 0 || isRecord(value.nativeViews) && Object.values(value.nativeViews).every(
|
|
@@ -6333,7 +6333,7 @@ function hasOwnKeys(value) {
|
|
|
6333
6333
|
}
|
|
6334
6334
|
function hasPeachConfig(config) {
|
|
6335
6335
|
if (!config) return false;
|
|
6336
|
-
return config.nativeRenderer !== void 0 || config.mapKit !== void 0 || typeof config.runtimeVersion === "string" && config.runtimeVersion.length > 0 || hasOwnKeys(config.modules) || hasOwnKeys(config.turboModules) || hasOwnKeys(config.nativeModules) || hasOwnKeys(config.nativeViews) || hasOwnKeys(config.nativeHybridObjects) || hasOwnKeys(config.env) || hasOwnKeys(config.network?.remap) || hasOwnKeys(config.
|
|
6336
|
+
return config.nativeRenderer !== void 0 || config.mapKit !== void 0 || typeof config.runtimeVersion === "string" && config.runtimeVersion.length > 0 || hasOwnKeys(config.modules) || hasOwnKeys(config.turboModules) || hasOwnKeys(config.nativeModules) || hasOwnKeys(config.nativeViews) || hasOwnKeys(config.nativeHybridObjects) || hasOwnKeys(config.env) || hasOwnKeys(config.network?.remap) || hasOwnKeys(config.initialProps) || hasOwnKeys(config.initialState);
|
|
6337
6337
|
}
|
|
6338
6338
|
function mergePeachConfig(base, override) {
|
|
6339
6339
|
if (!hasPeachConfig(base) && !hasPeachConfig(override)) return void 0;
|
|
@@ -6358,10 +6358,6 @@ function mergePeachConfig(base, override) {
|
|
|
6358
6358
|
network: {
|
|
6359
6359
|
remap: { ...base.network?.remap || {}, ...override.network?.remap || {} }
|
|
6360
6360
|
},
|
|
6361
|
-
settings: {
|
|
6362
|
-
...base.settings || {},
|
|
6363
|
-
...override.settings || {}
|
|
6364
|
-
},
|
|
6365
6361
|
initialProps: { ...base.initialProps || {}, ...override.initialProps || {} },
|
|
6366
6362
|
initialState: { ...base.initialState || {}, ...override.initialState || {} }
|
|
6367
6363
|
};
|
|
@@ -6411,6 +6407,7 @@ var init_kotlin_toolchain = __esm({
|
|
|
6411
6407
|
"use strict";
|
|
6412
6408
|
import_node_child_process5 = require("node:child_process");
|
|
6413
6409
|
import_node_util = require("node:util");
|
|
6410
|
+
init_src();
|
|
6414
6411
|
init_home_paths();
|
|
6415
6412
|
init_is_record();
|
|
6416
6413
|
run = (0, import_node_util.promisify)(import_node_child_process5.execFile);
|
|
@@ -6619,18 +6616,262 @@ var init_podspec_ruby_stdlib = __esm({
|
|
|
6619
6616
|
}
|
|
6620
6617
|
});
|
|
6621
6618
|
|
|
6619
|
+
// src/write-build-file.ts
|
|
6620
|
+
var init_write_build_file = __esm({
|
|
6621
|
+
"src/write-build-file.ts"() {
|
|
6622
|
+
"use strict";
|
|
6623
|
+
}
|
|
6624
|
+
});
|
|
6625
|
+
|
|
6626
|
+
// src/case-insensitive-header-overlay.ts
|
|
6627
|
+
var init_case_insensitive_header_overlay = __esm({
|
|
6628
|
+
"src/case-insensitive-header-overlay.ts"() {
|
|
6629
|
+
"use strict";
|
|
6630
|
+
init_write_build_file();
|
|
6631
|
+
}
|
|
6632
|
+
});
|
|
6633
|
+
|
|
6634
|
+
// src/swift-interface-bodies.ts
|
|
6635
|
+
var init_swift_interface_bodies = __esm({
|
|
6636
|
+
"src/swift-interface-bodies.ts"() {
|
|
6637
|
+
"use strict";
|
|
6638
|
+
}
|
|
6639
|
+
});
|
|
6640
|
+
|
|
6641
|
+
// src/swift-toolchain.ts
|
|
6642
|
+
function privateSwiftDistributionRoot() {
|
|
6643
|
+
const root = process.env[SWIFT_PRIVATE_DISTRIBUTION_ENV]?.trim();
|
|
6644
|
+
return root ? import_node_path13.default.resolve(root) : null;
|
|
6645
|
+
}
|
|
6646
|
+
var import_node_path13, SWIFT_HOST_COMPILER_RELEASE, SWIFT_HOST_COMPILER_ID, compilerArchives, SWIFT_PRIVATE_DISTRIBUTION_ENV;
|
|
6647
|
+
var init_swift_toolchain = __esm({
|
|
6648
|
+
"src/swift-toolchain.ts"() {
|
|
6649
|
+
"use strict";
|
|
6650
|
+
import_node_path13 = __toESM(require("node:path"), 1);
|
|
6651
|
+
SWIFT_HOST_COMPILER_RELEASE = "swift-6.4.0-RELEASE-custom-81b2c791c27276bf";
|
|
6652
|
+
SWIFT_HOST_COMPILER_ID = "81b2c791c27276bf";
|
|
6653
|
+
compilerArchives = {
|
|
6654
|
+
"swift-6.4.0-RELEASE-custom-cbd9cef4b408cc96": {
|
|
6655
|
+
identity: "cbd9cef4b408cc96",
|
|
6656
|
+
archive: "tar.zst",
|
|
6657
|
+
hosts: {
|
|
6658
|
+
"darwin-arm64": {
|
|
6659
|
+
checksum: "97ed2a6b10ae85e73422656fe7b44fdbd5e2343d7082ef2cb39476847988e615",
|
|
6660
|
+
manifest: "49c8002809ba90b16e2619653994bc776b5bc7ef26b98796233d8b425515b734"
|
|
6661
|
+
},
|
|
6662
|
+
"linux-x64": {
|
|
6663
|
+
checksum: "b404cffaa55b783098056cce0ef568d864bc92910dafa89dd0650d0e9d019918",
|
|
6664
|
+
manifest: "19c333d87f2ffc5c716e0561b3bcb0c2a6c6015ccd4a404a739099c6aa3b898f"
|
|
6665
|
+
},
|
|
6666
|
+
"linux-arm64": {
|
|
6667
|
+
checksum: "47d8572b0438f100494edaeb4c7b24fbf5c627d7d02a09fcd68a95c6d2d780f5",
|
|
6668
|
+
manifest: "b27a2bccb5a8a0988414951b3b4a4cd9d3acc315694f59ae4c166c2f41282171"
|
|
6669
|
+
}
|
|
6670
|
+
}
|
|
6671
|
+
},
|
|
6672
|
+
"swift-6.4.0-RELEASE-custom-fb42d2535739dfd2": {
|
|
6673
|
+
identity: "fb42d2535739dfd2",
|
|
6674
|
+
archive: "tar.zst",
|
|
6675
|
+
hosts: {
|
|
6676
|
+
"darwin-arm64": {
|
|
6677
|
+
checksum: "5e417d415ca74a435755e298a1d2d19ec47637fd03479de7a7d958eb382941f1",
|
|
6678
|
+
manifest: "eb5a0356aebabe89c7b2780f8809e13d6e2ad6f342fed87cf99f9a5834344363"
|
|
6679
|
+
},
|
|
6680
|
+
"linux-arm64": {
|
|
6681
|
+
checksum: "8ac7ad97f3d68bf485423001d1ce3cd92a8d4625313c47c8071867a9aeed3af9",
|
|
6682
|
+
manifest: "6126266dd65b43c43d719e4dc4d33c4ea6a3267f99f34e3638637439a995af2e"
|
|
6683
|
+
},
|
|
6684
|
+
"linux-x64": {
|
|
6685
|
+
checksum: "7d76463079619ba822123d250601bd35f6744ed5f8054a657ce472ce4dac76c8",
|
|
6686
|
+
manifest: "f1a6c0c61d15eddb2ecfa4c3a72a5154621881ac2f0c413162ff1d0f4343bd0e"
|
|
6687
|
+
}
|
|
6688
|
+
}
|
|
6689
|
+
},
|
|
6690
|
+
"swift-6.4.0-RELEASE-custom-11345d60dca47496": {
|
|
6691
|
+
identity: "11345d60dca47496",
|
|
6692
|
+
archive: "tar.zst",
|
|
6693
|
+
hosts: {
|
|
6694
|
+
"darwin-arm64": {
|
|
6695
|
+
checksum: "3df74a95c6f3ffa45aaa412027b390c99f9af81f6f6a41bf6d58a1a3079b5b02",
|
|
6696
|
+
manifest: "8e5ed4be6adc967e4c7d955eff004c96d5dc050a589d50e1b3e694b70f9afd63"
|
|
6697
|
+
},
|
|
6698
|
+
"linux-x64": {
|
|
6699
|
+
checksum: "a80e46add069932114bacc18640dc2e6a1a8f2a3ea7306a8ea8614d5cdf6e0e7",
|
|
6700
|
+
manifest: "662d8869534f3cce827b1205973db1f9a1e1d92027005a5bdb6893f9c2a0b39d"
|
|
6701
|
+
},
|
|
6702
|
+
"linux-arm64": {
|
|
6703
|
+
checksum: "4ca69bbc284fc7d54be57c80b744b88cce997d470ff23048795db54e7a6fbcba",
|
|
6704
|
+
manifest: "85df84da2f814b6a71c264b37b83a81965ac33b5d2b465443d60c08cc7bc5dc3"
|
|
6705
|
+
}
|
|
6706
|
+
}
|
|
6707
|
+
},
|
|
6708
|
+
[SWIFT_HOST_COMPILER_RELEASE]: {
|
|
6709
|
+
identity: SWIFT_HOST_COMPILER_ID,
|
|
6710
|
+
archive: "tar.gz",
|
|
6711
|
+
hosts: {
|
|
6712
|
+
"darwin-arm64": {
|
|
6713
|
+
checksum: "bc51b83d9e2e01c9873875326544734486d3ff3a868d650379c304045e8838d3",
|
|
6714
|
+
manifest: "a26eb9cb4fbd1dbd7faac20cced1ec5e67745bd358aa1180cc4abc1a0d21d6e6"
|
|
6715
|
+
},
|
|
6716
|
+
"linux-x64": {
|
|
6717
|
+
checksum: "ea63bbdecae14ff8e9e3f535b521fedc65d51b31521c5d10cc332cb91882d058",
|
|
6718
|
+
manifest: "b22b321ce3eb3fe044fa2122484a15c061f262c45d88a05b3fbace0a5bf038b6"
|
|
6719
|
+
},
|
|
6720
|
+
"linux-arm64": {
|
|
6721
|
+
checksum: "3eef4ed57830908515d8def2882e312f7cabeea57ccda5b2a7585401ef98cc48",
|
|
6722
|
+
manifest: "cfab342b8090fa83a697a391a7563cba14b771c24f07e1f8e19977f913ac88be"
|
|
6723
|
+
}
|
|
6724
|
+
}
|
|
6725
|
+
}
|
|
6726
|
+
};
|
|
6727
|
+
SWIFT_PRIVATE_DISTRIBUTION_ENV = "PEACH_SWIFT_PRIVATE_DISTRIBUTION";
|
|
6728
|
+
}
|
|
6729
|
+
});
|
|
6730
|
+
|
|
6731
|
+
// src/swift-objc-platform.ts
|
|
6732
|
+
var init_swift_objc_platform = __esm({
|
|
6733
|
+
"src/swift-objc-platform.ts"() {
|
|
6734
|
+
"use strict";
|
|
6735
|
+
init_swift_toolchain();
|
|
6736
|
+
}
|
|
6737
|
+
});
|
|
6738
|
+
|
|
6739
|
+
// src/swift-objc-sdk-tree.ts
|
|
6740
|
+
var init_swift_objc_sdk_tree = __esm({
|
|
6741
|
+
"src/swift-objc-sdk-tree.ts"() {
|
|
6742
|
+
"use strict";
|
|
6743
|
+
}
|
|
6744
|
+
});
|
|
6745
|
+
|
|
6746
|
+
// src/swift-objc-sdk.ts
|
|
6747
|
+
var IOS_SDK_TARGET;
|
|
6748
|
+
var init_swift_objc_sdk = __esm({
|
|
6749
|
+
"src/swift-objc-sdk.ts"() {
|
|
6750
|
+
"use strict";
|
|
6751
|
+
init_swift_objc_sdk_tree();
|
|
6752
|
+
init_swift_toolchain();
|
|
6753
|
+
IOS_SDK_TARGET = "arm64-apple-ios16.0-simulator";
|
|
6754
|
+
}
|
|
6755
|
+
});
|
|
6756
|
+
|
|
6757
|
+
// src/swift-package.ts
|
|
6758
|
+
function isSwiftNativeTranslationUnit(file) {
|
|
6759
|
+
return SWIFT_NATIVE_TRANSLATION_UNIT_EXTENSIONS.some(
|
|
6760
|
+
(extension) => file.endsWith(extension)
|
|
6761
|
+
);
|
|
6762
|
+
}
|
|
6763
|
+
function moduleMapTokens(text3) {
|
|
6764
|
+
return (text3.match(/\/\*[\s\S]*?\*\/|\/\/[^\n]*|"[^"]*"|[\w.*]+|[{}\[\]]/g) ?? []).filter((token) => !token.startsWith("/"));
|
|
6765
|
+
}
|
|
6766
|
+
function moduleMapName(text3) {
|
|
6767
|
+
const tokens = moduleMapTokens(text3);
|
|
6768
|
+
const index = tokens.findIndex(
|
|
6769
|
+
(token, i) => token === "module" && tokens[i - 1] !== "extern"
|
|
6770
|
+
);
|
|
6771
|
+
return index < 0 ? void 0 : tokens[index + 1];
|
|
6772
|
+
}
|
|
6773
|
+
var SWIFT_NATIVE_TRANSLATION_UNIT_EXTENSIONS, SWIFT_NATIVE_SOURCE_EXTENSIONS;
|
|
6774
|
+
var init_swift_package = __esm({
|
|
6775
|
+
"src/swift-package.ts"() {
|
|
6776
|
+
"use strict";
|
|
6777
|
+
SWIFT_NATIVE_TRANSLATION_UNIT_EXTENSIONS = [
|
|
6778
|
+
".c",
|
|
6779
|
+
".cc",
|
|
6780
|
+
".cpp",
|
|
6781
|
+
".cxx",
|
|
6782
|
+
".m",
|
|
6783
|
+
".mm"
|
|
6784
|
+
];
|
|
6785
|
+
SWIFT_NATIVE_SOURCE_EXTENSIONS = [
|
|
6786
|
+
...SWIFT_NATIVE_TRANSLATION_UNIT_EXTENSIONS,
|
|
6787
|
+
".s",
|
|
6788
|
+
".S",
|
|
6789
|
+
".h",
|
|
6790
|
+
".hh",
|
|
6791
|
+
".hpp",
|
|
6792
|
+
".hxx",
|
|
6793
|
+
".pch",
|
|
6794
|
+
".inc",
|
|
6795
|
+
".inl",
|
|
6796
|
+
".ipp",
|
|
6797
|
+
".def",
|
|
6798
|
+
".modulemap"
|
|
6799
|
+
];
|
|
6800
|
+
}
|
|
6801
|
+
});
|
|
6802
|
+
|
|
6803
|
+
// src/swift-standin-emit.ts
|
|
6804
|
+
var init_swift_standin_emit = __esm({
|
|
6805
|
+
"src/swift-standin-emit.ts"() {
|
|
6806
|
+
"use strict";
|
|
6807
|
+
}
|
|
6808
|
+
});
|
|
6809
|
+
|
|
6810
|
+
// src/swift-objc-standin.ts
|
|
6811
|
+
var import_node_crypto6, NATIVE_GRAPH_SDK_VERSION, WASI_EMULATION, WASI_EMULATION_FLAGS, NATIVE_GRAPH_INPUTS, NATIVE_GRAPH_ID;
|
|
6812
|
+
var init_swift_objc_standin = __esm({
|
|
6813
|
+
"src/swift-objc-standin.ts"() {
|
|
6814
|
+
"use strict";
|
|
6815
|
+
import_node_crypto6 = require("node:crypto");
|
|
6816
|
+
init_case_insensitive_header_overlay();
|
|
6817
|
+
init_is_record();
|
|
6818
|
+
init_swift_interface_bodies();
|
|
6819
|
+
init_swift_objc_platform();
|
|
6820
|
+
init_swift_objc_sdk();
|
|
6821
|
+
init_swift_package();
|
|
6822
|
+
init_swift_standin_emit();
|
|
6823
|
+
init_swift_toolchain();
|
|
6824
|
+
NATIVE_GRAPH_SDK_VERSION = "27.1";
|
|
6825
|
+
WASI_EMULATION = [
|
|
6826
|
+
"_WASI_EMULATED_SIGNAL",
|
|
6827
|
+
"_WASI_EMULATED_MMAN",
|
|
6828
|
+
"_WASI_EMULATED_PROCESS_CLOCKS"
|
|
6829
|
+
];
|
|
6830
|
+
WASI_EMULATION_FLAGS = WASI_EMULATION.map((name2) => `-D${name2}`);
|
|
6831
|
+
NATIVE_GRAPH_INPUTS = {
|
|
6832
|
+
sdk: NATIVE_GRAPH_SDK_VERSION,
|
|
6833
|
+
settings: "e68503e5e534e9194af5efe8c636ca8b824e2d8237c5f38ec84aa4d155bc8418",
|
|
6834
|
+
build: "ff785237ba22f1d8f347a5c4f4c68400a387c6d935ef3a443545a72faef57e70",
|
|
6835
|
+
compiler: "Apple Swift version 6.4 (swiftlang-6.4.0.34.1 clang-2100.3.34.1)",
|
|
6836
|
+
target: IOS_SDK_TARGET
|
|
6837
|
+
};
|
|
6838
|
+
NATIVE_GRAPH_ID = (0, import_node_crypto6.createHash)("sha256").update(JSON.stringify(NATIVE_GRAPH_INPUTS)).digest("hex");
|
|
6839
|
+
}
|
|
6840
|
+
});
|
|
6841
|
+
|
|
6622
6842
|
// src/podspec-cocoapods.ts
|
|
6623
|
-
var PRELUDE;
|
|
6843
|
+
var PRELUDE, HOST_PROBES;
|
|
6624
6844
|
var init_podspec_cocoapods = __esm({
|
|
6625
6845
|
"src/podspec-cocoapods.ts"() {
|
|
6626
6846
|
"use strict";
|
|
6627
6847
|
init_podspec_ruby();
|
|
6628
6848
|
init_podspec_ruby_stdlib();
|
|
6849
|
+
init_swift_objc_standin();
|
|
6629
6850
|
PRELUDE = String.raw`
|
|
6630
6851
|
module Pod
|
|
6631
6852
|
VERSION = '1.17.0'
|
|
6632
6853
|
class Informative < StandardError; end
|
|
6633
6854
|
class PlainInformative < StandardError; end
|
|
6855
|
+
|
|
6856
|
+
module Executable
|
|
6857
|
+
def self.which(program)
|
|
6858
|
+
program = program.to_s
|
|
6859
|
+
paths = ENV.fetch('PATH') { '' }.split(File::PATH_SEPARATOR)
|
|
6860
|
+
paths.unshift('./')
|
|
6861
|
+
paths.uniq!
|
|
6862
|
+
paths.each do |path|
|
|
6863
|
+
bin = File.expand_path(program, path)
|
|
6864
|
+
return bin if File.file?(bin) && File.executable?(bin)
|
|
6865
|
+
end
|
|
6866
|
+
nil
|
|
6867
|
+
end
|
|
6868
|
+
|
|
6869
|
+
def self.which!(program)
|
|
6870
|
+
which(program).tap do |bin|
|
|
6871
|
+
raise Informative, "Unable to locate the executable '#{program}'" unless bin
|
|
6872
|
+
end
|
|
6873
|
+
end
|
|
6874
|
+
end
|
|
6634
6875
|
class Version < Gem::Version; end
|
|
6635
6876
|
|
|
6636
6877
|
class Requirement
|
|
@@ -6639,6 +6880,9 @@ module Pod
|
|
|
6639
6880
|
def self.create(input)
|
|
6640
6881
|
input.is_a?(Requirement) ? input : new(input)
|
|
6641
6882
|
end
|
|
6883
|
+
def self.default
|
|
6884
|
+
new('>= 0')
|
|
6885
|
+
end
|
|
6642
6886
|
def initialize(*requirements)
|
|
6643
6887
|
requirements = requirements.flatten
|
|
6644
6888
|
requirements.compact!
|
|
@@ -6651,41 +6895,200 @@ module Pod
|
|
|
6651
6895
|
raise ArgumentError, "Illformed requirement [#{requirement.inspect}]" unless match
|
|
6652
6896
|
[match[1] || '=', Version.new(match[2])]
|
|
6653
6897
|
end
|
|
6898
|
+
def none?
|
|
6899
|
+
requirements == [['>=', Version.new('0')]]
|
|
6900
|
+
end
|
|
6901
|
+
def satisfied_by?(version)
|
|
6902
|
+
requirements.all? do |op, rv|
|
|
6903
|
+
case op
|
|
6904
|
+
when '=' then version == rv
|
|
6905
|
+
when '!=' then version != rv
|
|
6906
|
+
when '>' then version > rv
|
|
6907
|
+
when '<' then version < rv
|
|
6908
|
+
when '>=' then version >= rv
|
|
6909
|
+
when '<=' then version <= rv
|
|
6910
|
+
when '~>' then version >= rv && version.release < rv.bump
|
|
6911
|
+
end
|
|
6912
|
+
end
|
|
6913
|
+
end
|
|
6914
|
+
def ==(other)
|
|
6915
|
+
other.is_a?(Requirement) && requirements.sort_by(&:to_s) == other.requirements.sort_by(&:to_s)
|
|
6916
|
+
end
|
|
6917
|
+
def as_list
|
|
6918
|
+
requirements.map { |op, version| "#{op} #{version}" }.sort
|
|
6919
|
+
end
|
|
6920
|
+
def prerelease?
|
|
6921
|
+
requirements.any? { |_op, version| version.prerelease? }
|
|
6922
|
+
end
|
|
6654
6923
|
def to_s
|
|
6655
|
-
|
|
6924
|
+
as_list.join(', ')
|
|
6656
6925
|
end
|
|
6657
6926
|
end
|
|
6658
6927
|
|
|
6659
6928
|
class Dependency
|
|
6660
|
-
|
|
6929
|
+
attr_accessor :name
|
|
6930
|
+
attr_accessor :external_source
|
|
6931
|
+
attr_accessor :podspec_repo
|
|
6661
6932
|
def initialize(name = nil, *requirements)
|
|
6933
|
+
if requirements.last.is_a?(Hash)
|
|
6934
|
+
additional_params = requirements.pop.select { |_, v| !v.nil? }
|
|
6935
|
+
additional_params = nil if additional_params.empty?
|
|
6936
|
+
if additional_params && @podspec_repo = additional_params[:source]
|
|
6937
|
+
additional_params.delete(:source)
|
|
6938
|
+
unless additional_params.empty?
|
|
6939
|
+
raise Informative, 'A dependency with a specified podspec repo may ' \
|
|
6940
|
+
"not include other source parameters (#{name})."
|
|
6941
|
+
end
|
|
6942
|
+
elsif @external_source = additional_params
|
|
6943
|
+
unless requirements.empty?
|
|
6944
|
+
raise Informative, 'A dependency with an external source may not ' \
|
|
6945
|
+
"specify version requirements (#{name})."
|
|
6946
|
+
end
|
|
6947
|
+
end
|
|
6948
|
+
end
|
|
6949
|
+
if requirements.length == 1 && requirements.first.is_a?(Requirement)
|
|
6950
|
+
requirements = requirements.first
|
|
6951
|
+
end
|
|
6662
6952
|
@name = name
|
|
6663
6953
|
@requirement = Requirement.create(requirements)
|
|
6954
|
+
@specific_requirement ||= nil
|
|
6955
|
+
@external_source ||= nil
|
|
6664
6956
|
end
|
|
6665
|
-
|
|
6666
|
-
|
|
6667
|
-
class Platform
|
|
6668
|
-
attr_reader :name, :deployment_target
|
|
6669
|
-
def initialize(name, deployment_target = nil)
|
|
6670
|
-
@name = name.to_s == 'macos' ? :osx : name.to_sym
|
|
6671
|
-
@deployment_target = deployment_target.nil? ? nil : Version.new(deployment_target)
|
|
6957
|
+
def requirement
|
|
6958
|
+
@specific_requirement || @requirement
|
|
6672
6959
|
end
|
|
6673
|
-
def
|
|
6674
|
-
|
|
6960
|
+
def specific_version
|
|
6961
|
+
@specific_version
|
|
6675
6962
|
end
|
|
6676
|
-
def
|
|
6677
|
-
|
|
6963
|
+
def specific_version=(version)
|
|
6964
|
+
@specific_version = version
|
|
6965
|
+
@specific_requirement = Requirement.new(version)
|
|
6678
6966
|
end
|
|
6679
|
-
def
|
|
6680
|
-
name
|
|
6967
|
+
def root_name
|
|
6968
|
+
Specification.root_name(name)
|
|
6681
6969
|
end
|
|
6682
|
-
|
|
6970
|
+
def prerelease?
|
|
6971
|
+
requirement.prerelease?
|
|
6972
|
+
end
|
|
6973
|
+
def external?
|
|
6974
|
+
!@external_source.nil?
|
|
6975
|
+
end
|
|
6976
|
+
def local?
|
|
6977
|
+
external_source[:path] if external_source
|
|
6978
|
+
end
|
|
6979
|
+
def to_root_dependency
|
|
6980
|
+
dep = dup
|
|
6981
|
+
dep.name = root_name
|
|
6982
|
+
dep
|
|
6983
|
+
end
|
|
6984
|
+
def ==(other)
|
|
6985
|
+
other.is_a?(Dependency) && name == other.name && external_source == other.external_source &&
|
|
6986
|
+
podspec_repo == other.podspec_repo && requirement == other.requirement
|
|
6987
|
+
end
|
|
6988
|
+
alias_method :eql?, :==
|
|
6989
|
+
def hash
|
|
6990
|
+
name.hash ^ requirement.to_s.hash ^ external_source.hash
|
|
6991
|
+
end
|
|
6992
|
+
def <=>(other)
|
|
6993
|
+
name <=> other.name
|
|
6994
|
+
end
|
|
6995
|
+
def to_s
|
|
6996
|
+
version = ''
|
|
6997
|
+
if external?
|
|
6998
|
+
version += external_source_description(external_source)
|
|
6999
|
+
elsif requirement != Requirement.default
|
|
7000
|
+
version += requirement.to_s
|
|
7001
|
+
end
|
|
7002
|
+
result = name.dup
|
|
7003
|
+
result += " (#{version})" unless version.empty?
|
|
7004
|
+
result
|
|
7005
|
+
end
|
|
7006
|
+
def inspect
|
|
7007
|
+
"<#{self.class} name=#{name} requirements=#{requirement} source=#{podspec_repo || 'nil'} external_source=#{external_source || 'nil'}>"
|
|
7008
|
+
end
|
|
7009
|
+
private
|
|
7010
|
+
def external_source_description(source)
|
|
7011
|
+
if source.key?(:git)
|
|
7012
|
+
desc = "\`#{source[:git]}\`"
|
|
7013
|
+
desc << ", commit \`#{source[:commit]}\`" if source[:commit]
|
|
7014
|
+
desc << ", branch \`#{source[:branch]}\`" if source[:branch]
|
|
7015
|
+
desc << ", tag \`#{source[:tag]}\`" if source[:tag]
|
|
7016
|
+
elsif source.key?(:hg)
|
|
7017
|
+
desc = "\`#{source[:hg]}\`"
|
|
7018
|
+
elsif source.key?(:svn)
|
|
7019
|
+
desc = "\`#{source[:svn]}\`"
|
|
7020
|
+
elsif source.key?(:podspec)
|
|
7021
|
+
desc = "\`#{source[:podspec]}\`"
|
|
7022
|
+
elsif source.key?(:path)
|
|
7023
|
+
desc = "\`#{source[:path]}\`"
|
|
7024
|
+
else
|
|
7025
|
+
desc = "\`#{source}\`"
|
|
7026
|
+
end
|
|
7027
|
+
"from #{desc}"
|
|
7028
|
+
end
|
|
7029
|
+
end
|
|
7030
|
+
|
|
7031
|
+
class Platform
|
|
7032
|
+
attr_reader :name, :deployment_target
|
|
7033
|
+
def initialize(name, deployment_target = nil)
|
|
7034
|
+
@name = name.to_s == 'macos' ? :osx : name.to_sym
|
|
7035
|
+
@deployment_target = deployment_target.nil? ? nil : Version.new(deployment_target)
|
|
7036
|
+
end
|
|
7037
|
+
def ==(other)
|
|
7038
|
+
other.is_a?(Platform) && name == other.name && deployment_target == other.deployment_target
|
|
7039
|
+
end
|
|
7040
|
+
def to_sym
|
|
7041
|
+
name
|
|
7042
|
+
end
|
|
7043
|
+
def self.string_name(symbolic_name)
|
|
7044
|
+
case symbolic_name
|
|
7045
|
+
when :ios then 'iOS'
|
|
7046
|
+
when :osx then 'macOS'
|
|
7047
|
+
when :watchos then 'watchOS'
|
|
7048
|
+
when :tvos then 'tvOS'
|
|
7049
|
+
when :visionos then 'visionOS'
|
|
7050
|
+
else symbolic_name.to_s
|
|
7051
|
+
end
|
|
7052
|
+
end
|
|
7053
|
+
def string_name
|
|
7054
|
+
self.class.string_name(name)
|
|
7055
|
+
end
|
|
7056
|
+
def safe_string_name
|
|
7057
|
+
string_name.tr(' ', '')
|
|
7058
|
+
end
|
|
7059
|
+
def to_s
|
|
7060
|
+
s = self.class.string_name(name)
|
|
7061
|
+
s += " #{deployment_target}" if deployment_target
|
|
7062
|
+
s
|
|
7063
|
+
end
|
|
7064
|
+
def inspect
|
|
7065
|
+
"#<#{self.class.name} name=#{name.inspect} deployment_target=#{deployment_target.to_s.inspect}>"
|
|
7066
|
+
end
|
|
7067
|
+
def hash
|
|
7068
|
+
name.hash ^ deployment_target.hash
|
|
7069
|
+
end
|
|
7070
|
+
def eql?(other)
|
|
7071
|
+
self == other
|
|
7072
|
+
end
|
|
7073
|
+
def supports?(other)
|
|
7074
|
+
other = Platform.new(other) unless other.is_a?(Platform)
|
|
7075
|
+
if other.deployment_target && deployment_target
|
|
7076
|
+
(other.name == name) && (deployment_target >= other.deployment_target)
|
|
7077
|
+
else
|
|
7078
|
+
other.name == name
|
|
7079
|
+
end
|
|
7080
|
+
end
|
|
7081
|
+
end
|
|
6683
7082
|
|
|
6684
7083
|
class Config
|
|
6685
7084
|
attr_accessor :installation_root, :podfile, :lockfile
|
|
7085
|
+
alias_method :project_root, :installation_root
|
|
6686
7086
|
def self.instance
|
|
6687
7087
|
@instance ||= new
|
|
6688
7088
|
end
|
|
7089
|
+
def podfile_path
|
|
7090
|
+
installation_root + 'Podfile'
|
|
7091
|
+
end
|
|
6689
7092
|
def sandbox_root
|
|
6690
7093
|
installation_root + 'Pods'
|
|
6691
7094
|
end
|
|
@@ -7013,7 +7416,7 @@ module Pod
|
|
|
7013
7416
|
end
|
|
7014
7417
|
|
|
7015
7418
|
def to_s
|
|
7016
|
-
specified_version = attributes_hash['version'] || ''
|
|
7419
|
+
specified_version = root.attributes_hash['version'] || ''
|
|
7017
7420
|
if name && !specified_version.to_s.empty?
|
|
7018
7421
|
"#{name} (#{specified_version})"
|
|
7019
7422
|
elsif name
|
|
@@ -7387,6 +7790,15 @@ module Pod
|
|
|
7387
7790
|
end
|
|
7388
7791
|
end
|
|
7389
7792
|
`;
|
|
7793
|
+
HOST_PROBES = /* @__PURE__ */ new Map([
|
|
7794
|
+
["xcrun --sdk iphoneos --show-sdk-version", `${NATIVE_GRAPH_SDK_VERSION}
|
|
7795
|
+
`],
|
|
7796
|
+
["xcrun --sdk iphonesimulator --show-sdk-version", `${NATIVE_GRAPH_SDK_VERSION}
|
|
7797
|
+
`],
|
|
7798
|
+
["xcodebuild -version", `Xcode ${NATIVE_GRAPH_SDK_VERSION}
|
|
7799
|
+
`],
|
|
7800
|
+
["/usr/sbin/sysctl -n hw.optional.arm64 2>&1", "1\n"]
|
|
7801
|
+
]);
|
|
7390
7802
|
}
|
|
7391
7803
|
});
|
|
7392
7804
|
|
|
@@ -7534,7 +7946,7 @@ async function cliAdvertises(cli, args, token, appRoot) {
|
|
|
7534
7946
|
}
|
|
7535
7947
|
function declaresDependency(appRoot, name2) {
|
|
7536
7948
|
const manifest = JSON.parse(
|
|
7537
|
-
import_node_fs15.default.readFileSync(
|
|
7949
|
+
import_node_fs15.default.readFileSync(import_node_path14.default.join(appRoot, "package.json"), "utf8")
|
|
7538
7950
|
);
|
|
7539
7951
|
return isRecord(manifest) && ["dependencies", "devDependencies"].some((field) => {
|
|
7540
7952
|
const group = manifest[field];
|
|
@@ -7562,15 +7974,15 @@ async function reactNativeAutolinkingConfig(appRoot, platform, signal) {
|
|
|
7562
7974
|
});
|
|
7563
7975
|
}
|
|
7564
7976
|
async function readAutolinkingConfig(appRoot, platform) {
|
|
7565
|
-
const appRequire = (0, import_node_module2.createRequire)(
|
|
7566
|
-
const expoManifest2 = appRequire.resolve.paths("expo")?.map((directory) =>
|
|
7977
|
+
const appRequire = (0, import_node_module2.createRequire)(import_node_path14.default.join(appRoot, "package.json"));
|
|
7978
|
+
const expoManifest2 = appRequire.resolve.paths("expo")?.map((directory) => import_node_path14.default.join(directory, "expo/package.json")).find((manifest) => import_node_fs15.default.existsSync(manifest));
|
|
7567
7979
|
const expoRequire = expoManifest2 ? (0, import_node_module2.createRequire)(import_node_fs15.default.realpathSync(expoManifest2)) : appRequire;
|
|
7568
|
-
const nativeFile = (platform === "ios" ? ["ios/Podfile"] : ["android/settings.gradle", "android/settings.gradle.kts"]).map((name2) =>
|
|
7980
|
+
const nativeFile = (platform === "ios" ? ["ios/Podfile"] : ["android/settings.gradle", "android/settings.gradle.kts"]).map((name2) => import_node_path14.default.join(appRoot, name2)).find((file) => import_node_fs15.default.existsSync(file));
|
|
7569
7981
|
const nativeSource = nativeFile ? import_node_fs15.default.readFileSync(nativeFile, "utf8") : null;
|
|
7570
7982
|
const asksExpo = process.env.EXPO_USE_COMMUNITY_AUTOLINKING !== "1" && (nativeSource === null ? declaresDependency(appRoot, "expo") : nativeSource.includes("expo-modules-autolinking") || platform === "android" && nativeSource.includes("expoAutolinking.rnConfigCommand"));
|
|
7571
|
-
const expoAutolinker = asksExpo ? [appRequire, expoRequire].flatMap((req) => req.resolve.paths("expo-modules-autolinking") ?? []).map((directory) =>
|
|
7983
|
+
const expoAutolinker = asksExpo ? [appRequire, expoRequire].flatMap((req) => req.resolve.paths("expo-modules-autolinking") ?? []).map((directory) => import_node_path14.default.join(directory, "expo-modules-autolinking/package.json")).find((manifest) => import_node_fs15.default.existsSync(manifest)) : void 0;
|
|
7572
7984
|
if (expoAutolinker) {
|
|
7573
|
-
const cli2 =
|
|
7985
|
+
const cli2 = import_node_path14.default.join(import_node_path14.default.dirname(expoAutolinker), "bin/expo-modules-autolinking.js");
|
|
7574
7986
|
if (await cliAdvertises(cli2, ["--help"], "react-native-config", appRoot)) {
|
|
7575
7987
|
const args = [
|
|
7576
7988
|
"react-native-config",
|
|
@@ -7601,7 +8013,7 @@ async function readAutolinkingConfig(appRoot, platform) {
|
|
|
7601
8013
|
(entry) => typeof entry === "string"
|
|
7602
8014
|
);
|
|
7603
8015
|
if (bin === void 0) throw new Error(`${cliManifest} declares no CLI bin`);
|
|
7604
|
-
const cliPath =
|
|
8016
|
+
const cliPath = import_node_path14.default.join(import_node_path14.default.dirname(cliManifest), bin);
|
|
7605
8017
|
const configManifest = JSON.parse(
|
|
7606
8018
|
import_node_fs15.default.readFileSync(
|
|
7607
8019
|
(0, import_node_module2.createRequire)(cliManifest).resolve(
|
|
@@ -7622,13 +8034,13 @@ async function readAutolinkingConfig(appRoot, platform) {
|
|
|
7622
8034
|
})
|
|
7623
8035
|
);
|
|
7624
8036
|
}
|
|
7625
|
-
var import_node_fs15, import_node_module2,
|
|
8037
|
+
var import_node_fs15, import_node_module2, import_node_path14, inFlight;
|
|
7626
8038
|
var init_react_native_autolinking = __esm({
|
|
7627
8039
|
"src/react-native-autolinking.ts"() {
|
|
7628
8040
|
"use strict";
|
|
7629
8041
|
import_node_fs15 = __toESM(require("node:fs"), 1);
|
|
7630
8042
|
import_node_module2 = require("node:module");
|
|
7631
|
-
|
|
8043
|
+
import_node_path14 = __toESM(require("node:path"), 1);
|
|
7632
8044
|
init_autolinker_process();
|
|
7633
8045
|
init_is_record();
|
|
7634
8046
|
inFlight = /* @__PURE__ */ new Map();
|
|
@@ -7643,19 +8055,19 @@ function readJson(root, relative3) {
|
|
|
7643
8055
|
return JSON.parse(
|
|
7644
8056
|
readPackageFile(
|
|
7645
8057
|
root,
|
|
7646
|
-
|
|
8058
|
+
import_node_path15.default.join(root, relative3),
|
|
7647
8059
|
MAX_SWIFT_COMPILE_SOURCE_BYTES
|
|
7648
8060
|
).toString("utf8")
|
|
7649
8061
|
);
|
|
7650
8062
|
}
|
|
7651
8063
|
function registrations(root) {
|
|
7652
|
-
const directory =
|
|
8064
|
+
const directory = import_node_path15.default.join(root, "nitrogen/generated/ios");
|
|
7653
8065
|
const initializers = import_node_fs16.default.readdirSync(directory).filter((file) => file.endsWith("Autolinking.mm"));
|
|
7654
8066
|
if (initializers.length !== 1)
|
|
7655
8067
|
throw new Error(`${root}: expected one generated Nitro iOS initializer`);
|
|
7656
8068
|
const source = readPackageFile(
|
|
7657
8069
|
root,
|
|
7658
|
-
|
|
8070
|
+
import_node_path15.default.join(directory, initializers[0]),
|
|
7659
8071
|
MAX_SWIFT_COMPILE_SOURCE_BYTES
|
|
7660
8072
|
).toString("utf8");
|
|
7661
8073
|
const namespaces = [
|
|
@@ -7718,18 +8130,18 @@ function registrations(root) {
|
|
|
7718
8130
|
if (new Set(classes.map(({ name: name2 }) => name2)).size !== classes.length)
|
|
7719
8131
|
throw new Error(`${root}: duplicate generated Nitro iOS registration`);
|
|
7720
8132
|
classes.sort((a, b) => a.name.localeCompare(b.name));
|
|
7721
|
-
const ios =
|
|
8133
|
+
const ios = import_node_path15.default.join(root, "ios");
|
|
7722
8134
|
if (swiftModule === null && import_node_fs16.default.existsSync(ios) && import_node_fs16.default.readdirSync(ios, { recursive: true, encoding: "utf8" }).some((file) => file.endsWith(".swift") && !file.startsWith("Tests")))
|
|
7723
8135
|
swiftModule = initializers[0].slice(0, -"Autolinking.mm".length);
|
|
7724
8136
|
return { namespace, swiftModule, classes, views: viewNames(root, classes) };
|
|
7725
8137
|
}
|
|
7726
8138
|
function viewNames(root, classes) {
|
|
7727
|
-
const directory =
|
|
8139
|
+
const directory = import_node_path15.default.join(root, "nitrogen/generated/shared/json");
|
|
7728
8140
|
if (!import_node_fs16.default.existsSync(directory)) return /* @__PURE__ */ new Set();
|
|
7729
8141
|
const views = /* @__PURE__ */ new Set();
|
|
7730
8142
|
for (const file of import_node_fs16.default.readdirSync(directory)) {
|
|
7731
8143
|
if (!file.endsWith("Config.json")) continue;
|
|
7732
|
-
const config = readJson(root,
|
|
8144
|
+
const config = readJson(root, import_node_path15.default.join("nitrogen/generated/shared/json", file));
|
|
7733
8145
|
const name2 = object(config) ? config.uiViewClassName : void 0;
|
|
7734
8146
|
if (typeof name2 === "string" && classes.some((entry) => entry.name === name2))
|
|
7735
8147
|
views.add(name2);
|
|
@@ -7737,7 +8149,7 @@ function viewNames(root, classes) {
|
|
|
7737
8149
|
return views;
|
|
7738
8150
|
}
|
|
7739
8151
|
function hasNitroIosInitializer(root) {
|
|
7740
|
-
const generated =
|
|
8152
|
+
const generated = import_node_path15.default.join(root, "nitrogen/generated/ios");
|
|
7741
8153
|
return import_node_fs16.default.existsSync(generated) && import_node_fs16.default.readdirSync(generated).some((file) => file.endsWith("Autolinking.mm"));
|
|
7742
8154
|
}
|
|
7743
8155
|
function nitroRegisteredNames(root) {
|
|
@@ -7745,12 +8157,12 @@ function nitroRegisteredNames(root) {
|
|
|
7745
8157
|
const { classes, views } = registrations(root);
|
|
7746
8158
|
return { names: classes.map(({ name: name2 }) => name2), views: [...views].sort() };
|
|
7747
8159
|
}
|
|
7748
|
-
var import_node_fs16,
|
|
8160
|
+
var import_node_fs16, import_node_path15, import_zod3;
|
|
7749
8161
|
var init_nitro_source = __esm({
|
|
7750
8162
|
"src/nitro-source.ts"() {
|
|
7751
8163
|
"use strict";
|
|
7752
8164
|
import_node_fs16 = __toESM(require("node:fs"), 1);
|
|
7753
|
-
|
|
8165
|
+
import_node_path15 = __toESM(require("node:path"), 1);
|
|
7754
8166
|
import_zod3 = require("zod");
|
|
7755
8167
|
init_nitro_dependencies();
|
|
7756
8168
|
init_podspec_sources();
|
|
@@ -7875,7 +8287,7 @@ function resolveAppStubs(appDir, config, configDir) {
|
|
|
7875
8287
|
const { modules, views, hybridObjects } = expandStubs(appDir, source);
|
|
7876
8288
|
assertRegisteredHybridObjects(appDir, source, hybridObjects);
|
|
7877
8289
|
for (const [name2, answer] of Object.entries(hybridObjects))
|
|
7878
|
-
nativeHybridObjects[name2] = answer === "unsupported" ? answer : { file: (0,
|
|
8290
|
+
nativeHybridObjects[name2] = answer === "unsupported" ? answer : { file: (0, import_node_path16.resolve)(source.baseDir, answer) };
|
|
7879
8291
|
for (const [name2, stub] of Object.entries(modules))
|
|
7880
8292
|
nativeModules[name2] = lowerStub(stub, source.baseDir);
|
|
7881
8293
|
for (const [name2, stub] of Object.entries(views))
|
|
@@ -7940,10 +8352,10 @@ function assertRegisteredHybridObjects(appDir, source, hybridObjects) {
|
|
|
7940
8352
|
);
|
|
7941
8353
|
}
|
|
7942
8354
|
function lowerStub(stub, baseDir) {
|
|
7943
|
-
return stub === "noop" ? stub : { file: (0,
|
|
8355
|
+
return stub === "noop" ? stub : { file: (0, import_node_path16.resolve)(baseDir, stub) };
|
|
7944
8356
|
}
|
|
7945
8357
|
function readPackageJson(dir) {
|
|
7946
|
-
const text3 = readSmallFile((0,
|
|
8358
|
+
const text3 = readSmallFile((0, import_node_path16.join)(dir, "package.json"));
|
|
7947
8359
|
if (!text3) return null;
|
|
7948
8360
|
try {
|
|
7949
8361
|
const parsed = JSON.parse(text3);
|
|
@@ -7955,9 +8367,9 @@ function readPackageJson(dir) {
|
|
|
7955
8367
|
function installedPackageDir(appDir, name2) {
|
|
7956
8368
|
let current = appDir;
|
|
7957
8369
|
while (true) {
|
|
7958
|
-
const dir = (0,
|
|
7959
|
-
if ((0, import_node_fs17.existsSync)((0,
|
|
7960
|
-
const parent = (0,
|
|
8370
|
+
const dir = (0, import_node_path16.join)(current, "node_modules", name2);
|
|
8371
|
+
if ((0, import_node_fs17.existsSync)((0, import_node_path16.join)(dir, "package.json"))) return (0, import_node_fs17.realpathSync)(dir);
|
|
8372
|
+
const parent = (0, import_node_path16.dirname)(current);
|
|
7961
8373
|
if (parent === current) return null;
|
|
7962
8374
|
current = parent;
|
|
7963
8375
|
}
|
|
@@ -8061,7 +8473,7 @@ function mergeRequests(previous, next) {
|
|
|
8061
8473
|
function packageNativeRequests(dir) {
|
|
8062
8474
|
const found = /* @__PURE__ */ new Map();
|
|
8063
8475
|
const directories = scanRepository(dir).directories.filter((sub) => {
|
|
8064
|
-
const segments = (0,
|
|
8476
|
+
const segments = (0, import_node_path16.relative)(dir, sub).split("/");
|
|
8065
8477
|
return !NATIVE_SOURCE_DIRS.has(segments[0]) && !segments.some((segment) => PACKAGE_SKIP_DIRS.has(segment));
|
|
8066
8478
|
});
|
|
8067
8479
|
let files = 0;
|
|
@@ -8069,7 +8481,7 @@ function packageNativeRequests(dir) {
|
|
|
8069
8481
|
for (const name2 of listDir(sub)) {
|
|
8070
8482
|
if (!SOURCE_FILE.test(name2) || name2.endsWith(".d.ts") || files >= 2e3) continue;
|
|
8071
8483
|
files++;
|
|
8072
|
-
const file = (0,
|
|
8484
|
+
const file = (0, import_node_path16.join)(sub, name2);
|
|
8073
8485
|
const text3 = readSmallFile(file);
|
|
8074
8486
|
if (!text3) continue;
|
|
8075
8487
|
for (const { line: _line, ...request } of sourceNativeRequests(file, text3, true)) {
|
|
@@ -8200,14 +8612,14 @@ function readSmallFile(file) {
|
|
|
8200
8612
|
}
|
|
8201
8613
|
}
|
|
8202
8614
|
function hasNativeCode(dir, platform) {
|
|
8203
|
-
const expoConfig = (0,
|
|
8615
|
+
const expoConfig = (0, import_node_path16.join)(dir, "expo-module.config.json");
|
|
8204
8616
|
const platforms = metadataValue(readProjectJson(expoConfig), "platforms");
|
|
8205
8617
|
if (Array.isArray(platforms))
|
|
8206
8618
|
return platforms.includes(platform) || platform === "ios" && platforms.includes("apple");
|
|
8207
|
-
if ([platform, "expo-module.config.json"].some((entry) => (0, import_node_fs17.existsSync)((0,
|
|
8619
|
+
if ([platform, "expo-module.config.json"].some((entry) => (0, import_node_fs17.existsSync)((0, import_node_path16.join)(dir, entry))))
|
|
8208
8620
|
return true;
|
|
8209
8621
|
if (listDir(dir).some((name2) => name2.endsWith(".podspec"))) return true;
|
|
8210
|
-
const manifest = readSmallFile((0,
|
|
8622
|
+
const manifest = readSmallFile((0, import_node_path16.join)(dir, "package.json"));
|
|
8211
8623
|
return manifest !== null && manifest.includes('"codegenConfig"');
|
|
8212
8624
|
}
|
|
8213
8625
|
function scanLocalNative(appDir, pkg, answered, platform, knownPackages = /* @__PURE__ */ new Set(), includeLegacy = false, providers) {
|
|
@@ -8220,7 +8632,7 @@ function scanLocalNative(appDir, pkg, answered, platform, knownPackages = /* @__
|
|
|
8220
8632
|
(excluded) => dir === excluded || dir.startsWith(`${excluded}/`)
|
|
8221
8633
|
))
|
|
8222
8634
|
continue;
|
|
8223
|
-
if ((0, import_node_fs17.existsSync)((0,
|
|
8635
|
+
if ((0, import_node_fs17.existsSync)((0, import_node_path16.join)(dir, "expo-module.config.json"))) {
|
|
8224
8636
|
if (platform && !hasNativeCode(dir, platform)) {
|
|
8225
8637
|
excludedModuleDirs.push(dir);
|
|
8226
8638
|
continue;
|
|
@@ -8229,7 +8641,7 @@ function scanLocalNative(appDir, pkg, answered, platform, knownPackages = /* @__
|
|
|
8229
8641
|
}
|
|
8230
8642
|
for (const name2 of listDir(dir)) {
|
|
8231
8643
|
if (SOURCE_FILE.test(name2) && !name2.endsWith(".d.ts"))
|
|
8232
|
-
sourceFiles.push((0,
|
|
8644
|
+
sourceFiles.push((0, import_node_path16.join)(dir, name2));
|
|
8233
8645
|
}
|
|
8234
8646
|
}
|
|
8235
8647
|
}
|
|
@@ -8239,7 +8651,7 @@ function scanLocalNative(appDir, pkg, answered, platform, knownPackages = /* @__
|
|
|
8239
8651
|
scanRepository(dir).directories.flatMap(
|
|
8240
8652
|
(sub) => listDir(sub).filter(
|
|
8241
8653
|
(name2) => NATIVE_SOURCE_FILE.test(name2) && (!platform || (platform === "ios" ? name2.endsWith(".swift") : name2.endsWith(".kt")))
|
|
8242
|
-
).map((name2) => (0,
|
|
8654
|
+
).map((name2) => (0, import_node_path16.join)(sub, name2))
|
|
8243
8655
|
)
|
|
8244
8656
|
])
|
|
8245
8657
|
);
|
|
@@ -8248,7 +8660,7 @@ function scanLocalNative(appDir, pkg, answered, platform, knownPackages = /* @__
|
|
|
8248
8660
|
const known = owners.get(dir);
|
|
8249
8661
|
if (known) return known;
|
|
8250
8662
|
const name2 = readPackageJson(dir)?.name;
|
|
8251
|
-
const parent = (0,
|
|
8663
|
+
const parent = (0, import_node_path16.dirname)(dir);
|
|
8252
8664
|
const result = typeof name2 === "string" ? name2 : parent === dir ? pkg.name ?? "app" : owner(parent);
|
|
8253
8665
|
owners.set(dir, result);
|
|
8254
8666
|
return result;
|
|
@@ -8262,22 +8674,22 @@ function scanLocalNative(appDir, pkg, answered, platform, knownPackages = /* @__
|
|
|
8262
8674
|
else {
|
|
8263
8675
|
const moduleDir2 = expoModuleDirs.find((dir) => file.startsWith(`${dir}/`));
|
|
8264
8676
|
if (moduleDir2 && (file.endsWith(".swift") || !known.expoModule)) {
|
|
8265
|
-
known.expoModule = (0,
|
|
8677
|
+
known.expoModule = (0, import_node_path16.relative)(appDir, moduleDir2) || ".";
|
|
8266
8678
|
known.swift = file.endsWith(".swift");
|
|
8267
8679
|
}
|
|
8268
8680
|
}
|
|
8269
8681
|
return;
|
|
8270
8682
|
}
|
|
8271
8683
|
providers ??= dependencyNativeOwners(appDir, pkg);
|
|
8272
|
-
const packageName = providers.get(key) ?? owner((0,
|
|
8684
|
+
const packageName = providers.get(key) ?? owner((0, import_node_path16.dirname)(file));
|
|
8273
8685
|
if (knownPackages.has(packageName)) return;
|
|
8274
8686
|
const moduleDir = expoModuleDirs.find((dir) => file.startsWith(`${dir}/`)) ?? null;
|
|
8275
8687
|
found.set(key, {
|
|
8276
8688
|
kind,
|
|
8277
8689
|
name: name2,
|
|
8278
8690
|
package: packageName,
|
|
8279
|
-
path: `${(0,
|
|
8280
|
-
expoModule: moduleDir ? (0,
|
|
8691
|
+
path: `${(0, import_node_path16.relative)(appDir, file)}:${line}`,
|
|
8692
|
+
expoModule: moduleDir ? (0, import_node_path16.relative)(appDir, moduleDir) || "." : null,
|
|
8281
8693
|
optional: optional3,
|
|
8282
8694
|
swift: moduleDir ? (nativeFilesByModule.get(moduleDir) ?? []).some(
|
|
8283
8695
|
(path37) => path37.endsWith(".swift") && [...(readSmallFile(path37) ?? "").matchAll(/\bName\(\s*"(\w+)"\s*\)/g)].some(
|
|
@@ -8328,7 +8740,7 @@ function workspacePackageDirs(appDir, pkg) {
|
|
|
8328
8740
|
for (const name2 of Object.keys({ ...pkg.dependencies, ...pkg.devDependencies })) {
|
|
8329
8741
|
let current = appDir;
|
|
8330
8742
|
while (true) {
|
|
8331
|
-
const link = (0,
|
|
8743
|
+
const link = (0, import_node_path16.join)(current, "node_modules", name2);
|
|
8332
8744
|
if ((0, import_node_fs17.existsSync)(link)) {
|
|
8333
8745
|
if ((0, import_node_fs17.lstatSync)(link).isSymbolicLink()) {
|
|
8334
8746
|
const target = (0, import_node_fs17.realpathSync)(link);
|
|
@@ -8338,19 +8750,19 @@ function workspacePackageDirs(appDir, pkg) {
|
|
|
8338
8750
|
}
|
|
8339
8751
|
break;
|
|
8340
8752
|
}
|
|
8341
|
-
const parent = (0,
|
|
8753
|
+
const parent = (0, import_node_path16.dirname)(current);
|
|
8342
8754
|
if (parent === current) break;
|
|
8343
8755
|
current = parent;
|
|
8344
8756
|
}
|
|
8345
8757
|
}
|
|
8346
8758
|
return [...dirs];
|
|
8347
8759
|
}
|
|
8348
|
-
var import_node_fs17,
|
|
8760
|
+
var import_node_fs17, import_node_path16, import_oxc_parser2, import_sucrase, SOURCE_FILE, NATIVE_LOOKUP, NATIVE_SOURCE_DIRS, PACKAGE_SKIP_DIRS, NATIVE_SOURCE_FILE;
|
|
8349
8761
|
var init_app_stubs = __esm({
|
|
8350
8762
|
"cli/app-stubs.ts"() {
|
|
8351
8763
|
"use strict";
|
|
8352
8764
|
import_node_fs17 = require("node:fs");
|
|
8353
|
-
|
|
8765
|
+
import_node_path16 = require("node:path");
|
|
8354
8766
|
init_version_range();
|
|
8355
8767
|
import_oxc_parser2 = require("oxc-parser");
|
|
8356
8768
|
import_sucrase = require("sucrase");
|
|
@@ -8374,478 +8786,1955 @@ var init_app_stubs = __esm({
|
|
|
8374
8786
|
}
|
|
8375
8787
|
});
|
|
8376
8788
|
|
|
8377
|
-
// ../peach-globals/src/
|
|
8378
|
-
|
|
8379
|
-
|
|
8380
|
-
|
|
8381
|
-
|
|
8382
|
-
|
|
8383
|
-
|
|
8384
|
-
|
|
8385
|
-
|
|
8386
|
-
|
|
8387
|
-
|
|
8388
|
-
|
|
8389
|
-
|
|
8390
|
-
|
|
8391
|
-
|
|
8392
|
-
|
|
8393
|
-
|
|
8394
|
-
|
|
8395
|
-
|
|
8396
|
-
throw new Error("StoreKit preview currently supports the USA test storefront");
|
|
8397
|
-
if (settings._failTransactionsEnabled === true || settings._askToBuyEnabled === true)
|
|
8398
|
-
throw new Error(
|
|
8399
|
-
"StoreKit preview does not implement transaction failure injection or Ask to Buy"
|
|
8400
|
-
);
|
|
8401
|
-
if (settings._timeRate !== void 0 && settings._timeRate !== 0 || settings._disableDialogs === true || settings._billingIssuesEnabled === true || settings._billingGracePeriodEnabled === true)
|
|
8402
|
-
throw new Error("StoreKit preview requires real-time purchases with dialogs enabled");
|
|
8403
|
-
const locale = string2(settings._locale ?? "en_US", "settings._locale");
|
|
8404
|
-
const formatter = new Intl.NumberFormat(locale.replaceAll("_", "-"), {
|
|
8405
|
-
style: "currency",
|
|
8406
|
-
currency: "USD"
|
|
8407
|
-
});
|
|
8408
|
-
const products = [];
|
|
8409
|
-
const add = (input) => {
|
|
8410
|
-
if (!record(input)) throw new Error("StoreKit product must be an object");
|
|
8411
|
-
const type = input.type === "Consumable" ? "consumable" : input.type === "NonConsumable" ? "nonConsumable" : input.type === "RecurringSubscription" ? "autoRenewable" : void 0;
|
|
8412
|
-
if (!type)
|
|
8413
|
-
throw new Error(`StoreKit preview does not implement product type ${input.type}`);
|
|
8414
|
-
const localizations = array(input.localizations, "localizations").map((item) => {
|
|
8415
|
-
if (!record(item)) throw new Error("StoreKit localization must be an object");
|
|
8416
|
-
return {
|
|
8417
|
-
locale: string2(item.locale, "localization.locale"),
|
|
8418
|
-
displayName: string2(item.displayName, "localization.displayName"),
|
|
8419
|
-
description: typeof item.description === "string" ? item.description : ""
|
|
8420
|
-
};
|
|
8421
|
-
});
|
|
8422
|
-
const localization = localizations.find((item) => item.locale === locale) ?? localizations[0];
|
|
8423
|
-
if (!localization) throw new Error("StoreKit product requires a localization");
|
|
8424
|
-
const rawPrice = string2(input.displayPrice, "displayPrice");
|
|
8425
|
-
const price = Number(rawPrice);
|
|
8426
|
-
if (!Number.isFinite(price) || price < 0)
|
|
8427
|
-
throw new Error("StoreKit product displayPrice must be a nonnegative decimal");
|
|
8428
|
-
const subscriptionPeriod = type === "autoRenewable" ? string2(input.recurringSubscriptionPeriod, "recurringSubscriptionPeriod") : void 0;
|
|
8429
|
-
if (subscriptionPeriod !== void 0 && subscriptionPeriod !== "P1M")
|
|
8430
|
-
throw new Error("StoreKit preview currently supports monthly test subscriptions");
|
|
8431
|
-
if (input.introductoryOffer != null || Array.isArray(input.adHocOffers) && input.adHocOffers.length > 0 || Array.isArray(input.codeOffers) && input.codeOffers.length > 0 || Array.isArray(input.winbackOffers) && input.winbackOffers.length > 0)
|
|
8432
|
-
throw new Error("StoreKit preview does not implement subscription offers");
|
|
8433
|
-
products.push({
|
|
8434
|
-
id: string2(input.productID, "productID"),
|
|
8435
|
-
type,
|
|
8436
|
-
displayName: localization.displayName,
|
|
8437
|
-
description: localization.description,
|
|
8438
|
-
displayPrice: formatter.format(price),
|
|
8439
|
-
currencyCode: "USD",
|
|
8440
|
-
price,
|
|
8441
|
-
...subscriptionPeriod ? {
|
|
8442
|
-
subscriptionPeriod,
|
|
8443
|
-
subscriptionGroupId: string2(input.subscriptionGroupID, "subscriptionGroupID")
|
|
8444
|
-
} : {}
|
|
8445
|
-
});
|
|
8446
|
-
};
|
|
8447
|
-
for (const product of array(value.products ?? [], "products")) add(product);
|
|
8448
|
-
for (const group of array(value.subscriptionGroups ?? [], "subscriptionGroups")) {
|
|
8449
|
-
if (!record(group)) throw new Error("StoreKit subscription group must be an object");
|
|
8450
|
-
const subscriptions = array(group.subscriptions, "subscriptions");
|
|
8451
|
-
if (subscriptions.length > 1)
|
|
8452
|
-
throw new Error("StoreKit preview supports one product per subscription group");
|
|
8453
|
-
for (const product of subscriptions) add(product);
|
|
8789
|
+
// ../peach-globals/src/dynamic-type-scales.ts
|
|
8790
|
+
var IOS_DYNAMIC_TYPE_SCALES;
|
|
8791
|
+
var init_dynamic_type_scales = __esm({
|
|
8792
|
+
"../peach-globals/src/dynamic-type-scales.ts"() {
|
|
8793
|
+
"use strict";
|
|
8794
|
+
IOS_DYNAMIC_TYPE_SCALES = [
|
|
8795
|
+
0.823,
|
|
8796
|
+
0.882,
|
|
8797
|
+
0.941,
|
|
8798
|
+
1,
|
|
8799
|
+
1.118,
|
|
8800
|
+
1.235,
|
|
8801
|
+
1.353,
|
|
8802
|
+
1.786,
|
|
8803
|
+
2.143,
|
|
8804
|
+
2.643,
|
|
8805
|
+
3.143,
|
|
8806
|
+
3.571
|
|
8807
|
+
];
|
|
8454
8808
|
}
|
|
8455
|
-
|
|
8456
|
-
|
|
8457
|
-
|
|
8458
|
-
|
|
8459
|
-
return
|
|
8460
|
-
}
|
|
8461
|
-
function isStoreKitSigningIdentity(value) {
|
|
8462
|
-
return record(value) && typeof value.certificate === "string" && record(value.privateKey) && value.privateKey.kty === "EC" && value.privateKey.crv === "P-256" && typeof value.privateKey.d === "string" && typeof value.privateKey.x === "string" && typeof value.privateKey.y === "string";
|
|
8809
|
+
});
|
|
8810
|
+
|
|
8811
|
+
// ../peach-globals/src/profilerContract.ts
|
|
8812
|
+
function formatProfilerCategories(categories) {
|
|
8813
|
+
return PROFILER_CATEGORIES.filter((c) => categories.includes(c)).join(",");
|
|
8463
8814
|
}
|
|
8464
|
-
var
|
|
8465
|
-
|
|
8815
|
+
var PROFILER_CATEGORIES, DEFAULT_PROFILER_CATEGORIES, PROFILER_WINDOW_MS;
|
|
8816
|
+
var init_profilerContract = __esm({
|
|
8817
|
+
"../peach-globals/src/profilerContract.ts"() {
|
|
8466
8818
|
"use strict";
|
|
8819
|
+
PROFILER_CATEGORIES = [
|
|
8820
|
+
"frames",
|
|
8821
|
+
"animations",
|
|
8822
|
+
"interactions",
|
|
8823
|
+
"network-logs",
|
|
8824
|
+
"react",
|
|
8825
|
+
"animation-values",
|
|
8826
|
+
"layout",
|
|
8827
|
+
"memory",
|
|
8828
|
+
"paint-detail"
|
|
8829
|
+
];
|
|
8830
|
+
DEFAULT_PROFILER_CATEGORIES = [
|
|
8831
|
+
"frames",
|
|
8832
|
+
"animations",
|
|
8833
|
+
"interactions",
|
|
8834
|
+
"network-logs"
|
|
8835
|
+
];
|
|
8836
|
+
PROFILER_WINDOW_MS = 5 * 6e4;
|
|
8467
8837
|
}
|
|
8468
8838
|
});
|
|
8469
8839
|
|
|
8470
|
-
// src/
|
|
8471
|
-
|
|
8472
|
-
|
|
8473
|
-
const identityPath = import_node_path16.default.join(
|
|
8474
|
-
cacheDir(),
|
|
8475
|
-
"storekit-identities",
|
|
8476
|
-
`${(0, import_node_crypto6.createHash)("sha256").update(import_node_path16.default.resolve(appDir)).digest("hex")}.json`
|
|
8477
|
-
);
|
|
8478
|
-
let signing;
|
|
8479
|
-
try {
|
|
8480
|
-
const value = JSON.parse(await (0, import_promises3.readFile)(identityPath, "utf8"));
|
|
8481
|
-
if (!isStoreKitSigningIdentity(value))
|
|
8482
|
-
throw new Error(`invalid StoreKit signing identity: ${identityPath}`);
|
|
8483
|
-
signing = value;
|
|
8484
|
-
} catch (error) {
|
|
8485
|
-
if (!(error instanceof Error) || !("code" in error) || error.code !== "ENOENT")
|
|
8486
|
-
throw error;
|
|
8487
|
-
const algorithm = { name: "ECDSA", namedCurve: "P-256", hash: "SHA-256" };
|
|
8488
|
-
const keys = await crypto.subtle.generateKey(algorithm, true, ["sign", "verify"]);
|
|
8489
|
-
const certificate = await import_x509.X509CertificateGenerator.createSelfSigned(
|
|
8490
|
-
{
|
|
8491
|
-
name: "CN=StoreKit Testing in Xcode, O=StoreKit Testing in Xcode",
|
|
8492
|
-
serialNumber: (0, import_node_crypto6.randomBytes)(16).toString("hex"),
|
|
8493
|
-
notBefore: new Date(Date.now() - 6e4),
|
|
8494
|
-
notAfter: new Date(Date.now() + 365 * 864e5),
|
|
8495
|
-
signingAlgorithm: algorithm,
|
|
8496
|
-
keys
|
|
8497
|
-
},
|
|
8498
|
-
crypto
|
|
8499
|
-
);
|
|
8500
|
-
signing = {
|
|
8501
|
-
privateKey: await crypto.subtle.exportKey("jwk", keys.privateKey),
|
|
8502
|
-
certificate: Buffer.from(certificate.rawData).toString("base64")
|
|
8503
|
-
};
|
|
8504
|
-
await (0, import_promises3.mkdir)(import_node_path16.default.dirname(identityPath), { recursive: true });
|
|
8505
|
-
await (0, import_promises3.writeFile)(identityPath, JSON.stringify(signing), { mode: 384 });
|
|
8506
|
-
}
|
|
8507
|
-
return { ...catalog, signing };
|
|
8840
|
+
// src/runtimePlatformContract.ts
|
|
8841
|
+
function isRuntimePlatform(value) {
|
|
8842
|
+
return value === "ios" || value === "android";
|
|
8508
8843
|
}
|
|
8509
|
-
|
|
8510
|
-
|
|
8511
|
-
|
|
8844
|
+
function getRuntimePlatformAdapter(platform) {
|
|
8845
|
+
return RUNTIME_PLATFORM_ADAPTERS[platform];
|
|
8846
|
+
}
|
|
8847
|
+
var IOS_ADAPTER, ANDROID_ADAPTER, RUNTIME_PLATFORM_ADAPTERS;
|
|
8848
|
+
var init_runtimePlatformContract = __esm({
|
|
8849
|
+
"src/runtimePlatformContract.ts"() {
|
|
8512
8850
|
"use strict";
|
|
8513
|
-
|
|
8514
|
-
|
|
8515
|
-
|
|
8516
|
-
|
|
8517
|
-
|
|
8518
|
-
|
|
8851
|
+
IOS_ADAPTER = Object.freeze({
|
|
8852
|
+
id: "ios",
|
|
8853
|
+
displayName: "iOS",
|
|
8854
|
+
isIOS: true,
|
|
8855
|
+
isAndroid: false,
|
|
8856
|
+
select: (registry) => registry.ios
|
|
8857
|
+
});
|
|
8858
|
+
ANDROID_ADAPTER = Object.freeze({
|
|
8859
|
+
id: "android",
|
|
8860
|
+
displayName: "Android",
|
|
8861
|
+
isIOS: false,
|
|
8862
|
+
isAndroid: true,
|
|
8863
|
+
select: (registry) => registry.android
|
|
8864
|
+
});
|
|
8865
|
+
RUNTIME_PLATFORM_ADAPTERS = Object.freeze({
|
|
8866
|
+
ios: IOS_ADAPTER,
|
|
8867
|
+
android: ANDROID_ADAPTER
|
|
8868
|
+
});
|
|
8519
8869
|
}
|
|
8520
8870
|
});
|
|
8521
8871
|
|
|
8522
|
-
// src/
|
|
8523
|
-
|
|
8524
|
-
|
|
8525
|
-
|
|
8526
|
-
|
|
8527
|
-
|
|
8528
|
-
}
|
|
8529
|
-
|
|
8530
|
-
|
|
8531
|
-
return Object.fromEntries(
|
|
8532
|
-
Object.entries(entries).map(([name2, resolution]) => [
|
|
8533
|
-
name2,
|
|
8534
|
-
resolution && typeof resolution === "object" && "file" in resolution && typeof resolution.file === "string" ? { ...resolution, file: import_node_path17.default.resolve(configDir, resolution.file) } : resolution
|
|
8535
|
-
])
|
|
8536
|
-
);
|
|
8872
|
+
// src/device-catalog.ts
|
|
8873
|
+
function modernButtons(action, volumeUp, volumeDown, power) {
|
|
8874
|
+
return {
|
|
8875
|
+
width: 3,
|
|
8876
|
+
ringToggle: { side: "left", top: action[0], height: action[1] },
|
|
8877
|
+
volumeUp: { side: "left", top: volumeUp[0], height: volumeUp[1] },
|
|
8878
|
+
volumeDown: { side: "left", top: volumeDown[0], height: volumeDown[1] },
|
|
8879
|
+
lock: { side: "right", top: power[0], height: power[1] }
|
|
8880
|
+
};
|
|
8537
8881
|
}
|
|
8538
|
-
function
|
|
8539
|
-
|
|
8882
|
+
function uniformFrameInsets(value) {
|
|
8883
|
+
return { top: value, right: value, bottom: value, left: value };
|
|
8884
|
+
}
|
|
8885
|
+
function cornerRadii(value) {
|
|
8886
|
+
return { topLeft: value, topRight: value, bottomRight: value, bottomLeft: value };
|
|
8887
|
+
}
|
|
8888
|
+
function iosDevice(spec) {
|
|
8889
|
+
const profile = {
|
|
8890
|
+
// normal-scale dynamic split providers share this intrinsic height and
|
|
8891
|
+
// linked-sdk whole-point rounding. safe areas are independent.
|
|
8892
|
+
// source receipt: docs/ios/framework-oracle/status-bar-hit-region-and-scene-routing.md
|
|
8893
|
+
statusBarHeight: "statusBarHeight" in spec ? spec.statusBarHeight : Math.round(53.666666666666664),
|
|
8894
|
+
scale: 3,
|
|
8895
|
+
landscapeStatusBarHeight: 0,
|
|
8896
|
+
homeIndicatorHeight: 34,
|
|
8897
|
+
iosVersion: "27.0",
|
|
8898
|
+
dynamicIsland: null,
|
|
8899
|
+
keyboardPanelHeights: { qwerty: 301, pad: 301, emoji: 395 },
|
|
8900
|
+
...spec
|
|
8901
|
+
};
|
|
8540
8902
|
return {
|
|
8541
|
-
...
|
|
8542
|
-
|
|
8903
|
+
...profile,
|
|
8904
|
+
platform: "ios",
|
|
8905
|
+
// the display's portrait reference and overlay allowance are independent of the window safe area.
|
|
8906
|
+
displayEdgeInfo: profile.displayEdgeInfo ?? (profile.model.startsWith("iphone-") && profile.model !== "iphone-se" && profile.model !== "iphone-duo" ? { portraitBottom: 34, homeAffordanceOverlayAllowance: 21 } : void 0),
|
|
8907
|
+
navigationBarHeight: 0,
|
|
8908
|
+
navigationBarMode: profile.homeIndicatorHeight > 0 ? "gesture" : "none",
|
|
8909
|
+
displayCutout: {
|
|
8910
|
+
top: profile.dynamicIsland ? profile.safeAreaInsets.top : 0,
|
|
8911
|
+
bottom: 0,
|
|
8912
|
+
left: 0,
|
|
8913
|
+
right: 0
|
|
8914
|
+
},
|
|
8915
|
+
cameraCutout: null,
|
|
8916
|
+
osVersion: profile.iosVersion,
|
|
8917
|
+
androidApiLevel: null,
|
|
8918
|
+
systemName: "iOS",
|
|
8919
|
+
manufacturer: "Apple",
|
|
8920
|
+
brand: "Apple",
|
|
8921
|
+
modelName: profile.name
|
|
8543
8922
|
};
|
|
8544
8923
|
}
|
|
8545
|
-
|
|
8546
|
-
return (
|
|
8924
|
+
function isDeviceModel(value) {
|
|
8925
|
+
return Object.hasOwn(devices, value);
|
|
8547
8926
|
}
|
|
8548
|
-
|
|
8549
|
-
|
|
8550
|
-
const config = await loadConfigFile(project);
|
|
8551
|
-
try {
|
|
8552
|
-
return resolveAppStubs(
|
|
8553
|
-
project.appDir,
|
|
8554
|
-
config,
|
|
8555
|
-
project.configPath ? import_node_path17.default.dirname(project.configPath) : project.appDir
|
|
8556
|
-
);
|
|
8557
|
-
} catch (error) {
|
|
8558
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
8559
|
-
throw new Error(`could not load the native stubs of ${project.appDir}: ${message}`);
|
|
8560
|
-
}
|
|
8927
|
+
function listDeviceModels() {
|
|
8928
|
+
return Object.keys(devices).filter(isDeviceModel);
|
|
8561
8929
|
}
|
|
8562
|
-
|
|
8563
|
-
|
|
8564
|
-
|
|
8565
|
-
|
|
8566
|
-
|
|
8567
|
-
|
|
8568
|
-
|
|
8569
|
-
|
|
8570
|
-
|
|
8571
|
-
|
|
8572
|
-
|
|
8573
|
-
|
|
8574
|
-
|
|
8575
|
-
|
|
8576
|
-
|
|
8577
|
-
|
|
8578
|
-
|
|
8579
|
-
|
|
8580
|
-
|
|
8581
|
-
|
|
8582
|
-
|
|
8583
|
-
|
|
8584
|
-
|
|
8585
|
-
|
|
8586
|
-
|
|
8587
|
-
|
|
8588
|
-
|
|
8589
|
-
|
|
8590
|
-
|
|
8591
|
-
|
|
8592
|
-
|
|
8593
|
-
|
|
8594
|
-
|
|
8595
|
-
|
|
8596
|
-
|
|
8597
|
-
|
|
8598
|
-
|
|
8599
|
-
|
|
8600
|
-
|
|
8601
|
-
|
|
8602
|
-
config.initialState = {
|
|
8603
|
-
...config.initialState,
|
|
8604
|
-
storeKit: await loadStoreKitTestStore(
|
|
8605
|
-
import_node_path17.default.resolve(import_node_path17.default.dirname(project.configPath), config.storeKit.configuration),
|
|
8606
|
-
project.appDir
|
|
8607
|
-
)
|
|
8608
|
-
};
|
|
8609
|
-
}
|
|
8610
|
-
return config;
|
|
8611
|
-
} catch (error) {
|
|
8612
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
8613
|
-
throw new Error(`could not load ${project.configPath}: ${message}`);
|
|
8614
|
-
}
|
|
8615
|
-
}
|
|
8616
|
-
async function resolveRNXAppConfig(startDir = process.cwd()) {
|
|
8617
|
-
const project = resolveAppProject(startDir);
|
|
8618
|
-
return { project, ...await loadRNXAppStubs(project) };
|
|
8930
|
+
function ipadProDevice(model, name2, width, height, diagonalInches, keyboardHeight) {
|
|
8931
|
+
return iosDevice({
|
|
8932
|
+
model,
|
|
8933
|
+
name: name2,
|
|
8934
|
+
// iPad Pro 11-inch (M5) 12GB, iOS 27.0, simulator DBD4B183, UIKit probe
|
|
8935
|
+
// scenario `metrics`. portrait UIScreen.bounds 834×1210, scale 2,
|
|
8936
|
+
// nativeBounds 1668×2420. the window matched the screen.
|
|
8937
|
+
width,
|
|
8938
|
+
height,
|
|
8939
|
+
scale: 2,
|
|
8940
|
+
// portrait statusBarFrame was 834×32 at the top, and safeAreaInsets.top
|
|
8941
|
+
// was 32. landscape statusBarFrame stayed 32 tall while safeAreaInsets.top
|
|
8942
|
+
// was 10; this field is the portrait bar.
|
|
8943
|
+
statusBarHeight: 32,
|
|
8944
|
+
landscapeStatusBarHeight: 32,
|
|
8945
|
+
// portrait and landscape safeAreaInsets.bottom were both 20. the probe
|
|
8946
|
+
// has no separate home-indicator height.
|
|
8947
|
+
homeIndicatorHeight: 20,
|
|
8948
|
+
// UIScreen _displayCornerRadius, both orientations. the framebuffer
|
|
8949
|
+
// mask's tangent extent was not measured separately.
|
|
8950
|
+
cornerRadius: cornerRadii(30),
|
|
8951
|
+
continuousCornerRadius: cornerRadii(30),
|
|
8952
|
+
// housing is unsourced. the frame is the display until it is measured.
|
|
8953
|
+
frameInsets: uniformFrameInsets(0),
|
|
8954
|
+
// portrait safeAreaInsets. landscape was top 10, left 0, bottom 20, right 0.
|
|
8955
|
+
safeAreaInsets: { top: 32, bottom: 20, left: 0, right: 0 },
|
|
8956
|
+
// portrait docked keyboard frame height, UIKeyboardFrameEndUserInfoKey
|
|
8957
|
+
// {0, 870, 834, 340} on the 11-inch, 403 on the 13-inch. the emoji panel
|
|
8958
|
+
// takes the letters height on the 11-inch and 2.5pt more on the 13-inch
|
|
8959
|
+
// (405.5, native iOS 27 simulators).
|
|
8960
|
+
keyboardPanelHeights: {
|
|
8961
|
+
qwerty: keyboardHeight,
|
|
8962
|
+
pad: keyboardHeight,
|
|
8963
|
+
emoji: keyboardHeight + (model === "ipad-pro-11" ? 0 : 2.5)
|
|
8964
|
+
},
|
|
8965
|
+
// hypot(1668, 2420) / 11, measured native pixels over the device type's
|
|
8966
|
+
// 11-inch name. not a separate density read.
|
|
8967
|
+
physicalPPI: Math.hypot(width * 2, height * 2) / diagonalInches,
|
|
8968
|
+
hardwareButtons: modernButtons([0, 0], [0, 0], [0, 0], [0, 0])
|
|
8969
|
+
});
|
|
8619
8970
|
}
|
|
8620
|
-
var
|
|
8621
|
-
var
|
|
8622
|
-
"src/
|
|
8623
|
-
"use strict";
|
|
8624
|
-
import_node_fs18 = require("node:fs");
|
|
8625
|
-
import_node_path17 = __toESM(require("node:path"), 1);
|
|
8626
|
-
import_jiti = require("jiti");
|
|
8627
|
-
init_app_project();
|
|
8628
|
-
init_app_stubs();
|
|
8629
|
-
init_config();
|
|
8630
|
-
init_config();
|
|
8631
|
-
init_public_brand();
|
|
8632
|
-
init_storekit_test_store();
|
|
8633
|
-
WIRE_SLOTS = ["nativeModules", "turboModules", "nativeViews"];
|
|
8634
|
-
}
|
|
8635
|
-
});
|
|
8636
|
-
|
|
8637
|
-
// src/expo-autolinking.ts
|
|
8638
|
-
var init_expo_autolinking = __esm({
|
|
8639
|
-
"src/expo-autolinking.ts"() {
|
|
8640
|
-
"use strict";
|
|
8641
|
-
init_autolinker_process();
|
|
8642
|
-
init_is_record();
|
|
8643
|
-
}
|
|
8644
|
-
});
|
|
8645
|
-
|
|
8646
|
-
// src/react-native-core-digest.ts
|
|
8647
|
-
var init_react_native_core_digest = __esm({
|
|
8648
|
-
"src/react-native-core-digest.ts"() {
|
|
8971
|
+
var LEGACY_HARDWARE_BUTTONS, PIXEL_HARDWARE_BUTTONS, GALAXY_HARDWARE_BUTTONS, ANDROID_GESTURE_NAV_BAR_HEIGHT, ANDROID_OS_VERSION, ANDROID_API_LEVEL, PIXEL_8_WIDTH, PIXEL_8_HEIGHT, GBOARD_PANEL_HEIGHTS, PIXEL_8_STATUS_BAR_HEIGHT, PIXEL_8_LANDSCAPE_STATUS_BAR_HEIGHT, DYNAMIC_WINDOW_LIMITS, profiles, devices, DEFAULT_DEVICE;
|
|
8972
|
+
var init_device_catalog = __esm({
|
|
8973
|
+
"src/device-catalog.ts"() {
|
|
8649
8974
|
"use strict";
|
|
8975
|
+
init_runtimePlatformContract();
|
|
8976
|
+
LEGACY_HARDWARE_BUTTONS = {
|
|
8977
|
+
width: 2.5,
|
|
8978
|
+
lock: { side: "right", top: 188.7, height: 68.1 },
|
|
8979
|
+
ringToggle: { side: "left", top: 113.2, height: 36 },
|
|
8980
|
+
volumeUp: { side: "left", top: 188.2, height: 68.1 },
|
|
8981
|
+
volumeDown: { side: "left", top: 269, height: 68.1 }
|
|
8982
|
+
};
|
|
8983
|
+
PIXEL_HARDWARE_BUTTONS = {
|
|
8984
|
+
width: 3,
|
|
8985
|
+
// pixel 8 android studio art has right-edge opaque runs at y=671..833
|
|
8986
|
+
// (power) and y=971..1301 (the continuous volume rocker), at 2.625x.
|
|
8987
|
+
lock: { side: "right", top: 671 / 2.625, height: 163 / 2.625 },
|
|
8988
|
+
ringToggle: { side: "left", top: -1e3, height: 0 },
|
|
8989
|
+
volumeUp: { side: "right", top: 971 / 2.625, height: 165 / 2.625 },
|
|
8990
|
+
volumeDown: { side: "right", top: 1136 / 2.625, height: 166 / 2.625 }
|
|
8991
|
+
};
|
|
8992
|
+
GALAXY_HARDWARE_BUTTONS = {
|
|
8993
|
+
width: 3,
|
|
8994
|
+
lock: { side: "right", top: 248, height: 72 },
|
|
8995
|
+
ringToggle: { side: "left", top: -1e3, height: 0 },
|
|
8996
|
+
volumeUp: { side: "right", top: 144, height: 62 },
|
|
8997
|
+
volumeDown: { side: "right", top: 216, height: 62 }
|
|
8998
|
+
};
|
|
8999
|
+
ANDROID_GESTURE_NAV_BAR_HEIGHT = 24;
|
|
9000
|
+
ANDROID_OS_VERSION = "17";
|
|
9001
|
+
ANDROID_API_LEVEL = 37;
|
|
9002
|
+
PIXEL_8_WIDTH = 1080 / 2.625;
|
|
9003
|
+
PIXEL_8_HEIGHT = 2400 / 2.625;
|
|
9004
|
+
GBOARD_PANEL_HEIGHTS = {
|
|
9005
|
+
qwerty: 883 / 2.625,
|
|
9006
|
+
pad: 883 / 2.625,
|
|
9007
|
+
emoji: 395
|
|
9008
|
+
};
|
|
9009
|
+
PIXEL_8_STATUS_BAR_HEIGHT = 132 / 2.625;
|
|
9010
|
+
PIXEL_8_LANDSCAPE_STATUS_BAR_HEIGHT = Math.round(28 * 2.625) / 2.625;
|
|
9011
|
+
DYNAMIC_WINDOW_LIMITS = {
|
|
9012
|
+
minWidth: 375,
|
|
9013
|
+
minHeight: 486,
|
|
9014
|
+
maxWidth: 1032,
|
|
9015
|
+
maxHeight: 1376
|
|
9016
|
+
};
|
|
9017
|
+
profiles = {
|
|
9018
|
+
"canvas-workspace": /* @__PURE__ */ iosDevice({
|
|
9019
|
+
model: "canvas-workspace",
|
|
9020
|
+
name: "Canvas Workspace",
|
|
9021
|
+
width: 1440,
|
|
9022
|
+
height: 900,
|
|
9023
|
+
scale: 1,
|
|
9024
|
+
statusBarHeight: 0,
|
|
9025
|
+
homeIndicatorHeight: 0,
|
|
9026
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(0),
|
|
9027
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(0),
|
|
9028
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(16),
|
|
9029
|
+
safeAreaInsets: { top: 0, bottom: 0, left: 0, right: 0 },
|
|
9030
|
+
// no native device has this geometry; carries the iphone 16 keyboard
|
|
9031
|
+
// height so the experimental profile still shows a keyboard.
|
|
9032
|
+
physicalPPI: 110,
|
|
9033
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
9034
|
+
[185.8, 41.7],
|
|
9035
|
+
[258.2, 67.6],
|
|
9036
|
+
[344, 67.6],
|
|
9037
|
+
[281.5, 106.9]
|
|
9038
|
+
),
|
|
9039
|
+
experimental: true
|
|
9040
|
+
}),
|
|
9041
|
+
"iphone-se": /* @__PURE__ */ iosDevice({
|
|
9042
|
+
model: "iphone-se",
|
|
9043
|
+
name: "iPhone SE",
|
|
9044
|
+
width: 375,
|
|
9045
|
+
height: 667,
|
|
9046
|
+
scale: 2,
|
|
9047
|
+
statusBarHeight: 20,
|
|
9048
|
+
homeIndicatorHeight: 0,
|
|
9049
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(0),
|
|
9050
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(0),
|
|
9051
|
+
// legacy home-button frame uses asymmetric LEGACY_*_BEZEL constants in the
|
|
9052
|
+
// shell (111pt forehead/chin, 29pt sides); uniform frameInsets are a sane
|
|
9053
|
+
// modern-path value and mirror the SE's ~28.7pt side bezel.
|
|
9054
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(28.7),
|
|
9055
|
+
safeAreaInsets: { top: 20, bottom: 0, left: 0, right: 0 },
|
|
9056
|
+
keyboardPanelHeights: { qwerty: 226, pad: 226, emoji: 320 },
|
|
9057
|
+
physicalPPI: 326,
|
|
9058
|
+
hardwareButtons: LEGACY_HARDWARE_BUTTONS
|
|
9059
|
+
}),
|
|
9060
|
+
"iphone-14": /* @__PURE__ */ iosDevice({
|
|
9061
|
+
model: "iphone-14",
|
|
9062
|
+
name: "iPhone 14",
|
|
9063
|
+
width: 390,
|
|
9064
|
+
height: 844,
|
|
9065
|
+
statusBarHeight: 47,
|
|
9066
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(46.2),
|
|
9067
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(67.462),
|
|
9068
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(19.5),
|
|
9069
|
+
safeAreaInsets: { top: 47, bottom: 34, left: 0, right: 0 },
|
|
9070
|
+
physicalPPI: 460,
|
|
9071
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
9072
|
+
[141.7, 29.7],
|
|
9073
|
+
[205.9, 69.6],
|
|
9074
|
+
[289.5, 69.6],
|
|
9075
|
+
[228.9, 114.5]
|
|
9076
|
+
)
|
|
9077
|
+
}),
|
|
9078
|
+
"iphone-15": /* @__PURE__ */ iosDevice({
|
|
9079
|
+
model: "iphone-15",
|
|
9080
|
+
name: "iPhone 15",
|
|
9081
|
+
width: 393,
|
|
9082
|
+
height: 852,
|
|
9083
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
|
|
9084
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(73.402),
|
|
9085
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(18.2),
|
|
9086
|
+
dynamicIsland: { width: 125, height: 110 / 3, top: 34 / 3 },
|
|
9087
|
+
statusRowCenter: 32.75,
|
|
9088
|
+
safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
|
|
9089
|
+
physicalPPI: 460,
|
|
9090
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
9091
|
+
[171.7, 32],
|
|
9092
|
+
[235.8, 65.3],
|
|
9093
|
+
[320.5, 65.3],
|
|
9094
|
+
[280.6, 105.2]
|
|
9095
|
+
)
|
|
9096
|
+
}),
|
|
9097
|
+
"iphone-15-plus": /* @__PURE__ */ iosDevice({
|
|
9098
|
+
model: "iphone-15-plus",
|
|
9099
|
+
name: "iPhone 15 Plus",
|
|
9100
|
+
width: 430,
|
|
9101
|
+
height: 932,
|
|
9102
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
|
|
9103
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(74.654),
|
|
9104
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(17.3),
|
|
9105
|
+
dynamicIsland: { width: 376 / 3, height: 110 / 3, top: 34 / 3 },
|
|
9106
|
+
statusRowCenter: 30.05,
|
|
9107
|
+
safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
|
|
9108
|
+
keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
|
|
9109
|
+
physicalPPI: 460,
|
|
9110
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
9111
|
+
[172.1, 33],
|
|
9112
|
+
[236.1, 66.6],
|
|
9113
|
+
[321.2, 66.6],
|
|
9114
|
+
[281, 106.8]
|
|
9115
|
+
)
|
|
9116
|
+
}),
|
|
9117
|
+
"iphone-15-pro": /* @__PURE__ */ iosDevice({
|
|
9118
|
+
model: "iphone-15-pro",
|
|
9119
|
+
name: "iPhone 15 Pro",
|
|
9120
|
+
width: 393,
|
|
9121
|
+
height: 852,
|
|
9122
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
|
|
9123
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(73.402),
|
|
9124
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
|
|
9125
|
+
dynamicIsland: { width: 125, height: 110 / 3, top: 34 / 3 },
|
|
9126
|
+
statusRowCenter: 32.4,
|
|
9127
|
+
safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
|
|
9128
|
+
physicalPPI: 460,
|
|
9129
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
9130
|
+
[159.1, 31.5],
|
|
9131
|
+
[220.1, 61.9],
|
|
9132
|
+
[299, 61.9],
|
|
9133
|
+
[260.8, 98.9]
|
|
9134
|
+
)
|
|
9135
|
+
}),
|
|
9136
|
+
"iphone-15-pro-max": /* @__PURE__ */ iosDevice({
|
|
9137
|
+
model: "iphone-15-pro-max",
|
|
9138
|
+
name: "iPhone 15 Pro Max",
|
|
9139
|
+
width: 430,
|
|
9140
|
+
height: 932,
|
|
9141
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
|
|
9142
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(74.654),
|
|
9143
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
|
|
9144
|
+
dynamicIsland: { width: 376 / 3, height: 110 / 3, top: 34 / 3 },
|
|
9145
|
+
statusRowCenter: 32.3,
|
|
9146
|
+
safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
|
|
9147
|
+
keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
|
|
9148
|
+
physicalPPI: 460,
|
|
9149
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
9150
|
+
[173.3, 32.2],
|
|
9151
|
+
[253.4, 61.7],
|
|
9152
|
+
[343.3, 61.7],
|
|
9153
|
+
[268.5, 98.5]
|
|
9154
|
+
)
|
|
9155
|
+
}),
|
|
9156
|
+
"iphone-16": /* @__PURE__ */ iosDevice({
|
|
9157
|
+
model: "iphone-16",
|
|
9158
|
+
name: "iPhone 16",
|
|
9159
|
+
width: 393,
|
|
9160
|
+
height: 852,
|
|
9161
|
+
// 2026-07-10: cornerRadius corrected 58 → 53.9 to Apple's own framebuffer
|
|
9162
|
+
// mask (extracted from the simdevicetype bundle PDF; see
|
|
9163
|
+
// packages/peach-engine/assets/device-frame-geometry). radius is a paint clip only — the
|
|
9164
|
+
// calibrated conformance-oracle layout fields below are unchanged.
|
|
9165
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
|
|
9166
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(73.402),
|
|
9167
|
+
// uikit's concentric-corner getter on the ios 27 iphone 16 returns 55.
|
|
9168
|
+
systemCornerRadius: /* @__PURE__ */ cornerRadii(55),
|
|
9169
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
|
|
9170
|
+
dynamicIsland: { width: 125, height: 110 / 3, top: 34 / 3 },
|
|
9171
|
+
statusRowCenter: 29.65,
|
|
9172
|
+
safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
|
|
9173
|
+
keyboardPanelHeights: { qwerty: 301, pad: 302, emoji: 395 },
|
|
9174
|
+
physicalPPI: 460,
|
|
9175
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
9176
|
+
[159.1, 31.5],
|
|
9177
|
+
[220.1, 61.9],
|
|
9178
|
+
[299, 61.9],
|
|
9179
|
+
[260.8, 98.9]
|
|
9180
|
+
)
|
|
9181
|
+
}),
|
|
9182
|
+
"iphone-16-plus": /* @__PURE__ */ iosDevice({
|
|
9183
|
+
model: "iphone-16-plus",
|
|
9184
|
+
name: "iPhone 16 Plus",
|
|
9185
|
+
width: 430,
|
|
9186
|
+
height: 932,
|
|
9187
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
|
|
9188
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(74.654),
|
|
9189
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
|
|
9190
|
+
dynamicIsland: { width: 376 / 3, height: 110 / 3, top: 34 / 3 },
|
|
9191
|
+
statusRowCenter: 30.05,
|
|
9192
|
+
safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
|
|
9193
|
+
keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
|
|
9194
|
+
physicalPPI: 460,
|
|
9195
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
9196
|
+
[173.3, 32.2],
|
|
9197
|
+
[253.4, 61.7],
|
|
9198
|
+
[343.3, 61.7],
|
|
9199
|
+
[268.5, 98.5]
|
|
9200
|
+
)
|
|
9201
|
+
}),
|
|
9202
|
+
"iphone-16-pro": /* @__PURE__ */ iosDevice({
|
|
9203
|
+
model: "iphone-16-pro",
|
|
9204
|
+
name: "iPhone 16 Pro",
|
|
9205
|
+
width: 402,
|
|
9206
|
+
height: 874,
|
|
9207
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(61),
|
|
9208
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(84.661),
|
|
9209
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
|
|
9210
|
+
dynamicIsland: { width: 125, height: 110 / 3, top: 14 },
|
|
9211
|
+
statusRowCenter: 32.5,
|
|
9212
|
+
safeAreaInsets: { top: 62, bottom: 34, left: 0, right: 0 },
|
|
9213
|
+
physicalPPI: 460,
|
|
9214
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
9215
|
+
[159.1, 31.5],
|
|
9216
|
+
[220.1, 61.9],
|
|
9217
|
+
[299, 61.9],
|
|
9218
|
+
[260.8, 98.9]
|
|
9219
|
+
)
|
|
9220
|
+
}),
|
|
9221
|
+
"iphone-16-pro-max": /* @__PURE__ */ iosDevice({
|
|
9222
|
+
model: "iphone-16-pro-max",
|
|
9223
|
+
name: "iPhone 16 Pro Max",
|
|
9224
|
+
width: 440,
|
|
9225
|
+
height: 956,
|
|
9226
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(61.3),
|
|
9227
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(85.163),
|
|
9228
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(15.4),
|
|
9229
|
+
dynamicIsland: { width: 376 / 3, height: 110 / 3, top: 14 },
|
|
9230
|
+
statusRowCenter: 33,
|
|
9231
|
+
safeAreaInsets: { top: 62, bottom: 34, left: 0, right: 0 },
|
|
9232
|
+
keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
|
|
9233
|
+
physicalPPI: 460,
|
|
9234
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
9235
|
+
[178.8, 32.2],
|
|
9236
|
+
[266.8, 61.8],
|
|
9237
|
+
[352.7, 61.8],
|
|
9238
|
+
[292.2, 98.3]
|
|
9239
|
+
)
|
|
9240
|
+
}),
|
|
9241
|
+
"iphone-17": /* @__PURE__ */ iosDevice({
|
|
9242
|
+
model: "iphone-17",
|
|
9243
|
+
name: "iPhone 17",
|
|
9244
|
+
width: 402,
|
|
9245
|
+
height: 874,
|
|
9246
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(61),
|
|
9247
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(84.661),
|
|
9248
|
+
// display border 1.44mm plus the visible flat housing rail.
|
|
9249
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
|
|
9250
|
+
dynamicIsland: { width: 125, height: 110 / 3, top: 14 },
|
|
9251
|
+
statusRowCenter: 32.65,
|
|
9252
|
+
safeAreaInsets: { top: 62, bottom: 34, left: 0, right: 0 },
|
|
9253
|
+
physicalPPI: 460,
|
|
9254
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
9255
|
+
[159.1, 31.5],
|
|
9256
|
+
[220.1, 61.9],
|
|
9257
|
+
[299, 61.9],
|
|
9258
|
+
[260.8, 98.9]
|
|
9259
|
+
)
|
|
9260
|
+
}),
|
|
9261
|
+
"iphone-17-air": /* @__PURE__ */ iosDevice({
|
|
9262
|
+
model: "iphone-17-air",
|
|
9263
|
+
// apple markets this as "iphone air" (not "iphone 17 air"). the real air
|
|
9264
|
+
// is 420x912 with thin bezels and a lower-sitting island. it is not the
|
|
9265
|
+
// 430x932 Plus body it used to be cloned from.
|
|
9266
|
+
name: "iPhone Air",
|
|
9267
|
+
width: 420,
|
|
9268
|
+
height: 912,
|
|
9269
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(64.6),
|
|
9270
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(88.313),
|
|
9271
|
+
// WHICH QUANTITY THIS IS, because it has been flipped twice and each pass
|
|
9272
|
+
// read the other one as a bug: frameInsets is the VISIBLE FACE-ON frame —
|
|
9273
|
+
// the black display border plus however much housing rail you actually see
|
|
9274
|
+
// looking straight at the phone. It is NOT the caliper silhouette.
|
|
9275
|
+
//
|
|
9276
|
+
// Apple publishes a 74.7×156.2mm body around a 1260×2736 display at 460ppi,
|
|
9277
|
+
// which is 15.475pt per side to the silhouette; that is the number to use if
|
|
9278
|
+
// you ever need physical dimensions, and it is what commit 4966fe6cac put
|
|
9279
|
+
// here. But most of that width on the Air is curved titanium turning away
|
|
9280
|
+
// from a head-on view, so rendering it as frame draws the Air with the
|
|
9281
|
+
// THICKEST bezel of any iPhone we ship when the real Air has the thinnest.
|
|
9282
|
+
//
|
|
9283
|
+
// So: 1.435mm display border = 8.69pt, plus ~2pt of rail that is actually
|
|
9284
|
+
// face-on. The 17 Pro's flat rail contributes ~6.6pt on the same basis,
|
|
9285
|
+
// which is why it sits at 15.3 and the Air should not.
|
|
9286
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(10.7),
|
|
9287
|
+
dynamicIsland: { width: 125, height: 110 / 3, top: 20 },
|
|
9288
|
+
statusRowCenter: 39,
|
|
9289
|
+
safeAreaInsets: { top: 68, bottom: 34, left: 0, right: 0 },
|
|
9290
|
+
keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
|
|
9291
|
+
physicalPPI: 460,
|
|
9292
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
9293
|
+
[178.8, 32.2],
|
|
9294
|
+
[266.8, 61.8],
|
|
9295
|
+
[352.7, 61.8],
|
|
9296
|
+
[292.2, 98.3]
|
|
9297
|
+
)
|
|
9298
|
+
}),
|
|
9299
|
+
"iphone-17-pro": /* @__PURE__ */ iosDevice({
|
|
9300
|
+
model: "iphone-17-pro",
|
|
9301
|
+
name: "iPhone 17 Pro",
|
|
9302
|
+
width: 402,
|
|
9303
|
+
height: 874,
|
|
9304
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(61),
|
|
9305
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(84.661),
|
|
9306
|
+
// the ios 27 simulator's ContainerRelativeShape at the root draws 62
|
|
9307
|
+
// less its smallest inset from the display (54 at 8pt, 32 at 30pt).
|
|
9308
|
+
systemCornerRadius: /* @__PURE__ */ cornerRadii(62),
|
|
9309
|
+
// display border 1.44mm plus the visible flat housing rail.
|
|
9310
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
|
|
9311
|
+
dynamicIsland: { width: 125, height: 110 / 3, top: 14 },
|
|
9312
|
+
statusRowCenter: 33,
|
|
9313
|
+
safeAreaInsets: { top: 62, bottom: 34, left: 0, right: 0 },
|
|
9314
|
+
// keyboardDidShow on the ios 27.0 simulator: 301 for the default keyboard,
|
|
9315
|
+
// 302 for the number pad.
|
|
9316
|
+
keyboardPanelHeights: { qwerty: 301, pad: 302, emoji: 395 },
|
|
9317
|
+
physicalPPI: 460,
|
|
9318
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
9319
|
+
[159.1, 31.5],
|
|
9320
|
+
[220.1, 61.9],
|
|
9321
|
+
[299, 61.9],
|
|
9322
|
+
[260.8, 98.9]
|
|
9323
|
+
)
|
|
9324
|
+
}),
|
|
9325
|
+
"iphone-17-pro-max": /* @__PURE__ */ iosDevice({
|
|
9326
|
+
model: "iphone-17-pro-max",
|
|
9327
|
+
name: "iPhone 17 Pro Max",
|
|
9328
|
+
width: 440,
|
|
9329
|
+
height: 956,
|
|
9330
|
+
// same ios 26.4 440x956 dynamic island max profile as the measured
|
|
9331
|
+
// iphone 16 pro max screens proof oracle.
|
|
9332
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(61.3),
|
|
9333
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(85.163),
|
|
9334
|
+
// display border 1.36mm plus the visible flat housing rail.
|
|
9335
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(15.4),
|
|
9336
|
+
dynamicIsland: { width: 376 / 3, height: 110 / 3, top: 14 },
|
|
9337
|
+
statusRowCenter: 33,
|
|
9338
|
+
safeAreaInsets: { top: 62, bottom: 34, left: 0, right: 0 },
|
|
9339
|
+
keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
|
|
9340
|
+
physicalPPI: 460,
|
|
9341
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
9342
|
+
[178.8, 32.2],
|
|
9343
|
+
[266.8, 61.8],
|
|
9344
|
+
[352.7, 61.8],
|
|
9345
|
+
[292.2, 98.3]
|
|
9346
|
+
)
|
|
9347
|
+
}),
|
|
9348
|
+
"iphone-duo": {
|
|
9349
|
+
// offered on contributor surfaces only while the 27 home and the hinge
|
|
9350
|
+
// measurements are still settling (nate, 2026-09-15).
|
|
9351
|
+
developmentOnly: true,
|
|
9352
|
+
.../* @__PURE__ */ iosDevice({
|
|
9353
|
+
model: "iphone-duo",
|
|
9354
|
+
name: "iPhone Duo",
|
|
9355
|
+
width: 466,
|
|
9356
|
+
height: 678,
|
|
9357
|
+
statusBarHeight: 66,
|
|
9358
|
+
// the ios 27.1 duo simulator draws the gesture home indicator in both
|
|
9359
|
+
// postures: a 167pt x 5pt pill 8pt above the display bottom on the
|
|
9360
|
+
// cover, sized by the same rule as the other iphones (HomeIndicator).
|
|
9361
|
+
// hinge on the left. the hinge-side display corners measure 5pt in
|
|
9362
|
+
// apple's 2d outer product art; the free side keeps the 61pt pro curve.
|
|
9363
|
+
cornerRadius: { topLeft: 5, topRight: 61, bottomRight: 61, bottomLeft: 5 },
|
|
9364
|
+
continuousCornerRadius: {
|
|
9365
|
+
topLeft: 5,
|
|
9366
|
+
topRight: 61,
|
|
9367
|
+
bottomRight: 61,
|
|
9368
|
+
bottomLeft: 5
|
|
9369
|
+
},
|
|
9370
|
+
// the ios 27.1 duo simulator reports 59, and sheets 8pt in on the free
|
|
9371
|
+
// side carry 51 there (41 at 18pt in).
|
|
9372
|
+
systemCornerRadius: { topLeft: 5, topRight: 59, bottomRight: 59, bottomLeft: 5 },
|
|
9373
|
+
// display edge to silhouette, measured off apple's 2d outer product art
|
|
9374
|
+
// at 3x. the barrel is not part of the body: it protrudes 11.67pt past
|
|
9375
|
+
// the left silhouette, so the full outer width is frame + protrusion.
|
|
9376
|
+
frameInsets: { top: 16.3333, right: 16.3333, bottom: 16, left: 14 },
|
|
9377
|
+
// the spine is a flat cut, so its corners are tiny; the free side keeps
|
|
9378
|
+
// the 75pt body curve the pro bodies use.
|
|
9379
|
+
frameCornerRadius: {
|
|
9380
|
+
topLeft: 4.3333,
|
|
9381
|
+
topRight: 75,
|
|
9382
|
+
bottomRight: 75,
|
|
9383
|
+
bottomLeft: 3.3333
|
|
9384
|
+
},
|
|
9385
|
+
housing: {
|
|
9386
|
+
rail: { top: 7.5, right: 8, bottom: 7.3333, left: 5.3333 },
|
|
9387
|
+
hingeBarrel: { width: 16.6667, endInset: 7.3333, protrusion: 11.6667 }
|
|
9388
|
+
},
|
|
9389
|
+
// 84pt trailing Vertical Bar on the outer display (Apple iOS 27 UI kit).
|
|
9390
|
+
safeAreaInsets: { top: 0, bottom: 34, left: 0, right: 84 },
|
|
9391
|
+
iosVersion: "27.1",
|
|
9392
|
+
// ios 27.1 24a94425: ordinary qwerty host (0,413,466,265)pt;
|
|
9393
|
+
// docs/ios/framework-oracle/keyboard-tray-accessibility-and-duo-recipes.md.
|
|
9394
|
+
// the cover keyboard cells report number pad 269; emoji keeps 338.
|
|
9395
|
+
keyboardPanelHeights: { qwerty: 265, pad: 269, emoji: 338 },
|
|
9396
|
+
physicalPPI: 460,
|
|
9397
|
+
// official model extraction for button positions is outside this slice.
|
|
9398
|
+
hardwareButtons: /* @__PURE__ */ modernButtons([0, 0], [0, 0], [0, 0], [0, 0]),
|
|
9399
|
+
posture: "closed",
|
|
9400
|
+
supportedPostures: ["closed", "open"]
|
|
9401
|
+
}),
|
|
9402
|
+
// the ios 27.1 simulator's camera occlusion region: 37pt, 29 1/3 in from
|
|
9403
|
+
// the top and trailing edges
|
|
9404
|
+
cameraCutout: {
|
|
9405
|
+
diameter: 37,
|
|
9406
|
+
top: 88 / 3,
|
|
9407
|
+
trailing: 88 / 3
|
|
9408
|
+
},
|
|
9409
|
+
// closed portrait popover region on the ios 27.1 duo simulator (uikit
|
|
9410
|
+
// sheet probe, popoverLayoutMargins zero): left 8, the other edges 25.
|
|
9411
|
+
// the open and rotated profiles are unmeasured and drop it.
|
|
9412
|
+
popoverRegionInsets: { left: 8, top: 25, right: 25, bottom: 25 }
|
|
9413
|
+
},
|
|
9414
|
+
"ipad-pro-11": {
|
|
9415
|
+
// frame and hardware buttons are not sourced yet, so this stays off the
|
|
9416
|
+
// shipping picker the same way the duo does.
|
|
9417
|
+
developmentOnly: true,
|
|
9418
|
+
.../* @__PURE__ */ ipadProDevice(
|
|
9419
|
+
"ipad-pro-11",
|
|
9420
|
+
"iPad Pro 11-inch (M5)",
|
|
9421
|
+
834,
|
|
9422
|
+
1210,
|
|
9423
|
+
11,
|
|
9424
|
+
340
|
|
9425
|
+
)
|
|
9426
|
+
},
|
|
9427
|
+
"ipad-pro-13": /* @__PURE__ */ ipadProDevice(
|
|
9428
|
+
"ipad-pro-13",
|
|
9429
|
+
"iPad Pro 13-inch (M5)",
|
|
9430
|
+
1032,
|
|
9431
|
+
1376,
|
|
9432
|
+
13,
|
|
9433
|
+
403
|
|
9434
|
+
),
|
|
9435
|
+
// an iPadOS app window the user resizes, on the iPad Pro 13-inch (M5). the
|
|
9436
|
+
// profile is the launch window; the host sizes it with withWindowSize.
|
|
9437
|
+
// numbers are the iOS 27.0 Stage Manager window in
|
|
9438
|
+
// docs/ios/ipad-window-geometry.md.
|
|
9439
|
+
dynamic: {
|
|
9440
|
+
.../* @__PURE__ */ ipadProDevice("dynamic", "Dynamic Window", 375, 753, 13, 403),
|
|
9441
|
+
// the window starts below the screen's status strip and no home indicator
|
|
9442
|
+
// is drawn in it, so neither insets the window.
|
|
9443
|
+
statusBarHeight: 0,
|
|
9444
|
+
landscapeStatusBarHeight: 0,
|
|
9445
|
+
homeIndicatorHeight: 0,
|
|
9446
|
+
navigationBarMode: "none",
|
|
9447
|
+
// the system clips the window to a 32pt circular arc.
|
|
9448
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(32),
|
|
9449
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(32),
|
|
9450
|
+
// the display's diagonal, not the window's.
|
|
9451
|
+
physicalPPI: Math.hypot(2064, 2752) / 13,
|
|
9452
|
+
safeAreaInsets: { top: 0, bottom: 0, left: 10, right: 10 },
|
|
9453
|
+
packagedOnly: true
|
|
9454
|
+
},
|
|
9455
|
+
"pixel-8": {
|
|
9456
|
+
model: "pixel-8",
|
|
9457
|
+
platform: "android",
|
|
9458
|
+
name: "Pixel 8",
|
|
9459
|
+
width: PIXEL_8_WIDTH,
|
|
9460
|
+
height: PIXEL_8_HEIGHT,
|
|
9461
|
+
scale: 2.625,
|
|
9462
|
+
statusBarHeight: PIXEL_8_STATUS_BAR_HEIGHT,
|
|
9463
|
+
landscapeStatusBarHeight: PIXEL_8_LANDSCAPE_STATUS_BAR_HEIGHT,
|
|
9464
|
+
homeIndicatorHeight: 0,
|
|
9465
|
+
navigationBarHeight: ANDROID_GESTURE_NAV_BAR_HEIGHT,
|
|
9466
|
+
keyboardPanelHeights: GBOARD_PANEL_HEIGHTS,
|
|
9467
|
+
navigationBarMode: "gesture",
|
|
9468
|
+
displayCutout: {
|
|
9469
|
+
top: PIXEL_8_STATUS_BAR_HEIGHT,
|
|
9470
|
+
bottom: 0,
|
|
9471
|
+
left: 0,
|
|
9472
|
+
right: 0
|
|
9473
|
+
},
|
|
9474
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(39),
|
|
9475
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(39),
|
|
9476
|
+
// android studio's pixel 8 device art places the 1080x2400 display at
|
|
9477
|
+
// (49,55) in a 1187x2513 body. the right side button occupies the final
|
|
9478
|
+
// 8 physical pixels, so the body insets are 49/50/58/55 at 2.625x.
|
|
9479
|
+
frameInsets: {
|
|
9480
|
+
top: 55 / 2.625,
|
|
9481
|
+
right: 50 / 2.625,
|
|
9482
|
+
bottom: 58 / 2.625,
|
|
9483
|
+
left: 49 / 2.625
|
|
9484
|
+
},
|
|
9485
|
+
dynamicIsland: null,
|
|
9486
|
+
cameraCutout: { diameter: 72.5 / 2.625 },
|
|
9487
|
+
safeAreaInsets: {
|
|
9488
|
+
top: PIXEL_8_STATUS_BAR_HEIGHT,
|
|
9489
|
+
bottom: ANDROID_GESTURE_NAV_BAR_HEIGHT,
|
|
9490
|
+
left: 0,
|
|
9491
|
+
right: 0
|
|
9492
|
+
},
|
|
9493
|
+
osVersion: ANDROID_OS_VERSION,
|
|
9494
|
+
iosVersion: "",
|
|
9495
|
+
androidApiLevel: ANDROID_API_LEVEL,
|
|
9496
|
+
systemName: "Android",
|
|
9497
|
+
manufacturer: "Google",
|
|
9498
|
+
brand: "google",
|
|
9499
|
+
modelName: "Pixel 8",
|
|
9500
|
+
physicalPPI: 428,
|
|
9501
|
+
hardwareButtons: PIXEL_HARDWARE_BUTTONS
|
|
9502
|
+
},
|
|
9503
|
+
"pixel-8-three-button": {
|
|
9504
|
+
model: "pixel-8-three-button",
|
|
9505
|
+
platform: "android",
|
|
9506
|
+
name: "Pixel 8 (3-button)",
|
|
9507
|
+
width: PIXEL_8_WIDTH,
|
|
9508
|
+
height: PIXEL_8_HEIGHT,
|
|
9509
|
+
scale: 2.625,
|
|
9510
|
+
statusBarHeight: PIXEL_8_STATUS_BAR_HEIGHT,
|
|
9511
|
+
landscapeStatusBarHeight: PIXEL_8_LANDSCAPE_STATUS_BAR_HEIGHT,
|
|
9512
|
+
homeIndicatorHeight: 0,
|
|
9513
|
+
navigationBarHeight: 48,
|
|
9514
|
+
keyboardPanelHeights: GBOARD_PANEL_HEIGHTS,
|
|
9515
|
+
navigationBarMode: "three-button",
|
|
9516
|
+
displayCutout: {
|
|
9517
|
+
top: PIXEL_8_STATUS_BAR_HEIGHT,
|
|
9518
|
+
bottom: 0,
|
|
9519
|
+
left: 0,
|
|
9520
|
+
right: 0
|
|
9521
|
+
},
|
|
9522
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(39),
|
|
9523
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(39),
|
|
9524
|
+
frameInsets: {
|
|
9525
|
+
top: 55 / 2.625,
|
|
9526
|
+
right: 50 / 2.625,
|
|
9527
|
+
bottom: 58 / 2.625,
|
|
9528
|
+
left: 49 / 2.625
|
|
9529
|
+
},
|
|
9530
|
+
dynamicIsland: null,
|
|
9531
|
+
cameraCutout: { diameter: 72.5 / 2.625 },
|
|
9532
|
+
safeAreaInsets: {
|
|
9533
|
+
top: PIXEL_8_STATUS_BAR_HEIGHT,
|
|
9534
|
+
bottom: 48,
|
|
9535
|
+
left: 0,
|
|
9536
|
+
right: 0
|
|
9537
|
+
},
|
|
9538
|
+
osVersion: ANDROID_OS_VERSION,
|
|
9539
|
+
iosVersion: "",
|
|
9540
|
+
androidApiLevel: ANDROID_API_LEVEL,
|
|
9541
|
+
systemName: "Android",
|
|
9542
|
+
manufacturer: "Google",
|
|
9543
|
+
brand: "google",
|
|
9544
|
+
modelName: "Pixel 8",
|
|
9545
|
+
physicalPPI: 428,
|
|
9546
|
+
hardwareButtons: PIXEL_HARDWARE_BUTTONS
|
|
9547
|
+
},
|
|
9548
|
+
"pixel-9-pro-xl": {
|
|
9549
|
+
model: "pixel-9-pro-xl",
|
|
9550
|
+
platform: "android",
|
|
9551
|
+
name: "Pixel 9 Pro XL",
|
|
9552
|
+
width: 448,
|
|
9553
|
+
height: 997,
|
|
9554
|
+
scale: 3,
|
|
9555
|
+
statusBarHeight: 40,
|
|
9556
|
+
landscapeStatusBarHeight: 40,
|
|
9557
|
+
homeIndicatorHeight: 0,
|
|
9558
|
+
navigationBarHeight: ANDROID_GESTURE_NAV_BAR_HEIGHT,
|
|
9559
|
+
keyboardPanelHeights: GBOARD_PANEL_HEIGHTS,
|
|
9560
|
+
navigationBarMode: "gesture",
|
|
9561
|
+
displayCutout: { top: 40, bottom: 0, left: 0, right: 0 },
|
|
9562
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(41),
|
|
9563
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(41),
|
|
9564
|
+
// Pixel 9 Pro XL body 162.8×76.6mm over a 70.2mm panel → ~1.8mm ≈ 12pt.
|
|
9565
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(12),
|
|
9566
|
+
dynamicIsland: null,
|
|
9567
|
+
cameraCutout: { diameter: 24 },
|
|
9568
|
+
safeAreaInsets: {
|
|
9569
|
+
top: 40,
|
|
9570
|
+
bottom: ANDROID_GESTURE_NAV_BAR_HEIGHT,
|
|
9571
|
+
left: 0,
|
|
9572
|
+
right: 0
|
|
9573
|
+
},
|
|
9574
|
+
osVersion: ANDROID_OS_VERSION,
|
|
9575
|
+
iosVersion: "",
|
|
9576
|
+
androidApiLevel: ANDROID_API_LEVEL,
|
|
9577
|
+
systemName: "Android",
|
|
9578
|
+
manufacturer: "Google",
|
|
9579
|
+
brand: "google",
|
|
9580
|
+
modelName: "Pixel 9 Pro XL",
|
|
9581
|
+
physicalPPI: 486,
|
|
9582
|
+
hardwareButtons: PIXEL_HARDWARE_BUTTONS
|
|
9583
|
+
},
|
|
9584
|
+
"pixel-10": {
|
|
9585
|
+
model: "pixel-10",
|
|
9586
|
+
platform: "android",
|
|
9587
|
+
name: "Pixel 10",
|
|
9588
|
+
width: 360,
|
|
9589
|
+
height: 808,
|
|
9590
|
+
scale: 3,
|
|
9591
|
+
statusBarHeight: 40,
|
|
9592
|
+
landscapeStatusBarHeight: 40,
|
|
9593
|
+
homeIndicatorHeight: 0,
|
|
9594
|
+
navigationBarHeight: ANDROID_GESTURE_NAV_BAR_HEIGHT,
|
|
9595
|
+
keyboardPanelHeights: GBOARD_PANEL_HEIGHTS,
|
|
9596
|
+
navigationBarMode: "gesture",
|
|
9597
|
+
displayCutout: { top: 40, bottom: 0, left: 0, right: 0 },
|
|
9598
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(40),
|
|
9599
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(40),
|
|
9600
|
+
// the 72mm body surrounds a roughly 65.1mm-wide 6.3-inch panel, which
|
|
9601
|
+
// resolves to about 18 logical points of frame around the 1080px display.
|
|
9602
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(18),
|
|
9603
|
+
dynamicIsland: null,
|
|
9604
|
+
cameraCutout: { diameter: 26 },
|
|
9605
|
+
safeAreaInsets: {
|
|
9606
|
+
top: 40,
|
|
9607
|
+
bottom: ANDROID_GESTURE_NAV_BAR_HEIGHT,
|
|
9608
|
+
left: 0,
|
|
9609
|
+
right: 0
|
|
9610
|
+
},
|
|
9611
|
+
osVersion: ANDROID_OS_VERSION,
|
|
9612
|
+
iosVersion: "",
|
|
9613
|
+
androidApiLevel: ANDROID_API_LEVEL,
|
|
9614
|
+
systemName: "Android",
|
|
9615
|
+
manufacturer: "Google",
|
|
9616
|
+
brand: "google",
|
|
9617
|
+
modelName: "Pixel 10",
|
|
9618
|
+
physicalPPI: 422,
|
|
9619
|
+
hardwareButtons: PIXEL_HARDWARE_BUTTONS
|
|
9620
|
+
},
|
|
9621
|
+
"galaxy-s24": {
|
|
9622
|
+
model: "galaxy-s24",
|
|
9623
|
+
platform: "android",
|
|
9624
|
+
name: "Galaxy S24",
|
|
9625
|
+
width: 360,
|
|
9626
|
+
height: 780,
|
|
9627
|
+
scale: 3,
|
|
9628
|
+
statusBarHeight: 36,
|
|
9629
|
+
landscapeStatusBarHeight: 36,
|
|
9630
|
+
homeIndicatorHeight: 0,
|
|
9631
|
+
navigationBarHeight: ANDROID_GESTURE_NAV_BAR_HEIGHT,
|
|
9632
|
+
keyboardPanelHeights: GBOARD_PANEL_HEIGHTS,
|
|
9633
|
+
navigationBarMode: "gesture",
|
|
9634
|
+
displayCutout: { top: 36, bottom: 0, left: 0, right: 0 },
|
|
9635
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(36),
|
|
9636
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(36),
|
|
9637
|
+
// Galaxy S24 body 147.0×70.6mm over a 65.9mm panel → ~1.2mm ≈ 8pt (Samsung
|
|
9638
|
+
// flat-display bezels are noticeably thinner than Pixel's).
|
|
9639
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(8),
|
|
9640
|
+
dynamicIsland: null,
|
|
9641
|
+
cameraCutout: { diameter: 18 },
|
|
9642
|
+
safeAreaInsets: {
|
|
9643
|
+
top: 36,
|
|
9644
|
+
bottom: ANDROID_GESTURE_NAV_BAR_HEIGHT,
|
|
9645
|
+
left: 0,
|
|
9646
|
+
right: 0
|
|
9647
|
+
},
|
|
9648
|
+
osVersion: ANDROID_OS_VERSION,
|
|
9649
|
+
iosVersion: "",
|
|
9650
|
+
androidApiLevel: ANDROID_API_LEVEL,
|
|
9651
|
+
systemName: "Android",
|
|
9652
|
+
manufacturer: "Samsung",
|
|
9653
|
+
brand: "samsung",
|
|
9654
|
+
modelName: "SM-S921B",
|
|
9655
|
+
physicalPPI: 416,
|
|
9656
|
+
hardwareButtons: GALAXY_HARDWARE_BUTTONS
|
|
9657
|
+
},
|
|
9658
|
+
"galaxy-s24-ultra": {
|
|
9659
|
+
model: "galaxy-s24-ultra",
|
|
9660
|
+
platform: "android",
|
|
9661
|
+
name: "Galaxy S24 Ultra",
|
|
9662
|
+
width: 384,
|
|
9663
|
+
// samsung publishes a 1440x3120 panel; 3.75x resolves to 384x832.
|
|
9664
|
+
height: 832,
|
|
9665
|
+
scale: 3.75,
|
|
9666
|
+
statusBarHeight: 36,
|
|
9667
|
+
landscapeStatusBarHeight: 36,
|
|
9668
|
+
homeIndicatorHeight: 0,
|
|
9669
|
+
navigationBarHeight: ANDROID_GESTURE_NAV_BAR_HEIGHT,
|
|
9670
|
+
keyboardPanelHeights: GBOARD_PANEL_HEIGHTS,
|
|
9671
|
+
navigationBarMode: "gesture",
|
|
9672
|
+
displayCutout: { top: 36, bottom: 0, left: 0, right: 0 },
|
|
9673
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(24),
|
|
9674
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(24),
|
|
9675
|
+
// Galaxy S24 Ultra body 162.3×79.0mm over a 72.4mm panel → ~1.5mm ≈ 9pt.
|
|
9676
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(9),
|
|
9677
|
+
dynamicIsland: null,
|
|
9678
|
+
cameraCutout: { diameter: 18 },
|
|
9679
|
+
safeAreaInsets: {
|
|
9680
|
+
top: 36,
|
|
9681
|
+
bottom: ANDROID_GESTURE_NAV_BAR_HEIGHT,
|
|
9682
|
+
left: 0,
|
|
9683
|
+
right: 0
|
|
9684
|
+
},
|
|
9685
|
+
osVersion: ANDROID_OS_VERSION,
|
|
9686
|
+
iosVersion: "",
|
|
9687
|
+
androidApiLevel: ANDROID_API_LEVEL,
|
|
9688
|
+
systemName: "Android",
|
|
9689
|
+
manufacturer: "Samsung",
|
|
9690
|
+
brand: "samsung",
|
|
9691
|
+
modelName: "SM-S928B",
|
|
9692
|
+
physicalPPI: 505,
|
|
9693
|
+
hardwareButtons: GALAXY_HARDWARE_BUTTONS
|
|
9694
|
+
}
|
|
9695
|
+
};
|
|
9696
|
+
devices = profiles;
|
|
9697
|
+
DEFAULT_DEVICE = "iphone-17-pro";
|
|
8650
9698
|
}
|
|
8651
9699
|
});
|
|
8652
9700
|
|
|
8653
|
-
// src/
|
|
8654
|
-
var
|
|
8655
|
-
|
|
9701
|
+
// src/menuContract.ts
|
|
9702
|
+
var SOOTSIM_AMBIENT_GLOW_LEVELS, SOOTSIM_STAGE_BACKGROUNDS, SOOTSIM_RENDER_RESOLUTION_LEVELS;
|
|
9703
|
+
var init_menuContract = __esm({
|
|
9704
|
+
"src/menuContract.ts"() {
|
|
8656
9705
|
"use strict";
|
|
9706
|
+
SOOTSIM_AMBIENT_GLOW_LEVELS = ["off", "soft", "full"];
|
|
9707
|
+
SOOTSIM_STAGE_BACKGROUNDS = ["system", "light", "dark", "gray"];
|
|
9708
|
+
SOOTSIM_RENDER_RESOLUTION_LEVELS = ["high", "medium", "low"];
|
|
8657
9709
|
}
|
|
8658
9710
|
});
|
|
8659
9711
|
|
|
8660
|
-
// src/
|
|
8661
|
-
var
|
|
8662
|
-
|
|
9712
|
+
// src/reactNativeConfigurationContract.ts
|
|
9713
|
+
var DEFAULT_REACT_NATIVE_CONFIGURATION, REACT_NATIVE_CONFIGURATION_KEYS;
|
|
9714
|
+
var init_reactNativeConfigurationContract = __esm({
|
|
9715
|
+
"src/reactNativeConfigurationContract.ts"() {
|
|
8663
9716
|
"use strict";
|
|
8664
|
-
|
|
9717
|
+
DEFAULT_REACT_NATIVE_CONFIGURATION = {
|
|
9718
|
+
// the appearance setting itself (automatic, light or dark); the resolved
|
|
9719
|
+
// scheme reaches workers through Appearance
|
|
9720
|
+
colorScheme: "auto",
|
|
9721
|
+
language: "en",
|
|
9722
|
+
preferredLanguages: Array(),
|
|
9723
|
+
region: "US",
|
|
9724
|
+
fontSize: 1,
|
|
9725
|
+
boldText: false,
|
|
9726
|
+
reduceMotion: false,
|
|
9727
|
+
largerAccessibilitySizes: false,
|
|
9728
|
+
glassTintAmount: 0.5,
|
|
9729
|
+
reduceTransparency: false,
|
|
9730
|
+
increaseContrast: false,
|
|
9731
|
+
showBorders: false,
|
|
9732
|
+
onOffLabels: false,
|
|
9733
|
+
differentiateWithoutColor: false,
|
|
9734
|
+
smartInvert: false,
|
|
9735
|
+
preferCrossFadeTransitions: false
|
|
9736
|
+
};
|
|
9737
|
+
REACT_NATIVE_CONFIGURATION_KEYS = Object.keys(
|
|
9738
|
+
DEFAULT_REACT_NATIVE_CONFIGURATION
|
|
9739
|
+
).filter(
|
|
9740
|
+
(key) => key in DEFAULT_REACT_NATIVE_CONFIGURATION
|
|
9741
|
+
);
|
|
8665
9742
|
}
|
|
8666
9743
|
});
|
|
8667
9744
|
|
|
8668
|
-
// src/
|
|
8669
|
-
var
|
|
8670
|
-
var
|
|
8671
|
-
"src/
|
|
9745
|
+
// src/screenshots/preset-names.ts
|
|
9746
|
+
var SCREENSHOT_CANVAS_NAMES, BACKGROUND_PRESET_NAMES, TEXT_PRESET_NAMES, POSE_PRESET_NAMES;
|
|
9747
|
+
var init_preset_names = __esm({
|
|
9748
|
+
"src/screenshots/preset-names.ts"() {
|
|
8672
9749
|
"use strict";
|
|
8673
|
-
|
|
9750
|
+
SCREENSHOT_CANVAS_NAMES = [
|
|
9751
|
+
"iphone-6-9",
|
|
9752
|
+
"iphone-6-1",
|
|
9753
|
+
"ipad-pro-13",
|
|
9754
|
+
"android-phone",
|
|
9755
|
+
"android-tablet-7",
|
|
9756
|
+
"android-tablet-10"
|
|
9757
|
+
];
|
|
9758
|
+
BACKGROUND_PRESET_NAMES = ["dark", "cyan", "gold", "red"];
|
|
9759
|
+
TEXT_PRESET_NAMES = [
|
|
9760
|
+
"bold-top",
|
|
9761
|
+
"editorial-left",
|
|
9762
|
+
"minimal-bottom",
|
|
9763
|
+
"none"
|
|
9764
|
+
];
|
|
9765
|
+
POSE_PRESET_NAMES = [
|
|
9766
|
+
"straight",
|
|
9767
|
+
"tilted-left",
|
|
9768
|
+
"tilted-right",
|
|
9769
|
+
"cut-bottom",
|
|
9770
|
+
"cut-top"
|
|
9771
|
+
];
|
|
8674
9772
|
}
|
|
8675
9773
|
});
|
|
8676
9774
|
|
|
8677
|
-
// src/
|
|
8678
|
-
|
|
8679
|
-
|
|
8680
|
-
|
|
9775
|
+
// src/settingsContract.ts
|
|
9776
|
+
function isValidSettingValue(key, value) {
|
|
9777
|
+
const def = settingsSchema[key];
|
|
9778
|
+
if (!def || typeof value !== SETTING_VALUE_TYPES[def.type]) return false;
|
|
9779
|
+
if (def.options && !def.options.some((option) => option === value)) return false;
|
|
9780
|
+
return !def.validate || def.validate(value);
|
|
9781
|
+
}
|
|
9782
|
+
function isProfileSettingKey(key) {
|
|
9783
|
+
return PROFILE_SETTING_KEYS.some((profileKey) => profileKey === key);
|
|
9784
|
+
}
|
|
9785
|
+
function isValidProfileValue(key, value) {
|
|
9786
|
+
if (!isValidSettingValue(key, value)) return false;
|
|
9787
|
+
return key !== "fontSize" || IOS_DYNAMIC_TYPE_SCALES.some((scale) => scale === value);
|
|
9788
|
+
}
|
|
9789
|
+
function describeSettingValues(key) {
|
|
9790
|
+
if (key === "fontSize")
|
|
9791
|
+
return `a Dynamic Type size (${IOS_DYNAMIC_TYPE_SCALES.join(", ")})`;
|
|
9792
|
+
const def = settingsSchema[key];
|
|
9793
|
+
if (def.type === "boolean") return "on or off";
|
|
9794
|
+
if (def.options) return def.options.join(", ");
|
|
9795
|
+
if (def.type === "string-array") return "a comma separated list";
|
|
9796
|
+
if (def.type === "number") return def.validate ? "a number in its range" : "a number";
|
|
9797
|
+
return "text";
|
|
9798
|
+
}
|
|
9799
|
+
function readSettingsProfile(value, label) {
|
|
9800
|
+
if (typeof value !== "object" || value === null || Array.isArray(value))
|
|
9801
|
+
throw new Error(`${label} must be an object of settings`);
|
|
9802
|
+
const profile = {};
|
|
9803
|
+
for (const [key, setting] of Object.entries(value)) {
|
|
9804
|
+
if (!isProfileSettingKey(key))
|
|
9805
|
+
throw new Error(
|
|
9806
|
+
`${label}: unknown setting "${key}". profiles set ${PROFILE_SETTING_KEYS.join(", ")}`
|
|
9807
|
+
);
|
|
9808
|
+
if (!isValidProfileValue(key, setting))
|
|
9809
|
+
throw new Error(
|
|
9810
|
+
`${label}: ${key} must be ${describeSettingValues(key)}, got ${JSON.stringify(setting)}`
|
|
9811
|
+
);
|
|
9812
|
+
profile[key] = setting;
|
|
8681
9813
|
}
|
|
8682
|
-
|
|
8683
|
-
|
|
8684
|
-
|
|
8685
|
-
var
|
|
8686
|
-
|
|
8687
|
-
"src/git-repo-env.ts"() {
|
|
9814
|
+
return profile;
|
|
9815
|
+
}
|
|
9816
|
+
var SIMULATED_DEVICE_SETTING_KEYS, settingsSchema, SETTING_VALUE_TYPES, DEFAULT_SIMULATED_DEVICE_SETTINGS, PROFILE_SETTING_KEYS;
|
|
9817
|
+
var init_settingsContract = __esm({
|
|
9818
|
+
"src/settingsContract.ts"() {
|
|
8688
9819
|
"use strict";
|
|
8689
|
-
|
|
8690
|
-
|
|
8691
|
-
|
|
9820
|
+
init_dynamic_type_scales();
|
|
9821
|
+
init_profilerContract();
|
|
9822
|
+
init_device_catalog();
|
|
9823
|
+
init_menuContract();
|
|
9824
|
+
init_reactNativeConfigurationContract();
|
|
9825
|
+
init_preset_names();
|
|
9826
|
+
SIMULATED_DEVICE_SETTING_KEYS = [
|
|
9827
|
+
"predictiveText",
|
|
9828
|
+
"colorScheme",
|
|
9829
|
+
"reduceMotion",
|
|
9830
|
+
"boldText",
|
|
9831
|
+
"fontSize",
|
|
9832
|
+
"largerAccessibilitySizes",
|
|
9833
|
+
"glassTintAmount",
|
|
9834
|
+
"reduceTransparency",
|
|
9835
|
+
"increaseContrast",
|
|
9836
|
+
"showBorders",
|
|
9837
|
+
"onOffLabels",
|
|
9838
|
+
"differentiateWithoutColor",
|
|
9839
|
+
"smartInvert",
|
|
9840
|
+
"preferCrossFadeTransitions"
|
|
9841
|
+
];
|
|
9842
|
+
settingsSchema = {
|
|
9843
|
+
// device
|
|
9844
|
+
deviceModel: {
|
|
9845
|
+
type: "enum",
|
|
9846
|
+
default: DEFAULT_DEVICE,
|
|
9847
|
+
description: "device model to simulate",
|
|
9848
|
+
options: listDeviceModels(),
|
|
9849
|
+
group: "device"
|
|
9850
|
+
},
|
|
9851
|
+
posture: {
|
|
9852
|
+
type: "enum",
|
|
9853
|
+
default: "closed",
|
|
9854
|
+
description: "display posture for foldables: the display the hinge lights. book and laptop light the open display and tent the closed one; peach device posture names the hinge rest",
|
|
9855
|
+
options: ["closed", "open"],
|
|
9856
|
+
group: "device"
|
|
9857
|
+
},
|
|
9858
|
+
orientation: {
|
|
9859
|
+
type: "enum",
|
|
9860
|
+
default: "portrait",
|
|
9861
|
+
description: "screen orientation",
|
|
9862
|
+
options: ["portrait", "landscape"],
|
|
9863
|
+
group: "device"
|
|
9864
|
+
},
|
|
9865
|
+
landscapeSide: {
|
|
9866
|
+
type: "enum",
|
|
9867
|
+
default: "left",
|
|
9868
|
+
description: "which landscape the device turns to: left (clockwise) or right",
|
|
9869
|
+
options: ["left", "right"],
|
|
9870
|
+
group: "device"
|
|
9871
|
+
},
|
|
9872
|
+
// an iPadOS window launches at 375 x 753 (docs/ios/ipad-window-geometry.md)
|
|
9873
|
+
dynamicWidth: {
|
|
9874
|
+
type: "number",
|
|
9875
|
+
default: devices.dynamic.width,
|
|
9876
|
+
description: "dynamic window width in points",
|
|
9877
|
+
group: "device",
|
|
9878
|
+
validate: (value) => value >= DYNAMIC_WINDOW_LIMITS.minWidth && value <= DYNAMIC_WINDOW_LIMITS.maxWidth
|
|
9879
|
+
},
|
|
9880
|
+
dynamicHeight: {
|
|
9881
|
+
type: "number",
|
|
9882
|
+
default: devices.dynamic.height,
|
|
9883
|
+
description: "dynamic window height in points",
|
|
9884
|
+
group: "device",
|
|
9885
|
+
validate: (value) => value >= DYNAMIC_WINDOW_LIMITS.minHeight && value <= DYNAMIC_WINDOW_LIMITS.maxHeight
|
|
9886
|
+
},
|
|
9887
|
+
osVersionOverride: {
|
|
9888
|
+
type: "string",
|
|
9889
|
+
default: "",
|
|
9890
|
+
description: "os version the device reports instead of its profile's (empty = the profile's version); set per launch with ?osVersion=, never saved",
|
|
9891
|
+
group: "device"
|
|
9892
|
+
},
|
|
9893
|
+
predictiveText: {
|
|
9894
|
+
type: "boolean",
|
|
9895
|
+
default: true,
|
|
9896
|
+
description: "keyboard predictive text (off hides the QuickType lane)",
|
|
9897
|
+
group: "device"
|
|
9898
|
+
},
|
|
9899
|
+
hardwareKeyboard: {
|
|
9900
|
+
type: "boolean",
|
|
9901
|
+
default: false,
|
|
9902
|
+
description: "connect the host keyboard: typing needs no on-screen keyboard",
|
|
9903
|
+
group: "device"
|
|
9904
|
+
},
|
|
9905
|
+
// appearance
|
|
9906
|
+
colorScheme: {
|
|
9907
|
+
type: "enum",
|
|
9908
|
+
default: "auto",
|
|
9909
|
+
description: "color scheme (auto follows system preference)",
|
|
9910
|
+
options: ["light", "dark", "auto"],
|
|
9911
|
+
group: "appearance"
|
|
9912
|
+
},
|
|
9913
|
+
reduceMotion: {
|
|
9914
|
+
type: "boolean",
|
|
9915
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.reduceMotion,
|
|
9916
|
+
description: "reduce motion",
|
|
9917
|
+
group: "appearance"
|
|
9918
|
+
},
|
|
9919
|
+
boldText: {
|
|
9920
|
+
type: "boolean",
|
|
9921
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.boldText,
|
|
9922
|
+
description: "bold text",
|
|
9923
|
+
group: "appearance"
|
|
9924
|
+
},
|
|
9925
|
+
fontSize: {
|
|
9926
|
+
type: "number",
|
|
9927
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.fontSize,
|
|
9928
|
+
description: "font size multiplier (1.0 = default)",
|
|
9929
|
+
group: "appearance",
|
|
9930
|
+
// android permits continuous font scales; ios settings and capture urls
|
|
9931
|
+
// constrain their own inputs to the discrete dynamic type ramp.
|
|
9932
|
+
validate: (value) => value >= 0.5 && value <= 4
|
|
9933
|
+
},
|
|
9934
|
+
largerAccessibilitySizes: {
|
|
9935
|
+
type: "boolean",
|
|
9936
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.largerAccessibilitySizes,
|
|
9937
|
+
description: "show accessibility categories in the dynamic type size picker",
|
|
9938
|
+
group: "appearance"
|
|
9939
|
+
},
|
|
9940
|
+
reduceTransparency: {
|
|
9941
|
+
type: "boolean",
|
|
9942
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.reduceTransparency,
|
|
9943
|
+
description: "reduce transparency",
|
|
9944
|
+
group: "appearance"
|
|
9945
|
+
},
|
|
9946
|
+
increaseContrast: {
|
|
9947
|
+
type: "boolean",
|
|
9948
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.increaseContrast,
|
|
9949
|
+
description: "increase contrast",
|
|
9950
|
+
group: "appearance"
|
|
9951
|
+
},
|
|
9952
|
+
showBorders: {
|
|
9953
|
+
type: "boolean",
|
|
9954
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.showBorders,
|
|
9955
|
+
description: "show borders on text buttons",
|
|
9956
|
+
group: "appearance"
|
|
9957
|
+
},
|
|
9958
|
+
onOffLabels: {
|
|
9959
|
+
type: "boolean",
|
|
9960
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.onOffLabels,
|
|
9961
|
+
description: "on/off labels inside switches",
|
|
9962
|
+
group: "appearance"
|
|
9963
|
+
},
|
|
9964
|
+
differentiateWithoutColor: {
|
|
9965
|
+
type: "boolean",
|
|
9966
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.differentiateWithoutColor,
|
|
9967
|
+
description: "differentiate without color",
|
|
9968
|
+
group: "appearance"
|
|
9969
|
+
},
|
|
9970
|
+
smartInvert: {
|
|
9971
|
+
type: "boolean",
|
|
9972
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.smartInvert,
|
|
9973
|
+
description: "smart invert",
|
|
9974
|
+
group: "appearance"
|
|
9975
|
+
},
|
|
9976
|
+
preferCrossFadeTransitions: {
|
|
9977
|
+
type: "boolean",
|
|
9978
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.preferCrossFadeTransitions,
|
|
9979
|
+
description: "prefer cross-fade transitions while reduce motion is on",
|
|
9980
|
+
group: "appearance"
|
|
9981
|
+
},
|
|
9982
|
+
// ios persists the slider as com.apple.UIKit UIViewGlassTintAmount in steps
|
|
9983
|
+
// of 0.05; with the key absent the material reads the middle.
|
|
9984
|
+
glassTintAmount: {
|
|
9985
|
+
type: "number",
|
|
9986
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.glassTintAmount,
|
|
9987
|
+
description: "liquid glass tint amount (0 most clear, 0.5 default, 1 most tinted)",
|
|
9988
|
+
group: "appearance",
|
|
9989
|
+
validate: (value) => value >= 0 && value <= 1
|
|
9990
|
+
},
|
|
9991
|
+
// locale
|
|
9992
|
+
language: {
|
|
9993
|
+
type: "string",
|
|
9994
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.language,
|
|
9995
|
+
description: "language code (ISO 639-1)",
|
|
9996
|
+
group: "locale"
|
|
9997
|
+
},
|
|
9998
|
+
preferredLanguages: {
|
|
9999
|
+
type: "string-array",
|
|
10000
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.preferredLanguages,
|
|
10001
|
+
description: "ordered preferred language tags; empty follows language and region",
|
|
10002
|
+
group: "locale",
|
|
10003
|
+
validate: (value) => {
|
|
10004
|
+
if (!Array.isArray(value)) return false;
|
|
10005
|
+
return value.every((tag) => {
|
|
10006
|
+
if (typeof tag !== "string" || !tag) return false;
|
|
10007
|
+
try {
|
|
10008
|
+
return Intl.getCanonicalLocales(tag).length === 1;
|
|
10009
|
+
} catch {
|
|
10010
|
+
return false;
|
|
10011
|
+
}
|
|
10012
|
+
});
|
|
10013
|
+
}
|
|
10014
|
+
},
|
|
10015
|
+
region: {
|
|
10016
|
+
type: "string",
|
|
10017
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.region,
|
|
10018
|
+
description: "region code (ISO 3166-1)",
|
|
10019
|
+
group: "locale"
|
|
10020
|
+
},
|
|
10021
|
+
// simulator
|
|
10022
|
+
renderDensity: {
|
|
10023
|
+
type: "number",
|
|
10024
|
+
default: 0,
|
|
10025
|
+
description: "explicit render density in device pixels per point for high-resolution capture (0 = follow the render resolution level)",
|
|
10026
|
+
group: "simulator",
|
|
10027
|
+
validate: (v7) => v7 === 0 || v7 >= 1 && v7 <= 9
|
|
10028
|
+
},
|
|
10029
|
+
renderResolution: {
|
|
10030
|
+
type: "enum",
|
|
10031
|
+
default: "medium",
|
|
10032
|
+
description: "how many pixels Peach renders per iphone point (high = device native, medium = 2, low = on-screen pixels capped at native)",
|
|
10033
|
+
options: SOOTSIM_RENDER_RESOLUTION_LEVELS,
|
|
10034
|
+
group: "simulator"
|
|
10035
|
+
},
|
|
10036
|
+
slowAnimations: {
|
|
10037
|
+
type: "boolean",
|
|
10038
|
+
default: false,
|
|
10039
|
+
description: "Run simulated app and OS animations at one tenth speed",
|
|
10040
|
+
group: "simulator"
|
|
10041
|
+
},
|
|
10042
|
+
profilerCategories: {
|
|
10043
|
+
type: "string",
|
|
10044
|
+
default: formatProfilerCategories(DEFAULT_PROFILER_CATEGORIES),
|
|
10045
|
+
description: "Categories the Performance pane records, comma separated",
|
|
10046
|
+
group: "simulator"
|
|
10047
|
+
},
|
|
10048
|
+
showTouches: {
|
|
10049
|
+
type: "boolean",
|
|
10050
|
+
default: false,
|
|
10051
|
+
description: "show touch indicators",
|
|
10052
|
+
group: "simulator"
|
|
10053
|
+
},
|
|
10054
|
+
systemCursor: {
|
|
10055
|
+
type: "boolean",
|
|
10056
|
+
default: false,
|
|
10057
|
+
description: "keep the computer pointer instead of a touch cursor",
|
|
10058
|
+
group: "simulator"
|
|
10059
|
+
},
|
|
10060
|
+
showFrame: {
|
|
10061
|
+
type: "boolean",
|
|
10062
|
+
default: true,
|
|
10063
|
+
description: "show device frame",
|
|
10064
|
+
group: "simulator"
|
|
10065
|
+
},
|
|
10066
|
+
showMenuBar: {
|
|
10067
|
+
type: "boolean",
|
|
10068
|
+
default: true,
|
|
10069
|
+
description: "keep the menu bar visible instead of revealing it at the top edge",
|
|
10070
|
+
group: "simulator"
|
|
10071
|
+
},
|
|
10072
|
+
showRail: {
|
|
10073
|
+
type: "boolean",
|
|
10074
|
+
default: true,
|
|
10075
|
+
description: "keep the rail visible instead of revealing it on hover",
|
|
10076
|
+
group: "simulator"
|
|
10077
|
+
},
|
|
10078
|
+
agentIndicator: {
|
|
10079
|
+
type: "boolean",
|
|
10080
|
+
default: true,
|
|
10081
|
+
description: "show the connected agent indicator over the device while a CLI or agent drives it",
|
|
10082
|
+
group: "simulator"
|
|
10083
|
+
},
|
|
10084
|
+
solidWindow: {
|
|
10085
|
+
type: "boolean",
|
|
10086
|
+
default: false,
|
|
10087
|
+
description: "desktop app: always use the solid, freely-resizable window instead of the device-shaped transparent one (3d mode uses it regardless)",
|
|
10088
|
+
group: "simulator"
|
|
10089
|
+
},
|
|
10090
|
+
ambientGlow: {
|
|
10091
|
+
type: "enum",
|
|
10092
|
+
default: "off",
|
|
10093
|
+
description: "bleed the app's own edge colors outward behind the device, like bias lighting behind a TV (off, soft, full)",
|
|
10094
|
+
options: SOOTSIM_AMBIENT_GLOW_LEVELS,
|
|
10095
|
+
group: "simulator"
|
|
10096
|
+
},
|
|
10097
|
+
stageBackground: {
|
|
10098
|
+
type: "enum",
|
|
10099
|
+
default: "system",
|
|
10100
|
+
description: "the stage behind the device: system follows the computer's appearance (white in light mode, black in dark), or light, dark or gray",
|
|
10101
|
+
options: SOOTSIM_STAGE_BACKGROUNDS,
|
|
10102
|
+
group: "simulator"
|
|
10103
|
+
},
|
|
10104
|
+
stageChecker: {
|
|
10105
|
+
type: "boolean",
|
|
10106
|
+
default: true,
|
|
10107
|
+
description: "a faint checker pattern on the stage behind the device, under the glow",
|
|
10108
|
+
group: "simulator"
|
|
10109
|
+
},
|
|
10110
|
+
screenshotMode: {
|
|
10111
|
+
type: "boolean",
|
|
10112
|
+
default: false,
|
|
10113
|
+
description: "show screenshot composition mode in the browser shell",
|
|
10114
|
+
group: "simulator"
|
|
10115
|
+
},
|
|
10116
|
+
screenshotCanvasEditing: {
|
|
10117
|
+
type: "boolean",
|
|
10118
|
+
default: false,
|
|
10119
|
+
description: "experimental figma-style slide editing: draggable copy block, drop-in image layers (owner review pending)",
|
|
10120
|
+
group: "simulator"
|
|
10121
|
+
},
|
|
10122
|
+
threeMode: {
|
|
10123
|
+
type: "boolean",
|
|
10124
|
+
default: false,
|
|
10125
|
+
description: "show the experimental 3d device stage in the browser shell",
|
|
10126
|
+
group: "simulator"
|
|
10127
|
+
},
|
|
10128
|
+
threeRecordingEditor: {
|
|
10129
|
+
type: "boolean",
|
|
10130
|
+
default: false,
|
|
10131
|
+
description: "dock the 3d recording editor in the 3d stage (toggled from its rail)",
|
|
10132
|
+
group: "simulator"
|
|
10133
|
+
},
|
|
10134
|
+
screenshotCanvas: {
|
|
10135
|
+
type: "enum",
|
|
10136
|
+
default: "iphone-6-9",
|
|
10137
|
+
description: "target app-store canvas preset for screenshot mode",
|
|
10138
|
+
options: SCREENSHOT_CANVAS_NAMES,
|
|
10139
|
+
group: "simulator"
|
|
10140
|
+
},
|
|
10141
|
+
screenshotBackground: {
|
|
10142
|
+
type: "enum",
|
|
10143
|
+
default: "dark",
|
|
10144
|
+
description: "background preset rendered inside the screenshot canvas",
|
|
10145
|
+
options: BACKGROUND_PRESET_NAMES,
|
|
10146
|
+
group: "simulator"
|
|
10147
|
+
},
|
|
10148
|
+
screenshotText: {
|
|
10149
|
+
type: "enum",
|
|
10150
|
+
default: "bold-top",
|
|
10151
|
+
description: "text layout preset for the screenshot canvas",
|
|
10152
|
+
options: TEXT_PRESET_NAMES,
|
|
10153
|
+
group: "simulator"
|
|
10154
|
+
},
|
|
10155
|
+
screenshotPose: {
|
|
10156
|
+
type: "enum",
|
|
10157
|
+
default: "straight",
|
|
10158
|
+
description: "device pose preset inside the screenshot canvas",
|
|
10159
|
+
options: POSE_PRESET_NAMES,
|
|
10160
|
+
group: "simulator"
|
|
10161
|
+
},
|
|
10162
|
+
screenshotDynamicSize: {
|
|
10163
|
+
type: "boolean",
|
|
10164
|
+
default: false,
|
|
10165
|
+
description: "let the screenshot canvas rect fit available space (off = pin to exact preset pixels)",
|
|
10166
|
+
group: "simulator"
|
|
10167
|
+
},
|
|
10168
|
+
showStatusBar: {
|
|
10169
|
+
type: "boolean",
|
|
10170
|
+
default: true,
|
|
10171
|
+
description: "show status bar",
|
|
10172
|
+
group: "simulator"
|
|
10173
|
+
},
|
|
10174
|
+
showHomeIndicator: {
|
|
10175
|
+
type: "boolean",
|
|
10176
|
+
default: true,
|
|
10177
|
+
description: "show home indicator",
|
|
10178
|
+
group: "simulator"
|
|
10179
|
+
},
|
|
10180
|
+
alwaysShowLiveWebViews: {
|
|
10181
|
+
type: "boolean",
|
|
10182
|
+
default: false,
|
|
10183
|
+
description: "always render WebViews as live browser views",
|
|
10184
|
+
group: "simulator"
|
|
10185
|
+
},
|
|
10186
|
+
a11yMode: {
|
|
10187
|
+
type: "enum",
|
|
10188
|
+
default: "delayed",
|
|
10189
|
+
description: "accessibility tree sync mode (off, delayed=100ms, active=30ms)",
|
|
10190
|
+
options: ["off", "delayed", "active"],
|
|
10191
|
+
group: "simulator"
|
|
10192
|
+
},
|
|
10193
|
+
a11yDepth: {
|
|
10194
|
+
type: "enum",
|
|
10195
|
+
default: "deep",
|
|
10196
|
+
description: "accessibility tree structure depth (shallow or deep)",
|
|
10197
|
+
options: ["shallow", "deep"],
|
|
10198
|
+
group: "simulator"
|
|
10199
|
+
},
|
|
10200
|
+
inspectMode: {
|
|
10201
|
+
type: "boolean",
|
|
10202
|
+
default: false,
|
|
10203
|
+
description: "inspect mode",
|
|
10204
|
+
group: "simulator"
|
|
10205
|
+
},
|
|
10206
|
+
// privacy
|
|
10207
|
+
productAnalytics: {
|
|
10208
|
+
type: "boolean",
|
|
10209
|
+
default: false,
|
|
10210
|
+
description: "send bounded product usage analytics",
|
|
10211
|
+
group: "privacy"
|
|
10212
|
+
},
|
|
10213
|
+
crashReports: {
|
|
10214
|
+
type: "boolean",
|
|
10215
|
+
default: false,
|
|
10216
|
+
description: "send anonymous crash reports",
|
|
10217
|
+
group: "privacy"
|
|
10218
|
+
},
|
|
10219
|
+
sendToBoxCarryAuth: {
|
|
10220
|
+
type: "boolean",
|
|
10221
|
+
default: true,
|
|
10222
|
+
description: "send to box carries the signed-in session into the box it creates (off = the app boots signed out)",
|
|
10223
|
+
group: "privacy"
|
|
10224
|
+
},
|
|
10225
|
+
// agent — default ai agent used by the prompt bar's auto-attach + startSession.
|
|
10226
|
+
agentProvider: {
|
|
10227
|
+
type: "enum",
|
|
10228
|
+
default: "codex",
|
|
10229
|
+
description: "ai agent used by the peach agent prompt bar",
|
|
10230
|
+
options: ["codex", "claude"],
|
|
10231
|
+
group: "agent"
|
|
10232
|
+
}
|
|
8692
10233
|
};
|
|
10234
|
+
SETTING_VALUE_TYPES = {
|
|
10235
|
+
string: "string",
|
|
10236
|
+
enum: "string",
|
|
10237
|
+
number: "number",
|
|
10238
|
+
boolean: "boolean",
|
|
10239
|
+
"string-array": "object"
|
|
10240
|
+
};
|
|
10241
|
+
DEFAULT_SIMULATED_DEVICE_SETTINGS = {
|
|
10242
|
+
predictiveText: settingsSchema.predictiveText.default,
|
|
10243
|
+
colorScheme: settingsSchema.colorScheme.default,
|
|
10244
|
+
reduceMotion: settingsSchema.reduceMotion.default,
|
|
10245
|
+
boldText: settingsSchema.boldText.default,
|
|
10246
|
+
fontSize: settingsSchema.fontSize.default,
|
|
10247
|
+
largerAccessibilitySizes: settingsSchema.largerAccessibilitySizes.default,
|
|
10248
|
+
glassTintAmount: settingsSchema.glassTintAmount.default,
|
|
10249
|
+
reduceTransparency: settingsSchema.reduceTransparency.default,
|
|
10250
|
+
increaseContrast: settingsSchema.increaseContrast.default,
|
|
10251
|
+
showBorders: settingsSchema.showBorders.default,
|
|
10252
|
+
onOffLabels: settingsSchema.onOffLabels.default,
|
|
10253
|
+
differentiateWithoutColor: settingsSchema.differentiateWithoutColor.default,
|
|
10254
|
+
smartInvert: settingsSchema.smartInvert.default,
|
|
10255
|
+
preferCrossFadeTransitions: settingsSchema.preferCrossFadeTransitions.default
|
|
10256
|
+
};
|
|
10257
|
+
PROFILE_SETTING_KEYS = [
|
|
10258
|
+
...SIMULATED_DEVICE_SETTING_KEYS,
|
|
10259
|
+
"language",
|
|
10260
|
+
"region",
|
|
10261
|
+
"preferredLanguages"
|
|
10262
|
+
];
|
|
8693
10263
|
}
|
|
8694
10264
|
});
|
|
8695
10265
|
|
|
8696
|
-
// src/
|
|
8697
|
-
|
|
8698
|
-
"
|
|
8699
|
-
"use strict";
|
|
8700
|
-
}
|
|
8701
|
-
});
|
|
8702
|
-
|
|
8703
|
-
// src/native-prebuilt.ts
|
|
8704
|
-
var init_native_prebuilt = __esm({
|
|
8705
|
-
"src/native-prebuilt.ts"() {
|
|
8706
|
-
"use strict";
|
|
8707
|
-
init_home_paths();
|
|
8708
|
-
init_is_record();
|
|
8709
|
-
}
|
|
8710
|
-
});
|
|
8711
|
-
|
|
8712
|
-
// src/plist.ts
|
|
8713
|
-
function parsePlistSource(source) {
|
|
8714
|
-
return import_plist.default.parse(source);
|
|
10266
|
+
// ../peach-globals/src/storeKitContract.ts
|
|
10267
|
+
function record(value) {
|
|
10268
|
+
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
8715
10269
|
}
|
|
8716
|
-
|
|
8717
|
-
|
|
8718
|
-
|
|
10270
|
+
function string2(value, field) {
|
|
10271
|
+
if (typeof value !== "string" || !value.trim())
|
|
10272
|
+
throw new Error(`StoreKit configuration: ${field} must be a nonempty string`);
|
|
10273
|
+
return value;
|
|
10274
|
+
}
|
|
10275
|
+
function array(value, field) {
|
|
10276
|
+
if (!Array.isArray(value))
|
|
10277
|
+
throw new Error(`StoreKit configuration: ${field} must be an array`);
|
|
10278
|
+
return value;
|
|
10279
|
+
}
|
|
10280
|
+
function readStoreKitCatalog(value) {
|
|
10281
|
+
if (!record(value)) throw new Error("StoreKit configuration must be an object");
|
|
10282
|
+
const settings = record(value.settings) ? value.settings : {};
|
|
10283
|
+
const storefront = settings._storefront ?? "USA";
|
|
10284
|
+
if (storefront !== "USA")
|
|
10285
|
+
throw new Error("StoreKit preview currently supports the USA test storefront");
|
|
10286
|
+
if (settings._failTransactionsEnabled === true || settings._askToBuyEnabled === true)
|
|
10287
|
+
throw new Error(
|
|
10288
|
+
"StoreKit preview does not implement transaction failure injection or Ask to Buy"
|
|
10289
|
+
);
|
|
10290
|
+
if (settings._timeRate !== void 0 && settings._timeRate !== 0 || settings._disableDialogs === true || settings._billingIssuesEnabled === true || settings._billingGracePeriodEnabled === true)
|
|
10291
|
+
throw new Error("StoreKit preview requires real-time purchases with dialogs enabled");
|
|
10292
|
+
const locale = string2(settings._locale ?? "en_US", "settings._locale");
|
|
10293
|
+
const formatter = new Intl.NumberFormat(locale.replaceAll("_", "-"), {
|
|
10294
|
+
style: "currency",
|
|
10295
|
+
currency: "USD"
|
|
10296
|
+
});
|
|
10297
|
+
const products = [];
|
|
10298
|
+
const add = (input) => {
|
|
10299
|
+
if (!record(input)) throw new Error("StoreKit product must be an object");
|
|
10300
|
+
const type = input.type === "Consumable" ? "consumable" : input.type === "NonConsumable" ? "nonConsumable" : input.type === "RecurringSubscription" ? "autoRenewable" : void 0;
|
|
10301
|
+
if (!type)
|
|
10302
|
+
throw new Error(`StoreKit preview does not implement product type ${input.type}`);
|
|
10303
|
+
const localizations = array(input.localizations, "localizations").map((item) => {
|
|
10304
|
+
if (!record(item)) throw new Error("StoreKit localization must be an object");
|
|
10305
|
+
return {
|
|
10306
|
+
locale: string2(item.locale, "localization.locale"),
|
|
10307
|
+
displayName: string2(item.displayName, "localization.displayName"),
|
|
10308
|
+
description: typeof item.description === "string" ? item.description : ""
|
|
10309
|
+
};
|
|
10310
|
+
});
|
|
10311
|
+
const localization = localizations.find((item) => item.locale === locale) ?? localizations[0];
|
|
10312
|
+
if (!localization) throw new Error("StoreKit product requires a localization");
|
|
10313
|
+
const rawPrice = string2(input.displayPrice, "displayPrice");
|
|
10314
|
+
const price = Number(rawPrice);
|
|
10315
|
+
if (!Number.isFinite(price) || price < 0)
|
|
10316
|
+
throw new Error("StoreKit product displayPrice must be a nonnegative decimal");
|
|
10317
|
+
const subscriptionPeriod = type === "autoRenewable" ? string2(input.recurringSubscriptionPeriod, "recurringSubscriptionPeriod") : void 0;
|
|
10318
|
+
if (subscriptionPeriod !== void 0 && subscriptionPeriod !== "P1M")
|
|
10319
|
+
throw new Error("StoreKit preview currently supports monthly test subscriptions");
|
|
10320
|
+
if (input.introductoryOffer != null || Array.isArray(input.adHocOffers) && input.adHocOffers.length > 0 || Array.isArray(input.codeOffers) && input.codeOffers.length > 0 || Array.isArray(input.winbackOffers) && input.winbackOffers.length > 0)
|
|
10321
|
+
throw new Error("StoreKit preview does not implement subscription offers");
|
|
10322
|
+
products.push({
|
|
10323
|
+
id: string2(input.productID, "productID"),
|
|
10324
|
+
type,
|
|
10325
|
+
displayName: localization.displayName,
|
|
10326
|
+
description: localization.description,
|
|
10327
|
+
displayPrice: formatter.format(price),
|
|
10328
|
+
currencyCode: "USD",
|
|
10329
|
+
price,
|
|
10330
|
+
...subscriptionPeriod ? {
|
|
10331
|
+
subscriptionPeriod,
|
|
10332
|
+
subscriptionGroupId: string2(input.subscriptionGroupID, "subscriptionGroupID")
|
|
10333
|
+
} : {}
|
|
10334
|
+
});
|
|
10335
|
+
};
|
|
10336
|
+
for (const product of array(value.products ?? [], "products")) add(product);
|
|
10337
|
+
for (const group of array(value.subscriptionGroups ?? [], "subscriptionGroups")) {
|
|
10338
|
+
if (!record(group)) throw new Error("StoreKit subscription group must be an object");
|
|
10339
|
+
const subscriptions = array(group.subscriptions, "subscriptions");
|
|
10340
|
+
if (subscriptions.length > 1)
|
|
10341
|
+
throw new Error("StoreKit preview supports one product per subscription group");
|
|
10342
|
+
for (const product of subscriptions) add(product);
|
|
10343
|
+
}
|
|
10344
|
+
if (array(value.nonRenewingSubscriptions ?? [], "nonRenewingSubscriptions").length)
|
|
10345
|
+
throw new Error("StoreKit preview does not implement nonrenewing subscriptions");
|
|
10346
|
+
if (new Set(products.map((product) => product.id)).size !== products.length)
|
|
10347
|
+
throw new Error("StoreKit product ids must be distinct");
|
|
10348
|
+
return { identifier: string2(value.identifier, "identifier"), products };
|
|
10349
|
+
}
|
|
10350
|
+
function isStoreKitSigningIdentity(value) {
|
|
10351
|
+
return record(value) && typeof value.certificate === "string" && record(value.privateKey) && value.privateKey.kty === "EC" && value.privateKey.crv === "P-256" && typeof value.privateKey.d === "string" && typeof value.privateKey.x === "string" && typeof value.privateKey.y === "string";
|
|
10352
|
+
}
|
|
10353
|
+
var init_storeKitContract = __esm({
|
|
10354
|
+
"../peach-globals/src/storeKitContract.ts"() {
|
|
8719
10355
|
"use strict";
|
|
8720
|
-
import_plist = __toESM(require("plist"), 1);
|
|
8721
10356
|
}
|
|
8722
10357
|
});
|
|
8723
10358
|
|
|
8724
|
-
// src/
|
|
8725
|
-
function
|
|
8726
|
-
|
|
8727
|
-
|
|
8728
|
-
|
|
8729
|
-
|
|
8730
|
-
|
|
8731
|
-
|
|
8732
|
-
|
|
8733
|
-
|
|
8734
|
-
|
|
8735
|
-
|
|
10359
|
+
// src/storekit-test-store.ts
|
|
10360
|
+
async function loadStoreKitTestStore(configuration, appDir) {
|
|
10361
|
+
const catalog = readStoreKitCatalog(JSON.parse(await (0, import_promises3.readFile)(configuration, "utf8")));
|
|
10362
|
+
const identityPath = import_node_path17.default.join(
|
|
10363
|
+
cacheDir(),
|
|
10364
|
+
"storekit-identities",
|
|
10365
|
+
`${(0, import_node_crypto7.createHash)("sha256").update(import_node_path17.default.resolve(appDir)).digest("hex")}.json`
|
|
10366
|
+
);
|
|
10367
|
+
let signing;
|
|
10368
|
+
try {
|
|
10369
|
+
const value = JSON.parse(await (0, import_promises3.readFile)(identityPath, "utf8"));
|
|
10370
|
+
if (!isStoreKitSigningIdentity(value))
|
|
10371
|
+
throw new Error(`invalid StoreKit signing identity: ${identityPath}`);
|
|
10372
|
+
signing = value;
|
|
10373
|
+
} catch (error) {
|
|
10374
|
+
if (!(error instanceof Error) || !("code" in error) || error.code !== "ENOENT")
|
|
10375
|
+
throw error;
|
|
10376
|
+
const algorithm = { name: "ECDSA", namedCurve: "P-256", hash: "SHA-256" };
|
|
10377
|
+
const keys = await crypto.subtle.generateKey(algorithm, true, ["sign", "verify"]);
|
|
10378
|
+
const certificate = await import_x509.X509CertificateGenerator.createSelfSigned(
|
|
10379
|
+
{
|
|
10380
|
+
name: "CN=StoreKit Testing in Xcode, O=StoreKit Testing in Xcode",
|
|
10381
|
+
serialNumber: (0, import_node_crypto7.randomBytes)(16).toString("hex"),
|
|
10382
|
+
notBefore: new Date(Date.now() - 6e4),
|
|
10383
|
+
notAfter: new Date(Date.now() + 365 * 864e5),
|
|
10384
|
+
signingAlgorithm: algorithm,
|
|
10385
|
+
keys
|
|
10386
|
+
},
|
|
10387
|
+
crypto
|
|
10388
|
+
);
|
|
10389
|
+
signing = {
|
|
10390
|
+
privateKey: await crypto.subtle.exportKey("jwk", keys.privateKey),
|
|
10391
|
+
certificate: Buffer.from(certificate.rawData).toString("base64")
|
|
10392
|
+
};
|
|
10393
|
+
await (0, import_promises3.mkdir)(import_node_path17.default.dirname(identityPath), { recursive: true });
|
|
10394
|
+
await (0, import_promises3.writeFile)(identityPath, JSON.stringify(signing), { mode: 384 });
|
|
8736
10395
|
}
|
|
10396
|
+
return { ...catalog, signing };
|
|
8737
10397
|
}
|
|
8738
|
-
|
|
8739
|
-
|
|
8740
|
-
|
|
8741
|
-
|
|
8742
|
-
|
|
8743
|
-
|
|
8744
|
-
|
|
8745
|
-
|
|
8746
|
-
|
|
8747
|
-
|
|
8748
|
-
import_node_fs20.default.mkdirSync(import_node_path19.default.dirname(binary2), { recursive: true });
|
|
8749
|
-
const partial = `${binary2}.${process.pid}.partial`;
|
|
8750
|
-
(0, import_node_child_process9.execFileSync)("curl", ["-fsSL", "-o", partial, url]);
|
|
8751
|
-
const expected = (0, import_node_child_process9.execFileSync)("curl", ["-fsSL", `${url}.sha256`], {
|
|
8752
|
-
encoding: "utf8"
|
|
8753
|
-
}).split(/\s/)[0];
|
|
8754
|
-
const actual = (0, import_node_crypto8.createHash)("sha256").update(import_node_fs20.default.readFileSync(partial)).digest("hex");
|
|
8755
|
-
if (actual !== expected) {
|
|
8756
|
-
import_node_fs20.default.rmSync(partial, { force: true });
|
|
8757
|
-
throw new Error(`${url} digest ${actual} differs from its release ${expected}`);
|
|
10398
|
+
var import_node_crypto7, import_promises3, import_node_path17, import_x509;
|
|
10399
|
+
var init_storekit_test_store = __esm({
|
|
10400
|
+
"src/storekit-test-store.ts"() {
|
|
10401
|
+
"use strict";
|
|
10402
|
+
import_node_crypto7 = require("node:crypto");
|
|
10403
|
+
import_promises3 = require("node:fs/promises");
|
|
10404
|
+
import_node_path17 = __toESM(require("node:path"), 1);
|
|
10405
|
+
init_storeKitContract();
|
|
10406
|
+
import_x509 = require("@peculiar/x509");
|
|
10407
|
+
init_home_paths();
|
|
8758
10408
|
}
|
|
8759
|
-
|
|
8760
|
-
|
|
8761
|
-
|
|
10409
|
+
});
|
|
10410
|
+
|
|
10411
|
+
// src/app-config.ts
|
|
10412
|
+
var app_config_exports = {};
|
|
10413
|
+
__export(app_config_exports, {
|
|
10414
|
+
loadRNXAppConfig: () => loadRNXAppConfig,
|
|
10415
|
+
loadRNXAppStubs: () => loadRNXAppStubs,
|
|
10416
|
+
resolveRNXAppConfig: () => resolveRNXAppConfig
|
|
10417
|
+
});
|
|
10418
|
+
function resolveFileEntries(entries, configDir) {
|
|
10419
|
+
if (!entries) return entries;
|
|
10420
|
+
return Object.fromEntries(
|
|
10421
|
+
Object.entries(entries).map(([name2, resolution]) => [
|
|
10422
|
+
name2,
|
|
10423
|
+
resolution && typeof resolution === "object" && "file" in resolution && typeof resolution.file === "string" ? { ...resolution, file: import_node_path18.default.resolve(configDir, resolution.file) } : resolution
|
|
10424
|
+
])
|
|
10425
|
+
);
|
|
8762
10426
|
}
|
|
8763
|
-
function
|
|
8764
|
-
|
|
8765
|
-
const rule = raw.target.rule;
|
|
8766
|
-
if (typeof rule.name !== "string" || typeof rule.ruleClass !== "string") return null;
|
|
8767
|
-
const attrs = /* @__PURE__ */ new Map();
|
|
8768
|
-
for (const attribute of Array.isArray(rule.attribute) ? rule.attribute : []) {
|
|
8769
|
-
if (!isRecord(attribute) || typeof attribute.name !== "string") continue;
|
|
8770
|
-
attrs.set(attribute.name, {
|
|
8771
|
-
list: Array.isArray(attribute.stringListValue) ? attribute.stringListValue.filter((item) => typeof item === "string") : [],
|
|
8772
|
-
value: typeof attribute.stringValue === "string" ? attribute.stringValue : null,
|
|
8773
|
-
bool: typeof attribute.booleanValue === "boolean" ? attribute.booleanValue : null
|
|
8774
|
-
});
|
|
8775
|
-
}
|
|
10427
|
+
function resolveConfigReplacementFiles(config, configPath) {
|
|
10428
|
+
const configDir = import_node_path18.default.dirname(configPath);
|
|
8776
10429
|
return {
|
|
8777
|
-
|
|
8778
|
-
|
|
8779
|
-
attrs,
|
|
8780
|
-
outputs: Array.isArray(rule.ruleOutput) ? rule.ruleOutput.filter((item) => typeof item === "string") : []
|
|
10430
|
+
...config,
|
|
10431
|
+
modules: resolveFileEntries(config.modules, configDir)
|
|
8781
10432
|
};
|
|
8782
10433
|
}
|
|
8783
|
-
function
|
|
8784
|
-
|
|
8785
|
-
const visit3 = (dir) => {
|
|
8786
|
-
for (const entry of import_node_fs20.default.readdirSync(dir, { withFileTypes: true }).sort((a, b) => a.name.localeCompare(b.name))) {
|
|
8787
|
-
if (entry.name.startsWith(".") || entry.name.startsWith("bazel-")) continue;
|
|
8788
|
-
const full = import_node_path19.default.join(dir, entry.name);
|
|
8789
|
-
if (entry.isDirectory()) visit3(full);
|
|
8790
|
-
else if (/^(?:BUILD(?:\.bazel)?|MODULE\.bazel(?:\.lock)?|WORKSPACE(?:\.bazel)?|\.bazelrc|\.bazelversion)$/.test(
|
|
8791
|
-
entry.name
|
|
8792
|
-
) || entry.name.endsWith(".bzl"))
|
|
8793
|
-
hash.update(import_node_path19.default.relative(root, full)).update("\0").update(import_node_fs20.default.readFileSync(full));
|
|
8794
|
-
}
|
|
8795
|
-
};
|
|
8796
|
-
visit3(root);
|
|
8797
|
-
for (const file of [".bazelrc", ".bazelversion"])
|
|
8798
|
-
if (import_node_fs20.default.existsSync(import_node_path19.default.join(root, file)))
|
|
8799
|
-
hash.update(file).update(import_node_fs20.default.readFileSync(import_node_path19.default.join(root, file)));
|
|
8800
|
-
return hash.digest("hex");
|
|
10434
|
+
async function loadRNXAppConfig(project) {
|
|
10435
|
+
return (await loadRNXAppStubs(project)).config;
|
|
8801
10436
|
}
|
|
8802
|
-
function
|
|
8803
|
-
return [
|
|
8804
|
-
|
|
8805
|
-
|
|
8806
|
-
|
|
8807
|
-
|
|
8808
|
-
|
|
8809
|
-
|
|
8810
|
-
|
|
10437
|
+
async function loadRNXAppStubs(project) {
|
|
10438
|
+
if (!project) return { config: void 0, stubs: { applied: [], skipped: [] } };
|
|
10439
|
+
const config = await loadConfigFile(project);
|
|
10440
|
+
try {
|
|
10441
|
+
return resolveAppStubs(
|
|
10442
|
+
project.appDir,
|
|
10443
|
+
config,
|
|
10444
|
+
project.configPath ? import_node_path18.default.dirname(project.configPath) : project.appDir
|
|
10445
|
+
);
|
|
10446
|
+
} catch (error) {
|
|
10447
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
10448
|
+
throw new Error(`could not load the native stubs of ${project.appDir}: ${message}`);
|
|
10449
|
+
}
|
|
8811
10450
|
}
|
|
8812
|
-
function
|
|
8813
|
-
|
|
8814
|
-
|
|
8815
|
-
|
|
8816
|
-
|
|
8817
|
-
|
|
8818
|
-
|
|
8819
|
-
|
|
8820
|
-
|
|
8821
|
-
|
|
8822
|
-
|
|
8823
|
-
|
|
8824
|
-
|
|
8825
|
-
|
|
8826
|
-
|
|
8827
|
-
|
|
8828
|
-
|
|
8829
|
-
|
|
8830
|
-
|
|
8831
|
-
|
|
8832
|
-
|
|
8833
|
-
|
|
8834
|
-
if (
|
|
8835
|
-
|
|
8836
|
-
|
|
8837
|
-
|
|
8838
|
-
const
|
|
8839
|
-
|
|
8840
|
-
|
|
8841
|
-
|
|
10451
|
+
async function loadConfigFile(project) {
|
|
10452
|
+
if (!project.configPath) return void 0;
|
|
10453
|
+
try {
|
|
10454
|
+
const jiti = (0, import_jiti.createJiti)(__sootsim_import_meta_url, {
|
|
10455
|
+
interopDefault: true,
|
|
10456
|
+
// metro serializes repeatedly in one process; edits must reload the config.
|
|
10457
|
+
moduleCache: false,
|
|
10458
|
+
tryNative: false,
|
|
10459
|
+
virtualModules: {
|
|
10460
|
+
[`${rnxPublicBrand.packageName}/config`]: config_exports
|
|
10461
|
+
}
|
|
10462
|
+
});
|
|
10463
|
+
const loaded3 = project.configPath.endsWith(".json") ? JSON.parse((0, import_node_fs18.readFileSync)(project.configPath, "utf8")) : await jiti.import(project.configPath, { default: true });
|
|
10464
|
+
if (!isPeachConfig(loaded3)) {
|
|
10465
|
+
throw new Error("the default export must be a peach config object");
|
|
10466
|
+
}
|
|
10467
|
+
if (Object.hasOwn(loaded3, "settings"))
|
|
10468
|
+
throw new Error(
|
|
10469
|
+
"settings moved under profiles, each a name for a set of device settings: profiles: { accessibility: { fontSize: 1.786, increaseContrast: true } }, applied with peach open --profile accessibility"
|
|
10470
|
+
);
|
|
10471
|
+
for (const [name2, profile] of Object.entries(loaded3.profiles ?? {}))
|
|
10472
|
+
readSettingsProfile(profile, `profiles.${name2}`);
|
|
10473
|
+
if (loaded3.nativeHybridObjects !== void 0)
|
|
10474
|
+
throw new Error(
|
|
10475
|
+
'nativeHybridObjects moved under packages, keyed by the package that registers each name: packages: { "<package>": { hybridObjects: { <Name>: "unsupported" | "./file.ts" } } }'
|
|
10476
|
+
);
|
|
10477
|
+
const wire = WIRE_SLOTS.filter((slot) => loaded3[slot] !== void 0);
|
|
10478
|
+
if (wire.length > 0) {
|
|
10479
|
+
const slots = WIRE_SLOTS;
|
|
10480
|
+
const kept = Object.entries(loaded3).filter(([key, value]) => !slots.includes(key) && value !== void 0).map(([key]) => key);
|
|
10481
|
+
const migration = wireSlotMigration(
|
|
10482
|
+
project.appDir,
|
|
10483
|
+
project.configPath,
|
|
10484
|
+
{
|
|
10485
|
+
modules: { ...loaded3.turboModules, ...loaded3.nativeModules },
|
|
10486
|
+
views: { ...loaded3.nativeViews }
|
|
10487
|
+
},
|
|
10488
|
+
kept
|
|
10489
|
+
);
|
|
10490
|
+
throw new Error(
|
|
10491
|
+
`${wire.join(", ")} moved under packages, keyed by the package whose native side they answer. ${kept.length ? "remove them and add" : "replace the config with"}:
|
|
10492
|
+
${migration}`
|
|
10493
|
+
);
|
|
10494
|
+
}
|
|
10495
|
+
const config = resolveConfigReplacementFiles(loaded3, project.configPath);
|
|
10496
|
+
if (config.storeKit) {
|
|
10497
|
+
config.initialState = {
|
|
10498
|
+
...config.initialState,
|
|
10499
|
+
storeKit: await loadStoreKitTestStore(
|
|
10500
|
+
import_node_path18.default.resolve(import_node_path18.default.dirname(project.configPath), config.storeKit.configuration),
|
|
10501
|
+
project.appDir
|
|
10502
|
+
)
|
|
10503
|
+
};
|
|
10504
|
+
}
|
|
10505
|
+
return config;
|
|
10506
|
+
} catch (error) {
|
|
10507
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
10508
|
+
throw new Error(`could not load ${project.configPath}: ${message}`);
|
|
10509
|
+
}
|
|
10510
|
+
}
|
|
10511
|
+
async function resolveRNXAppConfig(startDir = process.cwd()) {
|
|
10512
|
+
const project = resolveAppProject(startDir);
|
|
10513
|
+
return { project, ...await loadRNXAppStubs(project) };
|
|
10514
|
+
}
|
|
10515
|
+
var import_node_fs18, import_node_path18, import_jiti, WIRE_SLOTS;
|
|
10516
|
+
var init_app_config = __esm({
|
|
10517
|
+
"src/app-config.ts"() {
|
|
10518
|
+
"use strict";
|
|
10519
|
+
import_node_fs18 = require("node:fs");
|
|
10520
|
+
import_node_path18 = __toESM(require("node:path"), 1);
|
|
10521
|
+
import_jiti = require("jiti");
|
|
10522
|
+
init_app_project();
|
|
10523
|
+
init_app_stubs();
|
|
10524
|
+
init_config();
|
|
10525
|
+
init_config();
|
|
10526
|
+
init_public_brand();
|
|
10527
|
+
init_settingsContract();
|
|
10528
|
+
init_storekit_test_store();
|
|
10529
|
+
WIRE_SLOTS = ["nativeModules", "turboModules", "nativeViews"];
|
|
10530
|
+
}
|
|
10531
|
+
});
|
|
10532
|
+
|
|
10533
|
+
// src/expo-autolinking.ts
|
|
10534
|
+
var init_expo_autolinking = __esm({
|
|
10535
|
+
"src/expo-autolinking.ts"() {
|
|
10536
|
+
"use strict";
|
|
10537
|
+
init_autolinker_process();
|
|
10538
|
+
init_is_record();
|
|
10539
|
+
}
|
|
10540
|
+
});
|
|
10541
|
+
|
|
10542
|
+
// src/react-native-core-digest.ts
|
|
10543
|
+
var init_react_native_core_digest = __esm({
|
|
10544
|
+
"src/react-native-core-digest.ts"() {
|
|
10545
|
+
"use strict";
|
|
10546
|
+
}
|
|
10547
|
+
});
|
|
10548
|
+
|
|
10549
|
+
// src/swift-compiler-digest.ts
|
|
10550
|
+
var init_swift_compiler_digest = __esm({
|
|
10551
|
+
"src/swift-compiler-digest.ts"() {
|
|
10552
|
+
"use strict";
|
|
10553
|
+
init_swift_objc_sdk_tree();
|
|
10554
|
+
}
|
|
10555
|
+
});
|
|
10556
|
+
|
|
10557
|
+
// src/swift-standin-digest.ts
|
|
10558
|
+
var STANDIN_SOURCE_DIGEST;
|
|
10559
|
+
var init_swift_standin_digest = __esm({
|
|
10560
|
+
"src/swift-standin-digest.ts"() {
|
|
10561
|
+
"use strict";
|
|
10562
|
+
STANDIN_SOURCE_DIGEST = true ? "04ba039a95b639d89097dcef7220bd64a4c48578e05e150dafb66cf9195294a2" : standinSourceDigest();
|
|
10563
|
+
}
|
|
10564
|
+
});
|
|
10565
|
+
|
|
10566
|
+
// src/admitted-mac-build.ts
|
|
10567
|
+
var init_admitted_mac_build = __esm({
|
|
10568
|
+
"src/admitted-mac-build.ts"() {
|
|
10569
|
+
"use strict";
|
|
10570
|
+
}
|
|
10571
|
+
});
|
|
10572
|
+
|
|
10573
|
+
// src/git-repo-env.ts
|
|
10574
|
+
var UNATTENDED_GIT_ENV;
|
|
10575
|
+
var init_git_repo_env = __esm({
|
|
10576
|
+
"src/git-repo-env.ts"() {
|
|
10577
|
+
"use strict";
|
|
10578
|
+
UNATTENDED_GIT_ENV = {
|
|
10579
|
+
GIT_TERMINAL_PROMPT: "0",
|
|
10580
|
+
GIT_SSH_COMMAND: process.env.GIT_SSH_COMMAND ?? "ssh -o BatchMode=yes"
|
|
10581
|
+
};
|
|
10582
|
+
}
|
|
10583
|
+
});
|
|
10584
|
+
|
|
10585
|
+
// src/native-git.ts
|
|
10586
|
+
var init_native_git = __esm({
|
|
10587
|
+
"src/native-git.ts"() {
|
|
10588
|
+
"use strict";
|
|
10589
|
+
}
|
|
10590
|
+
});
|
|
10591
|
+
|
|
10592
|
+
// src/native-prebuilt.ts
|
|
10593
|
+
var init_native_prebuilt = __esm({
|
|
10594
|
+
"src/native-prebuilt.ts"() {
|
|
10595
|
+
"use strict";
|
|
10596
|
+
init_home_paths();
|
|
10597
|
+
init_is_record();
|
|
10598
|
+
}
|
|
10599
|
+
});
|
|
10600
|
+
|
|
10601
|
+
// src/plist.ts
|
|
10602
|
+
function parsePlistSource(source) {
|
|
10603
|
+
return import_plist.default.parse(source);
|
|
10604
|
+
}
|
|
10605
|
+
var import_plist;
|
|
10606
|
+
var init_plist = __esm({
|
|
10607
|
+
"src/plist.ts"() {
|
|
10608
|
+
"use strict";
|
|
10609
|
+
import_plist = __toESM(require("plist"), 1);
|
|
10610
|
+
}
|
|
10611
|
+
});
|
|
10612
|
+
|
|
10613
|
+
// src/bazel-project.ts
|
|
10614
|
+
function isBazelPackage(input) {
|
|
10615
|
+
return /^BUILD(?:\.bazel)?$/.test(import_node_path20.default.basename(input)) && import_node_fs20.default.statSync(input).isFile();
|
|
10616
|
+
}
|
|
10617
|
+
function workspaceRoot(buildFile) {
|
|
10618
|
+
for (let dir = import_node_path20.default.dirname(buildFile); ; dir = import_node_path20.default.dirname(dir)) {
|
|
10619
|
+
if (["MODULE.bazel", "WORKSPACE", "WORKSPACE.bazel"].some(
|
|
10620
|
+
(name2) => import_node_fs20.default.existsSync(import_node_path20.default.join(dir, name2))
|
|
10621
|
+
))
|
|
10622
|
+
return dir;
|
|
10623
|
+
if (import_node_path20.default.dirname(dir) === dir)
|
|
10624
|
+
throw new Error(`${buildFile} is not inside a bazel workspace`);
|
|
10625
|
+
}
|
|
10626
|
+
}
|
|
10627
|
+
function bazelBinary(root) {
|
|
10628
|
+
const pinned = import_node_path20.default.join(root, ".bazelversion");
|
|
10629
|
+
if (!import_node_fs20.default.existsSync(pinned)) return "bazel";
|
|
10630
|
+
const version = import_node_fs20.default.readFileSync(pinned, "utf8").trim();
|
|
10631
|
+
const platform = import_node_os6.default.platform() === "darwin" ? "darwin" : "linux";
|
|
10632
|
+
const arch = import_node_os6.default.arch() === "arm64" ? "arm64" : "x86_64";
|
|
10633
|
+
const name2 = `bazel-${version}-${platform}-${arch}`;
|
|
10634
|
+
const binary2 = import_node_path20.default.join(import_node_os6.default.homedir(), ".peach", "cache", "bazel", name2);
|
|
10635
|
+
if (import_node_fs20.default.existsSync(binary2)) return binary2;
|
|
10636
|
+
const url = `https://github.com/bazelbuild/bazel/releases/download/${version}/${name2}`;
|
|
10637
|
+
import_node_fs20.default.mkdirSync(import_node_path20.default.dirname(binary2), { recursive: true });
|
|
10638
|
+
const partial = `${binary2}.${process.pid}.partial`;
|
|
10639
|
+
(0, import_node_child_process9.execFileSync)("curl", ["-fsSL", "-o", partial, url]);
|
|
10640
|
+
const expected = (0, import_node_child_process9.execFileSync)("curl", ["-fsSL", `${url}.sha256`], {
|
|
10641
|
+
encoding: "utf8"
|
|
10642
|
+
}).split(/\s/)[0];
|
|
10643
|
+
const actual = (0, import_node_crypto9.createHash)("sha256").update(import_node_fs20.default.readFileSync(partial)).digest("hex");
|
|
10644
|
+
if (actual !== expected) {
|
|
10645
|
+
import_node_fs20.default.rmSync(partial, { force: true });
|
|
10646
|
+
throw new Error(`${url} digest ${actual} differs from its release ${expected}`);
|
|
10647
|
+
}
|
|
10648
|
+
import_node_fs20.default.chmodSync(partial, 493);
|
|
10649
|
+
import_node_fs20.default.renameSync(partial, binary2);
|
|
10650
|
+
return binary2;
|
|
10651
|
+
}
|
|
10652
|
+
function parseRule(raw) {
|
|
10653
|
+
if (!isRecord(raw) || !isRecord(raw.target) || !isRecord(raw.target.rule)) return null;
|
|
10654
|
+
const rule = raw.target.rule;
|
|
10655
|
+
if (typeof rule.name !== "string" || typeof rule.ruleClass !== "string") return null;
|
|
10656
|
+
const attrs = /* @__PURE__ */ new Map();
|
|
10657
|
+
for (const attribute of Array.isArray(rule.attribute) ? rule.attribute : []) {
|
|
10658
|
+
if (!isRecord(attribute) || typeof attribute.name !== "string") continue;
|
|
10659
|
+
attrs.set(attribute.name, {
|
|
10660
|
+
list: Array.isArray(attribute.stringListValue) ? attribute.stringListValue.filter((item) => typeof item === "string") : [],
|
|
10661
|
+
value: typeof attribute.stringValue === "string" ? attribute.stringValue : null,
|
|
10662
|
+
bool: typeof attribute.booleanValue === "boolean" ? attribute.booleanValue : null
|
|
10663
|
+
});
|
|
10664
|
+
}
|
|
10665
|
+
return {
|
|
10666
|
+
label: rule.name,
|
|
10667
|
+
ruleClass: rule.ruleClass,
|
|
10668
|
+
attrs,
|
|
10669
|
+
outputs: Array.isArray(rule.ruleOutput) ? rule.ruleOutput.filter((item) => typeof item === "string") : []
|
|
10670
|
+
};
|
|
10671
|
+
}
|
|
10672
|
+
function graphInputsDigest(root) {
|
|
10673
|
+
const hash = (0, import_node_crypto9.createHash)("sha256");
|
|
10674
|
+
const visit3 = (dir) => {
|
|
10675
|
+
for (const entry of import_node_fs20.default.readdirSync(dir, { withFileTypes: true }).sort((a, b) => a.name.localeCompare(b.name))) {
|
|
10676
|
+
if (entry.name.startsWith(".") || entry.name.startsWith("bazel-")) continue;
|
|
10677
|
+
const full = import_node_path20.default.join(dir, entry.name);
|
|
10678
|
+
if (entry.isDirectory()) visit3(full);
|
|
10679
|
+
else if (/^(?:BUILD(?:\.bazel)?|MODULE\.bazel(?:\.lock)?|WORKSPACE(?:\.bazel)?|\.bazelrc|\.bazelversion)$/.test(
|
|
10680
|
+
entry.name
|
|
10681
|
+
) || entry.name.endsWith(".bzl"))
|
|
10682
|
+
hash.update(import_node_path20.default.relative(root, full)).update("\0").update(import_node_fs20.default.readFileSync(full));
|
|
10683
|
+
}
|
|
10684
|
+
};
|
|
10685
|
+
visit3(root);
|
|
10686
|
+
for (const file of [".bazelrc", ".bazelversion"])
|
|
10687
|
+
if (import_node_fs20.default.existsSync(import_node_path20.default.join(root, file)))
|
|
10688
|
+
hash.update(file).update(import_node_fs20.default.readFileSync(import_node_path20.default.join(root, file)));
|
|
10689
|
+
return hash.digest("hex");
|
|
10690
|
+
}
|
|
10691
|
+
function configurationFlags(configuration) {
|
|
10692
|
+
return [
|
|
10693
|
+
"-c",
|
|
10694
|
+
configuration === "Release" ? "opt" : "dbg",
|
|
10695
|
+
"--cpu=ios_sim_arm64",
|
|
10696
|
+
"--platforms=@build_bazel_apple_support//platforms:ios_sim_arm64",
|
|
10697
|
+
// generators run the developer's tools, as their own builds find them
|
|
10698
|
+
"--action_env=PATH"
|
|
10699
|
+
];
|
|
10700
|
+
}
|
|
10701
|
+
function bazelGraph(root, label, configuration) {
|
|
10702
|
+
const key = JSON.stringify([root, label, configuration]);
|
|
10703
|
+
const cached2 = graphs.get(key);
|
|
10704
|
+
if (cached2) return cached2;
|
|
10705
|
+
const flags = configurationFlags(configuration);
|
|
10706
|
+
const digest = (0, import_node_crypto9.createHash)("sha256").update(JSON.stringify([GRAPH_FORMAT, label, flags, QUERIED_RULES])).update(graphInputsDigest(root)).digest("hex").slice(0, 24);
|
|
10707
|
+
const file = import_node_path20.default.join(root, ".build", "peach-bazel", `graph-${digest}.json`);
|
|
10708
|
+
const bazel = bazelBinary(root);
|
|
10709
|
+
const run7 = (args) => (0, import_node_child_process9.execFileSync)(bazel, args, {
|
|
10710
|
+
cwd: root,
|
|
10711
|
+
encoding: "utf8",
|
|
10712
|
+
maxBuffer: 1 << 30,
|
|
10713
|
+
stdio: ["ignore", "pipe", "pipe"]
|
|
10714
|
+
});
|
|
10715
|
+
if (!import_node_fs20.default.existsSync(file)) {
|
|
10716
|
+
const application = run7(["query", label, "--output=streamed_jsonproto"]);
|
|
10717
|
+
const app2 = parseRule({ target: JSON.parse(application.trim().split("\n")[0]) });
|
|
10718
|
+
if (!app2?.ruleClass.endsWith("_application"))
|
|
10719
|
+
throw new Error(
|
|
10720
|
+
`${label} is a ${app2?.ruleClass ?? "missing rule"}, not an application`
|
|
10721
|
+
);
|
|
10722
|
+
const deps = app2.attrs.get("deps")?.list ?? [];
|
|
10723
|
+
if (deps.length === 0) throw new Error(`${label} links no libraries`);
|
|
10724
|
+
const infoplists = app2.attrs.get("infoplists")?.list ?? [];
|
|
10725
|
+
const query = `kind("${QUERIED_RULES.join("|")}", deps(set(${deps.join(" ")})))${infoplists.length > 0 ? ` + set(${infoplists.join(" ")})` : ""}`;
|
|
10726
|
+
const output2 = run7(["cquery", query, ...flags, "--output=jsonproto"]);
|
|
10727
|
+
const defaults = run7([
|
|
10728
|
+
"cquery",
|
|
10729
|
+
query,
|
|
10730
|
+
...flags,
|
|
8842
10731
|
"--output=starlark",
|
|
8843
10732
|
'--starlark:expr=str(target.label) + "\\t" + " ".join([f.short_path for f in target.files.to_list() if not f.is_source])'
|
|
8844
10733
|
]);
|
|
8845
10734
|
const info2 = run7(["info", "output_base", "execution_root"]);
|
|
8846
10735
|
const bin = run7(["cquery", deps[0], ...flags, "--output=files"]).split("\n").find((line) => line.includes("/bin/"));
|
|
8847
10736
|
if (!bin) throw new Error(`bazel cquery names no output for ${deps[0]}`);
|
|
8848
|
-
import_node_fs20.default.mkdirSync(
|
|
10737
|
+
import_node_fs20.default.mkdirSync(import_node_path20.default.dirname(file), { recursive: true });
|
|
8849
10738
|
import_node_fs20.default.writeFileSync(
|
|
8850
10739
|
`${file}.partial`,
|
|
8851
10740
|
JSON.stringify({
|
|
@@ -8899,8 +10788,8 @@ function bazelGraph(root, label, configuration) {
|
|
|
8899
10788
|
app,
|
|
8900
10789
|
appDeps,
|
|
8901
10790
|
outputBase: info.output_base ?? "",
|
|
8902
|
-
outputs:
|
|
8903
|
-
bin:
|
|
10791
|
+
outputs: import_node_path20.default.join(info.execution_root ?? "", stored.bin),
|
|
10792
|
+
bin: import_node_path20.default.join(root, ".build", "peach-bazel", "bin"),
|
|
8904
10793
|
minimumOS: app.attrs.get("minimum_os_version")?.value || null
|
|
8905
10794
|
};
|
|
8906
10795
|
graphs.set(key, graph);
|
|
@@ -8924,8 +10813,8 @@ function readBazelAppTarget(buildFile, targetName2, configurationName, options =
|
|
|
8924
10813
|
`${buildFile}: pass --target with the ios_application the bazel package builds`
|
|
8925
10814
|
);
|
|
8926
10815
|
const root = import_node_fs20.default.realpathSync.native(workspaceRoot(import_node_fs20.default.realpathSync.native(buildFile)));
|
|
8927
|
-
const pkg =
|
|
8928
|
-
const label = `//${pkg.split(
|
|
10816
|
+
const pkg = import_node_path20.default.relative(root, import_node_path20.default.dirname(import_node_fs20.default.realpathSync.native(buildFile)));
|
|
10817
|
+
const label = `//${pkg.split(import_node_path20.default.sep).join("/")}:${targetName2}`;
|
|
8929
10818
|
const configuration = configurationName ?? "Debug";
|
|
8930
10819
|
const graph = bazelGraph(root, label, configuration);
|
|
8931
10820
|
const files = new BazelFiles(graph, root);
|
|
@@ -8957,7 +10846,7 @@ function readBazelAppTarget(buildFile, targetName2, configurationName, options =
|
|
|
8957
10846
|
if (known) return known;
|
|
8958
10847
|
const own = {
|
|
8959
10848
|
includes: (rule.attrs.get("includes")?.list ?? []).flatMap(
|
|
8960
|
-
(include) => files.packageDirs(rule.label).map((dir) =>
|
|
10849
|
+
(include) => files.packageDirs(rule.label).map((dir) => import_node_path20.default.normalize(import_node_path20.default.join(dir, include)))
|
|
8961
10850
|
),
|
|
8962
10851
|
defines: rule.attrs.get("defines")?.list ?? [],
|
|
8963
10852
|
moduleMaps: ["objc_library", "cc_library"].includes(rule.ruleClass) ? [moduleMapOf(rule)] : []
|
|
@@ -8982,11 +10871,11 @@ function readBazelAppTarget(buildFile, targetName2, configurationName, options =
|
|
|
8982
10871
|
return result;
|
|
8983
10872
|
};
|
|
8984
10873
|
const debug = configuration !== "Release";
|
|
8985
|
-
const products =
|
|
10874
|
+
const products = import_node_path20.default.join(root, PRODUCTS);
|
|
8986
10875
|
const resources = [];
|
|
8987
10876
|
const resourceNames = {};
|
|
8988
10877
|
const moduleNameOf = (rule) => rule.attrs.get("module_name")?.value || splitLabel(rule.label).pkg.concat("_", splitLabel(rule.label).name).replace(/[^A-Za-z0-9_]/g, "_");
|
|
8989
|
-
const moduleMapOf = (rule) =>
|
|
10878
|
+
const moduleMapOf = (rule) => import_node_path20.default.join(products, "modulemaps", moduleNameOf(rule), "module.modulemap");
|
|
8990
10879
|
const idOf = (rule) => `${root}/BUILD#${rule.label}`;
|
|
8991
10880
|
const collectData = (rule) => {
|
|
8992
10881
|
for (const raw of rule.attrs.get("data")?.list ?? []) {
|
|
@@ -8998,7 +10887,7 @@ function readBazelAppTarget(buildFile, targetName2, configurationName, options =
|
|
|
8998
10887
|
target.label
|
|
8999
10888
|
)) {
|
|
9000
10889
|
resources.push(file);
|
|
9001
|
-
resourceNames[file] =
|
|
10890
|
+
resourceNames[file] = import_node_path20.default.posix.join(bundle, import_node_path20.default.basename(file));
|
|
9002
10891
|
}
|
|
9003
10892
|
continue;
|
|
9004
10893
|
}
|
|
@@ -9100,12 +10989,12 @@ function readBazelAppTarget(buildFile, targetName2, configurationName, options =
|
|
|
9100
10989
|
);
|
|
9101
10990
|
const text3 = `module ${moduleName} {
|
|
9102
10991
|
${published.map(
|
|
9103
|
-
(file) => ` ${textual.has(file) ? "textual header" : "header"} "${
|
|
10992
|
+
(file) => ` ${textual.has(file) ? "textual header" : "header"} "${import_node_path20.default.relative(import_node_path20.default.dirname(moduleMap), file)}"
|
|
9104
10993
|
`
|
|
9105
10994
|
).join("")} export *
|
|
9106
10995
|
}
|
|
9107
10996
|
`;
|
|
9108
|
-
import_node_fs20.default.mkdirSync(
|
|
10997
|
+
import_node_fs20.default.mkdirSync(import_node_path20.default.dirname(moduleMap), { recursive: true });
|
|
9109
10998
|
if (!import_node_fs20.default.existsSync(moduleMap) || import_node_fs20.default.readFileSync(moduleMap, "utf8") !== text3)
|
|
9110
10999
|
import_node_fs20.default.writeFileSync(moduleMap, text3);
|
|
9111
11000
|
const clangDefines = [...debug ? ["DEBUG=1"] : [], ...defines].map(
|
|
@@ -9178,7 +11067,7 @@ ${published.map(
|
|
|
9178
11067
|
const bundle = files.expand(dep.attrs.get("xcframework_imports")?.list ?? [], dep.label).map(
|
|
9179
11068
|
(file) => file.slice(0, file.indexOf(".xcframework/") + ".xcframework".length)
|
|
9180
11069
|
).find((file) => file.endsWith(".xcframework"));
|
|
9181
|
-
return bundle ? [[
|
|
11070
|
+
return bundle ? [[import_node_path20.default.basename(bundle, ".xcframework"), bundle]] : [];
|
|
9182
11071
|
})
|
|
9183
11072
|
)
|
|
9184
11073
|
].map(([name2, file]) => ({
|
|
@@ -9190,10 +11079,10 @@ ${published.map(
|
|
|
9190
11079
|
[rule.attrs.get("crate_root")?.value ?? ""],
|
|
9191
11080
|
rule.label
|
|
9192
11081
|
)[0];
|
|
9193
|
-
let dir = crateRoot ?
|
|
9194
|
-
while (!import_node_fs20.default.existsSync(
|
|
9195
|
-
dir =
|
|
9196
|
-
const manifest =
|
|
11082
|
+
let dir = crateRoot ? import_node_path20.default.dirname(crateRoot) : root;
|
|
11083
|
+
while (!import_node_fs20.default.existsSync(import_node_path20.default.join(dir, "Cargo.toml")) && dir.startsWith(`${root}${import_node_path20.default.sep}`))
|
|
11084
|
+
dir = import_node_path20.default.dirname(dir);
|
|
11085
|
+
const manifest = import_node_path20.default.join(dir, "Cargo.toml");
|
|
9197
11086
|
if (!import_node_fs20.default.existsSync(manifest))
|
|
9198
11087
|
throw new Error(`${rule.label} has no Cargo.toml around its crate root`);
|
|
9199
11088
|
return { manifest, features: rule.attrs.get("crate_features")?.list ?? [] };
|
|
@@ -9222,13 +11111,13 @@ ${published.map(
|
|
|
9222
11111
|
for (const output2 of rule.outputs) {
|
|
9223
11112
|
const target = files.path(output2);
|
|
9224
11113
|
if (target.endsWith(".a")) continue;
|
|
9225
|
-
const source =
|
|
11114
|
+
const source = import_node_path20.default.join(graph.outputs, import_node_path20.default.relative(graph.bin, target));
|
|
9226
11115
|
if (!import_node_fs20.default.existsSync(source)) continue;
|
|
9227
11116
|
const from = import_node_fs20.default.statSync(source);
|
|
9228
11117
|
const to = import_node_fs20.default.existsSync(target) ? import_node_fs20.default.statSync(target) : null;
|
|
9229
11118
|
if (to && to.mtimeMs === from.mtimeMs && to.size === from.size) continue;
|
|
9230
11119
|
import_node_fs20.default.rmSync(target, { recursive: true, force: true });
|
|
9231
|
-
import_node_fs20.default.mkdirSync(
|
|
11120
|
+
import_node_fs20.default.mkdirSync(import_node_path20.default.dirname(target), { recursive: true });
|
|
9232
11121
|
import_node_fs20.default.cpSync(source, target, {
|
|
9233
11122
|
recursive: true,
|
|
9234
11123
|
dereference: true,
|
|
@@ -9255,7 +11144,7 @@ ${published.map(
|
|
|
9255
11144
|
const missing2 = options.requireSources === false ? [] : absent();
|
|
9256
11145
|
if (missing2.length > 0)
|
|
9257
11146
|
throw new Error(
|
|
9258
|
-
`bazel generates ${missing2.length} sources this app compiles that are not built: ${missing2.slice(0, 5).map((file) =>
|
|
11147
|
+
`bazel generates ${missing2.length} sources this app compiles that are not built: ${missing2.slice(0, 5).map((file) => import_node_path20.default.relative(root, file)).join(", ")}`
|
|
9259
11148
|
);
|
|
9260
11149
|
const archives = /* @__PURE__ */ new Map();
|
|
9261
11150
|
for (const rule of order) {
|
|
@@ -9279,7 +11168,7 @@ ${published.map(
|
|
|
9279
11168
|
);
|
|
9280
11169
|
const key = owner?.label ?? label2;
|
|
9281
11170
|
const entry = archives.get(key) ?? {
|
|
9282
|
-
library:
|
|
11171
|
+
library: import_node_path20.default.basename(archive),
|
|
9283
11172
|
holders: []
|
|
9284
11173
|
};
|
|
9285
11174
|
if (!entry.holders.includes(rule)) entry.holders.push(rule);
|
|
@@ -9312,10 +11201,10 @@ ${published.map(
|
|
|
9312
11201
|
],
|
|
9313
11202
|
rule.label
|
|
9314
11203
|
).filter((file) => /\.(?:h|hh|hpp|hxx|inc)$/.test(file)).map((file) => {
|
|
9315
|
-
const include = includes.find((dir) => file.startsWith(`${dir}${
|
|
11204
|
+
const include = includes.find((dir) => file.startsWith(`${dir}${import_node_path20.default.sep}`));
|
|
9316
11205
|
return {
|
|
9317
11206
|
file,
|
|
9318
|
-
name: include ?
|
|
11207
|
+
name: include ? import_node_path20.default.relative(include, file) : import_node_path20.default.basename(file)
|
|
9319
11208
|
};
|
|
9320
11209
|
});
|
|
9321
11210
|
});
|
|
@@ -9328,8 +11217,8 @@ ${published.map(
|
|
|
9328
11217
|
(include) => header.name === include || header.name.endsWith(`/${include}`)
|
|
9329
11218
|
)
|
|
9330
11219
|
);
|
|
9331
|
-
const bundle =
|
|
9332
|
-
const slice =
|
|
11220
|
+
const bundle = import_node_path20.default.join(products, "archives", `${name2}.xcframework`);
|
|
11221
|
+
const slice = import_node_path20.default.join(bundle, "ios-arm64-simulator");
|
|
9333
11222
|
const contents = new Map([
|
|
9334
11223
|
[
|
|
9335
11224
|
"Info.plist",
|
|
@@ -9350,7 +11239,7 @@ ${published.map(
|
|
|
9350
11239
|
],
|
|
9351
11240
|
// c library headers may lean on the standard ones their callers include first
|
|
9352
11241
|
[
|
|
9353
|
-
|
|
11242
|
+
import_node_path20.default.join("ios-arm64-simulator", "Headers", `${name2}.h`),
|
|
9354
11243
|
[
|
|
9355
11244
|
"#include <stddef.h>",
|
|
9356
11245
|
"#include <stdio.h>",
|
|
@@ -9358,7 +11247,7 @@ ${published.map(
|
|
|
9358
11247
|
].join("\n") + "\n"
|
|
9359
11248
|
],
|
|
9360
11249
|
[
|
|
9361
|
-
|
|
11250
|
+
import_node_path20.default.join("ios-arm64-simulator", "Headers", "module.modulemap"),
|
|
9362
11251
|
`module ${name2} {
|
|
9363
11252
|
header "${name2}.h"
|
|
9364
11253
|
export *
|
|
@@ -9367,27 +11256,27 @@ ${published.map(
|
|
|
9367
11256
|
],
|
|
9368
11257
|
...headers.map(
|
|
9369
11258
|
(header) => [
|
|
9370
|
-
|
|
11259
|
+
import_node_path20.default.join("ios-arm64-simulator", "Headers", header.name),
|
|
9371
11260
|
import_node_fs20.default.readFileSync(header.file)
|
|
9372
11261
|
]
|
|
9373
11262
|
)
|
|
9374
11263
|
]);
|
|
9375
|
-
const digest = (0,
|
|
11264
|
+
const digest = (0, import_node_crypto9.createHash)("sha256").update(
|
|
9376
11265
|
JSON.stringify(
|
|
9377
11266
|
[...contents].map(([file, bytes]) => [
|
|
9378
11267
|
file,
|
|
9379
|
-
(0,
|
|
11268
|
+
(0, import_node_crypto9.createHash)("sha256").update(bytes).digest("hex")
|
|
9380
11269
|
])
|
|
9381
11270
|
)
|
|
9382
11271
|
).digest("hex");
|
|
9383
|
-
const stamp =
|
|
11272
|
+
const stamp = import_node_path20.default.join(bundle, ".peach-digest");
|
|
9384
11273
|
if (!import_node_fs20.default.existsSync(stamp) || import_node_fs20.default.readFileSync(stamp, "utf8") !== digest) {
|
|
9385
11274
|
import_node_fs20.default.rmSync(bundle, { recursive: true, force: true });
|
|
9386
11275
|
for (const [file, bytes] of contents) {
|
|
9387
|
-
import_node_fs20.default.mkdirSync(
|
|
9388
|
-
import_node_fs20.default.writeFileSync(
|
|
11276
|
+
import_node_fs20.default.mkdirSync(import_node_path20.default.dirname(import_node_path20.default.join(bundle, file)), { recursive: true });
|
|
11277
|
+
import_node_fs20.default.writeFileSync(import_node_path20.default.join(bundle, file), bytes);
|
|
9389
11278
|
}
|
|
9390
|
-
import_node_fs20.default.writeFileSync(
|
|
11279
|
+
import_node_fs20.default.writeFileSync(import_node_path20.default.join(slice, library), "");
|
|
9391
11280
|
import_node_fs20.default.writeFileSync(stamp, digest);
|
|
9392
11281
|
}
|
|
9393
11282
|
binaryFrameworks.push({ name: name2, path: bundle, rustCrate });
|
|
@@ -9437,7 +11326,7 @@ ${published.map(
|
|
|
9437
11326
|
});
|
|
9438
11327
|
const buildFiles = [
|
|
9439
11328
|
...new Set(
|
|
9440
|
-
order.map((rule) =>
|
|
11329
|
+
order.map((rule) => import_node_path20.default.join(files.packageDirs(rule.label)[0], "BUILD"))
|
|
9441
11330
|
)
|
|
9442
11331
|
].map((file) => import_node_fs20.default.existsSync(file) ? file : `${file}.bazel`).filter((file) => import_node_fs20.default.existsSync(file));
|
|
9443
11332
|
return {
|
|
@@ -9534,15 +11423,15 @@ function shellTokens(options) {
|
|
|
9534
11423
|
return words;
|
|
9535
11424
|
});
|
|
9536
11425
|
}
|
|
9537
|
-
var import_node_child_process9,
|
|
11426
|
+
var import_node_child_process9, import_node_crypto9, import_node_fs20, import_node_os6, import_node_path20, import_plist2, LIBRARY_RULES, QUERIED_RULES, NATIVE_SOURCE, HEADER, PRODUCTS, graphs, GRAPH_FORMAT, BazelFiles, CXX_STANDARD;
|
|
9538
11427
|
var init_bazel_project = __esm({
|
|
9539
11428
|
"src/bazel-project.ts"() {
|
|
9540
11429
|
"use strict";
|
|
9541
11430
|
import_node_child_process9 = require("node:child_process");
|
|
9542
|
-
|
|
11431
|
+
import_node_crypto9 = require("node:crypto");
|
|
9543
11432
|
import_node_fs20 = __toESM(require("node:fs"), 1);
|
|
9544
11433
|
import_node_os6 = __toESM(require("node:os"), 1);
|
|
9545
|
-
|
|
11434
|
+
import_node_path20 = __toESM(require("node:path"), 1);
|
|
9546
11435
|
import_plist2 = __toESM(require("plist"), 1);
|
|
9547
11436
|
init_is_record();
|
|
9548
11437
|
LIBRARY_RULES = /* @__PURE__ */ new Set(["swift_library", "objc_library", "cc_library"]);
|
|
@@ -9561,7 +11450,7 @@ var init_bazel_project = __esm({
|
|
|
9561
11450
|
];
|
|
9562
11451
|
NATIVE_SOURCE = /\.(?:m|mm|c|cc|cpp|cxx|S)$/;
|
|
9563
11452
|
HEADER = /\.(?:h|hh|hpp|hxx|inc|inl|ipp)$/;
|
|
9564
|
-
PRODUCTS =
|
|
11453
|
+
PRODUCTS = import_node_path20.default.join(".build", "peach-bazel", "Products");
|
|
9565
11454
|
graphs = /* @__PURE__ */ new Map();
|
|
9566
11455
|
GRAPH_FORMAT = 4;
|
|
9567
11456
|
BazelFiles = class {
|
|
@@ -9574,25 +11463,25 @@ var init_bazel_project = __esm({
|
|
|
9574
11463
|
generated = /* @__PURE__ */ new Set();
|
|
9575
11464
|
repoDir(repo) {
|
|
9576
11465
|
if (repo === "") return this.root;
|
|
9577
|
-
const external =
|
|
11466
|
+
const external = import_node_path20.default.join(this.graph.outputBase, "external");
|
|
9578
11467
|
for (const name2 of [repo, `${repo}+`])
|
|
9579
|
-
if (import_node_fs20.default.existsSync(
|
|
11468
|
+
if (import_node_fs20.default.existsSync(import_node_path20.default.join(external, name2))) return import_node_path20.default.join(external, name2);
|
|
9580
11469
|
throw new Error(`bazel external repository ${repo} is not fetched`);
|
|
9581
11470
|
}
|
|
9582
11471
|
/** the package directory in the source tree, or under bazel-bin for outputs. */
|
|
9583
11472
|
packageDirs(label) {
|
|
9584
11473
|
const { repo, pkg } = splitLabel(label);
|
|
9585
|
-
const source =
|
|
9586
|
-
const bin = repo ?
|
|
11474
|
+
const source = import_node_path20.default.join(this.repoDir(repo), pkg);
|
|
11475
|
+
const bin = repo ? import_node_path20.default.join(this.graph.bin, "external", import_node_path20.default.basename(this.repoDir(repo)), pkg) : import_node_path20.default.join(this.graph.bin, pkg);
|
|
9587
11476
|
return [source, bin];
|
|
9588
11477
|
}
|
|
9589
11478
|
path(label) {
|
|
9590
11479
|
const { repo, pkg, name: name2 } = splitLabel(label);
|
|
9591
11480
|
if (this.generated.has(label)) {
|
|
9592
11481
|
const [, bin] = this.packageDirs(label);
|
|
9593
|
-
return
|
|
11482
|
+
return import_node_path20.default.join(bin, name2);
|
|
9594
11483
|
}
|
|
9595
|
-
return
|
|
11484
|
+
return import_node_path20.default.join(this.repoDir(repo), pkg, name2);
|
|
9596
11485
|
}
|
|
9597
11486
|
/** files a label list names: filegroups, aliases and rule outputs expanded. */
|
|
9598
11487
|
expand(labels, from) {
|
|
@@ -11025,10 +12914,10 @@ var init_native_app_identity = __esm({
|
|
|
11025
12914
|
|
|
11026
12915
|
// src/prepared-xcode-phases.ts
|
|
11027
12916
|
function relativeFile(root, file) {
|
|
11028
|
-
const relative3 =
|
|
11029
|
-
if (!relative3 || relative3 === ".." || relative3.startsWith(`..${
|
|
12917
|
+
const relative3 = import_node_path21.default.relative(root, file);
|
|
12918
|
+
if (!relative3 || relative3 === ".." || relative3.startsWith(`..${import_node_path21.default.sep}`) || import_node_path21.default.isAbsolute(relative3))
|
|
11030
12919
|
throw new Error(`prepared Xcode output is outside its workspace: ${file}`);
|
|
11031
|
-
return relative3.split(
|
|
12920
|
+
return relative3.split(import_node_path21.default.sep).join("/");
|
|
11032
12921
|
}
|
|
11033
12922
|
function output(root, file) {
|
|
11034
12923
|
const relative3 = relativeFile(root, file);
|
|
@@ -11038,7 +12927,7 @@ function output(root, file) {
|
|
|
11038
12927
|
relativeFile(root, import_node_fs21.default.realpathSync(file));
|
|
11039
12928
|
const bytes = import_node_fs21.default.readFileSync(file);
|
|
11040
12929
|
const prefix2 = Buffer.from(root);
|
|
11041
|
-
const hash = (0,
|
|
12930
|
+
const hash = (0, import_node_crypto10.createHash)("sha256");
|
|
11042
12931
|
let offset = 0;
|
|
11043
12932
|
for (let index = bytes.indexOf(prefix2); index !== -1; index = bytes.indexOf(prefix2, offset)) {
|
|
11044
12933
|
hash.update(bytes.subarray(offset, index)).update("\0workspace\0");
|
|
@@ -11052,8 +12941,8 @@ function output(root, file) {
|
|
|
11052
12941
|
}
|
|
11053
12942
|
function preparedXcodePhase(project, target, phase, configuration, outputs, recorded) {
|
|
11054
12943
|
const root = recording?.root ?? [...workspaces.keys()].find((root2) => {
|
|
11055
|
-
const relative3 =
|
|
11056
|
-
return relative3 !== ".." && !relative3.startsWith(`..${
|
|
12944
|
+
const relative3 = import_node_path21.default.relative(root2, project);
|
|
12945
|
+
return relative3 !== ".." && !relative3.startsWith(`..${import_node_path21.default.sep}`) && !import_node_path21.default.isAbsolute(relative3);
|
|
11057
12946
|
});
|
|
11058
12947
|
if (!root) return false;
|
|
11059
12948
|
const entry = {
|
|
@@ -11081,65 +12970,19 @@ function preparedXcodePhase(project, target, phase, configuration, outputs, reco
|
|
|
11081
12970
|
(item) => item.project === entry.project && item.target === target && item.phase === phase && item.configuration === configuration
|
|
11082
12971
|
);
|
|
11083
12972
|
if (!expected || JSON.stringify(expected.outputs) !== JSON.stringify(entry.outputs))
|
|
11084
|
-
throw new Error(
|
|
11085
|
-
`prepared Xcode phase does not match its attested outputs: ${project} ${target} ${phase}`
|
|
11086
|
-
);
|
|
11087
|
-
return true;
|
|
11088
|
-
}
|
|
11089
|
-
var import_node_crypto9, import_node_fs21, import_node_path20, workspaces, recording;
|
|
11090
|
-
var init_prepared_xcode_phases = __esm({
|
|
11091
|
-
"src/prepared-xcode-phases.ts"() {
|
|
11092
|
-
"use strict";
|
|
11093
|
-
import_node_crypto9 = require("node:crypto");
|
|
11094
|
-
import_node_fs21 = __toESM(require("node:fs"), 1);
|
|
11095
|
-
import_node_path20 = __toESM(require("node:path"), 1);
|
|
11096
|
-
workspaces = /* @__PURE__ */ new Map();
|
|
11097
|
-
}
|
|
11098
|
-
});
|
|
11099
|
-
|
|
11100
|
-
// src/swift-package.ts
|
|
11101
|
-
function isSwiftNativeTranslationUnit(file) {
|
|
11102
|
-
return SWIFT_NATIVE_TRANSLATION_UNIT_EXTENSIONS.some(
|
|
11103
|
-
(extension) => file.endsWith(extension)
|
|
11104
|
-
);
|
|
11105
|
-
}
|
|
11106
|
-
function moduleMapTokens(text3) {
|
|
11107
|
-
return (text3.match(/\/\*[\s\S]*?\*\/|\/\/[^\n]*|"[^"]*"|[\w.*]+|[{}\[\]]/g) ?? []).filter((token) => !token.startsWith("/"));
|
|
11108
|
-
}
|
|
11109
|
-
function moduleMapName(text3) {
|
|
11110
|
-
const tokens = moduleMapTokens(text3);
|
|
11111
|
-
const index = tokens.findIndex(
|
|
11112
|
-
(token, i) => token === "module" && tokens[i - 1] !== "extern"
|
|
11113
|
-
);
|
|
11114
|
-
return index < 0 ? void 0 : tokens[index + 1];
|
|
12973
|
+
throw new Error(
|
|
12974
|
+
`prepared Xcode phase does not match its attested outputs: ${project} ${target} ${phase}`
|
|
12975
|
+
);
|
|
12976
|
+
return true;
|
|
11115
12977
|
}
|
|
11116
|
-
var
|
|
11117
|
-
var
|
|
11118
|
-
"src/
|
|
12978
|
+
var import_node_crypto10, import_node_fs21, import_node_path21, workspaces, recording;
|
|
12979
|
+
var init_prepared_xcode_phases = __esm({
|
|
12980
|
+
"src/prepared-xcode-phases.ts"() {
|
|
11119
12981
|
"use strict";
|
|
11120
|
-
|
|
11121
|
-
|
|
11122
|
-
|
|
11123
|
-
|
|
11124
|
-
".cxx",
|
|
11125
|
-
".m",
|
|
11126
|
-
".mm"
|
|
11127
|
-
];
|
|
11128
|
-
SWIFT_NATIVE_SOURCE_EXTENSIONS = [
|
|
11129
|
-
...SWIFT_NATIVE_TRANSLATION_UNIT_EXTENSIONS,
|
|
11130
|
-
".s",
|
|
11131
|
-
".S",
|
|
11132
|
-
".h",
|
|
11133
|
-
".hh",
|
|
11134
|
-
".hpp",
|
|
11135
|
-
".hxx",
|
|
11136
|
-
".pch",
|
|
11137
|
-
".inc",
|
|
11138
|
-
".inl",
|
|
11139
|
-
".ipp",
|
|
11140
|
-
".def",
|
|
11141
|
-
".modulemap"
|
|
11142
|
-
];
|
|
12982
|
+
import_node_crypto10 = require("node:crypto");
|
|
12983
|
+
import_node_fs21 = __toESM(require("node:fs"), 1);
|
|
12984
|
+
import_node_path21 = __toESM(require("node:path"), 1);
|
|
12985
|
+
workspaces = /* @__PURE__ */ new Map();
|
|
11143
12986
|
}
|
|
11144
12987
|
});
|
|
11145
12988
|
|
|
@@ -11157,650 +13000,282 @@ function localSwiftBinaryModules(dir) {
|
|
|
11157
13000
|
const slices = import_node_fs22.default.readdirSync(dir, { withFileTypes: true }).filter((slice) => slice.isDirectory());
|
|
11158
13001
|
const frameworks = frameworkModules(
|
|
11159
13002
|
slices.flatMap(
|
|
11160
|
-
(slice) => import_node_fs22.default.readdirSync(
|
|
13003
|
+
(slice) => import_node_fs22.default.readdirSync(import_node_path22.default.join(dir, slice.name)).map((entry) => `${slice.name}/${entry}`)
|
|
11161
13004
|
)
|
|
11162
13005
|
);
|
|
11163
13006
|
if (frameworks.length > 0) return frameworks;
|
|
11164
13007
|
const modules = /* @__PURE__ */ new Set();
|
|
11165
13008
|
for (const slice of slices) {
|
|
11166
|
-
const headers =
|
|
13009
|
+
const headers = import_node_path22.default.join(dir, slice.name, "Headers");
|
|
11167
13010
|
if (!import_node_fs22.default.existsSync(headers)) continue;
|
|
11168
13011
|
for (const file of import_node_fs22.default.readdirSync(headers, { recursive: true, encoding: "utf8" })) {
|
|
11169
|
-
if (
|
|
11170
|
-
const module2 = moduleMapName(import_node_fs22.default.readFileSync(
|
|
13012
|
+
if (import_node_path22.default.basename(file) !== "module.modulemap") continue;
|
|
13013
|
+
const module2 = moduleMapName(import_node_fs22.default.readFileSync(import_node_path22.default.join(headers, file), "utf8"));
|
|
11171
13014
|
if (module2) modules.add(module2);
|
|
11172
13015
|
}
|
|
11173
13016
|
}
|
|
11174
|
-
return [...modules].sort();
|
|
11175
|
-
}
|
|
11176
|
-
var import_node_fs22,
|
|
11177
|
-
var init_swift_binary_modules = __esm({
|
|
11178
|
-
"src/swift-binary-modules.ts"() {
|
|
11179
|
-
"use strict";
|
|
11180
|
-
import_node_fs22 = __toESM(require("node:fs"), 1);
|
|
11181
|
-
import_node_path21 = __toESM(require("node:path"), 1);
|
|
11182
|
-
init_home_paths();
|
|
11183
|
-
init_swift_package();
|
|
11184
|
-
cacheDir2 = import_node_path21.default.join(cacheDir(), "swift-binary-modules");
|
|
11185
|
-
}
|
|
11186
|
-
});
|
|
11187
|
-
|
|
11188
|
-
// src/swift-coverage/provenance.ts
|
|
11189
|
-
var swiftCoverageProvenance;
|
|
11190
|
-
var init_provenance = __esm({
|
|
11191
|
-
"src/swift-coverage/provenance.ts"() {
|
|
11192
|
-
"use strict";
|
|
11193
|
-
swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"a19fe4c5e2efe18bbc3ece544ff2c8be660170d63274cccb0ab58e53083050e4","swift-package.ts":"851417572ca9aff699ad368bdc3ff05309b0256e483d40812b9c0beb869d0a5b","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"dec93d0206df8efbd9f538d1f3e3f6173f6eb022cb9ad6b02271481db7578d77","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"4a775ba92c7b23ce71dd6bb08c188c4bccd6e1ed500cc9fc7850030b945fc8d4","xcode-project.ts":"5e7daa9fabfa1c7f38e7b7e11bb0d4168e26d958b1acdb65e54e06e7de5c6804","xcode-target-members.ts":"2f25aaf5a3aa34395983c75935491c06bd68554c47ff1cb06b49c79499c03db0","xcode-json-project.ts":"41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6","openstep-plist.ts":"74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3"}') : swiftCoverageSourceDigests((0, import_node_path.join)(__sootsim_import_meta_dirname, ".."));
|
|
11194
|
-
}
|
|
11195
|
-
});
|
|
11196
|
-
|
|
11197
|
-
// src/swift-coverage/xcode-asset-symbols.ts
|
|
11198
|
-
var silentTypes, stackTypes, unprovenTypes, knownTypes, compressionTypes, renditionRules, setRules, inclusionRules, rules, swiftKeywords, nsColorConflicts, uiColorConflicts, colorConflicts, nsImageConflicts;
|
|
11199
|
-
var init_xcode_asset_symbols = __esm({
|
|
11200
|
-
"src/swift-coverage/xcode-asset-symbols.ts"() {
|
|
11201
|
-
"use strict";
|
|
11202
|
-
silentTypes = /* @__PURE__ */ new Set([
|
|
11203
|
-
"appiconset",
|
|
11204
|
-
"brandassets",
|
|
11205
|
-
"dataset",
|
|
11206
|
-
"iconset",
|
|
11207
|
-
"iconstack",
|
|
11208
|
-
"iconstackgroup",
|
|
11209
|
-
"launchimage",
|
|
11210
|
-
"stickerpack",
|
|
11211
|
-
"stickersiconset",
|
|
11212
|
-
"textureset"
|
|
11213
|
-
]);
|
|
11214
|
-
stackTypes = /* @__PURE__ */ new Set(["imagestack", "solidimagestack"]);
|
|
11215
|
-
unprovenTypes = /* @__PURE__ */ new Set([
|
|
11216
|
-
"arobject",
|
|
11217
|
-
"arreferenceimage",
|
|
11218
|
-
"arresourcegroup",
|
|
11219
|
-
"complicationset",
|
|
11220
|
-
"cubetextureset",
|
|
11221
|
-
"gcdashboardimage",
|
|
11222
|
-
"gcleaderboard",
|
|
11223
|
-
"gcleaderboardset",
|
|
11224
|
-
"glyphset",
|
|
11225
|
-
"iconbadgeset",
|
|
11226
|
-
"iconstacklayer",
|
|
11227
|
-
"imagestacklayer",
|
|
11228
|
-
"mipmapset",
|
|
11229
|
-
"modelset",
|
|
11230
|
-
"sidebariconset",
|
|
11231
|
-
"solidimagestacklayer",
|
|
11232
|
-
"sticker",
|
|
11233
|
-
"stickerframeset",
|
|
11234
|
-
"stickersequence"
|
|
11235
|
-
]);
|
|
11236
|
-
knownTypes = /* @__PURE__ */ new Set([
|
|
11237
|
-
"colorset",
|
|
11238
|
-
"imageset",
|
|
11239
|
-
"symbolset",
|
|
11240
|
-
"spriteatlas",
|
|
11241
|
-
...silentTypes,
|
|
11242
|
-
...stackTypes,
|
|
11243
|
-
...unprovenTypes
|
|
11244
|
-
]);
|
|
11245
|
-
compressionTypes = [
|
|
11246
|
-
"automatic",
|
|
11247
|
-
"lossless",
|
|
11248
|
-
"lossy",
|
|
11249
|
-
"gpu-optimized-best",
|
|
11250
|
-
"gpu-optimized-smallest"
|
|
11251
|
-
];
|
|
11252
|
-
renditionRules = {
|
|
11253
|
-
appearances: "objects",
|
|
11254
|
-
locale: "string",
|
|
11255
|
-
platform: "string",
|
|
11256
|
-
resizing: "object",
|
|
11257
|
-
"alignment-insets": "object",
|
|
11258
|
-
"compression-type": compressionTypes,
|
|
11259
|
-
"display-gamut": ["sRGB", "display-P3"],
|
|
11260
|
-
"minimum-system-version": "string",
|
|
11261
|
-
"matching-style": "string",
|
|
11262
|
-
"template-rendering-intent": "string",
|
|
11263
|
-
size: "string",
|
|
11264
|
-
role: "string",
|
|
11265
|
-
orientation: "string",
|
|
11266
|
-
extent: "string"
|
|
11267
|
-
};
|
|
11268
|
-
setRules = {
|
|
11269
|
-
localizable: "any",
|
|
11270
|
-
"auto-scaling": "string",
|
|
11271
|
-
"symbol-rendering-intent": "string",
|
|
11272
|
-
"provides-namespace": "any",
|
|
11273
|
-
"on-demand-resource-tags": "any",
|
|
11274
|
-
"template-rendering-intent": "string",
|
|
11275
|
-
"preserves-vector-representation": "any"
|
|
11276
|
-
};
|
|
11277
|
-
inclusionRules = {
|
|
11278
|
-
idiom: "any",
|
|
11279
|
-
subtype: "any",
|
|
11280
|
-
unassigned: "any"
|
|
11281
|
-
};
|
|
11282
|
-
rules = {
|
|
11283
|
-
// colors check none of the image traits
|
|
11284
|
-
colorset: {
|
|
11285
|
-
entry: {
|
|
11286
|
-
...renditionRules,
|
|
11287
|
-
...inclusionRules,
|
|
11288
|
-
color: "any",
|
|
11289
|
-
scale: "string",
|
|
11290
|
-
"language-direction": "string",
|
|
11291
|
-
"width-class": "string",
|
|
11292
|
-
"height-class": "string",
|
|
11293
|
-
memory: "string",
|
|
11294
|
-
"graphics-feature-set": "string",
|
|
11295
|
-
"screen-width": "string"
|
|
11296
|
-
},
|
|
11297
|
-
set: setRules
|
|
11298
|
-
},
|
|
11299
|
-
imageset: {
|
|
11300
|
-
entry: {
|
|
11301
|
-
...renditionRules,
|
|
11302
|
-
...inclusionRules,
|
|
11303
|
-
filename: "any",
|
|
11304
|
-
scale: ["1x", "2x", "3x"],
|
|
11305
|
-
"language-direction": ["left-to-right", "right-to-left"],
|
|
11306
|
-
"width-class": ["compact", "regular", "unspecified"],
|
|
11307
|
-
"height-class": ["compact", "regular"],
|
|
11308
|
-
memory: ["1GB", "2GB", "3GB", "4GB", "6GB", "8GB", "12GB", "16GB"],
|
|
11309
|
-
"graphics-feature-set": [
|
|
11310
|
-
...Array.from({ length: 10 }, (_, i) => `apple${i + 1}`),
|
|
11311
|
-
"metal1v2",
|
|
11312
|
-
"metal2v2",
|
|
11313
|
-
"metal3v1",
|
|
11314
|
-
"metal3v2",
|
|
11315
|
-
"metal4v1"
|
|
11316
|
-
],
|
|
11317
|
-
"screen-width": "string"
|
|
11318
|
-
},
|
|
11319
|
-
// an image whose vector flag is not a boolean is dropped
|
|
11320
|
-
set: {
|
|
11321
|
-
...setRules,
|
|
11322
|
-
"preserves-vector-representation": "boolean",
|
|
11323
|
-
"compression-type": compressionTypes
|
|
11324
|
-
}
|
|
11325
|
-
},
|
|
11326
|
-
symbolset: {
|
|
11327
|
-
entry: {
|
|
11328
|
-
idiom: "any",
|
|
11329
|
-
filename: "any",
|
|
11330
|
-
"language-direction": ["left-to-right", "right-to-left"]
|
|
11331
|
-
},
|
|
11332
|
-
set: { "symbol-rendering-intent": "any", localizable: "boolean" }
|
|
11333
|
-
}
|
|
11334
|
-
};
|
|
11335
|
-
swiftKeywords = new Set(
|
|
11336
|
-
"precedencegroup associatedtype fileprivate fallthrough extension typealias subscript continue internal Protocol protocol operator rethrows private default public static switch return throws repeat struct deinit import guard while where false catch break defer super class inout throw func Type case else true Self self enum init nil var for let Any try if in do as is _".split(
|
|
11337
|
-
" "
|
|
11338
|
-
)
|
|
11339
|
-
);
|
|
11340
|
-
nsColorConflicts = new Set(
|
|
11341
|
-
"unemphasizedSelectedContentBackgroundColor unemphasizedSelectedTextBackgroundColor controlAlternatingRowBackgroundColors alternatingContentBackgroundColors systemColorsDidChangeNotification alternateSelectedControlTextColor selectedContentBackgroundColor alternateSelectedControlColor secondarySelectedControlColor unemphasizedSelectedTextColor selectedTextBackgroundColor keyboardFocusIndicatorColor scrubberTexturedBackground controlLightHighlightColor selectedMenuItemTextColor underPageBackgroundColor disabledControlTextColor selectedControlTextColor controlBackgroundColor controlDarkShadowColor windowBackgroundColor selectedMenuItemColor controlHighlightColor quaternaryLabelColor selectedControlColor windowFrameTextColor placeholderTextColor textBackgroundColor secondaryLabelColor tertiaryLabelColor findHighlightColor controlAccentColor controlShadowColor currentControlTint selectedKnobColor selectedTextColor windowFrameColor controlTextColor headerTextColor scrollBarColor separatorColor highlightColor ignoresAlpha systemOrange systemPurple systemIndigo controlColor systemYellow systemGreen systemBrown headerColor shadowColor systemBlue systemPink systemTeal systemCyan labelColor systemMint systemGray systemRed knobColor gridColor linkColor textColor lightGray darkGray magenta orange purple yellow white black green brown clear blue cyan gray red".split(
|
|
11342
|
-
" "
|
|
11343
|
-
)
|
|
11344
|
-
);
|
|
11345
|
-
uiColorConflicts = new Set(
|
|
11346
|
-
"secondarySystemGroupedBackground tertiarySystemGroupedBackground secondarySystemBackground tertiarySystemBackground groupTableViewBackground systemGroupedBackground quaternarySystemFill smallSystemFontSize secondarySystemFill tertiarySystemFill systemBackground quaternaryLabel opaqueSeparator placeholderText systemFontSize buttonFontSize secondaryLabel labelFontSize tertiaryLabel systemOrange systemPurple systemIndigo systemYellow systemGray2 systemGray3 systemGray4 systemGray5 systemGray6 systemGreen systemBrown systemBlue systemPink systemTeal systemFill systemCyan systemMint systemGray systemRed tintColor separator lightText lightGray darkText darkGray magenta orange purple yellow white black label green brown clear blue link cyan gray red".split(
|
|
11347
|
-
" "
|
|
11348
|
-
)
|
|
11349
|
-
);
|
|
11350
|
-
colorConflicts = new Set(
|
|
11351
|
-
"transferRepresentation accentColor secondary primary orange purple indigo yellow white black green brown clear blue pink teal cyan mint gray red".split(
|
|
11352
|
-
" "
|
|
11353
|
-
)
|
|
11354
|
-
);
|
|
11355
|
-
nsImageConflicts = new Set(
|
|
11356
|
-
"touchBarAudioOutputVolumeMediumTemplateName touchBarAudioOutputVolumeHighTemplateName touchBarAudioOutputVolumeOffTemplateName touchBarAudioOutputVolumeLowTemplateName touchBarTextJustifiedAlignTemplateName touchBarCommunicationVideoTemplateName touchBarCommunicationAudioTemplateName touchBarSkipAhead30SecondsTemplateName touchBarSkipAhead15SecondsTemplateName touchBarTextStrikethroughTemplateName touchBarSkipBack30SecondsTemplateName touchBarSkipBack15SecondsTemplateName stopProgressFreestandingTemplateName touchBarAudioOutputMuteTemplateName invalidDataFreestandingTemplateName touchBarEnterFullScreenTemplateName touchBarTextCenterAlignTemplateName touchBarAudioInputMuteTemplateName followLinkFreestandingTemplateName touchBarExitFullScreenTemplateName touchBarTextRightAlignTemplateName touchBarTextUnderlineTemplateName touchBarTextLeftAlignTemplateName touchBarOpenInBrowserTemplateName touchBarFolderMoveToTemplateName touchBarFolderCopyToTemplateName touchBarFastForwardTemplateName rightFacingTriangleTemplateName refreshFreestandingTemplateName touchBarRotateRightTemplateName touchBarRecordStartTemplateName touchBarSkipToStartTemplateName touchBarTextItalicTemplateName touchBarNewMessageTemplateName leftFacingTriangleTemplateName revealFreestandingTemplateName touchBarVolumeDownTemplateName touchBarRecordStopTemplateName touchBarRotateLeftTemplateName touchBarAudioInputTemplateName touchBarColorPickerStrokeName touchBarSkipAheadTemplateName touchBarSkipToEndTemplateName touchBarGoForwardTemplateName touchBarPlayPauseTemplateName touchBarQuickLookTemplateName touchBarAddDetailTemplateName touchBarUserGroupTemplateName touchBarNewFolderTemplateName touchBarBookmarksTemplateName touchBarSlideshowTemplateName statusPartiallyAvailableName touchBarPlayheadTemplateName touchBarDownloadTemplateName touchBarTextBoldTemplateName touchBarSkipBackTemplateName touchBarVolumeUpTemplateName touchBarTextListTemplateName touchBarIconViewTemplateName touchBarListViewTemplateName touchBarUserAddTemplateName touchBarComposeTemplateName touchBarRefreshTemplateName enterFullScreenTemplateName touchBarTagIconTemplateName touchBarGetInfoTemplateName touchBarSidebarTemplateName touchBarTextBoxTemplateName touchBarHistoryTemplateName touchBarColorPickerFillName touchBarColorPickerFontName touchBarRewindTemplateName menuMixedStateTemplateName touchBarDeleteTemplateName touchBarRemoveTemplateName touchBarSearchTemplateName touchBarGoBackTemplateName exitFullScreenTemplateName touchBarGoDownTemplateName touchBarFolderTemplateName touchBarShareTemplateName touchBarPauseTemplateName touchBarAlarmTemplateName lockUnlockedTemplateName touchBarMailTemplateName touchBarGoUpTemplateName touchBarUserTemplateName iChatTheaterTemplateName stopProgressTemplateName touchBarPlayTemplateName touchBarAddTemplateName menuOnStateTemplateName lockLockedTemplateName smartBadgeTemplateName columnViewTemplateName preferencesGeneralName statusUnavailableName goForwardTemplateName bluetoothTemplateName quickLookTemplateName bookmarksTemplateName slideshowTemplateName multipleDocumentsName iconViewTemplateName listViewTemplateName flowViewTemplateName imageUnfilteredTypes statusAvailableName refreshTemplateName goRightTemplateName applicationIconName folderBurnableName removeTemplateName goBackTemplateName actionTemplateName goLeftTemplateName shareTemplateName homeTemplateName pathTemplateName userAccountsName addTemplateName folderSmartName statusNoneName colorPanelName trashEmptyName fontPanelName trashFullName userGroupName userGuestName advancedName mobileMeName everyoneName computerName networkName cautionName bonjourName folderName imageTypes infoName userName".split(
|
|
11357
|
-
" "
|
|
11358
|
-
)
|
|
11359
|
-
);
|
|
11360
|
-
}
|
|
11361
|
-
});
|
|
11362
|
-
|
|
11363
|
-
// src/swift-coverage/xcode-assets.ts
|
|
11364
|
-
var unprovenAssetSettings, assetSymbolSettingKeys;
|
|
11365
|
-
var init_xcode_assets = __esm({
|
|
11366
|
-
"src/swift-coverage/xcode-assets.ts"() {
|
|
11367
|
-
"use strict";
|
|
11368
|
-
init_provenance();
|
|
11369
|
-
init_xcode_asset_symbols();
|
|
11370
|
-
unprovenAssetSettings = [
|
|
11371
|
-
"ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_FRAMEWORKS",
|
|
11372
|
-
"ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_WARNINGS",
|
|
11373
|
-
"ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_ERRORS",
|
|
11374
|
-
"ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_BACKWARDS_DEPLOYMENT_SUPPORT",
|
|
11375
|
-
"ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOLS_PATH",
|
|
11376
|
-
"ASSETCATALOG_COMPILER_GENERATE_OBJC_ASSET_SYMBOLS_PATH",
|
|
11377
|
-
"ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_INDEX_PATH",
|
|
11378
|
-
"ASSETCATALOG_COMPILER_BUNDLE_IDENTIFIER",
|
|
11379
|
-
"ASSETCATALOG_COMPILER_LIGHTWEIGHT_ASSET_RUNTIME_MODE"
|
|
11380
|
-
];
|
|
11381
|
-
assetSymbolSettingKeys = [
|
|
11382
|
-
"ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOLS",
|
|
11383
|
-
"ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS",
|
|
11384
|
-
"PRODUCT_BUNDLE_IDENTIFIER",
|
|
11385
|
-
"TARGETED_DEVICE_FAMILY",
|
|
11386
|
-
...unprovenAssetSettings,
|
|
11387
|
-
"ASSETCATALOG_OTHER_FLAGS"
|
|
11388
|
-
];
|
|
11389
|
-
}
|
|
11390
|
-
});
|
|
11391
|
-
|
|
11392
|
-
// cli/cli-release-origin.ts
|
|
11393
|
-
var init_cli_release_origin = __esm({
|
|
11394
|
-
"cli/cli-release-origin.ts"() {
|
|
11395
|
-
"use strict";
|
|
11396
|
-
}
|
|
11397
|
-
});
|
|
11398
|
-
|
|
11399
|
-
// cli/drivers/linux-browser-libs.ts
|
|
11400
|
-
var init_linux_browser_libs = __esm({
|
|
11401
|
-
"cli/drivers/linux-browser-libs.ts"() {
|
|
13017
|
+
return [...modules].sort();
|
|
13018
|
+
}
|
|
13019
|
+
var import_node_fs22, import_node_path22, cacheDir2;
|
|
13020
|
+
var init_swift_binary_modules = __esm({
|
|
13021
|
+
"src/swift-binary-modules.ts"() {
|
|
11402
13022
|
"use strict";
|
|
11403
|
-
|
|
13023
|
+
import_node_fs22 = __toESM(require("node:fs"), 1);
|
|
13024
|
+
import_node_path22 = __toESM(require("node:path"), 1);
|
|
11404
13025
|
init_home_paths();
|
|
11405
|
-
|
|
11406
|
-
|
|
11407
|
-
}
|
|
11408
|
-
});
|
|
11409
|
-
|
|
11410
|
-
// src/process-liveness.ts
|
|
11411
|
-
var init_process_liveness = __esm({
|
|
11412
|
-
"src/process-liveness.ts"() {
|
|
11413
|
-
"use strict";
|
|
11414
|
-
}
|
|
11415
|
-
});
|
|
11416
|
-
|
|
11417
|
-
// src/retired-cache-directory.ts
|
|
11418
|
-
var init_retired_cache_directory = __esm({
|
|
11419
|
-
"src/retired-cache-directory.ts"() {
|
|
11420
|
-
"use strict";
|
|
11421
|
-
init_process_liveness();
|
|
13026
|
+
init_swift_package();
|
|
13027
|
+
cacheDir2 = import_node_path22.default.join(cacheDir(), "swift-binary-modules");
|
|
11422
13028
|
}
|
|
11423
13029
|
});
|
|
11424
13030
|
|
|
11425
|
-
// src/swift-
|
|
11426
|
-
var
|
|
11427
|
-
|
|
13031
|
+
// src/swift-coverage/provenance.ts
|
|
13032
|
+
var swiftCoverageProvenance;
|
|
13033
|
+
var init_provenance = __esm({
|
|
13034
|
+
"src/swift-coverage/provenance.ts"() {
|
|
11428
13035
|
"use strict";
|
|
13036
|
+
swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"a19fe4c5e2efe18bbc3ece544ff2c8be660170d63274cccb0ab58e53083050e4","swift-package.ts":"851417572ca9aff699ad368bdc3ff05309b0256e483d40812b9c0beb869d0a5b","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"a0ef7c20a2bc2b7dbd98b9006a8b000b9b4f9708f1bcf0adad8aaf79ef253022","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"4a775ba92c7b23ce71dd6bb08c188c4bccd6e1ed500cc9fc7850030b945fc8d4","xcode-project.ts":"3e44efffa6b26d05b7390b6d0215ad36141fb9c7c46d2d51cd100ab85008fca4","xcode-target-members.ts":"2f25aaf5a3aa34395983c75935491c06bd68554c47ff1cb06b49c79499c03db0","xcode-json-project.ts":"41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6","openstep-plist.ts":"74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3"}') : swiftCoverageSourceDigests((0, import_node_path.join)(__sootsim_import_meta_dirname, ".."));
|
|
11429
13037
|
}
|
|
11430
13038
|
});
|
|
11431
13039
|
|
|
11432
|
-
// src/swift-
|
|
11433
|
-
|
|
11434
|
-
|
|
11435
|
-
|
|
11436
|
-
}
|
|
11437
|
-
var import_node_path22, SWIFT_HOST_COMPILER_RELEASE, SWIFT_HOST_COMPILER_ID, compilerArchives, SWIFT_PRIVATE_DISTRIBUTION_ENV;
|
|
11438
|
-
var init_swift_toolchain = __esm({
|
|
11439
|
-
"src/swift-toolchain.ts"() {
|
|
13040
|
+
// src/swift-coverage/xcode-asset-symbols.ts
|
|
13041
|
+
var silentTypes, stackTypes, unprovenTypes, knownTypes, compressionTypes, renditionRules, setRules, inclusionRules, rules, swiftKeywords, nsColorConflicts, uiColorConflicts, colorConflicts, nsImageConflicts;
|
|
13042
|
+
var init_xcode_asset_symbols = __esm({
|
|
13043
|
+
"src/swift-coverage/xcode-asset-symbols.ts"() {
|
|
11440
13044
|
"use strict";
|
|
11441
|
-
|
|
11442
|
-
|
|
11443
|
-
|
|
11444
|
-
|
|
11445
|
-
"
|
|
11446
|
-
|
|
11447
|
-
|
|
11448
|
-
|
|
11449
|
-
|
|
11450
|
-
|
|
11451
|
-
|
|
11452
|
-
|
|
11453
|
-
|
|
11454
|
-
|
|
11455
|
-
|
|
11456
|
-
|
|
11457
|
-
|
|
11458
|
-
|
|
11459
|
-
|
|
11460
|
-
|
|
11461
|
-
|
|
11462
|
-
|
|
11463
|
-
"
|
|
11464
|
-
|
|
11465
|
-
|
|
11466
|
-
|
|
11467
|
-
|
|
11468
|
-
|
|
11469
|
-
|
|
11470
|
-
|
|
11471
|
-
|
|
11472
|
-
|
|
11473
|
-
|
|
11474
|
-
|
|
11475
|
-
|
|
11476
|
-
|
|
11477
|
-
|
|
11478
|
-
|
|
11479
|
-
|
|
11480
|
-
|
|
11481
|
-
|
|
11482
|
-
|
|
11483
|
-
|
|
11484
|
-
|
|
11485
|
-
|
|
11486
|
-
|
|
11487
|
-
|
|
11488
|
-
|
|
11489
|
-
|
|
11490
|
-
|
|
11491
|
-
|
|
11492
|
-
|
|
11493
|
-
|
|
11494
|
-
|
|
11495
|
-
|
|
11496
|
-
|
|
11497
|
-
|
|
11498
|
-
|
|
11499
|
-
"
|
|
11500
|
-
|
|
11501
|
-
|
|
11502
|
-
|
|
11503
|
-
|
|
11504
|
-
|
|
11505
|
-
|
|
11506
|
-
|
|
11507
|
-
|
|
11508
|
-
|
|
11509
|
-
|
|
11510
|
-
|
|
11511
|
-
|
|
11512
|
-
|
|
11513
|
-
|
|
11514
|
-
|
|
11515
|
-
|
|
11516
|
-
|
|
11517
|
-
"
|
|
11518
|
-
|
|
11519
|
-
|
|
11520
|
-
|
|
11521
|
-
|
|
11522
|
-
|
|
11523
|
-
|
|
11524
|
-
|
|
11525
|
-
|
|
11526
|
-
|
|
11527
|
-
|
|
11528
|
-
|
|
11529
|
-
"
|
|
11530
|
-
|
|
11531
|
-
|
|
11532
|
-
|
|
11533
|
-
|
|
11534
|
-
|
|
11535
|
-
|
|
11536
|
-
|
|
11537
|
-
archive: "tar.gz",
|
|
11538
|
-
hosts: {
|
|
11539
|
-
"darwin-arm64": {
|
|
11540
|
-
checksum: "dc6a494227297ea657e8e5f7c5b4a861cb5e142bdbcfcb028ace2aeb19db90cc",
|
|
11541
|
-
manifest: "d8e9eee0fb9b847f1e9350525d6c68606df46101745f553332309ed026b3c26a"
|
|
11542
|
-
},
|
|
11543
|
-
"linux-x64": {
|
|
11544
|
-
checksum: "85c04b4496aea1657c21a47f448e01d6ccc1c7920d130a566db37fb8350a7be2",
|
|
11545
|
-
manifest: "8451659e74235ad53b700c1afbe293512197900eb98cb1f79e36df2f5c85d511"
|
|
11546
|
-
},
|
|
11547
|
-
"linux-arm64": {
|
|
11548
|
-
checksum: "196606ed62c5c926d18e6ef0769cb1ab21c9943f9084070ddf14a7bc696768b8",
|
|
11549
|
-
manifest: "85fb8d5b6527bd75003a6dbd25b68b22540665cf9df9b13f41f82e5d8acdbf1d"
|
|
11550
|
-
}
|
|
11551
|
-
}
|
|
11552
|
-
},
|
|
11553
|
-
"swift-6.4.0-RELEASE-custom-f7c03c3f59ec5d83": {
|
|
11554
|
-
identity: "f7c03c3f59ec5d83",
|
|
11555
|
-
archive: "tar.gz",
|
|
11556
|
-
hosts: {
|
|
11557
|
-
"darwin-arm64": {
|
|
11558
|
-
checksum: "8946a2d4716d3b0784cef7a85a35f66537bd319c4c5a48c63457d607260df5c5",
|
|
11559
|
-
manifest: "2a7754e6e365bf71ae6b6aefbbd810123795c73d43fb902a8a972d009d72790f"
|
|
11560
|
-
},
|
|
11561
|
-
"linux-x64": {
|
|
11562
|
-
checksum: "5ffa3b54d54583c1d6a38b708693072db4d088ba4bf5966b17014c068b2db641",
|
|
11563
|
-
manifest: "1b23ea52c5570de4697481a54bd0b0a0bcd6b54feccb7b0bb940d3643dec82cb"
|
|
11564
|
-
},
|
|
11565
|
-
"linux-arm64": {
|
|
11566
|
-
checksum: "29b0b97b7b0db4475dbe55f7011e57f493fed9f3482a6705becebd8b68c90bab",
|
|
11567
|
-
manifest: "3fdab1132715f5899de1bb1d7ddcd52cf540295ab86586c72f49502f37a403a1"
|
|
11568
|
-
}
|
|
11569
|
-
}
|
|
11570
|
-
},
|
|
11571
|
-
"swift-6.4.0-RELEASE-custom-3e3dca8fd1d82975": {
|
|
11572
|
-
identity: "3e3dca8fd1d82975",
|
|
11573
|
-
archive: "tar.gz",
|
|
11574
|
-
hosts: {
|
|
11575
|
-
"darwin-arm64": {
|
|
11576
|
-
checksum: "dfad56454f5e1e465071ff708bf485be65b438cf55d02b04d26d17d26df9f54a",
|
|
11577
|
-
manifest: "82c35e43ed81101bea500100356a555d8266e1987d5ca7605aaa4df747c38f81"
|
|
11578
|
-
},
|
|
11579
|
-
"linux-x64": {
|
|
11580
|
-
checksum: "d3f5908d097fdc1337ff979114e605bcc758052e32f9d5d760574153d58ce6db",
|
|
11581
|
-
manifest: "a03caf181177f3d68a45b5246d0f0a26d8a5fa9ff33cf44c44e6942b73363bae"
|
|
11582
|
-
},
|
|
11583
|
-
"linux-arm64": {
|
|
11584
|
-
checksum: "8fceafca152dd0692aa6bb51236fc362a4caeeef37fc22cb5ef6aa3d0d5b3df3",
|
|
11585
|
-
manifest: "3115bc496fd8e907a16992dfc5c85b3e0798d3b58ddf1d6dace63842aed8e53b"
|
|
11586
|
-
}
|
|
11587
|
-
}
|
|
11588
|
-
},
|
|
11589
|
-
"swift-6.4.0-RELEASE-custom-b082ac5437336790": {
|
|
11590
|
-
identity: "b082ac5437336790",
|
|
11591
|
-
archive: "tar.gz",
|
|
11592
|
-
hosts: {
|
|
11593
|
-
"darwin-arm64": {
|
|
11594
|
-
checksum: "85e601982321d3a6f81f05928bc9bbe7a61bc75b27ce24508e79f6b5b537254d",
|
|
11595
|
-
manifest: "c889a70c6bba48eb0e5e218a5c0077eb557082fed5c5c58d10f07a941975080e"
|
|
11596
|
-
},
|
|
11597
|
-
"linux-x64": {
|
|
11598
|
-
checksum: "54c7988622d201e4ba6c83ca75e7b28c658b39cf1ea8b95ea88807afe33aa465",
|
|
11599
|
-
manifest: "bfd725c3b07a3624bb44c8e3a1b7ddf1eddde4fc9565e23740a9cee832c94583"
|
|
11600
|
-
},
|
|
11601
|
-
"linux-arm64": {
|
|
11602
|
-
checksum: "bd729fd73dc9953306eafd87eda79462b836b3cb127c73108327d7256b15f501",
|
|
11603
|
-
manifest: "e7f8827cca0f249a5b4a4750f6324f75633b374985fa0b93e650ee8bfcabeb39"
|
|
11604
|
-
}
|
|
11605
|
-
}
|
|
11606
|
-
},
|
|
11607
|
-
"swift-6.4.0-RELEASE-custom-9cdaffdb6b37fb47": {
|
|
11608
|
-
identity: "9cdaffdb6b37fb47",
|
|
11609
|
-
archive: "tar.gz",
|
|
11610
|
-
hosts: {
|
|
11611
|
-
"darwin-arm64": {
|
|
11612
|
-
checksum: "fdd3f88cf76a8dc2083275d4253255030068a25b5ba68acbf59e0407c45677dd",
|
|
11613
|
-
manifest: "f50c68faf91f7d2a6ea5bcd4da4573a49dd00ad9f334b27d3f9ddb08b65e46cc"
|
|
11614
|
-
},
|
|
11615
|
-
"linux-x64": {
|
|
11616
|
-
checksum: "f29f9efc598b17f33d802467676ba282441a8c3c6fa67e307c4a1e6130509d73",
|
|
11617
|
-
manifest: "f907727c5a4af58ccad7ccbb043a21289d7eb37d166536a90b3c3848f95df816"
|
|
11618
|
-
},
|
|
11619
|
-
"linux-arm64": {
|
|
11620
|
-
checksum: "7d4a8a1f90dd6c86804ceb43f8b9cf680b9778d4640a2eb6da5cb333a599f23a",
|
|
11621
|
-
manifest: "a3224cd5c09a92f66cacd0395058b2c43fa103a92bb168280132bbd0febd1575"
|
|
11622
|
-
}
|
|
11623
|
-
}
|
|
11624
|
-
},
|
|
11625
|
-
"swift-6.4.0-RELEASE-custom-bd49e2f77434e7b1": {
|
|
11626
|
-
identity: "bd49e2f77434e7b1",
|
|
11627
|
-
archive: "tar.gz",
|
|
11628
|
-
hosts: {
|
|
11629
|
-
"darwin-arm64": {
|
|
11630
|
-
checksum: "e815b06394566e8125475afc8f1807f7f465318c845549c5831043cdc28eca64",
|
|
11631
|
-
manifest: "6e3ae00102c67f2f9761b1462aab63580f2ca010469300a7c4a620765573e4e0"
|
|
11632
|
-
},
|
|
11633
|
-
"linux-x64": {
|
|
11634
|
-
checksum: "9336e0b0aefaa0171799d4b5d4215c711a24c79ac9e91baa362ba100fc22534f",
|
|
11635
|
-
manifest: "3802c631f593eda1d79dc4af55a8667356eece954d2ea59b62b1f8f981fa538e"
|
|
11636
|
-
},
|
|
11637
|
-
"linux-arm64": {
|
|
11638
|
-
checksum: "851b5a756472ad53d833e8f0ab3ae55c05d3e6b49871bb982c977b7582cc117f",
|
|
11639
|
-
manifest: "4162656192a2881e5ccc763e3e66ce46646a84ff42cdf2de50bd6424ebac5e34"
|
|
11640
|
-
}
|
|
11641
|
-
}
|
|
11642
|
-
},
|
|
11643
|
-
"swift-6.4.0-RELEASE-custom-13450179a7e01c81": {
|
|
11644
|
-
identity: "13450179a7e01c81",
|
|
11645
|
-
archive: "tar.gz",
|
|
11646
|
-
hosts: {
|
|
11647
|
-
"darwin-arm64": {
|
|
11648
|
-
checksum: "a29be6b722f15c7aafac26ba5703a7392f49ce7ea5e1c56548846b7e458290f7",
|
|
11649
|
-
manifest: "9d89bc39d80d13c8bdb93ad5c306bb87e83bac34090f9bcec57476fd90a6a115"
|
|
11650
|
-
},
|
|
11651
|
-
"linux-x64": {
|
|
11652
|
-
checksum: "b9e9e3ed855f6a8c85f5fe24016b83792a0088e2d0ea632482426c4dc6031b98",
|
|
11653
|
-
manifest: "5de3bb6bf131e68862539195fbb4fce9d4de2b528fa882495b27fd4bdd02e5ab"
|
|
11654
|
-
},
|
|
11655
|
-
"linux-arm64": {
|
|
11656
|
-
checksum: "844f5ead2854d4ac2d1fc9fb13c366450a2ed4b8fa641719822d74f9150575b4",
|
|
11657
|
-
manifest: "1fcfb353679186a3e631b83085e5e8c3dde8cb32d25052b3c8b7896339a4378b"
|
|
11658
|
-
}
|
|
11659
|
-
}
|
|
11660
|
-
},
|
|
11661
|
-
"swift-6.4.0-RELEASE-custom-f6868fa6054e83d6": {
|
|
11662
|
-
identity: "f6868fa6054e83d6",
|
|
11663
|
-
archive: "tar.gz",
|
|
11664
|
-
hosts: {
|
|
11665
|
-
"darwin-arm64": {
|
|
11666
|
-
checksum: "bd80c2f35864ec29883dd22001d0165821e80d78002fc12f92406c3c708694a4",
|
|
11667
|
-
manifest: "daad0da2a296084307769b59719dbe83e45755871438fad129b20421b111657b"
|
|
11668
|
-
},
|
|
11669
|
-
"linux-x64": {
|
|
11670
|
-
checksum: "39707ef599835ae2d9ce5aea026b7a96d43e51b4c4dcd2ca62d5fc11c520e871",
|
|
11671
|
-
manifest: "065405edd9b02a84ce01c09e68531834dbe190232e6387b056a481354c44fe81"
|
|
11672
|
-
},
|
|
11673
|
-
"linux-arm64": {
|
|
11674
|
-
checksum: "a91f2947d560b49b56334938d0efdcb22286557da63d65389129030b2a4e146d",
|
|
11675
|
-
manifest: "4dfbc167c96f30c7de19cc280948786fb79a888b666ca200b0788803902361ce"
|
|
11676
|
-
}
|
|
11677
|
-
}
|
|
13045
|
+
silentTypes = /* @__PURE__ */ new Set([
|
|
13046
|
+
"appiconset",
|
|
13047
|
+
"brandassets",
|
|
13048
|
+
"dataset",
|
|
13049
|
+
"iconset",
|
|
13050
|
+
"iconstack",
|
|
13051
|
+
"iconstackgroup",
|
|
13052
|
+
"launchimage",
|
|
13053
|
+
"stickerpack",
|
|
13054
|
+
"stickersiconset",
|
|
13055
|
+
"textureset"
|
|
13056
|
+
]);
|
|
13057
|
+
stackTypes = /* @__PURE__ */ new Set(["imagestack", "solidimagestack"]);
|
|
13058
|
+
unprovenTypes = /* @__PURE__ */ new Set([
|
|
13059
|
+
"arobject",
|
|
13060
|
+
"arreferenceimage",
|
|
13061
|
+
"arresourcegroup",
|
|
13062
|
+
"complicationset",
|
|
13063
|
+
"cubetextureset",
|
|
13064
|
+
"gcdashboardimage",
|
|
13065
|
+
"gcleaderboard",
|
|
13066
|
+
"gcleaderboardset",
|
|
13067
|
+
"glyphset",
|
|
13068
|
+
"iconbadgeset",
|
|
13069
|
+
"iconstacklayer",
|
|
13070
|
+
"imagestacklayer",
|
|
13071
|
+
"mipmapset",
|
|
13072
|
+
"modelset",
|
|
13073
|
+
"sidebariconset",
|
|
13074
|
+
"solidimagestacklayer",
|
|
13075
|
+
"sticker",
|
|
13076
|
+
"stickerframeset",
|
|
13077
|
+
"stickersequence"
|
|
13078
|
+
]);
|
|
13079
|
+
knownTypes = /* @__PURE__ */ new Set([
|
|
13080
|
+
"colorset",
|
|
13081
|
+
"imageset",
|
|
13082
|
+
"symbolset",
|
|
13083
|
+
"spriteatlas",
|
|
13084
|
+
...silentTypes,
|
|
13085
|
+
...stackTypes,
|
|
13086
|
+
...unprovenTypes
|
|
13087
|
+
]);
|
|
13088
|
+
compressionTypes = [
|
|
13089
|
+
"automatic",
|
|
13090
|
+
"lossless",
|
|
13091
|
+
"lossy",
|
|
13092
|
+
"gpu-optimized-best",
|
|
13093
|
+
"gpu-optimized-smallest"
|
|
13094
|
+
];
|
|
13095
|
+
renditionRules = {
|
|
13096
|
+
appearances: "objects",
|
|
13097
|
+
locale: "string",
|
|
13098
|
+
platform: "string",
|
|
13099
|
+
resizing: "object",
|
|
13100
|
+
"alignment-insets": "object",
|
|
13101
|
+
"compression-type": compressionTypes,
|
|
13102
|
+
"display-gamut": ["sRGB", "display-P3"],
|
|
13103
|
+
"minimum-system-version": "string",
|
|
13104
|
+
"matching-style": "string",
|
|
13105
|
+
"template-rendering-intent": "string",
|
|
13106
|
+
size: "string",
|
|
13107
|
+
role: "string",
|
|
13108
|
+
orientation: "string",
|
|
13109
|
+
extent: "string"
|
|
13110
|
+
};
|
|
13111
|
+
setRules = {
|
|
13112
|
+
localizable: "any",
|
|
13113
|
+
"auto-scaling": "string",
|
|
13114
|
+
"symbol-rendering-intent": "string",
|
|
13115
|
+
"provides-namespace": "any",
|
|
13116
|
+
"on-demand-resource-tags": "any",
|
|
13117
|
+
"template-rendering-intent": "string",
|
|
13118
|
+
"preserves-vector-representation": "any"
|
|
13119
|
+
};
|
|
13120
|
+
inclusionRules = {
|
|
13121
|
+
idiom: "any",
|
|
13122
|
+
subtype: "any",
|
|
13123
|
+
unassigned: "any"
|
|
13124
|
+
};
|
|
13125
|
+
rules = {
|
|
13126
|
+
// colors check none of the image traits
|
|
13127
|
+
colorset: {
|
|
13128
|
+
entry: {
|
|
13129
|
+
...renditionRules,
|
|
13130
|
+
...inclusionRules,
|
|
13131
|
+
color: "any",
|
|
13132
|
+
scale: "string",
|
|
13133
|
+
"language-direction": "string",
|
|
13134
|
+
"width-class": "string",
|
|
13135
|
+
"height-class": "string",
|
|
13136
|
+
memory: "string",
|
|
13137
|
+
"graphics-feature-set": "string",
|
|
13138
|
+
"screen-width": "string"
|
|
13139
|
+
},
|
|
13140
|
+
set: setRules
|
|
11678
13141
|
},
|
|
11679
|
-
|
|
11680
|
-
|
|
11681
|
-
|
|
11682
|
-
|
|
11683
|
-
"
|
|
11684
|
-
|
|
11685
|
-
|
|
11686
|
-
|
|
11687
|
-
"
|
|
11688
|
-
|
|
11689
|
-
|
|
11690
|
-
|
|
11691
|
-
|
|
11692
|
-
|
|
11693
|
-
|
|
11694
|
-
|
|
13142
|
+
imageset: {
|
|
13143
|
+
entry: {
|
|
13144
|
+
...renditionRules,
|
|
13145
|
+
...inclusionRules,
|
|
13146
|
+
filename: "any",
|
|
13147
|
+
scale: ["1x", "2x", "3x"],
|
|
13148
|
+
"language-direction": ["left-to-right", "right-to-left"],
|
|
13149
|
+
"width-class": ["compact", "regular", "unspecified"],
|
|
13150
|
+
"height-class": ["compact", "regular"],
|
|
13151
|
+
memory: ["1GB", "2GB", "3GB", "4GB", "6GB", "8GB", "12GB", "16GB"],
|
|
13152
|
+
"graphics-feature-set": [
|
|
13153
|
+
...Array.from({ length: 10 }, (_, i) => `apple${i + 1}`),
|
|
13154
|
+
"metal1v2",
|
|
13155
|
+
"metal2v2",
|
|
13156
|
+
"metal3v1",
|
|
13157
|
+
"metal3v2",
|
|
13158
|
+
"metal4v1"
|
|
13159
|
+
],
|
|
13160
|
+
"screen-width": "string"
|
|
13161
|
+
},
|
|
13162
|
+
// an image whose vector flag is not a boolean is dropped
|
|
13163
|
+
set: {
|
|
13164
|
+
...setRules,
|
|
13165
|
+
"preserves-vector-representation": "boolean",
|
|
13166
|
+
"compression-type": compressionTypes
|
|
11695
13167
|
}
|
|
11696
13168
|
},
|
|
11697
|
-
|
|
11698
|
-
|
|
11699
|
-
|
|
11700
|
-
|
|
11701
|
-
"
|
|
11702
|
-
|
|
11703
|
-
|
|
11704
|
-
},
|
|
11705
|
-
"linux-x64": {
|
|
11706
|
-
checksum: "ea63bbdecae14ff8e9e3f535b521fedc65d51b31521c5d10cc332cb91882d058",
|
|
11707
|
-
manifest: "b22b321ce3eb3fe044fa2122484a15c061f262c45d88a05b3fbace0a5bf038b6"
|
|
11708
|
-
},
|
|
11709
|
-
"linux-arm64": {
|
|
11710
|
-
checksum: "3eef4ed57830908515d8def2882e312f7cabeea57ccda5b2a7585401ef98cc48",
|
|
11711
|
-
manifest: "cfab342b8090fa83a697a391a7563cba14b771c24f07e1f8e19977f913ac88be"
|
|
11712
|
-
}
|
|
11713
|
-
}
|
|
13169
|
+
symbolset: {
|
|
13170
|
+
entry: {
|
|
13171
|
+
idiom: "any",
|
|
13172
|
+
filename: "any",
|
|
13173
|
+
"language-direction": ["left-to-right", "right-to-left"]
|
|
13174
|
+
},
|
|
13175
|
+
set: { "symbol-rendering-intent": "any", localizable: "boolean" }
|
|
11714
13176
|
}
|
|
11715
13177
|
};
|
|
11716
|
-
|
|
11717
|
-
|
|
11718
|
-
|
|
11719
|
-
|
|
11720
|
-
|
|
11721
|
-
|
|
11722
|
-
|
|
11723
|
-
|
|
11724
|
-
|
|
13178
|
+
swiftKeywords = new Set(
|
|
13179
|
+
"precedencegroup associatedtype fileprivate fallthrough extension typealias subscript continue internal Protocol protocol operator rethrows private default public static switch return throws repeat struct deinit import guard while where false catch break defer super class inout throw func Type case else true Self self enum init nil var for let Any try if in do as is _".split(
|
|
13180
|
+
" "
|
|
13181
|
+
)
|
|
13182
|
+
);
|
|
13183
|
+
nsColorConflicts = new Set(
|
|
13184
|
+
"unemphasizedSelectedContentBackgroundColor unemphasizedSelectedTextBackgroundColor controlAlternatingRowBackgroundColors alternatingContentBackgroundColors systemColorsDidChangeNotification alternateSelectedControlTextColor selectedContentBackgroundColor alternateSelectedControlColor secondarySelectedControlColor unemphasizedSelectedTextColor selectedTextBackgroundColor keyboardFocusIndicatorColor scrubberTexturedBackground controlLightHighlightColor selectedMenuItemTextColor underPageBackgroundColor disabledControlTextColor selectedControlTextColor controlBackgroundColor controlDarkShadowColor windowBackgroundColor selectedMenuItemColor controlHighlightColor quaternaryLabelColor selectedControlColor windowFrameTextColor placeholderTextColor textBackgroundColor secondaryLabelColor tertiaryLabelColor findHighlightColor controlAccentColor controlShadowColor currentControlTint selectedKnobColor selectedTextColor windowFrameColor controlTextColor headerTextColor scrollBarColor separatorColor highlightColor ignoresAlpha systemOrange systemPurple systemIndigo controlColor systemYellow systemGreen systemBrown headerColor shadowColor systemBlue systemPink systemTeal systemCyan labelColor systemMint systemGray systemRed knobColor gridColor linkColor textColor lightGray darkGray magenta orange purple yellow white black green brown clear blue cyan gray red".split(
|
|
13185
|
+
" "
|
|
13186
|
+
)
|
|
13187
|
+
);
|
|
13188
|
+
uiColorConflicts = new Set(
|
|
13189
|
+
"secondarySystemGroupedBackground tertiarySystemGroupedBackground secondarySystemBackground tertiarySystemBackground groupTableViewBackground systemGroupedBackground quaternarySystemFill smallSystemFontSize secondarySystemFill tertiarySystemFill systemBackground quaternaryLabel opaqueSeparator placeholderText systemFontSize buttonFontSize secondaryLabel labelFontSize tertiaryLabel systemOrange systemPurple systemIndigo systemYellow systemGray2 systemGray3 systemGray4 systemGray5 systemGray6 systemGreen systemBrown systemBlue systemPink systemTeal systemFill systemCyan systemMint systemGray systemRed tintColor separator lightText lightGray darkText darkGray magenta orange purple yellow white black label green brown clear blue link cyan gray red".split(
|
|
13190
|
+
" "
|
|
13191
|
+
)
|
|
13192
|
+
);
|
|
13193
|
+
colorConflicts = new Set(
|
|
13194
|
+
"transferRepresentation accentColor secondary primary orange purple indigo yellow white black green brown clear blue pink teal cyan mint gray red".split(
|
|
13195
|
+
" "
|
|
13196
|
+
)
|
|
13197
|
+
);
|
|
13198
|
+
nsImageConflicts = new Set(
|
|
13199
|
+
"touchBarAudioOutputVolumeMediumTemplateName touchBarAudioOutputVolumeHighTemplateName touchBarAudioOutputVolumeOffTemplateName touchBarAudioOutputVolumeLowTemplateName touchBarTextJustifiedAlignTemplateName touchBarCommunicationVideoTemplateName touchBarCommunicationAudioTemplateName touchBarSkipAhead30SecondsTemplateName touchBarSkipAhead15SecondsTemplateName touchBarTextStrikethroughTemplateName touchBarSkipBack30SecondsTemplateName touchBarSkipBack15SecondsTemplateName stopProgressFreestandingTemplateName touchBarAudioOutputMuteTemplateName invalidDataFreestandingTemplateName touchBarEnterFullScreenTemplateName touchBarTextCenterAlignTemplateName touchBarAudioInputMuteTemplateName followLinkFreestandingTemplateName touchBarExitFullScreenTemplateName touchBarTextRightAlignTemplateName touchBarTextUnderlineTemplateName touchBarTextLeftAlignTemplateName touchBarOpenInBrowserTemplateName touchBarFolderMoveToTemplateName touchBarFolderCopyToTemplateName touchBarFastForwardTemplateName rightFacingTriangleTemplateName refreshFreestandingTemplateName touchBarRotateRightTemplateName touchBarRecordStartTemplateName touchBarSkipToStartTemplateName touchBarTextItalicTemplateName touchBarNewMessageTemplateName leftFacingTriangleTemplateName revealFreestandingTemplateName touchBarVolumeDownTemplateName touchBarRecordStopTemplateName touchBarRotateLeftTemplateName touchBarAudioInputTemplateName touchBarColorPickerStrokeName touchBarSkipAheadTemplateName touchBarSkipToEndTemplateName touchBarGoForwardTemplateName touchBarPlayPauseTemplateName touchBarQuickLookTemplateName touchBarAddDetailTemplateName touchBarUserGroupTemplateName touchBarNewFolderTemplateName touchBarBookmarksTemplateName touchBarSlideshowTemplateName statusPartiallyAvailableName touchBarPlayheadTemplateName touchBarDownloadTemplateName touchBarTextBoldTemplateName touchBarSkipBackTemplateName touchBarVolumeUpTemplateName touchBarTextListTemplateName touchBarIconViewTemplateName touchBarListViewTemplateName touchBarUserAddTemplateName touchBarComposeTemplateName touchBarRefreshTemplateName enterFullScreenTemplateName touchBarTagIconTemplateName touchBarGetInfoTemplateName touchBarSidebarTemplateName touchBarTextBoxTemplateName touchBarHistoryTemplateName touchBarColorPickerFillName touchBarColorPickerFontName touchBarRewindTemplateName menuMixedStateTemplateName touchBarDeleteTemplateName touchBarRemoveTemplateName touchBarSearchTemplateName touchBarGoBackTemplateName exitFullScreenTemplateName touchBarGoDownTemplateName touchBarFolderTemplateName touchBarShareTemplateName touchBarPauseTemplateName touchBarAlarmTemplateName lockUnlockedTemplateName touchBarMailTemplateName touchBarGoUpTemplateName touchBarUserTemplateName iChatTheaterTemplateName stopProgressTemplateName touchBarPlayTemplateName touchBarAddTemplateName menuOnStateTemplateName lockLockedTemplateName smartBadgeTemplateName columnViewTemplateName preferencesGeneralName statusUnavailableName goForwardTemplateName bluetoothTemplateName quickLookTemplateName bookmarksTemplateName slideshowTemplateName multipleDocumentsName iconViewTemplateName listViewTemplateName flowViewTemplateName imageUnfilteredTypes statusAvailableName refreshTemplateName goRightTemplateName applicationIconName folderBurnableName removeTemplateName goBackTemplateName actionTemplateName goLeftTemplateName shareTemplateName homeTemplateName pathTemplateName userAccountsName addTemplateName folderSmartName statusNoneName colorPanelName trashEmptyName fontPanelName trashFullName userGroupName userGuestName advancedName mobileMeName everyoneName computerName networkName cautionName bonjourName folderName imageTypes infoName userName".split(
|
|
13200
|
+
" "
|
|
13201
|
+
)
|
|
13202
|
+
);
|
|
11725
13203
|
}
|
|
11726
13204
|
});
|
|
11727
13205
|
|
|
11728
|
-
// src/swift-
|
|
11729
|
-
var
|
|
11730
|
-
|
|
13206
|
+
// src/swift-coverage/xcode-assets.ts
|
|
13207
|
+
var unprovenAssetSettings, assetSymbolSettingKeys;
|
|
13208
|
+
var init_xcode_assets = __esm({
|
|
13209
|
+
"src/swift-coverage/xcode-assets.ts"() {
|
|
11731
13210
|
"use strict";
|
|
13211
|
+
init_provenance();
|
|
13212
|
+
init_xcode_asset_symbols();
|
|
13213
|
+
unprovenAssetSettings = [
|
|
13214
|
+
"ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_FRAMEWORKS",
|
|
13215
|
+
"ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_WARNINGS",
|
|
13216
|
+
"ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_ERRORS",
|
|
13217
|
+
"ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_BACKWARDS_DEPLOYMENT_SUPPORT",
|
|
13218
|
+
"ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOLS_PATH",
|
|
13219
|
+
"ASSETCATALOG_COMPILER_GENERATE_OBJC_ASSET_SYMBOLS_PATH",
|
|
13220
|
+
"ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_INDEX_PATH",
|
|
13221
|
+
"ASSETCATALOG_COMPILER_BUNDLE_IDENTIFIER",
|
|
13222
|
+
"ASSETCATALOG_COMPILER_LIGHTWEIGHT_ASSET_RUNTIME_MODE"
|
|
13223
|
+
];
|
|
13224
|
+
assetSymbolSettingKeys = [
|
|
13225
|
+
"ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOLS",
|
|
13226
|
+
"ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS",
|
|
13227
|
+
"PRODUCT_BUNDLE_IDENTIFIER",
|
|
13228
|
+
"TARGETED_DEVICE_FAMILY",
|
|
13229
|
+
...unprovenAssetSettings,
|
|
13230
|
+
"ASSETCATALOG_OTHER_FLAGS"
|
|
13231
|
+
];
|
|
11732
13232
|
}
|
|
11733
13233
|
});
|
|
11734
13234
|
|
|
11735
|
-
//
|
|
11736
|
-
var
|
|
11737
|
-
"
|
|
13235
|
+
// cli/cli-release-origin.ts
|
|
13236
|
+
var init_cli_release_origin = __esm({
|
|
13237
|
+
"cli/cli-release-origin.ts"() {
|
|
11738
13238
|
"use strict";
|
|
11739
13239
|
}
|
|
11740
13240
|
});
|
|
11741
13241
|
|
|
11742
|
-
//
|
|
11743
|
-
var
|
|
11744
|
-
"
|
|
13242
|
+
// cli/drivers/linux-browser-libs.ts
|
|
13243
|
+
var init_linux_browser_libs = __esm({
|
|
13244
|
+
"cli/drivers/linux-browser-libs.ts"() {
|
|
11745
13245
|
"use strict";
|
|
11746
|
-
|
|
13246
|
+
init_src();
|
|
13247
|
+
init_home_paths();
|
|
13248
|
+
init_is_record();
|
|
13249
|
+
init_cli_release_origin();
|
|
11747
13250
|
}
|
|
11748
13251
|
});
|
|
11749
13252
|
|
|
11750
|
-
// src/
|
|
11751
|
-
var
|
|
11752
|
-
"src/
|
|
13253
|
+
// src/process-liveness.ts
|
|
13254
|
+
var init_process_liveness = __esm({
|
|
13255
|
+
"src/process-liveness.ts"() {
|
|
11753
13256
|
"use strict";
|
|
11754
13257
|
}
|
|
11755
13258
|
});
|
|
11756
13259
|
|
|
11757
|
-
// src/
|
|
11758
|
-
var
|
|
11759
|
-
|
|
11760
|
-
"src/swift-objc-sdk.ts"() {
|
|
13260
|
+
// src/retired-cache-directory.ts
|
|
13261
|
+
var init_retired_cache_directory = __esm({
|
|
13262
|
+
"src/retired-cache-directory.ts"() {
|
|
11761
13263
|
"use strict";
|
|
11762
|
-
|
|
11763
|
-
init_swift_toolchain();
|
|
11764
|
-
IOS_SDK_TARGET = "arm64-apple-ios16.0-simulator";
|
|
13264
|
+
init_process_liveness();
|
|
11765
13265
|
}
|
|
11766
13266
|
});
|
|
11767
13267
|
|
|
11768
|
-
// src/swift-
|
|
11769
|
-
var
|
|
11770
|
-
"src/swift-
|
|
13268
|
+
// src/swift-compile-budget.ts
|
|
13269
|
+
var init_swift_compile_budget = __esm({
|
|
13270
|
+
"src/swift-compile-budget.ts"() {
|
|
11771
13271
|
"use strict";
|
|
11772
13272
|
}
|
|
11773
13273
|
});
|
|
11774
13274
|
|
|
11775
|
-
// src/swift-objc-
|
|
11776
|
-
var
|
|
11777
|
-
|
|
11778
|
-
"src/swift-objc-standin.ts"() {
|
|
13275
|
+
// src/swift-objc-runtime.ts
|
|
13276
|
+
var init_swift_objc_runtime = __esm({
|
|
13277
|
+
"src/swift-objc-runtime.ts"() {
|
|
11779
13278
|
"use strict";
|
|
11780
|
-
import_node_crypto10 = require("node:crypto");
|
|
11781
|
-
init_case_insensitive_header_overlay();
|
|
11782
|
-
init_is_record();
|
|
11783
|
-
init_swift_interface_bodies();
|
|
11784
|
-
init_swift_objc_platform();
|
|
11785
|
-
init_swift_objc_sdk();
|
|
11786
|
-
init_swift_package();
|
|
11787
|
-
init_swift_standin_emit();
|
|
11788
|
-
init_swift_toolchain();
|
|
11789
|
-
NATIVE_GRAPH_SDK_VERSION = "27.1";
|
|
11790
|
-
WASI_EMULATION = [
|
|
11791
|
-
"_WASI_EMULATED_SIGNAL",
|
|
11792
|
-
"_WASI_EMULATED_MMAN",
|
|
11793
|
-
"_WASI_EMULATED_PROCESS_CLOCKS"
|
|
11794
|
-
];
|
|
11795
|
-
WASI_EMULATION_FLAGS = WASI_EMULATION.map((name2) => `-D${name2}`);
|
|
11796
|
-
NATIVE_GRAPH_INPUTS = {
|
|
11797
|
-
sdk: NATIVE_GRAPH_SDK_VERSION,
|
|
11798
|
-
settings: "e68503e5e534e9194af5efe8c636ca8b824e2d8237c5f38ec84aa4d155bc8418",
|
|
11799
|
-
build: "ff785237ba22f1d8f347a5c4f4c68400a387c6d935ef3a443545a72faef57e70",
|
|
11800
|
-
compiler: "Apple Swift version 6.4 (swiftlang-6.4.0.34.1 clang-2100.3.34.1)",
|
|
11801
|
-
target: IOS_SDK_TARGET
|
|
11802
|
-
};
|
|
11803
|
-
NATIVE_GRAPH_ID = (0, import_node_crypto10.createHash)("sha256").update(JSON.stringify(NATIVE_GRAPH_INPUTS)).digest("hex");
|
|
11804
13279
|
}
|
|
11805
13280
|
});
|
|
11806
13281
|
|
|
@@ -12189,6 +13664,34 @@ var init_swift_guest_source_inputs = __esm({
|
|
|
12189
13664
|
}
|
|
12190
13665
|
});
|
|
12191
13666
|
|
|
13667
|
+
// src/binaryen.lock.json
|
|
13668
|
+
var binaryen_lock_default;
|
|
13669
|
+
var init_binaryen_lock = __esm({
|
|
13670
|
+
"src/binaryen.lock.json"() {
|
|
13671
|
+
binaryen_lock_default = {
|
|
13672
|
+
version: "132",
|
|
13673
|
+
licenseSha256: "64c0d02491e16eced74826440ecd2bcf7722d37fa586faf457b2494293afbffe",
|
|
13674
|
+
platforms: {
|
|
13675
|
+
"linux-x64": {
|
|
13676
|
+
asset: "x86_64-linux",
|
|
13677
|
+
upstreamSha256: "195ddc94f9bc89f45abdabb0b9eea86023d727ba90eac8b35b80f2544fc30572",
|
|
13678
|
+
sha256: "0396b1a540e9f97f30eb6a378d829305c218c821a0bd88c74e83d3d6923dad0b"
|
|
13679
|
+
},
|
|
13680
|
+
"linux-arm64": {
|
|
13681
|
+
asset: "aarch64-linux",
|
|
13682
|
+
upstreamSha256: "c58562417836c5d0493d89bdefc434933bdc097db641b483df86bcfa557a107f",
|
|
13683
|
+
sha256: "25e3747f19614b0281a28b9a909ddc602b546ccdfacebc8cae2f7165665328fa"
|
|
13684
|
+
},
|
|
13685
|
+
"darwin-arm64": {
|
|
13686
|
+
asset: "arm64-macos",
|
|
13687
|
+
upstreamSha256: "98aad827847af7ef990ed7098d885725c8e5b5aae75073403635617ae4e259aa",
|
|
13688
|
+
sha256: "34281566fe32df71337aaf0b60aa265dc853587d92bda0b5b1fac8aed8c2f8ab"
|
|
13689
|
+
}
|
|
13690
|
+
}
|
|
13691
|
+
};
|
|
13692
|
+
}
|
|
13693
|
+
});
|
|
13694
|
+
|
|
12192
13695
|
// src/wasm-narrow-boundary.ts
|
|
12193
13696
|
var init_wasm_narrow_boundary = __esm({
|
|
12194
13697
|
"src/wasm-narrow-boundary.ts"() {
|
|
@@ -12197,7 +13700,7 @@ var init_wasm_narrow_boundary = __esm({
|
|
|
12197
13700
|
});
|
|
12198
13701
|
|
|
12199
13702
|
// src/wasm-optimize.ts
|
|
12200
|
-
var import_node_child_process10, import_node_util3, FEATURES, KEEP_WASM_NAMES, LOWERING, BINARYEN_VERSION, runBinaryen, WASM_LOWER_IDENTITY;
|
|
13703
|
+
var import_node_child_process10, import_node_util3, FEATURES, KEEP_WASM_NAMES, LOWERING, BINARYEN_VERSION, runBinaryen, WASM_LOWER_IDENTITY, BINARYEN_RELEASES;
|
|
12201
13704
|
var init_wasm_optimize = __esm({
|
|
12202
13705
|
"src/wasm-optimize.ts"() {
|
|
12203
13706
|
"use strict";
|
|
@@ -12205,6 +13708,7 @@ var init_wasm_optimize = __esm({
|
|
|
12205
13708
|
import_node_util3 = require("node:util");
|
|
12206
13709
|
init_src();
|
|
12207
13710
|
init_admitted_mac_build();
|
|
13711
|
+
init_binaryen_lock();
|
|
12208
13712
|
init_home_paths();
|
|
12209
13713
|
init_wasm_narrow_boundary();
|
|
12210
13714
|
FEATURES = [
|
|
@@ -12222,9 +13726,10 @@ var init_wasm_optimize = __esm({
|
|
|
12222
13726
|
];
|
|
12223
13727
|
KEEP_WASM_NAMES = process.env.PEACH_SWIFT_NAMES === "1";
|
|
12224
13728
|
LOWERING = ["--memory64-lowering", "--table64-lowering"];
|
|
12225
|
-
BINARYEN_VERSION =
|
|
13729
|
+
BINARYEN_VERSION = binaryen_lock_default.version;
|
|
12226
13730
|
runBinaryen = (0, import_node_util3.promisify)(import_node_child_process10.execFile);
|
|
12227
13731
|
WASM_LOWER_IDENTITY = `binaryen ${BINARYEN_VERSION} narrow ${LOWERING.join(" ")} ${FEATURES.join(",")} unoptimized-names`;
|
|
13732
|
+
BINARYEN_RELEASES = new Map(Object.entries(binaryen_lock_default.platforms));
|
|
12228
13733
|
}
|
|
12229
13734
|
});
|
|
12230
13735
|
|
|
@@ -12444,7 +13949,7 @@ var init_swift_compile = __esm({
|
|
|
12444
13949
|
FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
|
|
12445
13950
|
(module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
|
|
12446
13951
|
).join("");
|
|
12447
|
-
compilerSourceDigest = true ? "
|
|
13952
|
+
compilerSourceDigest = true ? "558e865561d0b74b1a3016abec937fd19f725375fe7e014dc1f140a17a31bc68" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
12448
13953
|
C_WORDS = new Set(
|
|
12449
13954
|
"auto bool break case char const continue default do double else enum extern false float for goto if inline int long register restrict return short signed sizeof static struct switch true typedef union unsigned void volatile while YES NO NULL nil Nil id self super instancetype".split(
|
|
12450
13955
|
" "
|
|
@@ -14434,7 +15939,11 @@ function readXcodeAppTarget(input, targetName2, configurationName, options = {})
|
|
|
14434
15939
|
DEVELOPMENT_LANGUAGE: str2(ref.project.project.developmentRegion) ?? "en"
|
|
14435
15940
|
},
|
|
14436
15941
|
options,
|
|
14437
|
-
ref === app && options.frameworkMachOType ? {
|
|
15942
|
+
ref === app && options.frameworkMachOType ? {
|
|
15943
|
+
...workspaceBuild,
|
|
15944
|
+
...options.frameworkBuildSettings,
|
|
15945
|
+
MACH_O_TYPE: options.frameworkMachOType
|
|
15946
|
+
} : workspaceBuild
|
|
14438
15947
|
);
|
|
14439
15948
|
for (const file of read) xcconfigs.add(file);
|
|
14440
15949
|
const swiftVersion = Number.parseFloat(settings2("SWIFT_VERSION") || "5");
|
|
@@ -15956,7 +17465,7 @@ var init_react_native_core = __esm({
|
|
|
15956
17465
|
init_swift_distribution();
|
|
15957
17466
|
init_swift_package();
|
|
15958
17467
|
init_swiftContract();
|
|
15959
|
-
recipe = true ? "
|
|
17468
|
+
recipe = true ? "ebfb6e514f6a2873b73852f067f1db2c2033490a337d8a2f95a46a922e095bf5" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
|
|
15960
17469
|
}
|
|
15961
17470
|
});
|
|
15962
17471
|
|
|
@@ -16099,6 +17608,14 @@ var init_swift_host = __esm({
|
|
|
16099
17608
|
}
|
|
16100
17609
|
});
|
|
16101
17610
|
|
|
17611
|
+
// src/cocoapods-trunk.ts
|
|
17612
|
+
var init_cocoapods_trunk = __esm({
|
|
17613
|
+
"src/cocoapods-trunk.ts"() {
|
|
17614
|
+
"use strict";
|
|
17615
|
+
init_home_paths();
|
|
17616
|
+
}
|
|
17617
|
+
});
|
|
17618
|
+
|
|
16102
17619
|
// src/installed-native-libraries.ts
|
|
16103
17620
|
var init_installed_native_libraries = __esm({
|
|
16104
17621
|
"src/installed-native-libraries.ts"() {
|
|
@@ -16133,6 +17650,7 @@ var init_turbo_source = __esm({
|
|
|
16133
17650
|
"use strict";
|
|
16134
17651
|
import_node_child_process17 = require("node:child_process");
|
|
16135
17652
|
import_node_util8 = require("node:util");
|
|
17653
|
+
init_cocoapods_trunk();
|
|
16136
17654
|
init_home_paths();
|
|
16137
17655
|
init_installed_native_libraries();
|
|
16138
17656
|
init_answeredNativePackages();
|
|
@@ -22108,9 +23626,9 @@ init_config();
|
|
|
22108
23626
|
|
|
22109
23627
|
// src/dev-server-open.ts
|
|
22110
23628
|
var import_node_child_process8 = require("node:child_process");
|
|
22111
|
-
var
|
|
23629
|
+
var import_node_crypto8 = require("node:crypto");
|
|
22112
23630
|
var import_node_fs19 = __toESM(require("node:fs"), 1);
|
|
22113
|
-
var
|
|
23631
|
+
var import_node_path19 = __toESM(require("node:path"), 1);
|
|
22114
23632
|
function resolveRnxDesktopAppName(open, projectRoot) {
|
|
22115
23633
|
if (!open) return null;
|
|
22116
23634
|
if (typeof open === "object") {
|
|
@@ -22118,7 +23636,7 @@ function resolveRnxDesktopAppName(open, projectRoot) {
|
|
|
22118
23636
|
if (!appName) throw new Error("peach: open.appName must not be empty");
|
|
22119
23637
|
return appName;
|
|
22120
23638
|
}
|
|
22121
|
-
const packageJsonPath =
|
|
23639
|
+
const packageJsonPath = import_node_path19.default.join(projectRoot, "package.json");
|
|
22122
23640
|
const packageJson = JSON.parse(import_node_fs19.default.readFileSync(packageJsonPath, "utf8"));
|
|
22123
23641
|
const packageName = packageJson && typeof packageJson === "object" ? Reflect.get(packageJson, "name") : void 0;
|
|
22124
23642
|
if (typeof packageName !== "string" || !packageName.trim()) {
|
|
@@ -22133,7 +23651,7 @@ function tagRnxBundleForPlugin(bundleUrl, replacementOrigin, replacementToken, p
|
|
|
22133
23651
|
url.searchParams.set("rnxAppName", appName);
|
|
22134
23652
|
url.searchParams.set(
|
|
22135
23653
|
"rnxProjectId",
|
|
22136
|
-
(0,
|
|
23654
|
+
(0, import_node_crypto8.createHash)("sha256").update(import_node_fs19.default.realpathSync(projectRoot)).digest("hex").slice(0, 32)
|
|
22137
23655
|
);
|
|
22138
23656
|
}
|
|
22139
23657
|
url.searchParams.set("rnxReplacementOrigin", replacementOrigin);
|
|
@@ -28660,34 +30178,7 @@ function insertNativeFirebaseFooter(source, config) {
|
|
|
28660
30178
|
init_plist();
|
|
28661
30179
|
init_runtime_assets();
|
|
28662
30180
|
init_runtime_packs();
|
|
28663
|
-
|
|
28664
|
-
// src/runtimePlatformContract.ts
|
|
28665
|
-
var IOS_ADAPTER = Object.freeze({
|
|
28666
|
-
id: "ios",
|
|
28667
|
-
displayName: "iOS",
|
|
28668
|
-
isIOS: true,
|
|
28669
|
-
isAndroid: false,
|
|
28670
|
-
select: (registry) => registry.ios
|
|
28671
|
-
});
|
|
28672
|
-
var ANDROID_ADAPTER = Object.freeze({
|
|
28673
|
-
id: "android",
|
|
28674
|
-
displayName: "Android",
|
|
28675
|
-
isIOS: false,
|
|
28676
|
-
isAndroid: true,
|
|
28677
|
-
select: (registry) => registry.android
|
|
28678
|
-
});
|
|
28679
|
-
var RUNTIME_PLATFORM_ADAPTERS = Object.freeze({
|
|
28680
|
-
ios: IOS_ADAPTER,
|
|
28681
|
-
android: ANDROID_ADAPTER
|
|
28682
|
-
});
|
|
28683
|
-
function isRuntimePlatform(value) {
|
|
28684
|
-
return value === "ios" || value === "android";
|
|
28685
|
-
}
|
|
28686
|
-
function getRuntimePlatformAdapter(platform) {
|
|
28687
|
-
return RUNTIME_PLATFORM_ADAPTERS[platform];
|
|
28688
|
-
}
|
|
28689
|
-
|
|
28690
|
-
// src/metro-plugin.ts
|
|
30181
|
+
init_runtimePlatformContract();
|
|
28691
30182
|
var prefix = "/__peachsim";
|
|
28692
30183
|
function isMetroSerializerArtifacts(value) {
|
|
28693
30184
|
return typeof value === "object" && value !== null && "artifacts" in value && Array.isArray(value.artifacts) && value.artifacts.every(
|