-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implement SetupInternalProvisioningProfile #344
implement SetupInternalProvisioningProfile #344
Conversation
Size Change: -2.79 kB (0%) Total Size: 32.8 MB
|
packages/eas-cli/src/credentials/ios/actions/new/SetupInternalProvisioningProfile.ts
Outdated
Show resolved
Hide resolved
return await this.setupAdhocProvisioningProfile(ctx); | ||
} | ||
} else { | ||
if (adhocBuildCredentials && enterpriseBuildCredentials) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's never falsy, it will be either one element list or empty list
'Which credentials would you like to set up?' | ||
); | ||
} else { | ||
return await this.setupAdhocProvisioningProfile(ctx); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing Async
b844396
to
34353ab
Compare
ctx: Context, | ||
accountName: string, | ||
action: ActionType | ||
): Action { | ||
): Action<void> | Action<IosAppBuildCredentialsFragment> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
): Action<void> | Action<IosAppBuildCredentialsFragment> { | |
): Action<unknown> { |
@@ -26,10 +26,13 @@ interface Options { | |||
skipCredentialsCheck?: boolean; | |||
} | |||
|
|||
export class SetupBuildCredentials implements Action { | |||
export class SetupBuildCredentials implements Action<IosAppBuildCredentialsFragment> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SetupBuildCredentials.runAsync should return sth like IosAppBuildCredentialsFragment but field shouldnt be optional
import { SetupAdhocProvisioningProfile } from './SetupAdhocProvisioningProfile'; | ||
import { SetupProvisioningProfile } from './SetupProvisioningProfile'; | ||
|
||
export class SetupInternalProvisioningProfile { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some description would be usefull here, both for what behaviour we implement, but also in what context it will be executed e.g, we assume that "enterpriseProvisioning" is not specified
ee473f3
to
9344d06
Compare
Checklist
Why
enterpriseProvisioning
property ineas.json
.How
SetupInternalProvisioningProfile
- it's run when the user didn't specify theenterpriseProvisioning
property in eas.json.--skip-credentials-check
flag for iOS builds. The flag was necessary because we didn't have proper offline validation of the provisioning profile/distribution certificate. This PR adds the offline dist cert validation and makes it possible to get rid of the flag.Test Plan
Added unit tests.