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,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.setPasswordAsync = exports.getPasswordAsync = exports.deletePasswordAsync = exports.EXPO_NO_KEYCHAIN = void 0;
3
+ exports.EXPO_NO_KEYCHAIN = void 0;
4
+ exports.deletePasswordAsync = deletePasswordAsync;
5
+ exports.getPasswordAsync = getPasswordAsync;
6
+ exports.setPasswordAsync = setPasswordAsync;
4
7
  const tslib_1 = require("tslib");
5
8
  const keychain_1 = tslib_1.__importDefault(require("keychain"));
6
9
  const KEYCHAIN_TYPE = 'internet';
@@ -28,7 +31,6 @@ async function deletePasswordAsync({ username, serviceName, }) {
28
31
  });
29
32
  });
30
33
  }
31
- exports.deletePasswordAsync = deletePasswordAsync;
32
34
  async function getPasswordAsync({ username, serviceName, }) {
33
35
  if (!IS_MAC) {
34
36
  return null;
@@ -48,7 +50,6 @@ async function getPasswordAsync({ username, serviceName, }) {
48
50
  });
49
51
  });
50
52
  }
51
- exports.getPasswordAsync = getPasswordAsync;
52
53
  async function setPasswordAsync({ serviceName, username, password, }) {
53
54
  if (!IS_MAC) {
54
55
  return await Promise.resolve(false);
@@ -64,4 +65,3 @@ async function setPasswordAsync({ serviceName, username, password, }) {
64
65
  });
65
66
  });
66
67
  }
67
- exports.setPasswordAsync = setPasswordAsync;
@@ -1,4 +1,3 @@
1
- /// <reference types="@expo/apple-utils/ts-declarations/expo__app-store" />
2
1
  import { DistributionCertificate, ProvisioningProfile, ProvisioningProfileStoreInfo } from './Credentials.types';
3
2
  import { AuthCtx } from './authenticateTypes';
4
3
  import { ApplePlatform } from './constants';
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.revokeProvisioningProfileAsync = exports.createProvisioningProfileAsync = exports.listProvisioningProfilesAsync = exports.useExistingProvisioningProfileAsync = exports.ProfileClass = void 0;
3
+ exports.ProfileClass = void 0;
4
+ exports.useExistingProvisioningProfileAsync = useExistingProvisioningProfileAsync;
5
+ exports.listProvisioningProfilesAsync = listProvisioningProfilesAsync;
6
+ exports.createProvisioningProfileAsync = createProvisioningProfileAsync;
7
+ exports.revokeProvisioningProfileAsync = revokeProvisioningProfileAsync;
4
8
  const apple_utils_1 = require("@expo/apple-utils");
5
9
  const authenticate_1 = require("./authenticate");
6
10
  const bundleId_1 = require("./bundleId");
@@ -118,7 +122,6 @@ async function useExistingProvisioningProfileAsync(authCtx, bundleIdentifier, pr
118
122
  throw error;
119
123
  }
120
124
  }
121
- exports.useExistingProvisioningProfileAsync = useExistingProvisioningProfileAsync;
122
125
  async function listProvisioningProfilesAsync(authCtx, bundleIdentifier, applePlatform, profileClass = ProfileClass.General) {
123
126
  const spinner = (0, ora_1.ora)(`Fetching Apple provisioning profiles`).start();
124
127
  try {
@@ -134,7 +137,6 @@ async function listProvisioningProfilesAsync(authCtx, bundleIdentifier, applePla
134
137
  throw error;
135
138
  }
136
139
  }
137
- exports.listProvisioningProfilesAsync = listProvisioningProfilesAsync;
138
140
  async function createProvisioningProfileAsync(authCtx, bundleIdentifier, distCert, profileName, applePlatform, profileClass = ProfileClass.General) {
139
141
  const spinner = (0, ora_1.ora)(`Creating Apple provisioning profile`).start();
140
142
  try {
@@ -161,7 +163,6 @@ async function createProvisioningProfileAsync(authCtx, bundleIdentifier, distCer
161
163
  throw error;
162
164
  }
163
165
  }
164
- exports.createProvisioningProfileAsync = createProvisioningProfileAsync;
165
166
  async function revokeProvisioningProfileAsync(authCtx, bundleIdentifier, applePlatform, profileClass = ProfileClass.General) {
166
167
  const spinner = (0, ora_1.ora)(`Revoking Apple provisioning profile`).start();
167
168
  try {
@@ -178,4 +179,3 @@ async function revokeProvisioningProfileAsync(authCtx, bundleIdentifier, applePl
178
179
  throw error;
179
180
  }
180
181
  }
181
- exports.revokeProvisioningProfileAsync = revokeProvisioningProfileAsync;
@@ -1,4 +1,3 @@
1
- /// <reference types="@expo/apple-utils/ts-declarations/expo__app-store" />
2
1
  import { ProfileType } from '@expo/apple-utils';
3
2
  import { ProvisioningProfile } from './Credentials.types';
4
3
  import { AuthCtx } from './authenticateTypes';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createOrReuseAdhocProvisioningProfileAsync = void 0;
3
+ exports.createOrReuseAdhocProvisioningProfileAsync = createOrReuseAdhocProvisioningProfileAsync;
4
4
  const apple_utils_1 = require("@expo/apple-utils");
5
5
  const authenticate_1 = require("./authenticate");
6
6
  const bundleId_1 = require("./bundleId");
@@ -190,4 +190,3 @@ async function createOrReuseAdhocProvisioningProfileAsync(authCtx, udids, bundle
190
190
  throw error;
191
191
  }
192
192
  }
193
- exports.createOrReuseAdhocProvisioningProfileAsync = createOrReuseAdhocProvisioningProfileAsync;
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.revokePushKeyAsync = exports.createPushKeyAsync = exports.listPushKeysAsync = exports.APPLE_KEYS_TOO_MANY_GENERATED_ERROR = void 0;
3
+ exports.APPLE_KEYS_TOO_MANY_GENERATED_ERROR = void 0;
4
+ exports.listPushKeysAsync = listPushKeysAsync;
5
+ exports.createPushKeyAsync = createPushKeyAsync;
6
+ exports.revokePushKeyAsync = revokePushKeyAsync;
4
7
  const tslib_1 = require("tslib");
5
8
  const apple_utils_1 = require("@expo/apple-utils");
6
9
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
@@ -31,7 +34,6 @@ async function listPushKeysAsync(userAuthCtx) {
31
34
  throw error;
32
35
  }
33
36
  }
34
- exports.listPushKeysAsync = listPushKeysAsync;
35
37
  /**
36
38
  * Create a new push key on Apple servers.
37
39
  * **Does not support App Store Connect API (CI).**
@@ -60,7 +62,6 @@ async function createPushKeyAsync(userAuthCtx, name = `Expo Push Notifications K
60
62
  throw err;
61
63
  }
62
64
  }
63
- exports.createPushKeyAsync = createPushKeyAsync;
64
65
  /**
65
66
  * Revoke an existing push key on Apple servers.
66
67
  * **Does not support App Store Connect API (CI).**
@@ -79,4 +80,3 @@ async function revokePushKeyAsync(userAuthCtx, ids) {
79
80
  throw error;
80
81
  }
81
82
  }
82
- exports.revokePushKeyAsync = revokePushKeyAsync;
@@ -1,4 +1,3 @@
1
- /// <reference types="@expo/apple-utils/ts-declarations/expo__app-store" />
2
1
  import { Auth } from '@expo/apple-utils';
3
2
  import { AppleTeamType, Team } from './authenticateTypes';
4
3
  import { MinimalAscApiKey } from '../credentials';
@@ -1,6 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deletePasswordAsync = exports.promptPasswordAsync = exports.resolveAppleTeamAsync = exports.resolveAscApiKeyAsync = exports.hasAscEnvVars = exports.resolveUserCredentialsAsync = void 0;
3
+ exports.resolveUserCredentialsAsync = resolveUserCredentialsAsync;
4
+ exports.hasAscEnvVars = hasAscEnvVars;
5
+ exports.resolveAscApiKeyAsync = resolveAscApiKeyAsync;
6
+ exports.resolveAppleTeamAsync = resolveAppleTeamAsync;
7
+ exports.promptPasswordAsync = promptPasswordAsync;
8
+ exports.deletePasswordAsync = deletePasswordAsync;
4
9
  const tslib_1 = require("tslib");
5
10
  const apple_utils_1 = require("@expo/apple-utils");
6
11
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
@@ -23,13 +28,11 @@ async function resolveUserCredentialsAsync(options) {
23
28
  }
24
29
  return credentials;
25
30
  }
26
- exports.resolveUserCredentialsAsync = resolveUserCredentialsAsync;
27
31
  function hasAscEnvVars() {
28
32
  return (!!process.env.EXPO_ASC_API_KEY_PATH ||
29
33
  !!process.env.EXPO_ASC_KEY_ID ||
30
34
  !!process.env.EXPO_ASC_ISSUER_ID);
31
35
  }
32
- exports.hasAscEnvVars = hasAscEnvVars;
33
36
  async function resolveAscApiKeyAsync(ascApiKey) {
34
37
  const passedKeyP8 = await getAscKeyP8FromEnvironmentOrOptionsAsync(ascApiKey);
35
38
  const passedKeyId = await getAscKeyIdFromEnvironmentOrOptionsAsync(ascApiKey);
@@ -40,7 +43,6 @@ async function resolveAscApiKeyAsync(ascApiKey) {
40
43
  issuerId: passedIssuerId,
41
44
  };
42
45
  }
43
- exports.resolveAscApiKeyAsync = resolveAscApiKeyAsync;
44
46
  async function getAscKeyP8FromEnvironmentOrOptionsAsync(ascApiKey) {
45
47
  if (ascApiKey?.keyP8) {
46
48
  return ascApiKey?.keyP8;
@@ -144,7 +146,6 @@ async function resolveAppleTeamAsync(options = {}) {
144
146
  inHouse: passedTeamType === authenticateTypes_1.AppleTeamType.IN_HOUSE,
145
147
  };
146
148
  }
147
- exports.resolveAppleTeamAsync = resolveAppleTeamAsync;
148
149
  function getAppleIdFromEnvironmentOrOptions({ username, password, ...userCredentials }) {
149
150
  const passedAppleId = username || process.env.EXPO_APPLE_ID;
150
151
  // Only resolve the password if the username was provided.
@@ -207,7 +208,6 @@ async function promptPasswordAsync({ username, }) {
207
208
  await cachePasswordAsync({ username, password });
208
209
  return password;
209
210
  }
210
- exports.promptPasswordAsync = promptPasswordAsync;
211
211
  async function getCachedUsernameAsync() {
212
212
  if (Keychain.EXPO_NO_KEYCHAIN) {
213
213
  // Clear last used apple ID.
@@ -235,7 +235,6 @@ async function deletePasswordAsync({ username, }) {
235
235
  }
236
236
  return success;
237
237
  }
238
- exports.deletePasswordAsync = deletePasswordAsync;
239
238
  async function getCachedPasswordAsync({ username, }) {
240
239
  // If the user opts out, delete the password.
241
240
  if (Keychain.EXPO_NO_KEYCHAIN) {
@@ -1,4 +1,3 @@
1
- /// <reference types="@expo/apple-utils/ts-declarations/expo__app-store" />
2
1
  import { UserRole } from '@expo/apple-utils';
3
2
  import { DistributionCertificate, ProvisioningProfile, PushKey } from './appstore/Credentials.types';
4
3
  import { AppleDevice } from '../../graphql/generated';
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.provisioningProfileSchema = exports.pushKeySchema = exports.ascApiKeyIssuerIdSchema = exports.ascApiKeyIdSchema = exports.distributionCertificateSchema = exports.getAppLookupParams = void 0;
3
+ exports.provisioningProfileSchema = exports.pushKeySchema = exports.ascApiKeyIssuerIdSchema = exports.ascApiKeyIdSchema = exports.distributionCertificateSchema = void 0;
4
+ exports.getAppLookupParams = getAppLookupParams;
4
5
  const tslib_1 = require("tslib");
5
6
  const p12Certificate_1 = require("./utils/p12Certificate");
6
7
  const provisioningProfile_1 = require("./utils/provisioningProfile");
@@ -16,7 +17,6 @@ function getAppLookupParams(experienceName, bundleIdentifier) {
16
17
  bundleIdentifier,
17
18
  };
18
19
  }
19
- exports.getAppLookupParams = getAppLookupParams;
20
20
  exports.distributionCertificateSchema = {
21
21
  name: 'Apple Distribution Certificate',
22
22
  questions: [
@@ -1,4 +1,3 @@
1
- /// <reference types="@expo/apple-utils/ts-declarations/expo__app-store" />
2
1
  import { RequestContext } from '@expo/apple-utils';
3
2
  /** Is the request context App Store Connect only with no access to cookies authentication. */
4
3
  export declare function isAppStoreConnectTokenOnlyContext(authContext: RequestContext): boolean;
@@ -1,8 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isAppStoreConnectTokenOnlyContext = void 0;
3
+ exports.isAppStoreConnectTokenOnlyContext = isAppStoreConnectTokenOnlyContext;
4
4
  /** Is the request context App Store Connect only with no access to cookies authentication. */
5
5
  function isAppStoreConnectTokenOnlyContext(authContext) {
6
6
  return !authContext.teamId && !!authContext.token;
7
7
  }
8
- exports.isAppStoreConnectTokenOnlyContext = isAppStoreConnectTokenOnlyContext;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.convertHTMLToASCII = void 0;
3
+ exports.convertHTMLToASCII = convertHTMLToASCII;
4
4
  const tslib_1 = require("tslib");
5
5
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
6
  // @ts-expect-error
@@ -56,4 +56,3 @@ function convertHTMLToASCII({ content, rootUrl, }) {
56
56
  const service = getService(rootUrl);
57
57
  return (0, wrap_ansi_1.default)(service.turndown(content), process.stdout.columns || 80);
58
58
  }
59
- exports.convertHTMLToASCII = convertHTMLToASCII;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { pki } from 'node-forge';
3
2
  export declare function getP12CertFingerprint(p12Buffer: Buffer | string, passwordRaw: string | null): string;
4
3
  export declare function findP12CertSerialNumber(p12Buffer: Buffer | string, passwordRaw: string | null): string;
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getCertData = exports.findP12CertSerialNumber = exports.getP12CertFingerprint = void 0;
3
+ exports.getP12CertFingerprint = getP12CertFingerprint;
4
+ exports.findP12CertSerialNumber = findP12CertSerialNumber;
5
+ exports.getCertData = getCertData;
4
6
  const tslib_1 = require("tslib");
5
7
  const node_forge_1 = tslib_1.__importDefault(require("node-forge"));
6
8
  function getP12CertFingerprint(p12Buffer, passwordRaw) {
@@ -9,12 +11,10 @@ function getP12CertFingerprint(p12Buffer, passwordRaw) {
9
11
  const certDer = node_forge_1.default.asn1.toDer(certAsn1).getBytes();
10
12
  return node_forge_1.default.md.sha1.create().update(certDer).digest().toHex().toUpperCase();
11
13
  }
12
- exports.getP12CertFingerprint = getP12CertFingerprint;
13
14
  function findP12CertSerialNumber(p12Buffer, passwordRaw) {
14
15
  const { serialNumber } = getCertData(p12Buffer, passwordRaw);
15
16
  return serialNumber;
16
17
  }
17
- exports.findP12CertSerialNumber = findP12CertSerialNumber;
18
18
  function getCertData(p12Buffer, passwordRaw) {
19
19
  const certData = getRawCertData(p12Buffer, passwordRaw);
20
20
  return {
@@ -22,7 +22,6 @@ function getCertData(p12Buffer, passwordRaw) {
22
22
  serialNumber: certData.serialNumber.replace(/^0+/, '').toUpperCase(),
23
23
  };
24
24
  }
25
- exports.getCertData = getCertData;
26
25
  function getRawCertData(p12Buffer, passwordRaw) {
27
26
  if (Buffer.isBuffer(p12Buffer)) {
28
27
  p12Buffer = p12Buffer.toString('base64');
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.displayProjectCredentials = exports.displayIosCredentials = exports.displayEmptyIosCredentials = void 0;
3
+ exports.displayEmptyIosCredentials = displayEmptyIosCredentials;
4
+ exports.displayIosCredentials = displayIosCredentials;
5
+ exports.displayProjectCredentials = displayProjectCredentials;
4
6
  const tslib_1 = require("tslib");
5
7
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
8
  const dateformat_1 = tslib_1.__importDefault(require("dateformat"));
@@ -34,7 +36,6 @@ function displayEmptyIosCredentials(appLookupParams) {
34
36
  fields.push({ label: '', value: '' });
35
37
  log_1.default.log((0, formatFields_1.default)(fields, { labelFormat: chalk_1.default.cyan.bold }));
36
38
  }
37
- exports.displayEmptyIosCredentials = displayEmptyIosCredentials;
38
39
  /**
39
40
  * sort a build credentials array in descending order of preference
40
41
  */
@@ -93,7 +94,6 @@ function displayIosCredentials(app, appCredentialsMap, targets) {
93
94
  }
94
95
  log_1.default.log((0, formatFields_1.default)(fields, { labelFormat: chalk_1.default.cyan.bold }));
95
96
  }
96
- exports.displayIosCredentials = displayIosCredentials;
97
97
  function displayProjectCredentials(app, appBuildCredentials, targets) {
98
98
  const projectFullName = `@${app.account.name}/${app.projectName}`;
99
99
  const targetToBundleId = targets.reduce((acc, target) => {
@@ -115,7 +115,6 @@ function displayProjectCredentials(app, appBuildCredentials, targets) {
115
115
  }
116
116
  log_1.default.log((0, formatFields_1.default)(fields, { labelFormat: chalk_1.default.cyan.bold }));
117
117
  }
118
- exports.displayProjectCredentials = displayProjectCredentials;
119
118
  function displayIosAppBuildCredentials(buildCredentials, fields) {
120
119
  fields.push({ label: '', value: '' });
121
120
  fields.push({
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.parse = exports.isEnterpriseUniversalProfile = exports.isAdHocProfile = exports.readProfileName = exports.readAppleTeam = void 0;
3
+ exports.readAppleTeam = readAppleTeam;
4
+ exports.readProfileName = readProfileName;
5
+ exports.isAdHocProfile = isAdHocProfile;
6
+ exports.isEnterpriseUniversalProfile = isEnterpriseUniversalProfile;
7
+ exports.parse = parse;
4
8
  const tslib_1 = require("tslib");
5
9
  const plist_1 = tslib_1.__importDefault(require("@expo/plist"));
6
10
  function readAppleTeam(dataBase64) {
@@ -12,23 +16,19 @@ function readAppleTeam(dataBase64) {
12
16
  }
13
17
  return { teamId, teamName };
14
18
  }
15
- exports.readAppleTeam = readAppleTeam;
16
19
  function readProfileName(dataBase64) {
17
20
  const profilePlist = parse(dataBase64);
18
21
  return profilePlist['Name'];
19
22
  }
20
- exports.readProfileName = readProfileName;
21
23
  function isAdHocProfile(dataBase64) {
22
24
  const profilePlist = parse(dataBase64);
23
25
  const provisionedDevices = profilePlist['ProvisionedDevices'];
24
26
  return Array.isArray(provisionedDevices);
25
27
  }
26
- exports.isAdHocProfile = isAdHocProfile;
27
28
  function isEnterpriseUniversalProfile(dataBase64) {
28
29
  const profilePlist = parse(dataBase64);
29
30
  return !!profilePlist['ProvisionsAllDevices'];
30
31
  }
31
- exports.isEnterpriseUniversalProfile = isEnterpriseUniversalProfile;
32
32
  function parse(dataBase64) {
33
33
  try {
34
34
  const buffer = Buffer.from(dataBase64, 'base64');
@@ -39,4 +39,3 @@ function parse(dataBase64) {
39
39
  throw new Error('Provisioning profile is malformed');
40
40
  }
41
41
  }
42
- exports.parse = parse;
@@ -1,18 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getValidAndTrackedAscApiKeysAsync = exports.isAscApiKeyValidAndTrackedAsync = void 0;
3
+ exports.isAscApiKeyValidAndTrackedAsync = isAscApiKeyValidAndTrackedAsync;
4
+ exports.getValidAndTrackedAscApiKeysAsync = getValidAndTrackedAscApiKeysAsync;
4
5
  async function isAscApiKeyValidAndTrackedAsync(ctx, ascApiKey) {
5
6
  const ascApiKeyInfo = await ctx.appStore.getAscApiKeyAsync(ascApiKey.keyId);
6
7
  return isKeyValid(ascApiKeyInfo);
7
8
  }
8
- exports.isAscApiKeyValidAndTrackedAsync = isAscApiKeyValidAndTrackedAsync;
9
9
  async function getValidAndTrackedAscApiKeysAsync(ctx, ascApiKeys) {
10
10
  const ascApiKeysInfo = await ctx.appStore.listAscApiKeysAsync();
11
11
  const validAscApiKeysInfo = ascApiKeysInfo.filter(keyInfo => isKeyValid(keyInfo));
12
12
  const validKeyIdentifiers = new Set(validAscApiKeysInfo.map(keyInfo => keyInfo.keyId));
13
13
  return ascApiKeys.filter(key => validKeyIdentifiers.has(key.keyIdentifier));
14
14
  }
15
- exports.getValidAndTrackedAscApiKeysAsync = getValidAndTrackedAscApiKeysAsync;
16
15
  function isKeyValid(ascApiKeyInfo) {
17
16
  if (!ascApiKeyInfo) {
18
17
  return false;
@@ -1,10 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateDistributionCertificateAsync = void 0;
3
+ exports.validateDistributionCertificateAsync = validateDistributionCertificateAsync;
4
4
  const CredentialsUtils_1 = require("../appstore/CredentialsUtils");
5
5
  async function validateDistributionCertificateAsync(ctx, distributionCertificate) {
6
6
  const certInfoFromApple = await ctx.appStore.listDistributionCertificatesAsync();
7
7
  const validDistributionCerts = (0, CredentialsUtils_1.filterRevokedDistributionCerts)([distributionCertificate], certInfoFromApple);
8
8
  return validDistributionCerts.length > 0;
9
9
  }
10
- exports.validateDistributionCertificateAsync = validateDistributionCertificateAsync;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateProvisioningProfileAsync = void 0;
3
+ exports.validateProvisioningProfileAsync = validateProvisioningProfileAsync;
4
4
  const tslib_1 = require("tslib");
5
5
  const assert_1 = tslib_1.__importDefault(require("assert"));
6
6
  const crypto_1 = tslib_1.__importDefault(require("crypto"));
@@ -26,7 +26,6 @@ async function validateProvisioningProfileAsync(ctx, target, app, buildCredentia
26
26
  }
27
27
  return await validateProvisioningProfileWithAppleAsync(ctx, target, app, buildCredentials);
28
28
  }
29
- exports.validateProvisioningProfileAsync = validateProvisioningProfileAsync;
30
29
  function validateProvisioningProfileWithoutApple(app, { provisioningProfile, distributionCertificate }) {
31
30
  try {
32
31
  const profilePlist = (0, provisioningProfile_2.parse)((0, nullthrows_1.default)(provisioningProfile?.provisioningProfile));
@@ -1,10 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isPushKeyValidAndTrackedAsync = void 0;
3
+ exports.isPushKeyValidAndTrackedAsync = isPushKeyValidAndTrackedAsync;
4
4
  const CredentialsUtils_1 = require("../appstore/CredentialsUtils");
5
5
  async function isPushKeyValidAndTrackedAsync(ctx, pushKey) {
6
6
  const pushInfoFromApple = await ctx.appStore.listPushKeysAsync();
7
7
  const validPushKeys = await (0, CredentialsUtils_1.filterRevokedAndUntrackedPushKeysAsync)([pushKey], pushInfoFromApple);
8
8
  return validPushKeys.length > 0;
9
9
  }
10
- exports.isPushKeyValidAndTrackedAsync = isPushKeyValidAndTrackedAsync;
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getBuildCredentialsActions = exports.getAscApiKeyActions = exports.getPushKeyActions = exports.credentialsJsonActions = exports.highLevelActions = void 0;
3
+ exports.credentialsJsonActions = exports.highLevelActions = void 0;
4
+ exports.getPushKeyActions = getPushKeyActions;
5
+ exports.getAscApiKeyActions = getAscApiKeyActions;
6
+ exports.getBuildCredentialsActions = getBuildCredentialsActions;
4
7
  const Actions_1 = require("./Actions");
5
8
  exports.highLevelActions = [
6
9
  {
@@ -80,7 +83,6 @@ function getPushKeyActions(ctx) {
80
83
  },
81
84
  ];
82
85
  }
83
- exports.getPushKeyActions = getPushKeyActions;
84
86
  function getAscApiKeyActions(ctx) {
85
87
  return [
86
88
  {
@@ -110,7 +112,6 @@ function getAscApiKeyActions(ctx) {
110
112
  },
111
113
  ];
112
114
  }
113
- exports.getAscApiKeyActions = getAscApiKeyActions;
114
115
  function getBuildCredentialsActions(ctx) {
115
116
  return [
116
117
  {
@@ -147,4 +148,3 @@ function getBuildCredentialsActions(ctx) {
147
148
  },
148
149
  ];
149
150
  }
150
- exports.getBuildCredentialsActions = getBuildCredentialsActions;
@@ -22,7 +22,7 @@ class SelectPlatform {
22
22
  this.flagPlatform = flagPlatform;
23
23
  }
24
24
  async runAsync() {
25
- const platform = await (0, platform_1.selectPlatformAsync)(this.flagPlatform);
25
+ const platform = await (0, platform_1.selectPlatformWithExitOptionAsync)(this.flagPlatform);
26
26
  if (platform === 'ios') {
27
27
  await new ManageIos_1.ManageIos(this, process.cwd()).runAsync();
28
28
  return;
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.shouldAutoGenerateCredentialsAsync = exports.getCredentialsFromUserAsync = exports.askForUserProvidedAsync = void 0;
3
+ exports.askForUserProvidedAsync = askForUserProvidedAsync;
4
+ exports.getCredentialsFromUserAsync = getCredentialsFromUserAsync;
5
+ exports.shouldAutoGenerateCredentialsAsync = shouldAutoGenerateCredentialsAsync;
4
6
  const tslib_1 = require("tslib");
5
7
  const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
6
8
  const path_1 = tslib_1.__importDefault(require("path"));
@@ -28,7 +30,6 @@ async function askForUserProvidedAsync(schema, initialValues = {}) {
28
30
  EXPERT_PROMPT();
29
31
  return await getCredentialsFromUserAsync(schema, initialValues);
30
32
  }
31
- exports.askForUserProvidedAsync = askForUserProvidedAsync;
32
33
  async function getCredentialsFromUserAsync(credentialsSchema, initialValues = {}) {
33
34
  const results = {};
34
35
  for (const question of credentialsSchema.questions) {
@@ -38,7 +39,6 @@ async function getCredentialsFromUserAsync(credentialsSchema, initialValues = {}
38
39
  ? await credentialsSchema.transformResultAsync(results)
39
40
  : results;
40
41
  }
41
- exports.getCredentialsFromUserAsync = getCredentialsFromUserAsync;
42
42
  async function shouldAutoGenerateCredentialsAsync(schema) {
43
43
  const answer = await (0, prompts_1.confirmAsync)({
44
44
  message: schema?.provideMethodQuestion?.question ?? `Generate a new ${schema.name}?`,
@@ -46,7 +46,6 @@ async function shouldAutoGenerateCredentialsAsync(schema) {
46
46
  });
47
47
  return answer;
48
48
  }
49
- exports.shouldAutoGenerateCredentialsAsync = shouldAutoGenerateCredentialsAsync;
50
49
  async function askQuestionAndProcessAnswerAsync(definition, initialValue) {
51
50
  const questionObject = buildQuestionObject(definition, initialValue);
52
51
  const { input } = await (0, prompts_1.promptAsync)(questionObject);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.runCurrentMachineMethodAsync = void 0;
3
+ exports.runCurrentMachineMethodAsync = runCurrentMachineMethodAsync;
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"));
@@ -21,7 +21,6 @@ async function runCurrentMachineMethodAsync(graphqlClient, accountId, appleTeam)
21
21
  log_1.default.log(chalk_1.default.green('Check successful.'));
22
22
  await collectDataAndRegisterDeviceAsync(graphqlClient, { accountId, appleTeam });
23
23
  }
24
- exports.runCurrentMachineMethodAsync = runCurrentMachineMethodAsync;
25
24
  function isMachineAppleSilicon() {
26
25
  return os_1.default.cpus()[0].model.includes('Apple M') && process.platform === 'darwin';
27
26
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="@expo/apple-utils/ts-declarations/expo__app-store" />
2
1
  import { Device } from '@expo/apple-utils';
3
2
  import { ExpoGraphqlClient } from '../../../commandUtils/context/contextUtils/createGraphqlClient';
4
3
  import AppStoreApi from '../../../credentials/ios/appstore/AppStoreApi';
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.formatDeviceLabel = exports.runDeveloperPortalMethodAsync = void 0;
3
+ exports.runDeveloperPortalMethodAsync = runDeveloperPortalMethodAsync;
4
+ exports.formatDeviceLabel = formatDeviceLabel;
4
5
  const tslib_1 = require("tslib");
5
6
  const apple_utils_1 = require("@expo/apple-utils");
6
7
  const AppleDeviceMutation_1 = require("../../../credentials/ios/api/graphql/mutations/AppleDeviceMutation");
@@ -27,7 +28,6 @@ async function runDeveloperPortalMethodAsync(graphqlClient, appStoreApi, account
27
28
  const devicesToImport = await chooseDevicesToImportAsync(unregisteredPortalDevices);
28
29
  await importDevicesAsync(graphqlClient, account.id, appleTeam, devicesToImport);
29
30
  }
30
- exports.runDeveloperPortalMethodAsync = runDeveloperPortalMethodAsync;
31
31
  async function importDevicesAsync(graphqlClient, accountId, appleTeam, devices) {
32
32
  const spinner = (0, ora_1.ora)(`Importing ${devices.length} Apple device${devices.length === 1 ? '' : 's'} to EAS`).start();
33
33
  const deviceChunks = (0, chunk_1.default)(devices, DEVICE_IMPORT_CHUNK_SIZE);
@@ -80,7 +80,6 @@ function formatDeviceLabel(device) {
80
80
  const deviceDetails = formatDeviceDetails(device);
81
81
  return `${device.attributes.name} - ${device.attributes.udid})${deviceDetails !== '' ? ` - ${deviceDetails}` : ''}`;
82
82
  }
83
- exports.formatDeviceLabel = formatDeviceLabel;
84
83
  function formatDeviceDetails(device) {
85
84
  let details = device.attributes.deviceClass;
86
85
  if (device.attributes.model) {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.runInputMethodAsync = void 0;
3
+ exports.runInputMethodAsync = runInputMethodAsync;
4
4
  const tslib_1 = require("tslib");
5
5
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
6
  const utils_1 = require("./utils");
@@ -21,7 +21,6 @@ async function runInputMethodAsync(graphqlClient, accountId, appleTeam) {
21
21
  });
22
22
  }
23
23
  }
24
- exports.runInputMethodAsync = runInputMethodAsync;
25
24
  async function collectDataAndRegisterDeviceAsync(graphqlClient, { accountId, appleTeam, }) {
26
25
  const { udid, deviceClass, name } = await collectDeviceDataAsync(appleTeam);
27
26
  const spinner = (0, ora_1.ora)(`Registering Apple device on EAS`).start();
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.runRegistrationUrlMethodAsync = void 0;
3
+ exports.runRegistrationUrlMethodAsync = runRegistrationUrlMethodAsync;
4
4
  const tslib_1 = require("tslib");
5
5
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
6
  const indent_string_1 = tslib_1.__importDefault(require("indent-string"));
@@ -18,7 +18,6 @@ async function runRegistrationUrlMethodAsync(graphqlClient, accountId, appleTeam
18
18
  log_1.default.log('Open the following link on your iOS devices (or scan the QR code) and follow the instructions to install the development profile:');
19
19
  log_1.default.log(chalk_1.default.green(`${registrationURL}`));
20
20
  }
21
- exports.runRegistrationUrlMethodAsync = runRegistrationUrlMethodAsync;
22
21
  async function generateDeviceRegistrationURLAsync(graphqlClient, accountId, appleTeam) {
23
22
  const appleDeviceRegistrationRequest = await AppleDeviceRegistrationRequestMutation_1.AppleDeviceRegistrationRequestMutation.createAppleDeviceRegistrationRequestAsync(graphqlClient, appleTeam.id, accountId);
24
23
  return formatRegistrationURL(appleDeviceRegistrationRequest.id);
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.printDeviceData = exports.promptForUDIDAsync = exports.promptForNameAsync = exports.promptForDeviceClassAsync = void 0;
3
+ exports.promptForDeviceClassAsync = promptForDeviceClassAsync;
4
+ exports.promptForNameAsync = promptForNameAsync;
5
+ exports.promptForUDIDAsync = promptForUDIDAsync;
6
+ exports.printDeviceData = printDeviceData;
4
7
  const tslib_1 = require("tslib");
5
8
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
9
  const generated_1 = require("../../../graphql/generated");
@@ -25,7 +28,6 @@ async function promptForDeviceClassAsync(initial) {
25
28
  });
26
29
  return deviceClass;
27
30
  }
28
- exports.promptForDeviceClassAsync = promptForDeviceClassAsync;
29
31
  async function promptForNameAsync(initial) {
30
32
  const { name } = await (0, prompts_1.promptAsync)({
31
33
  type: 'text',
@@ -35,7 +37,6 @@ async function promptForNameAsync(initial) {
35
37
  });
36
38
  return name;
37
39
  }
38
- exports.promptForNameAsync = promptForNameAsync;
39
40
  async function promptForUDIDAsync(initial) {
40
41
  const { udid } = await (0, prompts_1.promptAsync)({
41
42
  type: 'text',
@@ -61,7 +62,6 @@ async function promptForUDIDAsync(initial) {
61
62
  });
62
63
  return udid;
63
64
  }
64
- exports.promptForUDIDAsync = promptForUDIDAsync;
65
65
  function printDeviceData(deviceData, appleTeam) {
66
66
  log_1.default.newLine();
67
67
  log_1.default.log(`We are going to register the following device in our database.
@@ -70,4 +70,3 @@ function printDeviceData(deviceData, appleTeam) {
70
70
  log_1.default.log((0, formatDevice_1.formatNewDevice)({ ...deviceData, identifier: deviceData.udid }, appleTeam));
71
71
  log_1.default.newLine();
72
72
  }
73
- exports.printDeviceData = printDeviceData;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createContextAsync = void 0;
3
+ exports.createContextAsync = createContextAsync;
4
4
  async function createContextAsync({ appStore, user, graphqlClient, projectId, }) {
5
5
  return {
6
6
  appStore,
@@ -9,4 +9,3 @@ async function createContextAsync({ appStore, user, graphqlClient, projectId, })
9
9
  projectId: projectId ?? null,
10
10
  };
11
11
  }
12
- exports.createContextAsync = createContextAsync;