eas-cli 3.3.1 → 3.4.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 +59 -64
- package/build/analytics/AnalyticsManager.d.ts +2 -2
- package/build/build/android/prepareJob.js +2 -0
- package/build/build/build.d.ts +5 -3
- package/build/build/build.js +93 -27
- package/build/build/configure.js +20 -2
- package/build/build/context.d.ts +1 -1
- package/build/build/graphql.d.ts +2 -1
- package/build/build/graphql.js +11 -1
- package/build/build/ios/graphql.js +1 -1
- package/build/build/ios/prepareJob.js +2 -0
- package/build/build/local.d.ts +18 -1
- package/build/build/local.js +19 -1
- package/build/build/runBuildAndSubmit.js +3 -1
- package/build/channel/utils.d.ts +1 -1
- package/build/commandUtils/EasCommand.d.ts +2 -2
- package/build/commandUtils/context/DynamicProjectConfigContextField.d.ts +1 -1
- package/build/commandUtils/pagination.d.ts +1 -1
- package/build/commands/build/index.js +5 -6
- package/build/commands/build/inspect.js +2 -1
- package/build/commands/build/internal.d.ts +21 -0
- package/build/commands/build/internal.js +60 -0
- package/build/commands/build/resign.js +2 -0
- package/build/commands/config.d.ts +3 -0
- package/build/commands/config.js +44 -15
- package/build/commands/update/index.js +1 -1
- package/build/commands/update/republish.d.ts +2 -2
- package/build/commands/update/view.js +2 -2
- package/build/credentials/android/api/graphql/mutations/AndroidAppBuildCredentialsMutation.d.ts +1 -1
- package/build/credentials/android/credentials.d.ts +3 -3
- package/build/credentials/context.d.ts +1 -1
- package/build/credentials/credentialsJson/types.d.ts +2 -2
- package/build/credentials/ios/api/graphql/mutations/AppleDistributionCertificateMutation.d.ts +1 -1
- package/build/credentials/ios/api/graphql/mutations/AppleProvisioningProfileMutation.d.ts +1 -1
- package/build/credentials/ios/api/graphql/mutations/AppleTeamMutation.d.ts +1 -1
- package/build/credentials/ios/api/graphql/queries/AppleDeviceQuery.d.ts +4 -4
- package/build/credentials/ios/api/graphql/queries/AppleProvisioningProfileQuery.d.ts +1 -1
- package/build/credentials/ios/appstore/Credentials.types.d.ts +2 -2
- package/build/credentials/ios/appstore/authenticate.d.ts +1 -1
- package/build/credentials/ios/appstore/authenticateTypes.d.ts +4 -4
- package/build/credentials/ios/appstore/bundleIdCapabilities.d.ts +2 -2
- package/build/credentials/ios/credentials.d.ts +1 -1
- package/build/credentials/ios/types.d.ts +3 -3
- package/build/credentials/manager/Actions.d.ts +1 -1
- package/build/credentials/utils/promptForCredentials.d.ts +2 -2
- package/build/devices/utils/formatDevice.d.ts +3 -3
- package/build/graphql/generated.d.ts +792 -746
- package/build/graphql/mutations/PublishMutation.d.ts +2 -2
- package/build/graphql/mutations/PublishMutation.js +4 -4
- package/build/graphql/queries/BranchQuery.d.ts +1 -1
- package/build/graphql/queries/ChannelQuery.d.ts +2 -2
- package/build/graphql/queries/EnvironmentSecretsQuery.d.ts +1 -1
- package/build/graphql/queries/SubmissionQuery.d.ts +1 -1
- package/build/graphql/queries/UserQuery.js +3 -0
- package/build/graphql/types/Build.js +1 -0
- package/build/graphql/types/Update.js +1 -0
- package/build/metadata/apple/config/reader.d.ts +1 -1
- package/build/metadata/apple/data.d.ts +2 -2
- package/build/metadata/apple/task.d.ts +3 -3
- package/build/metadata/apple/tasks/age-rating.d.ts +1 -1
- package/build/metadata/apple/tasks/app-info.d.ts +1 -1
- package/build/metadata/apple/tasks/app-review-detail.d.ts +1 -1
- package/build/metadata/apple/tasks/app-version.d.ts +2 -2
- package/build/metadata/apple/tasks/index.d.ts +1 -1
- package/build/metadata/apple/types.d.ts +3 -3
- package/build/metadata/auth.d.ts +1 -1
- package/build/metadata/config/resolve.js +2 -1
- package/build/metadata/utils/asc.d.ts +1 -1
- package/build/metadata/utils/log.d.ts +1 -1
- package/build/metadata/utils/retry.d.ts +1 -1
- package/build/metadata/utils/telemetry.d.ts +1 -1
- package/build/project/publish.d.ts +8 -8
- package/build/prompts.d.ts +1 -1
- package/build/submit/ArchiveSource.d.ts +2 -2
- package/build/submit/android/ServiceAccountSource.d.ts +5 -5
- package/build/submit/ios/AppProduce.d.ts +1 -1
- package/build/submit/ios/AppSpecificPasswordSource.d.ts +1 -1
- package/build/submit/ios/AscApiKeySource.d.ts +4 -4
- package/build/update/utils.d.ts +9 -5
- package/build/update/utils.js +15 -1
- package/build/user/SessionManager.d.ts +2 -2
- package/build/user/User.d.ts +1 -1
- package/build/user/User.js +1 -1
- package/build/user/UserSettings.d.ts +1 -1
- package/build/utils/code-signing.d.ts +1 -1
- package/build/utils/code-signing.js +1 -1
- package/build/utils/formatFields.d.ts +2 -2
- package/build/utils/profiles.d.ts +2 -2
- package/build/utils/progress.d.ts +2 -2
- package/build/utils/queries.d.ts +3 -3
- package/build/vcs/index.js +6 -2
- package/build/vcs/local.d.ts +0 -1
- package/build/vcs/local.js +2 -11
- package/oclif.manifest.json +1 -1
- package/package.json +34 -34
package/build/commands/config.js
CHANGED
|
@@ -8,13 +8,18 @@ const eas_json_1 = require("@expo/eas-json");
|
|
|
8
8
|
const core_1 = require("@oclif/core");
|
|
9
9
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
10
10
|
const EasCommand_1 = tslib_1.__importDefault(require("../commandUtils/EasCommand"));
|
|
11
|
+
const flags_1 = require("../commandUtils/flags");
|
|
11
12
|
const AppPlatform_1 = require("../graphql/types/AppPlatform");
|
|
12
13
|
const log_1 = tslib_1.__importDefault(require("../log"));
|
|
13
14
|
const platform_1 = require("../platform");
|
|
14
15
|
const prompts_1 = require("../prompts");
|
|
16
|
+
const json_1 = require("../utils/json");
|
|
15
17
|
class Config extends EasCommand_1.default {
|
|
16
18
|
async runAsync() {
|
|
17
19
|
const { flags } = await this.parse(Config);
|
|
20
|
+
if (flags.json) {
|
|
21
|
+
(0, json_1.enableJsonOutput)();
|
|
22
|
+
}
|
|
18
23
|
const { platform: maybePlatform, profile: maybeProfile } = flags;
|
|
19
24
|
const { getDynamicProjectConfigAsync, projectDir } = await this.getContextAsync(Config, {
|
|
20
25
|
nonInteractive: false,
|
|
@@ -35,21 +40,40 @@ class Config extends EasCommand_1.default {
|
|
|
35
40
|
},
|
|
36
41
|
]));
|
|
37
42
|
const profile = await eas_json_1.EasJsonUtils.getBuildProfileAsync(accessor, platform, profileName);
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
43
|
+
if (flags['eas-json-only']) {
|
|
44
|
+
if (flags.json) {
|
|
45
|
+
(0, json_1.printJsonOnlyOutput)({ buildProfile: profile });
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
const appPlatform = (0, AppPlatform_1.toAppPlatform)(platform);
|
|
49
|
+
const platformEmoji = platform_1.appPlatformEmojis[appPlatform];
|
|
50
|
+
log_1.default.log(`${platformEmoji} ${chalk_1.default.bold(`Build profile "${profileName}"`)}`);
|
|
51
|
+
log_1.default.newLine();
|
|
52
|
+
log_1.default.log(JSON.stringify(profile, null, 2));
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
const { exp: appConfig } = await getDynamicProjectConfigAsync({
|
|
57
|
+
env: profile.env,
|
|
58
|
+
isPublicConfig: true,
|
|
59
|
+
});
|
|
60
|
+
if (flags.json) {
|
|
61
|
+
(0, json_1.printJsonOnlyOutput)({ buildProfile: profile, appConfig });
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
log_1.default.addNewLineIfNone();
|
|
65
|
+
log_1.default.log(chalk_1.default.bold((0, config_1.getProjectConfigDescription)(projectDir)));
|
|
66
|
+
log_1.default.newLine();
|
|
67
|
+
log_1.default.log(JSON.stringify(appConfig, null, 2));
|
|
68
|
+
log_1.default.newLine();
|
|
69
|
+
log_1.default.newLine();
|
|
70
|
+
const appPlatform = (0, AppPlatform_1.toAppPlatform)(platform);
|
|
71
|
+
const platformEmoji = platform_1.appPlatformEmojis[appPlatform];
|
|
72
|
+
log_1.default.log(`${platformEmoji} ${chalk_1.default.bold(`Build profile "${profileName}"`)}`);
|
|
73
|
+
log_1.default.newLine();
|
|
74
|
+
log_1.default.log(JSON.stringify(profile, null, 2));
|
|
75
|
+
}
|
|
76
|
+
}
|
|
53
77
|
}
|
|
54
78
|
}
|
|
55
79
|
exports.default = Config;
|
|
@@ -62,6 +86,11 @@ Config.flags = {
|
|
|
62
86
|
description: 'Name of the build profile from eas.json. Defaults to "production" if defined in eas.json.',
|
|
63
87
|
helpValue: 'PROFILE_NAME',
|
|
64
88
|
}),
|
|
89
|
+
// This option is used only on EAS Build worker to read build profile from eas.json.
|
|
90
|
+
'eas-json-only': core_1.Flags.boolean({
|
|
91
|
+
hidden: true,
|
|
92
|
+
}),
|
|
93
|
+
...flags_1.EasNonInteractiveAndJsonFlags,
|
|
65
94
|
};
|
|
66
95
|
Config.contextDefinition = {
|
|
67
96
|
..._a.ContextOptions.DynamicProjectConfig,
|
|
@@ -256,7 +256,7 @@ class UpdatePublish extends EasCommand_1.default {
|
|
|
256
256
|
throw e;
|
|
257
257
|
}
|
|
258
258
|
if (jsonFlag) {
|
|
259
|
-
(0, json_1.printJsonOnlyOutput)(newUpdates);
|
|
259
|
+
(0, json_1.printJsonOnlyOutput)((0, utils_2.getUpdateGroupJsonInfo)(newUpdates));
|
|
260
260
|
}
|
|
261
261
|
else {
|
|
262
262
|
if (new Set(newUpdates.map(update => update.group)).size > 1) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Platform } from '@expo/config';
|
|
2
2
|
import EasCommand from '../../commandUtils/EasCommand';
|
|
3
|
-
|
|
3
|
+
type UpdateRepublishRawFlags = {
|
|
4
4
|
branch?: string;
|
|
5
5
|
channel?: string;
|
|
6
6
|
group?: string;
|
|
@@ -9,7 +9,7 @@ declare type UpdateRepublishRawFlags = {
|
|
|
9
9
|
'non-interactive': boolean;
|
|
10
10
|
json?: boolean;
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
type UpdateRepublishFlags = {
|
|
13
13
|
branchName?: string;
|
|
14
14
|
channelName?: string;
|
|
15
15
|
groupId?: string;
|
|
@@ -17,11 +17,11 @@ class UpdateView extends EasCommand_1.default {
|
|
|
17
17
|
(0, json_1.enableJsonOutput)();
|
|
18
18
|
}
|
|
19
19
|
const updatesByGroup = await UpdateQuery_1.UpdateQuery.viewUpdateGroupAsync(graphqlClient, { groupId });
|
|
20
|
-
const [updateGroupDescription] = (0, utils_1.getUpdateGroupDescriptions)([updatesByGroup]);
|
|
21
20
|
if (jsonFlag) {
|
|
22
|
-
(0, json_1.printJsonOnlyOutput)(
|
|
21
|
+
(0, json_1.printJsonOnlyOutput)((0, utils_1.getUpdateGroupJsonInfo)(updatesByGroup));
|
|
23
22
|
}
|
|
24
23
|
else {
|
|
24
|
+
const [updateGroupDescription] = (0, utils_1.getUpdateGroupDescriptions)([updatesByGroup]);
|
|
25
25
|
log_1.default.log(chalk_1.default.bold('Update group:'));
|
|
26
26
|
log_1.default.log((0, utils_1.formatUpdateGroup)(updateGroupDescription));
|
|
27
27
|
}
|
package/build/credentials/android/api/graphql/mutations/AndroidAppBuildCredentialsMutation.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExpoGraphqlClient } from '../../../../../commandUtils/context/contextUtils/createGraphqlClient';
|
|
2
2
|
import { AndroidAppBuildCredentialsFragment, AndroidAppBuildCredentialsInput } from '../../../../../graphql/generated';
|
|
3
|
-
export
|
|
3
|
+
export type AndroidAppBuildCredentialsMetadataInput = Omit<AndroidAppBuildCredentialsInput, 'keystoreId'>;
|
|
4
4
|
export declare const AndroidAppBuildCredentialsMutation: {
|
|
5
5
|
createAndroidAppBuildCredentialsAsync(graphqlClient: ExpoGraphqlClient, androidAppBuildCredentialsInput: AndroidAppBuildCredentialsInput, androidAppCredentialsId: string): Promise<AndroidAppBuildCredentialsFragment>;
|
|
6
6
|
setKeystoreAsync(graphqlClient: ExpoGraphqlClient, androidAppBuildCredentialsId: string, keystoreId: string): Promise<AndroidAppBuildCredentialsFragment>;
|
|
@@ -9,16 +9,16 @@ export interface Keystore {
|
|
|
9
9
|
keyAlias: string;
|
|
10
10
|
keyPassword?: string;
|
|
11
11
|
}
|
|
12
|
-
export
|
|
12
|
+
export type KeystoreWithType = Keystore & {
|
|
13
13
|
type: AndroidKeystoreType;
|
|
14
14
|
};
|
|
15
|
-
export
|
|
15
|
+
export type GoogleServiceAccountKey = {
|
|
16
16
|
[key: string]: any;
|
|
17
17
|
private_key: string;
|
|
18
18
|
type: string;
|
|
19
19
|
client_email: string;
|
|
20
20
|
};
|
|
21
|
-
export
|
|
21
|
+
export type AndroidCredentials = {
|
|
22
22
|
experienceName: string;
|
|
23
23
|
keystore: Keystore | null;
|
|
24
24
|
pushCredentials: FcmCredentials | null;
|
|
@@ -7,7 +7,7 @@ import { Actor } from '../user/User';
|
|
|
7
7
|
import * as AndroidGraphqlClient from './android/api/GraphqlClient';
|
|
8
8
|
import * as IosGraphqlClient from './ios/api/GraphqlClient';
|
|
9
9
|
import AppStoreApi from './ios/appstore/AppStoreApi';
|
|
10
|
-
export
|
|
10
|
+
export type CredentialsContextProjectInfo = {
|
|
11
11
|
exp: ExpoConfig;
|
|
12
12
|
projectId: string;
|
|
13
13
|
};
|
|
@@ -19,7 +19,7 @@ export interface CredentialsJsonIosTargetCredentials {
|
|
|
19
19
|
password: string;
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
export
|
|
22
|
+
export type CredentialsJsonIosCredentials = Record<string, CredentialsJsonIosTargetCredentials>;
|
|
23
23
|
export interface AndroidCredentials {
|
|
24
24
|
keystore: Keystore;
|
|
25
25
|
}
|
|
@@ -30,5 +30,5 @@ export interface IosTargetCredentials {
|
|
|
30
30
|
certificatePassword: string;
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
export
|
|
33
|
+
export type IosCredentials = Record<string, IosTargetCredentials>;
|
|
34
34
|
export declare const CredentialsJsonSchema: Joi.ObjectSchema<any>;
|
package/build/credentials/ios/api/graphql/mutations/AppleDistributionCertificateMutation.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExpoGraphqlClient } from '../../../../../commandUtils/context/contextUtils/createGraphqlClient';
|
|
2
2
|
import { AppleDistributionCertificateFragment, AppleDistributionCertificateInput, AppleTeamFragment } from '../../../../../graphql/generated';
|
|
3
|
-
export
|
|
3
|
+
export type AppleDistributionCertificateMutationResult = AppleDistributionCertificateFragment & {
|
|
4
4
|
appleTeam?: AppleTeamFragment | null;
|
|
5
5
|
};
|
|
6
6
|
export declare const AppleDistributionCertificateMutation: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExpoGraphqlClient } from '../../../../../commandUtils/context/contextUtils/createGraphqlClient';
|
|
2
2
|
import { AppleProvisioningProfileFragment, AppleProvisioningProfileInput, AppleTeamFragment } from '../../../../../graphql/generated';
|
|
3
|
-
export
|
|
3
|
+
export type AppleProvisioningProfileMutationResult = AppleProvisioningProfileFragment & {
|
|
4
4
|
appleTeam?: AppleTeamFragment | null;
|
|
5
5
|
};
|
|
6
6
|
export declare const AppleProvisioningProfileMutation: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExpoGraphqlClient } from '../../../../../commandUtils/context/contextUtils/createGraphqlClient';
|
|
2
2
|
import { AccountFragment, AppleTeamFragment, AppleTeamInput } from '../../../../../graphql/generated';
|
|
3
|
-
export
|
|
3
|
+
export type AppleTeamMutationResult = AppleTeamFragment & {
|
|
4
4
|
account: AccountFragment;
|
|
5
5
|
};
|
|
6
6
|
export declare const AppleTeamMutation: {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ExpoGraphqlClient } from '../../../../../commandUtils/context/contextUtils/createGraphqlClient';
|
|
2
2
|
import { AppleDevice, AppleDeviceFragment, AppleDevicesByTeamIdentifierQueryVariables, AppleTeamFragment } from '../../../../../graphql/generated';
|
|
3
|
-
export
|
|
3
|
+
export type AppleDeviceFragmentWithAppleTeam = AppleDeviceFragment & {
|
|
4
4
|
appleTeam: AppleTeamFragment;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
7
|
-
export
|
|
6
|
+
export type AppleDeviceQueryResult = Pick<AppleDevice, 'id' | 'identifier' | 'name' | 'deviceClass' | 'enabled'>;
|
|
7
|
+
export type AppleDevicesByTeamIdentifierQueryResult = AppleTeamFragment & {
|
|
8
8
|
appleDevices: AppleDeviceQueryResult[];
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type AppleDevicesByIdentifierQueryResult = AppleDeviceQueryResult & {
|
|
11
11
|
appleTeam: AppleTeamFragment;
|
|
12
12
|
};
|
|
13
13
|
export declare const AppleDeviceQuery: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExpoGraphqlClient } from '../../../../../commandUtils/context/contextUtils/createGraphqlClient';
|
|
2
2
|
import { AppleAppIdentifierFragment, AppleDeviceFragment, AppleProvisioningProfileFragment, AppleTeamFragment, IosDistributionType } from '../../../../../graphql/generated';
|
|
3
|
-
export
|
|
3
|
+
export type AppleProvisioningProfileQueryResult = AppleProvisioningProfileFragment & {
|
|
4
4
|
appleTeam?: AppleTeamFragment | null;
|
|
5
5
|
} & {
|
|
6
6
|
appleDevices: AppleDeviceFragment[];
|
|
@@ -47,7 +47,7 @@ export interface PushKey {
|
|
|
47
47
|
teamId: string;
|
|
48
48
|
teamName?: string;
|
|
49
49
|
}
|
|
50
|
-
export
|
|
50
|
+
export type AscApiKeyInfo = {
|
|
51
51
|
keyId: string;
|
|
52
52
|
issuerId?: string;
|
|
53
53
|
teamId: string;
|
|
@@ -56,6 +56,6 @@ export declare type AscApiKeyInfo = {
|
|
|
56
56
|
roles: UserRole[];
|
|
57
57
|
isRevoked: boolean;
|
|
58
58
|
};
|
|
59
|
-
export
|
|
59
|
+
export type AscApiKey = AscApiKeyInfo & {
|
|
60
60
|
keyP8: string;
|
|
61
61
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { RequestContext, Session } from '@expo/apple-utils';
|
|
3
3
|
import { MinimalAscApiKey } from '../credentials';
|
|
4
4
|
import { AppleTeamType, AuthCtx, AuthenticationMode, UserAuthCtx } from './authenticateTypes';
|
|
5
|
-
export
|
|
5
|
+
export type Options = {
|
|
6
6
|
appleId?: string;
|
|
7
7
|
teamId?: string;
|
|
8
8
|
teamName?: string;
|
|
@@ -12,13 +12,13 @@ export declare enum AppleTeamType {
|
|
|
12
12
|
COMPANY_OR_ORGANIZATION = "COMPANY_OR_ORGANIZATION",
|
|
13
13
|
INDIVIDUAL = "INDIVIDUAL"
|
|
14
14
|
}
|
|
15
|
-
export
|
|
15
|
+
export type Team = {
|
|
16
16
|
id: string;
|
|
17
17
|
/** Name of the development team, this is undefined when ASC API keys are used instead of cookies for authentication. */
|
|
18
18
|
name?: string;
|
|
19
19
|
inHouse?: boolean;
|
|
20
20
|
};
|
|
21
|
-
export
|
|
21
|
+
export type UserAuthCtx = {
|
|
22
22
|
appleId: string;
|
|
23
23
|
appleIdPassword?: string;
|
|
24
24
|
team: Team;
|
|
@@ -31,7 +31,7 @@ export declare type UserAuthCtx = {
|
|
|
31
31
|
*/
|
|
32
32
|
authState?: Session.AuthState;
|
|
33
33
|
};
|
|
34
|
-
export
|
|
34
|
+
export type ApiKeyAuthCtx = {
|
|
35
35
|
ascApiKey: MinimalAscApiKey;
|
|
36
36
|
team: Team;
|
|
37
37
|
/**
|
|
@@ -39,4 +39,4 @@ export declare type ApiKeyAuthCtx = {
|
|
|
39
39
|
*/
|
|
40
40
|
authState?: Partial<Session.AuthState>;
|
|
41
41
|
};
|
|
42
|
-
export
|
|
42
|
+
export type AuthCtx = UserAuthCtx | ApiKeyAuthCtx;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { BundleId, CapabilityOptionMap, CapabilityType, MerchantId } from '@expo/apple-utils';
|
|
3
3
|
import { JSONObject, JSONValue } from '@expo/json-file';
|
|
4
4
|
export declare const EXPO_NO_CAPABILITY_SYNC: boolean;
|
|
5
|
-
|
|
5
|
+
type GetOptionsMethod<T extends CapabilityType = any> = (entitlement: JSONValue, entitlementsJson: JSONObject) => CapabilityOptionMap[T];
|
|
6
6
|
/**
|
|
7
7
|
* Given an entitlements JSON object, synchronizes the remote capabilities for a bundle identifier.
|
|
8
8
|
*
|
|
@@ -23,7 +23,7 @@ export declare function syncCapabilitiesForEntitlementsAsync(bundleId: BundleId,
|
|
|
23
23
|
disabled: string[];
|
|
24
24
|
}>;
|
|
25
25
|
export declare function assertValidOptions(classifier: CapabilityClassifier, value: any): asserts value;
|
|
26
|
-
|
|
26
|
+
type CapabilityClassifier = {
|
|
27
27
|
name: string;
|
|
28
28
|
entitlement: string;
|
|
29
29
|
capability: CapabilityType;
|
|
@@ -38,7 +38,7 @@ export interface IosDistCredentials extends DistributionCertificate {
|
|
|
38
38
|
type: 'dist-cert';
|
|
39
39
|
}
|
|
40
40
|
export declare const distributionCertificateSchema: CredentialSchema<DistributionCertificate>;
|
|
41
|
-
export
|
|
41
|
+
export type MinimalAscApiKey = {
|
|
42
42
|
keyP8: string;
|
|
43
43
|
keyId: string;
|
|
44
44
|
issuerId: string;
|
|
@@ -20,6 +20,6 @@ export interface TargetCredentials {
|
|
|
20
20
|
};
|
|
21
21
|
provisioningProfile: string;
|
|
22
22
|
}
|
|
23
|
-
export
|
|
24
|
-
export
|
|
25
|
-
export
|
|
23
|
+
export type IosCredentials = Record<string, TargetCredentials>;
|
|
24
|
+
export type IosAppBuildCredentialsMap = Record<string, IosAppBuildCredentialsFragment>;
|
|
25
|
+
export type IosAppCredentialsMap = Record<string, CommonIosAppCredentialsFragment | null>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Question = {
|
|
2
2
|
field: string;
|
|
3
3
|
question: string;
|
|
4
4
|
type: 'file' | 'string' | 'password';
|
|
5
5
|
base64Encode?: boolean;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type CredentialSchema<T> = {
|
|
8
8
|
name: string;
|
|
9
9
|
questions: Question[];
|
|
10
10
|
provideMethodQuestion?: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AppleDevice, AppleTeam } from '../../graphql/generated';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export
|
|
2
|
+
type Device = Pick<AppleDevice, 'id' | 'identifier' | 'name' | 'deviceClass' | 'enabled' | 'model'>;
|
|
3
|
+
type NewDevice = Pick<AppleDevice, 'identifier' | 'name' | 'deviceClass'>;
|
|
4
|
+
export type AppleTeamIdAndName = Pick<AppleTeam, 'appleTeamIdentifier' | 'appleTeamName'>;
|
|
5
5
|
export default function formatDevice(device: Device, team?: AppleTeamIdAndName): string;
|
|
6
6
|
export declare function formatNewDevice(device: NewDevice, team?: AppleTeamIdAndName): string;
|
|
7
7
|
export {};
|