eas-cli 16.27.0 → 16.30.0

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 (357) hide show
  1. package/README.md +97 -94
  2. package/build/analytics/AnalyticsManager.js +4 -4
  3. package/build/analytics/common.js +1 -2
  4. package/build/api.js +5 -5
  5. package/build/branch/delete.d.ts +5 -0
  6. package/build/branch/delete.js +23 -0
  7. package/build/branch/queries.js +5 -5
  8. package/build/branch/utils.js +2 -2
  9. package/build/build/android/build.js +3 -4
  10. package/build/build/android/graphql.js +1 -2
  11. package/build/build/android/prepareJob.js +1 -2
  12. package/build/build/android/syncProjectConfiguration.js +2 -3
  13. package/build/build/android/version.js +6 -6
  14. package/build/build/build.js +3 -4
  15. package/build/build/configure.js +4 -5
  16. package/build/build/context.d.ts +1 -0
  17. package/build/build/createContext.js +2 -2
  18. package/build/build/evaluateConfigWithEnvVarsAsync.js +1 -2
  19. package/build/build/graphql.js +7 -7
  20. package/build/build/ios/build.js +2 -3
  21. package/build/build/ios/credentials.js +2 -3
  22. package/build/build/ios/graphql.js +2 -3
  23. package/build/build/ios/prepareJob.js +2 -3
  24. package/build/build/ios/syncProjectConfiguration.js +1 -2
  25. package/build/build/ios/version.js +10 -10
  26. package/build/build/local.js +2 -2
  27. package/build/build/metadata.js +3 -4
  28. package/build/build/queries.js +4 -4
  29. package/build/build/runBuildAndSubmit.js +12 -3
  30. package/build/build/utils/appJson.js +2 -3
  31. package/build/build/utils/credentials.js +1 -2
  32. package/build/build/utils/devClient.js +1 -2
  33. package/build/build/utils/formatBuild.js +2 -3
  34. package/build/build/utils/printBuildInfo.js +4 -5
  35. package/build/build/utils/repository.js +8 -9
  36. package/build/build/utils/resourceClass.js +1 -2
  37. package/build/build/utils/url.js +8 -9
  38. package/build/build/utils/version.js +2 -3
  39. package/build/build/validate.js +3 -4
  40. package/build/channel/branch-mapping.js +24 -24
  41. package/build/channel/delete.d.ts +5 -0
  42. package/build/channel/delete.js +23 -0
  43. package/build/channel/print-utils.js +2 -3
  44. package/build/channel/queries.js +8 -8
  45. package/build/channel/utils.js +1 -2
  46. package/build/commandUtils/builds.js +3 -4
  47. package/build/commandUtils/context/contextUtils/createGraphqlClient.js +1 -2
  48. package/build/commandUtils/context/contextUtils/findProjectDirAndVerifyProjectSetupAsync.js +2 -3
  49. package/build/commandUtils/context/contextUtils/getProjectIdAsync.js +3 -4
  50. package/build/commandUtils/context/contextUtils/loadServerSideEnvironmentVariablesAsync.js +1 -2
  51. package/build/commandUtils/experienceParser.d.ts +6 -0
  52. package/build/commandUtils/experienceParser.js +42 -0
  53. package/build/commandUtils/new/commands.js +3 -4
  54. package/build/commandUtils/new/configs.js +11 -9
  55. package/build/commandUtils/new/projectFiles.js +6 -7
  56. package/build/commandUtils/new/utils.js +1 -2
  57. package/build/commandUtils/projectNameValidation.d.ts +8 -0
  58. package/build/commandUtils/projectNameValidation.js +30 -0
  59. package/build/commandUtils/workflow/buildProfileUtils.js +12 -13
  60. package/build/commandUtils/workflow/creation.js +5 -5
  61. package/build/commandUtils/workflow/fetchLogs.js +2 -3
  62. package/build/commandUtils/workflow/inputs.js +5 -5
  63. package/build/commandUtils/workflow/stateMachine.js +7 -7
  64. package/build/commandUtils/workflow/utils.js +12 -12
  65. package/build/commandUtils/workflow/validation.js +4 -5
  66. package/build/commands/branch/delete.js +6 -20
  67. package/build/commands/build/cancel.js +1 -2
  68. package/build/commands/build/delete.js +1 -2
  69. package/build/commands/build/index.js +1 -10
  70. package/build/commands/channel/delete.js +7 -23
  71. package/build/commands/channel/edit.js +1 -2
  72. package/build/commands/channel/pause.js +1 -2
  73. package/build/commands/channel/resume.js +1 -2
  74. package/build/commands/deploy/index.js +1 -1
  75. package/build/commands/project/init.js +3 -1
  76. package/build/commands/project/new.js +3 -4
  77. package/build/commands/update/index.d.ts +8 -0
  78. package/build/commands/update/index.js +39 -2
  79. package/build/commands/update/list.d.ts +3 -0
  80. package/build/commands/update/list.js +30 -1
  81. package/build/commands/update/revert-update-rollout.js +1 -2
  82. package/build/credentials/android/actions/BuildCredentialsUtils.js +6 -7
  83. package/build/credentials/android/api/GraphqlClient.js +21 -21
  84. package/build/credentials/android/api/graphql/queries/AndroidAppCredentialsQuery.d.ts +2 -2
  85. package/build/credentials/android/api/graphql/queries/GoogleServiceAccountKeyQuery.d.ts +5 -5
  86. package/build/credentials/android/utils/googleServiceAccountKey.js +4 -4
  87. package/build/credentials/android/utils/keystore.js +2 -3
  88. package/build/credentials/android/utils/keystoreNew.js +3 -4
  89. package/build/credentials/android/utils/printCredentials.js +3 -4
  90. package/build/credentials/credentialsJson/read.js +3 -4
  91. package/build/credentials/credentialsJson/update.js +2 -3
  92. package/build/credentials/credentialsJson/utils.js +2 -3
  93. package/build/credentials/ios/actions/AppleTeamFormatting.js +1 -2
  94. package/build/credentials/ios/actions/AppleTeamUtils.js +1 -2
  95. package/build/credentials/ios/actions/AscApiKeyUtils.js +10 -10
  96. package/build/credentials/ios/actions/BuildCredentialsUtils.js +7 -8
  97. package/build/credentials/ios/actions/DeviceUtils.js +2 -3
  98. package/build/credentials/ios/actions/DistributionCertificateUtils.js +4 -5
  99. package/build/credentials/ios/actions/ProvisioningProfileUtils.js +2 -3
  100. package/build/credentials/ios/actions/PushKeyUtils.js +5 -6
  101. package/build/credentials/ios/actions/SetUpAdhocProvisioningProfile.js +2 -2
  102. package/build/credentials/ios/actions/SetUpTargetBuildCredentials.js +6 -2
  103. package/build/credentials/ios/api/GraphqlClient.js +24 -25
  104. package/build/credentials/ios/api/graphql/queries/AppStoreConnectApiKeyQuery.d.ts +5 -5
  105. package/build/credentials/ios/api/graphql/queries/AppleDeviceQuery.d.ts +8 -8
  106. package/build/credentials/ios/api/graphql/queries/AppleDistributionCertificateQuery.d.ts +5 -5
  107. package/build/credentials/ios/api/graphql/queries/ApplePushKeyQuery.d.ts +5 -5
  108. package/build/credentials/ios/api/graphql/queries/IosAppCredentialsQuery.d.ts +1 -1
  109. package/build/credentials/ios/appstore/AppStoreApi.d.ts +0 -2
  110. package/build/credentials/ios/appstore/Credentials.js +4 -5
  111. package/build/credentials/ios/appstore/Credentials.types.d.ts +0 -1
  112. package/build/credentials/ios/appstore/CredentialsUtils.js +6 -7
  113. package/build/credentials/ios/appstore/ascApiKey.d.ts +0 -1
  114. package/build/credentials/ios/appstore/ascApiKey.js +6 -7
  115. package/build/credentials/ios/appstore/authenticate.d.ts +0 -1
  116. package/build/credentials/ios/appstore/authenticate.js +4 -5
  117. package/build/credentials/ios/appstore/authenticateTypes.d.ts +0 -1
  118. package/build/credentials/ios/appstore/bundleId.d.ts +0 -1
  119. package/build/credentials/ios/appstore/bundleId.js +2 -3
  120. package/build/credentials/ios/appstore/bundleIdCapabilities.d.ts +0 -1
  121. package/build/credentials/ios/appstore/bundleIdCapabilities.js +3 -3
  122. package/build/credentials/ios/appstore/capabilityIdentifiers.d.ts +0 -1
  123. package/build/credentials/ios/appstore/capabilityIdentifiers.js +1 -2
  124. package/build/credentials/ios/appstore/capabilityList.d.ts +0 -1
  125. package/build/credentials/ios/appstore/contractMessages.d.ts +0 -1
  126. package/build/credentials/ios/appstore/contractMessages.js +2 -3
  127. package/build/credentials/ios/appstore/distributionCertificate.d.ts +0 -1
  128. package/build/credentials/ios/appstore/distributionCertificate.js +7 -7
  129. package/build/credentials/ios/appstore/ensureAppExists.d.ts +6 -1
  130. package/build/credentials/ios/appstore/ensureAppExists.js +55 -18
  131. package/build/credentials/ios/appstore/ensureTestFlightGroup.d.ts +0 -1
  132. package/build/credentials/ios/appstore/ensureTestFlightGroup.js +1 -2
  133. package/build/credentials/ios/appstore/keychain.js +4 -4
  134. package/build/credentials/ios/appstore/provisioningProfile.d.ts +0 -1
  135. package/build/credentials/ios/appstore/provisioningProfile.js +5 -5
  136. package/build/credentials/ios/appstore/provisioningProfileAdhoc.d.ts +0 -1
  137. package/build/credentials/ios/appstore/provisioningProfileAdhoc.js +1 -2
  138. package/build/credentials/ios/appstore/pushKey.js +4 -4
  139. package/build/credentials/ios/appstore/resolveCredentials.d.ts +0 -1
  140. package/build/credentials/ios/appstore/resolveCredentials.js +6 -7
  141. package/build/credentials/ios/credentials.d.ts +0 -1
  142. package/build/credentials/ios/credentials.js +2 -2
  143. package/build/credentials/ios/utils/authType.d.ts +0 -1
  144. package/build/credentials/ios/utils/authType.js +1 -2
  145. package/build/credentials/ios/utils/convertHTMLToASCII.js +1 -2
  146. package/build/credentials/ios/utils/p12Certificate.d.ts +0 -1
  147. package/build/credentials/ios/utils/p12Certificate.js +3 -4
  148. package/build/credentials/ios/utils/printCredentials.js +3 -4
  149. package/build/credentials/ios/utils/provisioningProfile.js +5 -6
  150. package/build/credentials/ios/validators/validateAscApiKey.js +2 -3
  151. package/build/credentials/ios/validators/validateDistributionCertificate.js +1 -2
  152. package/build/credentials/ios/validators/validateProvisioningProfile.js +1 -2
  153. package/build/credentials/ios/validators/validatePushKey.js +1 -2
  154. package/build/credentials/manager/IosActions.js +4 -4
  155. package/build/credentials/manager/SelectPlatform.js +1 -1
  156. package/build/credentials/utils/promptForCredentials.js +3 -4
  157. package/build/devices/actions/create/currentMachineMethod.js +1 -2
  158. package/build/devices/actions/create/developerPortalMethod.d.ts +0 -1
  159. package/build/devices/actions/create/developerPortalMethod.js +2 -3
  160. package/build/devices/actions/create/inputMethod.js +1 -2
  161. package/build/devices/actions/create/registrationUrlMethod.js +1 -2
  162. package/build/devices/actions/create/utils.js +4 -5
  163. package/build/devices/context.js +1 -2
  164. package/build/devices/queries.js +4 -4
  165. package/build/devices/udids.js +2 -3
  166. package/build/devices/utils/formatDevice.js +2 -3
  167. package/build/fetch.d.ts +0 -1
  168. package/build/fetch.js +1 -1
  169. package/build/fingerprint/cli.js +3 -4
  170. package/build/fingerprint/diff.js +1 -2
  171. package/build/fingerprint/types.d.ts +0 -1
  172. package/build/fingerprint/utils.js +4 -5
  173. package/build/graphql/client.js +2 -2
  174. package/build/graphql/generated.d.ts +331 -103
  175. package/build/graphql/generated.js +45 -3
  176. package/build/graphql/mutations/PublishMutation.d.ts +2 -2
  177. package/build/graphql/queries/AccountUsageQuery.d.ts +1 -1
  178. package/build/graphql/queries/AppVersionQuery.d.ts +1 -1
  179. package/build/graphql/queries/BackgroundJobReceiptQuery.d.ts +1 -1
  180. package/build/graphql/queries/BranchQuery.d.ts +3 -3
  181. package/build/graphql/queries/BuildQuery.d.ts +3 -3
  182. package/build/graphql/queries/ChannelQuery.d.ts +2 -2
  183. package/build/graphql/queries/ChannelQuery.js +2 -2
  184. package/build/graphql/queries/EnvironmentVariablesQuery.d.ts +12 -12
  185. package/build/graphql/queries/FingerprintQuery.d.ts +6 -6
  186. package/build/graphql/queries/PublishQuery.d.ts +1 -1
  187. package/build/graphql/queries/SubmissionQuery.d.ts +1 -1
  188. package/build/graphql/queries/UserQuery.d.ts +1 -1
  189. package/build/graphql/queries/WorkflowJobQuery.d.ts +2 -2
  190. package/build/graphql/queries/WorkflowRunQuery.d.ts +4 -4
  191. package/build/graphql/types/AppPlatform.js +2 -3
  192. package/build/log.js +2 -3
  193. package/build/metadata/apple/config/reader.d.ts +0 -1
  194. package/build/metadata/apple/config/writer.d.ts +0 -1
  195. package/build/metadata/apple/data.d.ts +0 -1
  196. package/build/metadata/apple/tasks/age-rating.d.ts +0 -1
  197. package/build/metadata/apple/tasks/age-rating.js +0 -1
  198. package/build/metadata/apple/tasks/app-info.d.ts +0 -1
  199. package/build/metadata/apple/tasks/app-info.js +15 -4
  200. package/build/metadata/apple/tasks/app-review-detail.d.ts +0 -1
  201. package/build/metadata/apple/tasks/app-review-detail.js +0 -1
  202. package/build/metadata/apple/tasks/app-version.d.ts +0 -1
  203. package/build/metadata/apple/tasks/app-version.js +15 -3
  204. package/build/metadata/apple/tasks/index.js +1 -2
  205. package/build/metadata/apple/types.d.ts +0 -1
  206. package/build/metadata/auth.d.ts +0 -1
  207. package/build/metadata/auth.js +1 -2
  208. package/build/metadata/config/resolve.js +4 -5
  209. package/build/metadata/config/validate.js +1 -2
  210. package/build/metadata/download.js +1 -2
  211. package/build/metadata/errors.js +3 -3
  212. package/build/metadata/upload.js +1 -2
  213. package/build/metadata/utils/ajv.js +2 -3
  214. package/build/metadata/utils/asc.d.ts +0 -1
  215. package/build/metadata/utils/date.js +1 -2
  216. package/build/metadata/utils/log.js +1 -2
  217. package/build/metadata/utils/retry.js +2 -3
  218. package/build/metadata/utils/telemetry.d.ts +0 -1
  219. package/build/metadata/utils/telemetry.js +2 -3
  220. package/build/onboarding/git.js +3 -4
  221. package/build/onboarding/installDependencies.js +3 -3
  222. package/build/onboarding/runCommand.js +1 -2
  223. package/build/ora.js +1 -2
  224. package/build/platform.d.ts +1 -0
  225. package/build/platform.js +28 -10
  226. package/build/project/android/applicationId.js +6 -6
  227. package/build/project/android/gradle.js +1 -2
  228. package/build/project/android/gradleUtils.js +4 -4
  229. package/build/project/android/versions.js +3 -3
  230. package/build/project/applicationIdentifier.js +1 -2
  231. package/build/project/customBuildConfig.js +3 -4
  232. package/build/project/expoConfig.js +5 -6
  233. package/build/project/expoSdk.js +1 -2
  234. package/build/project/fetchOrCreateProjectIDForWriteToConfigWithConfirmationAsync.js +2 -3
  235. package/build/project/ios/bundleIdentifier.js +6 -6
  236. package/build/project/ios/entitlements.js +2 -3
  237. package/build/project/ios/exemptEncryption.js +1 -2
  238. package/build/project/ios/scheme.js +2 -3
  239. package/build/project/ios/target.d.ts +0 -1
  240. package/build/project/ios/target.js +8 -9
  241. package/build/project/ios/versions.js +3 -3
  242. package/build/project/maybeUploadAssetMapAsync.js +1 -2
  243. package/build/project/maybeUploadFingerprintAsync.js +1 -2
  244. package/build/project/metroConfig.js +1 -2
  245. package/build/project/projectUtils.js +15 -16
  246. package/build/project/publish.d.ts +15 -2
  247. package/build/project/publish.js +56 -29
  248. package/build/project/remoteVersionSource.js +6 -6
  249. package/build/project/resolveRuntimeVersionAsync.js +2 -3
  250. package/build/project/uploadAccountScopedFileAsync.js +1 -2
  251. package/build/project/uploadAccountScopedProjectSourceAsync.js +1 -2
  252. package/build/project/workflow.js +3 -4
  253. package/build/prompts.js +5 -6
  254. package/build/rollout/branch-mapping.js +14 -15
  255. package/build/rollout/utils.js +5 -6
  256. package/build/run/android/aapt.js +2 -3
  257. package/build/run/android/adb.js +8 -9
  258. package/build/run/android/emulator.js +6 -6
  259. package/build/run/android/run.js +1 -2
  260. package/build/run/android/sdk.d.ts +0 -1
  261. package/build/run/android/sdk.js +2 -2
  262. package/build/run/android/systemRequirements.js +1 -2
  263. package/build/run/ios/run.js +1 -2
  264. package/build/run/ios/simctl.js +1 -2
  265. package/build/run/ios/simulator.js +9 -10
  266. package/build/run/ios/systemRequirements.js +1 -2
  267. package/build/run/ios/xcode.js +5 -5
  268. package/build/run/ios/xcrun.js +3 -4
  269. package/build/run/run.js +2 -3
  270. package/build/run/utils.js +1 -2
  271. package/build/submit/ArchiveSource.js +3 -3
  272. package/build/submit/android/ServiceAccountSource.js +4 -4
  273. package/build/submit/commons.js +2 -3
  274. package/build/submit/context.js +1 -2
  275. package/build/submit/ios/AppProduce.js +1 -2
  276. package/build/submit/ios/AppSpecificPasswordSource.js +3 -3
  277. package/build/submit/ios/AscApiKeySource.js +4 -4
  278. package/build/submit/ios/utils/language.js +1 -2
  279. package/build/submit/submit.js +3 -4
  280. package/build/submit/utils/builds.js +1 -2
  281. package/build/submit/utils/errors.js +1 -2
  282. package/build/submit/utils/files.js +2 -3
  283. package/build/submit/utils/logs.js +1 -2
  284. package/build/submit/utils/summary.js +2 -3
  285. package/build/submit/utils/urls.js +2 -3
  286. package/build/submit/utils/wait.js +2 -3
  287. package/build/update/android/UpdatesModule.js +2 -3
  288. package/build/update/configure.js +4 -4
  289. package/build/update/delete.js +1 -2
  290. package/build/update/getBranchFromChannelNameAndCreateAndLinkIfNotExistsAsync.js +1 -2
  291. package/build/update/ios/UpdatesModule.js +2 -3
  292. package/build/update/queries.d.ts +5 -3
  293. package/build/update/queries.js +12 -9
  294. package/build/update/republish.js +5 -6
  295. package/build/update/roll-back-to-embedded.js +1 -2
  296. package/build/update/utils.js +15 -15
  297. package/build/uploads.js +3 -4
  298. package/build/user/User.js +2 -3
  299. package/build/user/actions.js +1 -2
  300. package/build/user/expoSsoLauncher.js +1 -2
  301. package/build/user/fetchSessionSecretAndSsoUser.js +1 -2
  302. package/build/user/fetchSessionSecretAndUser.js +1 -2
  303. package/build/user/fetchUser.js +1 -2
  304. package/build/utils/code-signing.d.ts +0 -1
  305. package/build/utils/code-signing.js +7 -8
  306. package/build/utils/date.js +1 -2
  307. package/build/utils/download.js +2 -3
  308. package/build/utils/expoCli.js +4 -4
  309. package/build/utils/expoUpdatesCli.js +2 -2
  310. package/build/utils/expodash/areSetsEqual.js +1 -1
  311. package/build/utils/expodash/capitalize.js +1 -1
  312. package/build/utils/expodash/chunk.js +1 -1
  313. package/build/utils/expodash/differenceBy.js +1 -1
  314. package/build/utils/expodash/filter.js +1 -2
  315. package/build/utils/expodash/groupBy.js +1 -1
  316. package/build/utils/expodash/intersection.js +1 -1
  317. package/build/utils/expodash/mapMapAsync.js +1 -1
  318. package/build/utils/expodash/memoize.js +1 -2
  319. package/build/utils/expodash/pick.js +1 -1
  320. package/build/utils/expodash/sortBy.js +1 -1
  321. package/build/utils/expodash/uniq.js +1 -1
  322. package/build/utils/expodash/uniqBy.js +1 -1
  323. package/build/utils/expodash/zipObject.js +1 -1
  324. package/build/utils/files.js +2 -3
  325. package/build/utils/formatFields.js +1 -1
  326. package/build/utils/image.js +3 -3
  327. package/build/utils/json.js +2 -3
  328. package/build/utils/plist.d.ts +0 -1
  329. package/build/utils/plist.js +3 -4
  330. package/build/utils/pollForBackgroundJobReceiptAsync.js +2 -2
  331. package/build/utils/profiles.js +3 -4
  332. package/build/utils/progress.js +1 -2
  333. package/build/utils/promise.js +1 -2
  334. package/build/utils/prompts.js +8 -9
  335. package/build/utils/queries.js +2 -3
  336. package/build/utils/relay.js +4 -4
  337. package/build/utils/statuspageService.js +1 -2
  338. package/build/utils/timer.js +4 -5
  339. package/build/utils/usage/checkForOverages.js +4 -6
  340. package/build/utils/variableUtils.js +4 -5
  341. package/build/vcs/clients/git.js +1 -2
  342. package/build/vcs/git.js +5 -6
  343. package/build/vcs/index.js +1 -2
  344. package/build/vcs/local.js +2 -2
  345. package/build/webhooks/formatWebhook.js +1 -2
  346. package/build/webhooks/input.js +3 -4
  347. package/build/worker/assets.d.ts +0 -1
  348. package/build/worker/assets.js +6 -7
  349. package/build/worker/deployment.js +8 -9
  350. package/build/worker/mutations.d.ts +1 -1
  351. package/build/worker/queries.d.ts +4 -4
  352. package/build/worker/upload.d.ts +0 -2
  353. package/build/worker/upload.js +5 -6
  354. package/build/worker/utils/logs.js +5 -5
  355. package/build/worker/utils/multipart.js +3 -3
  356. package/oclif.manifest.json +35 -1
  357. package/package.json +13 -11
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.handleMetadataError = exports.logMetadataValidationError = exports.MetadataDownloadError = exports.MetadataUploadError = exports.MetadataValidationError = void 0;
3
+ exports.MetadataDownloadError = exports.MetadataUploadError = exports.MetadataValidationError = void 0;
4
+ exports.logMetadataValidationError = logMetadataValidationError;
5
+ exports.handleMetadataError = handleMetadataError;
4
6
  const tslib_1 = require("tslib");
5
7
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
8
  const log_1 = tslib_1.__importStar(require("../log"));
@@ -63,7 +65,6 @@ function logMetadataValidationError(error) {
63
65
  }
64
66
  }
65
67
  }
66
- exports.logMetadataValidationError = logMetadataValidationError;
67
68
  /**
68
69
  * Handle a thrown metadata error by informing the user what went wrong.
69
70
  * If a normal error is thrown, this method will re-throw that error to avoid consuming it.
@@ -89,4 +90,3 @@ function handleMetadataError(error) {
89
90
  }
90
91
  throw error;
91
92
  }
92
- exports.handleMetadataError = handleMetadataError;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.uploadMetadataAsync = void 0;
3
+ exports.uploadMetadataAsync = uploadMetadataAsync;
4
4
  const tslib_1 = require("tslib");
5
5
  const tasks_1 = require("./apple/tasks");
6
6
  const auth_1 = require("./auth");
@@ -55,7 +55,6 @@ async function uploadMetadataAsync({ projectDir, profile, exp, analytics, creden
55
55
  }
56
56
  return { appleLink: `https://appstoreconnect.apple.com/apps/${app.id}/appstore` };
57
57
  }
58
- exports.uploadMetadataAsync = uploadMetadataAsync;
59
58
  async function loadConfigWithValidationPromptAsync(projectDir, profile) {
60
59
  try {
61
60
  return await (0, resolve_1.loadConfigAsync)({ projectDir, profile });
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getReadableErrors = exports.createValidator = void 0;
3
+ exports.createValidator = createValidator;
4
+ exports.getReadableErrors = getReadableErrors;
4
5
  const tslib_1 = require("tslib");
5
6
  const ajv_human_errors_1 = require("@segment/ajv-human-errors");
6
7
  const ajv_1 = tslib_1.__importDefault(require("ajv"));
@@ -20,11 +21,9 @@ function createValidator() {
20
21
  });
21
22
  return (0, ajv_formats_1.default)(validator).addMetaSchema(jsonSchema);
22
23
  }
23
- exports.createValidator = createValidator;
24
24
  function getReadableErrors(errors = []) {
25
25
  if (errors.length === 0) {
26
26
  return [];
27
27
  }
28
28
  return new ajv_human_errors_1.AggregateAjvError(errors).toJSON();
29
29
  }
30
- exports.getReadableErrors = getReadableErrors;
@@ -1,4 +1,3 @@
1
- /// <reference types="@expo/apple-utils/ts-declarations/expo__app-store" />
2
1
  import { ConnectModel } from '@expo/apple-utils';
3
2
  /** Get the properties of a single App Store Connect entity */
4
3
  export type AttributesOf<T extends ConnectModel> = T['attributes'];
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.removeDatePrecision = void 0;
3
+ exports.removeDatePrecision = removeDatePrecision;
4
4
  /**
5
5
  * Remove time precision from a date to avoid potential errors with the App Store.
6
6
  *
@@ -27,4 +27,3 @@ function removeDatePrecision(date) {
27
27
  }
28
28
  return null;
29
29
  }
30
- exports.removeDatePrecision = removeDatePrecision;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.logAsync = void 0;
3
+ exports.logAsync = logAsync;
4
4
  const ora_1 = require("../../ora");
5
5
  /**
6
6
  * Log an asynchronous action using a spinner.
@@ -20,4 +20,3 @@ async function logAsync(action, { hidden, ...message }) {
20
20
  throw error;
21
21
  }
22
22
  }
23
- exports.logAsync = logAsync;
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.retryIfNullAsync = exports.waitAsync = void 0;
3
+ exports.waitAsync = waitAsync;
4
+ exports.retryIfNullAsync = retryIfNullAsync;
4
5
  async function waitAsync(duration) {
5
6
  await new Promise(resolve => setTimeout(resolve, duration));
6
7
  }
7
- exports.waitAsync = waitAsync;
8
8
  async function retryIfNullAsync(method, options = {}) {
9
9
  let { tries = 5, delay = 1000 } = options;
10
10
  while (tries > 0) {
@@ -18,4 +18,3 @@ async function retryIfNullAsync(method, options = {}) {
18
18
  }
19
19
  return null;
20
20
  }
21
- exports.retryIfNullAsync = retryIfNullAsync;
@@ -1,4 +1,3 @@
1
- /// <reference types="@expo/apple-utils/ts-declarations/expo__app-store" />
2
1
  import { App, Session } from '@expo/apple-utils';
3
2
  import { Analytics, MetadataEvent } from '../../analytics/AnalyticsManager';
4
3
  export type TelemetryContext = {
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.makeDataScrubberAsync = exports.subscribeTelemetryAsync = void 0;
3
+ exports.subscribeTelemetryAsync = subscribeTelemetryAsync;
4
+ exports.makeDataScrubberAsync = makeDataScrubberAsync;
4
5
  const apple_utils_1 = require("@expo/apple-utils");
5
6
  const uuid_1 = require("uuid");
6
7
  /**
@@ -43,7 +44,6 @@ async function subscribeTelemetryAsync(analytics, event, options) {
43
44
  }
44
45
  return { unsubscribeTelemetry, executionId };
45
46
  }
46
- exports.subscribeTelemetryAsync = subscribeTelemetryAsync;
47
47
  /** Exposed for testing */
48
48
  async function makeDataScrubberAsync({ app, auth, }) {
49
49
  const token = await getAuthTokenStringAsync(auth);
@@ -71,7 +71,6 @@ async function makeDataScrubberAsync({ app, auth, }) {
71
71
  return value;
72
72
  };
73
73
  }
74
- exports.makeDataScrubberAsync = makeDataScrubberAsync;
75
74
  async function getAuthTokenStringAsync(auth) {
76
75
  if (!auth.context?.token) {
77
76
  return null;
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.canAccessRepositoryUsingSshAsync = exports.runGitPushAsync = exports.runGitCloneAsync = void 0;
3
+ exports.runGitCloneAsync = runGitCloneAsync;
4
+ exports.runGitPushAsync = runGitPushAsync;
5
+ exports.canAccessRepositoryUsingSshAsync = canAccessRepositoryUsingSshAsync;
4
6
  const tslib_1 = require("tslib");
5
7
  const spawn_async_1 = tslib_1.__importDefault(require("@expo/spawn-async"));
6
8
  const runCommand_1 = require("./runCommand");
@@ -65,7 +67,6 @@ async function runGitCloneAsync({ targetProjectDir, githubRepositoryName, github
65
67
  }
66
68
  }
67
69
  }
68
- exports.runGitCloneAsync = runGitCloneAsync;
69
70
  async function runGitPushAsync({ targetProjectDir, }) {
70
71
  await (0, runCommand_1.runCommandAsync)({
71
72
  command: 'git',
@@ -73,7 +74,6 @@ async function runGitPushAsync({ targetProjectDir, }) {
73
74
  cwd: targetProjectDir,
74
75
  });
75
76
  }
76
- exports.runGitPushAsync = runGitPushAsync;
77
77
  async function canAccessRepositoryUsingSshAsync({ githubUsername, githubRepositoryName, }) {
78
78
  try {
79
79
  await (0, spawn_async_1.default)('git', [
@@ -86,4 +86,3 @@ async function canAccessRepositoryUsingSshAsync({ githubUsername, githubReposito
86
86
  return false;
87
87
  }
88
88
  }
89
- exports.canAccessRepositoryUsingSshAsync = canAccessRepositoryUsingSshAsync;
@@ -1,13 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.installDependenciesAsync = exports.promptForPackageManagerAsync = exports.PACKAGE_MANAGERS = void 0;
3
+ exports.PACKAGE_MANAGERS = void 0;
4
+ exports.promptForPackageManagerAsync = promptForPackageManagerAsync;
5
+ exports.installDependenciesAsync = installDependenciesAsync;
4
6
  const runCommand_1 = require("./runCommand");
5
7
  const prompts_1 = require("../prompts");
6
8
  exports.PACKAGE_MANAGERS = ['bun', 'npm', 'pnpm', 'yarn'];
7
9
  async function promptForPackageManagerAsync() {
8
10
  return await (0, prompts_1.selectAsync)('Which package manager would you like to use?', ['bun', 'npm', 'pnpm', 'yarn'].map(manager => ({ title: manager, value: manager })), { initial: 'npm' });
9
11
  }
10
- exports.promptForPackageManagerAsync = promptForPackageManagerAsync;
11
12
  async function installDependenciesAsync({ outputLevel = 'default', projectDir, packageManager = 'npm', }) {
12
13
  await (0, runCommand_1.runCommandAsync)({
13
14
  command: packageManager,
@@ -24,4 +25,3 @@ async function installDependenciesAsync({ outputLevel = 'default', projectDir, p
24
25
  showSpinner: outputLevel !== 'none',
25
26
  });
26
27
  }
27
- exports.installDependenciesAsync = installDependenciesAsync;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.runCommandAsync = void 0;
3
+ exports.runCommandAsync = runCommandAsync;
4
4
  const tslib_1 = require("tslib");
5
5
  const spawn_async_1 = tslib_1.__importDefault(require("@expo/spawn-async"));
6
6
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
@@ -66,4 +66,3 @@ async function runCommandAsync({ cwd, args, command, shouldShowStderrLine, shoul
66
66
  }
67
67
  log_1.default.log('');
68
68
  }
69
- exports.runCommandAsync = runCommandAsync;
package/build/ora.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ora = void 0;
3
+ exports.ora = ora;
4
4
  const tslib_1 = require("tslib");
5
5
  const getenv_1 = require("getenv");
6
6
  // eslint-disable-next-line
@@ -99,4 +99,3 @@ function ora(options) {
99
99
  };
100
100
  return spinner;
101
101
  }
102
- exports.ora = ora;
@@ -12,5 +12,6 @@ export declare enum RequestedPlatform {
12
12
  }
13
13
  export declare const requestedPlatformDisplayNames: Record<RequestedPlatform, string>;
14
14
  export declare function selectRequestedPlatformAsync(platform?: string): Promise<RequestedPlatform>;
15
+ export declare function selectPlatformWithExitOptionAsync(platform?: string): Promise<Platform>;
15
16
  export declare function selectPlatformAsync(platform?: string): Promise<Platform>;
16
17
  export declare function toPlatforms(requestedPlatform: RequestedPlatform): Platform[];
package/build/platform.js CHANGED
@@ -1,8 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toPlatforms = exports.selectPlatformAsync = exports.selectRequestedPlatformAsync = exports.requestedPlatformDisplayNames = exports.RequestedPlatform = exports.appPlatformEmojis = exports.appPlatformDisplayNames = void 0;
3
+ exports.requestedPlatformDisplayNames = exports.RequestedPlatform = exports.appPlatformEmojis = exports.appPlatformDisplayNames = void 0;
4
+ exports.selectRequestedPlatformAsync = selectRequestedPlatformAsync;
5
+ exports.selectPlatformWithExitOptionAsync = selectPlatformWithExitOptionAsync;
6
+ exports.selectPlatformAsync = selectPlatformAsync;
7
+ exports.toPlatforms = toPlatforms;
8
+ const tslib_1 = require("tslib");
4
9
  const eas_build_job_1 = require("@expo/eas-build-job");
5
10
  const generated_1 = require("./graphql/generated");
11
+ const log_1 = tslib_1.__importDefault(require("./log"));
6
12
  const prompts_1 = require("./prompts");
7
13
  exports.appPlatformDisplayNames = {
8
14
  [generated_1.AppPlatform.Android]: 'Android',
@@ -41,23 +47,36 @@ async function selectRequestedPlatformAsync(platform) {
41
47
  });
42
48
  return requestedPlatform;
43
49
  }
44
- exports.selectRequestedPlatformAsync = selectRequestedPlatformAsync;
50
+ async function selectPlatformWithExitOptionAsync(platform) {
51
+ return await selectPlatformInternalAsync(platform, true);
52
+ }
45
53
  async function selectPlatformAsync(platform) {
54
+ return await selectPlatformInternalAsync(platform, false);
55
+ }
56
+ async function selectPlatformInternalAsync(platform, allowExit) {
46
57
  if (platform && Object.values(eas_build_job_1.Platform).includes(platform.toLowerCase())) {
47
58
  return platform.toLowerCase();
48
59
  }
49
- const { resolvedPlatform } = await (0, prompts_1.promptAsync)({
60
+ const platformChoices = [
61
+ { title: 'Android', value: eas_build_job_1.Platform.ANDROID },
62
+ { title: 'iOS', value: eas_build_job_1.Platform.IOS },
63
+ ];
64
+ if (allowExit) {
65
+ platformChoices.push({ title: 'Exit', value: 'Exit' });
66
+ }
67
+ const result = await (0, prompts_1.promptAsync)({
50
68
  type: 'select',
51
69
  message: 'Select platform',
52
70
  name: 'resolvedPlatform',
53
- choices: [
54
- { title: 'Android', value: eas_build_job_1.Platform.ANDROID },
55
- { title: 'iOS', value: eas_build_job_1.Platform.IOS },
56
- ],
71
+ choices: platformChoices,
57
72
  });
58
- return resolvedPlatform;
73
+ if (result.resolvedPlatform === 'Exit') {
74
+ log_1.default.addNewLineIfNone();
75
+ log_1.default.log('Exiting');
76
+ process.exit(0);
77
+ }
78
+ return result.resolvedPlatform;
59
79
  }
60
- exports.selectPlatformAsync = selectPlatformAsync;
61
80
  function toPlatforms(requestedPlatform) {
62
81
  if (requestedPlatform === RequestedPlatform.All) {
63
82
  return [eas_build_job_1.Platform.ANDROID, eas_build_job_1.Platform.IOS];
@@ -69,4 +88,3 @@ function toPlatforms(requestedPlatform) {
69
88
  return [eas_build_job_1.Platform.IOS];
70
89
  }
71
90
  }
72
- exports.toPlatforms = toPlatforms;
@@ -1,6 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.warnIfAndroidPackageDefinedInAppConfigForBareWorkflowProject = exports.isApplicationIdValid = exports.getApplicationIdAsync = exports.getApplicationIdFromBareAsync = exports.AmbiguousApplicationIdError = exports.ensureApplicationIdIsDefinedForManagedProjectAsync = exports.INVALID_APPLICATION_ID_MESSAGE = void 0;
3
+ exports.AmbiguousApplicationIdError = exports.INVALID_APPLICATION_ID_MESSAGE = void 0;
4
+ exports.ensureApplicationIdIsDefinedForManagedProjectAsync = ensureApplicationIdIsDefinedForManagedProjectAsync;
5
+ exports.getApplicationIdFromBareAsync = getApplicationIdFromBareAsync;
6
+ exports.getApplicationIdAsync = getApplicationIdAsync;
7
+ exports.isApplicationIdValid = isApplicationIdValid;
8
+ exports.warnIfAndroidPackageDefinedInAppConfigForBareWorkflowProject = warnIfAndroidPackageDefinedInAppConfigForBareWorkflowProject;
4
9
  const tslib_1 = require("tslib");
5
10
  const config_1 = require("@expo/config");
6
11
  const config_plugins_1 = require("@expo/config-plugins");
@@ -35,7 +40,6 @@ async function ensureApplicationIdIsDefinedForManagedProjectAsync({ graphqlClien
35
40
  });
36
41
  }
37
42
  }
38
- exports.ensureApplicationIdIsDefinedForManagedProjectAsync = ensureApplicationIdIsDefinedForManagedProjectAsync;
39
43
  class AmbiguousApplicationIdError extends Error {
40
44
  constructor(message) {
41
45
  super(message ?? 'Could not resolve applicationId.');
@@ -67,7 +71,6 @@ async function getApplicationIdFromBareAsync(projectDir, gradleContext) {
67
71
  return (0, nullthrows_1.default)(matchResult?.[1], errorMessage);
68
72
  }
69
73
  }
70
- exports.getApplicationIdFromBareAsync = getApplicationIdFromBareAsync;
71
74
  async function getApplicationIdAsync(projectDir, exp, vcsClient, gradleContext) {
72
75
  if (env_1.default.overrideAndroidApplicationId) {
73
76
  return env_1.default.overrideAndroidApplicationId;
@@ -90,7 +93,6 @@ async function getApplicationIdAsync(projectDir, exp, vcsClient, gradleContext)
90
93
  }
91
94
  }
92
95
  }
93
- exports.getApplicationIdAsync = getApplicationIdAsync;
94
96
  async function configureApplicationIdAsync({ graphqlClient, projectDir, projectId, exp, nonInteractive, }) {
95
97
  if (nonInteractive) {
96
98
  throw new Error(`The "android.package" is required to be set in app config when running in non-interactive mode. ${(0, log_1.learnMore)('https://docs.expo.dev/versions/latest/config/app/#package')}`);
@@ -123,7 +125,6 @@ async function configureApplicationIdAsync({ graphqlClient, projectDir, projectI
123
125
  function isApplicationIdValid(applicationId) {
124
126
  return /^[a-zA-Z][a-zA-Z0-9_]*(\.[a-zA-Z][a-zA-Z0-9_]*)+$/.test(applicationId);
125
127
  }
126
- exports.isApplicationIdValid = isApplicationIdValid;
127
128
  let warnPrinted = false;
128
129
  function warnIfAndroidPackageDefinedInAppConfigForBareWorkflowProject(projectDir, exp) {
129
130
  if (config_plugins_1.AndroidConfig.Package.getPackage(exp) && !warnPrinted) {
@@ -132,7 +133,6 @@ function warnIfAndroidPackageDefinedInAppConfigForBareWorkflowProject(projectDir
132
133
  warnPrinted = true;
133
134
  }
134
135
  }
135
- exports.warnIfAndroidPackageDefinedInAppConfigForBareWorkflowProject = warnIfAndroidPackageDefinedInAppConfigForBareWorkflowProject;
136
136
  async function getSuggestedApplicationIdAsync(graphqlClient, exp, projectId) {
137
137
  // Attempt to use the ios bundle id first since it's convenient to have them aligned.
138
138
  const maybeBundleId = config_plugins_1.IOSConfig.BundleIdentifier.getBundleIdentifier(exp);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveGradleBuildContextAsync = void 0;
3
+ exports.resolveGradleBuildContextAsync = resolveGradleBuildContextAsync;
4
4
  const tslib_1 = require("tslib");
5
5
  const eas_build_job_1 = require("@expo/eas-build-job");
6
6
  const gradleUtils = tslib_1.__importStar(require("./gradleUtils"));
@@ -39,4 +39,3 @@ async function resolveGradleBuildContextAsync(projectDir, buildProfile, vcsClien
39
39
  return { moduleName: gradleUtils.DEFAULT_MODULE_NAME };
40
40
  }
41
41
  }
42
- exports.resolveGradleBuildContextAsync = resolveGradleBuildContextAsync;
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.parseGradleCommand = exports.resolveConfigValue = exports.getAppBuildGradleAsync = exports.DEFAULT_MODULE_NAME = void 0;
3
+ exports.DEFAULT_MODULE_NAME = void 0;
4
+ exports.getAppBuildGradleAsync = getAppBuildGradleAsync;
5
+ exports.resolveConfigValue = resolveConfigValue;
6
+ exports.parseGradleCommand = parseGradleCommand;
4
7
  const tslib_1 = require("tslib");
5
8
  const config_plugins_1 = require("@expo/config-plugins");
6
9
  const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
@@ -17,12 +20,10 @@ async function getAppBuildGradleAsync(projectDir) {
17
20
  .join('\n');
18
21
  return await parser_1.default.parseText(rawBuildGradleWithoutComments);
19
22
  }
20
- exports.getAppBuildGradleAsync = getAppBuildGradleAsync;
21
23
  function resolveConfigValue(buildGradle, field, flavor) {
22
24
  return ((flavor && buildGradle?.android?.productFlavors?.[flavor]?.[field]) ??
23
25
  buildGradle?.android?.defaultConfig?.[field]);
24
26
  }
25
- exports.resolveConfigValue = resolveConfigValue;
26
27
  /**
27
28
  * Extract module name, buildType, and flavor from the gradle command.
28
29
  *
@@ -82,4 +83,3 @@ function parseGradleCommand(cmd, buildGradle) {
82
83
  buildType,
83
84
  };
84
85
  }
85
- exports.parseGradleCommand = parseGradleCommand;
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getNextVersionCode = exports.isValidVersionCode = exports.VERSION_CODE_REQUIREMENTS = void 0;
3
+ exports.VERSION_CODE_REQUIREMENTS = void 0;
4
+ exports.isValidVersionCode = isValidVersionCode;
5
+ exports.getNextVersionCode = getNextVersionCode;
4
6
  const tslib_1 = require("tslib");
5
7
  const assert_1 = tslib_1.__importDefault(require("assert"));
6
8
  const MAX_VERSION_CODE = 2100000000;
@@ -11,7 +13,6 @@ function isValidVersionCode(versionCode) {
11
13
  numericVersionCode <= MAX_VERSION_CODE &&
12
14
  numericVersionCode > 0);
13
15
  }
14
- exports.isValidVersionCode = isValidVersionCode;
15
16
  function getNextVersionCode(versionCode) {
16
17
  (0, assert_1.default)(isValidVersionCode(versionCode), `Invalid versionCode ${versionCode}`);
17
18
  const numericVersionCode = typeof versionCode === 'string' ? Number(versionCode) : versionCode;
@@ -20,4 +21,3 @@ function getNextVersionCode(versionCode) {
20
21
  }
21
22
  return numericVersionCode + 1;
22
23
  }
23
- exports.getNextVersionCode = getNextVersionCode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getApplicationIdentifierAsync = void 0;
3
+ exports.getApplicationIdentifierAsync = getApplicationIdentifierAsync;
4
4
  const eas_build_job_1 = require("@expo/eas-build-job");
5
5
  const applicationId_1 = require("./android/applicationId");
6
6
  const gradle_1 = require("./android/gradle");
@@ -53,4 +53,3 @@ async function getApplicationIdentifierAsync({ graphqlClient, projectDir, projec
53
53
  });
54
54
  }
55
55
  }
56
- exports.getApplicationIdentifierAsync = getApplicationIdentifierAsync;
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getCustomBuildConfigPathForJob = exports.getCustomBuildConfigPath = exports.validateCustomBuildConfigAsync = void 0;
3
+ exports.validateCustomBuildConfigAsync = validateCustomBuildConfigAsync;
4
+ exports.getCustomBuildConfigPath = getCustomBuildConfigPath;
5
+ exports.getCustomBuildConfigPathForJob = getCustomBuildConfigPathForJob;
4
6
  const tslib_1 = require("tslib");
5
7
  const steps_1 = require("@expo/steps");
6
8
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
@@ -39,12 +41,9 @@ async function validateCustomBuildConfigAsync({ profile, projectDir, vcsClient,
39
41
  }
40
42
  }
41
43
  }
42
- exports.validateCustomBuildConfigAsync = validateCustomBuildConfigAsync;
43
44
  function getCustomBuildConfigPath(configFilename) {
44
45
  return path_1.default.join('.eas/build', configFilename);
45
46
  }
46
- exports.getCustomBuildConfigPath = getCustomBuildConfigPath;
47
47
  function getCustomBuildConfigPathForJob(configFilename) {
48
48
  return path_1.default.posix.join('.eas/build', configFilename);
49
49
  }
50
- exports.getCustomBuildConfigPathForJob = getCustomBuildConfigPathForJob;
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getPublicExpoConfigAsync = exports.isUsingStaticExpoConfig = exports.ensureExpoConfigExists = exports.getPrivateExpoConfigAsync = exports.createOrModifyExpoConfigAsync = void 0;
3
+ exports.createOrModifyExpoConfigAsync = createOrModifyExpoConfigAsync;
4
+ exports.getPrivateExpoConfigAsync = getPrivateExpoConfigAsync;
5
+ exports.ensureExpoConfigExists = ensureExpoConfigExists;
6
+ exports.isUsingStaticExpoConfig = isUsingStaticExpoConfig;
7
+ exports.getPublicExpoConfigAsync = getPublicExpoConfigAsync;
4
8
  const tslib_1 = require("tslib");
5
9
  const config_1 = require("@expo/config");
6
10
  const spawn_async_1 = tslib_1.__importDefault(require("@expo/spawn-async"));
@@ -18,7 +22,6 @@ async function createOrModifyExpoConfigAsync(projectDir, exp, readOptions) {
18
22
  return await (0, config_1.modifyConfigAsync)(projectDir, exp);
19
23
  }
20
24
  }
21
- exports.createOrModifyExpoConfigAsync = createOrModifyExpoConfigAsync;
22
25
  let wasExpoConfigWarnPrinted = false;
23
26
  async function getExpoConfigInternalAsync(projectDir, opts = {}) {
24
27
  const originalProcessEnv = process.env;
@@ -88,7 +91,6 @@ async function getPrivateExpoConfigAsync(projectDir, opts = {}) {
88
91
  ensureExpoConfigExists(projectDir);
89
92
  return await getExpoConfigInternalAsync(projectDir, { ...opts, isPublicConfig: false });
90
93
  }
91
- exports.getPrivateExpoConfigAsync = getPrivateExpoConfigAsync;
92
94
  function ensureExpoConfigExists(projectDir) {
93
95
  const paths = (0, config_1.getConfigFilePaths)(projectDir);
94
96
  if (!paths?.staticConfigPath && !paths?.dynamicConfigPath) {
@@ -96,14 +98,11 @@ function ensureExpoConfigExists(projectDir) {
96
98
  fs_extra_1.default.writeFileSync(path_1.default.join(projectDir, 'app.json'), JSON.stringify({ expo: {} }, null, 2));
97
99
  }
98
100
  }
99
- exports.ensureExpoConfigExists = ensureExpoConfigExists;
100
101
  function isUsingStaticExpoConfig(projectDir) {
101
102
  const paths = (0, config_1.getConfigFilePaths)(projectDir);
102
103
  return !!(paths.staticConfigPath?.endsWith('app.json') && !paths.dynamicConfigPath);
103
104
  }
104
- exports.isUsingStaticExpoConfig = isUsingStaticExpoConfig;
105
105
  async function getPublicExpoConfigAsync(projectDir, opts = {}) {
106
106
  ensureExpoConfigExists(projectDir);
107
107
  return await getExpoConfigInternalAsync(projectDir, { ...opts, isPublicConfig: true });
108
108
  }
109
- exports.getPublicExpoConfigAsync = getPublicExpoConfigAsync;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.checkExpoSdkIsSupportedAsync = void 0;
3
+ exports.checkExpoSdkIsSupportedAsync = checkExpoSdkIsSupportedAsync;
4
4
  const tslib_1 = require("tslib");
5
5
  const eas_build_job_1 = require("@expo/eas-build-job");
6
6
  const core_1 = require("@oclif/core");
@@ -27,4 +27,3 @@ async function checkExpoSdkIsSupportedAsync(ctx) {
27
27
  core_1.Errors.exit(1);
28
28
  }
29
29
  }
30
- exports.checkExpoSdkIsSupportedAsync = checkExpoSdkIsSupportedAsync;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.findProjectIdByAccountNameAndSlugNullableAsync = exports.fetchOrCreateProjectIDForWriteToConfigWithConfirmationAsync = void 0;
3
+ exports.fetchOrCreateProjectIDForWriteToConfigWithConfirmationAsync = fetchOrCreateProjectIDForWriteToConfigWithConfirmationAsync;
4
+ exports.findProjectIdByAccountNameAndSlugNullableAsync = findProjectIdByAccountNameAndSlugNullableAsync;
4
5
  const tslib_1 = require("tslib");
5
6
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
7
  const url_1 = require("../build/utils/url");
@@ -65,7 +66,6 @@ async function fetchOrCreateProjectIDForWriteToConfigWithConfirmationAsync(graph
65
66
  throw err;
66
67
  }
67
68
  }
68
- exports.fetchOrCreateProjectIDForWriteToConfigWithConfirmationAsync = fetchOrCreateProjectIDForWriteToConfigWithConfirmationAsync;
69
69
  /**
70
70
  * Finds project by `@accountName/slug` and returns its ID, return null if the project does not exist.
71
71
  * @param accountName account name
@@ -84,4 +84,3 @@ async function findProjectIdByAccountNameAndSlugNullableAsync(graphqlClient, acc
84
84
  return null;
85
85
  }
86
86
  }
87
- exports.findProjectIdByAccountNameAndSlugNullableAsync = findProjectIdByAccountNameAndSlugNullableAsync;
@@ -1,6 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isWildcardBundleIdentifier = exports.warnIfBundleIdentifierDefinedInAppConfigForBareWorkflowProject = exports.isBundleIdentifierValid = exports.getBundleIdentifierAsync = exports.AmbiguousBundleIdentifierError = exports.ensureBundleIdentifierIsDefinedForManagedProjectAsync = exports.INVALID_BUNDLE_IDENTIFIER_MESSAGE = void 0;
3
+ exports.AmbiguousBundleIdentifierError = exports.INVALID_BUNDLE_IDENTIFIER_MESSAGE = void 0;
4
+ exports.ensureBundleIdentifierIsDefinedForManagedProjectAsync = ensureBundleIdentifierIsDefinedForManagedProjectAsync;
5
+ exports.getBundleIdentifierAsync = getBundleIdentifierAsync;
6
+ exports.isBundleIdentifierValid = isBundleIdentifierValid;
7
+ exports.warnIfBundleIdentifierDefinedInAppConfigForBareWorkflowProject = warnIfBundleIdentifierDefinedInAppConfigForBareWorkflowProject;
8
+ exports.isWildcardBundleIdentifier = isWildcardBundleIdentifier;
4
9
  const tslib_1 = require("tslib");
5
10
  const config_1 = require("@expo/config");
6
11
  const config_plugins_1 = require("@expo/config-plugins");
@@ -31,7 +36,6 @@ async function ensureBundleIdentifierIsDefinedForManagedProjectAsync({ graphqlCl
31
36
  });
32
37
  }
33
38
  }
34
- exports.ensureBundleIdentifierIsDefinedForManagedProjectAsync = ensureBundleIdentifierIsDefinedForManagedProjectAsync;
35
39
  class AmbiguousBundleIdentifierError extends Error {
36
40
  constructor(message) {
37
41
  super(message ?? 'Could not resolve bundle identifier.');
@@ -78,7 +82,6 @@ async function getBundleIdentifierAsync(projectDir, exp, vcsClient, xcodeContext
78
82
  }
79
83
  }
80
84
  }
81
- exports.getBundleIdentifierAsync = getBundleIdentifierAsync;
82
85
  async function configureBundleIdentifierAsync({ graphqlClient, projectDir, projectId, exp, nonInteractive, }) {
83
86
  if (nonInteractive) {
84
87
  throw new Error(`The "ios.bundleIdentifier" is required to be set in app config when running in non-interactive mode. ${(0, log_1.learnMore)('https://docs.expo.dev/versions/latest/config/app/#bundleidentifier')}`);
@@ -111,7 +114,6 @@ async function configureBundleIdentifierAsync({ graphqlClient, projectDir, proje
111
114
  function isBundleIdentifierValid(bundleIdentifier) {
112
115
  return /^[a-zA-Z0-9-.]+$/.test(bundleIdentifier);
113
116
  }
114
- exports.isBundleIdentifierValid = isBundleIdentifierValid;
115
117
  let warnPrinted = false;
116
118
  function warnIfBundleIdentifierDefinedInAppConfigForBareWorkflowProject(projectDir, exp) {
117
119
  if (config_plugins_1.IOSConfig.BundleIdentifier.getBundleIdentifier(exp) && !warnPrinted) {
@@ -120,12 +122,10 @@ function warnIfBundleIdentifierDefinedInAppConfigForBareWorkflowProject(projectD
120
122
  warnPrinted = true;
121
123
  }
122
124
  }
123
- exports.warnIfBundleIdentifierDefinedInAppConfigForBareWorkflowProject = warnIfBundleIdentifierDefinedInAppConfigForBareWorkflowProject;
124
125
  function isWildcardBundleIdentifier(bundleIdentifier) {
125
126
  const wildcardRegex = /^[A-Za-z0-9.-]+\*$/;
126
127
  return wildcardRegex.test(bundleIdentifier);
127
128
  }
128
- exports.isWildcardBundleIdentifier = isWildcardBundleIdentifier;
129
129
  async function getSuggestedBundleIdentifierAsync(graphqlClient, exp, projectId) {
130
130
  // Attempt to use the android package name first since it's convenient to have them aligned.
131
131
  const maybeAndroidPackage = config_plugins_1.AndroidConfig.Package.getPackage(exp);
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getNativeTargetEntitlementsAsync = exports.getManagedApplicationTargetEntitlementsAsync = void 0;
3
+ exports.getManagedApplicationTargetEntitlementsAsync = getManagedApplicationTargetEntitlementsAsync;
4
+ exports.getNativeTargetEntitlementsAsync = getNativeTargetEntitlementsAsync;
4
5
  const tslib_1 = require("tslib");
5
6
  const config_plugins_1 = require("@expo/config-plugins");
6
7
  const prebuild_config_1 = require("@expo/prebuild-config");
@@ -48,7 +49,6 @@ async function getManagedApplicationTargetEntitlementsAsync(projectDir, env, vcs
48
49
  process.env = originalProcessEnv;
49
50
  }
50
51
  }
51
- exports.getManagedApplicationTargetEntitlementsAsync = getManagedApplicationTargetEntitlementsAsync;
52
52
  async function getNativeTargetEntitlementsAsync(projectDir, target) {
53
53
  const entitlementsPath = config_plugins_1.IOSConfig.Entitlements.getEntitlementsPath(projectDir, target);
54
54
  if (entitlementsPath) {
@@ -59,4 +59,3 @@ async function getNativeTargetEntitlementsAsync(projectDir, target) {
59
59
  return null;
60
60
  }
61
61
  }
62
- exports.getNativeTargetEntitlementsAsync = getNativeTargetEntitlementsAsync;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ensureNonExemptEncryptionIsDefinedForManagedProjectAsync = void 0;
3
+ exports.ensureNonExemptEncryptionIsDefinedForManagedProjectAsync = ensureNonExemptEncryptionIsDefinedForManagedProjectAsync;
4
4
  const tslib_1 = require("tslib");
5
5
  const config_1 = require("@expo/config");
6
6
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
@@ -22,7 +22,6 @@ async function ensureNonExemptEncryptionIsDefinedForManagedProjectAsync({ projec
22
22
  log_1.default.debug(`ITSAppUsesNonExemptEncryption is defined in the app config.`);
23
23
  }
24
24
  }
25
- exports.ensureNonExemptEncryptionIsDefinedForManagedProjectAsync = ensureNonExemptEncryptionIsDefinedForManagedProjectAsync;
26
25
  async function configureNonExemptEncryptionAsync({ projectDir, exp, nonInteractive, }) {
27
26
  const description = (0, config_1.getProjectConfigDescription)(projectDir);
28
27
  if (nonInteractive) {
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.selectSchemeAsync = exports.resolveXcodeBuildContextAsync = void 0;
3
+ exports.resolveXcodeBuildContextAsync = resolveXcodeBuildContextAsync;
4
+ exports.selectSchemeAsync = selectSchemeAsync;
4
5
  const tslib_1 = require("tslib");
5
6
  const config_plugins_1 = require("@expo/config-plugins");
6
7
  const eas_build_job_1 = require("@expo/eas-build-job");
@@ -37,7 +38,6 @@ async function resolveXcodeBuildContextAsync({ exp, projectDir, nonInteractive,
37
38
  };
38
39
  }
39
40
  }
40
- exports.resolveXcodeBuildContextAsync = resolveXcodeBuildContextAsync;
41
41
  async function selectSchemeAsync({ projectDir, nonInteractive = false, }) {
42
42
  const schemes = config_plugins_1.IOSConfig.BuildScheme.getSchemesFromXcodeproj(projectDir);
43
43
  if (schemes.length === 0) {
@@ -67,4 +67,3 @@ async function selectSchemeAsync({ projectDir, nonInteractive = false, }) {
67
67
  return selectedScheme;
68
68
  }
69
69
  }
70
- exports.selectSchemeAsync = selectSchemeAsync;