eas-cli 10.2.3 → 11.0.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.
- package/README.md +63 -65
- package/build/branch/actions/SelectBranch.d.ts +1 -1
- package/build/branch/actions/SelectBranch.js +2 -2
- package/build/branch/queries.js +3 -1
- package/build/build/android/build.js +1 -1
- package/build/build/android/version.js +1 -1
- package/build/build/build.js +21 -10
- package/build/build/context.d.ts +1 -0
- package/build/build/createContext.d.ts +2 -1
- package/build/build/createContext.js +6 -3
- package/build/build/evaluateConfigWithEnvVarsAsync.d.ts +16 -0
- package/build/build/evaluateConfigWithEnvVarsAsync.js +44 -0
- package/build/build/ios/build.js +4 -4
- package/build/build/local.d.ts +1 -1
- package/build/build/local.js +3 -2
- package/build/build/queries.js +3 -1
- package/build/build/runBuildAndSubmit.d.ts +2 -0
- package/build/build/runBuildAndSubmit.js +14 -7
- package/build/build/utils/printBuildInfo.js +6 -2
- package/build/build/validate.js +2 -2
- package/build/channel/actions/SelectChannel.d.ts +1 -1
- package/build/channel/actions/SelectChannel.js +2 -2
- package/build/channel/queries.js +6 -2
- package/build/commandUtils/EasCommand.js +2 -2
- package/build/commandUtils/context/contextUtils/createGraphqlClient.js +1 -1
- package/build/commandUtils/flags.d.ts +16 -0
- package/build/commandUtils/flags.js +61 -1
- package/build/commandUtils/gating/FeatureGating.js +6 -2
- package/build/commands/analytics.js +1 -1
- package/build/commands/build/index.d.ts +4 -1
- package/build/commands/build/index.js +3 -0
- package/build/commands/build/resign.d.ts +4 -1
- package/build/commands/build/resign.js +12 -3
- package/build/commands/build/version/get.d.ts +1 -0
- package/build/commands/build/version/get.js +9 -2
- package/build/commands/build/version/set.d.ts +1 -0
- package/build/commands/build/version/set.js +11 -1
- package/build/commands/build/version/sync.d.ts +1 -0
- package/build/commands/build/version/sync.js +13 -5
- package/build/commands/config.d.ts +2 -0
- package/build/commands/config.js +10 -3
- package/build/commands/device/delete.js +1 -1
- package/build/commands/device/rename.js +1 -1
- package/build/commands/env/create.d.ts +23 -0
- package/build/commands/env/create.js +169 -0
- package/build/commands/env/delete.d.ts +18 -0
- package/build/commands/env/delete.js +95 -0
- package/build/commands/env/get.d.ts +19 -0
- package/build/commands/env/get.js +100 -0
- package/build/commands/env/link.d.ts +15 -0
- package/build/commands/env/link.js +59 -0
- package/build/commands/env/list.d.ts +18 -0
- package/build/commands/env/list.js +82 -0
- package/build/commands/env/pull.d.ts +15 -0
- package/build/commands/env/pull.js +64 -0
- package/build/commands/env/push.d.ts +17 -0
- package/build/commands/env/push.js +148 -0
- package/build/commands/env/unlink.d.ts +15 -0
- package/build/commands/env/unlink.js +65 -0
- package/build/commands/env/update.d.ts +21 -0
- package/build/commands/env/update.js +135 -0
- package/build/commands/metadata/lint.js +4 -2
- package/build/commands/project/onboarding.js +1 -1
- package/build/commands/update/edit.d.ts +19 -0
- package/build/commands/update/edit.js +102 -0
- package/build/commands/update/index.d.ts +1 -2
- package/build/commands/update/index.js +53 -25
- package/build/commands/update/list.js +6 -3
- package/build/commands/update/roll-back-to-embedded.js +1 -1
- package/build/credentials/android/AndroidCredentialsProvider.d.ts +2 -2
- package/build/credentials/android/actions/AssignFcm.d.ts +1 -1
- package/build/credentials/android/actions/AssignGoogleServiceAccountKeyForFcmV1.d.ts +1 -1
- package/build/credentials/android/actions/AssignGoogleServiceAccountKeyForSubmissions.d.ts +1 -1
- package/build/credentials/android/actions/CreateFcm.d.ts +1 -1
- package/build/credentials/android/actions/CreateGoogleServiceAccountKey.d.ts +1 -1
- package/build/credentials/android/actions/CreateKeystore.d.ts +1 -1
- package/build/credentials/android/actions/DownloadKeystore.d.ts +2 -2
- package/build/credentials/android/actions/RemoveFcm.d.ts +1 -1
- package/build/credentials/android/actions/RemoveGoogleServiceAccountKey.d.ts +2 -2
- package/build/credentials/android/actions/RemoveKeystore.d.ts +1 -1
- package/build/credentials/android/actions/SetUpBuildCredentials.d.ts +1 -1
- package/build/credentials/android/actions/SetUpBuildCredentialsFromCredentialsJson.d.ts +1 -1
- package/build/credentials/android/actions/SetUpGoogleServiceAccountKeyForFcmV1.d.ts +1 -1
- package/build/credentials/android/actions/SetUpGoogleServiceAccountKeyForSubmissions.d.ts +1 -1
- package/build/credentials/android/actions/UseExistingGoogleServiceAccountKey.d.ts +1 -1
- package/build/credentials/android/api/GraphqlClient.js +3 -3
- package/build/credentials/context.d.ts +2 -2
- package/build/credentials/context.js +1 -1
- package/build/credentials/ios/IosCredentialsProvider.d.ts +2 -2
- package/build/credentials/ios/IosCredentialsProvider.js +1 -1
- package/build/credentials/ios/actions/AscApiKeyUtils.js +1 -1
- package/build/credentials/ios/actions/AssignAscApiKey.d.ts +1 -1
- package/build/credentials/ios/actions/AssignPushKey.d.ts +1 -1
- package/build/credentials/ios/actions/ConfigureProvisioningProfile.d.ts +4 -4
- package/build/credentials/ios/actions/CreateAscApiKey.d.ts +1 -1
- package/build/credentials/ios/actions/CreateDistributionCertificate.d.ts +1 -1
- package/build/credentials/ios/actions/CreateProvisioningProfile.d.ts +3 -3
- package/build/credentials/ios/actions/CreatePushKey.d.ts +1 -1
- package/build/credentials/ios/actions/DistributionCertificateUtils.js +5 -5
- package/build/credentials/ios/actions/ProvisioningProfileUtils.js +1 -1
- package/build/credentials/ios/actions/PushKeyUtils.js +2 -2
- package/build/credentials/ios/actions/RemoveAscApiKey.d.ts +2 -2
- package/build/credentials/ios/actions/RemoveDistributionCertificate.d.ts +3 -3
- package/build/credentials/ios/actions/RemoveProvisioningProfile.d.ts +2 -2
- package/build/credentials/ios/actions/RemovePushKey.d.ts +2 -2
- package/build/credentials/ios/actions/SetUpAdhocProvisioningProfile.d.ts +1 -1
- package/build/credentials/ios/actions/SetUpAdhocProvisioningProfile.js +1 -1
- package/build/credentials/ios/actions/SetUpAscApiKey.d.ts +2 -2
- package/build/credentials/ios/actions/SetUpBuildCredentials.d.ts +1 -1
- package/build/credentials/ios/actions/SetUpBuildCredentialsFromCredentialsJson.d.ts +3 -3
- package/build/credentials/ios/actions/SetUpDistributionCertificate.d.ts +2 -2
- package/build/credentials/ios/actions/SetUpDistributionCertificate.js +1 -1
- package/build/credentials/ios/actions/SetUpInternalProvisioningProfile.d.ts +1 -1
- package/build/credentials/ios/actions/SetUpProvisioningProfile.d.ts +3 -3
- package/build/credentials/ios/actions/SetUpProvisioningProfile.js +1 -1
- package/build/credentials/ios/actions/SetUpPushKey.d.ts +1 -1
- package/build/credentials/ios/actions/SetUpTargetBuildCredentials.d.ts +1 -1
- package/build/credentials/ios/actions/SetUpTargetBuildCredentialsFromCredentialsJson.d.ts +3 -3
- package/build/credentials/ios/actions/UpdateCredentialsJson.d.ts +3 -3
- package/build/credentials/ios/api/GraphqlClient.js +4 -4
- package/build/credentials/ios/appstore/AppStoreApi.js +4 -4
- package/build/credentials/ios/appstore/authenticate.js +1 -1
- package/build/credentials/ios/appstore/bundleId.js +1 -1
- package/build/credentials/ios/appstore/bundleIdCapabilities.js +1 -1
- package/build/credentials/ios/appstore/ensureAppExists.js +1 -1
- package/build/credentials/ios/appstore/keychain.js +8 -6
- package/build/credentials/ios/appstore/provisioningProfile.js +1 -1
- package/build/credentials/ios/appstore/pushKey.js +1 -1
- package/build/credentials/ios/appstore/resolveCredentials.js +2 -2
- package/build/credentials/ios/credentials.js +1 -1
- package/build/credentials/ios/utils/convertHTMLToASCII.js +1 -1
- package/build/credentials/ios/validators/validateProvisioningProfile.js +2 -4
- package/build/credentials/manager/CheckBuildProfileFlagAgainstEasJson.d.ts +3 -3
- package/build/credentials/manager/CreateAndroidBuildCredentials.d.ts +1 -1
- package/build/credentials/manager/ManageAndroid.js +2 -1
- package/build/credentials/manager/ManageIos.js +3 -2
- package/build/credentials/manager/SelectAndroidBuildCredentials.d.ts +2 -2
- package/build/credentials/manager/SelectBuildProfileFromEasJson.d.ts +2 -2
- package/build/credentials/manager/SelectIosDistributionTypeGraphqlFromBuildProfile.d.ts +1 -1
- package/build/credentials/manager/SelectIosDistributionTypeGraphqlFromBuildProfile.js +1 -1
- package/build/credentials/manager/SelectPlatform.js +3 -2
- package/build/credentials/manager/SetDefaultAndroidKeystore.d.ts +1 -1
- package/build/credentials/manager/SetUpAndroidBuildCredentials.d.ts +1 -1
- package/build/credentials/manager/SetUpBuildCredentialsCommandAction.js +3 -2
- package/build/credentials/manager/SetUpIosBuildCredentials.d.ts +1 -1
- package/build/devices/actions/create/action.d.ts +4 -4
- package/build/devices/actions/create/registrationUrlMethod.js +3 -1
- package/build/devices/manager.d.ts +4 -4
- package/build/devices/queries.js +3 -1
- package/build/easMultiselect.js +6 -2
- package/build/graphql/generated.d.ts +874 -62
- package/build/graphql/generated.js +92 -2
- package/build/graphql/mutations/EnvironmentVariableMutation.d.ts +39 -0
- package/build/graphql/mutations/EnvironmentVariableMutation.js +133 -0
- package/build/graphql/mutations/PublishMutation.d.ts +1 -0
- package/build/graphql/mutations/PublishMutation.js +16 -0
- package/build/graphql/queries/BranchQuery.d.ts +7 -1
- package/build/graphql/queries/BranchQuery.js +42 -0
- package/build/graphql/queries/EnvironmentVariablesQuery.d.ts +22 -0
- package/build/graphql/queries/EnvironmentVariablesQuery.js +106 -0
- package/build/graphql/types/EnvironmentVariable.d.ts +1 -0
- package/build/graphql/types/EnvironmentVariable.js +16 -0
- package/build/graphql/types/Update.js +4 -0
- package/build/metadata/apple/config/reader.js +1 -1
- package/build/metadata/apple/tasks/age-rating.js +1 -1
- package/build/metadata/apple/tasks/app-review-detail.js +2 -1
- package/build/metadata/apple/tasks/app-version.d.ts +1 -1
- package/build/metadata/config/resolve.js +2 -1
- package/build/metadata/errors.js +2 -1
- package/build/metadata/utils/log.js +1 -1
- package/build/metadata/utils/retry.js +1 -1
- package/build/onboarding/runCommand.js +1 -1
- package/build/ora.js +12 -4
- package/build/project/android/applicationId.js +1 -1
- package/build/project/applicationIdentifier.d.ts +3 -2
- package/build/project/applicationIdentifier.js +2 -2
- package/build/project/expoConfig.js +2 -2
- package/build/project/ios/entitlements.js +1 -1
- package/build/project/publish.d.ts +31 -18
- package/build/project/publish.js +61 -37
- package/build/project/resolveRuntimeVersionAsync.d.ts +4 -1
- package/build/project/resolveRuntimeVersionAsync.js +9 -3
- package/build/rollout/actions/CreateRollout.d.ts +2 -2
- package/build/rollout/actions/EditRollout.d.ts +2 -2
- package/build/rollout/actions/EndRollout.d.ts +2 -2
- package/build/rollout/actions/ManageRollout.d.ts +2 -2
- package/build/rollout/actions/NonInteractiveRollout.d.ts +1 -1
- package/build/rollout/actions/RolloutMainMenu.d.ts +1 -1
- package/build/rollout/actions/SelectRuntime.d.ts +3 -3
- package/build/run/android/adb.js +1 -1
- package/build/run/ios/simctl.js +1 -1
- package/build/run/ios/systemRequirements.js +1 -1
- package/build/submit/ArchiveSource.js +15 -15
- package/build/submit/BaseSubmitter.js +2 -2
- package/build/submit/submit.js +1 -1
- package/build/update/android/UpdatesModule.js +1 -1
- package/build/update/configure.d.ts +1 -1
- package/build/update/queries.js +8 -3
- package/build/update/republish.js +2 -1
- package/build/update/utils.d.ts +1 -0
- package/build/update/utils.js +7 -0
- package/build/user/expoSsoLauncher.js +1 -1
- package/build/utils/download.js +2 -2
- package/build/utils/filterAsync.js +1 -1
- package/build/utils/formatVariable.d.ts +2 -0
- package/build/utils/formatVariable.js +16 -0
- package/build/utils/image.js +2 -2
- package/build/utils/progress.js +1 -1
- package/build/utils/promise.js +1 -1
- package/build/utils/prompts.d.ts +9 -0
- package/build/utils/prompts.js +68 -0
- package/build/utils/queries.js +2 -2
- package/build/vcs/clients/git.d.ts +1 -1
- package/build/vcs/local.d.ts +1 -1
- package/oclif.manifest.json +627 -22
- package/package.json +15 -15
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AccountFragment, AndroidKeystoreFragment } from '../../../graphql/generated';
|
|
2
2
|
import { CredentialsContext } from '../../context';
|
|
3
3
|
export declare class CreateKeystore {
|
|
4
|
-
private account;
|
|
4
|
+
private readonly account;
|
|
5
5
|
constructor(account: AccountFragment);
|
|
6
6
|
runAsync(ctx: CredentialsContext): Promise<AndroidKeystoreFragment>;
|
|
7
7
|
private provideOrGenerateAsync;
|
|
@@ -7,12 +7,12 @@ interface DownloadKeystoreOptions {
|
|
|
7
7
|
outputPath?: string;
|
|
8
8
|
}
|
|
9
9
|
export declare class DownloadKeystore {
|
|
10
|
-
private options;
|
|
10
|
+
private readonly options;
|
|
11
11
|
constructor(options: DownloadKeystoreOptions);
|
|
12
12
|
runAsync(ctx: CredentialsContext, buildCredentials: AndroidAppBuildCredentialsFragment): Promise<void>;
|
|
13
13
|
}
|
|
14
14
|
export declare class BackupKeystore {
|
|
15
|
-
private app;
|
|
15
|
+
private readonly app;
|
|
16
16
|
constructor(app: AppLookupParams);
|
|
17
17
|
runAsync(ctx: CredentialsContext, buildCredentials: AndroidAppBuildCredentialsFragment): Promise<void>;
|
|
18
18
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CredentialsContext } from '../../context';
|
|
2
2
|
import { AppLookupParams } from '../api/GraphqlClient';
|
|
3
3
|
export declare class RemoveFcm {
|
|
4
|
-
private app;
|
|
4
|
+
private readonly app;
|
|
5
5
|
constructor(app: AppLookupParams);
|
|
6
6
|
runAsync(ctx: CredentialsContext): Promise<void>;
|
|
7
7
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { AccountFragment, GoogleServiceAccountKeyFragment } from '../../../graphql/generated';
|
|
2
2
|
import { CredentialsContext } from '../../context';
|
|
3
3
|
export declare class SelectAndRemoveGoogleServiceAccountKey {
|
|
4
|
-
private account;
|
|
4
|
+
private readonly account;
|
|
5
5
|
constructor(account: AccountFragment);
|
|
6
6
|
runAsync(ctx: CredentialsContext): Promise<void>;
|
|
7
7
|
}
|
|
8
8
|
export declare class RemoveGoogleServiceAccountKey {
|
|
9
|
-
private googleServiceAccountKey;
|
|
9
|
+
private readonly googleServiceAccountKey;
|
|
10
10
|
constructor(googleServiceAccountKey: GoogleServiceAccountKeyFragment);
|
|
11
11
|
runAsync(ctx: CredentialsContext): Promise<void>;
|
|
12
12
|
}
|
|
@@ -2,7 +2,7 @@ import { AndroidAppBuildCredentialsFragment } from '../../../graphql/generated';
|
|
|
2
2
|
import { CredentialsContext } from '../../context';
|
|
3
3
|
import { AppLookupParams } from '../api/GraphqlClient';
|
|
4
4
|
export declare class RemoveKeystore {
|
|
5
|
-
private app;
|
|
5
|
+
private readonly app;
|
|
6
6
|
constructor(app: AppLookupParams);
|
|
7
7
|
runAsync(ctx: CredentialsContext, buildCredentials: AndroidAppBuildCredentialsFragment): Promise<void>;
|
|
8
8
|
displayWarning(): void;
|
|
@@ -10,7 +10,7 @@ interface Options {
|
|
|
10
10
|
* @name: sets up build credentials for the specified configuration. If no name is specified, the default configuration is setup
|
|
11
11
|
*/
|
|
12
12
|
export declare class SetUpBuildCredentials {
|
|
13
|
-
private options;
|
|
13
|
+
private readonly options;
|
|
14
14
|
constructor(options: Options);
|
|
15
15
|
runAsync(ctx: CredentialsContext): Promise<AndroidAppBuildCredentialsFragment>;
|
|
16
16
|
assignBuildCredentialsAsync({ ctx, app, name, keystore, }: {
|
|
@@ -2,7 +2,7 @@ import { AndroidAppBuildCredentialsFragment } from '../../../graphql/generated';
|
|
|
2
2
|
import { CredentialsContext } from '../../context';
|
|
3
3
|
import { AppLookupParams } from '../api/GraphqlClient';
|
|
4
4
|
export declare class SetUpBuildCredentialsFromCredentialsJson {
|
|
5
|
-
private app;
|
|
5
|
+
private readonly app;
|
|
6
6
|
constructor(app: AppLookupParams);
|
|
7
7
|
runAsync(ctx: CredentialsContext): Promise<AndroidAppBuildCredentialsFragment | null>;
|
|
8
8
|
}
|
|
@@ -2,7 +2,7 @@ import { CommonAndroidAppCredentialsFragment } from '../../../graphql/generated'
|
|
|
2
2
|
import { CredentialsContext } from '../../context';
|
|
3
3
|
import { AppLookupParams } from '../api/GraphqlClient';
|
|
4
4
|
export declare class SetUpGoogleServiceAccountKeyForFcmV1 {
|
|
5
|
-
private app;
|
|
5
|
+
private readonly app;
|
|
6
6
|
constructor(app: AppLookupParams);
|
|
7
7
|
runAsync(ctx: CredentialsContext): Promise<CommonAndroidAppCredentialsFragment>;
|
|
8
8
|
private isGoogleServiceAccountKeySetupAsync;
|
|
@@ -2,7 +2,7 @@ import { CommonAndroidAppCredentialsFragment } from '../../../graphql/generated'
|
|
|
2
2
|
import { CredentialsContext } from '../../context';
|
|
3
3
|
import { AppLookupParams } from '../api/GraphqlClient';
|
|
4
4
|
export declare class SetUpGoogleServiceAccountKeyForSubmissions {
|
|
5
|
-
private app;
|
|
5
|
+
private readonly app;
|
|
6
6
|
constructor(app: AppLookupParams);
|
|
7
7
|
runAsync(ctx: CredentialsContext): Promise<CommonAndroidAppCredentialsFragment>;
|
|
8
8
|
private isGoogleServiceAccountKeySetupAsync;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AccountFragment, GoogleServiceAccountKeyFragment } from '../../../graphql/generated';
|
|
2
2
|
import { CredentialsContext } from '../../context';
|
|
3
3
|
export declare class UseExistingGoogleServiceAccountKey {
|
|
4
|
-
private account;
|
|
4
|
+
private readonly account;
|
|
5
5
|
constructor(account: AccountFragment);
|
|
6
6
|
runAsync(ctx: CredentialsContext): Promise<GoogleServiceAccountKeyFragment | null>;
|
|
7
7
|
}
|
|
@@ -120,7 +120,7 @@ async function createKeystoreAsync(graphqlClient, account, keystore) {
|
|
|
120
120
|
}
|
|
121
121
|
exports.createKeystoreAsync = createKeystoreAsync;
|
|
122
122
|
async function deleteKeystoreAsync(graphqlClient, keystore) {
|
|
123
|
-
|
|
123
|
+
await AndroidKeystoreMutation_1.AndroidKeystoreMutation.deleteAndroidKeystoreAsync(graphqlClient, keystore.id);
|
|
124
124
|
}
|
|
125
125
|
exports.deleteKeystoreAsync = deleteKeystoreAsync;
|
|
126
126
|
async function createFcmAsync(graphqlClient, account, fcmApiKey, version) {
|
|
@@ -128,7 +128,7 @@ async function createFcmAsync(graphqlClient, account, fcmApiKey, version) {
|
|
|
128
128
|
}
|
|
129
129
|
exports.createFcmAsync = createFcmAsync;
|
|
130
130
|
async function deleteFcmAsync(graphqlClient, fcm) {
|
|
131
|
-
|
|
131
|
+
await AndroidFcmMutation_1.AndroidFcmMutation.deleteAndroidFcmAsync(graphqlClient, fcm.id);
|
|
132
132
|
}
|
|
133
133
|
exports.deleteFcmAsync = deleteFcmAsync;
|
|
134
134
|
async function createGoogleServiceAccountKeyAsync(graphqlClient, account, jsonKey) {
|
|
@@ -136,7 +136,7 @@ async function createGoogleServiceAccountKeyAsync(graphqlClient, account, jsonKe
|
|
|
136
136
|
}
|
|
137
137
|
exports.createGoogleServiceAccountKeyAsync = createGoogleServiceAccountKeyAsync;
|
|
138
138
|
async function deleteGoogleServiceAccountKeyAsync(graphqlClient, googleServiceAccountKey) {
|
|
139
|
-
|
|
139
|
+
await GoogleServiceAccountKeyMutation_1.GoogleServiceAccountKeyMutation.deleteGoogleServiceAccountKeyAsync(graphqlClient, googleServiceAccountKey.id);
|
|
140
140
|
}
|
|
141
141
|
exports.deleteGoogleServiceAccountKeyAsync = deleteGoogleServiceAccountKeyAsync;
|
|
142
142
|
async function getGoogleServiceAccountKeysForAccountAsync(graphqlClient, account) {
|
|
@@ -13,7 +13,7 @@ export type CredentialsContextProjectInfo = {
|
|
|
13
13
|
projectId: string;
|
|
14
14
|
};
|
|
15
15
|
export declare class CredentialsContext {
|
|
16
|
-
private options;
|
|
16
|
+
private readonly options;
|
|
17
17
|
readonly android: typeof AndroidGraphqlClient;
|
|
18
18
|
readonly appStore: AppStoreApi;
|
|
19
19
|
readonly ios: typeof IosGraphqlClient;
|
|
@@ -26,7 +26,7 @@ export declare class CredentialsContext {
|
|
|
26
26
|
readonly vcsClient: Client;
|
|
27
27
|
readonly easJsonCliConfig?: EasJson['cli'];
|
|
28
28
|
private shouldAskAuthenticateAppStore;
|
|
29
|
-
private projectInfo;
|
|
29
|
+
private readonly projectInfo;
|
|
30
30
|
constructor(options: {
|
|
31
31
|
projectInfo: CredentialsContextProjectInfo | null;
|
|
32
32
|
easJsonCliConfig?: EasJson['cli'];
|
|
@@ -47,7 +47,7 @@ class CredentialsContext {
|
|
|
47
47
|
(0, expoConfig_1.getPrivateExpoConfig)(this.options.projectDir);
|
|
48
48
|
}
|
|
49
49
|
async bestEffortAppStoreAuthenticateAsync() {
|
|
50
|
-
if (this.appStore.authCtx || !this.shouldAskAuthenticateAppStore) {
|
|
50
|
+
if (!!this.appStore.authCtx || !this.shouldAskAuthenticateAppStore) {
|
|
51
51
|
// skip prompts if already have apple ctx or already asked about it
|
|
52
52
|
return;
|
|
53
53
|
}
|
|
@@ -9,8 +9,8 @@ interface Options {
|
|
|
9
9
|
enterpriseProvisioning?: IosEnterpriseProvisioning;
|
|
10
10
|
}
|
|
11
11
|
export default class IosCredentialsProvider {
|
|
12
|
-
private ctx;
|
|
13
|
-
private options;
|
|
12
|
+
private readonly ctx;
|
|
13
|
+
private readonly options;
|
|
14
14
|
readonly platform = Platform.IOS;
|
|
15
15
|
constructor(ctx: CredentialsContext, options: Options);
|
|
16
16
|
getCredentialsAsync(src: CredentialsSource.LOCAL | CredentialsSource.REMOTE): Promise<IosCredentials>;
|
|
@@ -74,7 +74,7 @@ class IosCredentialsProvider {
|
|
|
74
74
|
return null;
|
|
75
75
|
}
|
|
76
76
|
else if (ctx.easJsonCliConfig?.promptToConfigurePushNotifications === undefined &&
|
|
77
|
-
!(
|
|
77
|
+
!(0, projectUtils_1.isExpoNotificationsInstalled)(ctx.projectDir)) {
|
|
78
78
|
return null;
|
|
79
79
|
}
|
|
80
80
|
const setupOption = await (0, prompts_1.selectAsync)(`Would you like to set up Push Notifications for your project?`, [
|
|
@@ -149,7 +149,7 @@ async function selectAscApiKeysFromAccountAsync(ctx, account, { filterDifferentA
|
|
|
149
149
|
}
|
|
150
150
|
return null;
|
|
151
151
|
}
|
|
152
|
-
return selectAscApiKeysAsync(ascApiKeysForAccount);
|
|
152
|
+
return await selectAscApiKeysAsync(ascApiKeysForAccount);
|
|
153
153
|
}
|
|
154
154
|
exports.selectAscApiKeysFromAccountAsync = selectAscApiKeysFromAccountAsync;
|
|
155
155
|
async function selectAscApiKeysAsync(ascApiKeys) {
|
|
@@ -3,7 +3,7 @@ import { AppStoreConnectApiKeyFragment, CommonIosAppCredentialsFragment } from '
|
|
|
3
3
|
import { CredentialsContext } from '../../context';
|
|
4
4
|
import { AppLookupParams } from '../api/graphql/types/AppLookupParams';
|
|
5
5
|
export declare class AssignAscApiKey {
|
|
6
|
-
private app;
|
|
6
|
+
private readonly app;
|
|
7
7
|
constructor(app: AppLookupParams);
|
|
8
8
|
runAsync(ctx: CredentialsContext, ascApiKey: AppStoreConnectApiKeyFragment, purpose: AppStoreApiKeyPurpose): Promise<CommonIosAppCredentialsFragment>;
|
|
9
9
|
}
|
|
@@ -2,7 +2,7 @@ import { ApplePushKeyFragment, CommonIosAppCredentialsFragment } from '../../../
|
|
|
2
2
|
import { CredentialsContext } from '../../context';
|
|
3
3
|
import { AppLookupParams } from '../api/graphql/types/AppLookupParams';
|
|
4
4
|
export declare class AssignPushKey {
|
|
5
|
-
private app;
|
|
5
|
+
private readonly app;
|
|
6
6
|
constructor(app: AppLookupParams);
|
|
7
7
|
runAsync(ctx: CredentialsContext, pushKey: ApplePushKeyFragment): Promise<CommonIosAppCredentialsFragment>;
|
|
8
8
|
}
|
|
@@ -4,10 +4,10 @@ import { AppleProvisioningProfileMutationResult } from '../api/graphql/mutations
|
|
|
4
4
|
import { AppLookupParams } from '../api/graphql/types/AppLookupParams';
|
|
5
5
|
import { Target } from '../types';
|
|
6
6
|
export declare class ConfigureProvisioningProfile {
|
|
7
|
-
private app;
|
|
8
|
-
private target;
|
|
9
|
-
private distributionCertificate;
|
|
10
|
-
private originalProvisioningProfile;
|
|
7
|
+
private readonly app;
|
|
8
|
+
private readonly target;
|
|
9
|
+
private readonly distributionCertificate;
|
|
10
|
+
private readonly originalProvisioningProfile;
|
|
11
11
|
constructor(app: AppLookupParams, target: Target, distributionCertificate: AppleDistributionCertificateFragment, originalProvisioningProfile: AppleProvisioningProfileFragment);
|
|
12
12
|
runAsync(ctx: CredentialsContext): Promise<AppleProvisioningProfileMutationResult | null>;
|
|
13
13
|
private configureAndUpdateAsync;
|
|
@@ -2,7 +2,7 @@ import { AppStoreApiKeyPurpose } from './AscApiKeyUtils';
|
|
|
2
2
|
import { AccountFragment, AppStoreConnectApiKeyFragment } from '../../../graphql/generated';
|
|
3
3
|
import { CredentialsContext } from '../../context';
|
|
4
4
|
export declare class CreateAscApiKey {
|
|
5
|
-
private account;
|
|
5
|
+
private readonly account;
|
|
6
6
|
constructor(account: AccountFragment);
|
|
7
7
|
runAsync(ctx: CredentialsContext, purpose: AppStoreApiKeyPurpose): Promise<AppStoreConnectApiKeyFragment>;
|
|
8
8
|
}
|
|
@@ -2,7 +2,7 @@ import { AccountFragment } from '../../../graphql/generated';
|
|
|
2
2
|
import { CredentialsContext } from '../../context';
|
|
3
3
|
import { AppleDistributionCertificateMutationResult } from '../api/graphql/mutations/AppleDistributionCertificateMutation';
|
|
4
4
|
export declare class CreateDistributionCertificate {
|
|
5
|
-
private account;
|
|
5
|
+
private readonly account;
|
|
6
6
|
constructor(account: AccountFragment);
|
|
7
7
|
runAsync(ctx: CredentialsContext): Promise<AppleDistributionCertificateMutationResult>;
|
|
8
8
|
}
|
|
@@ -4,9 +4,9 @@ import { AppleProvisioningProfileMutationResult } from '../api/graphql/mutations
|
|
|
4
4
|
import { AppLookupParams } from '../api/graphql/types/AppLookupParams';
|
|
5
5
|
import { Target } from '../types';
|
|
6
6
|
export declare class CreateProvisioningProfile {
|
|
7
|
-
private app;
|
|
8
|
-
private target;
|
|
9
|
-
private distributionCertificate;
|
|
7
|
+
private readonly app;
|
|
8
|
+
private readonly target;
|
|
9
|
+
private readonly distributionCertificate;
|
|
10
10
|
constructor(app: AppLookupParams, target: Target, distributionCertificate: AppleDistributionCertificateFragment);
|
|
11
11
|
runAsync(ctx: CredentialsContext): Promise<AppleProvisioningProfileMutationResult>;
|
|
12
12
|
private maybeGetUserProvidedAsync;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AccountFragment, ApplePushKeyFragment } from '../../../graphql/generated';
|
|
2
2
|
import { CredentialsContext } from '../../context';
|
|
3
3
|
export declare class CreatePushKey {
|
|
4
|
-
private account;
|
|
4
|
+
private readonly account;
|
|
5
5
|
constructor(account: AccountFragment);
|
|
6
6
|
runAsync(ctx: CredentialsContext): Promise<ApplePushKeyFragment>;
|
|
7
7
|
}
|
|
@@ -65,12 +65,12 @@ async function selectDistributionCertificateWithDependenciesAsync(ctx, account)
|
|
|
65
65
|
return null;
|
|
66
66
|
}
|
|
67
67
|
if (!ctx.appStore.authCtx) {
|
|
68
|
-
return selectDistributionCertificateAsync(distCertsForAccount);
|
|
68
|
+
return await selectDistributionCertificateAsync(distCertsForAccount);
|
|
69
69
|
}
|
|
70
70
|
// get valid certs on the developer portal
|
|
71
71
|
const certInfoFromApple = await ctx.appStore.listDistributionCertificatesAsync();
|
|
72
|
-
const validDistCerts =
|
|
73
|
-
return selectDistributionCertificateAsync(distCertsForAccount, validDistCerts);
|
|
72
|
+
const validDistCerts = (0, CredentialsUtils_1.filterRevokedDistributionCertsFromEasServers)(distCertsForAccount, certInfoFromApple);
|
|
73
|
+
return await selectDistributionCertificateAsync(distCertsForAccount, validDistCerts);
|
|
74
74
|
}
|
|
75
75
|
exports.selectDistributionCertificateWithDependenciesAsync = selectDistributionCertificateWithDependenciesAsync;
|
|
76
76
|
/**
|
|
@@ -83,7 +83,7 @@ async function selectValidDistributionCertificateAsync(ctx, appLookupParams) {
|
|
|
83
83
|
return null;
|
|
84
84
|
}
|
|
85
85
|
if (!ctx.appStore.authCtx) {
|
|
86
|
-
return selectDistributionCertificateAsync(distCertsForAccount);
|
|
86
|
+
return await selectDistributionCertificateAsync(distCertsForAccount);
|
|
87
87
|
}
|
|
88
88
|
// filter by apple team
|
|
89
89
|
(0, assert_1.default)(ctx.appStore.authCtx, 'authentication to the Apple App Store is required');
|
|
@@ -95,7 +95,7 @@ async function selectValidDistributionCertificateAsync(ctx, appLookupParams) {
|
|
|
95
95
|
const certInfoFromApple = await ctx.appStore.listDistributionCertificatesAsync();
|
|
96
96
|
const validDistCerts = (0, CredentialsUtils_1.filterRevokedDistributionCertsFromEasServers)(distCertsForAppleTeam, certInfoFromApple);
|
|
97
97
|
log_1.default.log(`${validDistCerts.length}/${distCertsForAccount.length} Distribution Certificates are currently valid for Apple Team ${ctx.appStore.authCtx?.team.id}.`);
|
|
98
|
-
return selectDistributionCertificateAsync(validDistCerts);
|
|
98
|
+
return await selectDistributionCertificateAsync(validDistCerts);
|
|
99
99
|
}
|
|
100
100
|
exports.selectValidDistributionCertificateAsync = selectValidDistributionCertificateAsync;
|
|
101
101
|
const APPLE_DIST_CERTS_TOO_MANY_GENERATED_ERROR = `
|
|
@@ -17,7 +17,7 @@ async function generateProvisioningProfileAsync(ctx, target, bundleIdentifier, d
|
|
|
17
17
|
const appleAuthCtx = await ctx.appStore.ensureAuthenticatedAsync();
|
|
18
18
|
const type = appleAuthCtx.team.inHouse ? 'Enterprise ' : 'AppStore';
|
|
19
19
|
const profileName = `*[expo] ${bundleIdentifier} ${type} ${new Date().toISOString()}`; // Apple drops [ if its the first char (!!)
|
|
20
|
-
const applePlatform =
|
|
20
|
+
const applePlatform = (0, target_1.getApplePlatformFromTarget)(target);
|
|
21
21
|
return await ctx.appStore.createProvisioningProfileAsync(bundleIdentifier, distCert, profileName, applePlatform);
|
|
22
22
|
}
|
|
23
23
|
exports.generateProvisioningProfileAsync = generateProvisioningProfileAsync;
|
|
@@ -111,10 +111,10 @@ async function selectPushKeyAsync(ctx, account) {
|
|
|
111
111
|
return null;
|
|
112
112
|
}
|
|
113
113
|
if (!ctx.appStore.authCtx) {
|
|
114
|
-
return selectPushKeysAsync(pushKeysForAccount);
|
|
114
|
+
return await selectPushKeysAsync(pushKeysForAccount);
|
|
115
115
|
}
|
|
116
116
|
const validPushKeys = await getValidAndTrackedPushKeysOnEasServersAsync(ctx, pushKeysForAccount);
|
|
117
|
-
return selectPushKeysAsync(pushKeysForAccount, validPushKeys);
|
|
117
|
+
return await selectPushKeysAsync(pushKeysForAccount, validPushKeys);
|
|
118
118
|
}
|
|
119
119
|
exports.selectPushKeyAsync = selectPushKeyAsync;
|
|
120
120
|
async function getValidAndTrackedPushKeysOnEasServersAsync(ctx, pushKeysForAccount) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { AccountFragment, AppStoreConnectApiKeyFragment } from '../../../graphql/generated';
|
|
2
2
|
import { CredentialsContext } from '../../context';
|
|
3
3
|
export declare class SelectAndRemoveAscApiKey {
|
|
4
|
-
private account;
|
|
4
|
+
private readonly account;
|
|
5
5
|
constructor(account: AccountFragment);
|
|
6
6
|
runAsync(ctx: CredentialsContext): Promise<void>;
|
|
7
7
|
}
|
|
8
8
|
export declare class RemoveAscApiKey {
|
|
9
|
-
private ascApiKey;
|
|
9
|
+
private readonly ascApiKey;
|
|
10
10
|
constructor(ascApiKey: AppStoreConnectApiKeyFragment);
|
|
11
11
|
runAsync(ctx: CredentialsContext): Promise<void>;
|
|
12
12
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { AccountFragment, AppleDistributionCertificateFragment } from '../../../graphql/generated';
|
|
2
2
|
import { CredentialsContext } from '../../context';
|
|
3
3
|
export declare class SelectAndRemoveDistributionCertificate {
|
|
4
|
-
private account;
|
|
4
|
+
private readonly account;
|
|
5
5
|
constructor(account: AccountFragment);
|
|
6
6
|
runAsync(ctx: CredentialsContext): Promise<void>;
|
|
7
7
|
}
|
|
8
8
|
export declare class RemoveDistributionCertificate {
|
|
9
|
-
private account;
|
|
10
|
-
private distributionCertificate;
|
|
9
|
+
private readonly account;
|
|
10
|
+
private readonly distributionCertificate;
|
|
11
11
|
constructor(account: AccountFragment, distributionCertificate: AppleDistributionCertificateFragment);
|
|
12
12
|
runAsync(ctx: CredentialsContext): Promise<void>;
|
|
13
13
|
private removeInvalidProvisioningProfilesAsync;
|
|
@@ -2,8 +2,8 @@ import { AppleProvisioningProfileIdentifiersFragment } from '../../../graphql/ge
|
|
|
2
2
|
import { CredentialsContext } from '../../context';
|
|
3
3
|
import { AppLookupParams } from '../api/graphql/types/AppLookupParams';
|
|
4
4
|
export declare class RemoveProvisioningProfiles {
|
|
5
|
-
private apps;
|
|
6
|
-
private provisioningProfiles;
|
|
5
|
+
private readonly apps;
|
|
6
|
+
private readonly provisioningProfiles;
|
|
7
7
|
constructor(apps: AppLookupParams[], provisioningProfiles: AppleProvisioningProfileIdentifiersFragment[]);
|
|
8
8
|
runAsync(ctx: CredentialsContext): Promise<void>;
|
|
9
9
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { AccountFragment, ApplePushKeyFragment } from '../../../graphql/generated';
|
|
2
2
|
import { CredentialsContext } from '../../context';
|
|
3
3
|
export declare class SelectAndRemovePushKey {
|
|
4
|
-
private account;
|
|
4
|
+
private readonly account;
|
|
5
5
|
constructor(account: AccountFragment);
|
|
6
6
|
runAsync(ctx: CredentialsContext): Promise<void>;
|
|
7
7
|
}
|
|
8
8
|
export declare class RemovePushKey {
|
|
9
|
-
private pushKey;
|
|
9
|
+
private readonly pushKey;
|
|
10
10
|
constructor(pushKey: ApplePushKeyFragment);
|
|
11
11
|
runAsync(ctx: CredentialsContext): Promise<void>;
|
|
12
12
|
}
|
|
@@ -7,7 +7,7 @@ interface Options {
|
|
|
7
7
|
target: Target;
|
|
8
8
|
}
|
|
9
9
|
export declare class SetUpAdhocProvisioningProfile {
|
|
10
|
-
private options;
|
|
10
|
+
private readonly options;
|
|
11
11
|
constructor(options: Options);
|
|
12
12
|
runAsync(ctx: CredentialsContext): Promise<IosAppBuildCredentialsFragment>;
|
|
13
13
|
runWithDistributionCertificateAsync(ctx: CredentialsContext, distCert: AppleDistributionCertificateFragment): Promise<IosAppBuildCredentialsFragment>;
|
|
@@ -79,7 +79,7 @@ class SetUpAdhocProvisioningProfile {
|
|
|
79
79
|
const provisionedDeviceIdentifiers = (currentBuildCredentials?.provisioningProfile?.appleDevices ?? []).map(i => i.identifier);
|
|
80
80
|
const chosenDevices = await (0, DeviceUtils_1.chooseDevicesAsync)(registeredAppleDevices, provisionedDeviceIdentifiers);
|
|
81
81
|
// 4. Reuse or create the profile on Apple Developer Portal
|
|
82
|
-
const applePlatform =
|
|
82
|
+
const applePlatform = (0, target_1.getApplePlatformFromTarget)(target);
|
|
83
83
|
const profileType = applePlatform === constants_1.ApplePlatform.TV_OS
|
|
84
84
|
? apple_utils_1.ProfileType.TVOS_APP_ADHOC
|
|
85
85
|
: apple_utils_1.ProfileType.IOS_APP_ADHOC;
|
|
@@ -8,7 +8,7 @@ interface Options {
|
|
|
8
8
|
enterpriseProvisioning?: IosEnterpriseProvisioning;
|
|
9
9
|
}
|
|
10
10
|
export declare class SetUpBuildCredentials {
|
|
11
|
-
private options;
|
|
11
|
+
private readonly options;
|
|
12
12
|
constructor(options: Options);
|
|
13
13
|
runAsync(ctx: CredentialsContext): Promise<IosCredentials>;
|
|
14
14
|
}
|
|
@@ -2,9 +2,9 @@ import { IosDistributionType } from '../../../graphql/generated';
|
|
|
2
2
|
import { CredentialsContext } from '../../context';
|
|
3
3
|
import { App, Target } from '../types';
|
|
4
4
|
export declare class SetUpBuildCredentialsFromCredentialsJson {
|
|
5
|
-
private app;
|
|
6
|
-
private targets;
|
|
7
|
-
private distributionType;
|
|
5
|
+
private readonly app;
|
|
6
|
+
private readonly targets;
|
|
7
|
+
private readonly distributionType;
|
|
8
8
|
constructor(app: App, targets: Target[], distributionType: IosDistributionType);
|
|
9
9
|
runAsync(ctx: CredentialsContext): Promise<void>;
|
|
10
10
|
private readCredentialsJsonAsync;
|
|
@@ -2,8 +2,8 @@ import { AppleDistributionCertificate, AppleDistributionCertificateFragment, Ios
|
|
|
2
2
|
import { CredentialsContext } from '../../context';
|
|
3
3
|
import { AppLookupParams } from '../api/graphql/types/AppLookupParams';
|
|
4
4
|
export declare class SetUpDistributionCertificate {
|
|
5
|
-
private app;
|
|
6
|
-
private distributionType;
|
|
5
|
+
private readonly app;
|
|
6
|
+
private readonly distributionType;
|
|
7
7
|
private validDistCerts?;
|
|
8
8
|
constructor(app: AppLookupParams, distributionType: IosDistributionType);
|
|
9
9
|
runAsync(ctx: CredentialsContext): Promise<AppleDistributionCertificateFragment>;
|
|
@@ -104,7 +104,7 @@ class SetUpDistributionCertificate {
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
async createNewDistCertAsync(ctx) {
|
|
107
|
-
return new CreateDistributionCertificate_1.CreateDistributionCertificate(this.app.account).runAsync(ctx);
|
|
107
|
+
return await new CreateDistributionCertificate_1.CreateDistributionCertificate(this.app.account).runAsync(ctx);
|
|
108
108
|
}
|
|
109
109
|
async reuseDistCertAsync(ctx) {
|
|
110
110
|
const validDistCerts = await this.getValidDistCertsAsync(ctx);
|
|
@@ -14,7 +14,7 @@ interface Options {
|
|
|
14
14
|
target: Target;
|
|
15
15
|
}
|
|
16
16
|
export declare class SetUpInternalProvisioningProfile {
|
|
17
|
-
private options;
|
|
17
|
+
private readonly options;
|
|
18
18
|
constructor(options: Options);
|
|
19
19
|
runAsync(ctx: CredentialsContext): Promise<IosAppBuildCredentialsFragment>;
|
|
20
20
|
private setupAdhocProvisioningProfileAsync;
|
|
@@ -6,9 +6,9 @@ import { Target } from '../types';
|
|
|
6
6
|
* Sets up either APP_STORE or ENTERPRISE provisioning profiles
|
|
7
7
|
*/
|
|
8
8
|
export declare class SetUpProvisioningProfile {
|
|
9
|
-
private app;
|
|
10
|
-
private target;
|
|
11
|
-
private distributionType;
|
|
9
|
+
private readonly app;
|
|
10
|
+
private readonly target;
|
|
11
|
+
private readonly distributionType;
|
|
12
12
|
constructor(app: AppLookupParams, target: Target, distributionType: IosDistributionType);
|
|
13
13
|
areBuildCredentialsSetupAsync(ctx: CredentialsContext): Promise<boolean>;
|
|
14
14
|
assignNewAndDeleteOldProfileAsync(ctx: CredentialsContext, distCert: AppleDistributionCertificateFragment, currentProfile: AppleProvisioningProfileFragment): Promise<IosAppBuildCredentialsFragment>;
|
|
@@ -63,7 +63,7 @@ class SetUpProvisioningProfile {
|
|
|
63
63
|
return await this.createAndAssignProfileAsync(ctx, distCert);
|
|
64
64
|
}
|
|
65
65
|
// See if the profile we have exists on the Apple Servers
|
|
66
|
-
const applePlatform =
|
|
66
|
+
const applePlatform = (0, target_1.getApplePlatformFromTarget)(this.target);
|
|
67
67
|
const existingProfiles = await ctx.appStore.listProvisioningProfilesAsync(this.app.bundleIdentifier, applePlatform);
|
|
68
68
|
const currentProfileFromServer = this.getCurrentProfileStoreInfo(existingProfiles, currentProfile);
|
|
69
69
|
if (!currentProfileFromServer) {
|
|
@@ -2,7 +2,7 @@ import { CommonIosAppCredentialsFragment } from '../../../graphql/generated';
|
|
|
2
2
|
import { CredentialsContext } from '../../context';
|
|
3
3
|
import { AppLookupParams } from '../api/graphql/types/AppLookupParams';
|
|
4
4
|
export declare class SetUpPushKey {
|
|
5
|
-
private app;
|
|
5
|
+
private readonly app;
|
|
6
6
|
constructor(app: AppLookupParams);
|
|
7
7
|
isPushKeySetupAsync(ctx: CredentialsContext): Promise<boolean>;
|
|
8
8
|
runAsync(ctx: CredentialsContext): Promise<CommonIosAppCredentialsFragment | null>;
|
|
@@ -12,7 +12,7 @@ interface Options {
|
|
|
12
12
|
target: Target;
|
|
13
13
|
}
|
|
14
14
|
export declare class SetUpTargetBuildCredentials {
|
|
15
|
-
private options;
|
|
15
|
+
private readonly options;
|
|
16
16
|
constructor(options: Options);
|
|
17
17
|
runAsync(ctx: CredentialsContext): Promise<IosAppBuildCredentialsFragment>;
|
|
18
18
|
setupBuildCredentialsAsync(ctx: CredentialsContext): Promise<IosAppBuildCredentialsFragment>;
|
|
@@ -3,9 +3,9 @@ import { CredentialsContext } from '../../context';
|
|
|
3
3
|
import { IosTargetCredentials } from '../../credentialsJson/types';
|
|
4
4
|
import { AppLookupParams } from '../api/graphql/types/AppLookupParams';
|
|
5
5
|
export declare class SetUpTargetBuildCredentialsFromCredentialsJson {
|
|
6
|
-
private app;
|
|
7
|
-
private distributionType;
|
|
8
|
-
private targetCredentials;
|
|
6
|
+
private readonly app;
|
|
7
|
+
private readonly distributionType;
|
|
8
|
+
private readonly targetCredentials;
|
|
9
9
|
constructor(app: AppLookupParams, distributionType: IosDistributionType, targetCredentials: IosTargetCredentials);
|
|
10
10
|
runAsync(ctx: CredentialsContext): Promise<IosAppBuildCredentialsFragment>;
|
|
11
11
|
getDistributionCertificateToAssignAsync(ctx: CredentialsContext, appleTeam: AppleTeamFragment, currentDistributionCertificate: AppleDistributionCertificateFragment | null): Promise<AppleDistributionCertificateFragment>;
|
|
@@ -2,9 +2,9 @@ import { IosDistributionType } from '../../../graphql/generated';
|
|
|
2
2
|
import { CredentialsContext } from '../../context';
|
|
3
3
|
import { App, Target } from '../types';
|
|
4
4
|
export declare class UpdateCredentialsJson {
|
|
5
|
-
private app;
|
|
6
|
-
private targets;
|
|
7
|
-
private distributionType;
|
|
5
|
+
private readonly app;
|
|
6
|
+
private readonly targets;
|
|
7
|
+
private readonly distributionType;
|
|
8
8
|
constructor(app: App, targets: Target[], distributionType: IosDistributionType);
|
|
9
9
|
runAsync(ctx: CredentialsContext): Promise<void>;
|
|
10
10
|
}
|
|
@@ -171,7 +171,7 @@ async function updateProvisioningProfileAsync(graphqlClient, appleProvisioningPr
|
|
|
171
171
|
}
|
|
172
172
|
exports.updateProvisioningProfileAsync = updateProvisioningProfileAsync;
|
|
173
173
|
async function deleteProvisioningProfilesAsync(graphqlClient, appleProvisioningProfileIds) {
|
|
174
|
-
|
|
174
|
+
await AppleProvisioningProfileMutation_1.AppleProvisioningProfileMutation.deleteAppleProvisioningProfilesAsync(graphqlClient, appleProvisioningProfileIds);
|
|
175
175
|
}
|
|
176
176
|
exports.deleteProvisioningProfilesAsync = deleteProvisioningProfilesAsync;
|
|
177
177
|
async function getDistributionCertificateForAppAsync(graphqlClient, appLookupParams, iosDistributionType, { appleTeam } = { appleTeam: null }) {
|
|
@@ -202,7 +202,7 @@ async function createDistributionCertificateAsync(graphqlClient, account, distCe
|
|
|
202
202
|
}
|
|
203
203
|
exports.createDistributionCertificateAsync = createDistributionCertificateAsync;
|
|
204
204
|
async function deleteDistributionCertificateAsync(graphqlClient, distributionCertificateId) {
|
|
205
|
-
|
|
205
|
+
await AppleDistributionCertificateMutation_1.AppleDistributionCertificateMutation.deleteAppleDistributionCertificateAsync(graphqlClient, distributionCertificateId);
|
|
206
206
|
}
|
|
207
207
|
exports.deleteDistributionCertificateAsync = deleteDistributionCertificateAsync;
|
|
208
208
|
async function createPushKeyAsync(graphqlClient, account, pushKey) {
|
|
@@ -227,7 +227,7 @@ async function getPushKeyForAppAsync(graphqlClient, appLookupParams) {
|
|
|
227
227
|
}
|
|
228
228
|
exports.getPushKeyForAppAsync = getPushKeyForAppAsync;
|
|
229
229
|
async function deletePushKeyAsync(graphqlClient, pushKeyId) {
|
|
230
|
-
|
|
230
|
+
await ApplePushKeyMutation_1.ApplePushKeyMutation.deleteApplePushKeyAsync(graphqlClient, pushKeyId);
|
|
231
231
|
}
|
|
232
232
|
exports.deletePushKeyAsync = deletePushKeyAsync;
|
|
233
233
|
async function createAscApiKeyAsync(graphqlClient, account, ascApiKey) {
|
|
@@ -257,7 +257,7 @@ async function getAscApiKeyForAppSubmissionsAsync(graphqlClient, appLookupParams
|
|
|
257
257
|
}
|
|
258
258
|
exports.getAscApiKeyForAppSubmissionsAsync = getAscApiKeyForAppSubmissionsAsync;
|
|
259
259
|
async function deleteAscApiKeyAsync(graphqlClient, ascApiKeyId) {
|
|
260
|
-
|
|
260
|
+
await AppStoreConnectApiKeyMutation_1.AppStoreConnectApiKeyMutation.deleteAppStoreConnectApiKeyAsync(graphqlClient, ascApiKeyId);
|
|
261
261
|
}
|
|
262
262
|
exports.deleteAscApiKeyAsync = deleteAscApiKeyAsync;
|
|
263
263
|
function convertUserRoleToGraphqlType(userRole) {
|