-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[eas-cli] merge everything from actions/new to actions (#364)
delete unused actions delete old inner class remove uneeded dist cert utils merge dist cert utils remove unused functions of pprofile utils pop out new directory
- Loading branch information
Showing
41 changed files
with
437 additions
and
1,148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...entials/ios/actions/new/AppleTeamUtils.ts → ...credentials/ios/actions/AppleTeamUtils.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 8 additions & 33 deletions
41
packages/eas-cli/src/credentials/ios/actions/CreateDistributionCertificate.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,16 @@ | ||
import assert from 'assert'; | ||
|
||
import Log from '../../../log'; | ||
import { Action, CredentialsManager } from '../../CredentialsManager'; | ||
import { Account } from '../../../user/Account'; | ||
import { Context } from '../../context'; | ||
import { IosDistCredentials } from '../credentials'; | ||
import { displayIosUserCredentials } from '../utils/printCredentials'; | ||
import { AppleDistributionCertificateMutationResult } from '../api/graphql/mutations/AppleDistributionCertificateMutation'; | ||
import { provideOrGenerateDistributionCertificateAsync } from './DistributionCertificateUtils'; | ||
|
||
export class CreateDistributionCertificateStandaloneManager implements Action { | ||
constructor(private accountName: string) {} | ||
|
||
public async runAsync(manager: CredentialsManager, ctx: Context): Promise<void> { | ||
const action = new CreateDistributionCertificate(this.accountName); | ||
await manager.runActionAsync(action); | ||
|
||
Log.newLine(); | ||
displayIosUserCredentials(action.distCredentials); | ||
Log.newLine(); | ||
} | ||
} | ||
|
||
export class CreateDistributionCertificate implements Action { | ||
private _distCredentials?: IosDistCredentials; | ||
|
||
constructor(private accountName: string) {} | ||
|
||
public get distCredentials(): IosDistCredentials { | ||
assert(this._distCredentials, 'distCredentials can be accessed only after runAsync'); | ||
return this._distCredentials; | ||
} | ||
export class CreateDistributionCertificate { | ||
constructor(private account: Account) {} | ||
|
||
public async runAsync(manager: CredentialsManager, ctx: Context): Promise<void> { | ||
const distCert = await provideOrGenerateDistributionCertificateAsync(ctx, this.accountName); | ||
this._distCredentials = await ctx.ios.createDistributionCertificateAsync( | ||
this.accountName, | ||
distCert | ||
); | ||
public async runAsync(ctx: Context): Promise<AppleDistributionCertificateMutationResult> { | ||
const distCert = await provideOrGenerateDistributionCertificateAsync(ctx, this.account.name); | ||
const result = await ctx.newIos.createDistributionCertificateAsync(this.account, distCert); | ||
Log.succeed('Created distribution certificate'); | ||
return result; | ||
} | ||
} |
22 changes: 11 additions & 11 deletions
22
.../actions/new/CreateProvisioningProfile.ts → .../ios/actions/CreateProvisioningProfile.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...redentials/ios/actions/new/DeviceUtils.ts → ...rc/credentials/ios/actions/DeviceUtils.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.