eas-cli 0.34.1 → 0.37.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 +27 -27
- package/build/analytics/common.d.ts +8 -0
- package/build/analytics/common.js +19 -0
- package/build/analytics/events.d.ts +43 -0
- package/build/analytics/events.js +51 -0
- package/build/{analytics.d.ts → analytics/rudderstackClient.d.ts} +0 -0
- package/build/{analytics.js → analytics/rudderstackClient.js} +2 -2
- package/build/api.js +3 -3
- package/build/build/build.js +18 -27
- package/build/build/context.d.ts +1 -1
- package/build/build/context.js +2 -2
- package/build/build/ios/UpdatesModule.js +3 -2
- package/build/build/ios/credentials.js +3 -3
- package/build/build/ios/version.js +7 -3
- package/build/build/local.js +18 -27
- package/build/build/types.d.ts +0 -1
- package/build/build/utils/devClient.d.ts +1 -2
- package/build/build/utils/formatBuild.js +1 -9
- package/build/build/utils/repository.js +1 -0
- package/build/build/utils/url.js +1 -1
- package/build/commandUtils/EasCommand.js +4 -4
- package/build/commands/branch/publish.js +24 -2
- package/build/commands/build/index.js +15 -12
- package/build/commands/channel/create.d.ts +6 -0
- package/build/commands/channel/create.js +2 -0
- package/build/commands/secret/create.js +0 -6
- package/build/commands/secret/delete.js +1 -7
- package/build/commands/secret/list.js +0 -6
- package/build/commands/submit.js +2 -11
- package/build/credentials/android/AndroidCredentialsProvider.js +2 -2
- package/build/credentials/android/actions/RemoveFcm.js +4 -4
- package/build/credentials/android/actions/{SetupBuildCredentials.d.ts → SetUpBuildCredentials.d.ts} +1 -1
- package/build/credentials/android/actions/{SetupBuildCredentials.js → SetUpBuildCredentials.js} +3 -3
- package/build/credentials/android/actions/{SetupBuildCredentialsFromCredentialsJson.d.ts → SetUpBuildCredentialsFromCredentialsJson.d.ts} +1 -1
- package/build/credentials/android/actions/{SetupBuildCredentialsFromCredentialsJson.js → SetUpBuildCredentialsFromCredentialsJson.js} +3 -3
- package/build/credentials/android/actions/{SetupGoogleServiceAccountKey.d.ts → SetUpGoogleServiceAccountKey.d.ts} +1 -1
- package/build/credentials/android/actions/{SetupGoogleServiceAccountKey.js → SetUpGoogleServiceAccountKey.js} +3 -3
- package/build/credentials/android/utils/keystore.js +67 -32
- package/build/credentials/errors.d.ts +4 -0
- package/build/credentials/errors.js +8 -1
- package/build/credentials/ios/IosCredentialsProvider.js +4 -4
- package/build/credentials/ios/actions/AscApiKeyUtils.d.ts +17 -1
- package/build/credentials/ios/actions/AscApiKeyUtils.js +158 -24
- package/build/credentials/ios/actions/AssignAscApiKey.d.ts +9 -0
- package/build/credentials/ios/actions/AssignAscApiKey.js +29 -0
- package/build/credentials/ios/actions/CreateAscApiKey.d.ts +9 -0
- package/build/credentials/ios/actions/CreateAscApiKey.js +21 -0
- package/build/credentials/ios/actions/DistributionCertificateUtils.js +1 -1
- package/build/credentials/ios/actions/PushKeyUtils.js +1 -1
- package/build/credentials/ios/actions/RemoveAscApiKey.d.ts +14 -0
- package/build/credentials/ios/actions/RemoveAscApiKey.js +55 -0
- package/build/credentials/ios/actions/{SetupAdhocProvisioningProfile.d.ts → SetUpAdhocProvisioningProfile.d.ts} +1 -1
- package/build/credentials/ios/actions/{SetupAdhocProvisioningProfile.js → SetUpAdhocProvisioningProfile.js} +5 -5
- package/build/credentials/ios/actions/SetUpAscApiKey.d.ts +21 -0
- package/build/credentials/ios/actions/SetUpAscApiKey.js +114 -0
- package/build/credentials/ios/actions/{SetupBuildCredentials.d.ts → SetUpBuildCredentials.d.ts} +1 -1
- package/build/credentials/ios/actions/{SetupBuildCredentials.js → SetUpBuildCredentials.js} +5 -5
- package/build/credentials/ios/actions/{SetupBuildCredentialsFromCredentialsJson.d.ts → SetUpBuildCredentialsFromCredentialsJson.d.ts} +1 -1
- package/build/credentials/ios/actions/{SetupBuildCredentialsFromCredentialsJson.js → SetUpBuildCredentialsFromCredentialsJson.js} +5 -5
- package/build/credentials/ios/actions/{SetupDistributionCertificate.d.ts → SetUpDistributionCertificate.d.ts} +1 -1
- package/build/credentials/ios/actions/{SetupDistributionCertificate.js → SetUpDistributionCertificate.js} +3 -3
- package/build/credentials/ios/actions/{SetupInternalProvisioningProfile.d.ts → SetUpInternalProvisioningProfile.d.ts} +1 -1
- package/build/credentials/ios/actions/{SetupInternalProvisioningProfile.js → SetUpInternalProvisioningProfile.js} +7 -7
- package/build/credentials/ios/actions/{SetupProvisioningProfile.d.ts → SetUpProvisioningProfile.d.ts} +1 -1
- package/build/credentials/ios/actions/{SetupProvisioningProfile.js → SetUpProvisioningProfile.js} +5 -5
- package/build/credentials/ios/actions/{SetupPushKey.d.ts → SetUpPushKey.d.ts} +1 -1
- package/build/credentials/ios/actions/{SetupPushKey.js → SetUpPushKey.js} +3 -3
- package/build/credentials/ios/actions/SetUpSubmissionCredentials.d.ts +10 -0
- package/build/credentials/ios/actions/SetUpSubmissionCredentials.js +53 -0
- package/build/credentials/ios/actions/{SetupTargetBuildCredentials.d.ts → SetUpTargetBuildCredentials.d.ts} +1 -1
- package/build/credentials/ios/actions/{SetupTargetBuildCredentials.js → SetUpTargetBuildCredentials.js} +10 -10
- package/build/credentials/ios/actions/{SetupTargetBuildCredentialsFromCredentialsJson.d.ts → SetUpTargetBuildCredentialsFromCredentialsJson.d.ts} +1 -1
- package/build/credentials/ios/actions/{SetupTargetBuildCredentialsFromCredentialsJson.js → SetUpTargetBuildCredentialsFromCredentialsJson.js} +3 -3
- package/build/credentials/ios/api/GraphqlClient.d.ts +8 -2
- package/build/credentials/ios/api/GraphqlClient.js +74 -2
- package/build/credentials/ios/api/graphql/mutations/AppStoreConnectApiKeyMutation.d.ts +5 -0
- package/build/credentials/ios/api/graphql/mutations/AppStoreConnectApiKeyMutation.js +54 -0
- package/build/credentials/ios/api/graphql/mutations/IosAppCredentialsMutation.d.ts +1 -0
- package/build/credentials/ios/api/graphql/mutations/IosAppCredentialsMutation.js +25 -0
- package/build/credentials/ios/api/graphql/queries/AppStoreConnectApiKeyQuery.d.ts +4 -0
- package/build/credentials/ios/api/graphql/queries/AppStoreConnectApiKeyQuery.js +33 -0
- package/build/credentials/ios/appstore/AppStoreApi.d.ts +1 -1
- package/build/credentials/ios/appstore/Credentials.types.d.ts +1 -0
- package/build/credentials/ios/appstore/ascApiKey.d.ts +1 -1
- package/build/credentials/ios/appstore/ascApiKey.js +11 -1
- package/build/credentials/ios/appstore/entitlements.d.ts +2 -2
- package/build/credentials/ios/appstore/entitlements.js +28 -21
- package/build/credentials/ios/credentials.d.ts +2 -1
- package/build/credentials/ios/credentials.js +7 -2
- package/build/credentials/ios/utils/printCredentials.js +1 -1
- package/build/credentials/ios/validators/validateAscApiKey.d.ts +5 -0
- package/build/credentials/ios/validators/validateAscApiKey.js +21 -0
- package/build/credentials/manager/Actions.d.ts +20 -15
- package/build/credentials/manager/Actions.js +20 -15
- package/build/credentials/manager/AndroidActions.js +6 -6
- package/build/credentials/manager/IosActions.d.ts +1 -0
- package/build/credentials/manager/IosActions.js +40 -5
- package/build/credentials/manager/ManageAndroid.js +6 -6
- package/build/credentials/manager/ManageIos.js +56 -17
- package/build/credentials/utils/promptForCredentials.d.ts +2 -1
- package/build/credentials/utils/promptForCredentials.js +3 -2
- package/build/graphql/client.js +1 -1
- package/build/graphql/generated.d.ts +208 -55
- package/build/graphql/mutations/KeystoreGenerationUrlMutation.d.ts +3 -0
- package/build/graphql/mutations/KeystoreGenerationUrlMutation.js +23 -0
- package/build/graphql/types/Build.js +1 -6
- package/build/project/android/applicationId.d.ts +6 -0
- package/build/project/android/applicationId.js +39 -29
- package/build/project/android/gradle.js +3 -2
- package/build/project/android/gradleUtils.d.ts +1 -0
- package/build/project/ios/bundleIdentifier.d.ts +6 -1
- package/build/project/ios/bundleIdentifier.js +29 -18
- package/build/submit/ArchiveSource.js +2 -1
- package/build/submit/BaseSubmitter.d.ts +20 -4
- package/build/submit/BaseSubmitter.js +34 -1
- package/build/submit/android/AndroidSubmitCommand.d.ts +1 -2
- package/build/submit/android/AndroidSubmitCommand.js +22 -35
- package/build/submit/android/AndroidSubmitter.d.ts +12 -8
- package/build/submit/android/AndroidSubmitter.js +30 -21
- package/build/submit/android/ServiceAccountSource.d.ts +3 -2
- package/build/submit/android/ServiceAccountSource.js +18 -6
- package/build/submit/context.d.ts +2 -0
- package/build/submit/context.js +14 -0
- package/build/submit/ios/AppSpecificPasswordSource.d.ts +9 -6
- package/build/submit/ios/AppSpecificPasswordSource.js +42 -20
- package/build/submit/ios/AscApiKeySource.d.ts +9 -3
- package/build/submit/ios/AscApiKeySource.js +10 -10
- package/build/submit/ios/CredentialsServiceSource.d.ts +18 -0
- package/build/submit/ios/CredentialsServiceSource.js +63 -0
- package/build/submit/ios/IosSubmitCommand.d.ts +2 -2
- package/build/submit/ios/IosSubmitCommand.js +56 -56
- package/build/submit/ios/IosSubmitter.d.ts +20 -7
- package/build/submit/ios/IosSubmitter.js +79 -43
- package/build/submit/submit.js +13 -4
- package/build/submit/utils/errors.js +2 -0
- package/build/user/User.js +1 -1
- package/build/{build/ios → utils}/plist.d.ts +1 -1
- package/build/{build/ios → utils}/plist.js +8 -2
- package/build/utils/profiles.d.ts +9 -4
- package/build/utils/profiles.js +14 -7
- package/build/vcs/clients/git.d.ts +2 -1
- package/build/vcs/clients/git.js +83 -5
- package/build/vcs/vcs.d.ts +4 -3
- package/build/vcs/vcs.js +3 -3
- package/oclif.manifest.json +1 -1
- package/package.json +4 -4
- package/build/build/utils/analytics.d.ts +0 -22
- package/build/build/utils/analytics.js +0 -28
- package/build/project/isEasEnabledForProject.d.ts +0 -8
- package/build/project/isEasEnabledForProject.js +0 -33
- package/build/submit/android/AndroidPackageSource.d.ts +0 -17
- package/build/submit/android/AndroidPackageSource.js +0 -27
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eas-cli",
|
|
3
3
|
"description": "EAS command line tool",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.37.0",
|
|
5
5
|
"author": "Expo <support@expo.dev>",
|
|
6
6
|
"bin": {
|
|
7
7
|
"eas": "./bin/run"
|
|
8
8
|
},
|
|
9
9
|
"bugs": "https://github.com/expo/eas-cli/issues",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@expo/apple-utils": "0.0.0-alpha.
|
|
11
|
+
"@expo/apple-utils": "0.0.0-alpha.26",
|
|
12
12
|
"@expo/config": "6.0.3",
|
|
13
13
|
"@expo/config-plugins": "4.0.3",
|
|
14
14
|
"@expo/eas-build-job": "0.2.57",
|
|
15
|
-
"@expo/eas-json": "^0.
|
|
15
|
+
"@expo/eas-json": "^0.37.0",
|
|
16
16
|
"@expo/json-file": "8.2.33",
|
|
17
17
|
"@expo/pkcs12": "0.0.4",
|
|
18
18
|
"@expo/plist": "0.0.14",
|
|
@@ -179,5 +179,5 @@
|
|
|
179
179
|
"generate-graphql-code": "graphql-codegen --config graphql-codegen.yml",
|
|
180
180
|
"clean": "rm -rf dist build node_modules yarn-error.log"
|
|
181
181
|
},
|
|
182
|
-
"gitHead": "
|
|
182
|
+
"gitHead": "558c3670387cb32d135cfebe9bdd9fb2afd25237"
|
|
183
183
|
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export declare enum Event {
|
|
2
|
-
BUILD_COMMAND = "build cli build command",
|
|
3
|
-
PROJECT_UPLOAD_SUCCESS = "build cli project upload success",
|
|
4
|
-
PROJECT_UPLOAD_FAIL = "build cli project upload fail",
|
|
5
|
-
GATHER_CREDENTIALS_SUCCESS = "build cli gather credentials success",
|
|
6
|
-
GATHER_CREDENTIALS_FAIL = "build cli gather credentials fail",
|
|
7
|
-
CONFIGURE_PROJECT_SUCCESS = "build cli configure project success",
|
|
8
|
-
CONFIGURE_PROJECT_FAIL = "build cli configure project fail",
|
|
9
|
-
BUILD_REQUEST_SUCCESS = "build cli build request success",
|
|
10
|
-
BUILD_REQUEST_FAIL = "build cli build request fail",
|
|
11
|
-
BUILD_STATUS_COMMAND = "build cli build status",
|
|
12
|
-
CREDENTIALS_SYNC_COMMAND = "build cli credentials sync command",
|
|
13
|
-
CREDENTIALS_SYNC_UPDATE_LOCAL_SUCCESS = "build cli credentials sync update local success",
|
|
14
|
-
CREDENTIALS_SYNC_UPDATE_LOCAL_FAIL = "build cli credentials sync update local fail",
|
|
15
|
-
CREDENTIALS_SYNC_UPDATE_REMOTE_SUCCESS = "build cli credentials sync update remote success",
|
|
16
|
-
CREDENTIALS_SYNC_UPDATE_REMOTE_FAIL = "build cli credentials sync update remote fail",
|
|
17
|
-
ANDROID_KEYSTORE_CREATE = "build cli credentials keystore create"
|
|
18
|
-
}
|
|
19
|
-
declare const _default: {
|
|
20
|
-
logEvent(name: Event, properties: Record<string, any>): void;
|
|
21
|
-
};
|
|
22
|
-
export default _default;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Event = void 0;
|
|
4
|
-
const analytics_1 = require("../../analytics");
|
|
5
|
-
var Event;
|
|
6
|
-
(function (Event) {
|
|
7
|
-
Event["BUILD_COMMAND"] = "build cli build command";
|
|
8
|
-
Event["PROJECT_UPLOAD_SUCCESS"] = "build cli project upload success";
|
|
9
|
-
Event["PROJECT_UPLOAD_FAIL"] = "build cli project upload fail";
|
|
10
|
-
Event["GATHER_CREDENTIALS_SUCCESS"] = "build cli gather credentials success";
|
|
11
|
-
Event["GATHER_CREDENTIALS_FAIL"] = "build cli gather credentials fail";
|
|
12
|
-
Event["CONFIGURE_PROJECT_SUCCESS"] = "build cli configure project success";
|
|
13
|
-
Event["CONFIGURE_PROJECT_FAIL"] = "build cli configure project fail";
|
|
14
|
-
Event["BUILD_REQUEST_SUCCESS"] = "build cli build request success";
|
|
15
|
-
Event["BUILD_REQUEST_FAIL"] = "build cli build request fail";
|
|
16
|
-
Event["BUILD_STATUS_COMMAND"] = "build cli build status";
|
|
17
|
-
Event["CREDENTIALS_SYNC_COMMAND"] = "build cli credentials sync command";
|
|
18
|
-
Event["CREDENTIALS_SYNC_UPDATE_LOCAL_SUCCESS"] = "build cli credentials sync update local success";
|
|
19
|
-
Event["CREDENTIALS_SYNC_UPDATE_LOCAL_FAIL"] = "build cli credentials sync update local fail";
|
|
20
|
-
Event["CREDENTIALS_SYNC_UPDATE_REMOTE_SUCCESS"] = "build cli credentials sync update remote success";
|
|
21
|
-
Event["CREDENTIALS_SYNC_UPDATE_REMOTE_FAIL"] = "build cli credentials sync update remote fail";
|
|
22
|
-
Event["ANDROID_KEYSTORE_CREATE"] = "build cli credentials keystore create";
|
|
23
|
-
})(Event = exports.Event || (exports.Event = {}));
|
|
24
|
-
exports.default = {
|
|
25
|
-
logEvent(name, properties) {
|
|
26
|
-
(0, analytics_1.logEvent)(name, properties);
|
|
27
|
-
},
|
|
28
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Checks if the project is allowed for using EAS services.
|
|
3
|
-
* THIS IS A TEMPORARY STEP NEEDED FOR OPEN PREVIEW
|
|
4
|
-
* @returns boolean
|
|
5
|
-
*/
|
|
6
|
-
export declare function isEasEnabledForProjectAsync(projectId: string): Promise<boolean>;
|
|
7
|
-
export declare const EAS_UNAVAILABLE_MESSAGE: string;
|
|
8
|
-
export declare function warnEasUnavailable(): void;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.warnEasUnavailable = exports.EAS_UNAVAILABLE_MESSAGE = exports.isEasEnabledForProjectAsync = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
|
|
6
|
-
const api_1 = require("../api");
|
|
7
|
-
const log_1 = (0, tslib_1.__importDefault)(require("../log"));
|
|
8
|
-
/**
|
|
9
|
-
* Checks if the project is allowed for using EAS services.
|
|
10
|
-
* THIS IS A TEMPORARY STEP NEEDED FOR OPEN PREVIEW
|
|
11
|
-
* @returns boolean
|
|
12
|
-
*/
|
|
13
|
-
async function isEasEnabledForProjectAsync(projectId) {
|
|
14
|
-
var _a;
|
|
15
|
-
try {
|
|
16
|
-
const { data: { enabled }, } = await api_1.apiClient.get(`projects/${projectId}/eas-enabled`).json();
|
|
17
|
-
return enabled;
|
|
18
|
-
}
|
|
19
|
-
catch (error) {
|
|
20
|
-
if (((_a = error.response) === null || _a === void 0 ? void 0 : _a.statusCode) === 404) {
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
throw error;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
exports.isEasEnabledForProjectAsync = isEasEnabledForProjectAsync;
|
|
29
|
-
exports.EAS_UNAVAILABLE_MESSAGE = `Your account doesn't have access to Expo Application Services (EAS) features. Enroll in EAS to give it a try: ${chalk_1.default.underline('https://expo.dev/eas')}`;
|
|
30
|
-
function warnEasUnavailable() {
|
|
31
|
-
log_1.default.warn(exports.EAS_UNAVAILABLE_MESSAGE);
|
|
32
|
-
}
|
|
33
|
-
exports.warnEasUnavailable = warnEasUnavailable;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare enum AndroidPackageSourceType {
|
|
2
|
-
userDefined = 0,
|
|
3
|
-
prompt = 1
|
|
4
|
-
}
|
|
5
|
-
interface AndroidPackageSourceBase {
|
|
6
|
-
sourceType: AndroidPackageSourceType;
|
|
7
|
-
}
|
|
8
|
-
interface AndroidPackageUserDefinedSource extends AndroidPackageSourceBase {
|
|
9
|
-
sourceType: AndroidPackageSourceType.userDefined;
|
|
10
|
-
androidPackage: string;
|
|
11
|
-
}
|
|
12
|
-
interface AndroidPackagePromptSource extends AndroidPackageSourceBase {
|
|
13
|
-
sourceType: AndroidPackageSourceType.prompt;
|
|
14
|
-
}
|
|
15
|
-
export declare type AndroidPackageSource = AndroidPackageUserDefinedSource | AndroidPackagePromptSource;
|
|
16
|
-
export declare function getAndroidPackageAsync(source: AndroidPackageSource): Promise<string>;
|
|
17
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getAndroidPackageAsync = exports.AndroidPackageSourceType = void 0;
|
|
4
|
-
const prompts_1 = require("../../prompts");
|
|
5
|
-
var AndroidPackageSourceType;
|
|
6
|
-
(function (AndroidPackageSourceType) {
|
|
7
|
-
AndroidPackageSourceType[AndroidPackageSourceType["userDefined"] = 0] = "userDefined";
|
|
8
|
-
AndroidPackageSourceType[AndroidPackageSourceType["prompt"] = 1] = "prompt";
|
|
9
|
-
})(AndroidPackageSourceType = exports.AndroidPackageSourceType || (exports.AndroidPackageSourceType = {}));
|
|
10
|
-
async function getAndroidPackageAsync(source) {
|
|
11
|
-
if (source.sourceType === AndroidPackageSourceType.userDefined) {
|
|
12
|
-
return source.androidPackage;
|
|
13
|
-
}
|
|
14
|
-
else if (source.sourceType === AndroidPackageSourceType.prompt) {
|
|
15
|
-
const { androidPackage } = await (0, prompts_1.promptAsync)({
|
|
16
|
-
name: 'androidPackage',
|
|
17
|
-
message: 'Android package name:',
|
|
18
|
-
type: 'text',
|
|
19
|
-
validate: (val) => val !== '' || 'Package name cannot be empty!',
|
|
20
|
-
});
|
|
21
|
-
return androidPackage;
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
throw new Error('This should never happen');
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.getAndroidPackageAsync = getAndroidPackageAsync;
|