Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
[cli] add skip credentials flag (#1702)
Browse files Browse the repository at this point in the history
* [cli] add skip credentials flag

* Update packages/expo-cli/src/commands/build/ios/IOSBuilder.ts

Co-Authored-By: Dominik Sokal <dominik.sokal@swmansion.com>

Co-authored-by: Dominik Sokal <dominik.sokal@swmansion.com>
  • Loading branch information
quinlanj and dsokal committed Mar 19, 2020
1 parent 393bc72 commit b641445
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/expo-cli/src/commands/build/BaseBuilder.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export type IosOptions = CommonOptions & {
pushId?: string;
pushP8Path?: string;
provisioningProfilePath?: string;
skipCredentialsCheck?: boolean;
};

export type AndroidOptions = CommonOptions & {
Expand Down
1 change: 1 addition & 0 deletions packages/expo-cli/src/commands/build/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export default function(program: Command) {
'--public-url <url>',
'The URL of an externally hosted manifest (for self-hosted apps).'
)
.option('--skip-credentials-check', 'Skip checking credentials.')
.description(
'Build a standalone IPA for your project, signed and ready for submission to the Apple App Store.'
)
Expand Down
4 changes: 4 additions & 0 deletions packages/expo-cli/src/commands/build/ios/IOSBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ See https://docs.expo.io/versions/latest/distribution/building-standalone-apps/#
await this.clearAndRevokeCredentialsIfRequested(context, { experienceName, bundleIdentifier });

try {
if (this.options.skipCredentialsCheck) {
log('Skipping credentials check...');
return;
}
await this.produceCredentials(context, experienceName, bundleIdentifier);
} catch (e) {
log(
Expand Down

0 comments on commit b641445

Please sign in to comment.