peachsim 0.1.2412 → 0.1.2422
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 +6683 -4510
- 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 +19780 -17646
- 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 +63968 -62664
- package/dist-lib/host/fetch-proxy-handler.cjs +1619 -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 +2734 -1222
- 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 +1758 -246
- package/dist-lib/native-app-identity-project.cjs +35 -203
- package/dist-lib/native-app-identity-project.mjs +264 -413
- 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 +32 -25
- package/dist-lib/public-origins-lib.json +222 -120
- 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 +24600 -23060
- package/dist-lib/swift-compile.cjs +1396 -1203
- package/dist-lib/swift-compile.mjs +1351 -1148
- 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 +2832 -2588
- package/dist-lib/vite.cjs +5254 -3781
- 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/dist-types/packages/peach-engine/src/engine/native-layout.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +0 -10
- package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/layer-claims.d.ts +2 -1
- 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/expo-kotlin-bundle.ts +1 -1
- 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 +85 -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 +185 -108
- package/src/swift-compiler-digest.ts +3 -0
- package/src/swift-guest-compile.ts +2 -0
- package/src/swift-guest-source-inputs.ts +2 -2
- package/src/swift-header-compiler.ts +185 -0
- package/src/swift-header-dependencies.ts +174 -0
- package/src/swift-host.ts +32 -7
- package/src/swift-objc-compile.ts +18 -24
- 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-types/packages/peach-engine/src/render-worker/accessibilityHostContract.d.ts +0 -65
package/dist-lib/metro.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2422 | (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 ? "1122424b1e57ea84e0c3c2fbd17ce18dee149a87374de8912d176aec8451bc86" : 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
|
|
|
@@ -9569,6 +9401,25 @@ var init_swift_guest_compile = __esm({
|
|
|
9569
9401
|
}
|
|
9570
9402
|
});
|
|
9571
9403
|
|
|
9404
|
+
// src/swift-header-compiler.ts
|
|
9405
|
+
var init_swift_header_compiler = __esm({
|
|
9406
|
+
"src/swift-header-compiler.ts"() {
|
|
9407
|
+
"use strict";
|
|
9408
|
+
init_forked_script_contract();
|
|
9409
|
+
init_is_record();
|
|
9410
|
+
init_write_build_file();
|
|
9411
|
+
}
|
|
9412
|
+
});
|
|
9413
|
+
|
|
9414
|
+
// src/swift-header-dependencies.ts
|
|
9415
|
+
var init_swift_header_dependencies = __esm({
|
|
9416
|
+
"src/swift-header-dependencies.ts"() {
|
|
9417
|
+
"use strict";
|
|
9418
|
+
init_swift_package();
|
|
9419
|
+
init_swiftContract();
|
|
9420
|
+
}
|
|
9421
|
+
});
|
|
9422
|
+
|
|
9572
9423
|
// ../peach-kit/src/wasm-memory.ts
|
|
9573
9424
|
var init_wasm_memory = __esm({
|
|
9574
9425
|
"../peach-kit/src/wasm-memory.ts"() {
|
|
@@ -9677,6 +9528,8 @@ var init_swift_compile = __esm({
|
|
|
9677
9528
|
init_swift_foundation();
|
|
9678
9529
|
init_swift_guest_compile();
|
|
9679
9530
|
init_swift_guest_source_inputs();
|
|
9531
|
+
init_swift_header_compiler();
|
|
9532
|
+
init_swift_header_dependencies();
|
|
9680
9533
|
init_swift_icu();
|
|
9681
9534
|
init_swift_link_roots();
|
|
9682
9535
|
init_swift_objc_import();
|
|
@@ -9770,7 +9623,7 @@ var init_swift_compile = __esm({
|
|
|
9770
9623
|
FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
|
|
9771
9624
|
(module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
|
|
9772
9625
|
).join("");
|
|
9773
|
-
compilerSourceDigest = true ? "
|
|
9626
|
+
compilerSourceDigest = true ? "63f37c4a87253305166cb52435207eb3f74394734f1a77e562d79ab7d5d7dfc1" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
9774
9627
|
C_WORDS = new Set(
|
|
9775
9628
|
"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
9629
|
" "
|
|
@@ -11760,7 +11613,11 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
11760
11613
|
DEVELOPMENT_LANGUAGE: str(ref.project.project.developmentRegion) ?? "en"
|
|
11761
11614
|
},
|
|
11762
11615
|
options,
|
|
11763
|
-
ref === app && options.frameworkMachOType ? {
|
|
11616
|
+
ref === app && options.frameworkMachOType ? {
|
|
11617
|
+
...workspaceBuild,
|
|
11618
|
+
...options.frameworkBuildSettings,
|
|
11619
|
+
MACH_O_TYPE: options.frameworkMachOType
|
|
11620
|
+
} : workspaceBuild
|
|
11764
11621
|
);
|
|
11765
11622
|
for (const file of read) xcconfigs.add(file);
|
|
11766
11623
|
const swiftVersion = Number.parseFloat(settings2("SWIFT_VERSION") || "5");
|
|
@@ -12693,17 +12550,38 @@ var init_podspec_ruby_stdlib = __esm({
|
|
|
12693
12550
|
});
|
|
12694
12551
|
|
|
12695
12552
|
// src/podspec-cocoapods.ts
|
|
12696
|
-
var PRELUDE;
|
|
12553
|
+
var PRELUDE, HOST_PROBES;
|
|
12697
12554
|
var init_podspec_cocoapods = __esm({
|
|
12698
12555
|
"src/podspec-cocoapods.ts"() {
|
|
12699
12556
|
"use strict";
|
|
12700
12557
|
init_podspec_ruby();
|
|
12701
12558
|
init_podspec_ruby_stdlib();
|
|
12559
|
+
init_swift_objc_standin();
|
|
12702
12560
|
PRELUDE = String.raw`
|
|
12703
12561
|
module Pod
|
|
12704
12562
|
VERSION = '1.17.0'
|
|
12705
12563
|
class Informative < StandardError; end
|
|
12706
12564
|
class PlainInformative < StandardError; end
|
|
12565
|
+
|
|
12566
|
+
module Executable
|
|
12567
|
+
def self.which(program)
|
|
12568
|
+
program = program.to_s
|
|
12569
|
+
paths = ENV.fetch('PATH') { '' }.split(File::PATH_SEPARATOR)
|
|
12570
|
+
paths.unshift('./')
|
|
12571
|
+
paths.uniq!
|
|
12572
|
+
paths.each do |path|
|
|
12573
|
+
bin = File.expand_path(program, path)
|
|
12574
|
+
return bin if File.file?(bin) && File.executable?(bin)
|
|
12575
|
+
end
|
|
12576
|
+
nil
|
|
12577
|
+
end
|
|
12578
|
+
|
|
12579
|
+
def self.which!(program)
|
|
12580
|
+
which(program).tap do |bin|
|
|
12581
|
+
raise Informative, "Unable to locate the executable '#{program}'" unless bin
|
|
12582
|
+
end
|
|
12583
|
+
end
|
|
12584
|
+
end
|
|
12707
12585
|
class Version < Gem::Version; end
|
|
12708
12586
|
|
|
12709
12587
|
class Requirement
|
|
@@ -12712,6 +12590,9 @@ module Pod
|
|
|
12712
12590
|
def self.create(input)
|
|
12713
12591
|
input.is_a?(Requirement) ? input : new(input)
|
|
12714
12592
|
end
|
|
12593
|
+
def self.default
|
|
12594
|
+
new('>= 0')
|
|
12595
|
+
end
|
|
12715
12596
|
def initialize(*requirements)
|
|
12716
12597
|
requirements = requirements.flatten
|
|
12717
12598
|
requirements.compact!
|
|
@@ -12724,16 +12605,136 @@ module Pod
|
|
|
12724
12605
|
raise ArgumentError, "Illformed requirement [#{requirement.inspect}]" unless match
|
|
12725
12606
|
[match[1] || '=', Version.new(match[2])]
|
|
12726
12607
|
end
|
|
12608
|
+
def none?
|
|
12609
|
+
requirements == [['>=', Version.new('0')]]
|
|
12610
|
+
end
|
|
12611
|
+
def satisfied_by?(version)
|
|
12612
|
+
requirements.all? do |op, rv|
|
|
12613
|
+
case op
|
|
12614
|
+
when '=' then version == rv
|
|
12615
|
+
when '!=' then version != rv
|
|
12616
|
+
when '>' then version > rv
|
|
12617
|
+
when '<' then version < rv
|
|
12618
|
+
when '>=' then version >= rv
|
|
12619
|
+
when '<=' then version <= rv
|
|
12620
|
+
when '~>' then version >= rv && version.release < rv.bump
|
|
12621
|
+
end
|
|
12622
|
+
end
|
|
12623
|
+
end
|
|
12624
|
+
def ==(other)
|
|
12625
|
+
other.is_a?(Requirement) && requirements.sort_by(&:to_s) == other.requirements.sort_by(&:to_s)
|
|
12626
|
+
end
|
|
12627
|
+
def as_list
|
|
12628
|
+
requirements.map { |op, version| "#{op} #{version}" }.sort
|
|
12629
|
+
end
|
|
12630
|
+
def prerelease?
|
|
12631
|
+
requirements.any? { |_op, version| version.prerelease? }
|
|
12632
|
+
end
|
|
12727
12633
|
def to_s
|
|
12728
|
-
|
|
12634
|
+
as_list.join(', ')
|
|
12729
12635
|
end
|
|
12730
12636
|
end
|
|
12731
12637
|
|
|
12732
12638
|
class Dependency
|
|
12733
|
-
|
|
12639
|
+
attr_accessor :name
|
|
12640
|
+
attr_accessor :external_source
|
|
12641
|
+
attr_accessor :podspec_repo
|
|
12734
12642
|
def initialize(name = nil, *requirements)
|
|
12643
|
+
if requirements.last.is_a?(Hash)
|
|
12644
|
+
additional_params = requirements.pop.select { |_, v| !v.nil? }
|
|
12645
|
+
additional_params = nil if additional_params.empty?
|
|
12646
|
+
if additional_params && @podspec_repo = additional_params[:source]
|
|
12647
|
+
additional_params.delete(:source)
|
|
12648
|
+
unless additional_params.empty?
|
|
12649
|
+
raise Informative, 'A dependency with a specified podspec repo may ' \
|
|
12650
|
+
"not include other source parameters (#{name})."
|
|
12651
|
+
end
|
|
12652
|
+
elsif @external_source = additional_params
|
|
12653
|
+
unless requirements.empty?
|
|
12654
|
+
raise Informative, 'A dependency with an external source may not ' \
|
|
12655
|
+
"specify version requirements (#{name})."
|
|
12656
|
+
end
|
|
12657
|
+
end
|
|
12658
|
+
end
|
|
12659
|
+
if requirements.length == 1 && requirements.first.is_a?(Requirement)
|
|
12660
|
+
requirements = requirements.first
|
|
12661
|
+
end
|
|
12735
12662
|
@name = name
|
|
12736
12663
|
@requirement = Requirement.create(requirements)
|
|
12664
|
+
@specific_requirement ||= nil
|
|
12665
|
+
@external_source ||= nil
|
|
12666
|
+
end
|
|
12667
|
+
def requirement
|
|
12668
|
+
@specific_requirement || @requirement
|
|
12669
|
+
end
|
|
12670
|
+
def specific_version
|
|
12671
|
+
@specific_version
|
|
12672
|
+
end
|
|
12673
|
+
def specific_version=(version)
|
|
12674
|
+
@specific_version = version
|
|
12675
|
+
@specific_requirement = Requirement.new(version)
|
|
12676
|
+
end
|
|
12677
|
+
def root_name
|
|
12678
|
+
Specification.root_name(name)
|
|
12679
|
+
end
|
|
12680
|
+
def prerelease?
|
|
12681
|
+
requirement.prerelease?
|
|
12682
|
+
end
|
|
12683
|
+
def external?
|
|
12684
|
+
!@external_source.nil?
|
|
12685
|
+
end
|
|
12686
|
+
def local?
|
|
12687
|
+
external_source[:path] if external_source
|
|
12688
|
+
end
|
|
12689
|
+
def to_root_dependency
|
|
12690
|
+
dep = dup
|
|
12691
|
+
dep.name = root_name
|
|
12692
|
+
dep
|
|
12693
|
+
end
|
|
12694
|
+
def ==(other)
|
|
12695
|
+
other.is_a?(Dependency) && name == other.name && external_source == other.external_source &&
|
|
12696
|
+
podspec_repo == other.podspec_repo && requirement == other.requirement
|
|
12697
|
+
end
|
|
12698
|
+
alias_method :eql?, :==
|
|
12699
|
+
def hash
|
|
12700
|
+
name.hash ^ requirement.to_s.hash ^ external_source.hash
|
|
12701
|
+
end
|
|
12702
|
+
def <=>(other)
|
|
12703
|
+
name <=> other.name
|
|
12704
|
+
end
|
|
12705
|
+
def to_s
|
|
12706
|
+
version = ''
|
|
12707
|
+
if external?
|
|
12708
|
+
version += external_source_description(external_source)
|
|
12709
|
+
elsif requirement != Requirement.default
|
|
12710
|
+
version += requirement.to_s
|
|
12711
|
+
end
|
|
12712
|
+
result = name.dup
|
|
12713
|
+
result += " (#{version})" unless version.empty?
|
|
12714
|
+
result
|
|
12715
|
+
end
|
|
12716
|
+
def inspect
|
|
12717
|
+
"<#{self.class} name=#{name} requirements=#{requirement} source=#{podspec_repo || 'nil'} external_source=#{external_source || 'nil'}>"
|
|
12718
|
+
end
|
|
12719
|
+
private
|
|
12720
|
+
def external_source_description(source)
|
|
12721
|
+
if source.key?(:git)
|
|
12722
|
+
desc = "\`#{source[:git]}\`"
|
|
12723
|
+
desc << ", commit \`#{source[:commit]}\`" if source[:commit]
|
|
12724
|
+
desc << ", branch \`#{source[:branch]}\`" if source[:branch]
|
|
12725
|
+
desc << ", tag \`#{source[:tag]}\`" if source[:tag]
|
|
12726
|
+
elsif source.key?(:hg)
|
|
12727
|
+
desc = "\`#{source[:hg]}\`"
|
|
12728
|
+
elsif source.key?(:svn)
|
|
12729
|
+
desc = "\`#{source[:svn]}\`"
|
|
12730
|
+
elsif source.key?(:podspec)
|
|
12731
|
+
desc = "\`#{source[:podspec]}\`"
|
|
12732
|
+
elsif source.key?(:path)
|
|
12733
|
+
desc = "\`#{source[:path]}\`"
|
|
12734
|
+
else
|
|
12735
|
+
desc = "\`#{source}\`"
|
|
12736
|
+
end
|
|
12737
|
+
"from #{desc}"
|
|
12737
12738
|
end
|
|
12738
12739
|
end
|
|
12739
12740
|
|
|
@@ -12749,16 +12750,55 @@ module Pod
|
|
|
12749
12750
|
def to_sym
|
|
12750
12751
|
name
|
|
12751
12752
|
end
|
|
12753
|
+
def self.string_name(symbolic_name)
|
|
12754
|
+
case symbolic_name
|
|
12755
|
+
when :ios then 'iOS'
|
|
12756
|
+
when :osx then 'macOS'
|
|
12757
|
+
when :watchos then 'watchOS'
|
|
12758
|
+
when :tvos then 'tvOS'
|
|
12759
|
+
when :visionos then 'visionOS'
|
|
12760
|
+
else symbolic_name.to_s
|
|
12761
|
+
end
|
|
12762
|
+
end
|
|
12763
|
+
def string_name
|
|
12764
|
+
self.class.string_name(name)
|
|
12765
|
+
end
|
|
12766
|
+
def safe_string_name
|
|
12767
|
+
string_name.tr(' ', '')
|
|
12768
|
+
end
|
|
12752
12769
|
def to_s
|
|
12753
|
-
name
|
|
12770
|
+
s = self.class.string_name(name)
|
|
12771
|
+
s += " #{deployment_target}" if deployment_target
|
|
12772
|
+
s
|
|
12773
|
+
end
|
|
12774
|
+
def inspect
|
|
12775
|
+
"#<#{self.class.name} name=#{name.inspect} deployment_target=#{deployment_target.to_s.inspect}>"
|
|
12776
|
+
end
|
|
12777
|
+
def hash
|
|
12778
|
+
name.hash ^ deployment_target.hash
|
|
12779
|
+
end
|
|
12780
|
+
def eql?(other)
|
|
12781
|
+
self == other
|
|
12782
|
+
end
|
|
12783
|
+
def supports?(other)
|
|
12784
|
+
other = Platform.new(other) unless other.is_a?(Platform)
|
|
12785
|
+
if other.deployment_target && deployment_target
|
|
12786
|
+
(other.name == name) && (deployment_target >= other.deployment_target)
|
|
12787
|
+
else
|
|
12788
|
+
other.name == name
|
|
12789
|
+
end
|
|
12754
12790
|
end
|
|
12755
12791
|
end
|
|
12756
12792
|
|
|
12757
12793
|
class Config
|
|
12758
12794
|
attr_accessor :installation_root, :podfile, :lockfile
|
|
12795
|
+
alias_method :project_root, :installation_root
|
|
12759
12796
|
def self.instance
|
|
12760
12797
|
@instance ||= new
|
|
12761
12798
|
end
|
|
12799
|
+
def podfile_path
|
|
12800
|
+
installation_root + 'Podfile'
|
|
12801
|
+
end
|
|
12762
12802
|
def sandbox_root
|
|
12763
12803
|
installation_root + 'Pods'
|
|
12764
12804
|
end
|
|
@@ -13086,7 +13126,7 @@ module Pod
|
|
|
13086
13126
|
end
|
|
13087
13127
|
|
|
13088
13128
|
def to_s
|
|
13089
|
-
specified_version = attributes_hash['version'] || ''
|
|
13129
|
+
specified_version = root.attributes_hash['version'] || ''
|
|
13090
13130
|
if name && !specified_version.to_s.empty?
|
|
13091
13131
|
"#{name} (#{specified_version})"
|
|
13092
13132
|
elsif name
|
|
@@ -13460,6 +13500,15 @@ module Pod
|
|
|
13460
13500
|
end
|
|
13461
13501
|
end
|
|
13462
13502
|
`;
|
|
13503
|
+
HOST_PROBES = /* @__PURE__ */ new Map([
|
|
13504
|
+
["xcrun --sdk iphoneos --show-sdk-version", `${NATIVE_GRAPH_SDK_VERSION}
|
|
13505
|
+
`],
|
|
13506
|
+
["xcrun --sdk iphonesimulator --show-sdk-version", `${NATIVE_GRAPH_SDK_VERSION}
|
|
13507
|
+
`],
|
|
13508
|
+
["xcodebuild -version", `Xcode ${NATIVE_GRAPH_SDK_VERSION}
|
|
13509
|
+
`],
|
|
13510
|
+
["/usr/sbin/sysctl -n hw.optional.arm64 2>&1", "1\n"]
|
|
13511
|
+
]);
|
|
13463
13512
|
}
|
|
13464
13513
|
});
|
|
13465
13514
|
|
|
@@ -13517,6 +13566,7 @@ var init_kotlin_toolchain = __esm({
|
|
|
13517
13566
|
"use strict";
|
|
13518
13567
|
import_node_child_process11 = require("node:child_process");
|
|
13519
13568
|
import_node_util4 = require("node:util");
|
|
13569
|
+
init_src();
|
|
13520
13570
|
init_home_paths();
|
|
13521
13571
|
init_is_record();
|
|
13522
13572
|
run2 = (0, import_node_util4.promisify)(import_node_child_process11.execFile);
|
|
@@ -14487,7 +14537,7 @@ function isPeachConfig(value) {
|
|
|
14487
14537
|
"nativeHybridObjects",
|
|
14488
14538
|
"env",
|
|
14489
14539
|
"network",
|
|
14490
|
-
"
|
|
14540
|
+
"profiles",
|
|
14491
14541
|
"initialProps",
|
|
14492
14542
|
"initialState"
|
|
14493
14543
|
].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 +14585,7 @@ function hasOwnKeys(value) {
|
|
|
14535
14585
|
}
|
|
14536
14586
|
function hasPeachConfig(config) {
|
|
14537
14587
|
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.
|
|
14588
|
+
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
14589
|
}
|
|
14540
14590
|
function mergePeachConfig(base, override) {
|
|
14541
14591
|
if (!hasPeachConfig(base) && !hasPeachConfig(override)) return void 0;
|
|
@@ -14560,10 +14610,6 @@ function mergePeachConfig(base, override) {
|
|
|
14560
14610
|
network: {
|
|
14561
14611
|
remap: { ...base.network?.remap || {}, ...override.network?.remap || {} }
|
|
14562
14612
|
},
|
|
14563
|
-
settings: {
|
|
14564
|
-
...base.settings || {},
|
|
14565
|
-
...override.settings || {}
|
|
14566
|
-
},
|
|
14567
14613
|
initialProps: { ...base.initialProps || {}, ...override.initialProps || {} },
|
|
14568
14614
|
initialState: { ...base.initialState || {}, ...override.initialState || {} }
|
|
14569
14615
|
};
|
|
@@ -15238,6 +15284,1483 @@ var init_app_stubs = __esm({
|
|
|
15238
15284
|
}
|
|
15239
15285
|
});
|
|
15240
15286
|
|
|
15287
|
+
// ../peach-globals/src/dynamic-type-scales.ts
|
|
15288
|
+
var IOS_DYNAMIC_TYPE_SCALES;
|
|
15289
|
+
var init_dynamic_type_scales = __esm({
|
|
15290
|
+
"../peach-globals/src/dynamic-type-scales.ts"() {
|
|
15291
|
+
"use strict";
|
|
15292
|
+
IOS_DYNAMIC_TYPE_SCALES = [
|
|
15293
|
+
0.823,
|
|
15294
|
+
0.882,
|
|
15295
|
+
0.941,
|
|
15296
|
+
1,
|
|
15297
|
+
1.118,
|
|
15298
|
+
1.235,
|
|
15299
|
+
1.353,
|
|
15300
|
+
1.786,
|
|
15301
|
+
2.143,
|
|
15302
|
+
2.643,
|
|
15303
|
+
3.143,
|
|
15304
|
+
3.571
|
|
15305
|
+
];
|
|
15306
|
+
}
|
|
15307
|
+
});
|
|
15308
|
+
|
|
15309
|
+
// ../peach-globals/src/profilerContract.ts
|
|
15310
|
+
function formatProfilerCategories(categories) {
|
|
15311
|
+
return PROFILER_CATEGORIES.filter((c) => categories.includes(c)).join(",");
|
|
15312
|
+
}
|
|
15313
|
+
var PROFILER_CATEGORIES, DEFAULT_PROFILER_CATEGORIES, PROFILER_WINDOW_MS;
|
|
15314
|
+
var init_profilerContract = __esm({
|
|
15315
|
+
"../peach-globals/src/profilerContract.ts"() {
|
|
15316
|
+
"use strict";
|
|
15317
|
+
PROFILER_CATEGORIES = [
|
|
15318
|
+
"frames",
|
|
15319
|
+
"animations",
|
|
15320
|
+
"interactions",
|
|
15321
|
+
"network-logs",
|
|
15322
|
+
"react",
|
|
15323
|
+
"animation-values",
|
|
15324
|
+
"layout",
|
|
15325
|
+
"memory",
|
|
15326
|
+
"paint-detail"
|
|
15327
|
+
];
|
|
15328
|
+
DEFAULT_PROFILER_CATEGORIES = [
|
|
15329
|
+
"frames",
|
|
15330
|
+
"animations",
|
|
15331
|
+
"interactions",
|
|
15332
|
+
"network-logs"
|
|
15333
|
+
];
|
|
15334
|
+
PROFILER_WINDOW_MS = 5 * 6e4;
|
|
15335
|
+
}
|
|
15336
|
+
});
|
|
15337
|
+
|
|
15338
|
+
// src/runtimePlatformContract.ts
|
|
15339
|
+
function isRuntimePlatform(value) {
|
|
15340
|
+
return value === "ios" || value === "android";
|
|
15341
|
+
}
|
|
15342
|
+
function getRuntimePlatformAdapter(platform) {
|
|
15343
|
+
return RUNTIME_PLATFORM_ADAPTERS[platform];
|
|
15344
|
+
}
|
|
15345
|
+
var IOS_ADAPTER, ANDROID_ADAPTER, RUNTIME_PLATFORM_ADAPTERS;
|
|
15346
|
+
var init_runtimePlatformContract = __esm({
|
|
15347
|
+
"src/runtimePlatformContract.ts"() {
|
|
15348
|
+
"use strict";
|
|
15349
|
+
IOS_ADAPTER = Object.freeze({
|
|
15350
|
+
id: "ios",
|
|
15351
|
+
displayName: "iOS",
|
|
15352
|
+
isIOS: true,
|
|
15353
|
+
isAndroid: false,
|
|
15354
|
+
select: (registry) => registry.ios
|
|
15355
|
+
});
|
|
15356
|
+
ANDROID_ADAPTER = Object.freeze({
|
|
15357
|
+
id: "android",
|
|
15358
|
+
displayName: "Android",
|
|
15359
|
+
isIOS: false,
|
|
15360
|
+
isAndroid: true,
|
|
15361
|
+
select: (registry) => registry.android
|
|
15362
|
+
});
|
|
15363
|
+
RUNTIME_PLATFORM_ADAPTERS = Object.freeze({
|
|
15364
|
+
ios: IOS_ADAPTER,
|
|
15365
|
+
android: ANDROID_ADAPTER
|
|
15366
|
+
});
|
|
15367
|
+
}
|
|
15368
|
+
});
|
|
15369
|
+
|
|
15370
|
+
// src/device-catalog.ts
|
|
15371
|
+
function modernButtons(action, volumeUp, volumeDown, power) {
|
|
15372
|
+
return {
|
|
15373
|
+
width: 3,
|
|
15374
|
+
ringToggle: { side: "left", top: action[0], height: action[1] },
|
|
15375
|
+
volumeUp: { side: "left", top: volumeUp[0], height: volumeUp[1] },
|
|
15376
|
+
volumeDown: { side: "left", top: volumeDown[0], height: volumeDown[1] },
|
|
15377
|
+
lock: { side: "right", top: power[0], height: power[1] }
|
|
15378
|
+
};
|
|
15379
|
+
}
|
|
15380
|
+
function uniformFrameInsets(value) {
|
|
15381
|
+
return { top: value, right: value, bottom: value, left: value };
|
|
15382
|
+
}
|
|
15383
|
+
function cornerRadii(value) {
|
|
15384
|
+
return { topLeft: value, topRight: value, bottomRight: value, bottomLeft: value };
|
|
15385
|
+
}
|
|
15386
|
+
function iosDevice(spec) {
|
|
15387
|
+
const profile = {
|
|
15388
|
+
// normal-scale dynamic split providers share this intrinsic height and
|
|
15389
|
+
// linked-sdk whole-point rounding. safe areas are independent.
|
|
15390
|
+
// source receipt: docs/ios/framework-oracle/status-bar-hit-region-and-scene-routing.md
|
|
15391
|
+
statusBarHeight: "statusBarHeight" in spec ? spec.statusBarHeight : Math.round(53.666666666666664),
|
|
15392
|
+
scale: 3,
|
|
15393
|
+
landscapeStatusBarHeight: 0,
|
|
15394
|
+
homeIndicatorHeight: 34,
|
|
15395
|
+
iosVersion: "27.0",
|
|
15396
|
+
dynamicIsland: null,
|
|
15397
|
+
keyboardPanelHeights: { qwerty: 301, pad: 301, emoji: 395 },
|
|
15398
|
+
...spec
|
|
15399
|
+
};
|
|
15400
|
+
return {
|
|
15401
|
+
...profile,
|
|
15402
|
+
platform: "ios",
|
|
15403
|
+
// the display's portrait reference and overlay allowance are independent of the window safe area.
|
|
15404
|
+
displayEdgeInfo: profile.displayEdgeInfo ?? (profile.model.startsWith("iphone-") && profile.model !== "iphone-se" && profile.model !== "iphone-duo" ? { portraitBottom: 34, homeAffordanceOverlayAllowance: 21 } : void 0),
|
|
15405
|
+
navigationBarHeight: 0,
|
|
15406
|
+
navigationBarMode: profile.homeIndicatorHeight > 0 ? "gesture" : "none",
|
|
15407
|
+
displayCutout: {
|
|
15408
|
+
top: profile.dynamicIsland ? profile.safeAreaInsets.top : 0,
|
|
15409
|
+
bottom: 0,
|
|
15410
|
+
left: 0,
|
|
15411
|
+
right: 0
|
|
15412
|
+
},
|
|
15413
|
+
cameraCutout: null,
|
|
15414
|
+
osVersion: profile.iosVersion,
|
|
15415
|
+
androidApiLevel: null,
|
|
15416
|
+
systemName: "iOS",
|
|
15417
|
+
manufacturer: "Apple",
|
|
15418
|
+
brand: "Apple",
|
|
15419
|
+
modelName: profile.name
|
|
15420
|
+
};
|
|
15421
|
+
}
|
|
15422
|
+
function isDeviceModel(value) {
|
|
15423
|
+
return Object.hasOwn(devices, value);
|
|
15424
|
+
}
|
|
15425
|
+
function listDeviceModels() {
|
|
15426
|
+
return Object.keys(devices).filter(isDeviceModel);
|
|
15427
|
+
}
|
|
15428
|
+
function ipadProDevice(model, name2, width, height, diagonalInches, keyboardHeight) {
|
|
15429
|
+
return iosDevice({
|
|
15430
|
+
model,
|
|
15431
|
+
name: name2,
|
|
15432
|
+
// iPad Pro 11-inch (M5) 12GB, iOS 27.0, simulator DBD4B183, UIKit probe
|
|
15433
|
+
// scenario `metrics`. portrait UIScreen.bounds 834×1210, scale 2,
|
|
15434
|
+
// nativeBounds 1668×2420. the window matched the screen.
|
|
15435
|
+
width,
|
|
15436
|
+
height,
|
|
15437
|
+
scale: 2,
|
|
15438
|
+
// portrait statusBarFrame was 834×32 at the top, and safeAreaInsets.top
|
|
15439
|
+
// was 32. landscape statusBarFrame stayed 32 tall while safeAreaInsets.top
|
|
15440
|
+
// was 10; this field is the portrait bar.
|
|
15441
|
+
statusBarHeight: 32,
|
|
15442
|
+
landscapeStatusBarHeight: 32,
|
|
15443
|
+
// portrait and landscape safeAreaInsets.bottom were both 20. the probe
|
|
15444
|
+
// has no separate home-indicator height.
|
|
15445
|
+
homeIndicatorHeight: 20,
|
|
15446
|
+
// UIScreen _displayCornerRadius, both orientations. the framebuffer
|
|
15447
|
+
// mask's tangent extent was not measured separately.
|
|
15448
|
+
cornerRadius: cornerRadii(30),
|
|
15449
|
+
continuousCornerRadius: cornerRadii(30),
|
|
15450
|
+
// housing is unsourced. the frame is the display until it is measured.
|
|
15451
|
+
frameInsets: uniformFrameInsets(0),
|
|
15452
|
+
// portrait safeAreaInsets. landscape was top 10, left 0, bottom 20, right 0.
|
|
15453
|
+
safeAreaInsets: { top: 32, bottom: 20, left: 0, right: 0 },
|
|
15454
|
+
// portrait docked keyboard frame height, UIKeyboardFrameEndUserInfoKey
|
|
15455
|
+
// {0, 870, 834, 340} on the 11-inch, 403 on the 13-inch. the emoji panel
|
|
15456
|
+
// takes the letters height on the 11-inch and 2.5pt more on the 13-inch
|
|
15457
|
+
// (405.5, native iOS 27 simulators).
|
|
15458
|
+
keyboardPanelHeights: {
|
|
15459
|
+
qwerty: keyboardHeight,
|
|
15460
|
+
pad: keyboardHeight,
|
|
15461
|
+
emoji: keyboardHeight + (model === "ipad-pro-11" ? 0 : 2.5)
|
|
15462
|
+
},
|
|
15463
|
+
// hypot(1668, 2420) / 11, measured native pixels over the device type's
|
|
15464
|
+
// 11-inch name. not a separate density read.
|
|
15465
|
+
physicalPPI: Math.hypot(width * 2, height * 2) / diagonalInches,
|
|
15466
|
+
hardwareButtons: modernButtons([0, 0], [0, 0], [0, 0], [0, 0])
|
|
15467
|
+
});
|
|
15468
|
+
}
|
|
15469
|
+
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;
|
|
15470
|
+
var init_device_catalog = __esm({
|
|
15471
|
+
"src/device-catalog.ts"() {
|
|
15472
|
+
"use strict";
|
|
15473
|
+
init_runtimePlatformContract();
|
|
15474
|
+
LEGACY_HARDWARE_BUTTONS = {
|
|
15475
|
+
width: 2.5,
|
|
15476
|
+
lock: { side: "right", top: 188.7, height: 68.1 },
|
|
15477
|
+
ringToggle: { side: "left", top: 113.2, height: 36 },
|
|
15478
|
+
volumeUp: { side: "left", top: 188.2, height: 68.1 },
|
|
15479
|
+
volumeDown: { side: "left", top: 269, height: 68.1 }
|
|
15480
|
+
};
|
|
15481
|
+
PIXEL_HARDWARE_BUTTONS = {
|
|
15482
|
+
width: 3,
|
|
15483
|
+
// pixel 8 android studio art has right-edge opaque runs at y=671..833
|
|
15484
|
+
// (power) and y=971..1301 (the continuous volume rocker), at 2.625x.
|
|
15485
|
+
lock: { side: "right", top: 671 / 2.625, height: 163 / 2.625 },
|
|
15486
|
+
ringToggle: { side: "left", top: -1e3, height: 0 },
|
|
15487
|
+
volumeUp: { side: "right", top: 971 / 2.625, height: 165 / 2.625 },
|
|
15488
|
+
volumeDown: { side: "right", top: 1136 / 2.625, height: 166 / 2.625 }
|
|
15489
|
+
};
|
|
15490
|
+
GALAXY_HARDWARE_BUTTONS = {
|
|
15491
|
+
width: 3,
|
|
15492
|
+
lock: { side: "right", top: 248, height: 72 },
|
|
15493
|
+
ringToggle: { side: "left", top: -1e3, height: 0 },
|
|
15494
|
+
volumeUp: { side: "right", top: 144, height: 62 },
|
|
15495
|
+
volumeDown: { side: "right", top: 216, height: 62 }
|
|
15496
|
+
};
|
|
15497
|
+
ANDROID_GESTURE_NAV_BAR_HEIGHT = 24;
|
|
15498
|
+
ANDROID_OS_VERSION = "17";
|
|
15499
|
+
ANDROID_API_LEVEL = 37;
|
|
15500
|
+
PIXEL_8_WIDTH = 1080 / 2.625;
|
|
15501
|
+
PIXEL_8_HEIGHT = 2400 / 2.625;
|
|
15502
|
+
GBOARD_PANEL_HEIGHTS = {
|
|
15503
|
+
qwerty: 883 / 2.625,
|
|
15504
|
+
pad: 883 / 2.625,
|
|
15505
|
+
emoji: 395
|
|
15506
|
+
};
|
|
15507
|
+
PIXEL_8_STATUS_BAR_HEIGHT = 132 / 2.625;
|
|
15508
|
+
PIXEL_8_LANDSCAPE_STATUS_BAR_HEIGHT = Math.round(28 * 2.625) / 2.625;
|
|
15509
|
+
DYNAMIC_WINDOW_LIMITS = {
|
|
15510
|
+
minWidth: 375,
|
|
15511
|
+
minHeight: 486,
|
|
15512
|
+
maxWidth: 1032,
|
|
15513
|
+
maxHeight: 1376
|
|
15514
|
+
};
|
|
15515
|
+
profiles = {
|
|
15516
|
+
"canvas-workspace": /* @__PURE__ */ iosDevice({
|
|
15517
|
+
model: "canvas-workspace",
|
|
15518
|
+
name: "Canvas Workspace",
|
|
15519
|
+
width: 1440,
|
|
15520
|
+
height: 900,
|
|
15521
|
+
scale: 1,
|
|
15522
|
+
statusBarHeight: 0,
|
|
15523
|
+
homeIndicatorHeight: 0,
|
|
15524
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(0),
|
|
15525
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(0),
|
|
15526
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(16),
|
|
15527
|
+
safeAreaInsets: { top: 0, bottom: 0, left: 0, right: 0 },
|
|
15528
|
+
// no native device has this geometry; carries the iphone 16 keyboard
|
|
15529
|
+
// height so the experimental profile still shows a keyboard.
|
|
15530
|
+
physicalPPI: 110,
|
|
15531
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
15532
|
+
[185.8, 41.7],
|
|
15533
|
+
[258.2, 67.6],
|
|
15534
|
+
[344, 67.6],
|
|
15535
|
+
[281.5, 106.9]
|
|
15536
|
+
),
|
|
15537
|
+
experimental: true
|
|
15538
|
+
}),
|
|
15539
|
+
"iphone-se": /* @__PURE__ */ iosDevice({
|
|
15540
|
+
model: "iphone-se",
|
|
15541
|
+
name: "iPhone SE",
|
|
15542
|
+
width: 375,
|
|
15543
|
+
height: 667,
|
|
15544
|
+
scale: 2,
|
|
15545
|
+
statusBarHeight: 20,
|
|
15546
|
+
homeIndicatorHeight: 0,
|
|
15547
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(0),
|
|
15548
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(0),
|
|
15549
|
+
// legacy home-button frame uses asymmetric LEGACY_*_BEZEL constants in the
|
|
15550
|
+
// shell (111pt forehead/chin, 29pt sides); uniform frameInsets are a sane
|
|
15551
|
+
// modern-path value and mirror the SE's ~28.7pt side bezel.
|
|
15552
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(28.7),
|
|
15553
|
+
safeAreaInsets: { top: 20, bottom: 0, left: 0, right: 0 },
|
|
15554
|
+
keyboardPanelHeights: { qwerty: 226, pad: 226, emoji: 320 },
|
|
15555
|
+
physicalPPI: 326,
|
|
15556
|
+
hardwareButtons: LEGACY_HARDWARE_BUTTONS
|
|
15557
|
+
}),
|
|
15558
|
+
"iphone-14": /* @__PURE__ */ iosDevice({
|
|
15559
|
+
model: "iphone-14",
|
|
15560
|
+
name: "iPhone 14",
|
|
15561
|
+
width: 390,
|
|
15562
|
+
height: 844,
|
|
15563
|
+
statusBarHeight: 47,
|
|
15564
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(46.2),
|
|
15565
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(67.462),
|
|
15566
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(19.5),
|
|
15567
|
+
safeAreaInsets: { top: 47, bottom: 34, left: 0, right: 0 },
|
|
15568
|
+
physicalPPI: 460,
|
|
15569
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
15570
|
+
[141.7, 29.7],
|
|
15571
|
+
[205.9, 69.6],
|
|
15572
|
+
[289.5, 69.6],
|
|
15573
|
+
[228.9, 114.5]
|
|
15574
|
+
)
|
|
15575
|
+
}),
|
|
15576
|
+
"iphone-15": /* @__PURE__ */ iosDevice({
|
|
15577
|
+
model: "iphone-15",
|
|
15578
|
+
name: "iPhone 15",
|
|
15579
|
+
width: 393,
|
|
15580
|
+
height: 852,
|
|
15581
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
|
|
15582
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(73.402),
|
|
15583
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(18.2),
|
|
15584
|
+
dynamicIsland: { width: 125, height: 110 / 3, top: 34 / 3 },
|
|
15585
|
+
statusRowCenter: 32.75,
|
|
15586
|
+
safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
|
|
15587
|
+
physicalPPI: 460,
|
|
15588
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
15589
|
+
[171.7, 32],
|
|
15590
|
+
[235.8, 65.3],
|
|
15591
|
+
[320.5, 65.3],
|
|
15592
|
+
[280.6, 105.2]
|
|
15593
|
+
)
|
|
15594
|
+
}),
|
|
15595
|
+
"iphone-15-plus": /* @__PURE__ */ iosDevice({
|
|
15596
|
+
model: "iphone-15-plus",
|
|
15597
|
+
name: "iPhone 15 Plus",
|
|
15598
|
+
width: 430,
|
|
15599
|
+
height: 932,
|
|
15600
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
|
|
15601
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(74.654),
|
|
15602
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(17.3),
|
|
15603
|
+
dynamicIsland: { width: 376 / 3, height: 110 / 3, top: 34 / 3 },
|
|
15604
|
+
statusRowCenter: 30.05,
|
|
15605
|
+
safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
|
|
15606
|
+
keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
|
|
15607
|
+
physicalPPI: 460,
|
|
15608
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
15609
|
+
[172.1, 33],
|
|
15610
|
+
[236.1, 66.6],
|
|
15611
|
+
[321.2, 66.6],
|
|
15612
|
+
[281, 106.8]
|
|
15613
|
+
)
|
|
15614
|
+
}),
|
|
15615
|
+
"iphone-15-pro": /* @__PURE__ */ iosDevice({
|
|
15616
|
+
model: "iphone-15-pro",
|
|
15617
|
+
name: "iPhone 15 Pro",
|
|
15618
|
+
width: 393,
|
|
15619
|
+
height: 852,
|
|
15620
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
|
|
15621
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(73.402),
|
|
15622
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
|
|
15623
|
+
dynamicIsland: { width: 125, height: 110 / 3, top: 34 / 3 },
|
|
15624
|
+
statusRowCenter: 32.4,
|
|
15625
|
+
safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
|
|
15626
|
+
physicalPPI: 460,
|
|
15627
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
15628
|
+
[159.1, 31.5],
|
|
15629
|
+
[220.1, 61.9],
|
|
15630
|
+
[299, 61.9],
|
|
15631
|
+
[260.8, 98.9]
|
|
15632
|
+
)
|
|
15633
|
+
}),
|
|
15634
|
+
"iphone-15-pro-max": /* @__PURE__ */ iosDevice({
|
|
15635
|
+
model: "iphone-15-pro-max",
|
|
15636
|
+
name: "iPhone 15 Pro Max",
|
|
15637
|
+
width: 430,
|
|
15638
|
+
height: 932,
|
|
15639
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
|
|
15640
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(74.654),
|
|
15641
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
|
|
15642
|
+
dynamicIsland: { width: 376 / 3, height: 110 / 3, top: 34 / 3 },
|
|
15643
|
+
statusRowCenter: 32.3,
|
|
15644
|
+
safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
|
|
15645
|
+
keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
|
|
15646
|
+
physicalPPI: 460,
|
|
15647
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
15648
|
+
[173.3, 32.2],
|
|
15649
|
+
[253.4, 61.7],
|
|
15650
|
+
[343.3, 61.7],
|
|
15651
|
+
[268.5, 98.5]
|
|
15652
|
+
)
|
|
15653
|
+
}),
|
|
15654
|
+
"iphone-16": /* @__PURE__ */ iosDevice({
|
|
15655
|
+
model: "iphone-16",
|
|
15656
|
+
name: "iPhone 16",
|
|
15657
|
+
width: 393,
|
|
15658
|
+
height: 852,
|
|
15659
|
+
// 2026-07-10: cornerRadius corrected 58 → 53.9 to Apple's own framebuffer
|
|
15660
|
+
// mask (extracted from the simdevicetype bundle PDF; see
|
|
15661
|
+
// packages/peach-engine/assets/device-frame-geometry). radius is a paint clip only — the
|
|
15662
|
+
// calibrated conformance-oracle layout fields below are unchanged.
|
|
15663
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
|
|
15664
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(73.402),
|
|
15665
|
+
// uikit's concentric-corner getter on the ios 27 iphone 16 returns 55.
|
|
15666
|
+
systemCornerRadius: /* @__PURE__ */ cornerRadii(55),
|
|
15667
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
|
|
15668
|
+
dynamicIsland: { width: 125, height: 110 / 3, top: 34 / 3 },
|
|
15669
|
+
statusRowCenter: 29.65,
|
|
15670
|
+
safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
|
|
15671
|
+
keyboardPanelHeights: { qwerty: 301, pad: 302, emoji: 395 },
|
|
15672
|
+
physicalPPI: 460,
|
|
15673
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
15674
|
+
[159.1, 31.5],
|
|
15675
|
+
[220.1, 61.9],
|
|
15676
|
+
[299, 61.9],
|
|
15677
|
+
[260.8, 98.9]
|
|
15678
|
+
)
|
|
15679
|
+
}),
|
|
15680
|
+
"iphone-16-plus": /* @__PURE__ */ iosDevice({
|
|
15681
|
+
model: "iphone-16-plus",
|
|
15682
|
+
name: "iPhone 16 Plus",
|
|
15683
|
+
width: 430,
|
|
15684
|
+
height: 932,
|
|
15685
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
|
|
15686
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(74.654),
|
|
15687
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
|
|
15688
|
+
dynamicIsland: { width: 376 / 3, height: 110 / 3, top: 34 / 3 },
|
|
15689
|
+
statusRowCenter: 30.05,
|
|
15690
|
+
safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
|
|
15691
|
+
keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
|
|
15692
|
+
physicalPPI: 460,
|
|
15693
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
15694
|
+
[173.3, 32.2],
|
|
15695
|
+
[253.4, 61.7],
|
|
15696
|
+
[343.3, 61.7],
|
|
15697
|
+
[268.5, 98.5]
|
|
15698
|
+
)
|
|
15699
|
+
}),
|
|
15700
|
+
"iphone-16-pro": /* @__PURE__ */ iosDevice({
|
|
15701
|
+
model: "iphone-16-pro",
|
|
15702
|
+
name: "iPhone 16 Pro",
|
|
15703
|
+
width: 402,
|
|
15704
|
+
height: 874,
|
|
15705
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(61),
|
|
15706
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(84.661),
|
|
15707
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
|
|
15708
|
+
dynamicIsland: { width: 125, height: 110 / 3, top: 14 },
|
|
15709
|
+
statusRowCenter: 32.5,
|
|
15710
|
+
safeAreaInsets: { top: 62, bottom: 34, left: 0, right: 0 },
|
|
15711
|
+
physicalPPI: 460,
|
|
15712
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
15713
|
+
[159.1, 31.5],
|
|
15714
|
+
[220.1, 61.9],
|
|
15715
|
+
[299, 61.9],
|
|
15716
|
+
[260.8, 98.9]
|
|
15717
|
+
)
|
|
15718
|
+
}),
|
|
15719
|
+
"iphone-16-pro-max": /* @__PURE__ */ iosDevice({
|
|
15720
|
+
model: "iphone-16-pro-max",
|
|
15721
|
+
name: "iPhone 16 Pro Max",
|
|
15722
|
+
width: 440,
|
|
15723
|
+
height: 956,
|
|
15724
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(61.3),
|
|
15725
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(85.163),
|
|
15726
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(15.4),
|
|
15727
|
+
dynamicIsland: { width: 376 / 3, height: 110 / 3, top: 14 },
|
|
15728
|
+
statusRowCenter: 33,
|
|
15729
|
+
safeAreaInsets: { top: 62, bottom: 34, left: 0, right: 0 },
|
|
15730
|
+
keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
|
|
15731
|
+
physicalPPI: 460,
|
|
15732
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
15733
|
+
[178.8, 32.2],
|
|
15734
|
+
[266.8, 61.8],
|
|
15735
|
+
[352.7, 61.8],
|
|
15736
|
+
[292.2, 98.3]
|
|
15737
|
+
)
|
|
15738
|
+
}),
|
|
15739
|
+
"iphone-17": /* @__PURE__ */ iosDevice({
|
|
15740
|
+
model: "iphone-17",
|
|
15741
|
+
name: "iPhone 17",
|
|
15742
|
+
width: 402,
|
|
15743
|
+
height: 874,
|
|
15744
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(61),
|
|
15745
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(84.661),
|
|
15746
|
+
// display border 1.44mm plus the visible flat housing rail.
|
|
15747
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
|
|
15748
|
+
dynamicIsland: { width: 125, height: 110 / 3, top: 14 },
|
|
15749
|
+
statusRowCenter: 32.65,
|
|
15750
|
+
safeAreaInsets: { top: 62, bottom: 34, left: 0, right: 0 },
|
|
15751
|
+
physicalPPI: 460,
|
|
15752
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
15753
|
+
[159.1, 31.5],
|
|
15754
|
+
[220.1, 61.9],
|
|
15755
|
+
[299, 61.9],
|
|
15756
|
+
[260.8, 98.9]
|
|
15757
|
+
)
|
|
15758
|
+
}),
|
|
15759
|
+
"iphone-17-air": /* @__PURE__ */ iosDevice({
|
|
15760
|
+
model: "iphone-17-air",
|
|
15761
|
+
// apple markets this as "iphone air" (not "iphone 17 air"). the real air
|
|
15762
|
+
// is 420x912 with thin bezels and a lower-sitting island. it is not the
|
|
15763
|
+
// 430x932 Plus body it used to be cloned from.
|
|
15764
|
+
name: "iPhone Air",
|
|
15765
|
+
width: 420,
|
|
15766
|
+
height: 912,
|
|
15767
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(64.6),
|
|
15768
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(88.313),
|
|
15769
|
+
// WHICH QUANTITY THIS IS, because it has been flipped twice and each pass
|
|
15770
|
+
// read the other one as a bug: frameInsets is the VISIBLE FACE-ON frame —
|
|
15771
|
+
// the black display border plus however much housing rail you actually see
|
|
15772
|
+
// looking straight at the phone. It is NOT the caliper silhouette.
|
|
15773
|
+
//
|
|
15774
|
+
// Apple publishes a 74.7×156.2mm body around a 1260×2736 display at 460ppi,
|
|
15775
|
+
// which is 15.475pt per side to the silhouette; that is the number to use if
|
|
15776
|
+
// you ever need physical dimensions, and it is what commit 4966fe6cac put
|
|
15777
|
+
// here. But most of that width on the Air is curved titanium turning away
|
|
15778
|
+
// from a head-on view, so rendering it as frame draws the Air with the
|
|
15779
|
+
// THICKEST bezel of any iPhone we ship when the real Air has the thinnest.
|
|
15780
|
+
//
|
|
15781
|
+
// So: 1.435mm display border = 8.69pt, plus ~2pt of rail that is actually
|
|
15782
|
+
// face-on. The 17 Pro's flat rail contributes ~6.6pt on the same basis,
|
|
15783
|
+
// which is why it sits at 15.3 and the Air should not.
|
|
15784
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(10.7),
|
|
15785
|
+
dynamicIsland: { width: 125, height: 110 / 3, top: 20 },
|
|
15786
|
+
statusRowCenter: 39,
|
|
15787
|
+
safeAreaInsets: { top: 68, bottom: 34, left: 0, right: 0 },
|
|
15788
|
+
keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
|
|
15789
|
+
physicalPPI: 460,
|
|
15790
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
15791
|
+
[178.8, 32.2],
|
|
15792
|
+
[266.8, 61.8],
|
|
15793
|
+
[352.7, 61.8],
|
|
15794
|
+
[292.2, 98.3]
|
|
15795
|
+
)
|
|
15796
|
+
}),
|
|
15797
|
+
"iphone-17-pro": /* @__PURE__ */ iosDevice({
|
|
15798
|
+
model: "iphone-17-pro",
|
|
15799
|
+
name: "iPhone 17 Pro",
|
|
15800
|
+
width: 402,
|
|
15801
|
+
height: 874,
|
|
15802
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(61),
|
|
15803
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(84.661),
|
|
15804
|
+
// the ios 27 simulator's ContainerRelativeShape at the root draws 62
|
|
15805
|
+
// less its smallest inset from the display (54 at 8pt, 32 at 30pt).
|
|
15806
|
+
systemCornerRadius: /* @__PURE__ */ cornerRadii(62),
|
|
15807
|
+
// display border 1.44mm plus the visible flat housing rail.
|
|
15808
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
|
|
15809
|
+
dynamicIsland: { width: 125, height: 110 / 3, top: 14 },
|
|
15810
|
+
statusRowCenter: 33,
|
|
15811
|
+
safeAreaInsets: { top: 62, bottom: 34, left: 0, right: 0 },
|
|
15812
|
+
// keyboardDidShow on the ios 27.0 simulator: 301 for the default keyboard,
|
|
15813
|
+
// 302 for the number pad.
|
|
15814
|
+
keyboardPanelHeights: { qwerty: 301, pad: 302, emoji: 395 },
|
|
15815
|
+
physicalPPI: 460,
|
|
15816
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
15817
|
+
[159.1, 31.5],
|
|
15818
|
+
[220.1, 61.9],
|
|
15819
|
+
[299, 61.9],
|
|
15820
|
+
[260.8, 98.9]
|
|
15821
|
+
)
|
|
15822
|
+
}),
|
|
15823
|
+
"iphone-17-pro-max": /* @__PURE__ */ iosDevice({
|
|
15824
|
+
model: "iphone-17-pro-max",
|
|
15825
|
+
name: "iPhone 17 Pro Max",
|
|
15826
|
+
width: 440,
|
|
15827
|
+
height: 956,
|
|
15828
|
+
// same ios 26.4 440x956 dynamic island max profile as the measured
|
|
15829
|
+
// iphone 16 pro max screens proof oracle.
|
|
15830
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(61.3),
|
|
15831
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(85.163),
|
|
15832
|
+
// display border 1.36mm plus the visible flat housing rail.
|
|
15833
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(15.4),
|
|
15834
|
+
dynamicIsland: { width: 376 / 3, height: 110 / 3, top: 14 },
|
|
15835
|
+
statusRowCenter: 33,
|
|
15836
|
+
safeAreaInsets: { top: 62, bottom: 34, left: 0, right: 0 },
|
|
15837
|
+
keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
|
|
15838
|
+
physicalPPI: 460,
|
|
15839
|
+
hardwareButtons: /* @__PURE__ */ modernButtons(
|
|
15840
|
+
[178.8, 32.2],
|
|
15841
|
+
[266.8, 61.8],
|
|
15842
|
+
[352.7, 61.8],
|
|
15843
|
+
[292.2, 98.3]
|
|
15844
|
+
)
|
|
15845
|
+
}),
|
|
15846
|
+
"iphone-duo": {
|
|
15847
|
+
// offered on contributor surfaces only while the 27 home and the hinge
|
|
15848
|
+
// measurements are still settling (nate, 2026-09-15).
|
|
15849
|
+
developmentOnly: true,
|
|
15850
|
+
.../* @__PURE__ */ iosDevice({
|
|
15851
|
+
model: "iphone-duo",
|
|
15852
|
+
name: "iPhone Duo",
|
|
15853
|
+
width: 466,
|
|
15854
|
+
height: 678,
|
|
15855
|
+
statusBarHeight: 66,
|
|
15856
|
+
// the ios 27.1 duo simulator draws the gesture home indicator in both
|
|
15857
|
+
// postures: a 167pt x 5pt pill 8pt above the display bottom on the
|
|
15858
|
+
// cover, sized by the same rule as the other iphones (HomeIndicator).
|
|
15859
|
+
// hinge on the left. the hinge-side display corners measure 5pt in
|
|
15860
|
+
// apple's 2d outer product art; the free side keeps the 61pt pro curve.
|
|
15861
|
+
cornerRadius: { topLeft: 5, topRight: 61, bottomRight: 61, bottomLeft: 5 },
|
|
15862
|
+
continuousCornerRadius: {
|
|
15863
|
+
topLeft: 5,
|
|
15864
|
+
topRight: 61,
|
|
15865
|
+
bottomRight: 61,
|
|
15866
|
+
bottomLeft: 5
|
|
15867
|
+
},
|
|
15868
|
+
// the ios 27.1 duo simulator reports 59, and sheets 8pt in on the free
|
|
15869
|
+
// side carry 51 there (41 at 18pt in).
|
|
15870
|
+
systemCornerRadius: { topLeft: 5, topRight: 59, bottomRight: 59, bottomLeft: 5 },
|
|
15871
|
+
// display edge to silhouette, measured off apple's 2d outer product art
|
|
15872
|
+
// at 3x. the barrel is not part of the body: it protrudes 11.67pt past
|
|
15873
|
+
// the left silhouette, so the full outer width is frame + protrusion.
|
|
15874
|
+
frameInsets: { top: 16.3333, right: 16.3333, bottom: 16, left: 14 },
|
|
15875
|
+
// the spine is a flat cut, so its corners are tiny; the free side keeps
|
|
15876
|
+
// the 75pt body curve the pro bodies use.
|
|
15877
|
+
frameCornerRadius: {
|
|
15878
|
+
topLeft: 4.3333,
|
|
15879
|
+
topRight: 75,
|
|
15880
|
+
bottomRight: 75,
|
|
15881
|
+
bottomLeft: 3.3333
|
|
15882
|
+
},
|
|
15883
|
+
housing: {
|
|
15884
|
+
rail: { top: 7.5, right: 8, bottom: 7.3333, left: 5.3333 },
|
|
15885
|
+
hingeBarrel: { width: 16.6667, endInset: 7.3333, protrusion: 11.6667 }
|
|
15886
|
+
},
|
|
15887
|
+
// 84pt trailing Vertical Bar on the outer display (Apple iOS 27 UI kit).
|
|
15888
|
+
safeAreaInsets: { top: 0, bottom: 34, left: 0, right: 84 },
|
|
15889
|
+
iosVersion: "27.1",
|
|
15890
|
+
// ios 27.1 24a94425: ordinary qwerty host (0,413,466,265)pt;
|
|
15891
|
+
// docs/ios/framework-oracle/keyboard-tray-accessibility-and-duo-recipes.md.
|
|
15892
|
+
// the cover keyboard cells report number pad 269; emoji keeps 338.
|
|
15893
|
+
keyboardPanelHeights: { qwerty: 265, pad: 269, emoji: 338 },
|
|
15894
|
+
physicalPPI: 460,
|
|
15895
|
+
// official model extraction for button positions is outside this slice.
|
|
15896
|
+
hardwareButtons: /* @__PURE__ */ modernButtons([0, 0], [0, 0], [0, 0], [0, 0]),
|
|
15897
|
+
posture: "closed",
|
|
15898
|
+
supportedPostures: ["closed", "open"]
|
|
15899
|
+
}),
|
|
15900
|
+
// the ios 27.1 simulator's camera occlusion region: 37pt, 29 1/3 in from
|
|
15901
|
+
// the top and trailing edges
|
|
15902
|
+
cameraCutout: {
|
|
15903
|
+
diameter: 37,
|
|
15904
|
+
top: 88 / 3,
|
|
15905
|
+
trailing: 88 / 3
|
|
15906
|
+
},
|
|
15907
|
+
// closed portrait popover region on the ios 27.1 duo simulator (uikit
|
|
15908
|
+
// sheet probe, popoverLayoutMargins zero): left 8, the other edges 25.
|
|
15909
|
+
// the open and rotated profiles are unmeasured and drop it.
|
|
15910
|
+
popoverRegionInsets: { left: 8, top: 25, right: 25, bottom: 25 }
|
|
15911
|
+
},
|
|
15912
|
+
"ipad-pro-11": {
|
|
15913
|
+
// frame and hardware buttons are not sourced yet, so this stays off the
|
|
15914
|
+
// shipping picker the same way the duo does.
|
|
15915
|
+
developmentOnly: true,
|
|
15916
|
+
.../* @__PURE__ */ ipadProDevice(
|
|
15917
|
+
"ipad-pro-11",
|
|
15918
|
+
"iPad Pro 11-inch (M5)",
|
|
15919
|
+
834,
|
|
15920
|
+
1210,
|
|
15921
|
+
11,
|
|
15922
|
+
340
|
|
15923
|
+
)
|
|
15924
|
+
},
|
|
15925
|
+
"ipad-pro-13": /* @__PURE__ */ ipadProDevice(
|
|
15926
|
+
"ipad-pro-13",
|
|
15927
|
+
"iPad Pro 13-inch (M5)",
|
|
15928
|
+
1032,
|
|
15929
|
+
1376,
|
|
15930
|
+
13,
|
|
15931
|
+
403
|
|
15932
|
+
),
|
|
15933
|
+
// an iPadOS app window the user resizes, on the iPad Pro 13-inch (M5). the
|
|
15934
|
+
// profile is the launch window; the host sizes it with withWindowSize.
|
|
15935
|
+
// numbers are the iOS 27.0 Stage Manager window in
|
|
15936
|
+
// docs/ios/ipad-window-geometry.md.
|
|
15937
|
+
dynamic: {
|
|
15938
|
+
.../* @__PURE__ */ ipadProDevice("dynamic", "Dynamic Window", 375, 753, 13, 403),
|
|
15939
|
+
// the window starts below the screen's status strip and no home indicator
|
|
15940
|
+
// is drawn in it, so neither insets the window.
|
|
15941
|
+
statusBarHeight: 0,
|
|
15942
|
+
landscapeStatusBarHeight: 0,
|
|
15943
|
+
homeIndicatorHeight: 0,
|
|
15944
|
+
navigationBarMode: "none",
|
|
15945
|
+
// the system clips the window to a 32pt circular arc.
|
|
15946
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(32),
|
|
15947
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(32),
|
|
15948
|
+
// the display's diagonal, not the window's.
|
|
15949
|
+
physicalPPI: Math.hypot(2064, 2752) / 13,
|
|
15950
|
+
safeAreaInsets: { top: 0, bottom: 0, left: 10, right: 10 },
|
|
15951
|
+
packagedOnly: true
|
|
15952
|
+
},
|
|
15953
|
+
"pixel-8": {
|
|
15954
|
+
model: "pixel-8",
|
|
15955
|
+
platform: "android",
|
|
15956
|
+
name: "Pixel 8",
|
|
15957
|
+
width: PIXEL_8_WIDTH,
|
|
15958
|
+
height: PIXEL_8_HEIGHT,
|
|
15959
|
+
scale: 2.625,
|
|
15960
|
+
statusBarHeight: PIXEL_8_STATUS_BAR_HEIGHT,
|
|
15961
|
+
landscapeStatusBarHeight: PIXEL_8_LANDSCAPE_STATUS_BAR_HEIGHT,
|
|
15962
|
+
homeIndicatorHeight: 0,
|
|
15963
|
+
navigationBarHeight: ANDROID_GESTURE_NAV_BAR_HEIGHT,
|
|
15964
|
+
keyboardPanelHeights: GBOARD_PANEL_HEIGHTS,
|
|
15965
|
+
navigationBarMode: "gesture",
|
|
15966
|
+
displayCutout: {
|
|
15967
|
+
top: PIXEL_8_STATUS_BAR_HEIGHT,
|
|
15968
|
+
bottom: 0,
|
|
15969
|
+
left: 0,
|
|
15970
|
+
right: 0
|
|
15971
|
+
},
|
|
15972
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(39),
|
|
15973
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(39),
|
|
15974
|
+
// android studio's pixel 8 device art places the 1080x2400 display at
|
|
15975
|
+
// (49,55) in a 1187x2513 body. the right side button occupies the final
|
|
15976
|
+
// 8 physical pixels, so the body insets are 49/50/58/55 at 2.625x.
|
|
15977
|
+
frameInsets: {
|
|
15978
|
+
top: 55 / 2.625,
|
|
15979
|
+
right: 50 / 2.625,
|
|
15980
|
+
bottom: 58 / 2.625,
|
|
15981
|
+
left: 49 / 2.625
|
|
15982
|
+
},
|
|
15983
|
+
dynamicIsland: null,
|
|
15984
|
+
cameraCutout: { diameter: 72.5 / 2.625 },
|
|
15985
|
+
safeAreaInsets: {
|
|
15986
|
+
top: PIXEL_8_STATUS_BAR_HEIGHT,
|
|
15987
|
+
bottom: ANDROID_GESTURE_NAV_BAR_HEIGHT,
|
|
15988
|
+
left: 0,
|
|
15989
|
+
right: 0
|
|
15990
|
+
},
|
|
15991
|
+
osVersion: ANDROID_OS_VERSION,
|
|
15992
|
+
iosVersion: "",
|
|
15993
|
+
androidApiLevel: ANDROID_API_LEVEL,
|
|
15994
|
+
systemName: "Android",
|
|
15995
|
+
manufacturer: "Google",
|
|
15996
|
+
brand: "google",
|
|
15997
|
+
modelName: "Pixel 8",
|
|
15998
|
+
physicalPPI: 428,
|
|
15999
|
+
hardwareButtons: PIXEL_HARDWARE_BUTTONS
|
|
16000
|
+
},
|
|
16001
|
+
"pixel-8-three-button": {
|
|
16002
|
+
model: "pixel-8-three-button",
|
|
16003
|
+
platform: "android",
|
|
16004
|
+
name: "Pixel 8 (3-button)",
|
|
16005
|
+
width: PIXEL_8_WIDTH,
|
|
16006
|
+
height: PIXEL_8_HEIGHT,
|
|
16007
|
+
scale: 2.625,
|
|
16008
|
+
statusBarHeight: PIXEL_8_STATUS_BAR_HEIGHT,
|
|
16009
|
+
landscapeStatusBarHeight: PIXEL_8_LANDSCAPE_STATUS_BAR_HEIGHT,
|
|
16010
|
+
homeIndicatorHeight: 0,
|
|
16011
|
+
navigationBarHeight: 48,
|
|
16012
|
+
keyboardPanelHeights: GBOARD_PANEL_HEIGHTS,
|
|
16013
|
+
navigationBarMode: "three-button",
|
|
16014
|
+
displayCutout: {
|
|
16015
|
+
top: PIXEL_8_STATUS_BAR_HEIGHT,
|
|
16016
|
+
bottom: 0,
|
|
16017
|
+
left: 0,
|
|
16018
|
+
right: 0
|
|
16019
|
+
},
|
|
16020
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(39),
|
|
16021
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(39),
|
|
16022
|
+
frameInsets: {
|
|
16023
|
+
top: 55 / 2.625,
|
|
16024
|
+
right: 50 / 2.625,
|
|
16025
|
+
bottom: 58 / 2.625,
|
|
16026
|
+
left: 49 / 2.625
|
|
16027
|
+
},
|
|
16028
|
+
dynamicIsland: null,
|
|
16029
|
+
cameraCutout: { diameter: 72.5 / 2.625 },
|
|
16030
|
+
safeAreaInsets: {
|
|
16031
|
+
top: PIXEL_8_STATUS_BAR_HEIGHT,
|
|
16032
|
+
bottom: 48,
|
|
16033
|
+
left: 0,
|
|
16034
|
+
right: 0
|
|
16035
|
+
},
|
|
16036
|
+
osVersion: ANDROID_OS_VERSION,
|
|
16037
|
+
iosVersion: "",
|
|
16038
|
+
androidApiLevel: ANDROID_API_LEVEL,
|
|
16039
|
+
systemName: "Android",
|
|
16040
|
+
manufacturer: "Google",
|
|
16041
|
+
brand: "google",
|
|
16042
|
+
modelName: "Pixel 8",
|
|
16043
|
+
physicalPPI: 428,
|
|
16044
|
+
hardwareButtons: PIXEL_HARDWARE_BUTTONS
|
|
16045
|
+
},
|
|
16046
|
+
"pixel-9-pro-xl": {
|
|
16047
|
+
model: "pixel-9-pro-xl",
|
|
16048
|
+
platform: "android",
|
|
16049
|
+
name: "Pixel 9 Pro XL",
|
|
16050
|
+
width: 448,
|
|
16051
|
+
height: 997,
|
|
16052
|
+
scale: 3,
|
|
16053
|
+
statusBarHeight: 40,
|
|
16054
|
+
landscapeStatusBarHeight: 40,
|
|
16055
|
+
homeIndicatorHeight: 0,
|
|
16056
|
+
navigationBarHeight: ANDROID_GESTURE_NAV_BAR_HEIGHT,
|
|
16057
|
+
keyboardPanelHeights: GBOARD_PANEL_HEIGHTS,
|
|
16058
|
+
navigationBarMode: "gesture",
|
|
16059
|
+
displayCutout: { top: 40, bottom: 0, left: 0, right: 0 },
|
|
16060
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(41),
|
|
16061
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(41),
|
|
16062
|
+
// Pixel 9 Pro XL body 162.8×76.6mm over a 70.2mm panel → ~1.8mm ≈ 12pt.
|
|
16063
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(12),
|
|
16064
|
+
dynamicIsland: null,
|
|
16065
|
+
cameraCutout: { diameter: 24 },
|
|
16066
|
+
safeAreaInsets: {
|
|
16067
|
+
top: 40,
|
|
16068
|
+
bottom: ANDROID_GESTURE_NAV_BAR_HEIGHT,
|
|
16069
|
+
left: 0,
|
|
16070
|
+
right: 0
|
|
16071
|
+
},
|
|
16072
|
+
osVersion: ANDROID_OS_VERSION,
|
|
16073
|
+
iosVersion: "",
|
|
16074
|
+
androidApiLevel: ANDROID_API_LEVEL,
|
|
16075
|
+
systemName: "Android",
|
|
16076
|
+
manufacturer: "Google",
|
|
16077
|
+
brand: "google",
|
|
16078
|
+
modelName: "Pixel 9 Pro XL",
|
|
16079
|
+
physicalPPI: 486,
|
|
16080
|
+
hardwareButtons: PIXEL_HARDWARE_BUTTONS
|
|
16081
|
+
},
|
|
16082
|
+
"pixel-10": {
|
|
16083
|
+
model: "pixel-10",
|
|
16084
|
+
platform: "android",
|
|
16085
|
+
name: "Pixel 10",
|
|
16086
|
+
width: 360,
|
|
16087
|
+
height: 808,
|
|
16088
|
+
scale: 3,
|
|
16089
|
+
statusBarHeight: 40,
|
|
16090
|
+
landscapeStatusBarHeight: 40,
|
|
16091
|
+
homeIndicatorHeight: 0,
|
|
16092
|
+
navigationBarHeight: ANDROID_GESTURE_NAV_BAR_HEIGHT,
|
|
16093
|
+
keyboardPanelHeights: GBOARD_PANEL_HEIGHTS,
|
|
16094
|
+
navigationBarMode: "gesture",
|
|
16095
|
+
displayCutout: { top: 40, bottom: 0, left: 0, right: 0 },
|
|
16096
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(40),
|
|
16097
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(40),
|
|
16098
|
+
// the 72mm body surrounds a roughly 65.1mm-wide 6.3-inch panel, which
|
|
16099
|
+
// resolves to about 18 logical points of frame around the 1080px display.
|
|
16100
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(18),
|
|
16101
|
+
dynamicIsland: null,
|
|
16102
|
+
cameraCutout: { diameter: 26 },
|
|
16103
|
+
safeAreaInsets: {
|
|
16104
|
+
top: 40,
|
|
16105
|
+
bottom: ANDROID_GESTURE_NAV_BAR_HEIGHT,
|
|
16106
|
+
left: 0,
|
|
16107
|
+
right: 0
|
|
16108
|
+
},
|
|
16109
|
+
osVersion: ANDROID_OS_VERSION,
|
|
16110
|
+
iosVersion: "",
|
|
16111
|
+
androidApiLevel: ANDROID_API_LEVEL,
|
|
16112
|
+
systemName: "Android",
|
|
16113
|
+
manufacturer: "Google",
|
|
16114
|
+
brand: "google",
|
|
16115
|
+
modelName: "Pixel 10",
|
|
16116
|
+
physicalPPI: 422,
|
|
16117
|
+
hardwareButtons: PIXEL_HARDWARE_BUTTONS
|
|
16118
|
+
},
|
|
16119
|
+
"galaxy-s24": {
|
|
16120
|
+
model: "galaxy-s24",
|
|
16121
|
+
platform: "android",
|
|
16122
|
+
name: "Galaxy S24",
|
|
16123
|
+
width: 360,
|
|
16124
|
+
height: 780,
|
|
16125
|
+
scale: 3,
|
|
16126
|
+
statusBarHeight: 36,
|
|
16127
|
+
landscapeStatusBarHeight: 36,
|
|
16128
|
+
homeIndicatorHeight: 0,
|
|
16129
|
+
navigationBarHeight: ANDROID_GESTURE_NAV_BAR_HEIGHT,
|
|
16130
|
+
keyboardPanelHeights: GBOARD_PANEL_HEIGHTS,
|
|
16131
|
+
navigationBarMode: "gesture",
|
|
16132
|
+
displayCutout: { top: 36, bottom: 0, left: 0, right: 0 },
|
|
16133
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(36),
|
|
16134
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(36),
|
|
16135
|
+
// Galaxy S24 body 147.0×70.6mm over a 65.9mm panel → ~1.2mm ≈ 8pt (Samsung
|
|
16136
|
+
// flat-display bezels are noticeably thinner than Pixel's).
|
|
16137
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(8),
|
|
16138
|
+
dynamicIsland: null,
|
|
16139
|
+
cameraCutout: { diameter: 18 },
|
|
16140
|
+
safeAreaInsets: {
|
|
16141
|
+
top: 36,
|
|
16142
|
+
bottom: ANDROID_GESTURE_NAV_BAR_HEIGHT,
|
|
16143
|
+
left: 0,
|
|
16144
|
+
right: 0
|
|
16145
|
+
},
|
|
16146
|
+
osVersion: ANDROID_OS_VERSION,
|
|
16147
|
+
iosVersion: "",
|
|
16148
|
+
androidApiLevel: ANDROID_API_LEVEL,
|
|
16149
|
+
systemName: "Android",
|
|
16150
|
+
manufacturer: "Samsung",
|
|
16151
|
+
brand: "samsung",
|
|
16152
|
+
modelName: "SM-S921B",
|
|
16153
|
+
physicalPPI: 416,
|
|
16154
|
+
hardwareButtons: GALAXY_HARDWARE_BUTTONS
|
|
16155
|
+
},
|
|
16156
|
+
"galaxy-s24-ultra": {
|
|
16157
|
+
model: "galaxy-s24-ultra",
|
|
16158
|
+
platform: "android",
|
|
16159
|
+
name: "Galaxy S24 Ultra",
|
|
16160
|
+
width: 384,
|
|
16161
|
+
// samsung publishes a 1440x3120 panel; 3.75x resolves to 384x832.
|
|
16162
|
+
height: 832,
|
|
16163
|
+
scale: 3.75,
|
|
16164
|
+
statusBarHeight: 36,
|
|
16165
|
+
landscapeStatusBarHeight: 36,
|
|
16166
|
+
homeIndicatorHeight: 0,
|
|
16167
|
+
navigationBarHeight: ANDROID_GESTURE_NAV_BAR_HEIGHT,
|
|
16168
|
+
keyboardPanelHeights: GBOARD_PANEL_HEIGHTS,
|
|
16169
|
+
navigationBarMode: "gesture",
|
|
16170
|
+
displayCutout: { top: 36, bottom: 0, left: 0, right: 0 },
|
|
16171
|
+
cornerRadius: /* @__PURE__ */ cornerRadii(24),
|
|
16172
|
+
continuousCornerRadius: /* @__PURE__ */ cornerRadii(24),
|
|
16173
|
+
// Galaxy S24 Ultra body 162.3×79.0mm over a 72.4mm panel → ~1.5mm ≈ 9pt.
|
|
16174
|
+
frameInsets: /* @__PURE__ */ uniformFrameInsets(9),
|
|
16175
|
+
dynamicIsland: null,
|
|
16176
|
+
cameraCutout: { diameter: 18 },
|
|
16177
|
+
safeAreaInsets: {
|
|
16178
|
+
top: 36,
|
|
16179
|
+
bottom: ANDROID_GESTURE_NAV_BAR_HEIGHT,
|
|
16180
|
+
left: 0,
|
|
16181
|
+
right: 0
|
|
16182
|
+
},
|
|
16183
|
+
osVersion: ANDROID_OS_VERSION,
|
|
16184
|
+
iosVersion: "",
|
|
16185
|
+
androidApiLevel: ANDROID_API_LEVEL,
|
|
16186
|
+
systemName: "Android",
|
|
16187
|
+
manufacturer: "Samsung",
|
|
16188
|
+
brand: "samsung",
|
|
16189
|
+
modelName: "SM-S928B",
|
|
16190
|
+
physicalPPI: 505,
|
|
16191
|
+
hardwareButtons: GALAXY_HARDWARE_BUTTONS
|
|
16192
|
+
}
|
|
16193
|
+
};
|
|
16194
|
+
devices = profiles;
|
|
16195
|
+
DEFAULT_DEVICE = "iphone-17-pro";
|
|
16196
|
+
}
|
|
16197
|
+
});
|
|
16198
|
+
|
|
16199
|
+
// src/menuContract.ts
|
|
16200
|
+
var SOOTSIM_AMBIENT_GLOW_LEVELS, SOOTSIM_STAGE_BACKGROUNDS, SOOTSIM_RENDER_RESOLUTION_LEVELS;
|
|
16201
|
+
var init_menuContract = __esm({
|
|
16202
|
+
"src/menuContract.ts"() {
|
|
16203
|
+
"use strict";
|
|
16204
|
+
SOOTSIM_AMBIENT_GLOW_LEVELS = ["off", "soft", "full"];
|
|
16205
|
+
SOOTSIM_STAGE_BACKGROUNDS = ["system", "light", "dark", "gray"];
|
|
16206
|
+
SOOTSIM_RENDER_RESOLUTION_LEVELS = ["high", "medium", "low"];
|
|
16207
|
+
}
|
|
16208
|
+
});
|
|
16209
|
+
|
|
16210
|
+
// src/reactNativeConfigurationContract.ts
|
|
16211
|
+
var DEFAULT_REACT_NATIVE_CONFIGURATION, REACT_NATIVE_CONFIGURATION_KEYS;
|
|
16212
|
+
var init_reactNativeConfigurationContract = __esm({
|
|
16213
|
+
"src/reactNativeConfigurationContract.ts"() {
|
|
16214
|
+
"use strict";
|
|
16215
|
+
DEFAULT_REACT_NATIVE_CONFIGURATION = {
|
|
16216
|
+
// the appearance setting itself (automatic, light or dark); the resolved
|
|
16217
|
+
// scheme reaches workers through Appearance
|
|
16218
|
+
colorScheme: "auto",
|
|
16219
|
+
language: "en",
|
|
16220
|
+
preferredLanguages: Array(),
|
|
16221
|
+
region: "US",
|
|
16222
|
+
fontSize: 1,
|
|
16223
|
+
boldText: false,
|
|
16224
|
+
reduceMotion: false,
|
|
16225
|
+
largerAccessibilitySizes: false,
|
|
16226
|
+
glassTintAmount: 0.5,
|
|
16227
|
+
reduceTransparency: false,
|
|
16228
|
+
increaseContrast: false,
|
|
16229
|
+
showBorders: false,
|
|
16230
|
+
onOffLabels: false,
|
|
16231
|
+
differentiateWithoutColor: false,
|
|
16232
|
+
smartInvert: false,
|
|
16233
|
+
preferCrossFadeTransitions: false
|
|
16234
|
+
};
|
|
16235
|
+
REACT_NATIVE_CONFIGURATION_KEYS = Object.keys(
|
|
16236
|
+
DEFAULT_REACT_NATIVE_CONFIGURATION
|
|
16237
|
+
).filter(
|
|
16238
|
+
(key) => key in DEFAULT_REACT_NATIVE_CONFIGURATION
|
|
16239
|
+
);
|
|
16240
|
+
}
|
|
16241
|
+
});
|
|
16242
|
+
|
|
16243
|
+
// src/screenshots/preset-names.ts
|
|
16244
|
+
var SCREENSHOT_CANVAS_NAMES, BACKGROUND_PRESET_NAMES, TEXT_PRESET_NAMES, POSE_PRESET_NAMES;
|
|
16245
|
+
var init_preset_names = __esm({
|
|
16246
|
+
"src/screenshots/preset-names.ts"() {
|
|
16247
|
+
"use strict";
|
|
16248
|
+
SCREENSHOT_CANVAS_NAMES = [
|
|
16249
|
+
"iphone-6-9",
|
|
16250
|
+
"iphone-6-1",
|
|
16251
|
+
"ipad-pro-13",
|
|
16252
|
+
"android-phone",
|
|
16253
|
+
"android-tablet-7",
|
|
16254
|
+
"android-tablet-10"
|
|
16255
|
+
];
|
|
16256
|
+
BACKGROUND_PRESET_NAMES = ["dark", "cyan", "gold", "red"];
|
|
16257
|
+
TEXT_PRESET_NAMES = [
|
|
16258
|
+
"bold-top",
|
|
16259
|
+
"editorial-left",
|
|
16260
|
+
"minimal-bottom",
|
|
16261
|
+
"none"
|
|
16262
|
+
];
|
|
16263
|
+
POSE_PRESET_NAMES = [
|
|
16264
|
+
"straight",
|
|
16265
|
+
"tilted-left",
|
|
16266
|
+
"tilted-right",
|
|
16267
|
+
"cut-bottom",
|
|
16268
|
+
"cut-top"
|
|
16269
|
+
];
|
|
16270
|
+
}
|
|
16271
|
+
});
|
|
16272
|
+
|
|
16273
|
+
// src/settingsContract.ts
|
|
16274
|
+
function isValidSettingValue(key, value) {
|
|
16275
|
+
const def = settingsSchema[key];
|
|
16276
|
+
if (!def || typeof value !== SETTING_VALUE_TYPES[def.type]) return false;
|
|
16277
|
+
if (def.options && !def.options.some((option) => option === value)) return false;
|
|
16278
|
+
return !def.validate || def.validate(value);
|
|
16279
|
+
}
|
|
16280
|
+
function isProfileSettingKey(key) {
|
|
16281
|
+
return PROFILE_SETTING_KEYS.some((profileKey) => profileKey === key);
|
|
16282
|
+
}
|
|
16283
|
+
function isValidProfileValue(key, value) {
|
|
16284
|
+
if (!isValidSettingValue(key, value)) return false;
|
|
16285
|
+
return key !== "fontSize" || IOS_DYNAMIC_TYPE_SCALES.some((scale) => scale === value);
|
|
16286
|
+
}
|
|
16287
|
+
function describeSettingValues(key) {
|
|
16288
|
+
if (key === "fontSize")
|
|
16289
|
+
return `a Dynamic Type size (${IOS_DYNAMIC_TYPE_SCALES.join(", ")})`;
|
|
16290
|
+
const def = settingsSchema[key];
|
|
16291
|
+
if (def.type === "boolean") return "on or off";
|
|
16292
|
+
if (def.options) return def.options.join(", ");
|
|
16293
|
+
if (def.type === "string-array") return "a comma separated list";
|
|
16294
|
+
if (def.type === "number") return def.validate ? "a number in its range" : "a number";
|
|
16295
|
+
return "text";
|
|
16296
|
+
}
|
|
16297
|
+
function readSettingsProfile(value, label) {
|
|
16298
|
+
if (typeof value !== "object" || value === null || Array.isArray(value))
|
|
16299
|
+
throw new Error(`${label} must be an object of settings`);
|
|
16300
|
+
const profile = {};
|
|
16301
|
+
for (const [key, setting] of Object.entries(value)) {
|
|
16302
|
+
if (!isProfileSettingKey(key))
|
|
16303
|
+
throw new Error(
|
|
16304
|
+
`${label}: unknown setting "${key}". profiles set ${PROFILE_SETTING_KEYS.join(", ")}`
|
|
16305
|
+
);
|
|
16306
|
+
if (!isValidProfileValue(key, setting))
|
|
16307
|
+
throw new Error(
|
|
16308
|
+
`${label}: ${key} must be ${describeSettingValues(key)}, got ${JSON.stringify(setting)}`
|
|
16309
|
+
);
|
|
16310
|
+
profile[key] = setting;
|
|
16311
|
+
}
|
|
16312
|
+
return profile;
|
|
16313
|
+
}
|
|
16314
|
+
var SIMULATED_DEVICE_SETTING_KEYS, settingsSchema, SETTING_VALUE_TYPES, DEFAULT_SIMULATED_DEVICE_SETTINGS, PROFILE_SETTING_KEYS;
|
|
16315
|
+
var init_settingsContract = __esm({
|
|
16316
|
+
"src/settingsContract.ts"() {
|
|
16317
|
+
"use strict";
|
|
16318
|
+
init_dynamic_type_scales();
|
|
16319
|
+
init_profilerContract();
|
|
16320
|
+
init_device_catalog();
|
|
16321
|
+
init_menuContract();
|
|
16322
|
+
init_reactNativeConfigurationContract();
|
|
16323
|
+
init_preset_names();
|
|
16324
|
+
SIMULATED_DEVICE_SETTING_KEYS = [
|
|
16325
|
+
"predictiveText",
|
|
16326
|
+
"colorScheme",
|
|
16327
|
+
"reduceMotion",
|
|
16328
|
+
"boldText",
|
|
16329
|
+
"fontSize",
|
|
16330
|
+
"largerAccessibilitySizes",
|
|
16331
|
+
"glassTintAmount",
|
|
16332
|
+
"reduceTransparency",
|
|
16333
|
+
"increaseContrast",
|
|
16334
|
+
"showBorders",
|
|
16335
|
+
"onOffLabels",
|
|
16336
|
+
"differentiateWithoutColor",
|
|
16337
|
+
"smartInvert",
|
|
16338
|
+
"preferCrossFadeTransitions"
|
|
16339
|
+
];
|
|
16340
|
+
settingsSchema = {
|
|
16341
|
+
// device
|
|
16342
|
+
deviceModel: {
|
|
16343
|
+
type: "enum",
|
|
16344
|
+
default: DEFAULT_DEVICE,
|
|
16345
|
+
description: "device model to simulate",
|
|
16346
|
+
options: listDeviceModels(),
|
|
16347
|
+
group: "device"
|
|
16348
|
+
},
|
|
16349
|
+
posture: {
|
|
16350
|
+
type: "enum",
|
|
16351
|
+
default: "closed",
|
|
16352
|
+
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",
|
|
16353
|
+
options: ["closed", "open"],
|
|
16354
|
+
group: "device"
|
|
16355
|
+
},
|
|
16356
|
+
orientation: {
|
|
16357
|
+
type: "enum",
|
|
16358
|
+
default: "portrait",
|
|
16359
|
+
description: "screen orientation",
|
|
16360
|
+
options: ["portrait", "landscape"],
|
|
16361
|
+
group: "device"
|
|
16362
|
+
},
|
|
16363
|
+
landscapeSide: {
|
|
16364
|
+
type: "enum",
|
|
16365
|
+
default: "left",
|
|
16366
|
+
description: "which landscape the device turns to: left (clockwise) or right",
|
|
16367
|
+
options: ["left", "right"],
|
|
16368
|
+
group: "device"
|
|
16369
|
+
},
|
|
16370
|
+
// an iPadOS window launches at 375 x 753 (docs/ios/ipad-window-geometry.md)
|
|
16371
|
+
dynamicWidth: {
|
|
16372
|
+
type: "number",
|
|
16373
|
+
default: devices.dynamic.width,
|
|
16374
|
+
description: "dynamic window width in points",
|
|
16375
|
+
group: "device",
|
|
16376
|
+
validate: (value) => value >= DYNAMIC_WINDOW_LIMITS.minWidth && value <= DYNAMIC_WINDOW_LIMITS.maxWidth
|
|
16377
|
+
},
|
|
16378
|
+
dynamicHeight: {
|
|
16379
|
+
type: "number",
|
|
16380
|
+
default: devices.dynamic.height,
|
|
16381
|
+
description: "dynamic window height in points",
|
|
16382
|
+
group: "device",
|
|
16383
|
+
validate: (value) => value >= DYNAMIC_WINDOW_LIMITS.minHeight && value <= DYNAMIC_WINDOW_LIMITS.maxHeight
|
|
16384
|
+
},
|
|
16385
|
+
osVersionOverride: {
|
|
16386
|
+
type: "string",
|
|
16387
|
+
default: "",
|
|
16388
|
+
description: "os version the device reports instead of its profile's (empty = the profile's version); set per launch with ?osVersion=, never saved",
|
|
16389
|
+
group: "device"
|
|
16390
|
+
},
|
|
16391
|
+
predictiveText: {
|
|
16392
|
+
type: "boolean",
|
|
16393
|
+
default: true,
|
|
16394
|
+
description: "keyboard predictive text (off hides the QuickType lane)",
|
|
16395
|
+
group: "device"
|
|
16396
|
+
},
|
|
16397
|
+
hardwareKeyboard: {
|
|
16398
|
+
type: "boolean",
|
|
16399
|
+
default: false,
|
|
16400
|
+
description: "connect the host keyboard: typing needs no on-screen keyboard",
|
|
16401
|
+
group: "device"
|
|
16402
|
+
},
|
|
16403
|
+
// appearance
|
|
16404
|
+
colorScheme: {
|
|
16405
|
+
type: "enum",
|
|
16406
|
+
default: "auto",
|
|
16407
|
+
description: "color scheme (auto follows system preference)",
|
|
16408
|
+
options: ["light", "dark", "auto"],
|
|
16409
|
+
group: "appearance"
|
|
16410
|
+
},
|
|
16411
|
+
reduceMotion: {
|
|
16412
|
+
type: "boolean",
|
|
16413
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.reduceMotion,
|
|
16414
|
+
description: "reduce motion",
|
|
16415
|
+
group: "appearance"
|
|
16416
|
+
},
|
|
16417
|
+
boldText: {
|
|
16418
|
+
type: "boolean",
|
|
16419
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.boldText,
|
|
16420
|
+
description: "bold text",
|
|
16421
|
+
group: "appearance"
|
|
16422
|
+
},
|
|
16423
|
+
fontSize: {
|
|
16424
|
+
type: "number",
|
|
16425
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.fontSize,
|
|
16426
|
+
description: "font size multiplier (1.0 = default)",
|
|
16427
|
+
group: "appearance",
|
|
16428
|
+
// android permits continuous font scales; ios settings and capture urls
|
|
16429
|
+
// constrain their own inputs to the discrete dynamic type ramp.
|
|
16430
|
+
validate: (value) => value >= 0.5 && value <= 4
|
|
16431
|
+
},
|
|
16432
|
+
largerAccessibilitySizes: {
|
|
16433
|
+
type: "boolean",
|
|
16434
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.largerAccessibilitySizes,
|
|
16435
|
+
description: "show accessibility categories in the dynamic type size picker",
|
|
16436
|
+
group: "appearance"
|
|
16437
|
+
},
|
|
16438
|
+
reduceTransparency: {
|
|
16439
|
+
type: "boolean",
|
|
16440
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.reduceTransparency,
|
|
16441
|
+
description: "reduce transparency",
|
|
16442
|
+
group: "appearance"
|
|
16443
|
+
},
|
|
16444
|
+
increaseContrast: {
|
|
16445
|
+
type: "boolean",
|
|
16446
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.increaseContrast,
|
|
16447
|
+
description: "increase contrast",
|
|
16448
|
+
group: "appearance"
|
|
16449
|
+
},
|
|
16450
|
+
showBorders: {
|
|
16451
|
+
type: "boolean",
|
|
16452
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.showBorders,
|
|
16453
|
+
description: "show borders on text buttons",
|
|
16454
|
+
group: "appearance"
|
|
16455
|
+
},
|
|
16456
|
+
onOffLabels: {
|
|
16457
|
+
type: "boolean",
|
|
16458
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.onOffLabels,
|
|
16459
|
+
description: "on/off labels inside switches",
|
|
16460
|
+
group: "appearance"
|
|
16461
|
+
},
|
|
16462
|
+
differentiateWithoutColor: {
|
|
16463
|
+
type: "boolean",
|
|
16464
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.differentiateWithoutColor,
|
|
16465
|
+
description: "differentiate without color",
|
|
16466
|
+
group: "appearance"
|
|
16467
|
+
},
|
|
16468
|
+
smartInvert: {
|
|
16469
|
+
type: "boolean",
|
|
16470
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.smartInvert,
|
|
16471
|
+
description: "smart invert",
|
|
16472
|
+
group: "appearance"
|
|
16473
|
+
},
|
|
16474
|
+
preferCrossFadeTransitions: {
|
|
16475
|
+
type: "boolean",
|
|
16476
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.preferCrossFadeTransitions,
|
|
16477
|
+
description: "prefer cross-fade transitions while reduce motion is on",
|
|
16478
|
+
group: "appearance"
|
|
16479
|
+
},
|
|
16480
|
+
// ios persists the slider as com.apple.UIKit UIViewGlassTintAmount in steps
|
|
16481
|
+
// of 0.05; with the key absent the material reads the middle.
|
|
16482
|
+
glassTintAmount: {
|
|
16483
|
+
type: "number",
|
|
16484
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.glassTintAmount,
|
|
16485
|
+
description: "liquid glass tint amount (0 most clear, 0.5 default, 1 most tinted)",
|
|
16486
|
+
group: "appearance",
|
|
16487
|
+
validate: (value) => value >= 0 && value <= 1
|
|
16488
|
+
},
|
|
16489
|
+
// locale
|
|
16490
|
+
language: {
|
|
16491
|
+
type: "string",
|
|
16492
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.language,
|
|
16493
|
+
description: "language code (ISO 639-1)",
|
|
16494
|
+
group: "locale"
|
|
16495
|
+
},
|
|
16496
|
+
preferredLanguages: {
|
|
16497
|
+
type: "string-array",
|
|
16498
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.preferredLanguages,
|
|
16499
|
+
description: "ordered preferred language tags; empty follows language and region",
|
|
16500
|
+
group: "locale",
|
|
16501
|
+
validate: (value) => {
|
|
16502
|
+
if (!Array.isArray(value)) return false;
|
|
16503
|
+
return value.every((tag) => {
|
|
16504
|
+
if (typeof tag !== "string" || !tag) return false;
|
|
16505
|
+
try {
|
|
16506
|
+
return Intl.getCanonicalLocales(tag).length === 1;
|
|
16507
|
+
} catch {
|
|
16508
|
+
return false;
|
|
16509
|
+
}
|
|
16510
|
+
});
|
|
16511
|
+
}
|
|
16512
|
+
},
|
|
16513
|
+
region: {
|
|
16514
|
+
type: "string",
|
|
16515
|
+
default: DEFAULT_REACT_NATIVE_CONFIGURATION.region,
|
|
16516
|
+
description: "region code (ISO 3166-1)",
|
|
16517
|
+
group: "locale"
|
|
16518
|
+
},
|
|
16519
|
+
// simulator
|
|
16520
|
+
renderDensity: {
|
|
16521
|
+
type: "number",
|
|
16522
|
+
default: 0,
|
|
16523
|
+
description: "explicit render density in device pixels per point for high-resolution capture (0 = follow the render resolution level)",
|
|
16524
|
+
group: "simulator",
|
|
16525
|
+
validate: (v7) => v7 === 0 || v7 >= 1 && v7 <= 9
|
|
16526
|
+
},
|
|
16527
|
+
renderResolution: {
|
|
16528
|
+
type: "enum",
|
|
16529
|
+
default: "medium",
|
|
16530
|
+
description: "how many pixels Peach renders per iphone point (high = device native, medium = 2, low = on-screen pixels capped at native)",
|
|
16531
|
+
options: SOOTSIM_RENDER_RESOLUTION_LEVELS,
|
|
16532
|
+
group: "simulator"
|
|
16533
|
+
},
|
|
16534
|
+
slowAnimations: {
|
|
16535
|
+
type: "boolean",
|
|
16536
|
+
default: false,
|
|
16537
|
+
description: "Run simulated app and OS animations at one tenth speed",
|
|
16538
|
+
group: "simulator"
|
|
16539
|
+
},
|
|
16540
|
+
profilerCategories: {
|
|
16541
|
+
type: "string",
|
|
16542
|
+
default: formatProfilerCategories(DEFAULT_PROFILER_CATEGORIES),
|
|
16543
|
+
description: "Categories the Performance pane records, comma separated",
|
|
16544
|
+
group: "simulator"
|
|
16545
|
+
},
|
|
16546
|
+
showTouches: {
|
|
16547
|
+
type: "boolean",
|
|
16548
|
+
default: false,
|
|
16549
|
+
description: "show touch indicators",
|
|
16550
|
+
group: "simulator"
|
|
16551
|
+
},
|
|
16552
|
+
systemCursor: {
|
|
16553
|
+
type: "boolean",
|
|
16554
|
+
default: false,
|
|
16555
|
+
description: "keep the computer pointer instead of a touch cursor",
|
|
16556
|
+
group: "simulator"
|
|
16557
|
+
},
|
|
16558
|
+
showFrame: {
|
|
16559
|
+
type: "boolean",
|
|
16560
|
+
default: true,
|
|
16561
|
+
description: "show device frame",
|
|
16562
|
+
group: "simulator"
|
|
16563
|
+
},
|
|
16564
|
+
showMenuBar: {
|
|
16565
|
+
type: "boolean",
|
|
16566
|
+
default: true,
|
|
16567
|
+
description: "keep the menu bar visible instead of revealing it at the top edge",
|
|
16568
|
+
group: "simulator"
|
|
16569
|
+
},
|
|
16570
|
+
showRail: {
|
|
16571
|
+
type: "boolean",
|
|
16572
|
+
default: true,
|
|
16573
|
+
description: "keep the rail visible instead of revealing it on hover",
|
|
16574
|
+
group: "simulator"
|
|
16575
|
+
},
|
|
16576
|
+
agentIndicator: {
|
|
16577
|
+
type: "boolean",
|
|
16578
|
+
default: true,
|
|
16579
|
+
description: "show the connected agent indicator over the device while a CLI or agent drives it",
|
|
16580
|
+
group: "simulator"
|
|
16581
|
+
},
|
|
16582
|
+
solidWindow: {
|
|
16583
|
+
type: "boolean",
|
|
16584
|
+
default: false,
|
|
16585
|
+
description: "desktop app: always use the solid, freely-resizable window instead of the device-shaped transparent one (3d mode uses it regardless)",
|
|
16586
|
+
group: "simulator"
|
|
16587
|
+
},
|
|
16588
|
+
ambientGlow: {
|
|
16589
|
+
type: "enum",
|
|
16590
|
+
default: "off",
|
|
16591
|
+
description: "bleed the app's own edge colors outward behind the device, like bias lighting behind a TV (off, soft, full)",
|
|
16592
|
+
options: SOOTSIM_AMBIENT_GLOW_LEVELS,
|
|
16593
|
+
group: "simulator"
|
|
16594
|
+
},
|
|
16595
|
+
stageBackground: {
|
|
16596
|
+
type: "enum",
|
|
16597
|
+
default: "system",
|
|
16598
|
+
description: "the stage behind the device: system follows the computer's appearance (white in light mode, black in dark), or light, dark or gray",
|
|
16599
|
+
options: SOOTSIM_STAGE_BACKGROUNDS,
|
|
16600
|
+
group: "simulator"
|
|
16601
|
+
},
|
|
16602
|
+
stageChecker: {
|
|
16603
|
+
type: "boolean",
|
|
16604
|
+
default: true,
|
|
16605
|
+
description: "a faint checker pattern on the stage behind the device, under the glow",
|
|
16606
|
+
group: "simulator"
|
|
16607
|
+
},
|
|
16608
|
+
screenshotMode: {
|
|
16609
|
+
type: "boolean",
|
|
16610
|
+
default: false,
|
|
16611
|
+
description: "show screenshot composition mode in the browser shell",
|
|
16612
|
+
group: "simulator"
|
|
16613
|
+
},
|
|
16614
|
+
screenshotCanvasEditing: {
|
|
16615
|
+
type: "boolean",
|
|
16616
|
+
default: false,
|
|
16617
|
+
description: "experimental figma-style slide editing: draggable copy block, drop-in image layers (owner review pending)",
|
|
16618
|
+
group: "simulator"
|
|
16619
|
+
},
|
|
16620
|
+
threeMode: {
|
|
16621
|
+
type: "boolean",
|
|
16622
|
+
default: false,
|
|
16623
|
+
description: "show the experimental 3d device stage in the browser shell",
|
|
16624
|
+
group: "simulator"
|
|
16625
|
+
},
|
|
16626
|
+
threeRecordingEditor: {
|
|
16627
|
+
type: "boolean",
|
|
16628
|
+
default: false,
|
|
16629
|
+
description: "dock the 3d recording editor in the 3d stage (toggled from its rail)",
|
|
16630
|
+
group: "simulator"
|
|
16631
|
+
},
|
|
16632
|
+
screenshotCanvas: {
|
|
16633
|
+
type: "enum",
|
|
16634
|
+
default: "iphone-6-9",
|
|
16635
|
+
description: "target app-store canvas preset for screenshot mode",
|
|
16636
|
+
options: SCREENSHOT_CANVAS_NAMES,
|
|
16637
|
+
group: "simulator"
|
|
16638
|
+
},
|
|
16639
|
+
screenshotBackground: {
|
|
16640
|
+
type: "enum",
|
|
16641
|
+
default: "dark",
|
|
16642
|
+
description: "background preset rendered inside the screenshot canvas",
|
|
16643
|
+
options: BACKGROUND_PRESET_NAMES,
|
|
16644
|
+
group: "simulator"
|
|
16645
|
+
},
|
|
16646
|
+
screenshotText: {
|
|
16647
|
+
type: "enum",
|
|
16648
|
+
default: "bold-top",
|
|
16649
|
+
description: "text layout preset for the screenshot canvas",
|
|
16650
|
+
options: TEXT_PRESET_NAMES,
|
|
16651
|
+
group: "simulator"
|
|
16652
|
+
},
|
|
16653
|
+
screenshotPose: {
|
|
16654
|
+
type: "enum",
|
|
16655
|
+
default: "straight",
|
|
16656
|
+
description: "device pose preset inside the screenshot canvas",
|
|
16657
|
+
options: POSE_PRESET_NAMES,
|
|
16658
|
+
group: "simulator"
|
|
16659
|
+
},
|
|
16660
|
+
screenshotDynamicSize: {
|
|
16661
|
+
type: "boolean",
|
|
16662
|
+
default: false,
|
|
16663
|
+
description: "let the screenshot canvas rect fit available space (off = pin to exact preset pixels)",
|
|
16664
|
+
group: "simulator"
|
|
16665
|
+
},
|
|
16666
|
+
showStatusBar: {
|
|
16667
|
+
type: "boolean",
|
|
16668
|
+
default: true,
|
|
16669
|
+
description: "show status bar",
|
|
16670
|
+
group: "simulator"
|
|
16671
|
+
},
|
|
16672
|
+
showHomeIndicator: {
|
|
16673
|
+
type: "boolean",
|
|
16674
|
+
default: true,
|
|
16675
|
+
description: "show home indicator",
|
|
16676
|
+
group: "simulator"
|
|
16677
|
+
},
|
|
16678
|
+
alwaysShowLiveWebViews: {
|
|
16679
|
+
type: "boolean",
|
|
16680
|
+
default: false,
|
|
16681
|
+
description: "always render WebViews as live browser views",
|
|
16682
|
+
group: "simulator"
|
|
16683
|
+
},
|
|
16684
|
+
a11yMode: {
|
|
16685
|
+
type: "enum",
|
|
16686
|
+
default: "delayed",
|
|
16687
|
+
description: "accessibility tree sync mode (off, delayed=100ms, active=30ms)",
|
|
16688
|
+
options: ["off", "delayed", "active"],
|
|
16689
|
+
group: "simulator"
|
|
16690
|
+
},
|
|
16691
|
+
a11yDepth: {
|
|
16692
|
+
type: "enum",
|
|
16693
|
+
default: "deep",
|
|
16694
|
+
description: "accessibility tree structure depth (shallow or deep)",
|
|
16695
|
+
options: ["shallow", "deep"],
|
|
16696
|
+
group: "simulator"
|
|
16697
|
+
},
|
|
16698
|
+
inspectMode: {
|
|
16699
|
+
type: "boolean",
|
|
16700
|
+
default: false,
|
|
16701
|
+
description: "inspect mode",
|
|
16702
|
+
group: "simulator"
|
|
16703
|
+
},
|
|
16704
|
+
// privacy
|
|
16705
|
+
productAnalytics: {
|
|
16706
|
+
type: "boolean",
|
|
16707
|
+
default: false,
|
|
16708
|
+
description: "send bounded product usage analytics",
|
|
16709
|
+
group: "privacy"
|
|
16710
|
+
},
|
|
16711
|
+
crashReports: {
|
|
16712
|
+
type: "boolean",
|
|
16713
|
+
default: false,
|
|
16714
|
+
description: "send anonymous crash reports",
|
|
16715
|
+
group: "privacy"
|
|
16716
|
+
},
|
|
16717
|
+
sendToBoxCarryAuth: {
|
|
16718
|
+
type: "boolean",
|
|
16719
|
+
default: true,
|
|
16720
|
+
description: "send to box carries the signed-in session into the box it creates (off = the app boots signed out)",
|
|
16721
|
+
group: "privacy"
|
|
16722
|
+
},
|
|
16723
|
+
// agent — default ai agent used by the prompt bar's auto-attach + startSession.
|
|
16724
|
+
agentProvider: {
|
|
16725
|
+
type: "enum",
|
|
16726
|
+
default: "codex",
|
|
16727
|
+
description: "ai agent used by the peach agent prompt bar",
|
|
16728
|
+
options: ["codex", "claude"],
|
|
16729
|
+
group: "agent"
|
|
16730
|
+
}
|
|
16731
|
+
};
|
|
16732
|
+
SETTING_VALUE_TYPES = {
|
|
16733
|
+
string: "string",
|
|
16734
|
+
enum: "string",
|
|
16735
|
+
number: "number",
|
|
16736
|
+
boolean: "boolean",
|
|
16737
|
+
"string-array": "object"
|
|
16738
|
+
};
|
|
16739
|
+
DEFAULT_SIMULATED_DEVICE_SETTINGS = {
|
|
16740
|
+
predictiveText: settingsSchema.predictiveText.default,
|
|
16741
|
+
colorScheme: settingsSchema.colorScheme.default,
|
|
16742
|
+
reduceMotion: settingsSchema.reduceMotion.default,
|
|
16743
|
+
boldText: settingsSchema.boldText.default,
|
|
16744
|
+
fontSize: settingsSchema.fontSize.default,
|
|
16745
|
+
largerAccessibilitySizes: settingsSchema.largerAccessibilitySizes.default,
|
|
16746
|
+
glassTintAmount: settingsSchema.glassTintAmount.default,
|
|
16747
|
+
reduceTransparency: settingsSchema.reduceTransparency.default,
|
|
16748
|
+
increaseContrast: settingsSchema.increaseContrast.default,
|
|
16749
|
+
showBorders: settingsSchema.showBorders.default,
|
|
16750
|
+
onOffLabels: settingsSchema.onOffLabels.default,
|
|
16751
|
+
differentiateWithoutColor: settingsSchema.differentiateWithoutColor.default,
|
|
16752
|
+
smartInvert: settingsSchema.smartInvert.default,
|
|
16753
|
+
preferCrossFadeTransitions: settingsSchema.preferCrossFadeTransitions.default
|
|
16754
|
+
};
|
|
16755
|
+
PROFILE_SETTING_KEYS = [
|
|
16756
|
+
...SIMULATED_DEVICE_SETTING_KEYS,
|
|
16757
|
+
"language",
|
|
16758
|
+
"region",
|
|
16759
|
+
"preferredLanguages"
|
|
16760
|
+
];
|
|
16761
|
+
}
|
|
16762
|
+
});
|
|
16763
|
+
|
|
15241
16764
|
// ../peach-globals/src/storeKitContract.ts
|
|
15242
16765
|
function record(value) {
|
|
15243
16766
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
@@ -15439,6 +16962,12 @@ async function loadConfigFile(project) {
|
|
|
15439
16962
|
if (!isPeachConfig(loaded3)) {
|
|
15440
16963
|
throw new Error("the default export must be a peach config object");
|
|
15441
16964
|
}
|
|
16965
|
+
if (Object.hasOwn(loaded3, "settings"))
|
|
16966
|
+
throw new Error(
|
|
16967
|
+
"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"
|
|
16968
|
+
);
|
|
16969
|
+
for (const [name2, profile] of Object.entries(loaded3.profiles ?? {}))
|
|
16970
|
+
readSettingsProfile(profile, `profiles.${name2}`);
|
|
15442
16971
|
if (loaded3.nativeHybridObjects !== void 0)
|
|
15443
16972
|
throw new Error(
|
|
15444
16973
|
'nativeHybridObjects moved under packages, keyed by the package that registers each name: packages: { "<package>": { hybridObjects: { <Name>: "unsupported" | "./file.ts" } } }'
|
|
@@ -15493,6 +17022,7 @@ var init_app_config = __esm({
|
|
|
15493
17022
|
init_config();
|
|
15494
17023
|
init_config();
|
|
15495
17024
|
init_public_brand();
|
|
17025
|
+
init_settingsContract();
|
|
15496
17026
|
init_storekit_test_store();
|
|
15497
17027
|
WIRE_SLOTS = ["nativeModules", "turboModules", "nativeViews"];
|
|
15498
17028
|
}
|
|
@@ -15761,7 +17291,7 @@ var init_react_native_core = __esm({
|
|
|
15761
17291
|
init_swift_distribution();
|
|
15762
17292
|
init_swift_package();
|
|
15763
17293
|
init_swiftContract();
|
|
15764
|
-
recipe = true ? "
|
|
17294
|
+
recipe = true ? "ebfb6e514f6a2873b73852f067f1db2c2033490a337d8a2f95a46a922e095bf5" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
|
|
15765
17295
|
}
|
|
15766
17296
|
});
|
|
15767
17297
|
|
|
@@ -15904,6 +17434,14 @@ var init_swift_host = __esm({
|
|
|
15904
17434
|
}
|
|
15905
17435
|
});
|
|
15906
17436
|
|
|
17437
|
+
// src/cocoapods-trunk.ts
|
|
17438
|
+
var init_cocoapods_trunk = __esm({
|
|
17439
|
+
"src/cocoapods-trunk.ts"() {
|
|
17440
|
+
"use strict";
|
|
17441
|
+
init_home_paths();
|
|
17442
|
+
}
|
|
17443
|
+
});
|
|
17444
|
+
|
|
15907
17445
|
// src/installed-native-libraries.ts
|
|
15908
17446
|
var init_installed_native_libraries = __esm({
|
|
15909
17447
|
"src/installed-native-libraries.ts"() {
|
|
@@ -15938,6 +17476,7 @@ var init_turbo_source = __esm({
|
|
|
15938
17476
|
"use strict";
|
|
15939
17477
|
import_node_child_process15 = require("node:child_process");
|
|
15940
17478
|
import_node_util8 = require("node:util");
|
|
17479
|
+
init_cocoapods_trunk();
|
|
15941
17480
|
init_home_paths();
|
|
15942
17481
|
init_installed_native_libraries();
|
|
15943
17482
|
init_answeredNativePackages();
|
|
@@ -16063,7 +17602,7 @@ var init_node_http_fetch = __esm({
|
|
|
16063
17602
|
var runtime_companion_default;
|
|
16064
17603
|
var init_runtime_companion = __esm({
|
|
16065
17604
|
"runtime-companion.json"() {
|
|
16066
|
-
runtime_companion_default = { abi: 1, sha256: "
|
|
17605
|
+
runtime_companion_default = { abi: 1, sha256: "9bc75c6ccfa87cb58eff71992a2fafa21b4e7acbb37f0b4bef6f74279c98317a", file: "node/cli-9bc75c6ccfa87cb58eff71992a2fafa21b4e7acbb37f0b4bef6f74279c98317a.cjs" };
|
|
16067
17606
|
}
|
|
16068
17607
|
});
|
|
16069
17608
|
|
|
@@ -22852,34 +24391,7 @@ function insertNativeFirebaseFooter(source, config) {
|
|
|
22852
24391
|
init_plist();
|
|
22853
24392
|
init_runtime_assets();
|
|
22854
24393
|
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
|
|
24394
|
+
init_runtimePlatformContract();
|
|
22883
24395
|
var prefix = "/__peachsim";
|
|
22884
24396
|
function isMetroSerializerArtifacts(value) {
|
|
22885
24397
|
return typeof value === "object" && value !== null && "artifacts" in value && Array.isArray(value.artifacts) && value.artifacts.every(
|