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/metro.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;
|
|
@@ -1892,7 +1892,7 @@ var STANDIN_SOURCE_DIGEST;
|
|
|
1892
1892
|
var init_swift_standin_digest = __esm({
|
|
1893
1893
|
"src/swift-standin-digest.ts"() {
|
|
1894
1894
|
"use strict";
|
|
1895
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
1895
|
+
STANDIN_SOURCE_DIGEST = true ? "04ba039a95b639d89097dcef7220bd64a4c48578e05e150dafb66cf9195294a2" : standinSourceDigest();
|
|
1896
1896
|
}
|
|
1897
1897
|
});
|
|
1898
1898
|
|
|
@@ -8522,7 +8522,7 @@ var swiftCoverageProvenance;
|
|
|
8522
8522
|
var init_provenance = __esm({
|
|
8523
8523
|
"src/swift-coverage/provenance.ts"() {
|
|
8524
8524
|
"use strict";
|
|
8525
|
-
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":"
|
|
8525
|
+
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, ".."));
|
|
8526
8526
|
}
|
|
8527
8527
|
});
|
|
8528
8528
|
|
|
@@ -8805,24 +8805,6 @@ var init_swift_toolchain = __esm({
|
|
|
8805
8805
|
}
|
|
8806
8806
|
}
|
|
8807
8807
|
},
|
|
8808
|
-
"swift-6.4.0-RELEASE-custom-44ecd25f163bb359": {
|
|
8809
|
-
identity: "44ecd25f163bb359",
|
|
8810
|
-
archive: "tar.zst",
|
|
8811
|
-
hosts: {
|
|
8812
|
-
"darwin-arm64": {
|
|
8813
|
-
checksum: "d06dda4435f99d8376179cc7a3804907aa7305513135ece6288fd8e6d4695ae6",
|
|
8814
|
-
manifest: "bc0d8b955f923f096dda2aa8bbb1d56176a73f3d4a4df4cc9a1f59d31417061a"
|
|
8815
|
-
},
|
|
8816
|
-
"linux-x64": {
|
|
8817
|
-
checksum: "f95b56440693c5de7995f10ea14c57fc7e659a161018a17f17a74b61a98e88a4",
|
|
8818
|
-
manifest: "c18a60b14d5c89a8b2e1dbb2b4b52342c5fb92c7f3069fdc55c985bce61683a7"
|
|
8819
|
-
},
|
|
8820
|
-
"linux-arm64": {
|
|
8821
|
-
checksum: "afb74ae60df2b5bd7792bfbcf29bcea03675a5c814b758dd6cb91a760c220cd2",
|
|
8822
|
-
manifest: "ac037f6b0fdc4a6ae582eebc22bcf811fa2becdc30d083057137fc857f3c456a"
|
|
8823
|
-
}
|
|
8824
|
-
}
|
|
8825
|
-
},
|
|
8826
8808
|
"swift-6.4.0-RELEASE-custom-11345d60dca47496": {
|
|
8827
8809
|
identity: "11345d60dca47496",
|
|
8828
8810
|
archive: "tar.zst",
|
|
@@ -8841,186 +8823,6 @@ var init_swift_toolchain = __esm({
|
|
|
8841
8823
|
}
|
|
8842
8824
|
}
|
|
8843
8825
|
},
|
|
8844
|
-
"swift-6.4.0-RELEASE-custom-45bb46301c86fe73": {
|
|
8845
|
-
identity: "45bb46301c86fe73",
|
|
8846
|
-
archive: "tar.gz",
|
|
8847
|
-
hosts: {
|
|
8848
|
-
"darwin-arm64": {
|
|
8849
|
-
checksum: "102dfbbb7b451be0685763b7a427284b75a8078874543f091b1c4b3db86e6565",
|
|
8850
|
-
manifest: "fb6c4d75ef6f4b3c094ae5a4d5d1e6bdfd85431f3fe25d514f3e7a0b4add60ef"
|
|
8851
|
-
},
|
|
8852
|
-
"linux-x64": {
|
|
8853
|
-
checksum: "d3c040e042e12ff787b64bfde1d85238254365036ce093f3b20ff86e8ff996f0",
|
|
8854
|
-
manifest: "7c7144be591692e563396fe3c987c5aa56fbaea4faacaad62283c0c6e5c04ae2"
|
|
8855
|
-
},
|
|
8856
|
-
"linux-arm64": {
|
|
8857
|
-
checksum: "604e6fc5fc0f5a93cee3ca6dfa9616244a2a49ef517caa3155a12ae4a0ecf72b",
|
|
8858
|
-
manifest: "075fd53d03ecf099954f1d023bb4bb67a5c5ee946537466d6c105022bdf8ecde"
|
|
8859
|
-
}
|
|
8860
|
-
}
|
|
8861
|
-
},
|
|
8862
|
-
"swift-6.4.0-RELEASE-custom-0b2d0a9011c88e66": {
|
|
8863
|
-
identity: "0b2d0a9011c88e66",
|
|
8864
|
-
archive: "tar.gz",
|
|
8865
|
-
hosts: {
|
|
8866
|
-
"darwin-arm64": {
|
|
8867
|
-
checksum: "dc6a494227297ea657e8e5f7c5b4a861cb5e142bdbcfcb028ace2aeb19db90cc",
|
|
8868
|
-
manifest: "d8e9eee0fb9b847f1e9350525d6c68606df46101745f553332309ed026b3c26a"
|
|
8869
|
-
},
|
|
8870
|
-
"linux-x64": {
|
|
8871
|
-
checksum: "85c04b4496aea1657c21a47f448e01d6ccc1c7920d130a566db37fb8350a7be2",
|
|
8872
|
-
manifest: "8451659e74235ad53b700c1afbe293512197900eb98cb1f79e36df2f5c85d511"
|
|
8873
|
-
},
|
|
8874
|
-
"linux-arm64": {
|
|
8875
|
-
checksum: "196606ed62c5c926d18e6ef0769cb1ab21c9943f9084070ddf14a7bc696768b8",
|
|
8876
|
-
manifest: "85fb8d5b6527bd75003a6dbd25b68b22540665cf9df9b13f41f82e5d8acdbf1d"
|
|
8877
|
-
}
|
|
8878
|
-
}
|
|
8879
|
-
},
|
|
8880
|
-
"swift-6.4.0-RELEASE-custom-f7c03c3f59ec5d83": {
|
|
8881
|
-
identity: "f7c03c3f59ec5d83",
|
|
8882
|
-
archive: "tar.gz",
|
|
8883
|
-
hosts: {
|
|
8884
|
-
"darwin-arm64": {
|
|
8885
|
-
checksum: "8946a2d4716d3b0784cef7a85a35f66537bd319c4c5a48c63457d607260df5c5",
|
|
8886
|
-
manifest: "2a7754e6e365bf71ae6b6aefbbd810123795c73d43fb902a8a972d009d72790f"
|
|
8887
|
-
},
|
|
8888
|
-
"linux-x64": {
|
|
8889
|
-
checksum: "5ffa3b54d54583c1d6a38b708693072db4d088ba4bf5966b17014c068b2db641",
|
|
8890
|
-
manifest: "1b23ea52c5570de4697481a54bd0b0a0bcd6b54feccb7b0bb940d3643dec82cb"
|
|
8891
|
-
},
|
|
8892
|
-
"linux-arm64": {
|
|
8893
|
-
checksum: "29b0b97b7b0db4475dbe55f7011e57f493fed9f3482a6705becebd8b68c90bab",
|
|
8894
|
-
manifest: "3fdab1132715f5899de1bb1d7ddcd52cf540295ab86586c72f49502f37a403a1"
|
|
8895
|
-
}
|
|
8896
|
-
}
|
|
8897
|
-
},
|
|
8898
|
-
"swift-6.4.0-RELEASE-custom-3e3dca8fd1d82975": {
|
|
8899
|
-
identity: "3e3dca8fd1d82975",
|
|
8900
|
-
archive: "tar.gz",
|
|
8901
|
-
hosts: {
|
|
8902
|
-
"darwin-arm64": {
|
|
8903
|
-
checksum: "dfad56454f5e1e465071ff708bf485be65b438cf55d02b04d26d17d26df9f54a",
|
|
8904
|
-
manifest: "82c35e43ed81101bea500100356a555d8266e1987d5ca7605aaa4df747c38f81"
|
|
8905
|
-
},
|
|
8906
|
-
"linux-x64": {
|
|
8907
|
-
checksum: "d3f5908d097fdc1337ff979114e605bcc758052e32f9d5d760574153d58ce6db",
|
|
8908
|
-
manifest: "a03caf181177f3d68a45b5246d0f0a26d8a5fa9ff33cf44c44e6942b73363bae"
|
|
8909
|
-
},
|
|
8910
|
-
"linux-arm64": {
|
|
8911
|
-
checksum: "8fceafca152dd0692aa6bb51236fc362a4caeeef37fc22cb5ef6aa3d0d5b3df3",
|
|
8912
|
-
manifest: "3115bc496fd8e907a16992dfc5c85b3e0798d3b58ddf1d6dace63842aed8e53b"
|
|
8913
|
-
}
|
|
8914
|
-
}
|
|
8915
|
-
},
|
|
8916
|
-
"swift-6.4.0-RELEASE-custom-b082ac5437336790": {
|
|
8917
|
-
identity: "b082ac5437336790",
|
|
8918
|
-
archive: "tar.gz",
|
|
8919
|
-
hosts: {
|
|
8920
|
-
"darwin-arm64": {
|
|
8921
|
-
checksum: "85e601982321d3a6f81f05928bc9bbe7a61bc75b27ce24508e79f6b5b537254d",
|
|
8922
|
-
manifest: "c889a70c6bba48eb0e5e218a5c0077eb557082fed5c5c58d10f07a941975080e"
|
|
8923
|
-
},
|
|
8924
|
-
"linux-x64": {
|
|
8925
|
-
checksum: "54c7988622d201e4ba6c83ca75e7b28c658b39cf1ea8b95ea88807afe33aa465",
|
|
8926
|
-
manifest: "bfd725c3b07a3624bb44c8e3a1b7ddf1eddde4fc9565e23740a9cee832c94583"
|
|
8927
|
-
},
|
|
8928
|
-
"linux-arm64": {
|
|
8929
|
-
checksum: "bd729fd73dc9953306eafd87eda79462b836b3cb127c73108327d7256b15f501",
|
|
8930
|
-
manifest: "e7f8827cca0f249a5b4a4750f6324f75633b374985fa0b93e650ee8bfcabeb39"
|
|
8931
|
-
}
|
|
8932
|
-
}
|
|
8933
|
-
},
|
|
8934
|
-
"swift-6.4.0-RELEASE-custom-9cdaffdb6b37fb47": {
|
|
8935
|
-
identity: "9cdaffdb6b37fb47",
|
|
8936
|
-
archive: "tar.gz",
|
|
8937
|
-
hosts: {
|
|
8938
|
-
"darwin-arm64": {
|
|
8939
|
-
checksum: "fdd3f88cf76a8dc2083275d4253255030068a25b5ba68acbf59e0407c45677dd",
|
|
8940
|
-
manifest: "f50c68faf91f7d2a6ea5bcd4da4573a49dd00ad9f334b27d3f9ddb08b65e46cc"
|
|
8941
|
-
},
|
|
8942
|
-
"linux-x64": {
|
|
8943
|
-
checksum: "f29f9efc598b17f33d802467676ba282441a8c3c6fa67e307c4a1e6130509d73",
|
|
8944
|
-
manifest: "f907727c5a4af58ccad7ccbb043a21289d7eb37d166536a90b3c3848f95df816"
|
|
8945
|
-
},
|
|
8946
|
-
"linux-arm64": {
|
|
8947
|
-
checksum: "7d4a8a1f90dd6c86804ceb43f8b9cf680b9778d4640a2eb6da5cb333a599f23a",
|
|
8948
|
-
manifest: "a3224cd5c09a92f66cacd0395058b2c43fa103a92bb168280132bbd0febd1575"
|
|
8949
|
-
}
|
|
8950
|
-
}
|
|
8951
|
-
},
|
|
8952
|
-
"swift-6.4.0-RELEASE-custom-bd49e2f77434e7b1": {
|
|
8953
|
-
identity: "bd49e2f77434e7b1",
|
|
8954
|
-
archive: "tar.gz",
|
|
8955
|
-
hosts: {
|
|
8956
|
-
"darwin-arm64": {
|
|
8957
|
-
checksum: "e815b06394566e8125475afc8f1807f7f465318c845549c5831043cdc28eca64",
|
|
8958
|
-
manifest: "6e3ae00102c67f2f9761b1462aab63580f2ca010469300a7c4a620765573e4e0"
|
|
8959
|
-
},
|
|
8960
|
-
"linux-x64": {
|
|
8961
|
-
checksum: "9336e0b0aefaa0171799d4b5d4215c711a24c79ac9e91baa362ba100fc22534f",
|
|
8962
|
-
manifest: "3802c631f593eda1d79dc4af55a8667356eece954d2ea59b62b1f8f981fa538e"
|
|
8963
|
-
},
|
|
8964
|
-
"linux-arm64": {
|
|
8965
|
-
checksum: "851b5a756472ad53d833e8f0ab3ae55c05d3e6b49871bb982c977b7582cc117f",
|
|
8966
|
-
manifest: "4162656192a2881e5ccc763e3e66ce46646a84ff42cdf2de50bd6424ebac5e34"
|
|
8967
|
-
}
|
|
8968
|
-
}
|
|
8969
|
-
},
|
|
8970
|
-
"swift-6.4.0-RELEASE-custom-13450179a7e01c81": {
|
|
8971
|
-
identity: "13450179a7e01c81",
|
|
8972
|
-
archive: "tar.gz",
|
|
8973
|
-
hosts: {
|
|
8974
|
-
"darwin-arm64": {
|
|
8975
|
-
checksum: "a29be6b722f15c7aafac26ba5703a7392f49ce7ea5e1c56548846b7e458290f7",
|
|
8976
|
-
manifest: "9d89bc39d80d13c8bdb93ad5c306bb87e83bac34090f9bcec57476fd90a6a115"
|
|
8977
|
-
},
|
|
8978
|
-
"linux-x64": {
|
|
8979
|
-
checksum: "b9e9e3ed855f6a8c85f5fe24016b83792a0088e2d0ea632482426c4dc6031b98",
|
|
8980
|
-
manifest: "5de3bb6bf131e68862539195fbb4fce9d4de2b528fa882495b27fd4bdd02e5ab"
|
|
8981
|
-
},
|
|
8982
|
-
"linux-arm64": {
|
|
8983
|
-
checksum: "844f5ead2854d4ac2d1fc9fb13c366450a2ed4b8fa641719822d74f9150575b4",
|
|
8984
|
-
manifest: "1fcfb353679186a3e631b83085e5e8c3dde8cb32d25052b3c8b7896339a4378b"
|
|
8985
|
-
}
|
|
8986
|
-
}
|
|
8987
|
-
},
|
|
8988
|
-
"swift-6.4.0-RELEASE-custom-f6868fa6054e83d6": {
|
|
8989
|
-
identity: "f6868fa6054e83d6",
|
|
8990
|
-
archive: "tar.gz",
|
|
8991
|
-
hosts: {
|
|
8992
|
-
"darwin-arm64": {
|
|
8993
|
-
checksum: "bd80c2f35864ec29883dd22001d0165821e80d78002fc12f92406c3c708694a4",
|
|
8994
|
-
manifest: "daad0da2a296084307769b59719dbe83e45755871438fad129b20421b111657b"
|
|
8995
|
-
},
|
|
8996
|
-
"linux-x64": {
|
|
8997
|
-
checksum: "39707ef599835ae2d9ce5aea026b7a96d43e51b4c4dcd2ca62d5fc11c520e871",
|
|
8998
|
-
manifest: "065405edd9b02a84ce01c09e68531834dbe190232e6387b056a481354c44fe81"
|
|
8999
|
-
},
|
|
9000
|
-
"linux-arm64": {
|
|
9001
|
-
checksum: "a91f2947d560b49b56334938d0efdcb22286557da63d65389129030b2a4e146d",
|
|
9002
|
-
manifest: "4dfbc167c96f30c7de19cc280948786fb79a888b666ca200b0788803902361ce"
|
|
9003
|
-
}
|
|
9004
|
-
}
|
|
9005
|
-
},
|
|
9006
|
-
"swift-6.4.0-RELEASE-custom-a560ff35bf882b5c": {
|
|
9007
|
-
identity: "a560ff35bf882b5c",
|
|
9008
|
-
archive: "tar.zst",
|
|
9009
|
-
hosts: {
|
|
9010
|
-
"darwin-arm64": {
|
|
9011
|
-
checksum: "36c50bcdfba88a4c0989af0bd60371497eb4403aa7b80644b479fa509a2187a9",
|
|
9012
|
-
manifest: "253e891527d2213f54eace768b902de89de5e9495a3c5f4018de1985516bd553"
|
|
9013
|
-
},
|
|
9014
|
-
"linux-x64": {
|
|
9015
|
-
checksum: "ba25da9182314fc7b7dd2fc041280e1c7b409f80a1fbccdfa5c342669d164c8e",
|
|
9016
|
-
manifest: "6f951cc4071dd0d6054d85711a7c5fe272273658847831b477a8b24be7254ca0"
|
|
9017
|
-
},
|
|
9018
|
-
"linux-arm64": {
|
|
9019
|
-
checksum: "5f0f4456e9fe22b5486025db9f679c865841660797d71761245291c2c6811c20",
|
|
9020
|
-
manifest: "b6f62fca2ec37593e274ee5bac474f21ffc5db14cd82f492ccbc774f8e9b75d8"
|
|
9021
|
-
}
|
|
9022
|
-
}
|
|
9023
|
-
},
|
|
9024
8826
|
[SWIFT_HOST_COMPILER_RELEASE]: {
|
|
9025
8827
|
identity: SWIFT_HOST_COMPILER_ID,
|
|
9026
8828
|
archive: "tar.gz",
|
|
@@ -9515,6 +9317,34 @@ var init_swift_guest_source_inputs = __esm({
|
|
|
9515
9317
|
}
|
|
9516
9318
|
});
|
|
9517
9319
|
|
|
9320
|
+
// src/binaryen.lock.json
|
|
9321
|
+
var binaryen_lock_default;
|
|
9322
|
+
var init_binaryen_lock = __esm({
|
|
9323
|
+
"src/binaryen.lock.json"() {
|
|
9324
|
+
binaryen_lock_default = {
|
|
9325
|
+
version: "132",
|
|
9326
|
+
licenseSha256: "64c0d02491e16eced74826440ecd2bcf7722d37fa586faf457b2494293afbffe",
|
|
9327
|
+
platforms: {
|
|
9328
|
+
"linux-x64": {
|
|
9329
|
+
asset: "x86_64-linux",
|
|
9330
|
+
upstreamSha256: "195ddc94f9bc89f45abdabb0b9eea86023d727ba90eac8b35b80f2544fc30572",
|
|
9331
|
+
sha256: "0396b1a540e9f97f30eb6a378d829305c218c821a0bd88c74e83d3d6923dad0b"
|
|
9332
|
+
},
|
|
9333
|
+
"linux-arm64": {
|
|
9334
|
+
asset: "aarch64-linux",
|
|
9335
|
+
upstreamSha256: "c58562417836c5d0493d89bdefc434933bdc097db641b483df86bcfa557a107f",
|
|
9336
|
+
sha256: "25e3747f19614b0281a28b9a909ddc602b546ccdfacebc8cae2f7165665328fa"
|
|
9337
|
+
},
|
|
9338
|
+
"darwin-arm64": {
|
|
9339
|
+
asset: "arm64-macos",
|
|
9340
|
+
upstreamSha256: "98aad827847af7ef990ed7098d885725c8e5b5aae75073403635617ae4e259aa",
|
|
9341
|
+
sha256: "34281566fe32df71337aaf0b60aa265dc853587d92bda0b5b1fac8aed8c2f8ab"
|
|
9342
|
+
}
|
|
9343
|
+
}
|
|
9344
|
+
};
|
|
9345
|
+
}
|
|
9346
|
+
});
|
|
9347
|
+
|
|
9518
9348
|
// src/wasm-narrow-boundary.ts
|
|
9519
9349
|
var init_wasm_narrow_boundary = __esm({
|
|
9520
9350
|
"src/wasm-narrow-boundary.ts"() {
|
|
@@ -9523,7 +9353,7 @@ var init_wasm_narrow_boundary = __esm({
|
|
|
9523
9353
|
});
|
|
9524
9354
|
|
|
9525
9355
|
// src/wasm-optimize.ts
|
|
9526
|
-
var import_node_child_process6, import_node_util, FEATURES, KEEP_WASM_NAMES, LOWERING, BINARYEN_VERSION, runBinaryen, WASM_LOWER_IDENTITY;
|
|
9356
|
+
var import_node_child_process6, import_node_util, FEATURES, KEEP_WASM_NAMES, LOWERING, BINARYEN_VERSION, runBinaryen, WASM_LOWER_IDENTITY, BINARYEN_RELEASES;
|
|
9527
9357
|
var init_wasm_optimize = __esm({
|
|
9528
9358
|
"src/wasm-optimize.ts"() {
|
|
9529
9359
|
"use strict";
|
|
@@ -9531,6 +9361,7 @@ var init_wasm_optimize = __esm({
|
|
|
9531
9361
|
import_node_util = require("node:util");
|
|
9532
9362
|
init_src();
|
|
9533
9363
|
init_admitted_mac_build();
|
|
9364
|
+
init_binaryen_lock();
|
|
9534
9365
|
init_home_paths();
|
|
9535
9366
|
init_wasm_narrow_boundary();
|
|
9536
9367
|
FEATURES = [
|
|
@@ -9548,9 +9379,10 @@ var init_wasm_optimize = __esm({
|
|
|
9548
9379
|
];
|
|
9549
9380
|
KEEP_WASM_NAMES = process.env.PEACH_SWIFT_NAMES === "1";
|
|
9550
9381
|
LOWERING = ["--memory64-lowering", "--table64-lowering"];
|
|
9551
|
-
BINARYEN_VERSION =
|
|
9382
|
+
BINARYEN_VERSION = binaryen_lock_default.version;
|
|
9552
9383
|
runBinaryen = (0, import_node_util.promisify)(import_node_child_process6.execFile);
|
|
9553
9384
|
WASM_LOWER_IDENTITY = `binaryen ${BINARYEN_VERSION} narrow ${LOWERING.join(" ")} ${FEATURES.join(",")} unoptimized-names`;
|
|
9385
|
+
BINARYEN_RELEASES = new Map(Object.entries(binaryen_lock_default.platforms));
|
|
9554
9386
|
}
|
|
9555
9387
|
});
|
|
9556
9388
|
|
|
@@ -9770,7 +9602,7 @@ var init_swift_compile = __esm({
|
|
|
9770
9602
|
FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
|
|
9771
9603
|
(module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
|
|
9772
9604
|
).join("");
|
|
9773
|
-
compilerSourceDigest = true ? "
|
|
9605
|
+
compilerSourceDigest = true ? "558e865561d0b74b1a3016abec937fd19f725375fe7e014dc1f140a17a31bc68" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
9774
9606
|
C_WORDS = new Set(
|
|
9775
9607
|
"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(
|
|
9776
9608
|
" "
|
|
@@ -11760,7 +11592,11 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
11760
11592
|
DEVELOPMENT_LANGUAGE: str(ref.project.project.developmentRegion) ?? "en"
|
|
11761
11593
|
},
|
|
11762
11594
|
options,
|
|
11763
|
-
ref === app && options.frameworkMachOType ? {
|
|
11595
|
+
ref === app && options.frameworkMachOType ? {
|
|
11596
|
+
...workspaceBuild,
|
|
11597
|
+
...options.frameworkBuildSettings,
|
|
11598
|
+
MACH_O_TYPE: options.frameworkMachOType
|
|
11599
|
+
} : workspaceBuild
|
|
11764
11600
|
);
|
|
11765
11601
|
for (const file of read) xcconfigs.add(file);
|
|
11766
11602
|
const swiftVersion = Number.parseFloat(settings2("SWIFT_VERSION") || "5");
|
|
@@ -12693,17 +12529,38 @@ var init_podspec_ruby_stdlib = __esm({
|
|
|
12693
12529
|
});
|
|
12694
12530
|
|
|
12695
12531
|
// src/podspec-cocoapods.ts
|
|
12696
|
-
var PRELUDE;
|
|
12532
|
+
var PRELUDE, HOST_PROBES;
|
|
12697
12533
|
var init_podspec_cocoapods = __esm({
|
|
12698
12534
|
"src/podspec-cocoapods.ts"() {
|
|
12699
12535
|
"use strict";
|
|
12700
12536
|
init_podspec_ruby();
|
|
12701
12537
|
init_podspec_ruby_stdlib();
|
|
12538
|
+
init_swift_objc_standin();
|
|
12702
12539
|
PRELUDE = String.raw`
|
|
12703
12540
|
module Pod
|
|
12704
12541
|
VERSION = '1.17.0'
|
|
12705
12542
|
class Informative < StandardError; end
|
|
12706
12543
|
class PlainInformative < StandardError; end
|
|
12544
|
+
|
|
12545
|
+
module Executable
|
|
12546
|
+
def self.which(program)
|
|
12547
|
+
program = program.to_s
|
|
12548
|
+
paths = ENV.fetch('PATH') { '' }.split(File::PATH_SEPARATOR)
|
|
12549
|
+
paths.unshift('./')
|
|
12550
|
+
paths.uniq!
|
|
12551
|
+
paths.each do |path|
|
|
12552
|
+
bin = File.expand_path(program, path)
|
|
12553
|
+
return bin if File.file?(bin) && File.executable?(bin)
|
|
12554
|
+
end
|
|
12555
|
+
nil
|
|
12556
|
+
end
|
|
12557
|
+
|
|
12558
|
+
def self.which!(program)
|
|
12559
|
+
which(program).tap do |bin|
|
|
12560
|
+
raise Informative, "Unable to locate the executable '#{program}'" unless bin
|
|
12561
|
+
end
|
|
12562
|
+
end
|
|
12563
|
+
end
|
|
12707
12564
|
class Version < Gem::Version; end
|
|
12708
12565
|
|
|
12709
12566
|
class Requirement
|
|
@@ -12712,6 +12569,9 @@ module Pod
|
|
|
12712
12569
|
def self.create(input)
|
|
12713
12570
|
input.is_a?(Requirement) ? input : new(input)
|
|
12714
12571
|
end
|
|
12572
|
+
def self.default
|
|
12573
|
+
new('>= 0')
|
|
12574
|
+
end
|
|
12715
12575
|
def initialize(*requirements)
|
|
12716
12576
|
requirements = requirements.flatten
|
|
12717
12577
|
requirements.compact!
|
|
@@ -12724,16 +12584,136 @@ module Pod
|
|
|
12724
12584
|
raise ArgumentError, "Illformed requirement [#{requirement.inspect}]" unless match
|
|
12725
12585
|
[match[1] || '=', Version.new(match[2])]
|
|
12726
12586
|
end
|
|
12587
|
+
def none?
|
|
12588
|
+
requirements == [['>=', Version.new('0')]]
|
|
12589
|
+
end
|
|
12590
|
+
def satisfied_by?(version)
|
|
12591
|
+
requirements.all? do |op, rv|
|
|
12592
|
+
case op
|
|
12593
|
+
when '=' then version == rv
|
|
12594
|
+
when '!=' then version != rv
|
|
12595
|
+
when '>' then version > rv
|
|
12596
|
+
when '<' then version < rv
|
|
12597
|
+
when '>=' then version >= rv
|
|
12598
|
+
when '<=' then version <= rv
|
|
12599
|
+
when '~>' then version >= rv && version.release < rv.bump
|
|
12600
|
+
end
|
|
12601
|
+
end
|
|
12602
|
+
end
|
|
12603
|
+
def ==(other)
|
|
12604
|
+
other.is_a?(Requirement) && requirements.sort_by(&:to_s) == other.requirements.sort_by(&:to_s)
|
|
12605
|
+
end
|
|
12606
|
+
def as_list
|
|
12607
|
+
requirements.map { |op, version| "#{op} #{version}" }.sort
|
|
12608
|
+
end
|
|
12609
|
+
def prerelease?
|
|
12610
|
+
requirements.any? { |_op, version| version.prerelease? }
|
|
12611
|
+
end
|
|
12727
12612
|
def to_s
|
|
12728
|
-
|
|
12613
|
+
as_list.join(', ')
|
|
12729
12614
|
end
|
|
12730
12615
|
end
|
|
12731
12616
|
|
|
12732
12617
|
class Dependency
|
|
12733
|
-
|
|
12618
|
+
attr_accessor :name
|
|
12619
|
+
attr_accessor :external_source
|
|
12620
|
+
attr_accessor :podspec_repo
|
|
12734
12621
|
def initialize(name = nil, *requirements)
|
|
12622
|
+
if requirements.last.is_a?(Hash)
|
|
12623
|
+
additional_params = requirements.pop.select { |_, v| !v.nil? }
|
|
12624
|
+
additional_params = nil if additional_params.empty?
|
|
12625
|
+
if additional_params && @podspec_repo = additional_params[:source]
|
|
12626
|
+
additional_params.delete(:source)
|
|
12627
|
+
unless additional_params.empty?
|
|
12628
|
+
raise Informative, 'A dependency with a specified podspec repo may ' \
|
|
12629
|
+
"not include other source parameters (#{name})."
|
|
12630
|
+
end
|
|
12631
|
+
elsif @external_source = additional_params
|
|
12632
|
+
unless requirements.empty?
|
|
12633
|
+
raise Informative, 'A dependency with an external source may not ' \
|
|
12634
|
+
"specify version requirements (#{name})."
|
|
12635
|
+
end
|
|
12636
|
+
end
|
|
12637
|
+
end
|
|
12638
|
+
if requirements.length == 1 && requirements.first.is_a?(Requirement)
|
|
12639
|
+
requirements = requirements.first
|
|
12640
|
+
end
|
|
12735
12641
|
@name = name
|
|
12736
12642
|
@requirement = Requirement.create(requirements)
|
|
12643
|
+
@specific_requirement ||= nil
|
|
12644
|
+
@external_source ||= nil
|
|
12645
|
+
end
|
|
12646
|
+
def requirement
|
|
12647
|
+
@specific_requirement || @requirement
|
|
12648
|
+
end
|
|
12649
|
+
def specific_version
|
|
12650
|
+
@specific_version
|
|
12651
|
+
end
|
|
12652
|
+
def specific_version=(version)
|
|
12653
|
+
@specific_version = version
|
|
12654
|
+
@specific_requirement = Requirement.new(version)
|
|
12655
|
+
end
|
|
12656
|
+
def root_name
|
|
12657
|
+
Specification.root_name(name)
|
|
12658
|
+
end
|
|
12659
|
+
def prerelease?
|
|
12660
|
+
requirement.prerelease?
|
|
12661
|
+
end
|
|
12662
|
+
def external?
|
|
12663
|
+
!@external_source.nil?
|
|
12664
|
+
end
|
|
12665
|
+
def local?
|
|
12666
|
+
external_source[:path] if external_source
|
|
12667
|
+
end
|
|
12668
|
+
def to_root_dependency
|
|
12669
|
+
dep = dup
|
|
12670
|
+
dep.name = root_name
|
|
12671
|
+
dep
|
|
12672
|
+
end
|
|
12673
|
+
def ==(other)
|
|
12674
|
+
other.is_a?(Dependency) && name == other.name && external_source == other.external_source &&
|
|
12675
|
+
podspec_repo == other.podspec_repo && requirement == other.requirement
|
|
12676
|
+
end
|
|
12677
|
+
alias_method :eql?, :==
|
|
12678
|
+
def hash
|
|
12679
|
+
name.hash ^ requirement.to_s.hash ^ external_source.hash
|
|
12680
|
+
end
|
|
12681
|
+
def <=>(other)
|
|
12682
|
+
name <=> other.name
|
|
12683
|
+
end
|
|
12684
|
+
def to_s
|
|
12685
|
+
version = ''
|
|
12686
|
+
if external?
|
|
12687
|
+
version += external_source_description(external_source)
|
|
12688
|
+
elsif requirement != Requirement.default
|
|
12689
|
+
version += requirement.to_s
|
|
12690
|
+
end
|
|
12691
|
+
result = name.dup
|
|
12692
|
+
result += " (#{version})" unless version.empty?
|
|
12693
|
+
result
|
|
12694
|
+
end
|
|
12695
|
+
def inspect
|
|
12696
|
+
"<#{self.class} name=#{name} requirements=#{requirement} source=#{podspec_repo || 'nil'} external_source=#{external_source || 'nil'}>"
|
|
12697
|
+
end
|
|
12698
|
+
private
|
|
12699
|
+
def external_source_description(source)
|
|
12700
|
+
if source.key?(:git)
|
|
12701
|
+
desc = "\`#{source[:git]}\`"
|
|
12702
|
+
desc << ", commit \`#{source[:commit]}\`" if source[:commit]
|
|
12703
|
+
desc << ", branch \`#{source[:branch]}\`" if source[:branch]
|
|
12704
|
+
desc << ", tag \`#{source[:tag]}\`" if source[:tag]
|
|
12705
|
+
elsif source.key?(:hg)
|
|
12706
|
+
desc = "\`#{source[:hg]}\`"
|
|
12707
|
+
elsif source.key?(:svn)
|
|
12708
|
+
desc = "\`#{source[:svn]}\`"
|
|
12709
|
+
elsif source.key?(:podspec)
|
|
12710
|
+
desc = "\`#{source[:podspec]}\`"
|
|
12711
|
+
elsif source.key?(:path)
|
|
12712
|
+
desc = "\`#{source[:path]}\`"
|
|
12713
|
+
else
|
|
12714
|
+
desc = "\`#{source}\`"
|
|
12715
|
+
end
|
|
12716
|
+
"from #{desc}"
|
|
12737
12717
|
end
|
|
12738
12718
|
end
|
|
12739
12719
|
|
|
@@ -12749,16 +12729,55 @@ module Pod
|
|
|
12749
12729
|
def to_sym
|
|
12750
12730
|
name
|
|
12751
12731
|
end
|
|
12732
|
+
def self.string_name(symbolic_name)
|
|
12733
|
+
case symbolic_name
|
|
12734
|
+
when :ios then 'iOS'
|
|
12735
|
+
when :osx then 'macOS'
|
|
12736
|
+
when :watchos then 'watchOS'
|
|
12737
|
+
when :tvos then 'tvOS'
|
|
12738
|
+
when :visionos then 'visionOS'
|
|
12739
|
+
else symbolic_name.to_s
|
|
12740
|
+
end
|
|
12741
|
+
end
|
|
12742
|
+
def string_name
|
|
12743
|
+
self.class.string_name(name)
|
|
12744
|
+
end
|
|
12745
|
+
def safe_string_name
|
|
12746
|
+
string_name.tr(' ', '')
|
|
12747
|
+
end
|
|
12752
12748
|
def to_s
|
|
12753
|
-
name
|
|
12749
|
+
s = self.class.string_name(name)
|
|
12750
|
+
s += " #{deployment_target}" if deployment_target
|
|
12751
|
+
s
|
|
12752
|
+
end
|
|
12753
|
+
def inspect
|
|
12754
|
+
"#<#{self.class.name} name=#{name.inspect} deployment_target=#{deployment_target.to_s.inspect}>"
|
|
12755
|
+
end
|
|
12756
|
+
def hash
|
|
12757
|
+
name.hash ^ deployment_target.hash
|
|
12758
|
+
end
|
|
12759
|
+
def eql?(other)
|
|
12760
|
+
self == other
|
|
12761
|
+
end
|
|
12762
|
+
def supports?(other)
|
|
12763
|
+
other = Platform.new(other) unless other.is_a?(Platform)
|
|
12764
|
+
if other.deployment_target && deployment_target
|
|
12765
|
+
(other.name == name) && (deployment_target >= other.deployment_target)
|
|
12766
|
+
else
|
|
12767
|
+
other.name == name
|
|
12768
|
+
end
|
|
12754
12769
|
end
|
|
12755
12770
|
end
|
|
12756
12771
|
|
|
12757
12772
|
class Config
|
|
12758
12773
|
attr_accessor :installation_root, :podfile, :lockfile
|
|
12774
|
+
alias_method :project_root, :installation_root
|
|
12759
12775
|
def self.instance
|
|
12760
12776
|
@instance ||= new
|
|
12761
12777
|
end
|
|
12778
|
+
def podfile_path
|
|
12779
|
+
installation_root + 'Podfile'
|
|
12780
|
+
end
|
|
12762
12781
|
def sandbox_root
|
|
12763
12782
|
installation_root + 'Pods'
|
|
12764
12783
|
end
|
|
@@ -13086,7 +13105,7 @@ module Pod
|
|
|
13086
13105
|
end
|
|
13087
13106
|
|
|
13088
13107
|
def to_s
|
|
13089
|
-
specified_version = attributes_hash['version'] || ''
|
|
13108
|
+
specified_version = root.attributes_hash['version'] || ''
|
|
13090
13109
|
if name && !specified_version.to_s.empty?
|
|
13091
13110
|
"#{name} (#{specified_version})"
|
|
13092
13111
|
elsif name
|
|
@@ -13460,6 +13479,15 @@ module Pod
|
|
|
13460
13479
|
end
|
|
13461
13480
|
end
|
|
13462
13481
|
`;
|
|
13482
|
+
HOST_PROBES = /* @__PURE__ */ new Map([
|
|
13483
|
+
["xcrun --sdk iphoneos --show-sdk-version", `${NATIVE_GRAPH_SDK_VERSION}
|
|
13484
|
+
`],
|
|
13485
|
+
["xcrun --sdk iphonesimulator --show-sdk-version", `${NATIVE_GRAPH_SDK_VERSION}
|
|
13486
|
+
`],
|
|
13487
|
+
["xcodebuild -version", `Xcode ${NATIVE_GRAPH_SDK_VERSION}
|
|
13488
|
+
`],
|
|
13489
|
+
["/usr/sbin/sysctl -n hw.optional.arm64 2>&1", "1\n"]
|
|
13490
|
+
]);
|
|
13463
13491
|
}
|
|
13464
13492
|
});
|
|
13465
13493
|
|
|
@@ -13517,6 +13545,7 @@ var init_kotlin_toolchain = __esm({
|
|
|
13517
13545
|
"use strict";
|
|
13518
13546
|
import_node_child_process11 = require("node:child_process");
|
|
13519
13547
|
import_node_util4 = require("node:util");
|
|
13548
|
+
init_src();
|
|
13520
13549
|
init_home_paths();
|
|
13521
13550
|
init_is_record();
|
|
13522
13551
|
run2 = (0, import_node_util4.promisify)(import_node_child_process11.execFile);
|
|
@@ -14487,7 +14516,7 @@ function isPeachConfig(value) {
|
|
|
14487
14516
|
"nativeHybridObjects",
|
|
14488
14517
|
"env",
|
|
14489
14518
|
"network",
|
|
14490
|
-
"
|
|
14519
|
+
"profiles",
|
|
14491
14520
|
"initialProps",
|
|
14492
14521
|
"initialState"
|
|
14493
14522
|
].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(
|
|
@@ -14535,7 +14564,7 @@ function hasOwnKeys(value) {
|
|
|
14535
14564
|
}
|
|
14536
14565
|
function hasPeachConfig(config) {
|
|
14537
14566
|
if (!config) return false;
|
|
14538
|
-
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.
|
|
14567
|
+
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);
|
|
14539
14568
|
}
|
|
14540
14569
|
function mergePeachConfig(base, override) {
|
|
14541
14570
|
if (!hasPeachConfig(base) && !hasPeachConfig(override)) return void 0;
|
|
@@ -14560,10 +14589,6 @@ function mergePeachConfig(base, override) {
|
|
|
14560
14589
|
network: {
|
|
14561
14590
|
remap: { ...base.network?.remap || {}, ...override.network?.remap || {} }
|
|
14562
14591
|
},
|
|
14563
|
-
settings: {
|
|
14564
|
-
...base.settings || {},
|
|
14565
|
-
...override.settings || {}
|
|
14566
|
-
},
|
|
14567
14592
|
initialProps: { ...base.initialProps || {}, ...override.initialProps || {} },
|
|
14568
14593
|
initialState: { ...base.initialState || {}, ...override.initialState || {} }
|
|
14569
14594
|
};
|
|
@@ -15238,6 +15263,1483 @@ var init_app_stubs = __esm({
|
|
|
15238
15263
|
}
|
|
15239
15264
|
});
|
|
15240
15265
|
|
|
15266
|
+
// ../peach-globals/src/dynamic-type-scales.ts
|
|
15267
|
+
var IOS_DYNAMIC_TYPE_SCALES;
|
|
15268
|
+
var init_dynamic_type_scales = __esm({
|
|
15269
|
+
"../peach-globals/src/dynamic-type-scales.ts"() {
|
|
15270
|
+
"use strict";
|
|
15271
|
+
IOS_DYNAMIC_TYPE_SCALES = [
|
|
15272
|
+
0.823,
|
|
15273
|
+
0.882,
|
|
15274
|
+
0.941,
|
|
15275
|
+
1,
|
|
15276
|
+
1.118,
|
|
15277
|
+
1.235,
|
|
15278
|
+
1.353,
|
|
15279
|
+
1.786,
|
|
15280
|
+
2.143,
|
|
15281
|
+
2.643,
|
|
15282
|
+
3.143,
|
|
15283
|
+
3.571
|
|
15284
|
+
];
|
|
15285
|
+
}
|
|
15286
|
+
});
|
|
15287
|
+
|
|
15288
|
+
// ../peach-globals/src/profilerContract.ts
|
|
15289
|
+
function formatProfilerCategories(categories) {
|
|
15290
|
+
return PROFILER_CATEGORIES.filter((c) => categories.includes(c)).join(",");
|
|
15291
|
+
}
|
|
15292
|
+
var PROFILER_CATEGORIES, DEFAULT_PROFILER_CATEGORIES, PROFILER_WINDOW_MS;
|
|
15293
|
+
var init_profilerContract = __esm({
|
|
15294
|
+
"../peach-globals/src/profilerContract.ts"() {
|
|
15295
|
+
"use strict";
|
|
15296
|
+
PROFILER_CATEGORIES = [
|
|
15297
|
+
"frames",
|
|
15298
|
+
"animations",
|
|
15299
|
+
"interactions",
|
|
15300
|
+
"network-logs",
|
|
15301
|
+
"react",
|
|
15302
|
+
"animation-values",
|
|
15303
|
+
"layout",
|
|
15304
|
+
"memory",
|
|
15305
|
+
"paint-detail"
|
|
15306
|
+
];
|
|
15307
|
+
DEFAULT_PROFILER_CATEGORIES = [
|
|
15308
|
+
"frames",
|
|
15309
|
+
"animations",
|
|
15310
|
+
"interactions",
|
|
15311
|
+
"network-logs"
|
|
15312
|
+
];
|
|
15313
|
+
PROFILER_WINDOW_MS = 5 * 6e4;
|
|
15314
|
+
}
|
|
15315
|
+
});
|
|
15316
|
+
|
|
15317
|
+
// src/runtimePlatformContract.ts
|
|
15318
|
+
function isRuntimePlatform(value) {
|
|
15319
|
+
return value === "ios" || value === "android";
|
|
15320
|
+
}
|
|
15321
|
+
function getRuntimePlatformAdapter(platform) {
|
|
15322
|
+
return RUNTIME_PLATFORM_ADAPTERS[platform];
|
|
15323
|
+
}
|
|
15324
|
+
var IOS_ADAPTER, ANDROID_ADAPTER, RUNTIME_PLATFORM_ADAPTERS;
|
|
15325
|
+
var init_runtimePlatformContract = __esm({
|
|
15326
|
+
"src/runtimePlatformContract.ts"() {
|
|
15327
|
+
"use strict";
|
|
15328
|
+
IOS_ADAPTER = Object.freeze({
|
|
15329
|
+
id: "ios",
|
|
15330
|
+
displayName: "iOS",
|
|
15331
|
+
isIOS: true,
|
|
15332
|
+
isAndroid: false,
|
|
15333
|
+
select: (registry) => registry.ios
|
|
15334
|
+
});
|
|
15335
|
+
ANDROID_ADAPTER = Object.freeze({
|
|
15336
|
+
id: "android",
|
|
15337
|
+
displayName: "Android",
|
|
15338
|
+
isIOS: false,
|
|
15339
|
+
isAndroid: true,
|
|
15340
|
+
select: (registry) => registry.android
|
|
15341
|
+
});
|
|
15342
|
+
RUNTIME_PLATFORM_ADAPTERS = Object.freeze({
|
|
15343
|
+
ios: IOS_ADAPTER,
|
|
15344
|
+
android: ANDROID_ADAPTER
|
|
15345
|
+
});
|
|
15346
|
+
}
|
|
15347
|
+
});
|
|
15348
|
+
|
|
15349
|
+
// src/device-catalog.ts
|
|
15350
|
+
function modernButtons(action, volumeUp, volumeDown, power) {
|
|
15351
|
+
return {
|
|
15352
|
+
width: 3,
|
|
15353
|
+
ringToggle: { side: "left", top: action[0], height: action[1] },
|
|
15354
|
+
volumeUp: { side: "left", top: volumeUp[0], height: volumeUp[1] },
|
|
15355
|
+
volumeDown: { side: "left", top: volumeDown[0], height: volumeDown[1] },
|
|
15356
|
+
lock: { side: "right", top: power[0], height: power[1] }
|
|
15357
|
+
};
|
|
15358
|
+
}
|
|
15359
|
+
function uniformFrameInsets(value) {
|
|
15360
|
+
return { top: value, right: value, bottom: value, left: value };
|
|
15361
|
+
}
|
|
15362
|
+
function cornerRadii(value) {
|
|
15363
|
+
return { topLeft: value, topRight: value, bottomRight: value, bottomLeft: value };
|
|
15364
|
+
}
|
|
15365
|
+
function iosDevice(spec) {
|
|
15366
|
+
const profile = {
|
|
15367
|
+
// normal-scale dynamic split providers share this intrinsic height and
|
|
15368
|
+
// linked-sdk whole-point rounding. safe areas are independent.
|
|
15369
|
+
// source receipt: docs/ios/framework-oracle/status-bar-hit-region-and-scene-routing.md
|
|
15370
|
+
statusBarHeight: "statusBarHeight" in spec ? spec.statusBarHeight : Math.round(53.666666666666664),
|
|
15371
|
+
scale: 3,
|
|
15372
|
+
landscapeStatusBarHeight: 0,
|
|
15373
|
+
homeIndicatorHeight: 34,
|
|
15374
|
+
iosVersion: "27.0",
|
|
15375
|
+
dynamicIsland: null,
|
|
15376
|
+
keyboardPanelHeights: { qwerty: 301, pad: 301, emoji: 395 },
|
|
15377
|
+
...spec
|
|
15378
|
+
};
|
|
15379
|
+
return {
|
|
15380
|
+
...profile,
|
|
15381
|
+
platform: "ios",
|
|
15382
|
+
// the display's portrait reference and overlay allowance are independent of the window safe area.
|
|
15383
|
+
displayEdgeInfo: profile.displayEdgeInfo ?? (profile.model.startsWith("iphone-") && profile.model !== "iphone-se" && profile.model !== "iphone-duo" ? { portraitBottom: 34, homeAffordanceOverlayAllowance: 21 } : void 0),
|
|
15384
|
+
navigationBarHeight: 0,
|
|
15385
|
+
navigationBarMode: profile.homeIndicatorHeight > 0 ? "gesture" : "none",
|
|
15386
|
+
displayCutout: {
|
|
15387
|
+
top: profile.dynamicIsland ? profile.safeAreaInsets.top : 0,
|
|
15388
|
+
bottom: 0,
|
|
15389
|
+
left: 0,
|
|
15390
|
+
right: 0
|
|
15391
|
+
},
|
|
15392
|
+
cameraCutout: null,
|
|
15393
|
+
osVersion: profile.iosVersion,
|
|
15394
|
+
androidApiLevel: null,
|
|
15395
|
+
systemName: "iOS",
|
|
15396
|
+
manufacturer: "Apple",
|
|
15397
|
+
brand: "Apple",
|
|
15398
|
+
modelName: profile.name
|
|
15399
|
+
};
|
|
15400
|
+
}
|
|
15401
|
+
function isDeviceModel(value) {
|
|
15402
|
+
return Object.hasOwn(devices, value);
|
|
15403
|
+
}
|
|
15404
|
+
function listDeviceModels() {
|
|
15405
|
+
return Object.keys(devices).filter(isDeviceModel);
|
|
15406
|
+
}
|
|
15407
|
+
function ipadProDevice(model, name2, width, height, diagonalInches, keyboardHeight) {
|
|
15408
|
+
return iosDevice({
|
|
15409
|
+
model,
|
|
15410
|
+
name: name2,
|
|
15411
|
+
// iPad Pro 11-inch (M5) 12GB, iOS 27.0, simulator DBD4B183, UIKit probe
|
|
15412
|
+
// scenario `metrics`. portrait UIScreen.bounds 834×1210, scale 2,
|
|
15413
|
+
// nativeBounds 1668×2420. the window matched the screen.
|
|
15414
|
+
width,
|
|
15415
|
+
height,
|
|
15416
|
+
scale: 2,
|
|
15417
|
+
// portrait statusBarFrame was 834×32 at the top, and safeAreaInsets.top
|
|
15418
|
+
// was 32. landscape statusBarFrame stayed 32 tall while safeAreaInsets.top
|
|
15419
|
+
// was 10; this field is the portrait bar.
|
|
15420
|
+
statusBarHeight: 32,
|
|
15421
|
+
landscapeStatusBarHeight: 32,
|
|
15422
|
+
// portrait and landscape safeAreaInsets.bottom were both 20. the probe
|
|
15423
|
+
// has no separate home-indicator height.
|
|
15424
|
+
homeIndicatorHeight: 20,
|
|
15425
|
+
// UIScreen _displayCornerRadius, both orientations. the framebuffer
|
|
15426
|
+
// mask's tangent extent was not measured separately.
|
|
15427
|
+
cornerRadius: cornerRadii(30),
|
|
15428
|
+
continuousCornerRadius: cornerRadii(30),
|
|
15429
|
+
// housing is unsourced. the frame is the display until it is measured.
|
|
15430
|
+
frameInsets: uniformFrameInsets(0),
|
|
15431
|
+
// portrait safeAreaInsets. landscape was top 10, left 0, bottom 20, right 0.
|
|
15432
|
+
safeAreaInsets: { top: 32, bottom: 20, left: 0, right: 0 },
|
|
15433
|
+
// portrait docked keyboard frame height, UIKeyboardFrameEndUserInfoKey
|
|
15434
|
+
// {0, 870, 834, 340} on the 11-inch, 403 on the 13-inch. the emoji panel
|
|
15435
|
+
// takes the letters height on the 11-inch and 2.5pt more on the 13-inch
|
|
15436
|
+
// (405.5, native iOS 27 simulators).
|
|
15437
|
+
keyboardPanelHeights: {
|
|
15438
|
+
qwerty: keyboardHeight,
|
|
15439
|
+
pad: keyboardHeight,
|
|
15440
|
+
emoji: keyboardHeight + (model === "ipad-pro-11" ? 0 : 2.5)
|
|
15441
|
+
},
|
|
15442
|
+
// hypot(1668, 2420) / 11, measured native pixels over the device type's
|
|
15443
|
+
// 11-inch name. not a separate density read.
|
|
15444
|
+
physicalPPI: Math.hypot(width * 2, height * 2) / diagonalInches,
|
|
15445
|
+
hardwareButtons: modernButtons([0, 0], [0, 0], [0, 0], [0, 0])
|
|
15446
|
+
});
|
|
15447
|
+
}
|
|
15448
|
+
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;
|
|
15449
|
+
var init_device_catalog = __esm({
|
|
15450
|
+
"src/device-catalog.ts"() {
|
|
15451
|
+
"use strict";
|
|
15452
|
+
init_runtimePlatformContract();
|
|
15453
|
+
LEGACY_HARDWARE_BUTTONS = {
|
|
15454
|
+
width: 2.5,
|
|
15455
|
+
lock: { side: "right", top: 188.7, height: 68.1 },
|
|
15456
|
+
ringToggle: { side: "left", top: 113.2, height: 36 },
|
|
15457
|
+
volumeUp: { side: "left", top: 188.2, height: 68.1 },
|
|
15458
|
+
volumeDown: { side: "left", top: 269, height: 68.1 }
|
|
15459
|
+
};
|
|
15460
|
+
PIXEL_HARDWARE_BUTTONS = {
|
|
15461
|
+
width: 3,
|
|
15462
|
+
// pixel 8 android studio art has right-edge opaque runs at y=671..833
|
|
15463
|
+
// (power) and y=971..1301 (the continuous volume rocker), at 2.625x.
|
|
15464
|
+
lock: { side: "right", top: 671 / 2.625, height: 163 / 2.625 },
|
|
15465
|
+
ringToggle: { side: "left", top: -1e3, height: 0 },
|
|
15466
|
+
volumeUp: { side: "right", top: 971 / 2.625, height: 165 / 2.625 },
|
|
15467
|
+
volumeDown: { side: "right", top: 1136 / 2.625, height: 166 / 2.625 }
|
|
15468
|
+
};
|
|
15469
|
+
GALAXY_HARDWARE_BUTTONS = {
|
|
15470
|
+
width: 3,
|
|
15471
|
+
lock: { side: "right", top: 248, height: 72 },
|
|
15472
|
+
ringToggle: { side: "left", top: -1e3, height: 0 },
|
|
15473
|
+
volumeUp: { side: "right", top: 144, height: 62 },
|
|
15474
|
+
volumeDown: { side: "right", top: 216, height: 62 }
|
|
15475
|
+
};
|
|
15476
|
+
ANDROID_GESTURE_NAV_BAR_HEIGHT = 24;
|
|
15477
|
+
ANDROID_OS_VERSION = "17";
|
|
15478
|
+
ANDROID_API_LEVEL = 37;
|
|
15479
|
+
PIXEL_8_WIDTH = 1080 / 2.625;
|
|
15480
|
+
PIXEL_8_HEIGHT = 2400 / 2.625;
|
|
15481
|
+
GBOARD_PANEL_HEIGHTS = {
|
|
15482
|
+
qwerty: 883 / 2.625,
|
|
15483
|
+
pad: 883 / 2.625,
|
|
15484
|
+
emoji: 395
|
|
15485
|
+
};
|
|
15486
|
+
PIXEL_8_STATUS_BAR_HEIGHT = 132 / 2.625;
|
|
15487
|
+
PIXEL_8_LANDSCAPE_STATUS_BAR_HEIGHT = Math.round(28 * 2.625) / 2.625;
|
|
15488
|
+
DYNAMIC_WINDOW_LIMITS = {
|
|
15489
|
+
minWidth: 375,
|
|
15490
|
+
minHeight: 486,
|
|
15491
|
+
maxWidth: 1032,
|
|
15492
|
+
maxHeight: 1376
|
|
15493
|
+
};
|
|
15494
|
+
profiles = {
|
|
15495
|
+
"canvas-workspace": /* @__PURE__ */ iosDevice({
|
|
15496
|
+
model: "canvas-workspace",
|
|
15497
|
+
name: "Canvas Workspace",
|
|
15498
|
+
width: 1440,
|
|
15499
|
+
height: 900,
|
|
15500
|
+
scale: 1,
|
|
15501
|
+
statusBarHeight: 0,
|
|
15502
|
+
homeIndicatorHeight: 0,
|
|
15503
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(0),
|
|
15504
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(0),
|
|
15505
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(16),
|
|
15506
|
+
safeAreaInsets: { top: 0, bottom: 0, left: 0, right: 0 },
|
|
15507
|
+
// no native device has this geometry; carries the iphone 16 keyboard
|
|
15508
|
+
// height so the experimental profile still shows a keyboard.
|
|
15509
|
+
physicalPPI: 110,
|
|
15510
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
15511
|
+
[185.8, 41.7],
|
|
15512
|
+
[258.2, 67.6],
|
|
15513
|
+
[344, 67.6],
|
|
15514
|
+
[281.5, 106.9]
|
|
15515
|
+
),
|
|
15516
|
+
experimental: true
|
|
15517
|
+
}),
|
|
15518
|
+
"iphone-se": /* @__PURE__ */ iosDevice({
|
|
15519
|
+
model: "iphone-se",
|
|
15520
|
+
name: "iPhone SE",
|
|
15521
|
+
width: 375,
|
|
15522
|
+
height: 667,
|
|
15523
|
+
scale: 2,
|
|
15524
|
+
statusBarHeight: 20,
|
|
15525
|
+
homeIndicatorHeight: 0,
|
|
15526
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(0),
|
|
15527
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(0),
|
|
15528
|
+
// legacy home-button frame uses asymmetric LEGACY_*_BEZEL constants in the
|
|
15529
|
+
// shell (111pt forehead/chin, 29pt sides); uniform frameInsets are a sane
|
|
15530
|
+
// modern-path value and mirror the SE's ~28.7pt side bezel.
|
|
15531
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(28.7),
|
|
15532
|
+
safeAreaInsets: { top: 20, bottom: 0, left: 0, right: 0 },
|
|
15533
|
+
keyboardPanelHeights: { qwerty: 226, pad: 226, emoji: 320 },
|
|
15534
|
+
physicalPPI: 326,
|
|
15535
|
+
hardwareButtons: LEGACY_HARDWARE_BUTTONS
|
|
15536
|
+
}),
|
|
15537
|
+
"iphone-14": /* @__PURE__ */ iosDevice({
|
|
15538
|
+
model: "iphone-14",
|
|
15539
|
+
name: "iPhone 14",
|
|
15540
|
+
width: 390,
|
|
15541
|
+
height: 844,
|
|
15542
|
+
statusBarHeight: 47,
|
|
15543
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(46.2),
|
|
15544
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(67.462),
|
|
15545
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(19.5),
|
|
15546
|
+
safeAreaInsets: { top: 47, bottom: 34, left: 0, right: 0 },
|
|
15547
|
+
physicalPPI: 460,
|
|
15548
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
15549
|
+
[141.7, 29.7],
|
|
15550
|
+
[205.9, 69.6],
|
|
15551
|
+
[289.5, 69.6],
|
|
15552
|
+
[228.9, 114.5]
|
|
15553
|
+
)
|
|
15554
|
+
}),
|
|
15555
|
+
"iphone-15": /* @__PURE__ */ iosDevice({
|
|
15556
|
+
model: "iphone-15",
|
|
15557
|
+
name: "iPhone 15",
|
|
15558
|
+
width: 393,
|
|
15559
|
+
height: 852,
|
|
15560
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
|
|
15561
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(73.402),
|
|
15562
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(18.2),
|
|
15563
|
+
dynamicIsland: { width: 125, height: 110 / 3, top: 34 / 3 },
|
|
15564
|
+
statusRowCenter: 32.75,
|
|
15565
|
+
safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
|
|
15566
|
+
physicalPPI: 460,
|
|
15567
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
15568
|
+
[171.7, 32],
|
|
15569
|
+
[235.8, 65.3],
|
|
15570
|
+
[320.5, 65.3],
|
|
15571
|
+
[280.6, 105.2]
|
|
15572
|
+
)
|
|
15573
|
+
}),
|
|
15574
|
+
"iphone-15-plus": /* @__PURE__ */ iosDevice({
|
|
15575
|
+
model: "iphone-15-plus",
|
|
15576
|
+
name: "iPhone 15 Plus",
|
|
15577
|
+
width: 430,
|
|
15578
|
+
height: 932,
|
|
15579
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
|
|
15580
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(74.654),
|
|
15581
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(17.3),
|
|
15582
|
+
dynamicIsland: { width: 376 / 3, height: 110 / 3, top: 34 / 3 },
|
|
15583
|
+
statusRowCenter: 30.05,
|
|
15584
|
+
safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
|
|
15585
|
+
keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
|
|
15586
|
+
physicalPPI: 460,
|
|
15587
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
15588
|
+
[172.1, 33],
|
|
15589
|
+
[236.1, 66.6],
|
|
15590
|
+
[321.2, 66.6],
|
|
15591
|
+
[281, 106.8]
|
|
15592
|
+
)
|
|
15593
|
+
}),
|
|
15594
|
+
"iphone-15-pro": /* @__PURE__ */ iosDevice({
|
|
15595
|
+
model: "iphone-15-pro",
|
|
15596
|
+
name: "iPhone 15 Pro",
|
|
15597
|
+
width: 393,
|
|
15598
|
+
height: 852,
|
|
15599
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
|
|
15600
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(73.402),
|
|
15601
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
|
|
15602
|
+
dynamicIsland: { width: 125, height: 110 / 3, top: 34 / 3 },
|
|
15603
|
+
statusRowCenter: 32.4,
|
|
15604
|
+
safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
|
|
15605
|
+
physicalPPI: 460,
|
|
15606
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
15607
|
+
[159.1, 31.5],
|
|
15608
|
+
[220.1, 61.9],
|
|
15609
|
+
[299, 61.9],
|
|
15610
|
+
[260.8, 98.9]
|
|
15611
|
+
)
|
|
15612
|
+
}),
|
|
15613
|
+
"iphone-15-pro-max": /* @__PURE__ */ iosDevice({
|
|
15614
|
+
model: "iphone-15-pro-max",
|
|
15615
|
+
name: "iPhone 15 Pro Max",
|
|
15616
|
+
width: 430,
|
|
15617
|
+
height: 932,
|
|
15618
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
|
|
15619
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(74.654),
|
|
15620
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
|
|
15621
|
+
dynamicIsland: { width: 376 / 3, height: 110 / 3, top: 34 / 3 },
|
|
15622
|
+
statusRowCenter: 32.3,
|
|
15623
|
+
safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
|
|
15624
|
+
keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
|
|
15625
|
+
physicalPPI: 460,
|
|
15626
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
15627
|
+
[173.3, 32.2],
|
|
15628
|
+
[253.4, 61.7],
|
|
15629
|
+
[343.3, 61.7],
|
|
15630
|
+
[268.5, 98.5]
|
|
15631
|
+
)
|
|
15632
|
+
}),
|
|
15633
|
+
"iphone-16": /* @__PURE__ */ iosDevice({
|
|
15634
|
+
model: "iphone-16",
|
|
15635
|
+
name: "iPhone 16",
|
|
15636
|
+
width: 393,
|
|
15637
|
+
height: 852,
|
|
15638
|
+
// 2026-07-10: cornerRadius corrected 58 → 53.9 to Apple's own framebuffer
|
|
15639
|
+
// mask (extracted from the simdevicetype bundle PDF; see
|
|
15640
|
+
// packages/peach-engine/assets/device-frame-geometry). radius is a paint clip only — the
|
|
15641
|
+
// calibrated conformance-oracle layout fields below are unchanged.
|
|
15642
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
|
|
15643
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(73.402),
|
|
15644
|
+
// uikit's concentric-corner getter on the ios 27 iphone 16 returns 55.
|
|
15645
|
+
systemCornerRadius: /* @__PURE__ */ cornerRadii(55),
|
|
15646
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
|
|
15647
|
+
dynamicIsland: { width: 125, height: 110 / 3, top: 34 / 3 },
|
|
15648
|
+
statusRowCenter: 29.65,
|
|
15649
|
+
safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
|
|
15650
|
+
keyboardPanelHeights: { qwerty: 301, pad: 302, emoji: 395 },
|
|
15651
|
+
physicalPPI: 460,
|
|
15652
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
15653
|
+
[159.1, 31.5],
|
|
15654
|
+
[220.1, 61.9],
|
|
15655
|
+
[299, 61.9],
|
|
15656
|
+
[260.8, 98.9]
|
|
15657
|
+
)
|
|
15658
|
+
}),
|
|
15659
|
+
"iphone-16-plus": /* @__PURE__ */ iosDevice({
|
|
15660
|
+
model: "iphone-16-plus",
|
|
15661
|
+
name: "iPhone 16 Plus",
|
|
15662
|
+
width: 430,
|
|
15663
|
+
height: 932,
|
|
15664
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
|
|
15665
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(74.654),
|
|
15666
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
|
|
15667
|
+
dynamicIsland: { width: 376 / 3, height: 110 / 3, top: 34 / 3 },
|
|
15668
|
+
statusRowCenter: 30.05,
|
|
15669
|
+
safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
|
|
15670
|
+
keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
|
|
15671
|
+
physicalPPI: 460,
|
|
15672
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
15673
|
+
[173.3, 32.2],
|
|
15674
|
+
[253.4, 61.7],
|
|
15675
|
+
[343.3, 61.7],
|
|
15676
|
+
[268.5, 98.5]
|
|
15677
|
+
)
|
|
15678
|
+
}),
|
|
15679
|
+
"iphone-16-pro": /* @__PURE__ */ iosDevice({
|
|
15680
|
+
model: "iphone-16-pro",
|
|
15681
|
+
name: "iPhone 16 Pro",
|
|
15682
|
+
width: 402,
|
|
15683
|
+
height: 874,
|
|
15684
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(61),
|
|
15685
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(84.661),
|
|
15686
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
|
|
15687
|
+
dynamicIsland: { width: 125, height: 110 / 3, top: 14 },
|
|
15688
|
+
statusRowCenter: 32.5,
|
|
15689
|
+
safeAreaInsets: { top: 62, bottom: 34, left: 0, right: 0 },
|
|
15690
|
+
physicalPPI: 460,
|
|
15691
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
15692
|
+
[159.1, 31.5],
|
|
15693
|
+
[220.1, 61.9],
|
|
15694
|
+
[299, 61.9],
|
|
15695
|
+
[260.8, 98.9]
|
|
15696
|
+
)
|
|
15697
|
+
}),
|
|
15698
|
+
"iphone-16-pro-max": /* @__PURE__ */ iosDevice({
|
|
15699
|
+
model: "iphone-16-pro-max",
|
|
15700
|
+
name: "iPhone 16 Pro Max",
|
|
15701
|
+
width: 440,
|
|
15702
|
+
height: 956,
|
|
15703
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(61.3),
|
|
15704
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(85.163),
|
|
15705
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(15.4),
|
|
15706
|
+
dynamicIsland: { width: 376 / 3, height: 110 / 3, top: 14 },
|
|
15707
|
+
statusRowCenter: 33,
|
|
15708
|
+
safeAreaInsets: { top: 62, bottom: 34, left: 0, right: 0 },
|
|
15709
|
+
keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
|
|
15710
|
+
physicalPPI: 460,
|
|
15711
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
15712
|
+
[178.8, 32.2],
|
|
15713
|
+
[266.8, 61.8],
|
|
15714
|
+
[352.7, 61.8],
|
|
15715
|
+
[292.2, 98.3]
|
|
15716
|
+
)
|
|
15717
|
+
}),
|
|
15718
|
+
"iphone-17": /* @__PURE__ */ iosDevice({
|
|
15719
|
+
model: "iphone-17",
|
|
15720
|
+
name: "iPhone 17",
|
|
15721
|
+
width: 402,
|
|
15722
|
+
height: 874,
|
|
15723
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(61),
|
|
15724
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(84.661),
|
|
15725
|
+
// display border 1.44mm plus the visible flat housing rail.
|
|
15726
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
|
|
15727
|
+
dynamicIsland: { width: 125, height: 110 / 3, top: 14 },
|
|
15728
|
+
statusRowCenter: 32.65,
|
|
15729
|
+
safeAreaInsets: { top: 62, bottom: 34, left: 0, right: 0 },
|
|
15730
|
+
physicalPPI: 460,
|
|
15731
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
15732
|
+
[159.1, 31.5],
|
|
15733
|
+
[220.1, 61.9],
|
|
15734
|
+
[299, 61.9],
|
|
15735
|
+
[260.8, 98.9]
|
|
15736
|
+
)
|
|
15737
|
+
}),
|
|
15738
|
+
"iphone-17-air": /* @__PURE__ */ iosDevice({
|
|
15739
|
+
model: "iphone-17-air",
|
|
15740
|
+
// apple markets this as "iphone air" (not "iphone 17 air"). the real air
|
|
15741
|
+
// is 420x912 with thin bezels and a lower-sitting island. it is not the
|
|
15742
|
+
// 430x932 Plus body it used to be cloned from.
|
|
15743
|
+
name: "iPhone Air",
|
|
15744
|
+
width: 420,
|
|
15745
|
+
height: 912,
|
|
15746
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(64.6),
|
|
15747
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(88.313),
|
|
15748
|
+
// WHICH QUANTITY THIS IS, because it has been flipped twice and each pass
|
|
15749
|
+
// read the other one as a bug: frameInsets is the VISIBLE FACE-ON frame —
|
|
15750
|
+
// the black display border plus however much housing rail you actually see
|
|
15751
|
+
// looking straight at the phone. It is NOT the caliper silhouette.
|
|
15752
|
+
//
|
|
15753
|
+
// Apple publishes a 74.7×156.2mm body around a 1260×2736 display at 460ppi,
|
|
15754
|
+
// which is 15.475pt per side to the silhouette; that is the number to use if
|
|
15755
|
+
// you ever need physical dimensions, and it is what commit 4966fe6cac put
|
|
15756
|
+
// here. But most of that width on the Air is curved titanium turning away
|
|
15757
|
+
// from a head-on view, so rendering it as frame draws the Air with the
|
|
15758
|
+
// THICKEST bezel of any iPhone we ship when the real Air has the thinnest.
|
|
15759
|
+
//
|
|
15760
|
+
// So: 1.435mm display border = 8.69pt, plus ~2pt of rail that is actually
|
|
15761
|
+
// face-on. The 17 Pro's flat rail contributes ~6.6pt on the same basis,
|
|
15762
|
+
// which is why it sits at 15.3 and the Air should not.
|
|
15763
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(10.7),
|
|
15764
|
+
dynamicIsland: { width: 125, height: 110 / 3, top: 20 },
|
|
15765
|
+
statusRowCenter: 39,
|
|
15766
|
+
safeAreaInsets: { top: 68, bottom: 34, left: 0, right: 0 },
|
|
15767
|
+
keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
|
|
15768
|
+
physicalPPI: 460,
|
|
15769
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
15770
|
+
[178.8, 32.2],
|
|
15771
|
+
[266.8, 61.8],
|
|
15772
|
+
[352.7, 61.8],
|
|
15773
|
+
[292.2, 98.3]
|
|
15774
|
+
)
|
|
15775
|
+
}),
|
|
15776
|
+
"iphone-17-pro": /* @__PURE__ */ iosDevice({
|
|
15777
|
+
model: "iphone-17-pro",
|
|
15778
|
+
name: "iPhone 17 Pro",
|
|
15779
|
+
width: 402,
|
|
15780
|
+
height: 874,
|
|
15781
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(61),
|
|
15782
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(84.661),
|
|
15783
|
+
// the ios 27 simulator's ContainerRelativeShape at the root draws 62
|
|
15784
|
+
// less its smallest inset from the display (54 at 8pt, 32 at 30pt).
|
|
15785
|
+
systemCornerRadius: /* @__PURE__ */ cornerRadii(62),
|
|
15786
|
+
// display border 1.44mm plus the visible flat housing rail.
|
|
15787
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
|
|
15788
|
+
dynamicIsland: { width: 125, height: 110 / 3, top: 14 },
|
|
15789
|
+
statusRowCenter: 33,
|
|
15790
|
+
safeAreaInsets: { top: 62, bottom: 34, left: 0, right: 0 },
|
|
15791
|
+
// keyboardDidShow on the ios 27.0 simulator: 301 for the default keyboard,
|
|
15792
|
+
// 302 for the number pad.
|
|
15793
|
+
keyboardPanelHeights: { qwerty: 301, pad: 302, emoji: 395 },
|
|
15794
|
+
physicalPPI: 460,
|
|
15795
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
15796
|
+
[159.1, 31.5],
|
|
15797
|
+
[220.1, 61.9],
|
|
15798
|
+
[299, 61.9],
|
|
15799
|
+
[260.8, 98.9]
|
|
15800
|
+
)
|
|
15801
|
+
}),
|
|
15802
|
+
"iphone-17-pro-max": /* @__PURE__ */ iosDevice({
|
|
15803
|
+
model: "iphone-17-pro-max",
|
|
15804
|
+
name: "iPhone 17 Pro Max",
|
|
15805
|
+
width: 440,
|
|
15806
|
+
height: 956,
|
|
15807
|
+
// same ios 26.4 440x956 dynamic island max profile as the measured
|
|
15808
|
+
// iphone 16 pro max screens proof oracle.
|
|
15809
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(61.3),
|
|
15810
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(85.163),
|
|
15811
|
+
// display border 1.36mm plus the visible flat housing rail.
|
|
15812
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(15.4),
|
|
15813
|
+
dynamicIsland: { width: 376 / 3, height: 110 / 3, top: 14 },
|
|
15814
|
+
statusRowCenter: 33,
|
|
15815
|
+
safeAreaInsets: { top: 62, bottom: 34, left: 0, right: 0 },
|
|
15816
|
+
keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
|
|
15817
|
+
physicalPPI: 460,
|
|
15818
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
15819
|
+
[178.8, 32.2],
|
|
15820
|
+
[266.8, 61.8],
|
|
15821
|
+
[352.7, 61.8],
|
|
15822
|
+
[292.2, 98.3]
|
|
15823
|
+
)
|
|
15824
|
+
}),
|
|
15825
|
+
"iphone-duo": {
|
|
15826
|
+
// offered on contributor surfaces only while the 27 home and the hinge
|
|
15827
|
+
// measurements are still settling (nate, 2026-09-15).
|
|
15828
|
+
developmentOnly: true,
|
|
15829
|
+
.../* @__PURE__ */ iosDevice({
|
|
15830
|
+
model: "iphone-duo",
|
|
15831
|
+
name: "iPhone Duo",
|
|
15832
|
+
width: 466,
|
|
15833
|
+
height: 678,
|
|
15834
|
+
statusBarHeight: 66,
|
|
15835
|
+
// the ios 27.1 duo simulator draws the gesture home indicator in both
|
|
15836
|
+
// postures: a 167pt x 5pt pill 8pt above the display bottom on the
|
|
15837
|
+
// cover, sized by the same rule as the other iphones (HomeIndicator).
|
|
15838
|
+
// hinge on the left. the hinge-side display corners measure 5pt in
|
|
15839
|
+
// apple's 2d outer product art; the free side keeps the 61pt pro curve.
|
|
15840
|
+
cornerRadius: { topLeft: 5, topRight: 61, bottomRight: 61, bottomLeft: 5 },
|
|
15841
|
+
continuousCornerRadius: {
|
|
15842
|
+
topLeft: 5,
|
|
15843
|
+
topRight: 61,
|
|
15844
|
+
bottomRight: 61,
|
|
15845
|
+
bottomLeft: 5
|
|
15846
|
+
},
|
|
15847
|
+
// the ios 27.1 duo simulator reports 59, and sheets 8pt in on the free
|
|
15848
|
+
// side carry 51 there (41 at 18pt in).
|
|
15849
|
+
systemCornerRadius: { topLeft: 5, topRight: 59, bottomRight: 59, bottomLeft: 5 },
|
|
15850
|
+
// display edge to silhouette, measured off apple's 2d outer product art
|
|
15851
|
+
// at 3x. the barrel is not part of the body: it protrudes 11.67pt past
|
|
15852
|
+
// the left silhouette, so the full outer width is frame + protrusion.
|
|
15853
|
+
frameInsets: { top: 16.3333, right: 16.3333, bottom: 16, left: 14 },
|
|
15854
|
+
// the spine is a flat cut, so its corners are tiny; the free side keeps
|
|
15855
|
+
// the 75pt body curve the pro bodies use.
|
|
15856
|
+
frameCornerRadius: {
|
|
15857
|
+
topLeft: 4.3333,
|
|
15858
|
+
topRight: 75,
|
|
15859
|
+
bottomRight: 75,
|
|
15860
|
+
bottomLeft: 3.3333
|
|
15861
|
+
},
|
|
15862
|
+
housing: {
|
|
15863
|
+
rail: { top: 7.5, right: 8, bottom: 7.3333, left: 5.3333 },
|
|
15864
|
+
hingeBarrel: { width: 16.6667, endInset: 7.3333, protrusion: 11.6667 }
|
|
15865
|
+
},
|
|
15866
|
+
// 84pt trailing Vertical Bar on the outer display (Apple iOS 27 UI kit).
|
|
15867
|
+
safeAreaInsets: { top: 0, bottom: 34, left: 0, right: 84 },
|
|
15868
|
+
iosVersion: "27.1",
|
|
15869
|
+
// ios 27.1 24a94425: ordinary qwerty host (0,413,466,265)pt;
|
|
15870
|
+
// docs/ios/framework-oracle/keyboard-tray-accessibility-and-duo-recipes.md.
|
|
15871
|
+
// the cover keyboard cells report number pad 269; emoji keeps 338.
|
|
15872
|
+
keyboardPanelHeights: { qwerty: 265, pad: 269, emoji: 338 },
|
|
15873
|
+
physicalPPI: 460,
|
|
15874
|
+
// official model extraction for button positions is outside this slice.
|
|
15875
|
+
hardwareButtons: /* @__PURE__ */ modernButtons([0, 0], [0, 0], [0, 0], [0, 0]),
|
|
15876
|
+
posture: "closed",
|
|
15877
|
+
supportedPostures: ["closed", "open"]
|
|
15878
|
+
}),
|
|
15879
|
+
// the ios 27.1 simulator's camera occlusion region: 37pt, 29 1/3 in from
|
|
15880
|
+
// the top and trailing edges
|
|
15881
|
+
cameraCutout: {
|
|
15882
|
+
diameter: 37,
|
|
15883
|
+
top: 88 / 3,
|
|
15884
|
+
trailing: 88 / 3
|
|
15885
|
+
},
|
|
15886
|
+
// closed portrait popover region on the ios 27.1 duo simulator (uikit
|
|
15887
|
+
// sheet probe, popoverLayoutMargins zero): left 8, the other edges 25.
|
|
15888
|
+
// the open and rotated profiles are unmeasured and drop it.
|
|
15889
|
+
popoverRegionInsets: { left: 8, top: 25, right: 25, bottom: 25 }
|
|
15890
|
+
},
|
|
15891
|
+
"ipad-pro-11": {
|
|
15892
|
+
// frame and hardware buttons are not sourced yet, so this stays off the
|
|
15893
|
+
// shipping picker the same way the duo does.
|
|
15894
|
+
developmentOnly: true,
|
|
15895
|
+
.../* @__PURE__ */ ipadProDevice(
|
|
15896
|
+
"ipad-pro-11",
|
|
15897
|
+
"iPad Pro 11-inch (M5)",
|
|
15898
|
+
834,
|
|
15899
|
+
1210,
|
|
15900
|
+
11,
|
|
15901
|
+
340
|
|
15902
|
+
)
|
|
15903
|
+
},
|
|
15904
|
+
"ipad-pro-13": /* @__PURE__ */ ipadProDevice(
|
|
15905
|
+
"ipad-pro-13",
|
|
15906
|
+
"iPad Pro 13-inch (M5)",
|
|
15907
|
+
1032,
|
|
15908
|
+
1376,
|
|
15909
|
+
13,
|
|
15910
|
+
403
|
|
15911
|
+
),
|
|
15912
|
+
// an iPadOS app window the user resizes, on the iPad Pro 13-inch (M5). the
|
|
15913
|
+
// profile is the launch window; the host sizes it with withWindowSize.
|
|
15914
|
+
// numbers are the iOS 27.0 Stage Manager window in
|
|
15915
|
+
// docs/ios/ipad-window-geometry.md.
|
|
15916
|
+
dynamic: {
|
|
15917
|
+
.../* @__PURE__ */ ipadProDevice("dynamic", "Dynamic Window", 375, 753, 13, 403),
|
|
15918
|
+
// the window starts below the screen's status strip and no home indicator
|
|
15919
|
+
// is drawn in it, so neither insets the window.
|
|
15920
|
+
statusBarHeight: 0,
|
|
15921
|
+
landscapeStatusBarHeight: 0,
|
|
15922
|
+
homeIndicatorHeight: 0,
|
|
15923
|
+
navigationBarMode: "none",
|
|
15924
|
+
// the system clips the window to a 32pt circular arc.
|
|
15925
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(32),
|
|
15926
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(32),
|
|
15927
|
+
// the display's diagonal, not the window's.
|
|
15928
|
+
physicalPPI: Math.hypot(2064, 2752) / 13,
|
|
15929
|
+
safeAreaInsets: { top: 0, bottom: 0, left: 10, right: 10 },
|
|
15930
|
+
packagedOnly: true
|
|
15931
|
+
},
|
|
15932
|
+
"pixel-8": {
|
|
15933
|
+
model: "pixel-8",
|
|
15934
|
+
platform: "android",
|
|
15935
|
+
name: "Pixel 8",
|
|
15936
|
+
width: PIXEL_8_WIDTH,
|
|
15937
|
+
height: PIXEL_8_HEIGHT,
|
|
15938
|
+
scale: 2.625,
|
|
15939
|
+
statusBarHeight: PIXEL_8_STATUS_BAR_HEIGHT,
|
|
15940
|
+
landscapeStatusBarHeight: PIXEL_8_LANDSCAPE_STATUS_BAR_HEIGHT,
|
|
15941
|
+
homeIndicatorHeight: 0,
|
|
15942
|
+
navigationBarHeight: ANDROID_GESTURE_NAV_BAR_HEIGHT,
|
|
15943
|
+
keyboardPanelHeights: GBOARD_PANEL_HEIGHTS,
|
|
15944
|
+
navigationBarMode: "gesture",
|
|
15945
|
+
displayCutout: {
|
|
15946
|
+
top: PIXEL_8_STATUS_BAR_HEIGHT,
|
|
15947
|
+
bottom: 0,
|
|
15948
|
+
left: 0,
|
|
15949
|
+
right: 0
|
|
15950
|
+
},
|
|
15951
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(39),
|
|
15952
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(39),
|
|
15953
|
+
// android studio's pixel 8 device art places the 1080x2400 display at
|
|
15954
|
+
// (49,55) in a 1187x2513 body. the right side button occupies the final
|
|
15955
|
+
// 8 physical pixels, so the body insets are 49/50/58/55 at 2.625x.
|
|
15956
|
+
frameInsets: {
|
|
15957
|
+
top: 55 / 2.625,
|
|
15958
|
+
right: 50 / 2.625,
|
|
15959
|
+
bottom: 58 / 2.625,
|
|
15960
|
+
left: 49 / 2.625
|
|
15961
|
+
},
|
|
15962
|
+
dynamicIsland: null,
|
|
15963
|
+
cameraCutout: { diameter: 72.5 / 2.625 },
|
|
15964
|
+
safeAreaInsets: {
|
|
15965
|
+
top: PIXEL_8_STATUS_BAR_HEIGHT,
|
|
15966
|
+
bottom: ANDROID_GESTURE_NAV_BAR_HEIGHT,
|
|
15967
|
+
left: 0,
|
|
15968
|
+
right: 0
|
|
15969
|
+
},
|
|
15970
|
+
osVersion: ANDROID_OS_VERSION,
|
|
15971
|
+
iosVersion: "",
|
|
15972
|
+
androidApiLevel: ANDROID_API_LEVEL,
|
|
15973
|
+
systemName: "Android",
|
|
15974
|
+
manufacturer: "Google",
|
|
15975
|
+
brand: "google",
|
|
15976
|
+
modelName: "Pixel 8",
|
|
15977
|
+
physicalPPI: 428,
|
|
15978
|
+
hardwareButtons: PIXEL_HARDWARE_BUTTONS
|
|
15979
|
+
},
|
|
15980
|
+
"pixel-8-three-button": {
|
|
15981
|
+
model: "pixel-8-three-button",
|
|
15982
|
+
platform: "android",
|
|
15983
|
+
name: "Pixel 8 (3-button)",
|
|
15984
|
+
width: PIXEL_8_WIDTH,
|
|
15985
|
+
height: PIXEL_8_HEIGHT,
|
|
15986
|
+
scale: 2.625,
|
|
15987
|
+
statusBarHeight: PIXEL_8_STATUS_BAR_HEIGHT,
|
|
15988
|
+
landscapeStatusBarHeight: PIXEL_8_LANDSCAPE_STATUS_BAR_HEIGHT,
|
|
15989
|
+
homeIndicatorHeight: 0,
|
|
15990
|
+
navigationBarHeight: 48,
|
|
15991
|
+
keyboardPanelHeights: GBOARD_PANEL_HEIGHTS,
|
|
15992
|
+
navigationBarMode: "three-button",
|
|
15993
|
+
displayCutout: {
|
|
15994
|
+
top: PIXEL_8_STATUS_BAR_HEIGHT,
|
|
15995
|
+
bottom: 0,
|
|
15996
|
+
left: 0,
|
|
15997
|
+
right: 0
|
|
15998
|
+
},
|
|
15999
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(39),
|
|
16000
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(39),
|
|
16001
|
+
frameInsets: {
|
|
16002
|
+
top: 55 / 2.625,
|
|
16003
|
+
right: 50 / 2.625,
|
|
16004
|
+
bottom: 58 / 2.625,
|
|
16005
|
+
left: 49 / 2.625
|
|
16006
|
+
},
|
|
16007
|
+
dynamicIsland: null,
|
|
16008
|
+
cameraCutout: { diameter: 72.5 / 2.625 },
|
|
16009
|
+
safeAreaInsets: {
|
|
16010
|
+
top: PIXEL_8_STATUS_BAR_HEIGHT,
|
|
16011
|
+
bottom: 48,
|
|
16012
|
+
left: 0,
|
|
16013
|
+
right: 0
|
|
16014
|
+
},
|
|
16015
|
+
osVersion: ANDROID_OS_VERSION,
|
|
16016
|
+
iosVersion: "",
|
|
16017
|
+
androidApiLevel: ANDROID_API_LEVEL,
|
|
16018
|
+
systemName: "Android",
|
|
16019
|
+
manufacturer: "Google",
|
|
16020
|
+
brand: "google",
|
|
16021
|
+
modelName: "Pixel 8",
|
|
16022
|
+
physicalPPI: 428,
|
|
16023
|
+
hardwareButtons: PIXEL_HARDWARE_BUTTONS
|
|
16024
|
+
},
|
|
16025
|
+
"pixel-9-pro-xl": {
|
|
16026
|
+
model: "pixel-9-pro-xl",
|
|
16027
|
+
platform: "android",
|
|
16028
|
+
name: "Pixel 9 Pro XL",
|
|
16029
|
+
width: 448,
|
|
16030
|
+
height: 997,
|
|
16031
|
+
scale: 3,
|
|
16032
|
+
statusBarHeight: 40,
|
|
16033
|
+
landscapeStatusBarHeight: 40,
|
|
16034
|
+
homeIndicatorHeight: 0,
|
|
16035
|
+
navigationBarHeight: ANDROID_GESTURE_NAV_BAR_HEIGHT,
|
|
16036
|
+
keyboardPanelHeights: GBOARD_PANEL_HEIGHTS,
|
|
16037
|
+
navigationBarMode: "gesture",
|
|
16038
|
+
displayCutout: { top: 40, bottom: 0, left: 0, right: 0 },
|
|
16039
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(41),
|
|
16040
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(41),
|
|
16041
|
+
// Pixel 9 Pro XL body 162.8×76.6mm over a 70.2mm panel → ~1.8mm ≈ 12pt.
|
|
16042
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(12),
|
|
16043
|
+
dynamicIsland: null,
|
|
16044
|
+
cameraCutout: { diameter: 24 },
|
|
16045
|
+
safeAreaInsets: {
|
|
16046
|
+
top: 40,
|
|
16047
|
+
bottom: ANDROID_GESTURE_NAV_BAR_HEIGHT,
|
|
16048
|
+
left: 0,
|
|
16049
|
+
right: 0
|
|
16050
|
+
},
|
|
16051
|
+
osVersion: ANDROID_OS_VERSION,
|
|
16052
|
+
iosVersion: "",
|
|
16053
|
+
androidApiLevel: ANDROID_API_LEVEL,
|
|
16054
|
+
systemName: "Android",
|
|
16055
|
+
manufacturer: "Google",
|
|
16056
|
+
brand: "google",
|
|
16057
|
+
modelName: "Pixel 9 Pro XL",
|
|
16058
|
+
physicalPPI: 486,
|
|
16059
|
+
hardwareButtons: PIXEL_HARDWARE_BUTTONS
|
|
16060
|
+
},
|
|
16061
|
+
"pixel-10": {
|
|
16062
|
+
model: "pixel-10",
|
|
16063
|
+
platform: "android",
|
|
16064
|
+
name: "Pixel 10",
|
|
16065
|
+
width: 360,
|
|
16066
|
+
height: 808,
|
|
16067
|
+
scale: 3,
|
|
16068
|
+
statusBarHeight: 40,
|
|
16069
|
+
landscapeStatusBarHeight: 40,
|
|
16070
|
+
homeIndicatorHeight: 0,
|
|
16071
|
+
navigationBarHeight: ANDROID_GESTURE_NAV_BAR_HEIGHT,
|
|
16072
|
+
keyboardPanelHeights: GBOARD_PANEL_HEIGHTS,
|
|
16073
|
+
navigationBarMode: "gesture",
|
|
16074
|
+
displayCutout: { top: 40, bottom: 0, left: 0, right: 0 },
|
|
16075
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(40),
|
|
16076
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(40),
|
|
16077
|
+
// the 72mm body surrounds a roughly 65.1mm-wide 6.3-inch panel, which
|
|
16078
|
+
// resolves to about 18 logical points of frame around the 1080px display.
|
|
16079
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(18),
|
|
16080
|
+
dynamicIsland: null,
|
|
16081
|
+
cameraCutout: { diameter: 26 },
|
|
16082
|
+
safeAreaInsets: {
|
|
16083
|
+
top: 40,
|
|
16084
|
+
bottom: ANDROID_GESTURE_NAV_BAR_HEIGHT,
|
|
16085
|
+
left: 0,
|
|
16086
|
+
right: 0
|
|
16087
|
+
},
|
|
16088
|
+
osVersion: ANDROID_OS_VERSION,
|
|
16089
|
+
iosVersion: "",
|
|
16090
|
+
androidApiLevel: ANDROID_API_LEVEL,
|
|
16091
|
+
systemName: "Android",
|
|
16092
|
+
manufacturer: "Google",
|
|
16093
|
+
brand: "google",
|
|
16094
|
+
modelName: "Pixel 10",
|
|
16095
|
+
physicalPPI: 422,
|
|
16096
|
+
hardwareButtons: PIXEL_HARDWARE_BUTTONS
|
|
16097
|
+
},
|
|
16098
|
+
"galaxy-s24": {
|
|
16099
|
+
model: "galaxy-s24",
|
|
16100
|
+
platform: "android",
|
|
16101
|
+
name: "Galaxy S24",
|
|
16102
|
+
width: 360,
|
|
16103
|
+
height: 780,
|
|
16104
|
+
scale: 3,
|
|
16105
|
+
statusBarHeight: 36,
|
|
16106
|
+
landscapeStatusBarHeight: 36,
|
|
16107
|
+
homeIndicatorHeight: 0,
|
|
16108
|
+
navigationBarHeight: ANDROID_GESTURE_NAV_BAR_HEIGHT,
|
|
16109
|
+
keyboardPanelHeights: GBOARD_PANEL_HEIGHTS,
|
|
16110
|
+
navigationBarMode: "gesture",
|
|
16111
|
+
displayCutout: { top: 36, bottom: 0, left: 0, right: 0 },
|
|
16112
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(36),
|
|
16113
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(36),
|
|
16114
|
+
// Galaxy S24 body 147.0×70.6mm over a 65.9mm panel → ~1.2mm ≈ 8pt (Samsung
|
|
16115
|
+
// flat-display bezels are noticeably thinner than Pixel's).
|
|
16116
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(8),
|
|
16117
|
+
dynamicIsland: null,
|
|
16118
|
+
cameraCutout: { diameter: 18 },
|
|
16119
|
+
safeAreaInsets: {
|
|
16120
|
+
top: 36,
|
|
16121
|
+
bottom: ANDROID_GESTURE_NAV_BAR_HEIGHT,
|
|
16122
|
+
left: 0,
|
|
16123
|
+
right: 0
|
|
16124
|
+
},
|
|
16125
|
+
osVersion: ANDROID_OS_VERSION,
|
|
16126
|
+
iosVersion: "",
|
|
16127
|
+
androidApiLevel: ANDROID_API_LEVEL,
|
|
16128
|
+
systemName: "Android",
|
|
16129
|
+
manufacturer: "Samsung",
|
|
16130
|
+
brand: "samsung",
|
|
16131
|
+
modelName: "SM-S921B",
|
|
16132
|
+
physicalPPI: 416,
|
|
16133
|
+
hardwareButtons: GALAXY_HARDWARE_BUTTONS
|
|
16134
|
+
},
|
|
16135
|
+
"galaxy-s24-ultra": {
|
|
16136
|
+
model: "galaxy-s24-ultra",
|
|
16137
|
+
platform: "android",
|
|
16138
|
+
name: "Galaxy S24 Ultra",
|
|
16139
|
+
width: 384,
|
|
16140
|
+
// samsung publishes a 1440x3120 panel; 3.75x resolves to 384x832.
|
|
16141
|
+
height: 832,
|
|
16142
|
+
scale: 3.75,
|
|
16143
|
+
statusBarHeight: 36,
|
|
16144
|
+
landscapeStatusBarHeight: 36,
|
|
16145
|
+
homeIndicatorHeight: 0,
|
|
16146
|
+
navigationBarHeight: ANDROID_GESTURE_NAV_BAR_HEIGHT,
|
|
16147
|
+
keyboardPanelHeights: GBOARD_PANEL_HEIGHTS,
|
|
16148
|
+
navigationBarMode: "gesture",
|
|
16149
|
+
displayCutout: { top: 36, bottom: 0, left: 0, right: 0 },
|
|
16150
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(24),
|
|
16151
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(24),
|
|
16152
|
+
// Galaxy S24 Ultra body 162.3×79.0mm over a 72.4mm panel → ~1.5mm ≈ 9pt.
|
|
16153
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(9),
|
|
16154
|
+
dynamicIsland: null,
|
|
16155
|
+
cameraCutout: { diameter: 18 },
|
|
16156
|
+
safeAreaInsets: {
|
|
16157
|
+
top: 36,
|
|
16158
|
+
bottom: ANDROID_GESTURE_NAV_BAR_HEIGHT,
|
|
16159
|
+
left: 0,
|
|
16160
|
+
right: 0
|
|
16161
|
+
},
|
|
16162
|
+
osVersion: ANDROID_OS_VERSION,
|
|
16163
|
+
iosVersion: "",
|
|
16164
|
+
androidApiLevel: ANDROID_API_LEVEL,
|
|
16165
|
+
systemName: "Android",
|
|
16166
|
+
manufacturer: "Samsung",
|
|
16167
|
+
brand: "samsung",
|
|
16168
|
+
modelName: "SM-S928B",
|
|
16169
|
+
physicalPPI: 505,
|
|
16170
|
+
hardwareButtons: GALAXY_HARDWARE_BUTTONS
|
|
16171
|
+
}
|
|
16172
|
+
};
|
|
16173
|
+
devices = profiles;
|
|
16174
|
+
DEFAULT_DEVICE = "iphone-17-pro";
|
|
16175
|
+
}
|
|
16176
|
+
});
|
|
16177
|
+
|
|
16178
|
+
// src/menuContract.ts
|
|
16179
|
+
var SOOTSIM_AMBIENT_GLOW_LEVELS, SOOTSIM_STAGE_BACKGROUNDS, SOOTSIM_RENDER_RESOLUTION_LEVELS;
|
|
16180
|
+
var init_menuContract = __esm({
|
|
16181
|
+
"src/menuContract.ts"() {
|
|
16182
|
+
"use strict";
|
|
16183
|
+
SOOTSIM_AMBIENT_GLOW_LEVELS = ["off", "soft", "full"];
|
|
16184
|
+
SOOTSIM_STAGE_BACKGROUNDS = ["system", "light", "dark", "gray"];
|
|
16185
|
+
SOOTSIM_RENDER_RESOLUTION_LEVELS = ["high", "medium", "low"];
|
|
16186
|
+
}
|
|
16187
|
+
});
|
|
16188
|
+
|
|
16189
|
+
// src/reactNativeConfigurationContract.ts
|
|
16190
|
+
var DEFAULT_REACT_NATIVE_CONFIGURATION, REACT_NATIVE_CONFIGURATION_KEYS;
|
|
16191
|
+
var init_reactNativeConfigurationContract = __esm({
|
|
16192
|
+
"src/reactNativeConfigurationContract.ts"() {
|
|
16193
|
+
"use strict";
|
|
16194
|
+
DEFAULT_REACT_NATIVE_CONFIGURATION = {
|
|
16195
|
+
// the appearance setting itself (automatic, light or dark); the resolved
|
|
16196
|
+
// scheme reaches workers through Appearance
|
|
16197
|
+
colorScheme: "auto",
|
|
16198
|
+
language: "en",
|
|
16199
|
+
preferredLanguages: Array(),
|
|
16200
|
+
region: "US",
|
|
16201
|
+
fontSize: 1,
|
|
16202
|
+
boldText: false,
|
|
16203
|
+
reduceMotion: false,
|
|
16204
|
+
largerAccessibilitySizes: false,
|
|
16205
|
+
glassTintAmount: 0.5,
|
|
16206
|
+
reduceTransparency: false,
|
|
16207
|
+
increaseContrast: false,
|
|
16208
|
+
showBorders: false,
|
|
16209
|
+
onOffLabels: false,
|
|
16210
|
+
differentiateWithoutColor: false,
|
|
16211
|
+
smartInvert: false,
|
|
16212
|
+
preferCrossFadeTransitions: false
|
|
16213
|
+
};
|
|
16214
|
+
REACT_NATIVE_CONFIGURATION_KEYS = Object.keys(
|
|
16215
|
+
DEFAULT_REACT_NATIVE_CONFIGURATION
|
|
16216
|
+
).filter(
|
|
16217
|
+
(key) => key in DEFAULT_REACT_NATIVE_CONFIGURATION
|
|
16218
|
+
);
|
|
16219
|
+
}
|
|
16220
|
+
});
|
|
16221
|
+
|
|
16222
|
+
// src/screenshots/preset-names.ts
|
|
16223
|
+
var SCREENSHOT_CANVAS_NAMES, BACKGROUND_PRESET_NAMES, TEXT_PRESET_NAMES, POSE_PRESET_NAMES;
|
|
16224
|
+
var init_preset_names = __esm({
|
|
16225
|
+
"src/screenshots/preset-names.ts"() {
|
|
16226
|
+
"use strict";
|
|
16227
|
+
SCREENSHOT_CANVAS_NAMES = [
|
|
16228
|
+
"iphone-6-9",
|
|
16229
|
+
"iphone-6-1",
|
|
16230
|
+
"ipad-pro-13",
|
|
16231
|
+
"android-phone",
|
|
16232
|
+
"android-tablet-7",
|
|
16233
|
+
"android-tablet-10"
|
|
16234
|
+
];
|
|
16235
|
+
BACKGROUND_PRESET_NAMES = ["dark", "cyan", "gold", "red"];
|
|
16236
|
+
TEXT_PRESET_NAMES = [
|
|
16237
|
+
"bold-top",
|
|
16238
|
+
"editorial-left",
|
|
16239
|
+
"minimal-bottom",
|
|
16240
|
+
"none"
|
|
16241
|
+
];
|
|
16242
|
+
POSE_PRESET_NAMES = [
|
|
16243
|
+
"straight",
|
|
16244
|
+
"tilted-left",
|
|
16245
|
+
"tilted-right",
|
|
16246
|
+
"cut-bottom",
|
|
16247
|
+
"cut-top"
|
|
16248
|
+
];
|
|
16249
|
+
}
|
|
16250
|
+
});
|
|
16251
|
+
|
|
16252
|
+
// src/settingsContract.ts
|
|
16253
|
+
function isValidSettingValue(key, value) {
|
|
16254
|
+
const def = settingsSchema[key];
|
|
16255
|
+
if (!def || typeof value !== SETTING_VALUE_TYPES[def.type]) return false;
|
|
16256
|
+
if (def.options && !def.options.some((option) => option === value)) return false;
|
|
16257
|
+
return !def.validate || def.validate(value);
|
|
16258
|
+
}
|
|
16259
|
+
function isProfileSettingKey(key) {
|
|
16260
|
+
return PROFILE_SETTING_KEYS.some((profileKey) => profileKey === key);
|
|
16261
|
+
}
|
|
16262
|
+
function isValidProfileValue(key, value) {
|
|
16263
|
+
if (!isValidSettingValue(key, value)) return false;
|
|
16264
|
+
return key !== "fontSize" || IOS_DYNAMIC_TYPE_SCALES.some((scale) => scale === value);
|
|
16265
|
+
}
|
|
16266
|
+
function describeSettingValues(key) {
|
|
16267
|
+
if (key === "fontSize")
|
|
16268
|
+
return `a Dynamic Type size (${IOS_DYNAMIC_TYPE_SCALES.join(", ")})`;
|
|
16269
|
+
const def = settingsSchema[key];
|
|
16270
|
+
if (def.type === "boolean") return "on or off";
|
|
16271
|
+
if (def.options) return def.options.join(", ");
|
|
16272
|
+
if (def.type === "string-array") return "a comma separated list";
|
|
16273
|
+
if (def.type === "number") return def.validate ? "a number in its range" : "a number";
|
|
16274
|
+
return "text";
|
|
16275
|
+
}
|
|
16276
|
+
function readSettingsProfile(value, label) {
|
|
16277
|
+
if (typeof value !== "object" || value === null || Array.isArray(value))
|
|
16278
|
+
throw new Error(`${label} must be an object of settings`);
|
|
16279
|
+
const profile = {};
|
|
16280
|
+
for (const [key, setting] of Object.entries(value)) {
|
|
16281
|
+
if (!isProfileSettingKey(key))
|
|
16282
|
+
throw new Error(
|
|
16283
|
+
`${label}: unknown setting "${key}". profiles set ${PROFILE_SETTING_KEYS.join(", ")}`
|
|
16284
|
+
);
|
|
16285
|
+
if (!isValidProfileValue(key, setting))
|
|
16286
|
+
throw new Error(
|
|
16287
|
+
`${label}: ${key} must be ${describeSettingValues(key)}, got ${JSON.stringify(setting)}`
|
|
16288
|
+
);
|
|
16289
|
+
profile[key] = setting;
|
|
16290
|
+
}
|
|
16291
|
+
return profile;
|
|
16292
|
+
}
|
|
16293
|
+
var SIMULATED_DEVICE_SETTING_KEYS, settingsSchema, SETTING_VALUE_TYPES, DEFAULT_SIMULATED_DEVICE_SETTINGS, PROFILE_SETTING_KEYS;
|
|
16294
|
+
var init_settingsContract = __esm({
|
|
16295
|
+
"src/settingsContract.ts"() {
|
|
16296
|
+
"use strict";
|
|
16297
|
+
init_dynamic_type_scales();
|
|
16298
|
+
init_profilerContract();
|
|
16299
|
+
init_device_catalog();
|
|
16300
|
+
init_menuContract();
|
|
16301
|
+
init_reactNativeConfigurationContract();
|
|
16302
|
+
init_preset_names();
|
|
16303
|
+
SIMULATED_DEVICE_SETTING_KEYS = [
|
|
16304
|
+
"predictiveText",
|
|
16305
|
+
"colorScheme",
|
|
16306
|
+
"reduceMotion",
|
|
16307
|
+
"boldText",
|
|
16308
|
+
"fontSize",
|
|
16309
|
+
"largerAccessibilitySizes",
|
|
16310
|
+
"glassTintAmount",
|
|
16311
|
+
"reduceTransparency",
|
|
16312
|
+
"increaseContrast",
|
|
16313
|
+
"showBorders",
|
|
16314
|
+
"onOffLabels",
|
|
16315
|
+
"differentiateWithoutColor",
|
|
16316
|
+
"smartInvert",
|
|
16317
|
+
"preferCrossFadeTransitions"
|
|
16318
|
+
];
|
|
16319
|
+
settingsSchema = {
|
|
16320
|
+
// device
|
|
16321
|
+
deviceModel: {
|
|
16322
|
+
type: "enum",
|
|
16323
|
+
default: DEFAULT_DEVICE,
|
|
16324
|
+
description: "device model to simulate",
|
|
16325
|
+
options: listDeviceModels(),
|
|
16326
|
+
group: "device"
|
|
16327
|
+
},
|
|
16328
|
+
posture: {
|
|
16329
|
+
type: "enum",
|
|
16330
|
+
default: "closed",
|
|
16331
|
+
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",
|
|
16332
|
+
options: ["closed", "open"],
|
|
16333
|
+
group: "device"
|
|
16334
|
+
},
|
|
16335
|
+
orientation: {
|
|
16336
|
+
type: "enum",
|
|
16337
|
+
default: "portrait",
|
|
16338
|
+
description: "screen orientation",
|
|
16339
|
+
options: ["portrait", "landscape"],
|
|
16340
|
+
group: "device"
|
|
16341
|
+
},
|
|
16342
|
+
landscapeSide: {
|
|
16343
|
+
type: "enum",
|
|
16344
|
+
default: "left",
|
|
16345
|
+
description: "which landscape the device turns to: left (clockwise) or right",
|
|
16346
|
+
options: ["left", "right"],
|
|
16347
|
+
group: "device"
|
|
16348
|
+
},
|
|
16349
|
+
// an iPadOS window launches at 375 x 753 (docs/ios/ipad-window-geometry.md)
|
|
16350
|
+
dynamicWidth: {
|
|
16351
|
+
type: "number",
|
|
16352
|
+
default: devices.dynamic.width,
|
|
16353
|
+
description: "dynamic window width in points",
|
|
16354
|
+
group: "device",
|
|
16355
|
+
validate: (value) => value >= DYNAMIC_WINDOW_LIMITS.minWidth && value <= DYNAMIC_WINDOW_LIMITS.maxWidth
|
|
16356
|
+
},
|
|
16357
|
+
dynamicHeight: {
|
|
16358
|
+
type: "number",
|
|
16359
|
+
default: devices.dynamic.height,
|
|
16360
|
+
description: "dynamic window height in points",
|
|
16361
|
+
group: "device",
|
|
16362
|
+
validate: (value) => value >= DYNAMIC_WINDOW_LIMITS.minHeight && value <= DYNAMIC_WINDOW_LIMITS.maxHeight
|
|
16363
|
+
},
|
|
16364
|
+
osVersionOverride: {
|
|
16365
|
+
type: "string",
|
|
16366
|
+
default: "",
|
|
16367
|
+
description: "os version the device reports instead of its profile's (empty = the profile's version); set per launch with ?osVersion=, never saved",
|
|
16368
|
+
group: "device"
|
|
16369
|
+
},
|
|
16370
|
+
predictiveText: {
|
|
16371
|
+
type: "boolean",
|
|
16372
|
+
default: true,
|
|
16373
|
+
description: "keyboard predictive text (off hides the QuickType lane)",
|
|
16374
|
+
group: "device"
|
|
16375
|
+
},
|
|
16376
|
+
hardwareKeyboard: {
|
|
16377
|
+
type: "boolean",
|
|
16378
|
+
default: false,
|
|
16379
|
+
description: "connect the host keyboard: typing needs no on-screen keyboard",
|
|
16380
|
+
group: "device"
|
|
16381
|
+
},
|
|
16382
|
+
// appearance
|
|
16383
|
+
colorScheme: {
|
|
16384
|
+
type: "enum",
|
|
16385
|
+
default: "auto",
|
|
16386
|
+
description: "color scheme (auto follows system preference)",
|
|
16387
|
+
options: ["light", "dark", "auto"],
|
|
16388
|
+
group: "appearance"
|
|
16389
|
+
},
|
|
16390
|
+
reduceMotion: {
|
|
16391
|
+
type: "boolean",
|
|
16392
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.reduceMotion,
|
|
16393
|
+
description: "reduce motion",
|
|
16394
|
+
group: "appearance"
|
|
16395
|
+
},
|
|
16396
|
+
boldText: {
|
|
16397
|
+
type: "boolean",
|
|
16398
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.boldText,
|
|
16399
|
+
description: "bold text",
|
|
16400
|
+
group: "appearance"
|
|
16401
|
+
},
|
|
16402
|
+
fontSize: {
|
|
16403
|
+
type: "number",
|
|
16404
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.fontSize,
|
|
16405
|
+
description: "font size multiplier (1.0 = default)",
|
|
16406
|
+
group: "appearance",
|
|
16407
|
+
// android permits continuous font scales; ios settings and capture urls
|
|
16408
|
+
// constrain their own inputs to the discrete dynamic type ramp.
|
|
16409
|
+
validate: (value) => value >= 0.5 && value <= 4
|
|
16410
|
+
},
|
|
16411
|
+
largerAccessibilitySizes: {
|
|
16412
|
+
type: "boolean",
|
|
16413
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.largerAccessibilitySizes,
|
|
16414
|
+
description: "show accessibility categories in the dynamic type size picker",
|
|
16415
|
+
group: "appearance"
|
|
16416
|
+
},
|
|
16417
|
+
reduceTransparency: {
|
|
16418
|
+
type: "boolean",
|
|
16419
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.reduceTransparency,
|
|
16420
|
+
description: "reduce transparency",
|
|
16421
|
+
group: "appearance"
|
|
16422
|
+
},
|
|
16423
|
+
increaseContrast: {
|
|
16424
|
+
type: "boolean",
|
|
16425
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.increaseContrast,
|
|
16426
|
+
description: "increase contrast",
|
|
16427
|
+
group: "appearance"
|
|
16428
|
+
},
|
|
16429
|
+
showBorders: {
|
|
16430
|
+
type: "boolean",
|
|
16431
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.showBorders,
|
|
16432
|
+
description: "show borders on text buttons",
|
|
16433
|
+
group: "appearance"
|
|
16434
|
+
},
|
|
16435
|
+
onOffLabels: {
|
|
16436
|
+
type: "boolean",
|
|
16437
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.onOffLabels,
|
|
16438
|
+
description: "on/off labels inside switches",
|
|
16439
|
+
group: "appearance"
|
|
16440
|
+
},
|
|
16441
|
+
differentiateWithoutColor: {
|
|
16442
|
+
type: "boolean",
|
|
16443
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.differentiateWithoutColor,
|
|
16444
|
+
description: "differentiate without color",
|
|
16445
|
+
group: "appearance"
|
|
16446
|
+
},
|
|
16447
|
+
smartInvert: {
|
|
16448
|
+
type: "boolean",
|
|
16449
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.smartInvert,
|
|
16450
|
+
description: "smart invert",
|
|
16451
|
+
group: "appearance"
|
|
16452
|
+
},
|
|
16453
|
+
preferCrossFadeTransitions: {
|
|
16454
|
+
type: "boolean",
|
|
16455
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.preferCrossFadeTransitions,
|
|
16456
|
+
description: "prefer cross-fade transitions while reduce motion is on",
|
|
16457
|
+
group: "appearance"
|
|
16458
|
+
},
|
|
16459
|
+
// ios persists the slider as com.apple.UIKit UIViewGlassTintAmount in steps
|
|
16460
|
+
// of 0.05; with the key absent the material reads the middle.
|
|
16461
|
+
glassTintAmount: {
|
|
16462
|
+
type: "number",
|
|
16463
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.glassTintAmount,
|
|
16464
|
+
description: "liquid glass tint amount (0 most clear, 0.5 default, 1 most tinted)",
|
|
16465
|
+
group: "appearance",
|
|
16466
|
+
validate: (value) => value >= 0 && value <= 1
|
|
16467
|
+
},
|
|
16468
|
+
// locale
|
|
16469
|
+
language: {
|
|
16470
|
+
type: "string",
|
|
16471
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.language,
|
|
16472
|
+
description: "language code (ISO 639-1)",
|
|
16473
|
+
group: "locale"
|
|
16474
|
+
},
|
|
16475
|
+
preferredLanguages: {
|
|
16476
|
+
type: "string-array",
|
|
16477
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.preferredLanguages,
|
|
16478
|
+
description: "ordered preferred language tags; empty follows language and region",
|
|
16479
|
+
group: "locale",
|
|
16480
|
+
validate: (value) => {
|
|
16481
|
+
if (!Array.isArray(value)) return false;
|
|
16482
|
+
return value.every((tag) => {
|
|
16483
|
+
if (typeof tag !== "string" || !tag) return false;
|
|
16484
|
+
try {
|
|
16485
|
+
return Intl.getCanonicalLocales(tag).length === 1;
|
|
16486
|
+
} catch {
|
|
16487
|
+
return false;
|
|
16488
|
+
}
|
|
16489
|
+
});
|
|
16490
|
+
}
|
|
16491
|
+
},
|
|
16492
|
+
region: {
|
|
16493
|
+
type: "string",
|
|
16494
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.region,
|
|
16495
|
+
description: "region code (ISO 3166-1)",
|
|
16496
|
+
group: "locale"
|
|
16497
|
+
},
|
|
16498
|
+
// simulator
|
|
16499
|
+
renderDensity: {
|
|
16500
|
+
type: "number",
|
|
16501
|
+
default: 0,
|
|
16502
|
+
description: "explicit render density in device pixels per point for high-resolution capture (0 = follow the render resolution level)",
|
|
16503
|
+
group: "simulator",
|
|
16504
|
+
validate: (v7) => v7 === 0 || v7 >= 1 && v7 <= 9
|
|
16505
|
+
},
|
|
16506
|
+
renderResolution: {
|
|
16507
|
+
type: "enum",
|
|
16508
|
+
default: "medium",
|
|
16509
|
+
description: "how many pixels Peach renders per iphone point (high = device native, medium = 2, low = on-screen pixels capped at native)",
|
|
16510
|
+
options: SOOTSIM_RENDER_RESOLUTION_LEVELS,
|
|
16511
|
+
group: "simulator"
|
|
16512
|
+
},
|
|
16513
|
+
slowAnimations: {
|
|
16514
|
+
type: "boolean",
|
|
16515
|
+
default: false,
|
|
16516
|
+
description: "Run simulated app and OS animations at one tenth speed",
|
|
16517
|
+
group: "simulator"
|
|
16518
|
+
},
|
|
16519
|
+
profilerCategories: {
|
|
16520
|
+
type: "string",
|
|
16521
|
+
default: formatProfilerCategories(DEFAULT_PROFILER_CATEGORIES),
|
|
16522
|
+
description: "Categories the Performance pane records, comma separated",
|
|
16523
|
+
group: "simulator"
|
|
16524
|
+
},
|
|
16525
|
+
showTouches: {
|
|
16526
|
+
type: "boolean",
|
|
16527
|
+
default: false,
|
|
16528
|
+
description: "show touch indicators",
|
|
16529
|
+
group: "simulator"
|
|
16530
|
+
},
|
|
16531
|
+
systemCursor: {
|
|
16532
|
+
type: "boolean",
|
|
16533
|
+
default: false,
|
|
16534
|
+
description: "keep the computer pointer instead of a touch cursor",
|
|
16535
|
+
group: "simulator"
|
|
16536
|
+
},
|
|
16537
|
+
showFrame: {
|
|
16538
|
+
type: "boolean",
|
|
16539
|
+
default: true,
|
|
16540
|
+
description: "show device frame",
|
|
16541
|
+
group: "simulator"
|
|
16542
|
+
},
|
|
16543
|
+
showMenuBar: {
|
|
16544
|
+
type: "boolean",
|
|
16545
|
+
default: true,
|
|
16546
|
+
description: "keep the menu bar visible instead of revealing it at the top edge",
|
|
16547
|
+
group: "simulator"
|
|
16548
|
+
},
|
|
16549
|
+
showRail: {
|
|
16550
|
+
type: "boolean",
|
|
16551
|
+
default: true,
|
|
16552
|
+
description: "keep the rail visible instead of revealing it on hover",
|
|
16553
|
+
group: "simulator"
|
|
16554
|
+
},
|
|
16555
|
+
agentIndicator: {
|
|
16556
|
+
type: "boolean",
|
|
16557
|
+
default: true,
|
|
16558
|
+
description: "show the connected agent indicator over the device while a CLI or agent drives it",
|
|
16559
|
+
group: "simulator"
|
|
16560
|
+
},
|
|
16561
|
+
solidWindow: {
|
|
16562
|
+
type: "boolean",
|
|
16563
|
+
default: false,
|
|
16564
|
+
description: "desktop app: always use the solid, freely-resizable window instead of the device-shaped transparent one (3d mode uses it regardless)",
|
|
16565
|
+
group: "simulator"
|
|
16566
|
+
},
|
|
16567
|
+
ambientGlow: {
|
|
16568
|
+
type: "enum",
|
|
16569
|
+
default: "off",
|
|
16570
|
+
description: "bleed the app's own edge colors outward behind the device, like bias lighting behind a TV (off, soft, full)",
|
|
16571
|
+
options: SOOTSIM_AMBIENT_GLOW_LEVELS,
|
|
16572
|
+
group: "simulator"
|
|
16573
|
+
},
|
|
16574
|
+
stageBackground: {
|
|
16575
|
+
type: "enum",
|
|
16576
|
+
default: "system",
|
|
16577
|
+
description: "the stage behind the device: system follows the computer's appearance (white in light mode, black in dark), or light, dark or gray",
|
|
16578
|
+
options: SOOTSIM_STAGE_BACKGROUNDS,
|
|
16579
|
+
group: "simulator"
|
|
16580
|
+
},
|
|
16581
|
+
stageChecker: {
|
|
16582
|
+
type: "boolean",
|
|
16583
|
+
default: true,
|
|
16584
|
+
description: "a faint checker pattern on the stage behind the device, under the glow",
|
|
16585
|
+
group: "simulator"
|
|
16586
|
+
},
|
|
16587
|
+
screenshotMode: {
|
|
16588
|
+
type: "boolean",
|
|
16589
|
+
default: false,
|
|
16590
|
+
description: "show screenshot composition mode in the browser shell",
|
|
16591
|
+
group: "simulator"
|
|
16592
|
+
},
|
|
16593
|
+
screenshotCanvasEditing: {
|
|
16594
|
+
type: "boolean",
|
|
16595
|
+
default: false,
|
|
16596
|
+
description: "experimental figma-style slide editing: draggable copy block, drop-in image layers (owner review pending)",
|
|
16597
|
+
group: "simulator"
|
|
16598
|
+
},
|
|
16599
|
+
threeMode: {
|
|
16600
|
+
type: "boolean",
|
|
16601
|
+
default: false,
|
|
16602
|
+
description: "show the experimental 3d device stage in the browser shell",
|
|
16603
|
+
group: "simulator"
|
|
16604
|
+
},
|
|
16605
|
+
threeRecordingEditor: {
|
|
16606
|
+
type: "boolean",
|
|
16607
|
+
default: false,
|
|
16608
|
+
description: "dock the 3d recording editor in the 3d stage (toggled from its rail)",
|
|
16609
|
+
group: "simulator"
|
|
16610
|
+
},
|
|
16611
|
+
screenshotCanvas: {
|
|
16612
|
+
type: "enum",
|
|
16613
|
+
default: "iphone-6-9",
|
|
16614
|
+
description: "target app-store canvas preset for screenshot mode",
|
|
16615
|
+
options: SCREENSHOT_CANVAS_NAMES,
|
|
16616
|
+
group: "simulator"
|
|
16617
|
+
},
|
|
16618
|
+
screenshotBackground: {
|
|
16619
|
+
type: "enum",
|
|
16620
|
+
default: "dark",
|
|
16621
|
+
description: "background preset rendered inside the screenshot canvas",
|
|
16622
|
+
options: BACKGROUND_PRESET_NAMES,
|
|
16623
|
+
group: "simulator"
|
|
16624
|
+
},
|
|
16625
|
+
screenshotText: {
|
|
16626
|
+
type: "enum",
|
|
16627
|
+
default: "bold-top",
|
|
16628
|
+
description: "text layout preset for the screenshot canvas",
|
|
16629
|
+
options: TEXT_PRESET_NAMES,
|
|
16630
|
+
group: "simulator"
|
|
16631
|
+
},
|
|
16632
|
+
screenshotPose: {
|
|
16633
|
+
type: "enum",
|
|
16634
|
+
default: "straight",
|
|
16635
|
+
description: "device pose preset inside the screenshot canvas",
|
|
16636
|
+
options: POSE_PRESET_NAMES,
|
|
16637
|
+
group: "simulator"
|
|
16638
|
+
},
|
|
16639
|
+
screenshotDynamicSize: {
|
|
16640
|
+
type: "boolean",
|
|
16641
|
+
default: false,
|
|
16642
|
+
description: "let the screenshot canvas rect fit available space (off = pin to exact preset pixels)",
|
|
16643
|
+
group: "simulator"
|
|
16644
|
+
},
|
|
16645
|
+
showStatusBar: {
|
|
16646
|
+
type: "boolean",
|
|
16647
|
+
default: true,
|
|
16648
|
+
description: "show status bar",
|
|
16649
|
+
group: "simulator"
|
|
16650
|
+
},
|
|
16651
|
+
showHomeIndicator: {
|
|
16652
|
+
type: "boolean",
|
|
16653
|
+
default: true,
|
|
16654
|
+
description: "show home indicator",
|
|
16655
|
+
group: "simulator"
|
|
16656
|
+
},
|
|
16657
|
+
alwaysShowLiveWebViews: {
|
|
16658
|
+
type: "boolean",
|
|
16659
|
+
default: false,
|
|
16660
|
+
description: "always render WebViews as live browser views",
|
|
16661
|
+
group: "simulator"
|
|
16662
|
+
},
|
|
16663
|
+
a11yMode: {
|
|
16664
|
+
type: "enum",
|
|
16665
|
+
default: "delayed",
|
|
16666
|
+
description: "accessibility tree sync mode (off, delayed=100ms, active=30ms)",
|
|
16667
|
+
options: ["off", "delayed", "active"],
|
|
16668
|
+
group: "simulator"
|
|
16669
|
+
},
|
|
16670
|
+
a11yDepth: {
|
|
16671
|
+
type: "enum",
|
|
16672
|
+
default: "deep",
|
|
16673
|
+
description: "accessibility tree structure depth (shallow or deep)",
|
|
16674
|
+
options: ["shallow", "deep"],
|
|
16675
|
+
group: "simulator"
|
|
16676
|
+
},
|
|
16677
|
+
inspectMode: {
|
|
16678
|
+
type: "boolean",
|
|
16679
|
+
default: false,
|
|
16680
|
+
description: "inspect mode",
|
|
16681
|
+
group: "simulator"
|
|
16682
|
+
},
|
|
16683
|
+
// privacy
|
|
16684
|
+
productAnalytics: {
|
|
16685
|
+
type: "boolean",
|
|
16686
|
+
default: false,
|
|
16687
|
+
description: "send bounded product usage analytics",
|
|
16688
|
+
group: "privacy"
|
|
16689
|
+
},
|
|
16690
|
+
crashReports: {
|
|
16691
|
+
type: "boolean",
|
|
16692
|
+
default: false,
|
|
16693
|
+
description: "send anonymous crash reports",
|
|
16694
|
+
group: "privacy"
|
|
16695
|
+
},
|
|
16696
|
+
sendToBoxCarryAuth: {
|
|
16697
|
+
type: "boolean",
|
|
16698
|
+
default: true,
|
|
16699
|
+
description: "send to box carries the signed-in session into the box it creates (off = the app boots signed out)",
|
|
16700
|
+
group: "privacy"
|
|
16701
|
+
},
|
|
16702
|
+
// agent — default ai agent used by the prompt bar's auto-attach + startSession.
|
|
16703
|
+
agentProvider: {
|
|
16704
|
+
type: "enum",
|
|
16705
|
+
default: "codex",
|
|
16706
|
+
description: "ai agent used by the peach agent prompt bar",
|
|
16707
|
+
options: ["codex", "claude"],
|
|
16708
|
+
group: "agent"
|
|
16709
|
+
}
|
|
16710
|
+
};
|
|
16711
|
+
SETTING_VALUE_TYPES = {
|
|
16712
|
+
string: "string",
|
|
16713
|
+
enum: "string",
|
|
16714
|
+
number: "number",
|
|
16715
|
+
boolean: "boolean",
|
|
16716
|
+
"string-array": "object"
|
|
16717
|
+
};
|
|
16718
|
+
DEFAULT_SIMULATED_DEVICE_SETTINGS = {
|
|
16719
|
+
predictiveText: settingsSchema.predictiveText.default,
|
|
16720
|
+
colorScheme: settingsSchema.colorScheme.default,
|
|
16721
|
+
reduceMotion: settingsSchema.reduceMotion.default,
|
|
16722
|
+
boldText: settingsSchema.boldText.default,
|
|
16723
|
+
fontSize: settingsSchema.fontSize.default,
|
|
16724
|
+
largerAccessibilitySizes: settingsSchema.largerAccessibilitySizes.default,
|
|
16725
|
+
glassTintAmount: settingsSchema.glassTintAmount.default,
|
|
16726
|
+
reduceTransparency: settingsSchema.reduceTransparency.default,
|
|
16727
|
+
increaseContrast: settingsSchema.increaseContrast.default,
|
|
16728
|
+
showBorders: settingsSchema.showBorders.default,
|
|
16729
|
+
onOffLabels: settingsSchema.onOffLabels.default,
|
|
16730
|
+
differentiateWithoutColor: settingsSchema.differentiateWithoutColor.default,
|
|
16731
|
+
smartInvert: settingsSchema.smartInvert.default,
|
|
16732
|
+
preferCrossFadeTransitions: settingsSchema.preferCrossFadeTransitions.default
|
|
16733
|
+
};
|
|
16734
|
+
PROFILE_SETTING_KEYS = [
|
|
16735
|
+
...SIMULATED_DEVICE_SETTING_KEYS,
|
|
16736
|
+
"language",
|
|
16737
|
+
"region",
|
|
16738
|
+
"preferredLanguages"
|
|
16739
|
+
];
|
|
16740
|
+
}
|
|
16741
|
+
});
|
|
16742
|
+
|
|
15241
16743
|
// ../peach-globals/src/storeKitContract.ts
|
|
15242
16744
|
function record(value) {
|
|
15243
16745
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
@@ -15439,6 +16941,12 @@ async function loadConfigFile(project) {
|
|
|
15439
16941
|
if (!isPeachConfig(loaded3)) {
|
|
15440
16942
|
throw new Error("the default export must be a peach config object");
|
|
15441
16943
|
}
|
|
16944
|
+
if (Object.hasOwn(loaded3, "settings"))
|
|
16945
|
+
throw new Error(
|
|
16946
|
+
"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"
|
|
16947
|
+
);
|
|
16948
|
+
for (const [name2, profile] of Object.entries(loaded3.profiles ?? {}))
|
|
16949
|
+
readSettingsProfile(profile, `profiles.${name2}`);
|
|
15442
16950
|
if (loaded3.nativeHybridObjects !== void 0)
|
|
15443
16951
|
throw new Error(
|
|
15444
16952
|
'nativeHybridObjects moved under packages, keyed by the package that registers each name: packages: { "<package>": { hybridObjects: { <Name>: "unsupported" | "./file.ts" } } }'
|
|
@@ -15493,6 +17001,7 @@ var init_app_config = __esm({
|
|
|
15493
17001
|
init_config();
|
|
15494
17002
|
init_config();
|
|
15495
17003
|
init_public_brand();
|
|
17004
|
+
init_settingsContract();
|
|
15496
17005
|
init_storekit_test_store();
|
|
15497
17006
|
WIRE_SLOTS = ["nativeModules", "turboModules", "nativeViews"];
|
|
15498
17007
|
}
|
|
@@ -15761,7 +17270,7 @@ var init_react_native_core = __esm({
|
|
|
15761
17270
|
init_swift_distribution();
|
|
15762
17271
|
init_swift_package();
|
|
15763
17272
|
init_swiftContract();
|
|
15764
|
-
recipe = true ? "
|
|
17273
|
+
recipe = true ? "ebfb6e514f6a2873b73852f067f1db2c2033490a337d8a2f95a46a922e095bf5" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
|
|
15765
17274
|
}
|
|
15766
17275
|
});
|
|
15767
17276
|
|
|
@@ -15904,6 +17413,14 @@ var init_swift_host = __esm({
|
|
|
15904
17413
|
}
|
|
15905
17414
|
});
|
|
15906
17415
|
|
|
17416
|
+
// src/cocoapods-trunk.ts
|
|
17417
|
+
var init_cocoapods_trunk = __esm({
|
|
17418
|
+
"src/cocoapods-trunk.ts"() {
|
|
17419
|
+
"use strict";
|
|
17420
|
+
init_home_paths();
|
|
17421
|
+
}
|
|
17422
|
+
});
|
|
17423
|
+
|
|
15907
17424
|
// src/installed-native-libraries.ts
|
|
15908
17425
|
var init_installed_native_libraries = __esm({
|
|
15909
17426
|
"src/installed-native-libraries.ts"() {
|
|
@@ -15938,6 +17455,7 @@ var init_turbo_source = __esm({
|
|
|
15938
17455
|
"use strict";
|
|
15939
17456
|
import_node_child_process15 = require("node:child_process");
|
|
15940
17457
|
import_node_util8 = require("node:util");
|
|
17458
|
+
init_cocoapods_trunk();
|
|
15941
17459
|
init_home_paths();
|
|
15942
17460
|
init_installed_native_libraries();
|
|
15943
17461
|
init_answeredNativePackages();
|
|
@@ -16063,7 +17581,7 @@ var init_node_http_fetch = __esm({
|
|
|
16063
17581
|
var runtime_companion_default;
|
|
16064
17582
|
var init_runtime_companion = __esm({
|
|
16065
17583
|
"runtime-companion.json"() {
|
|
16066
|
-
runtime_companion_default = { abi: 1, sha256: "
|
|
17584
|
+
runtime_companion_default = { abi: 1, sha256: "9bc75c6ccfa87cb58eff71992a2fafa21b4e7acbb37f0b4bef6f74279c98317a", file: "node/cli-9bc75c6ccfa87cb58eff71992a2fafa21b4e7acbb37f0b4bef6f74279c98317a.cjs" };
|
|
16067
17585
|
}
|
|
16068
17586
|
});
|
|
16069
17587
|
|
|
@@ -22852,34 +24370,7 @@ function insertNativeFirebaseFooter(source, config) {
|
|
|
22852
24370
|
init_plist();
|
|
22853
24371
|
init_runtime_assets();
|
|
22854
24372
|
init_runtime_packs();
|
|
22855
|
-
|
|
22856
|
-
// src/runtimePlatformContract.ts
|
|
22857
|
-
var IOS_ADAPTER = Object.freeze({
|
|
22858
|
-
id: "ios",
|
|
22859
|
-
displayName: "iOS",
|
|
22860
|
-
isIOS: true,
|
|
22861
|
-
isAndroid: false,
|
|
22862
|
-
select: (registry) => registry.ios
|
|
22863
|
-
});
|
|
22864
|
-
var ANDROID_ADAPTER = Object.freeze({
|
|
22865
|
-
id: "android",
|
|
22866
|
-
displayName: "Android",
|
|
22867
|
-
isIOS: false,
|
|
22868
|
-
isAndroid: true,
|
|
22869
|
-
select: (registry) => registry.android
|
|
22870
|
-
});
|
|
22871
|
-
var RUNTIME_PLATFORM_ADAPTERS = Object.freeze({
|
|
22872
|
-
ios: IOS_ADAPTER,
|
|
22873
|
-
android: ANDROID_ADAPTER
|
|
22874
|
-
});
|
|
22875
|
-
function isRuntimePlatform(value) {
|
|
22876
|
-
return value === "ios" || value === "android";
|
|
22877
|
-
}
|
|
22878
|
-
function getRuntimePlatformAdapter(platform) {
|
|
22879
|
-
return RUNTIME_PLATFORM_ADAPTERS[platform];
|
|
22880
|
-
}
|
|
22881
|
-
|
|
22882
|
-
// src/metro-plugin.ts
|
|
24373
|
+
init_runtimePlatformContract();
|
|
22883
24374
|
var prefix = "/__peachsim";
|
|
22884
24375
|
function isMetroSerializerArtifacts(value) {
|
|
22885
24376
|
return typeof value === "object" && value !== null && "artifacts" in value && Array.isArray(value.artifacts) && value.artifacts.every(
|