eas-cli 0.32.0 → 0.34.1
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 +29 -28
- package/build/analytics.js +3 -9
- package/build/build/android/UpdatesModule.js +4 -15
- package/build/build/android/configure.js +3 -3
- package/build/build/android/graphql.js +2 -4
- package/build/build/android/prepareJob.js +4 -3
- package/build/build/build.js +2 -2
- package/build/build/configure.js +26 -13
- package/build/build/ios/UpdatesModule.js +6 -18
- package/build/build/ios/configure.js +1 -1
- package/build/build/ios/graphql.js +2 -23
- package/build/build/ios/prepareJob.js +4 -6
- package/build/build/metadata.js +5 -10
- package/build/build/utils/appJson.d.ts +1 -0
- package/build/build/utils/appJson.js +13 -4
- package/build/build/utils/devClient.d.ts +4 -4
- package/build/build/utils/devClient.js +16 -21
- package/build/build/utils/repository.js +10 -7
- package/build/build/validate.js +4 -4
- package/build/commandUtils/EasCommand.d.ts +1 -0
- package/build/commandUtils/EasCommand.js +21 -0
- package/build/commands/branch/create.js +3 -2
- package/build/commands/branch/delete.js +1 -1
- package/build/commands/branch/list.js +1 -1
- package/build/commands/branch/publish.js +20 -48
- package/build/commands/branch/view.js +1 -1
- package/build/commands/build/index.d.ts +1 -1
- package/build/commands/build/index.js +64 -49
- package/build/commands/channel/edit.js +1 -1
- package/build/commands/channel/list.js +1 -1
- package/build/commands/channel/view.js +1 -1
- package/build/commands/diagnostics.js +2 -2
- package/build/commands/project/info.js +1 -1
- package/build/commands/submit.js +15 -8
- package/build/commands/update/view.js +1 -1
- package/build/credentials/android/api/graphql/queries/GoogleServiceAccountKeyQuery.js +2 -0
- package/build/credentials/credentialsJson/update.js +5 -4
- package/build/credentials/ios/IosCredentialsProvider.js +1 -1
- package/build/credentials/ios/actions/CreateDistributionCertificate.js +1 -1
- package/build/credentials/ios/actions/CreatePushKey.js +1 -1
- package/build/credentials/ios/actions/DistributionCertificateUtils.d.ts +1 -1
- package/build/credentials/ios/actions/DistributionCertificateUtils.js +5 -7
- package/build/credentials/ios/actions/PushKeyUtils.d.ts +1 -1
- package/build/credentials/ios/actions/PushKeyUtils.js +5 -5
- package/build/credentials/ios/actions/SetupTargetBuildCredentials.js +1 -1
- package/build/credentials/ios/api/graphql/queries/AppQuery.js +3 -1
- package/build/credentials/ios/api/graphql/queries/AppleDeviceQuery.js +6 -2
- package/build/credentials/ios/api/graphql/queries/AppleDistributionCertificateQuery.js +7 -1
- package/build/credentials/ios/api/graphql/queries/AppleProvisioningProfileQuery.js +5 -1
- package/build/credentials/ios/api/graphql/queries/ApplePushKeyQuery.js +2 -0
- package/build/credentials/ios/api/graphql/queries/AppleTeamQuery.js +5 -1
- package/build/credentials/ios/utils/printCredentials.js +30 -1
- package/build/credentials/manager/Actions.d.ts +47 -0
- package/build/credentials/manager/Actions.js +48 -0
- package/build/credentials/manager/AndroidActions.d.ts +6 -0
- package/build/credentials/manager/AndroidActions.js +114 -0
- package/build/credentials/manager/IosActions.d.ts +6 -0
- package/build/credentials/manager/IosActions.js +110 -0
- package/build/credentials/manager/ManageAndroid.d.ts +1 -29
- package/build/credentials/manager/ManageAndroid.js +26 -159
- package/build/credentials/manager/ManageIos.d.ts +1 -29
- package/build/credentials/manager/ManageIos.js +28 -155
- package/build/graphql/client.d.ts +8 -2
- package/build/graphql/generated.d.ts +131 -143
- package/build/graphql/generated.js +44 -28
- package/build/graphql/queries/BuildQuery.js +4 -1
- package/build/graphql/queries/EnvironmentSecretsQuery.js +4 -2
- package/build/graphql/queries/ProjectQuery.js +3 -1
- package/build/graphql/queries/PublishQuery.js +4 -1
- package/build/graphql/queries/SubmissionQuery.js +5 -2
- package/build/graphql/queries/UserQuery.js +4 -1
- package/build/graphql/queries/WebhookQuery.js +6 -2
- package/build/graphql/types/credentials/AppStoreConnectApiKey.d.ts +1 -0
- package/build/graphql/types/credentials/AppStoreConnectApiKey.js +23 -0
- package/build/graphql/types/credentials/IosAppCredentials.js +6 -0
- package/build/log.d.ts +0 -2
- package/build/log.js +2 -12
- package/build/project/android/applicationId.d.ts +1 -1
- package/build/project/android/applicationId.js +7 -6
- package/build/project/ios/bundleIdentifier.d.ts +1 -1
- package/build/project/ios/bundleIdentifier.js +7 -6
- package/build/project/projectUtils.js +1 -1
- package/build/project/publish.js +2 -2
- package/build/project/workflow.js +2 -2
- package/build/submit/ArchiveSource.js +4 -4
- package/build/submit/ios/IosSubmitCommand.js +4 -0
- package/build/submit/ios/IosSubmitter.js +1 -1
- package/build/user/User.js +1 -0
- package/build/utils/easCli.d.ts +1 -0
- package/build/utils/easCli.js +5 -0
- package/build/utils/{expoCommand.d.ts → expoCli.d.ts} +0 -0
- package/build/utils/{expoCommand.js → expoCli.js} +0 -0
- package/build/utils/profiles.d.ts +11 -0
- package/build/utils/profiles.js +46 -0
- package/build/vcs/clients/git.d.ts +26 -0
- package/build/vcs/clients/git.js +184 -0
- package/build/vcs/clients/gitNoCommit.d.ts +7 -0
- package/build/vcs/clients/gitNoCommit.js +27 -0
- package/build/vcs/clients/noVcs.d.ts +6 -0
- package/build/vcs/clients/noVcs.js +19 -0
- package/build/vcs/git.d.ts +10 -17
- package/build/vcs/git.js +7 -175
- package/build/vcs/index.d.ts +2 -2
- package/build/vcs/index.js +15 -6
- package/build/vcs/local.d.ts +18 -5
- package/build/vcs/local.js +61 -32
- package/build/vcs/vcs.d.ts +2 -1
- package/build/vcs/vcs.js +8 -4
- package/oclif.manifest.json +1 -1
- package/package.json +9 -9
|
@@ -71,7 +71,7 @@ function displayIosCredentials(app, appCredentialsMap, targets) {
|
|
|
71
71
|
fields.push({ label: '', value: '' });
|
|
72
72
|
continue;
|
|
73
73
|
}
|
|
74
|
-
const { appleTeam, pushKey } = targetAppCredentials;
|
|
74
|
+
const { appleTeam, pushKey, appStoreConnectApiKeyForSubmissions } = targetAppCredentials;
|
|
75
75
|
if (appleTeam) {
|
|
76
76
|
const { appleTeamIdentifier, appleTeamName } = appleTeam;
|
|
77
77
|
fields.push({
|
|
@@ -83,6 +83,9 @@ function displayIosCredentials(app, appCredentialsMap, targets) {
|
|
|
83
83
|
if (pushKey) {
|
|
84
84
|
displayApplePushKey(pushKey, fields);
|
|
85
85
|
}
|
|
86
|
+
if (appStoreConnectApiKeyForSubmissions) {
|
|
87
|
+
displayAscApiKey(appStoreConnectApiKeyForSubmissions, fields);
|
|
88
|
+
}
|
|
86
89
|
const sortedIosAppBuildCredentialsList = sortBuildCredentialsByDistributionType(targetAppCredentials.iosAppBuildCredentialsList);
|
|
87
90
|
for (const iosAppBuildCredentials of sortedIosAppBuildCredentialsList) {
|
|
88
91
|
displayIosAppBuildCredentials(iosAppBuildCredentials, fields);
|
|
@@ -194,6 +197,32 @@ function displayApplePushKey(maybePushKey, fields) {
|
|
|
194
197
|
}
|
|
195
198
|
fields.push({ label: '', value: '' });
|
|
196
199
|
}
|
|
200
|
+
function displayAscApiKey(maybeAscApiKey, fields) {
|
|
201
|
+
fields.push({ label: 'App Store Connect Api Key', value: '' });
|
|
202
|
+
if (maybeAscApiKey) {
|
|
203
|
+
const { keyIdentifier, issuerIdentifier, appleTeam, name, roles, updatedAt } = maybeAscApiKey;
|
|
204
|
+
fields.push({ label: 'Developer Portal ID', value: keyIdentifier });
|
|
205
|
+
if (name) {
|
|
206
|
+
fields.push({ label: 'Name', value: name });
|
|
207
|
+
}
|
|
208
|
+
fields.push({ label: 'Issuer ID', value: issuerIdentifier });
|
|
209
|
+
if (roles) {
|
|
210
|
+
fields.push({ label: 'Roles', value: roles.join(',') });
|
|
211
|
+
}
|
|
212
|
+
if (appleTeam) {
|
|
213
|
+
const { appleTeamIdentifier, appleTeamName } = appleTeam;
|
|
214
|
+
fields.push({
|
|
215
|
+
label: 'Apple Team',
|
|
216
|
+
value: `${appleTeamIdentifier} ${appleTeamName ? `(${appleTeamName})` : ''}`,
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
fields.push({ label: 'Updated', value: `${(0, date_1.fromNow)(new Date(updatedAt))} ago` });
|
|
220
|
+
}
|
|
221
|
+
else {
|
|
222
|
+
fields.push({ label: '', value: 'None assigned yet' });
|
|
223
|
+
}
|
|
224
|
+
fields.push({ label: '', value: '' });
|
|
225
|
+
}
|
|
197
226
|
function formatAppleDevice(device) {
|
|
198
227
|
let deviceString = '';
|
|
199
228
|
if (device.name) {
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export declare type ActionInfo = {
|
|
2
|
+
value: AndroidActionType | IosActionType;
|
|
3
|
+
title: string;
|
|
4
|
+
scope: Scope;
|
|
5
|
+
};
|
|
6
|
+
export declare enum Scope {
|
|
7
|
+
Project = 0,
|
|
8
|
+
Manager = 1,
|
|
9
|
+
Account = 2
|
|
10
|
+
}
|
|
11
|
+
export declare enum AndroidActionType {
|
|
12
|
+
ManageBuildCredentials = 0,
|
|
13
|
+
ManageFcm = 1,
|
|
14
|
+
ManageGoogleServiceAccountKey = 2,
|
|
15
|
+
ManageCredentialsJson = 3,
|
|
16
|
+
GoBackToCaller = 4,
|
|
17
|
+
GoBackToHighLevelActions = 5,
|
|
18
|
+
CreateKeystore = 6,
|
|
19
|
+
DownloadKeystore = 7,
|
|
20
|
+
RemoveKeystore = 8,
|
|
21
|
+
CreateFcm = 9,
|
|
22
|
+
RemoveFcm = 10,
|
|
23
|
+
CreateGsaKey = 11,
|
|
24
|
+
UseExistingGsaKey = 12,
|
|
25
|
+
RemoveGsaKey = 13,
|
|
26
|
+
SetupGsaKey = 14,
|
|
27
|
+
UpdateCredentialsJson = 15,
|
|
28
|
+
SetupBuildCredentialsFromCredentialsJson = 16
|
|
29
|
+
}
|
|
30
|
+
export declare enum IosActionType {
|
|
31
|
+
ManageCredentialsJson = 0,
|
|
32
|
+
ManageBuildCredentials = 1,
|
|
33
|
+
ManagePushKey = 2,
|
|
34
|
+
GoBackToCaller = 3,
|
|
35
|
+
GoBackToHighLevelActions = 4,
|
|
36
|
+
SetupBuildCredentials = 5,
|
|
37
|
+
SetupBuildCredentialsFromCredentialsJson = 6,
|
|
38
|
+
UpdateCredentialsJson = 7,
|
|
39
|
+
UseExistingDistributionCertificate = 8,
|
|
40
|
+
RemoveProvisioningProfile = 9,
|
|
41
|
+
CreateDistributionCertificate = 10,
|
|
42
|
+
RemoveDistributionCertificate = 11,
|
|
43
|
+
SetupPushKey = 12,
|
|
44
|
+
CreatePushKey = 13,
|
|
45
|
+
UseExistingPushKey = 14,
|
|
46
|
+
RemovePushKey = 15
|
|
47
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IosActionType = exports.AndroidActionType = exports.Scope = void 0;
|
|
4
|
+
var Scope;
|
|
5
|
+
(function (Scope) {
|
|
6
|
+
Scope[Scope["Project"] = 0] = "Project";
|
|
7
|
+
Scope[Scope["Manager"] = 1] = "Manager";
|
|
8
|
+
Scope[Scope["Account"] = 2] = "Account";
|
|
9
|
+
})(Scope = exports.Scope || (exports.Scope = {}));
|
|
10
|
+
var AndroidActionType;
|
|
11
|
+
(function (AndroidActionType) {
|
|
12
|
+
AndroidActionType[AndroidActionType["ManageBuildCredentials"] = 0] = "ManageBuildCredentials";
|
|
13
|
+
AndroidActionType[AndroidActionType["ManageFcm"] = 1] = "ManageFcm";
|
|
14
|
+
AndroidActionType[AndroidActionType["ManageGoogleServiceAccountKey"] = 2] = "ManageGoogleServiceAccountKey";
|
|
15
|
+
AndroidActionType[AndroidActionType["ManageCredentialsJson"] = 3] = "ManageCredentialsJson";
|
|
16
|
+
AndroidActionType[AndroidActionType["GoBackToCaller"] = 4] = "GoBackToCaller";
|
|
17
|
+
AndroidActionType[AndroidActionType["GoBackToHighLevelActions"] = 5] = "GoBackToHighLevelActions";
|
|
18
|
+
AndroidActionType[AndroidActionType["CreateKeystore"] = 6] = "CreateKeystore";
|
|
19
|
+
AndroidActionType[AndroidActionType["DownloadKeystore"] = 7] = "DownloadKeystore";
|
|
20
|
+
AndroidActionType[AndroidActionType["RemoveKeystore"] = 8] = "RemoveKeystore";
|
|
21
|
+
AndroidActionType[AndroidActionType["CreateFcm"] = 9] = "CreateFcm";
|
|
22
|
+
AndroidActionType[AndroidActionType["RemoveFcm"] = 10] = "RemoveFcm";
|
|
23
|
+
AndroidActionType[AndroidActionType["CreateGsaKey"] = 11] = "CreateGsaKey";
|
|
24
|
+
AndroidActionType[AndroidActionType["UseExistingGsaKey"] = 12] = "UseExistingGsaKey";
|
|
25
|
+
AndroidActionType[AndroidActionType["RemoveGsaKey"] = 13] = "RemoveGsaKey";
|
|
26
|
+
AndroidActionType[AndroidActionType["SetupGsaKey"] = 14] = "SetupGsaKey";
|
|
27
|
+
AndroidActionType[AndroidActionType["UpdateCredentialsJson"] = 15] = "UpdateCredentialsJson";
|
|
28
|
+
AndroidActionType[AndroidActionType["SetupBuildCredentialsFromCredentialsJson"] = 16] = "SetupBuildCredentialsFromCredentialsJson";
|
|
29
|
+
})(AndroidActionType = exports.AndroidActionType || (exports.AndroidActionType = {}));
|
|
30
|
+
var IosActionType;
|
|
31
|
+
(function (IosActionType) {
|
|
32
|
+
IosActionType[IosActionType["ManageCredentialsJson"] = 0] = "ManageCredentialsJson";
|
|
33
|
+
IosActionType[IosActionType["ManageBuildCredentials"] = 1] = "ManageBuildCredentials";
|
|
34
|
+
IosActionType[IosActionType["ManagePushKey"] = 2] = "ManagePushKey";
|
|
35
|
+
IosActionType[IosActionType["GoBackToCaller"] = 3] = "GoBackToCaller";
|
|
36
|
+
IosActionType[IosActionType["GoBackToHighLevelActions"] = 4] = "GoBackToHighLevelActions";
|
|
37
|
+
IosActionType[IosActionType["SetupBuildCredentials"] = 5] = "SetupBuildCredentials";
|
|
38
|
+
IosActionType[IosActionType["SetupBuildCredentialsFromCredentialsJson"] = 6] = "SetupBuildCredentialsFromCredentialsJson";
|
|
39
|
+
IosActionType[IosActionType["UpdateCredentialsJson"] = 7] = "UpdateCredentialsJson";
|
|
40
|
+
IosActionType[IosActionType["UseExistingDistributionCertificate"] = 8] = "UseExistingDistributionCertificate";
|
|
41
|
+
IosActionType[IosActionType["RemoveProvisioningProfile"] = 9] = "RemoveProvisioningProfile";
|
|
42
|
+
IosActionType[IosActionType["CreateDistributionCertificate"] = 10] = "CreateDistributionCertificate";
|
|
43
|
+
IosActionType[IosActionType["RemoveDistributionCertificate"] = 11] = "RemoveDistributionCertificate";
|
|
44
|
+
IosActionType[IosActionType["SetupPushKey"] = 12] = "SetupPushKey";
|
|
45
|
+
IosActionType[IosActionType["CreatePushKey"] = 13] = "CreatePushKey";
|
|
46
|
+
IosActionType[IosActionType["UseExistingPushKey"] = 14] = "UseExistingPushKey";
|
|
47
|
+
IosActionType[IosActionType["RemovePushKey"] = 15] = "RemovePushKey";
|
|
48
|
+
})(IosActionType = exports.IosActionType || (exports.IosActionType = {}));
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ActionInfo } from './Actions';
|
|
2
|
+
export declare const highLevelActions: ActionInfo[];
|
|
3
|
+
export declare const credentialsJsonActions: ActionInfo[];
|
|
4
|
+
export declare const buildCredentialsActions: ActionInfo[];
|
|
5
|
+
export declare const fcmActions: ActionInfo[];
|
|
6
|
+
export declare const gsaKeyActions: ActionInfo[];
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.gsaKeyActions = exports.fcmActions = exports.buildCredentialsActions = exports.credentialsJsonActions = exports.highLevelActions = void 0;
|
|
4
|
+
const Actions_1 = require("./Actions");
|
|
5
|
+
exports.highLevelActions = [
|
|
6
|
+
{
|
|
7
|
+
value: Actions_1.AndroidActionType.ManageBuildCredentials,
|
|
8
|
+
title: 'Keystore: Manage everything needed to build your project',
|
|
9
|
+
scope: Actions_1.Scope.Manager,
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
value: Actions_1.AndroidActionType.ManageFcm,
|
|
13
|
+
title: 'Push Notifications: Manage your FCM Api Key',
|
|
14
|
+
scope: Actions_1.Scope.Manager,
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
value: Actions_1.AndroidActionType.ManageGoogleServiceAccountKey,
|
|
18
|
+
title: 'Google Service Account: Manage your Service Account Key',
|
|
19
|
+
scope: Actions_1.Scope.Manager,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
value: Actions_1.AndroidActionType.ManageCredentialsJson,
|
|
23
|
+
title: 'credentials.json: Upload/Download credentials between EAS servers and your local json ',
|
|
24
|
+
scope: Actions_1.Scope.Manager,
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
value: Actions_1.AndroidActionType.GoBackToCaller,
|
|
28
|
+
title: 'Go back',
|
|
29
|
+
scope: Actions_1.Scope.Manager,
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
exports.credentialsJsonActions = [
|
|
33
|
+
{
|
|
34
|
+
value: Actions_1.AndroidActionType.UpdateCredentialsJson,
|
|
35
|
+
title: 'Download credentials from EAS to credentials.json',
|
|
36
|
+
scope: Actions_1.Scope.Project,
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
value: Actions_1.AndroidActionType.SetupBuildCredentialsFromCredentialsJson,
|
|
40
|
+
title: 'Upload credentials from credentials.json to EAS',
|
|
41
|
+
scope: Actions_1.Scope.Project,
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
value: Actions_1.AndroidActionType.GoBackToHighLevelActions,
|
|
45
|
+
title: 'Go back',
|
|
46
|
+
scope: Actions_1.Scope.Manager,
|
|
47
|
+
},
|
|
48
|
+
];
|
|
49
|
+
exports.buildCredentialsActions = [
|
|
50
|
+
{
|
|
51
|
+
value: Actions_1.AndroidActionType.CreateKeystore,
|
|
52
|
+
title: 'Set up a new keystore',
|
|
53
|
+
scope: Actions_1.Scope.Project,
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
value: Actions_1.AndroidActionType.DownloadKeystore,
|
|
57
|
+
title: 'Download existing keystore',
|
|
58
|
+
scope: Actions_1.Scope.Project,
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
value: Actions_1.AndroidActionType.RemoveKeystore,
|
|
62
|
+
title: 'Delete your keystore',
|
|
63
|
+
scope: Actions_1.Scope.Project,
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
value: Actions_1.AndroidActionType.GoBackToHighLevelActions,
|
|
67
|
+
title: 'Go back',
|
|
68
|
+
scope: Actions_1.Scope.Manager,
|
|
69
|
+
},
|
|
70
|
+
];
|
|
71
|
+
exports.fcmActions = [
|
|
72
|
+
{
|
|
73
|
+
value: Actions_1.AndroidActionType.CreateFcm,
|
|
74
|
+
title: 'Upload an FCM Api Key',
|
|
75
|
+
scope: Actions_1.Scope.Project,
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
value: Actions_1.AndroidActionType.RemoveFcm,
|
|
79
|
+
title: 'Delete your FCM Api Key',
|
|
80
|
+
scope: Actions_1.Scope.Project,
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
value: Actions_1.AndroidActionType.GoBackToHighLevelActions,
|
|
84
|
+
title: 'Go back',
|
|
85
|
+
scope: Actions_1.Scope.Manager,
|
|
86
|
+
},
|
|
87
|
+
];
|
|
88
|
+
exports.gsaKeyActions = [
|
|
89
|
+
{
|
|
90
|
+
value: Actions_1.AndroidActionType.SetupGsaKey,
|
|
91
|
+
title: 'Setup a Google Service Account Key',
|
|
92
|
+
scope: Actions_1.Scope.Project,
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
value: Actions_1.AndroidActionType.CreateGsaKey,
|
|
96
|
+
title: 'Upload a Google Service Account Key',
|
|
97
|
+
scope: Actions_1.Scope.Project,
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
value: Actions_1.AndroidActionType.UseExistingGsaKey,
|
|
101
|
+
title: 'Use an existing Google Service Account Key',
|
|
102
|
+
scope: Actions_1.Scope.Project,
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
value: Actions_1.AndroidActionType.RemoveGsaKey,
|
|
106
|
+
title: 'Delete a Google Service Account Key',
|
|
107
|
+
scope: Actions_1.Scope.Project,
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
value: Actions_1.AndroidActionType.GoBackToHighLevelActions,
|
|
111
|
+
title: 'Go back',
|
|
112
|
+
scope: Actions_1.Scope.Manager,
|
|
113
|
+
},
|
|
114
|
+
];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CredentialsContext } from '../context';
|
|
2
|
+
import { ActionInfo } from './Actions';
|
|
3
|
+
export declare const highLevelActions: ActionInfo[];
|
|
4
|
+
export declare const credentialsJsonActions: ActionInfo[];
|
|
5
|
+
export declare function getPushKeyActions(ctx: CredentialsContext): ActionInfo[];
|
|
6
|
+
export declare function getBuildCredentialsActions(ctx: CredentialsContext): ActionInfo[];
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getBuildCredentialsActions = exports.getPushKeyActions = exports.credentialsJsonActions = exports.highLevelActions = void 0;
|
|
4
|
+
const Actions_1 = require("./Actions");
|
|
5
|
+
exports.highLevelActions = [
|
|
6
|
+
{
|
|
7
|
+
value: Actions_1.IosActionType.ManageBuildCredentials,
|
|
8
|
+
title: 'Build Credentials: Manage everything needed to build your project',
|
|
9
|
+
scope: Actions_1.Scope.Manager,
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
value: Actions_1.IosActionType.ManagePushKey,
|
|
13
|
+
title: 'Push Notifications: Manage your Apple Push Notifications Key',
|
|
14
|
+
scope: Actions_1.Scope.Manager,
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
value: Actions_1.IosActionType.ManageCredentialsJson,
|
|
18
|
+
title: 'credentials.json: Upload/Download credentials between EAS servers and your local json ',
|
|
19
|
+
scope: Actions_1.Scope.Manager,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
value: Actions_1.IosActionType.GoBackToCaller,
|
|
23
|
+
title: 'Go back',
|
|
24
|
+
scope: Actions_1.Scope.Manager,
|
|
25
|
+
},
|
|
26
|
+
];
|
|
27
|
+
exports.credentialsJsonActions = [
|
|
28
|
+
{
|
|
29
|
+
value: Actions_1.IosActionType.UpdateCredentialsJson,
|
|
30
|
+
title: 'Download credentials from EAS to credentials.json',
|
|
31
|
+
scope: Actions_1.Scope.Project,
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
value: Actions_1.IosActionType.SetupBuildCredentialsFromCredentialsJson,
|
|
35
|
+
title: 'Upload credentials from credentials.json to EAS',
|
|
36
|
+
scope: Actions_1.Scope.Project,
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
value: Actions_1.IosActionType.GoBackToHighLevelActions,
|
|
40
|
+
title: 'Go back',
|
|
41
|
+
scope: Actions_1.Scope.Manager,
|
|
42
|
+
},
|
|
43
|
+
];
|
|
44
|
+
function getPushKeyActions(ctx) {
|
|
45
|
+
return [
|
|
46
|
+
{
|
|
47
|
+
value: Actions_1.IosActionType.SetupPushKey,
|
|
48
|
+
title: 'Setup your project to use Push Notifications',
|
|
49
|
+
scope: Actions_1.Scope.Project,
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
value: Actions_1.IosActionType.CreatePushKey,
|
|
53
|
+
title: 'Add a new push key',
|
|
54
|
+
scope: ctx.hasProjectContext ? Actions_1.Scope.Project : Actions_1.Scope.Account,
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
value: Actions_1.IosActionType.UseExistingPushKey,
|
|
58
|
+
title: 'Use an existing push key',
|
|
59
|
+
scope: Actions_1.Scope.Project,
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
value: Actions_1.IosActionType.RemovePushKey,
|
|
63
|
+
title: 'Remove a push key from your account',
|
|
64
|
+
scope: Actions_1.Scope.Account,
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
value: Actions_1.IosActionType.GoBackToHighLevelActions,
|
|
68
|
+
title: 'Go back',
|
|
69
|
+
scope: Actions_1.Scope.Manager,
|
|
70
|
+
},
|
|
71
|
+
];
|
|
72
|
+
}
|
|
73
|
+
exports.getPushKeyActions = getPushKeyActions;
|
|
74
|
+
function getBuildCredentialsActions(ctx) {
|
|
75
|
+
return [
|
|
76
|
+
{
|
|
77
|
+
// This command will be triggered during build to ensure all credentials are ready
|
|
78
|
+
// I'm leaving it here for now to simplify testing
|
|
79
|
+
value: Actions_1.IosActionType.SetupBuildCredentials,
|
|
80
|
+
title: 'All: Set up all the required credentials to build your project',
|
|
81
|
+
scope: Actions_1.Scope.Project,
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
value: Actions_1.IosActionType.UseExistingDistributionCertificate,
|
|
85
|
+
title: 'Distribution Certificate: Use an existing one for your project',
|
|
86
|
+
scope: Actions_1.Scope.Project,
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
value: Actions_1.IosActionType.CreateDistributionCertificate,
|
|
90
|
+
title: `Distribution Certificate: Add a new one to your account`,
|
|
91
|
+
scope: ctx.hasProjectContext ? Actions_1.Scope.Project : Actions_1.Scope.Account,
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
value: Actions_1.IosActionType.RemoveDistributionCertificate,
|
|
95
|
+
title: 'Distribution Certificate: Delete one from your account',
|
|
96
|
+
scope: Actions_1.Scope.Account,
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
value: Actions_1.IosActionType.RemoveProvisioningProfile,
|
|
100
|
+
title: 'Provisioning Profile: Delete one from your project',
|
|
101
|
+
scope: Actions_1.Scope.Project,
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
value: Actions_1.IosActionType.GoBackToHighLevelActions,
|
|
105
|
+
title: 'Go back',
|
|
106
|
+
scope: Actions_1.Scope.Manager,
|
|
107
|
+
},
|
|
108
|
+
];
|
|
109
|
+
}
|
|
110
|
+
exports.getBuildCredentialsActions = getBuildCredentialsActions;
|
|
@@ -1,33 +1,6 @@
|
|
|
1
1
|
import { CredentialsContext } from '../context';
|
|
2
|
+
import { ActionInfo } from './Actions';
|
|
2
3
|
import { Action } from './HelperActions';
|
|
3
|
-
declare enum ActionType {
|
|
4
|
-
ManageBuildCredentials = 0,
|
|
5
|
-
ManageFcm = 1,
|
|
6
|
-
ManageGoogleServiceAccountKey = 2,
|
|
7
|
-
ManageCredentialsJson = 3,
|
|
8
|
-
GoBackToCaller = 4,
|
|
9
|
-
GoBackToHighLevelActions = 5,
|
|
10
|
-
CreateKeystore = 6,
|
|
11
|
-
DownloadKeystore = 7,
|
|
12
|
-
RemoveKeystore = 8,
|
|
13
|
-
CreateFcm = 9,
|
|
14
|
-
RemoveFcm = 10,
|
|
15
|
-
CreateGsaKey = 11,
|
|
16
|
-
UseExistingGsaKey = 12,
|
|
17
|
-
RemoveGsaKey = 13,
|
|
18
|
-
SetupGsaKey = 14,
|
|
19
|
-
UpdateCredentialsJson = 15,
|
|
20
|
-
SetupBuildCredentialsFromCredentialsJson = 16
|
|
21
|
-
}
|
|
22
|
-
declare enum Scope {
|
|
23
|
-
Project = 0,
|
|
24
|
-
Manager = 1
|
|
25
|
-
}
|
|
26
|
-
declare type ActionInfo = {
|
|
27
|
-
value: ActionType;
|
|
28
|
-
title: string;
|
|
29
|
-
scope: Scope;
|
|
30
|
-
};
|
|
31
4
|
export declare class ManageAndroid {
|
|
32
5
|
private callingAction;
|
|
33
6
|
constructor(callingAction: Action);
|
|
@@ -35,4 +8,3 @@ export declare class ManageAndroid {
|
|
|
35
8
|
private createProjectContextAsync;
|
|
36
9
|
private runProjectSpecificActionAsync;
|
|
37
10
|
}
|
|
38
|
-
export {};
|