peachsim 0.1.2773 → 0.1.2775

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.
Files changed (148) hide show
  1. package/dist-lib/agent-daemon-client.cjs +1 -1
  2. package/dist-lib/agent-events.cjs +1 -1
  3. package/dist-lib/attached-projects.cjs +1 -1
  4. package/dist-lib/auth/shared-session.cjs +1 -1
  5. package/dist-lib/backend-origin.cjs +1 -1
  6. package/dist-lib/beta.cjs +1 -1
  7. package/dist-lib/beta.mjs +2 -2
  8. package/dist-lib/bridge-constants.cjs +1 -1
  9. package/dist-lib/bridge-contract-input.cjs +1 -1
  10. package/dist-lib/bridge-contract-input.mjs +5 -5
  11. package/dist-lib/bridge-contract.cjs +1 -1
  12. package/dist-lib/bridge-contract.mjs +3 -3
  13. package/dist-lib/bundle-channel.cjs +318 -199
  14. package/dist-lib/capture-contract.cjs +1 -1
  15. package/dist-lib/capture-contract.mjs +3 -3
  16. package/dist-lib/cloud-contract.cjs +1 -1
  17. package/dist-lib/cloud-contract.mjs +3 -3
  18. package/dist-lib/cloud-test-args.cjs +1 -1
  19. package/dist-lib/cloud-test-args.mjs +2 -2
  20. package/dist-lib/cloud.cjs +1 -1
  21. package/dist-lib/cloud.mjs +7 -7
  22. package/dist-lib/config.cjs +1 -1
  23. package/dist-lib/config.mjs +5 -5
  24. package/dist-lib/detox/index.cjs +1 -1
  25. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  26. package/dist-lib/esm-chunks/{acorn-3SGU25AX.mjs → acorn-CTIC3GCU.mjs} +3 -3
  27. package/dist-lib/esm-chunks/{chunk-KMMFDGYA.mjs → chunk-2YTHEKWJ.mjs} +1 -1
  28. package/dist-lib/esm-chunks/{chunk-2HWUPAOD.mjs → chunk-3WU4YTJR.mjs} +205 -166
  29. package/dist-lib/esm-chunks/{chunk-ORGP6SSO.mjs → chunk-4B46TF64.mjs} +1 -1
  30. package/dist-lib/esm-chunks/{chunk-QMI7ECNF.mjs → chunk-C5EU2DRL.mjs} +1 -1
  31. package/dist-lib/esm-chunks/{chunk-DFVWY2BW.mjs → chunk-CFNSLWMQ.mjs} +4 -4
  32. package/dist-lib/esm-chunks/{chunk-HN7CHPZK.mjs → chunk-E6ULRDAP.mjs} +1 -1
  33. package/dist-lib/esm-chunks/{chunk-IQF674WE.mjs → chunk-ESP2U4IX.mjs} +1 -1
  34. package/dist-lib/esm-chunks/{chunk-5DQRSOJ5.mjs → chunk-ESWEEZZP.mjs} +2 -2
  35. package/dist-lib/esm-chunks/{chunk-4FVDW5QX.mjs → chunk-FBN2C43P.mjs} +1 -1
  36. package/dist-lib/esm-chunks/{chunk-NH3CEIBN.mjs → chunk-FVUN2533.mjs} +3 -3
  37. package/dist-lib/esm-chunks/{chunk-IM2IAOAZ.mjs → chunk-GKKZLYBA.mjs} +1 -1
  38. package/dist-lib/esm-chunks/{chunk-SZ7TVJHH.mjs → chunk-H5TBKFDB.mjs} +1 -1
  39. package/dist-lib/esm-chunks/{chunk-GSZLZNZM.mjs → chunk-ITTQHQD5.mjs} +1 -1
  40. package/dist-lib/esm-chunks/{chunk-XXLSXSUK.mjs → chunk-JERE5CAK.mjs} +1 -1
  41. package/dist-lib/esm-chunks/{chunk-WBPJJXMA.mjs → chunk-MJSKVK7E.mjs} +1 -1
  42. package/dist-lib/esm-chunks/{chunk-Q2EEH42W.mjs → chunk-NV5NLKKN.mjs} +1 -1
  43. package/dist-lib/esm-chunks/{chunk-G5TS3L6A.mjs → chunk-RGOPQX37.mjs} +6 -6
  44. package/dist-lib/esm-chunks/{chunk-KEVJJ3QT.mjs → chunk-S47B7YHJ.mjs} +1 -1
  45. package/dist-lib/esm-chunks/{chunk-FRPS6V6P.mjs → chunk-SK4FQLNJ.mjs} +1 -1
  46. package/dist-lib/esm-chunks/{chunk-YZRKIUVZ.mjs → chunk-TE3WHBF3.mjs} +1 -1
  47. package/dist-lib/esm-chunks/{chunk-ANTOZ3UC.mjs → chunk-W42DUKWD.mjs} +1 -1
  48. package/dist-lib/esm-chunks/{chunk-DYKZYFHH.mjs → chunk-WB5OWF4G.mjs} +5 -5
  49. package/dist-lib/esm-chunks/{chunk-KZ2NH7C4.mjs → chunk-XMBGLLON.mjs} +1 -1
  50. package/dist-lib/esm-chunks/{chunk-MRQ72NMR.mjs → chunk-YRKGWASL.mjs} +6 -6
  51. package/dist-lib/esm-chunks/{metro-layout-parser-5MEY33AK.mjs → metro-layout-parser-2RQ3WC37.mjs} +3 -3
  52. package/dist-lib/esm-chunks/{swift-package-prebuilt-3FLCNBQT.mjs → swift-package-prebuilt-L5SWVH6U.mjs} +12 -12
  53. package/dist-lib/esm-chunks/{swift-sdk-app-module-PPJ4LUOW.mjs → swift-sdk-app-module-5SWDBTBY.mjs} +107 -25
  54. package/dist-lib/esm-chunks/{swift-sdk-image-L5MERITP.mjs → swift-sdk-image-OOSMI47A.mjs} +16 -16
  55. package/dist-lib/esm-chunks/{swift-sdk-image-producer-IILRYXVN.mjs → swift-sdk-image-producer-DL4VEBXN.mjs} +5 -5
  56. package/dist-lib/expo-swift-bundle.cjs +318 -199
  57. package/dist-lib/expo-swift-metadata.cjs +1 -1
  58. package/dist-lib/expo-swift-metadata.mjs +7 -7
  59. package/dist-lib/home-paths.cjs +1 -1
  60. package/dist-lib/host/bridge-host.cjs +4327 -4209
  61. package/dist-lib/host/fetch-proxy-handler.cjs +343 -340
  62. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  63. package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
  64. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  65. package/dist-lib/host/websocket-proxy.cjs +1 -1
  66. package/dist-lib/index.cjs +1 -1
  67. package/dist-lib/kotlin-host.cjs +1 -1
  68. package/dist-lib/menu.cjs +1 -1
  69. package/dist-lib/menu.mjs +3 -3
  70. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  71. package/dist-lib/metro-fingerprint-registry.mjs +3 -3
  72. package/dist-lib/metro-production-bundle.cjs +1 -1
  73. package/dist-lib/metro-production-bundle.mjs +4 -4
  74. package/dist-lib/native-app-identity-project.cjs +1 -1
  75. package/dist-lib/native-app-identity-project.mjs +15 -15
  76. package/dist-lib/native-app-identity.cjs +1 -1
  77. package/dist-lib/native-app-identity.mjs +6 -6
  78. package/dist-lib/native-firebase-metadata.cjs +1 -1
  79. package/dist-lib/native-firebase-metadata.mjs +3 -3
  80. package/dist-lib/pdfium-raster.cjs +1 -1
  81. package/dist-lib/pdfium-raster.mjs +2 -2
  82. package/dist-lib/plist.cjs +1 -1
  83. package/dist-lib/plist.mjs +3 -3
  84. package/dist-lib/profiles.cjs +1 -1
  85. package/dist-lib/public-brand.cjs +1 -1
  86. package/dist-lib/public-origins-lib-esm.json +86 -86
  87. package/dist-lib/public-origins-lib.json +96 -96
  88. package/dist-lib/react-native-host-modules.cjs +1 -1
  89. package/dist-lib/react-native-host-modules.mjs +2 -2
  90. package/dist-lib/reap-browser.cjs +1 -1
  91. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  92. package/dist-lib/sdk.cjs +1 -1
  93. package/dist-lib/sdk.mjs +8 -8
  94. package/dist-lib/skills.cjs +2912 -2794
  95. package/dist-lib/swift-compile.cjs +314 -195
  96. package/dist-lib/swift-compile.mjs +12 -12
  97. package/dist-lib/swift-package.cjs +1 -1
  98. package/dist-lib/swift-package.mjs +3 -3
  99. package/dist-lib/swift-submit.cjs +1 -1
  100. package/dist-lib/swift-submit.mjs +6 -6
  101. package/dist-lib/swift-svg-raster.cjs +1 -1
  102. package/dist-lib/swift-svg-raster.mjs +2 -2
  103. package/dist-lib/swift-toolchain.cjs +1 -1
  104. package/dist-lib/swift.cjs +1 -1
  105. package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
  106. package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
  107. package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
  108. package/dist-lib/vendor/acorn.cjs +1 -1
  109. package/dist-lib/vendor/magic-string.cjs +1 -1
  110. package/dist-lib/vendor/stream-json.cjs +1 -1
  111. package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
  112. package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
  113. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
  114. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
  115. package/dist-lib/vendor/sucrase.cjs +1 -1
  116. package/dist-lib/vendor/terser.cjs +1 -1
  117. package/dist-lib/vendor/valibot.cjs +1 -1
  118. package/dist-lib/vendor/ws.cjs +1 -1
  119. package/dist-lib/vendor/zod.cjs +1 -1
  120. package/dist-lib/worklet-executable.cjs +1 -1
  121. package/dist-lib/worklet-executable.mjs +3 -3
  122. package/dist-types/packages/peach-engine/src/ios/duo-vertical-bar-geometry.d.ts +0 -15
  123. package/dist-types/packages/peach-engine/src/ios/flex-interaction.d.ts +0 -1
  124. package/dist-types/packages/peach-engine/src/react-native/AppState.d.ts +0 -1
  125. package/dist-types/packages/peach-engine/src/react-native/Keyboard.d.ts +0 -1
  126. package/dist-types/packages/peach-kit/src/ring-mode-state.d.ts +0 -1
  127. package/dist-types/packages/peach-kit/src/transitions/screen-transition-math.d.ts +0 -31
  128. package/package.json +1 -1
  129. package/src/assetCatalogContract.ts +0 -6
  130. package/src/expo-pod-prebuilt.ts +0 -63
  131. package/src/native-package-slice.ts +0 -2
  132. package/src/podfile-cocoapods.ts +0 -5
  133. package/src/runtime-assets.ts +0 -9
  134. package/src/sfSymbolMetricsContract.ts +51 -23
  135. package/src/swift-compile.ts +9 -6
  136. package/src/swift-distribution-mirror.ts +16 -5
  137. package/src/swift-guest-compile.ts +18 -7
  138. package/src/swift-guest-link.ts +0 -9
  139. package/src/swift-guest-projection-storage.ts +15 -2
  140. package/src/swift-guest-projection.ts +1 -46
  141. package/src/swift-guest-runtime-plan.ts +4 -80
  142. package/src/swift-header-compiler.ts +24 -9
  143. package/src/swift-sdk-app-module.ts +113 -10
  144. package/src/swift-wasm-prune.ts +0 -5
  145. package/src/swiftRuntimeProductContract.ts +1 -0
  146. package/src/swiftSdkLinkContract.ts +10 -0
  147. package/src/wasm-narrow-boundary.ts +0 -13
  148. package/src/wasm-lazy-split-tool.ts +0 -210
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2773 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2775 | (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;
@@ -1056,13 +1056,13 @@ var init_swift_standin_digest = __esm({
1056
1056
  import_node_crypto5 = require("node:crypto");
1057
1057
  import_node_fs11 = require("node:fs");
1058
1058
  import_node_path12 = __toESM(require("node:path"), 1);
1059
- STANDIN_SOURCE_DIGEST = true ? "46bd6373b813f44d3e812af83162f521ce032cba6bade9039bbb107120481dc5" : standinSourceDigest();
1059
+ STANDIN_SOURCE_DIGEST = true ? "c2d1c024e059538977fdd0666278d52ec2116aafae79fe0e8b1cda82a5981f3b" : standinSourceDigest();
1060
1060
  }
1061
1061
  });
1062
1062
 
1063
1063
  // src/expo-native-compiler-digest.ts
1064
1064
  function expoNativeCompilerDigestValue() {
1065
- return true ? "3aa55ede1762cf973bf737061cac6fe8e51ef2f66b9df8370329a6746d2d044a" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
1065
+ return true ? "c9950c3dbdb6ca5891145f8c4133c9b62e89b35f62d9343e8d7ef410cda838f5" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
1066
1066
  }
1067
1067
  var import_node_crypto6;
1068
1068
  var init_expo_native_compiler_digest = __esm({
@@ -1075,6 +1075,219 @@ var init_expo_native_compiler_digest = __esm({
1075
1075
  }
1076
1076
  });
1077
1077
 
1078
+ // src/android-string-value.ts
1079
+ var init_android_string_value = __esm({
1080
+ "src/android-string-value.ts"() {
1081
+ "use strict";
1082
+ }
1083
+ });
1084
+
1085
+ // src/android-xml.ts
1086
+ var init_android_xml = __esm({
1087
+ "src/android-xml.ts"() {
1088
+ "use strict";
1089
+ }
1090
+ });
1091
+
1092
+ // src/android-app-identity.ts
1093
+ var init_android_app_identity = __esm({
1094
+ "src/android-app-identity.ts"() {
1095
+ "use strict";
1096
+ init_android_string_value();
1097
+ init_android_xml();
1098
+ }
1099
+ });
1100
+
1101
+ // src/assetCatalogContract.ts
1102
+ function isSwiftImageVariants(value) {
1103
+ return Array.isArray(value) && value.length > 0 && value.every(
1104
+ (image) => typeof image === "object" && image !== null && typeof image.uri === "string" && typeof image.scale === "number" && Number.isFinite(image.scale) && image.scale > 0 && (image.pixelSize === void 0 || typeof image.pixelSize === "object" && image.pixelSize !== null && Number.isInteger(image.pixelSize.width) && image.pixelSize.width > 0 && Number.isInteger(image.pixelSize.height) && image.pixelSize.height > 0) && (image.appearance === void 0 || image.appearance === "light" || image.appearance === "dark") && (image.renderingMode === void 0 || image.renderingMode === "template" || image.renderingMode === "original")
1105
+ );
1106
+ }
1107
+ var init_assetCatalogContract = __esm({
1108
+ "src/assetCatalogContract.ts"() {
1109
+ "use strict";
1110
+ }
1111
+ });
1112
+
1113
+ // src/nativeAppIconContract.ts
1114
+ function isNativeAppIconArtwork(value) {
1115
+ return isRecord(value) && (value.primary === void 0 || isSwiftImageVariants(value.primary)) && isRecord(value.alternates) && Object.values(value.alternates).every(isSwiftImageVariants);
1116
+ }
1117
+ var init_nativeAppIconContract = __esm({
1118
+ "src/nativeAppIconContract.ts"() {
1119
+ "use strict";
1120
+ init_assetCatalogContract();
1121
+ init_is_record();
1122
+ }
1123
+ });
1124
+
1125
+ // src/openstep-plist.ts
1126
+ var init_openstep_plist = __esm({
1127
+ "src/openstep-plist.ts"() {
1128
+ "use strict";
1129
+ }
1130
+ });
1131
+
1132
+ // src/xcode-target-members.ts
1133
+ var init_xcode_target_members = __esm({
1134
+ "src/xcode-target-members.ts"() {
1135
+ "use strict";
1136
+ init_openstep_plist();
1137
+ }
1138
+ });
1139
+
1140
+ // src/native-app-identity.ts
1141
+ function nonEmptyString(value) {
1142
+ return typeof value === "string" && value.length > 0 ? value : null;
1143
+ }
1144
+ function isNativeAppIdentity(value) {
1145
+ if (!isRecord(value)) return false;
1146
+ for (const key of ["statusBarHidden", "viewControllerBasedStatusBarAppearance"]) {
1147
+ if (value[key] !== void 0 && typeof value[key] !== "boolean") return false;
1148
+ }
1149
+ if (value.sceneManifest !== void 0 && value.sceneManifest !== null && !isRecord(value.sceneManifest))
1150
+ return false;
1151
+ const oneUpdates = value.oneUpdates;
1152
+ if (oneUpdates !== void 0 && (!isRecord(oneUpdates) || typeof oneUpdates.enabled !== "boolean" || oneUpdates.url !== null && typeof oneUpdates.url !== "string" || oneUpdates.runtimeVersion !== null && typeof oneUpdates.runtimeVersion !== "string" || oneUpdates.embeddedManifestJson !== null && typeof oneUpdates.embeddedManifestJson !== "string" || oneUpdates.enabled && (typeof oneUpdates.url !== "string" || oneUpdates.url.length === 0 || typeof oneUpdates.runtimeVersion !== "string" || oneUpdates.runtimeVersion.length === 0))) {
1153
+ return false;
1154
+ }
1155
+ if (value.dtPlatformVersion !== void 0 && typeof value.dtPlatformVersion !== "string")
1156
+ return false;
1157
+ if (value.androidManifestPermissions !== void 0 && (!Array.isArray(value.androidManifestPermissions) || !value.androidManifestPermissions.every(
1158
+ (permission) => isRecord(permission) && typeof permission.name === "string" && permission.name.length > 0 && Number.isInteger(permission.minSdkVersion) && typeof permission.minSdkVersion === "number" && permission.minSdkVersion > 0 && (permission.maxSdkVersion === void 0 || typeof permission.maxSdkVersion === "number" && Number.isInteger(permission.maxSdkVersion) && permission.maxSdkVersion >= 0)
1159
+ )))
1160
+ return false;
1161
+ if (value.androidPhotoLibraryAddOnly !== void 0 && value.androidPhotoLibraryAddOnly !== true)
1162
+ return false;
1163
+ if (value.googleSignIn !== void 0 && !isRecord(value.googleSignIn)) return false;
1164
+ if (value.bundleIcons !== void 0 && !isRecord(value.bundleIcons)) return false;
1165
+ const descriptions = value.permissionUsageDescriptions;
1166
+ if (value.reanimatedStaticFeatureFlags !== void 0 && (!isRecord(value.reanimatedStaticFeatureFlags) || !Object.values(value.reanimatedStaticFeatureFlags).every(
1167
+ (flag) => typeof flag === "boolean"
1168
+ )))
1169
+ return false;
1170
+ if (descriptions !== void 0 && !isRecord(descriptions)) return false;
1171
+ if (value.infoPlistStrings !== void 0 && (!isRecord(value.infoPlistStrings) || !Object.values(value.infoPlistStrings).every((entry) => typeof entry === "string")))
1172
+ return false;
1173
+ if (value.infoPlistBooleans !== void 0 && (!isRecord(value.infoPlistBooleans) || !Object.values(value.infoPlistBooleans).every(
1174
+ (entry) => typeof entry === "boolean"
1175
+ )))
1176
+ return false;
1177
+ if (value.urlQuerySchemes !== void 0 && !Array.isArray(value.urlQuerySchemes))
1178
+ return false;
1179
+ if (value.appIntentIdentifiers !== void 0 && (!Array.isArray(value.appIntentIdentifiers) || !value.appIntentIdentifiers.every((identifier2) => typeof identifier2 === "string")))
1180
+ return false;
1181
+ if (value.backgroundTaskIdentifiers !== void 0 && (!Array.isArray(value.backgroundTaskIdentifiers) || !value.backgroundTaskIdentifiers.every(
1182
+ (identifier2) => typeof identifier2 === "string"
1183
+ )))
1184
+ return false;
1185
+ if (value.backgroundModes !== void 0 && (!Array.isArray(value.backgroundModes) || !value.backgroundModes.every((mode) => typeof mode === "string")))
1186
+ return false;
1187
+ if (value.keychainAccessGroups !== void 0 && (!Array.isArray(value.keychainAccessGroups) || !value.keychainAccessGroups.every(
1188
+ (group) => typeof group === "string" && group.length > 0 && !/\$[({]/.test(group)
1189
+ )))
1190
+ return false;
1191
+ if (value.siriEntitled !== void 0 && typeof value.siriEntitled !== "boolean")
1192
+ return false;
1193
+ if (value.shareIntoAppGroupId !== void 0 && typeof value.shareIntoAppGroupId !== "string")
1194
+ return false;
1195
+ if (value.rtcAppGroupIdentifier !== void 0 && typeof value.rtcAppGroupIdentifier !== "string")
1196
+ return false;
1197
+ if (value.screenShareExtensionBundleId !== void 0 && typeof value.screenShareExtensionBundleId !== "string")
1198
+ return false;
1199
+ if (value.applicationDisplayName !== void 0 && typeof value.applicationDisplayName !== "string")
1200
+ return false;
1201
+ if (value.rootModuleName !== void 0 && typeof value.rootModuleName !== "string")
1202
+ return false;
1203
+ if (value.rootViewBackgroundColor !== void 0 && (typeof value.rootViewBackgroundColor !== "number" || !Number.isInteger(value.rootViewBackgroundColor)))
1204
+ return false;
1205
+ if (value.designRequiresCompatibility !== void 0 && value.designRequiresCompatibility !== true)
1206
+ return false;
1207
+ for (const orientations of [
1208
+ value.supportedInterfaceOrientations,
1209
+ value.ipadSupportedInterfaceOrientations
1210
+ ]) {
1211
+ if (orientations !== void 0 && (!Array.isArray(orientations) || !orientations.every((orientation) => typeof orientation === "string")))
1212
+ return false;
1213
+ }
1214
+ if (value.defaultScreenOrientationMask !== void 0 && typeof value.defaultScreenOrientationMask !== "string")
1215
+ return false;
1216
+ if (value.appIconArtwork !== void 0 && !isNativeAppIconArtwork(value.appIconArtwork))
1217
+ return false;
1218
+ const platform = value.platform;
1219
+ if (value.alternateIconNames !== void 0 && (!Array.isArray(value.alternateIconNames) || !value.alternateIconNames.every((name2) => typeof name2 === "string")))
1220
+ return false;
1221
+ if (platform !== "ios" && platform !== "android") return false;
1222
+ const applicationName = value.applicationName;
1223
+ if (applicationName !== null && nonEmptyString(applicationName) === null) return false;
1224
+ if (value.bundleName !== void 0 && nonEmptyString(value.bundleName) === null)
1225
+ return false;
1226
+ if (nonEmptyString(value.appVersion) === null) return false;
1227
+ if (nonEmptyString(value.bundleIdentifier) === null) return false;
1228
+ const buildVersion = nonEmptyString(value.buildVersion);
1229
+ if (buildVersion === null) return false;
1230
+ if (platform === "android" && !/^[1-9][0-9]*$/.test(buildVersion)) return false;
1231
+ return true;
1232
+ }
1233
+ var init_native_app_identity = __esm({
1234
+ "src/native-app-identity.ts"() {
1235
+ "use strict";
1236
+ init_bundle_global_footer();
1237
+ init_android_app_identity();
1238
+ init_is_record();
1239
+ init_nativeAppIconContract();
1240
+ init_openstep_plist();
1241
+ init_xcode_target_members();
1242
+ }
1243
+ });
1244
+
1245
+ // src/swiftContract.ts
1246
+ function isSwiftResourcePath(value) {
1247
+ return typeof value === "string" && value.length <= 4096 && !value.startsWith("/") && !value.includes("\\") && !value.includes("\0") && value.split("/").every((part) => part !== "" && part !== "." && part !== "..");
1248
+ }
1249
+ var init_swiftContract = __esm({
1250
+ "src/swiftContract.ts"() {
1251
+ "use strict";
1252
+ init_assetCatalogContract();
1253
+ }
1254
+ });
1255
+
1256
+ // src/expoSwiftContract.ts
1257
+ function strings(value) {
1258
+ return Array.isArray(value) && value.every((item) => typeof item === "string");
1259
+ }
1260
+ function isExpoSwiftCompilationResult(value) {
1261
+ if (!isRecord(value) || !strings(value.namespaces) || !Array.isArray(value.modules) || !Array.isArray(value.failures))
1262
+ return false;
1263
+ const remaining = new Set(value.namespaces);
1264
+ if (value.nativeAppIdentity !== void 0 && !isNativeAppIdentity(value.nativeAppIdentity))
1265
+ return false;
1266
+ if (remaining.size !== value.namespaces.length) return false;
1267
+ if (value.bridgeModules !== void 0 && (!strings(value.bridgeModules) || !value.bridgeModules.every((name2) => remaining.has(name2))))
1268
+ return false;
1269
+ for (const artifact of value.modules) {
1270
+ if (!isRecord(artifact) || !strings(artifact.namespaces) || artifact.namespaces.length === 0 || !artifact.namespaces.every((namespace) => remaining.delete(namespace)) || typeof artifact.url !== "string" || !(artifact.sdkUrl === void 0 && artifact.sdkBindingUrl === void 0 || typeof artifact.sdkUrl === "string" && artifact.sdkUrl.length > 0 && typeof artifact.sdkBindingUrl === "string" && artifact.sdkBindingUrl.length > 0) || typeof artifact.hash !== "string" || typeof artifact.icuUrl !== "string" || typeof artifact.rootId !== "string" || artifact.bundleFiles !== void 0 && (!isRecord(artifact.bundleFiles) || !Object.entries(artifact.bundleFiles).every(
1271
+ ([key, bytes]) => isSwiftResourcePath(key) && typeof bytes === "string"
1272
+ )))
1273
+ return false;
1274
+ }
1275
+ for (const failure of value.failures) {
1276
+ if (!isRecord(failure) || typeof failure.namespace !== "string" || !remaining.delete(failure.namespace) || typeof failure.diagnostic !== "string")
1277
+ return false;
1278
+ }
1279
+ return remaining.size === 0;
1280
+ }
1281
+ var init_expoSwiftContract = __esm({
1282
+ "src/expoSwiftContract.ts"() {
1283
+ "use strict";
1284
+ init_bundle_global_footer();
1285
+ init_is_record();
1286
+ init_native_app_identity();
1287
+ init_swiftContract();
1288
+ }
1289
+ });
1290
+
1078
1291
  // ../peach-compat/src/stubs/native-seams/expo-eager-seam-contract.ts
1079
1292
  var init_expo_eager_seam_contract = __esm({
1080
1293
  "../peach-compat/src/stubs/native-seams/expo-eager-seam-contract.ts"() {
@@ -2729,29 +2942,6 @@ var init_native_prebuilt = __esm({
2729
2942
  }
2730
2943
  });
2731
2944
 
2732
- // src/assetCatalogContract.ts
2733
- function isSwiftImageVariants(value) {
2734
- return Array.isArray(value) && value.length > 0 && value.every(
2735
- (image) => typeof image === "object" && image !== null && typeof image.uri === "string" && typeof image.scale === "number" && Number.isFinite(image.scale) && image.scale > 0 && (image.pixelSize === void 0 || typeof image.pixelSize === "object" && image.pixelSize !== null && Number.isInteger(image.pixelSize.width) && image.pixelSize.width > 0 && Number.isInteger(image.pixelSize.height) && image.pixelSize.height > 0) && (image.appearance === void 0 || image.appearance === "light" || image.appearance === "dark") && (image.renderingMode === void 0 || image.renderingMode === "template" || image.renderingMode === "original")
2736
- );
2737
- }
2738
- var init_assetCatalogContract = __esm({
2739
- "src/assetCatalogContract.ts"() {
2740
- "use strict";
2741
- }
2742
- });
2743
-
2744
- // src/swiftContract.ts
2745
- function isSwiftResourcePath(value) {
2746
- return typeof value === "string" && value.length <= 4096 && !value.startsWith("/") && !value.includes("\\") && !value.includes("\0") && value.split("/").every((part) => part !== "" && part !== "." && part !== "..");
2747
- }
2748
- var init_swiftContract = __esm({
2749
- "src/swiftContract.ts"() {
2750
- "use strict";
2751
- init_assetCatalogContract();
2752
- }
2753
- });
2754
-
2755
2945
  // src/oneSdkContract.ts
2756
2946
  var init_oneSdkContract = __esm({
2757
2947
  "src/oneSdkContract.ts"() {
@@ -3056,13 +3246,6 @@ var init_one_sdk_preparation = __esm({
3056
3246
  }
3057
3247
  });
3058
3248
 
3059
- // src/openstep-plist.ts
3060
- var init_openstep_plist = __esm({
3061
- "src/openstep-plist.ts"() {
3062
- "use strict";
3063
- }
3064
- });
3065
-
3066
3249
  // src/pbx-table.ts
3067
3250
  var import_node_crypto11, ARRAY_SETTINGS, LEGACY_ARRAY_SETTINGS;
3068
3251
  var init_pbx_table = __esm({
@@ -3381,8 +3564,129 @@ var init_swift_distribution_contract = __esm({
3381
3564
  }
3382
3565
  });
3383
3566
 
3567
+ // src/swiftRuntimeProductContract.ts
3568
+ var v, swiftFrameworkProductSchema, SWIFT_SDK_PRODUCT_FILE, SWIFT_SDK_PRODUCT_DIRECTORY, swiftSdkProductSchema, swiftSdkProductsSchema;
3569
+ var init_swiftRuntimeProductContract = __esm({
3570
+ "src/swiftRuntimeProductContract.ts"() {
3571
+ "use strict";
3572
+ v = __toESM(require("peachsim/vendor/valibot"), 1);
3573
+ init_swiftTargetContract();
3574
+ swiftFrameworkProductSchema = v.object({
3575
+ version: v.literal(1),
3576
+ packageName: v.string(),
3577
+ manifestSha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/)),
3578
+ product: v.object({
3579
+ name: v.string(),
3580
+ linkage: v.picklist(["static", "dynamic", "automatic"]),
3581
+ targets: v.array(v.string())
3582
+ }),
3583
+ // framework names are distinct from SDK library linkNames. they identify
3584
+ // the packaged owner, not an observed native image dependency.
3585
+ frameworkAliases: v.array(
3586
+ v.object({
3587
+ kind: v.literal("framework"),
3588
+ name: v.string(),
3589
+ targets: v.array(v.string()),
3590
+ moduleMap: v.string(),
3591
+ moduleMapSha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/)),
3592
+ wasmSdkId: v.string(),
3593
+ wasmSdkChecksum: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/))
3594
+ })
3595
+ ),
3596
+ targets: v.array(
3597
+ v.object({
3598
+ name: v.string(),
3599
+ path: v.string(),
3600
+ kind: v.picklist(["regular", "system"]),
3601
+ dependencies: v.array(v.string())
3602
+ })
3603
+ ),
3604
+ objects: v.array(v.object({ path: v.string(), target: v.string() })),
3605
+ autolink: v.array(v.string())
3606
+ });
3607
+ SWIFT_SDK_PRODUCT_FILE = "runtime-products.json";
3608
+ SWIFT_SDK_PRODUCT_DIRECTORY = "swift.xctoolchain/usr/lib/swift_static/wasi";
3609
+ swiftSdkProductSchema = v.pipe(
3610
+ v.object({
3611
+ id: v.string(),
3612
+ installName: v.string(),
3613
+ target: v.literal(SWIFT_WASM_TRIPLE),
3614
+ linkNames: v.array(v.string()),
3615
+ // absent records declare no framework namespace, even when a library name matches.
3616
+ frameworkAliases: v.optional(
3617
+ v.array(
3618
+ v.object({
3619
+ name: v.string(),
3620
+ moduleMap: v.string(),
3621
+ moduleMapSha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/))
3622
+ })
3623
+ ),
3624
+ []
3625
+ ),
3626
+ buildDependencies: v.array(v.string()),
3627
+ linkOwnership: v.picklist(["image", "containing-image"]),
3628
+ linkDependencies: v.nullable(v.array(v.string())),
3629
+ autolink: v.array(v.string()),
3630
+ sources: v.array(
3631
+ v.object({
3632
+ path: v.string(),
3633
+ sha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/))
3634
+ })
3635
+ ),
3636
+ artifacts: v.array(
3637
+ v.variant("kind", [
3638
+ v.object({
3639
+ kind: v.literal("archive"),
3640
+ path: v.string(),
3641
+ sha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/)),
3642
+ members: v.array(
3643
+ v.object({
3644
+ name: v.string(),
3645
+ ordinal: v.pipe(v.number(), v.integer(), v.minValue(1)),
3646
+ sha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/)),
3647
+ sources: v.array(v.string())
3648
+ })
3649
+ )
3650
+ }),
3651
+ v.object({
3652
+ kind: v.literal("object"),
3653
+ path: v.string(),
3654
+ sha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/)),
3655
+ sources: v.array(v.string()),
3656
+ input: v.optional(
3657
+ v.object({
3658
+ product: v.string(),
3659
+ artifact: v.object({
3660
+ path: v.string(),
3661
+ sha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/))
3662
+ }),
3663
+ member: v.optional(
3664
+ v.object({
3665
+ name: v.string(),
3666
+ ordinal: v.pipe(v.number(), v.integer(), v.minValue(1)),
3667
+ sha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/))
3668
+ })
3669
+ )
3670
+ })
3671
+ )
3672
+ })
3673
+ ])
3674
+ )
3675
+ }),
3676
+ v.check(
3677
+ (product) => product.linkOwnership === "image" || product.linkDependencies === null,
3678
+ "containing-image products cannot declare an image scope"
3679
+ )
3680
+ );
3681
+ swiftSdkProductsSchema = v.object({
3682
+ version: v.literal(1),
3683
+ products: v.array(swiftSdkProductSchema)
3684
+ });
3685
+ }
3686
+ });
3687
+
3384
3688
  // src/swift-distribution-mirror.ts
3385
- var import_node_crypto16, import_node_fs29, import_node_path30;
3689
+ var import_node_crypto16, import_node_fs29, import_node_path30, SDK_PRODUCT_CATALOG;
3386
3690
  var init_swift_distribution_mirror = __esm({
3387
3691
  "src/swift-distribution-mirror.ts"() {
3388
3692
  "use strict";
@@ -3394,7 +3698,9 @@ var init_swift_distribution_mirror = __esm({
3394
3698
  init_swift_distribution_contract();
3395
3699
  init_swift_shared_sdk();
3396
3700
  init_swiftContract();
3701
+ init_swiftRuntimeProductContract();
3397
3702
  init_swiftTargetContract();
3703
+ SDK_PRODUCT_CATALOG = `${SWIFT_SDK_PRODUCT_DIRECTORY}/${SWIFT_SDK_PRODUCT_FILE}`;
3398
3704
  }
3399
3705
  });
3400
3706
 
@@ -3406,13 +3712,13 @@ var init_swift_foundation = __esm({
3406
3712
  });
3407
3713
 
3408
3714
  // src/swift-guest-source-plan.ts
3409
- var import_node_child_process16, import_node_path31, v;
3715
+ var import_node_child_process16, import_node_path31, v2;
3410
3716
  var init_swift_guest_source_plan = __esm({
3411
3717
  "src/swift-guest-source-plan.ts"() {
3412
3718
  "use strict";
3413
3719
  import_node_child_process16 = require("node:child_process");
3414
3720
  import_node_path31 = __toESM(require("node:path"), 1);
3415
- v = __toESM(require("peachsim/vendor/valibot"), 1);
3721
+ v2 = __toESM(require("peachsim/vendor/valibot"), 1);
3416
3722
  init_swift_package();
3417
3723
  init_swift_toolchain();
3418
3724
  }
@@ -3542,125 +3848,6 @@ var init_swift_wasm_archive = __esm({
3542
3848
  }
3543
3849
  });
3544
3850
 
3545
- // src/swiftRuntimeProductContract.ts
3546
- var v2, swiftFrameworkProductSchema, swiftSdkProductSchema, swiftSdkProductsSchema;
3547
- var init_swiftRuntimeProductContract = __esm({
3548
- "src/swiftRuntimeProductContract.ts"() {
3549
- "use strict";
3550
- v2 = __toESM(require("peachsim/vendor/valibot"), 1);
3551
- init_swiftTargetContract();
3552
- swiftFrameworkProductSchema = v2.object({
3553
- version: v2.literal(1),
3554
- packageName: v2.string(),
3555
- manifestSha256: v2.pipe(v2.string(), v2.regex(/^[a-f0-9]{64}$/)),
3556
- product: v2.object({
3557
- name: v2.string(),
3558
- linkage: v2.picklist(["static", "dynamic", "automatic"]),
3559
- targets: v2.array(v2.string())
3560
- }),
3561
- // framework names are distinct from SDK library linkNames. they identify
3562
- // the packaged owner, not an observed native image dependency.
3563
- frameworkAliases: v2.array(
3564
- v2.object({
3565
- kind: v2.literal("framework"),
3566
- name: v2.string(),
3567
- targets: v2.array(v2.string()),
3568
- moduleMap: v2.string(),
3569
- moduleMapSha256: v2.pipe(v2.string(), v2.regex(/^[a-f0-9]{64}$/)),
3570
- wasmSdkId: v2.string(),
3571
- wasmSdkChecksum: v2.pipe(v2.string(), v2.regex(/^[a-f0-9]{64}$/))
3572
- })
3573
- ),
3574
- targets: v2.array(
3575
- v2.object({
3576
- name: v2.string(),
3577
- path: v2.string(),
3578
- kind: v2.picklist(["regular", "system"]),
3579
- dependencies: v2.array(v2.string())
3580
- })
3581
- ),
3582
- objects: v2.array(v2.object({ path: v2.string(), target: v2.string() })),
3583
- autolink: v2.array(v2.string())
3584
- });
3585
- swiftSdkProductSchema = v2.pipe(
3586
- v2.object({
3587
- id: v2.string(),
3588
- installName: v2.string(),
3589
- target: v2.literal(SWIFT_WASM_TRIPLE),
3590
- linkNames: v2.array(v2.string()),
3591
- // absent records declare no framework namespace, even when a library name matches.
3592
- frameworkAliases: v2.optional(
3593
- v2.array(
3594
- v2.object({
3595
- name: v2.string(),
3596
- moduleMap: v2.string(),
3597
- moduleMapSha256: v2.pipe(v2.string(), v2.regex(/^[a-f0-9]{64}$/))
3598
- })
3599
- ),
3600
- []
3601
- ),
3602
- buildDependencies: v2.array(v2.string()),
3603
- linkOwnership: v2.picklist(["image", "containing-image"]),
3604
- linkDependencies: v2.nullable(v2.array(v2.string())),
3605
- autolink: v2.array(v2.string()),
3606
- sources: v2.array(
3607
- v2.object({
3608
- path: v2.string(),
3609
- sha256: v2.pipe(v2.string(), v2.regex(/^[a-f0-9]{64}$/))
3610
- })
3611
- ),
3612
- artifacts: v2.array(
3613
- v2.variant("kind", [
3614
- v2.object({
3615
- kind: v2.literal("archive"),
3616
- path: v2.string(),
3617
- sha256: v2.pipe(v2.string(), v2.regex(/^[a-f0-9]{64}$/)),
3618
- members: v2.array(
3619
- v2.object({
3620
- name: v2.string(),
3621
- ordinal: v2.pipe(v2.number(), v2.integer(), v2.minValue(1)),
3622
- sha256: v2.pipe(v2.string(), v2.regex(/^[a-f0-9]{64}$/)),
3623
- sources: v2.array(v2.string())
3624
- })
3625
- )
3626
- }),
3627
- v2.object({
3628
- kind: v2.literal("object"),
3629
- path: v2.string(),
3630
- sha256: v2.pipe(v2.string(), v2.regex(/^[a-f0-9]{64}$/)),
3631
- sources: v2.array(v2.string()),
3632
- input: v2.optional(
3633
- v2.object({
3634
- product: v2.string(),
3635
- artifact: v2.object({
3636
- path: v2.string(),
3637
- sha256: v2.pipe(v2.string(), v2.regex(/^[a-f0-9]{64}$/))
3638
- }),
3639
- member: v2.optional(
3640
- v2.object({
3641
- name: v2.string(),
3642
- ordinal: v2.pipe(v2.number(), v2.integer(), v2.minValue(1)),
3643
- sha256: v2.pipe(v2.string(), v2.regex(/^[a-f0-9]{64}$/))
3644
- })
3645
- )
3646
- })
3647
- )
3648
- })
3649
- ])
3650
- )
3651
- }),
3652
- v2.check(
3653
- (product) => product.linkOwnership === "image" || product.linkDependencies === null,
3654
- "containing-image products cannot declare an image scope"
3655
- )
3656
- );
3657
- swiftSdkProductsSchema = v2.object({
3658
- version: v2.literal(1),
3659
- products: v2.array(swiftSdkProductSchema)
3660
- });
3661
- }
3662
- });
3663
-
3664
3851
  // src/swift-wasm-prune.ts
3665
3852
  var import_node_child_process17, import_node_crypto17, import_node_fs32, import_node_path34, v3, PRUNED_SDK_ARCHIVES, OMIT_SDK_LIB_FLAGS, ADDEND_RELOC_MASK2, SWIFTUI_WRAPPER_HOST_PROTOCOLS;
3666
3853
  var init_swift_wasm_prune = __esm({
@@ -4455,7 +4642,7 @@ var init_swift_compile = __esm({
4455
4642
  ExpoModulesCore: []
4456
4643
  };
4457
4644
  OPTIONAL_FRAMEWORKS = new Set(Object.keys(OPTIONAL_FRAMEWORK_DEPENDENCIES));
4458
- compilerSourceDigest = true ? "a6326513da78eebd8cea52e4d27f4b4891f880aa2d7de55db6773c2aed5900be" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
4645
+ compilerSourceDigest = true ? "1803ba36803a88ceeca92ee7b13baa39dde72fbb72df14659f0414084afaf5d7" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
4459
4646
  NOT_ON_IOS = new RegExp(
4460
4647
  `\\b(?:os\\(\\s*WASI\\s*\\)|canImport\\(\\s*(?:${[...NON_IOS_MODULES].join("|")})\\s*\\))`,
4461
4648
  "g"
@@ -12708,154 +12895,6 @@ var init_ios_sdk_frameworks = __esm({
12708
12895
  }
12709
12896
  });
12710
12897
 
12711
- // src/android-string-value.ts
12712
- var init_android_string_value = __esm({
12713
- "src/android-string-value.ts"() {
12714
- "use strict";
12715
- }
12716
- });
12717
-
12718
- // src/android-xml.ts
12719
- var init_android_xml = __esm({
12720
- "src/android-xml.ts"() {
12721
- "use strict";
12722
- }
12723
- });
12724
-
12725
- // src/android-app-identity.ts
12726
- var init_android_app_identity = __esm({
12727
- "src/android-app-identity.ts"() {
12728
- "use strict";
12729
- init_android_string_value();
12730
- init_android_xml();
12731
- }
12732
- });
12733
-
12734
- // src/nativeAppIconContract.ts
12735
- function isNativeAppIconArtwork(value) {
12736
- return isRecord(value) && (value.primary === void 0 || isSwiftImageVariants(value.primary)) && isRecord(value.alternates) && Object.values(value.alternates).every(isSwiftImageVariants);
12737
- }
12738
- var init_nativeAppIconContract = __esm({
12739
- "src/nativeAppIconContract.ts"() {
12740
- "use strict";
12741
- init_assetCatalogContract();
12742
- init_is_record();
12743
- }
12744
- });
12745
-
12746
- // src/xcode-target-members.ts
12747
- var init_xcode_target_members = __esm({
12748
- "src/xcode-target-members.ts"() {
12749
- "use strict";
12750
- init_openstep_plist();
12751
- }
12752
- });
12753
-
12754
- // src/native-app-identity.ts
12755
- function nonEmptyString(value) {
12756
- return typeof value === "string" && value.length > 0 ? value : null;
12757
- }
12758
- function isNativeAppIdentity(value) {
12759
- if (!isRecord(value)) return false;
12760
- for (const key of ["statusBarHidden", "viewControllerBasedStatusBarAppearance"]) {
12761
- if (value[key] !== void 0 && typeof value[key] !== "boolean") return false;
12762
- }
12763
- if (value.sceneManifest !== void 0 && value.sceneManifest !== null && !isRecord(value.sceneManifest))
12764
- return false;
12765
- const oneUpdates = value.oneUpdates;
12766
- if (oneUpdates !== void 0 && (!isRecord(oneUpdates) || typeof oneUpdates.enabled !== "boolean" || oneUpdates.url !== null && typeof oneUpdates.url !== "string" || oneUpdates.runtimeVersion !== null && typeof oneUpdates.runtimeVersion !== "string" || oneUpdates.embeddedManifestJson !== null && typeof oneUpdates.embeddedManifestJson !== "string" || oneUpdates.enabled && (typeof oneUpdates.url !== "string" || oneUpdates.url.length === 0 || typeof oneUpdates.runtimeVersion !== "string" || oneUpdates.runtimeVersion.length === 0))) {
12767
- return false;
12768
- }
12769
- if (value.dtPlatformVersion !== void 0 && typeof value.dtPlatformVersion !== "string")
12770
- return false;
12771
- if (value.androidManifestPermissions !== void 0 && (!Array.isArray(value.androidManifestPermissions) || !value.androidManifestPermissions.every(
12772
- (permission) => isRecord(permission) && typeof permission.name === "string" && permission.name.length > 0 && Number.isInteger(permission.minSdkVersion) && typeof permission.minSdkVersion === "number" && permission.minSdkVersion > 0 && (permission.maxSdkVersion === void 0 || typeof permission.maxSdkVersion === "number" && Number.isInteger(permission.maxSdkVersion) && permission.maxSdkVersion >= 0)
12773
- )))
12774
- return false;
12775
- if (value.androidPhotoLibraryAddOnly !== void 0 && value.androidPhotoLibraryAddOnly !== true)
12776
- return false;
12777
- if (value.googleSignIn !== void 0 && !isRecord(value.googleSignIn)) return false;
12778
- if (value.bundleIcons !== void 0 && !isRecord(value.bundleIcons)) return false;
12779
- const descriptions = value.permissionUsageDescriptions;
12780
- if (value.reanimatedStaticFeatureFlags !== void 0 && (!isRecord(value.reanimatedStaticFeatureFlags) || !Object.values(value.reanimatedStaticFeatureFlags).every(
12781
- (flag) => typeof flag === "boolean"
12782
- )))
12783
- return false;
12784
- if (descriptions !== void 0 && !isRecord(descriptions)) return false;
12785
- if (value.infoPlistStrings !== void 0 && (!isRecord(value.infoPlistStrings) || !Object.values(value.infoPlistStrings).every((entry) => typeof entry === "string")))
12786
- return false;
12787
- if (value.infoPlistBooleans !== void 0 && (!isRecord(value.infoPlistBooleans) || !Object.values(value.infoPlistBooleans).every(
12788
- (entry) => typeof entry === "boolean"
12789
- )))
12790
- return false;
12791
- if (value.urlQuerySchemes !== void 0 && !Array.isArray(value.urlQuerySchemes))
12792
- return false;
12793
- if (value.appIntentIdentifiers !== void 0 && (!Array.isArray(value.appIntentIdentifiers) || !value.appIntentIdentifiers.every((identifier2) => typeof identifier2 === "string")))
12794
- return false;
12795
- if (value.backgroundTaskIdentifiers !== void 0 && (!Array.isArray(value.backgroundTaskIdentifiers) || !value.backgroundTaskIdentifiers.every(
12796
- (identifier2) => typeof identifier2 === "string"
12797
- )))
12798
- return false;
12799
- if (value.backgroundModes !== void 0 && (!Array.isArray(value.backgroundModes) || !value.backgroundModes.every((mode) => typeof mode === "string")))
12800
- return false;
12801
- if (value.keychainAccessGroups !== void 0 && (!Array.isArray(value.keychainAccessGroups) || !value.keychainAccessGroups.every(
12802
- (group) => typeof group === "string" && group.length > 0 && !/\$[({]/.test(group)
12803
- )))
12804
- return false;
12805
- if (value.siriEntitled !== void 0 && typeof value.siriEntitled !== "boolean")
12806
- return false;
12807
- if (value.shareIntoAppGroupId !== void 0 && typeof value.shareIntoAppGroupId !== "string")
12808
- return false;
12809
- if (value.rtcAppGroupIdentifier !== void 0 && typeof value.rtcAppGroupIdentifier !== "string")
12810
- return false;
12811
- if (value.screenShareExtensionBundleId !== void 0 && typeof value.screenShareExtensionBundleId !== "string")
12812
- return false;
12813
- if (value.applicationDisplayName !== void 0 && typeof value.applicationDisplayName !== "string")
12814
- return false;
12815
- if (value.rootModuleName !== void 0 && typeof value.rootModuleName !== "string")
12816
- return false;
12817
- if (value.rootViewBackgroundColor !== void 0 && (typeof value.rootViewBackgroundColor !== "number" || !Number.isInteger(value.rootViewBackgroundColor)))
12818
- return false;
12819
- if (value.designRequiresCompatibility !== void 0 && value.designRequiresCompatibility !== true)
12820
- return false;
12821
- for (const orientations of [
12822
- value.supportedInterfaceOrientations,
12823
- value.ipadSupportedInterfaceOrientations
12824
- ]) {
12825
- if (orientations !== void 0 && (!Array.isArray(orientations) || !orientations.every((orientation) => typeof orientation === "string")))
12826
- return false;
12827
- }
12828
- if (value.defaultScreenOrientationMask !== void 0 && typeof value.defaultScreenOrientationMask !== "string")
12829
- return false;
12830
- if (value.appIconArtwork !== void 0 && !isNativeAppIconArtwork(value.appIconArtwork))
12831
- return false;
12832
- const platform = value.platform;
12833
- if (value.alternateIconNames !== void 0 && (!Array.isArray(value.alternateIconNames) || !value.alternateIconNames.every((name2) => typeof name2 === "string")))
12834
- return false;
12835
- if (platform !== "ios" && platform !== "android") return false;
12836
- const applicationName = value.applicationName;
12837
- if (applicationName !== null && nonEmptyString(applicationName) === null) return false;
12838
- if (value.bundleName !== void 0 && nonEmptyString(value.bundleName) === null)
12839
- return false;
12840
- if (nonEmptyString(value.appVersion) === null) return false;
12841
- if (nonEmptyString(value.bundleIdentifier) === null) return false;
12842
- const buildVersion = nonEmptyString(value.buildVersion);
12843
- if (buildVersion === null) return false;
12844
- if (platform === "android" && !/^[1-9][0-9]*$/.test(buildVersion)) return false;
12845
- return true;
12846
- }
12847
- var init_native_app_identity = __esm({
12848
- "src/native-app-identity.ts"() {
12849
- "use strict";
12850
- init_bundle_global_footer();
12851
- init_android_app_identity();
12852
- init_is_record();
12853
- init_nativeAppIconContract();
12854
- init_openstep_plist();
12855
- init_xcode_target_members();
12856
- }
12857
- });
12858
-
12859
12898
  // src/swift-binary-modules.ts
12860
12899
  var import_node_crypto43, import_node_fs73, import_node_path76, cacheDir3;
12861
12900
  var init_swift_binary_modules = __esm({
@@ -13586,41 +13625,6 @@ var init_expo_discovery_cache = __esm({
13586
13625
  }
13587
13626
  });
13588
13627
 
13589
- // src/expoSwiftContract.ts
13590
- function strings(value) {
13591
- return Array.isArray(value) && value.every((item) => typeof item === "string");
13592
- }
13593
- function isExpoSwiftCompilationResult(value) {
13594
- if (!isRecord(value) || !strings(value.namespaces) || !Array.isArray(value.modules) || !Array.isArray(value.failures))
13595
- return false;
13596
- const remaining = new Set(value.namespaces);
13597
- if (value.nativeAppIdentity !== void 0 && !isNativeAppIdentity(value.nativeAppIdentity))
13598
- return false;
13599
- if (remaining.size !== value.namespaces.length) return false;
13600
- if (value.bridgeModules !== void 0 && (!strings(value.bridgeModules) || !value.bridgeModules.every((name2) => remaining.has(name2))))
13601
- return false;
13602
- for (const artifact of value.modules) {
13603
- if (!isRecord(artifact) || !strings(artifact.namespaces) || artifact.namespaces.length === 0 || !artifact.namespaces.every((namespace) => remaining.delete(namespace)) || typeof artifact.url !== "string" || !(artifact.sdkUrl === void 0 && artifact.sdkBindingUrl === void 0 || typeof artifact.sdkUrl === "string" && artifact.sdkUrl.length > 0 && typeof artifact.sdkBindingUrl === "string" && artifact.sdkBindingUrl.length > 0) || typeof artifact.hash !== "string" || typeof artifact.icuUrl !== "string" || typeof artifact.rootId !== "string" || artifact.bundleFiles !== void 0 && (!isRecord(artifact.bundleFiles) || !Object.entries(artifact.bundleFiles).every(
13604
- ([key, bytes]) => isSwiftResourcePath(key) && typeof bytes === "string"
13605
- )))
13606
- return false;
13607
- }
13608
- for (const failure of value.failures) {
13609
- if (!isRecord(failure) || typeof failure.namespace !== "string" || !remaining.delete(failure.namespace) || typeof failure.diagnostic !== "string")
13610
- return false;
13611
- }
13612
- return remaining.size === 0;
13613
- }
13614
- var init_expoSwiftContract = __esm({
13615
- "src/expoSwiftContract.ts"() {
13616
- "use strict";
13617
- init_bundle_global_footer();
13618
- init_is_record();
13619
- init_native_app_identity();
13620
- init_swiftContract();
13621
- }
13622
- });
13623
-
13624
13628
  // src/native-app-identity-project.ts
13625
13629
  var import_node_fs83, import_node_module8, import_node_path87;
13626
13630
  var init_native_app_identity_project = __esm({
@@ -18946,7 +18950,6 @@ var init_expo_pod_prebuilt = __esm({
18946
18950
  init_answeredNativePackages();
18947
18951
  init_expo_autolinking();
18948
18952
  init_expo_native_compiler_digest();
18949
- init_expo_swift_host();
18950
18953
  init_expoSwiftContract();
18951
18954
  init_is_record();
18952
18955
  init_native_package_slice();