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,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveRemoteBuildNumberAsync = exports.evaluateTemplateString = exports.updateNativeVersionsAsync = exports.getInfoPlistPath = exports.maybeResolveVersionsAsync = exports.readBuildNumberAsync = exports.readShortVersionAsync = exports.bumpVersionInAppJsonAsync = exports.bumpVersionAsync = exports.BumpStrategy = void 0;
3
+ exports.BumpStrategy = void 0;
4
+ exports.bumpVersionAsync = bumpVersionAsync;
5
+ exports.bumpVersionInAppJsonAsync = bumpVersionInAppJsonAsync;
6
+ exports.readShortVersionAsync = readShortVersionAsync;
7
+ exports.readBuildNumberAsync = readBuildNumberAsync;
8
+ exports.maybeResolveVersionsAsync = maybeResolveVersionsAsync;
9
+ exports.getInfoPlistPath = getInfoPlistPath;
10
+ exports.updateNativeVersionsAsync = updateNativeVersionsAsync;
11
+ exports.evaluateTemplateString = evaluateTemplateString;
12
+ exports.resolveRemoteBuildNumberAsync = resolveRemoteBuildNumberAsync;
4
13
  const tslib_1 = require("tslib");
5
14
  const config_plugins_1 = require("@expo/config-plugins");
6
15
  const eas_build_job_1 = require("@expo/eas-build-job");
@@ -41,7 +50,6 @@ async function bumpVersionAsync({ bumpStrategy, projectDir, exp, targets, }) {
41
50
  });
42
51
  log_1.default.log('Synchronized versions with Info.plist');
43
52
  }
44
- exports.bumpVersionAsync = bumpVersionAsync;
45
53
  async function bumpVersionInAppJsonAsync({ bumpStrategy, projectDir, exp, }) {
46
54
  if (bumpStrategy === BumpStrategy.NOOP) {
47
55
  return;
@@ -74,7 +82,6 @@ async function bumpVersionInAppJsonAsync({ bumpStrategy, projectDir, exp, }) {
74
82
  }
75
83
  }
76
84
  }
77
- exports.bumpVersionInAppJsonAsync = bumpVersionInAppJsonAsync;
78
85
  function validateShortVersion({ shortVersion, workflow, }) {
79
86
  if (shortVersion && !SHORT_VERSION_REGEX.test(shortVersion)) {
80
87
  if (workflow === eas_build_job_1.Workflow.MANAGED) {
@@ -99,7 +106,6 @@ async function readShortVersionAsync(projectDir, exp, buildSettings, vcsClient)
99
106
  return exp.version;
100
107
  }
101
108
  }
102
- exports.readShortVersionAsync = readShortVersionAsync;
103
109
  async function readBuildNumberAsync(projectDir, exp, buildSettings, vcsClient) {
104
110
  const workflow = await (0, workflow_1.resolveWorkflowAsync)(projectDir, eas_build_job_1.Platform.IOS, vcsClient);
105
111
  if (workflow === eas_build_job_1.Workflow.GENERIC) {
@@ -110,7 +116,6 @@ async function readBuildNumberAsync(projectDir, exp, buildSettings, vcsClient) {
110
116
  return config_plugins_1.IOSConfig.Version.getBuildNumber(exp);
111
117
  }
112
118
  }
113
- exports.readBuildNumberAsync = readBuildNumberAsync;
114
119
  async function maybeResolveVersionsAsync(projectDir, exp, targets, vcsClient) {
115
120
  const applicationTarget = (0, target_1.findApplicationTarget)(targets);
116
121
  try {
@@ -127,7 +132,6 @@ async function maybeResolveVersionsAsync(projectDir, exp, targets, vcsClient) {
127
132
  return {};
128
133
  }
129
134
  }
130
- exports.maybeResolveVersionsAsync = maybeResolveVersionsAsync;
131
135
  function getInfoPlistPath(projectDir, buildSettings) {
132
136
  if (buildSettings.INFOPLIST_FILE) {
133
137
  const infoPlistFile = buildSettings.INFOPLIST_FILE.startsWith('"')
@@ -144,7 +148,6 @@ function getInfoPlistPath(projectDir, buildSettings) {
144
148
  return config_plugins_1.IOSConfig.Paths.getInfoPlistPath(projectDir);
145
149
  }
146
150
  }
147
- exports.getInfoPlistPath = getInfoPlistPath;
148
151
  async function readInfoPlistAsync(projectDir, buildSettings) {
149
152
  const infoPlistPath = getInfoPlistPath(projectDir, buildSettings);
150
153
  return ((await (0, plist_1.readPlistAsync)(infoPlistPath)) ?? {});
@@ -182,7 +185,6 @@ async function updateNativeVersionsAsync({ projectDir, version, buildNumber, tar
182
185
  await (0, plist_1.writePlistAsync)(infoPlistPath, infoPlist);
183
186
  }
184
187
  }
185
- exports.updateNativeVersionsAsync = updateNativeVersionsAsync;
186
188
  function trimQuotes(s) {
187
189
  return s?.startsWith('"') && s.endsWith('"') ? s.slice(1, -1) : s;
188
190
  }
@@ -199,7 +201,6 @@ function evaluateTemplateString(s, buildSettings) {
199
201
  }
200
202
  });
201
203
  }
202
- exports.evaluateTemplateString = evaluateTemplateString;
203
204
  /**
204
205
  * Returns buildNumber that will be used for the next build. If current build profile
205
206
  * has an 'autoIncrement' option set, it increments the version on server.
@@ -270,4 +271,3 @@ async function resolveRemoteBuildNumberAsync(graphqlClient, { projectDir, projec
270
271
  return nextBuildVersion;
271
272
  }
272
273
  }
273
- exports.resolveRemoteBuildNumberAsync = resolveRemoteBuildNumberAsync;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.runLocalBuildAsync = exports.LocalBuildMode = void 0;
3
+ exports.LocalBuildMode = void 0;
4
+ exports.runLocalBuildAsync = runLocalBuildAsync;
4
5
  const tslib_1 = require("tslib");
5
6
  const eas_build_job_1 = require("@expo/eas-build-job");
6
7
  const spawn_async_1 = tslib_1.__importDefault(require("@expo/spawn-async"));
@@ -72,7 +73,6 @@ async function runLocalBuildAsync(job, metadata, options, env) {
72
73
  spinner?.stop();
73
74
  }
74
75
  }
75
- exports.runLocalBuildAsync = runLocalBuildAsync;
76
76
  async function getCommandAndArgsAsync(job, metadata) {
77
77
  const jobAndMetadataBase64 = Buffer.from(JSON.stringify({ job, metadata })).toString('base64');
78
78
  if (process.env.EAS_LOCAL_BUILD_PLUGIN_PATH) {
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.truncateGitCommitMessage = exports.getReactNativeVersionAsync = exports.collectMetadataAsync = void 0;
3
+ exports.collectMetadataAsync = collectMetadataAsync;
4
+ exports.getReactNativeVersionAsync = getReactNativeVersionAsync;
5
+ exports.truncateGitCommitMessage = truncateGitCommitMessage;
4
6
  const tslib_1 = require("tslib");
5
7
  const eas_build_job_1 = require("@expo/eas-build-job");
6
8
  const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
@@ -53,7 +55,6 @@ async function collectMetadataAsync(ctx, runtimeAndFingerprintMetadata) {
53
55
  };
54
56
  return (0, eas_build_job_1.sanitizeMetadata)(metadata);
55
57
  }
56
- exports.collectMetadataAsync = collectMetadataAsync;
57
58
  async function maybeResolveVersionsAsync(ctx) {
58
59
  if (ctx.platform === eas_build_job_1.Platform.IOS) {
59
60
  const iosContext = ctx;
@@ -124,7 +125,6 @@ async function getReactNativeVersionAsync(projectDir) {
124
125
  return undefined;
125
126
  }
126
127
  }
127
- exports.getReactNativeVersionAsync = getReactNativeVersionAsync;
128
128
  function resolveIosEnterpriseProvisioning(ctx) {
129
129
  return ctx.buildProfile.enterpriseProvisioning;
130
130
  }
@@ -134,4 +134,3 @@ function truncateGitCommitMessage(msg, maxLength = 4096) {
134
134
  }
135
135
  return msg.length > maxLength ? `${msg.substring(0, maxLength - 3)}...` : msg;
136
136
  }
137
- exports.truncateGitCommitMessage = truncateGitCommitMessage;
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getLatestBuildAsync = exports.listAndSelectBuildOnAppAsync = exports.listAndRenderBuildsOnAppAsync = exports.BUILDS_LIMIT = void 0;
3
+ exports.BUILDS_LIMIT = void 0;
4
+ exports.listAndRenderBuildsOnAppAsync = listAndRenderBuildsOnAppAsync;
5
+ exports.listAndSelectBuildOnAppAsync = listAndSelectBuildOnAppAsync;
6
+ exports.getLatestBuildAsync = getLatestBuildAsync;
4
7
  const tslib_1 = require("tslib");
5
8
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
9
  const formatBuild_1 = require("./utils/formatBuild");
@@ -40,7 +43,6 @@ async function listAndRenderBuildsOnAppAsync(graphqlClient, { projectId, project
40
43
  });
41
44
  }
42
45
  }
43
- exports.listAndRenderBuildsOnAppAsync = listAndRenderBuildsOnAppAsync;
44
46
  async function listAndSelectBuildOnAppAsync(graphqlClient, { projectId, title, filter, paginatedQueryOptions, selectPromptDisabledFunction, selectPromptWarningMessage, }) {
45
47
  if (paginatedQueryOptions.nonInteractive) {
46
48
  throw new Error('Unable to select a build in non-interactive mode.');
@@ -65,7 +67,6 @@ async function listAndSelectBuildOnAppAsync(graphqlClient, { projectId, title, f
65
67
  return selectedBuild ?? null;
66
68
  }
67
69
  }
68
- exports.listAndSelectBuildOnAppAsync = listAndSelectBuildOnAppAsync;
69
70
  function createBuildToPartialChoiceMaker(selectPromptDisabledFunction) {
70
71
  return (build) => {
71
72
  const splitCommitMessage = build.gitCommitMessage?.split('\n');
@@ -109,7 +110,6 @@ async function getLatestBuildAsync(graphqlClient, { projectId, filter, }) {
109
110
  }
110
111
  return builds[0];
111
112
  }
112
- exports.getLatestBuildAsync = getLatestBuildAsync;
113
113
  function renderPageOfBuilds({ builds, projectDisplayName, paginatedQueryOptions, }) {
114
114
  if (paginatedQueryOptions.json) {
115
115
  (0, json_1.printJsonOnlyOutput)(builds);
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.downloadAndRunAsync = exports.runBuildAndSubmitAsync = void 0;
3
+ exports.runBuildAndSubmitAsync = runBuildAndSubmitAsync;
4
+ exports.downloadAndRunAsync = downloadAndRunAsync;
4
5
  const tslib_1 = require("tslib");
5
6
  const eas_build_job_1 = require("@expo/eas-build-job");
6
7
  const eas_json_1 = require("@expo/eas-json");
@@ -41,8 +42,10 @@ const download_1 = require("../utils/download");
41
42
  const filter_1 = require("../utils/expodash/filter");
42
43
  const json_1 = require("../utils/json");
43
44
  const profiles_1 = require("../utils/profiles");
45
+ const checkForOverages_1 = require("../utils/usage/checkForOverages");
44
46
  let metroConfigValidated = false;
45
47
  let sdkVersionChecked = false;
48
+ let hasWarnedAboutUsageOverages = false;
46
49
  async function runBuildAndSubmitAsync({ graphqlClient, analytics, vcsClient, projectDir, flags, actor, getDynamicPrivateProjectConfigAsync, downloadSimBuildAutoConfirm, envOverride, }) {
47
50
  await vcsClient.ensureRepoExistsAsync();
48
51
  await (0, repository_1.ensureRepoIsCleanAsync)(vcsClient, flags.nonInteractive);
@@ -215,7 +218,6 @@ async function runBuildAndSubmitAsync({ graphqlClient, analytics, vcsClient, pro
215
218
  buildProfiles,
216
219
  };
217
220
  }
218
- exports.runBuildAndSubmitAsync = runBuildAndSubmitAsync;
219
221
  async function prepareAndStartBuildAsync({ projectDir, flags, moreBuilds, buildProfile, easJsonCliConfig, actor, graphqlClient, analytics, vcsClient, getDynamicPrivateProjectConfigAsync, customBuildConfigMetadata, env, easJsonAccessor, }) {
220
222
  const buildCtx = await (0, createContext_1.createBuildContextAsync)({
221
223
  buildProfileName: buildProfile.profileName,
@@ -241,6 +243,14 @@ async function prepareAndStartBuildAsync({ projectDir, flags, moreBuilds, buildP
241
243
  whatToTest: flags.whatToTest,
242
244
  env,
243
245
  });
246
+ if (!hasWarnedAboutUsageOverages && !flags.localBuildOptions.localBuildMode) {
247
+ hasWarnedAboutUsageOverages = true;
248
+ log_1.default.newLine();
249
+ await (0, checkForOverages_1.maybeWarnAboutUsageOveragesAsync)({ graphqlClient, accountId: buildCtx.accountId });
250
+ if (!moreBuilds) {
251
+ log_1.default.newLine();
252
+ }
253
+ }
244
254
  if (moreBuilds) {
245
255
  log_1.default.newLine();
246
256
  const appPlatform = (0, AppPlatform_1.toAppPlatform)(buildProfile.platform);
@@ -358,7 +368,6 @@ async function downloadAndRunAsync(build) {
358
368
  const buildPath = await (0, download_1.downloadAndMaybeExtractAppAsync)(build.artifacts.applicationArchiveUrl, build.platform, cachedAppPath);
359
369
  await (0, run_1.runAsync)(buildPath, build.platform);
360
370
  }
361
- exports.downloadAndRunAsync = downloadAndRunAsync;
362
371
  async function maybeDownloadAndRunSimulatorBuildsAsync(builds, flags, autoConfirm) {
363
372
  const simBuilds = builds.filter(filter_1.truthy).filter(utils_1.isRunnableOnSimulatorOrEmulator);
364
373
  if (simBuilds.length > 0 && !flags.autoSubmit && !flags.nonInteractive) {
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.readAppJson = exports.updateAppJsonConfigAsync = void 0;
3
+ exports.updateAppJsonConfigAsync = updateAppJsonConfigAsync;
4
+ exports.readAppJson = readAppJson;
4
5
  const tslib_1 = require("tslib");
5
6
  const ExpoConfig = tslib_1.__importStar(require("@expo/config"));
6
7
  const json_file_1 = tslib_1.__importDefault(require("@expo/json-file"));
@@ -14,7 +15,6 @@ async function updateAppJsonConfigAsync({ projectDir, exp, }, modifyConfig) {
14
15
  await json_file_1.default.writeAsync(paths.staticConfigPath, rawStaticConfig, { json5: false });
15
16
  modifyConfig(exp);
16
17
  }
17
- exports.updateAppJsonConfigAsync = updateAppJsonConfigAsync;
18
18
  // TODO: remove this once @expo/config exports getStaticConfig
19
19
  function readAppJson(appJsonPath) {
20
20
  const config = json_file_1.default.read(appJsonPath, { json5: true });
@@ -23,4 +23,3 @@ function readAppJson(appJsonPath) {
23
23
  }
24
24
  throw new Error(`Failed to read app.json`);
25
25
  }
26
- exports.readAppJson = readAppJson;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.logCredentialsSource = void 0;
3
+ exports.logCredentialsSource = logCredentialsSource;
4
4
  const tslib_1 = require("tslib");
5
5
  const eas_json_1 = require("@expo/eas-json");
6
6
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
@@ -16,4 +16,3 @@ function logCredentialsSource(credentialsSource, platform) {
16
16
  }
17
17
  log_1.default.succeed(message);
18
18
  }
19
- exports.logCredentialsSource = logCredentialsSource;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ensureExpoDevClientInstalledForDevClientBuildsAsync = void 0;
3
+ exports.ensureExpoDevClientInstalledForDevClientBuildsAsync = ensureExpoDevClientInstalledForDevClientBuildsAsync;
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");
@@ -71,7 +71,6 @@ async function ensureExpoDevClientInstalledForDevClientBuildsAsync({ projectDir,
71
71
  }
72
72
  }
73
73
  }
74
- exports.ensureExpoDevClientInstalledForDevClientBuildsAsync = ensureExpoDevClientInstalledForDevClientBuildsAsync;
75
74
  async function isExpoDevClientInstalledAsync(projectDir) {
76
75
  try {
77
76
  (0, resolve_from_1.default)(projectDir, 'expo-dev-client/package.json');
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.formatGraphQLBuild = exports.formatGraphQLBuildArtifacts = void 0;
3
+ exports.formatGraphQLBuildArtifacts = formatGraphQLBuildArtifacts;
4
+ exports.formatGraphQLBuild = formatGraphQLBuild;
4
5
  const tslib_1 = require("tslib");
5
6
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
7
  const url_1 = require("./url");
@@ -39,7 +40,6 @@ function formatGraphQLBuildArtifacts(build) {
39
40
  ];
40
41
  return fields.filter(({ value }) => value !== undefined && value !== null);
41
42
  }
42
- exports.formatGraphQLBuildArtifacts = formatGraphQLBuildArtifacts;
43
43
  function formatGraphQLBuild(build) {
44
44
  const actor = getActorName(build);
45
45
  const fields = [
@@ -152,7 +152,6 @@ function formatGraphQLBuild(build) {
152
152
  const filteredFields = fields.filter(({ value }) => value !== undefined && value !== null);
153
153
  return (0, formatFields_1.default)(filteredFields);
154
154
  }
155
- exports.formatGraphQLBuild = formatGraphQLBuild;
156
155
  const getActorName = (build) => {
157
156
  return build.initiatingActor?.displayName || 'unknown';
158
157
  };
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.printUserError = exports.printDeprecationWarnings = exports.printBuildResults = exports.printLogsUrls = void 0;
3
+ exports.printLogsUrls = printLogsUrls;
4
+ exports.printBuildResults = printBuildResults;
5
+ exports.printDeprecationWarnings = printDeprecationWarnings;
6
+ exports.printUserError = printUserError;
4
7
  const tslib_1 = require("tslib");
5
8
  const assert_1 = tslib_1.__importDefault(require("assert"));
6
9
  const indent_string_1 = tslib_1.__importDefault(require("indent-string"));
@@ -36,7 +39,6 @@ function printLogsUrls(builds) {
36
39
  });
37
40
  }
38
41
  }
39
- exports.printLogsUrls = printLogsUrls;
40
42
  function printBuildResults(builds) {
41
43
  if (builds.length === 1) {
42
44
  const [build] = builds;
@@ -49,7 +51,6 @@ function printBuildResults(builds) {
49
51
  });
50
52
  }
51
53
  }
52
- exports.printBuildResults = printBuildResults;
53
54
  function printBuildResult(build) {
54
55
  if (build.status === generated_1.BuildStatus.Errored) {
55
56
  log_1.default.addNewLineIfNone();
@@ -106,7 +107,6 @@ function printDeprecationWarnings(deprecationInfo) {
106
107
  log_1.default.warn(deprecationInfo);
107
108
  }
108
109
  }
109
- exports.printDeprecationWarnings = printDeprecationWarnings;
110
110
  function printUserError(error, build) {
111
111
  const maybeErrorMessageOverride = maybeGetErrorMessageOverride(error, build);
112
112
  if (maybeErrorMessageOverride) {
@@ -119,7 +119,6 @@ function printUserError(error, build) {
119
119
  }
120
120
  }
121
121
  }
122
- exports.printUserError = printUserError;
123
122
  function maybeGetErrorMessageOverride(error, build) {
124
123
  if (!(error.errorCode in errorCodeToErrorMessageOverride)) {
125
124
  return null;
@@ -1,6 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.reviewAndCommitChangesAsync = exports.assertProjectTarballSizeDoesNotExceedLimit = exports.maybeWarnAboutProjectTarballSize = exports.makeProjectTarballAsync = exports.makeProjectMetadataFileAsync = exports.commitPromptAsync = exports.ensureRepoIsCleanAsync = exports.maybeBailOnRepoStatusAsync = void 0;
3
+ exports.maybeBailOnRepoStatusAsync = maybeBailOnRepoStatusAsync;
4
+ exports.ensureRepoIsCleanAsync = ensureRepoIsCleanAsync;
5
+ exports.commitPromptAsync = commitPromptAsync;
6
+ exports.makeProjectMetadataFileAsync = makeProjectMetadataFileAsync;
7
+ exports.makeProjectTarballAsync = makeProjectTarballAsync;
8
+ exports.maybeWarnAboutProjectTarballSize = maybeWarnAboutProjectTarballSize;
9
+ exports.assertProjectTarballSizeDoesNotExceedLimit = assertProjectTarballSizeDoesNotExceedLimit;
10
+ exports.reviewAndCommitChangesAsync = reviewAndCommitChangesAsync;
4
11
  const tslib_1 = require("tslib");
5
12
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
13
  const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
@@ -31,7 +38,6 @@ async function maybeBailOnRepoStatusAsync(vcsClient, nonInteractive) {
31
38
  throw new Error('Commit all changes. Aborting...');
32
39
  }
33
40
  }
34
- exports.maybeBailOnRepoStatusAsync = maybeBailOnRepoStatusAsync;
35
41
  async function ensureRepoIsCleanAsync(vcsClient, nonInteractive = false) {
36
42
  if (!(await vcsClient.isCommitRequiredAsync())) {
37
43
  return;
@@ -54,7 +60,6 @@ async function ensureRepoIsCleanAsync(vcsClient, nonInteractive = false) {
54
60
  throw new Error('Commit all changes. Aborting...');
55
61
  }
56
62
  }
57
- exports.ensureRepoIsCleanAsync = ensureRepoIsCleanAsync;
58
63
  async function commitPromptAsync(vcsClient, { initialCommitMessage, commitAllFiles, } = {}) {
59
64
  const { message } = await (0, prompts_1.promptAsync)({
60
65
  type: 'text',
@@ -69,7 +74,6 @@ async function commitPromptAsync(vcsClient, { initialCommitMessage, commitAllFil
69
74
  nonInteractive: false,
70
75
  });
71
76
  }
72
- exports.commitPromptAsync = commitPromptAsync;
73
77
  async function makeProjectMetadataFileAsync(archivePath) {
74
78
  await fs_extra_1.default.mkdirp((0, paths_1.getTmpDirectory)());
75
79
  const metadataLocation = path_1.default.join((0, paths_1.getTmpDirectory)(), `${(0, uuid_1.v4)()}-eas-build-metadata.json`);
@@ -87,7 +91,6 @@ async function makeProjectMetadataFileAsync(archivePath) {
87
91
  });
88
92
  return { path: metadataLocation, size: await fs_extra_1.default.stat(metadataLocation).then(stat => stat.size) };
89
93
  }
90
- exports.makeProjectMetadataFileAsync = makeProjectMetadataFileAsync;
91
94
  async function makeProjectTarballAsync(vcsClient) {
92
95
  const spinner = (0, ora_1.ora)('Compressing project files');
93
96
  await fs_extra_1.default.mkdirp((0, paths_1.getTmpDirectory)());
@@ -128,14 +131,12 @@ async function makeProjectTarballAsync(vcsClient) {
128
131
  }
129
132
  return { size, path: tarPath };
130
133
  }
131
- exports.makeProjectTarballAsync = makeProjectTarballAsync;
132
134
  function maybeWarnAboutProjectTarballSize(size) {
133
135
  if (size <= 150 /* MiB */ * 1024 /* KiB */ * 1024 /* B */) {
134
136
  return;
135
137
  }
136
138
  log_1.default.warn(`Your project archive is ${(0, files_1.formatBytes)(size)}. You can reduce its size and the time it takes to upload by excluding files that are unnecessary for the build process in ${chalk_1.default.bold('.easignore')} file. ${(0, log_1.learnMore)('https://expo.fyi/eas-build-archive')}`);
137
139
  }
138
- exports.maybeWarnAboutProjectTarballSize = maybeWarnAboutProjectTarballSize;
139
140
  const MAX_ALLOWED_PROJECT_TARBALL_SIZE = 2 /* GiB */ * 1024 /* MiB */ * 1024 /* KiB */ * 1024; /* B */
140
141
  function assertProjectTarballSizeDoesNotExceedLimit(size) {
141
142
  if (size <= MAX_ALLOWED_PROJECT_TARBALL_SIZE) {
@@ -143,7 +144,6 @@ function assertProjectTarballSizeDoesNotExceedLimit(size) {
143
144
  }
144
145
  throw new Error(`Project archive is too big. Maximum allowed size is ${(0, files_1.formatBytes)(MAX_ALLOWED_PROJECT_TARBALL_SIZE)}.`);
145
146
  }
146
- exports.assertProjectTarballSizeDoesNotExceedLimit = assertProjectTarballSizeDoesNotExceedLimit;
147
147
  var ShouldCommitChanges;
148
148
  (function (ShouldCommitChanges) {
149
149
  ShouldCommitChanges[ShouldCommitChanges["Yes"] = 0] = "Yes";
@@ -193,4 +193,3 @@ async function reviewAndCommitChangesAsync(vcsClient, initialCommitMessage, { no
193
193
  });
194
194
  }
195
195
  }
196
- exports.reviewAndCommitChangesAsync = reviewAndCommitChangesAsync;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveBuildResourceClassAsync = void 0;
3
+ exports.resolveBuildResourceClassAsync = resolveBuildResourceClassAsync;
4
4
  const tslib_1 = require("tslib");
5
5
  const eas_build_job_1 = require("@expo/eas-build-job");
6
6
  const eas_json_1 = require("@expo/eas-json");
@@ -30,7 +30,6 @@ async function resolveBuildResourceClassAsync(profile, platform, resourceClassFl
30
30
  ? resolveIosResourceClass(resourceClassFlag, profileResourceClass)
31
31
  : resolveAndroidResourceClass(selectedResourceClass);
32
32
  }
33
- exports.resolveBuildResourceClassAsync = resolveBuildResourceClassAsync;
34
33
  function resolveAndroidResourceClass(selectedResourceClass) {
35
34
  if (selectedResourceClass && eas_json_1.ResourceClass.M1_MEDIUM === selectedResourceClass) {
36
35
  throw new Error(`Resource class ${selectedResourceClass} is only available for iOS builds`);
@@ -1,6 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getHostingDeploymentsUrl = exports.getProjectGitHubSettingsUrl = exports.getWorkflowRunUrl = exports.getUpdateGroupUrl = exports.getInternalDistributionInstallUrl = exports.getArtifactUrl = exports.getBuildLogsUrl = exports.getProjectDashboardUrl = void 0;
3
+ exports.getProjectDashboardUrl = getProjectDashboardUrl;
4
+ exports.getBuildLogsUrl = getBuildLogsUrl;
5
+ exports.getArtifactUrl = getArtifactUrl;
6
+ exports.getInternalDistributionInstallUrl = getInternalDistributionInstallUrl;
7
+ exports.getUpdateGroupUrl = getUpdateGroupUrl;
8
+ exports.getWorkflowRunUrl = getWorkflowRunUrl;
9
+ exports.getProjectGitHubSettingsUrl = getProjectGitHubSettingsUrl;
10
+ exports.getHostingDeploymentsUrl = getHostingDeploymentsUrl;
4
11
  const tslib_1 = require("tslib");
5
12
  const assert_1 = tslib_1.__importDefault(require("assert"));
6
13
  const api_1 = require("../../api");
@@ -8,7 +15,6 @@ const generated_1 = require("../../graphql/generated");
8
15
  function getProjectDashboardUrl(accountName, projectName) {
9
16
  return new URL(`/accounts/${accountName}/projects/${projectName}`, (0, api_1.getExpoWebsiteBaseUrl)()).toString();
10
17
  }
11
- exports.getProjectDashboardUrl = getProjectDashboardUrl;
12
18
  function getBuildLogsUrl(build, hash) {
13
19
  const { project } = build;
14
20
  const url = project.__typename !== 'App'
@@ -16,11 +22,9 @@ function getBuildLogsUrl(build, hash) {
16
22
  : `/accounts/${project.ownerAccount.name}/projects/${project.slug}/builds/${build.id}${hash ? `#${hash}` : ''}`;
17
23
  return new URL(url, (0, api_1.getExpoWebsiteBaseUrl)()).toString();
18
24
  }
19
- exports.getBuildLogsUrl = getBuildLogsUrl;
20
25
  function getArtifactUrl(artifactId) {
21
26
  return new URL(`/artifacts/${artifactId}`, (0, api_1.getExpoWebsiteBaseUrl)()).toString();
22
27
  }
23
- exports.getArtifactUrl = getArtifactUrl;
24
28
  function getInternalDistributionInstallUrl(build) {
25
29
  if (build.platform === generated_1.AppPlatform.Ios) {
26
30
  return `itms-services://?action=download-manifest;url=${(0, api_1.getExpoApiBaseUrl)()}/v2/projects/${build.project.id}/builds/${build.id}/manifest.plist`;
@@ -28,20 +32,15 @@ function getInternalDistributionInstallUrl(build) {
28
32
  (0, assert_1.default)(build.artifacts?.buildUrl, 'buildUrl is missing');
29
33
  return build.artifacts.buildUrl;
30
34
  }
31
- exports.getInternalDistributionInstallUrl = getInternalDistributionInstallUrl;
32
35
  function getUpdateGroupUrl(accountName, projectName, updateGroupId) {
33
36
  return new URL(`/accounts/${encodeURIComponent(accountName)}/projects/${encodeURIComponent(projectName)}/updates/${encodeURIComponent(updateGroupId)}`, (0, api_1.getExpoWebsiteBaseUrl)()).toString();
34
37
  }
35
- exports.getUpdateGroupUrl = getUpdateGroupUrl;
36
38
  function getWorkflowRunUrl(accountName, projectName, workflowRunId) {
37
39
  return new URL(`/accounts/${encodeURIComponent(accountName)}/projects/${encodeURIComponent(projectName)}/workflows/${workflowRunId}`, (0, api_1.getExpoWebsiteBaseUrl)()).toString();
38
40
  }
39
- exports.getWorkflowRunUrl = getWorkflowRunUrl;
40
41
  function getProjectGitHubSettingsUrl(accountName, projectName) {
41
42
  return new URL(`/accounts/${encodeURIComponent(accountName)}/projects/${encodeURIComponent(projectName)}/github`, (0, api_1.getExpoWebsiteBaseUrl)()).toString();
42
43
  }
43
- exports.getProjectGitHubSettingsUrl = getProjectGitHubSettingsUrl;
44
44
  function getHostingDeploymentsUrl(accountName, projectName) {
45
45
  return new URL(`/accounts/${encodeURIComponent(accountName)}/projects/${encodeURIComponent(projectName)}/hosting/deployments`, (0, api_1.getExpoWebsiteBaseUrl)()).toString();
46
46
  }
47
- exports.getHostingDeploymentsUrl = getHostingDeploymentsUrl;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.bumpAppVersionAsync = exports.ensureStaticConfigExists = void 0;
3
+ exports.ensureStaticConfigExists = ensureStaticConfigExists;
4
+ exports.bumpAppVersionAsync = bumpAppVersionAsync;
4
5
  const tslib_1 = require("tslib");
5
6
  const config_1 = require("@expo/config");
6
7
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
@@ -15,7 +16,6 @@ function ensureStaticConfigExists(projectDir) {
15
16
  throw new Error('autoIncrement option is not supported when using app.config.js');
16
17
  }
17
18
  }
18
- exports.ensureStaticConfigExists = ensureStaticConfigExists;
19
19
  async function bumpAppVersionAsync({ appVersion, projectDir, exp, }) {
20
20
  let bumpedAppVersion;
21
21
  if (semver_1.default.valid(appVersion)) {
@@ -34,4 +34,3 @@ async function bumpAppVersionAsync({ appVersion, projectDir, exp, }) {
34
34
  config.version = bumpedAppVersion;
35
35
  });
36
36
  }
37
- exports.bumpAppVersionAsync = bumpAppVersionAsync;
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validatePNGsForManagedProjectAsync = exports.checkGoogleServicesFileAsync = exports.checkNodeEnvVariable = void 0;
3
+ exports.checkNodeEnvVariable = checkNodeEnvVariable;
4
+ exports.checkGoogleServicesFileAsync = checkGoogleServicesFileAsync;
5
+ exports.validatePNGsForManagedProjectAsync = validatePNGsForManagedProjectAsync;
4
6
  const tslib_1 = require("tslib");
5
7
  const eas_build_job_1 = require("@expo/eas-build-job");
6
8
  const core_1 = require("@oclif/core");
@@ -15,7 +17,6 @@ function checkNodeEnvVariable(ctx) {
15
17
  log_1.default.newLine();
16
18
  }
17
19
  }
18
- exports.checkNodeEnvVariable = checkNodeEnvVariable;
19
20
  async function checkGoogleServicesFileAsync(ctx) {
20
21
  if (ctx.workflow === eas_build_job_1.Workflow.GENERIC || ctx.buildProfile?.env?.GOOGLE_SERVICES_FILE) {
21
22
  return;
@@ -38,7 +39,6 @@ async function checkGoogleServicesFileAsync(ctx) {
38
39
  log_1.default.newLine();
39
40
  }
40
41
  }
41
- exports.checkGoogleServicesFileAsync = checkGoogleServicesFileAsync;
42
42
  function isInsideDirectory(file, directory) {
43
43
  return file.startsWith(directory);
44
44
  }
@@ -61,7 +61,6 @@ async function validatePNGsForManagedProjectAsync(ctx) {
61
61
  // await validateIosPNGsAsync(ctx as CommonContext<Platform.IOS>);
62
62
  // }
63
63
  }
64
- exports.validatePNGsForManagedProjectAsync = validatePNGsForManagedProjectAsync;
65
64
  async function validateAndroidPNGsAsync(ctx) {
66
65
  const pngs = [
67
66
  {