eas-cli 0.46.0 → 0.48.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 +845 -2
- package/build/analytics/rudderstackClient.js +3 -3
- package/build/api.d.ts +25 -1
- package/build/api.js +70 -38
- package/build/build/android/build.js +4 -4
- package/build/build/android/prepareJob.js +2 -2
- package/build/build/android/syncProjectConfiguration.js +7 -7
- package/build/build/android/version.js +3 -3
- package/build/build/build.js +4 -4
- package/build/build/configure.js +3 -3
- package/build/build/createContext.js +2 -2
- package/build/build/ios/credentials.js +1 -1
- package/build/build/ios/graphql.js +1 -1
- package/build/build/ios/prepareJob.js +2 -2
- package/build/build/ios/syncProjectConfiguration.js +3 -3
- package/build/build/ios/version.js +3 -3
- package/build/build/local.js +3 -3
- package/build/build/metadata.js +7 -18
- package/build/build/runBuildAndSubmit.js +3 -3
- package/build/build/utils/appJson.js +3 -3
- package/build/build/utils/credentials.js +2 -2
- package/build/build/utils/devClient.js +3 -3
- package/build/build/utils/formatBuild.js +2 -2
- package/build/build/utils/printBuildInfo.js +5 -5
- package/build/build/utils/repository.js +5 -5
- package/build/build/utils/url.js +1 -1
- package/build/build/utils/version.js +4 -4
- package/build/build/validate.js +3 -3
- package/build/commandUtils/EasCommand.js +2 -2
- package/build/commands/account/login.js +2 -2
- package/build/commands/account/logout.js +2 -2
- package/build/commands/account/view.js +3 -3
- package/build/commands/analytics.js +3 -3
- package/build/commands/branch/create.js +4 -4
- package/build/commands/branch/delete.js +4 -4
- package/build/commands/branch/list.js +5 -5
- package/build/commands/branch/publish.js +1 -1
- package/build/commands/branch/rename.js +4 -4
- package/build/commands/branch/view.js +6 -6
- package/build/commands/build/cancel.js +4 -4
- package/build/commands/build/configure.js +6 -7
- package/build/commands/build/index.js +12 -8
- package/build/commands/build/inspect.js +5 -5
- package/build/commands/build/list.js +3 -3
- package/build/commands/build/view.js +2 -2
- package/build/commands/channel/create.js +12 -11
- package/build/commands/channel/delete.js +3 -3
- package/build/commands/channel/edit.js +38 -32
- package/build/commands/channel/list.js +4 -4
- package/build/commands/channel/rollout.js +50 -41
- package/build/commands/channel/view.d.ts +0 -2
- package/build/commands/channel/view.js +9 -53
- package/build/commands/config.js +3 -3
- package/build/commands/credentials.js +1 -1
- package/build/commands/device/create.js +3 -3
- package/build/commands/device/delete.js +4 -4
- package/build/commands/device/list.js +5 -5
- package/build/commands/device/view.js +3 -3
- package/build/commands/diagnostics.js +3 -3
- package/build/commands/project/info.js +4 -4
- package/build/commands/project/init.js +3 -3
- package/build/commands/secret/create.js +3 -3
- package/build/commands/secret/delete.js +2 -2
- package/build/commands/secret/list.js +5 -5
- package/build/commands/submit.js +4 -4
- package/build/commands/update/configure.d.ts +3 -0
- package/build/commands/update/configure.js +151 -36
- package/build/commands/update/delete.js +6 -6
- package/build/commands/update/index.d.ts +1 -0
- package/build/commands/update/index.js +65 -12
- package/build/commands/update/list.js +6 -6
- package/build/commands/update/view.js +4 -4
- package/build/commands/webhook/create.js +1 -1
- package/build/commands/webhook/delete.js +5 -5
- package/build/commands/webhook/list.js +3 -3
- package/build/commands/webhook/update.js +2 -2
- package/build/commands/webhook/view.js +2 -2
- package/build/credentials/android/AndroidCredentialsProvider.js +2 -2
- package/build/credentials/android/actions/AssignFcm.js +1 -1
- package/build/credentials/android/actions/AssignGoogleServiceAccountKey.js +1 -1
- package/build/credentials/android/actions/BuildCredentialsUtils.js +1 -1
- package/build/credentials/android/actions/CreateFcm.js +1 -1
- package/build/credentials/android/actions/CreateGoogleServiceAccountKey.js +1 -1
- package/build/credentials/android/actions/CreateKeystore.js +1 -1
- package/build/credentials/android/actions/DownloadKeystore.js +3 -3
- package/build/credentials/android/actions/RemoveFcm.js +1 -1
- package/build/credentials/android/actions/RemoveGoogleServiceAccountKey.js +1 -1
- package/build/credentials/android/actions/RemoveKeystore.js +2 -2
- package/build/credentials/android/actions/SetUpBuildCredentials.js +2 -2
- package/build/credentials/android/actions/SetUpBuildCredentialsFromCredentialsJson.js +1 -1
- package/build/credentials/android/actions/SetUpGoogleServiceAccountKey.js +2 -2
- package/build/credentials/android/actions/UpdateCredentialsJson.js +1 -1
- package/build/credentials/android/actions/UseExistingGoogleServiceAccountKey.js +1 -1
- package/build/credentials/android/api/graphql/mutations/AndroidAppBuildCredentialsMutation.js +2 -2
- package/build/credentials/android/api/graphql/mutations/AndroidAppCredentialsMutation.js +2 -2
- package/build/credentials/android/api/graphql/mutations/AndroidFcmMutation.js +2 -2
- package/build/credentials/android/api/graphql/mutations/AndroidKeystoreMutation.js +2 -2
- package/build/credentials/android/api/graphql/mutations/GoogleServiceAccountKeyMutation.js +2 -2
- package/build/credentials/android/api/graphql/queries/AndroidAppCredentialsQuery.js +2 -2
- package/build/credentials/android/api/graphql/queries/GoogleServiceAccountKeyQuery.js +1 -1
- package/build/credentials/android/utils/googleServiceAccountKey.js +6 -6
- package/build/credentials/android/utils/keystore.js +9 -12
- package/build/credentials/android/utils/keystoreNew.js +2 -2
- package/build/credentials/android/utils/printCredentials.js +3 -3
- package/build/credentials/context.js +7 -7
- package/build/credentials/credentialsJson/read.js +2 -2
- package/build/credentials/credentialsJson/types.js +1 -1
- package/build/credentials/credentialsJson/update.js +6 -6
- package/build/credentials/credentialsJson/utils.js +1 -1
- package/build/credentials/ios/IosCredentialsProvider.js +2 -2
- package/build/credentials/ios/actions/AscApiKeyUtils.js +4 -4
- package/build/credentials/ios/actions/AssignAscApiKey.js +1 -1
- package/build/credentials/ios/actions/AssignPushKey.js +1 -1
- package/build/credentials/ios/actions/BuildCredentialsUtils.js +1 -1
- package/build/credentials/ios/actions/ConfigureProvisioningProfile.js +3 -3
- package/build/credentials/ios/actions/CreateAscApiKey.js +1 -1
- package/build/credentials/ios/actions/CreateDistributionCertificate.js +1 -1
- package/build/credentials/ios/actions/CreateProvisioningProfile.js +3 -3
- package/build/credentials/ios/actions/CreatePushKey.js +1 -1
- package/build/credentials/ios/actions/DistributionCertificateUtils.js +4 -4
- 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 +1 -2
- package/build/credentials/ios/actions/RemoveAscApiKey.js +3 -4
- package/build/credentials/ios/actions/RemoveDistributionCertificate.js +1 -1
- package/build/credentials/ios/actions/RemoveProvisioningProfile.js +2 -2
- package/build/credentials/ios/actions/RemovePushKey.d.ts +1 -2
- package/build/credentials/ios/actions/RemovePushKey.js +3 -4
- package/build/credentials/ios/actions/SetUpAdhocProvisioningProfile.js +6 -6
- package/build/credentials/ios/actions/SetUpAscApiKey.js +3 -3
- package/build/credentials/ios/actions/SetUpBuildCredentials.js +3 -3
- package/build/credentials/ios/actions/SetUpBuildCredentialsFromCredentialsJson.js +2 -2
- package/build/credentials/ios/actions/SetUpDistributionCertificate.js +4 -4
- package/build/credentials/ios/actions/SetUpInternalProvisioningProfile.js +4 -1
- package/build/credentials/ios/actions/SetUpProvisioningProfile.js +1 -1
- package/build/credentials/ios/actions/SetUpPushKey.js +3 -3
- package/build/credentials/ios/actions/SetUpSubmissionCredentials.js +4 -4
- package/build/credentials/ios/actions/SetUpTargetBuildCredentials.js +1 -1
- package/build/credentials/ios/actions/SetUpTargetBuildCredentialsFromCredentialsJson.js +3 -3
- package/build/credentials/ios/actions/UpdateCredentialsJson.js +1 -1
- package/build/credentials/ios/api/GraphqlClient.js +1 -1
- package/build/credentials/ios/api/graphql/mutations/AppStoreConnectApiKeyMutation.js +2 -2
- package/build/credentials/ios/api/graphql/mutations/AppleAppIdentifierMutation.js +2 -2
- package/build/credentials/ios/api/graphql/mutations/AppleDeviceMutation.js +1 -1
- package/build/credentials/ios/api/graphql/mutations/AppleDeviceRegistrationRequestMutation.js +1 -1
- package/build/credentials/ios/api/graphql/mutations/AppleDistributionCertificateMutation.js +2 -2
- package/build/credentials/ios/api/graphql/mutations/AppleProvisioningProfileMutation.js +1 -1
- package/build/credentials/ios/api/graphql/mutations/ApplePushKeyMutation.js +2 -2
- package/build/credentials/ios/api/graphql/mutations/AppleTeamMutation.js +1 -1
- package/build/credentials/ios/api/graphql/mutations/IosAppBuildCredentialsMutation.js +2 -2
- package/build/credentials/ios/api/graphql/mutations/IosAppCredentialsMutation.js +2 -2
- package/build/credentials/ios/api/graphql/queries/AppQuery.js +2 -2
- package/build/credentials/ios/api/graphql/queries/AppStoreConnectApiKeyQuery.js +1 -1
- package/build/credentials/ios/api/graphql/queries/AppleAppIdentifierQuery.js +1 -1
- package/build/credentials/ios/api/graphql/queries/AppleDeviceQuery.js +2 -2
- package/build/credentials/ios/api/graphql/queries/AppleDistributionCertificateQuery.js +2 -2
- package/build/credentials/ios/api/graphql/queries/AppleProvisioningProfileQuery.js +2 -2
- package/build/credentials/ios/api/graphql/queries/ApplePushKeyQuery.js +1 -1
- package/build/credentials/ios/api/graphql/queries/AppleTeamQuery.js +1 -1
- package/build/credentials/ios/api/graphql/queries/IosAppBuildCredentialsQuery.js +2 -2
- package/build/credentials/ios/api/graphql/queries/IosAppCredentialsQuery.js +2 -2
- package/build/credentials/ios/appstore/AppStoreApi.d.ts +1 -1
- package/build/credentials/ios/appstore/AppStoreApi.js +2 -2
- package/build/credentials/ios/appstore/Credentials.js +1 -1
- package/build/credentials/ios/appstore/ascApiKey.js +1 -1
- package/build/credentials/ios/appstore/authenticate.js +3 -3
- package/build/credentials/ios/appstore/bundleIdCapabilities.js +2 -2
- package/build/credentials/ios/appstore/capabilityIdentifiers.js +1 -1
- package/build/credentials/ios/appstore/contractMessages.js +2 -2
- package/build/credentials/ios/appstore/ensureAppExists.js +2 -2
- package/build/credentials/ios/appstore/keychain.js +1 -1
- package/build/credentials/ios/appstore/provisioningProfile.d.ts +1 -1
- package/build/credentials/ios/appstore/provisioningProfile.js +1 -1
- package/build/credentials/ios/appstore/pushKey.js +3 -3
- package/build/credentials/ios/appstore/resolveCredentials.js +5 -5
- package/build/credentials/ios/credentials.js +1 -1
- package/build/credentials/ios/utils/convertHTMLToASCII.js +4 -4
- package/build/credentials/ios/utils/p12Certificate.js +1 -1
- package/build/credentials/ios/utils/printCredentials.js +4 -4
- package/build/credentials/ios/utils/provisioningProfile.js +1 -1
- package/build/credentials/ios/validators/validateProvisioningProfile.js +5 -5
- package/build/credentials/manager/HelperActions.js +1 -1
- package/build/credentials/manager/ManageAndroid.js +2 -2
- package/build/credentials/manager/ManageIos.js +3 -3
- package/build/credentials/manager/SelectAndroidBuildCredentials.js +1 -1
- package/build/credentials/manager/SelectBuildProfileFromEasJson.js +1 -1
- package/build/credentials/utils/promptForCredentials.js +5 -6
- package/build/devices/actions/create/action.js +2 -2
- package/build/devices/actions/create/inputMethod.js +3 -3
- package/build/devices/actions/create/registrationUrlMethod.js +4 -4
- package/build/devices/manager.js +4 -4
- package/build/devices/utils/formatDevice.js +1 -1
- package/build/fetch.d.ts +7 -0
- package/build/fetch.js +21 -0
- package/build/graphql/client.js +2 -5
- package/build/graphql/generated.d.ts +770 -703
- package/build/graphql/generated.js +6 -1
- package/build/graphql/mutations/AppMutation.js +2 -2
- package/build/graphql/mutations/BuildMutation.js +2 -2
- package/build/graphql/mutations/EnvironmentSecretMutation.js +1 -1
- package/build/graphql/mutations/KeystoreGenerationUrlMutation.js +1 -1
- package/build/graphql/mutations/PublishMutation.d.ts +2 -1
- package/build/graphql/mutations/PublishMutation.js +26 -1
- package/build/graphql/mutations/SubmissionMutation.js +2 -2
- package/build/graphql/mutations/UploadSessionMutation.js +1 -1
- package/build/graphql/mutations/WebhookMutation.js +1 -1
- package/build/graphql/queries/BranchQuery.d.ts +7 -0
- package/build/graphql/queries/BranchQuery.js +29 -0
- package/build/graphql/queries/BuildQuery.js +1 -1
- package/build/graphql/queries/ChannelQuery.d.ts +4 -0
- package/build/graphql/queries/ChannelQuery.js +49 -0
- package/build/graphql/queries/EnvironmentSecretsQuery.js +1 -1
- package/build/graphql/queries/ProjectQuery.js +1 -1
- package/build/graphql/queries/PublishQuery.js +1 -1
- package/build/graphql/queries/SubmissionQuery.js +1 -1
- package/build/graphql/queries/UpdateQuery.js +1 -1
- package/build/graphql/queries/UserQuery.js +1 -1
- package/build/graphql/queries/WebhookQuery.js +1 -1
- package/build/graphql/types/App.js +1 -1
- package/build/graphql/types/Build.js +1 -1
- package/build/graphql/types/EnvironmentSecret.js +1 -1
- package/build/graphql/types/Submission.js +1 -1
- package/build/graphql/types/UpdateBranch.js +1 -1
- package/build/graphql/types/Webhook.js +1 -1
- package/build/graphql/types/credentials/AndroidAppBuildCredentials.js +1 -1
- package/build/graphql/types/credentials/AndroidAppCredentials.js +1 -1
- package/build/graphql/types/credentials/AndroidFcm.js +1 -1
- package/build/graphql/types/credentials/AndroidKeystore.js +1 -1
- package/build/graphql/types/credentials/AppStoreConnectApiKey.js +1 -1
- package/build/graphql/types/credentials/AppleAppIdentifier.js +1 -1
- package/build/graphql/types/credentials/AppleDevice.js +1 -1
- package/build/graphql/types/credentials/AppleDeviceRegistrationRequest.js +1 -1
- package/build/graphql/types/credentials/AppleDistributionCertificate.js +1 -1
- package/build/graphql/types/credentials/AppleProvisioningProfile.js +1 -1
- package/build/graphql/types/credentials/ApplePushKey.js +1 -1
- package/build/graphql/types/credentials/AppleTeam.js +1 -1
- package/build/graphql/types/credentials/GoogleServiceAccountKey.js +1 -1
- package/build/graphql/types/credentials/IosAppBuildCredentials.js +1 -1
- package/build/graphql/types/credentials/IosAppCredentials.js +1 -1
- package/build/log.js +4 -4
- package/build/ora.js +2 -2
- package/build/platform.js +1 -1
- package/build/project/android/applicationId.js +6 -6
- package/build/project/android/gradle.js +2 -2
- package/build/project/android/gradleUtils.js +2 -2
- package/build/project/ensureProjectExists.js +3 -3
- package/build/project/expoSdk.js +3 -3
- package/build/project/ios/bundleIdentifier.js +4 -4
- package/build/project/ios/scheme.js +3 -3
- package/build/project/metroConfig.js +3 -3
- package/build/project/projectUtils.d.ts +3 -5
- package/build/project/projectUtils.js +37 -38
- package/build/project/publish.js +8 -8
- package/build/project/workflow.js +2 -2
- package/build/prompts.js +1 -1
- package/build/submit/ArchiveSource.js +3 -3
- package/build/submit/BaseSubmitter.js +1 -1
- package/build/submit/android/AndroidSubmitCommand.js +3 -3
- package/build/submit/android/AndroidSubmitter.js +3 -3
- package/build/submit/android/ServiceAccountSource.js +4 -4
- package/build/submit/ios/AppProduce.js +2 -2
- package/build/submit/ios/AppSpecificPasswordSource.js +3 -4
- package/build/submit/ios/AscApiKeySource.js +2 -2
- package/build/submit/ios/CredentialsServiceSource.js +2 -2
- package/build/submit/ios/IosSubmitCommand.js +5 -5
- package/build/submit/ios/IosSubmitter.js +3 -3
- package/build/submit/ios/utils/language.js +1 -1
- package/build/submit/submit.js +4 -4
- package/build/submit/utils/errors.js +1 -1
- package/build/submit/utils/files.js +1 -1
- package/build/submit/utils/logs.js +5 -5
- package/build/submit/utils/summary.js +3 -3
- package/build/submit/utils/urls.js +2 -2
- package/build/submit/utils/wait.js +2 -2
- package/build/{build → update}/android/UpdatesModule.d.ts +0 -0
- package/build/{build → update}/android/UpdatesModule.js +4 -3
- package/build/{build → update}/ios/UpdatesModule.d.ts +0 -0
- package/build/{build → update}/ios/UpdatesModule.js +7 -8
- package/build/update/utils.d.ts +3 -0
- package/build/update/utils.js +20 -2
- package/build/uploads.d.ts +2 -10
- package/build/uploads.js +32 -12
- package/build/user/User.js +3 -5
- package/build/user/UserSettings.js +2 -2
- package/build/user/actions.js +5 -5
- package/build/user/otp.js +6 -8
- package/build/user/sessionStorage.js +1 -1
- package/build/utils/code-signing.d.ts +29 -0
- package/build/utils/code-signing.js +165 -0
- package/build/utils/expoCli.js +4 -4
- package/build/utils/files.js +3 -3
- package/build/utils/formatFields.js +1 -1
- package/build/utils/json.js +2 -2
- package/build/utils/paths.js +2 -2
- package/build/utils/plist.js +3 -3
- package/build/utils/profiles.js +2 -2
- package/build/utils/progress.d.ts +6 -3
- package/build/utils/progress.js +1 -1
- package/build/vcs/clients/git.js +3 -3
- package/build/vcs/clients/gitNoCommit.js +3 -3
- package/build/vcs/git.js +1 -1
- package/build/vcs/index.js +3 -3
- package/build/vcs/local.js +4 -4
- package/build/webhooks/formatWebhook.js +1 -1
- package/build/webhooks/input.js +2 -2
- package/oclif.manifest.json +1 -1
- package/package.json +33 -27
- package/build/ApiV2Error.d.ts +0 -16
- package/build/ApiV2Error.js +0 -14
- package/build/build/utils/updates.d.ts +0 -3
- package/build/build/utils/updates.js +0 -15
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AnalyticsEvent = exports.logEvent = exports.flushAsync = exports.setUserDataAsync = exports.initAsync = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const rudder_sdk_node_1 =
|
|
6
|
-
const os_1 =
|
|
5
|
+
const rudder_sdk_node_1 = tslib_1.__importDefault(require("@expo/rudder-sdk-node"));
|
|
6
|
+
const os_1 = tslib_1.__importDefault(require("os"));
|
|
7
7
|
const url_1 = require("url");
|
|
8
8
|
const uuid_1 = require("uuid");
|
|
9
|
-
const UserSettings_1 =
|
|
9
|
+
const UserSettings_1 = tslib_1.__importDefault(require("../user/UserSettings"));
|
|
10
10
|
const easCli_1 = require("../utils/easCli");
|
|
11
11
|
const PLATFORM_TO_ANALYTICS_PLATFORM = {
|
|
12
12
|
darwin: 'Mac',
|
package/build/api.d.ts
CHANGED
|
@@ -1,4 +1,28 @@
|
|
|
1
|
-
|
|
1
|
+
import { JSONValue } from '@expo/json-file';
|
|
2
|
+
export declare class ApiV2Error extends Error {
|
|
3
|
+
readonly name = "ApiV2Error";
|
|
4
|
+
readonly expoApiV2ErrorCode: string;
|
|
5
|
+
readonly expoApiV2ErrorDetails?: JSONValue;
|
|
6
|
+
readonly expoApiV2ErrorServerStack?: string;
|
|
7
|
+
readonly expoApiV2ErrorMetadata?: object;
|
|
8
|
+
constructor(response: {
|
|
9
|
+
message: string;
|
|
10
|
+
code: string;
|
|
11
|
+
stack?: string;
|
|
12
|
+
details?: JSONValue;
|
|
13
|
+
metadata?: object;
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
interface RequestOptions {
|
|
17
|
+
body: JSONValue;
|
|
18
|
+
}
|
|
19
|
+
export declare const api: {
|
|
20
|
+
putAsync(path: string, options: RequestOptions): Promise<any>;
|
|
21
|
+
postAsync(path: string, options: RequestOptions): Promise<any>;
|
|
22
|
+
deleteAsync(path: string): Promise<any>;
|
|
23
|
+
getAsync(path: string): Promise<any>;
|
|
24
|
+
};
|
|
2
25
|
export declare function getExpoApiBaseUrl(): string;
|
|
3
26
|
export declare function getExpoWebsiteBaseUrl(): string;
|
|
4
27
|
export declare function getEASUpdateURL(projectId: string): string;
|
|
28
|
+
export {};
|
package/build/api.js
CHANGED
|
@@ -1,46 +1,78 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getEASUpdateURL = exports.getExpoWebsiteBaseUrl = exports.getExpoApiBaseUrl = exports.
|
|
3
|
+
exports.getEASUpdateURL = exports.getExpoWebsiteBaseUrl = exports.getExpoApiBaseUrl = exports.api = exports.ApiV2Error = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const
|
|
6
|
-
const ApiV2Error_1 = (0, tslib_1.__importDefault)(require("./ApiV2Error"));
|
|
5
|
+
const fetch_1 = tslib_1.__importStar(require("./fetch"));
|
|
7
6
|
const sessionStorage_1 = require("./user/sessionStorage");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
(error) => {
|
|
26
|
-
var _a;
|
|
27
|
-
if (error instanceof got_1.HTTPError) {
|
|
28
|
-
let result;
|
|
29
|
-
try {
|
|
30
|
-
result = JSON.parse(error.response.body);
|
|
31
|
-
}
|
|
32
|
-
catch (e2) {
|
|
33
|
-
return error;
|
|
34
|
-
}
|
|
35
|
-
if ((_a = result.errors) === null || _a === void 0 ? void 0 : _a.length) {
|
|
36
|
-
return new ApiV2Error_1.default(error, result.errors[0]);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
return error;
|
|
40
|
-
},
|
|
41
|
-
],
|
|
7
|
+
class ApiV2Error extends Error {
|
|
8
|
+
constructor(response) {
|
|
9
|
+
super(response.message);
|
|
10
|
+
this.name = 'ApiV2Error';
|
|
11
|
+
this.expoApiV2ErrorCode = response.code;
|
|
12
|
+
this.expoApiV2ErrorDetails = response.details;
|
|
13
|
+
this.expoApiV2ErrorServerStack = response.stack;
|
|
14
|
+
this.expoApiV2ErrorMetadata = response.metadata;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.ApiV2Error = ApiV2Error;
|
|
18
|
+
exports.api = {
|
|
19
|
+
async putAsync(path, options) {
|
|
20
|
+
return await requestAsync(path, { method: 'PUT', body: JSON.stringify(options.body) });
|
|
21
|
+
},
|
|
22
|
+
async postAsync(path, options) {
|
|
23
|
+
return await requestAsync(path, { method: 'POST', body: JSON.stringify(options.body) });
|
|
42
24
|
},
|
|
43
|
-
|
|
25
|
+
async deleteAsync(path) {
|
|
26
|
+
return await requestAsync(path, { method: 'DELETE' });
|
|
27
|
+
},
|
|
28
|
+
async getAsync(path) {
|
|
29
|
+
return await requestAsync(path, { method: 'GET' });
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
async function requestAsync(path, options) {
|
|
33
|
+
try {
|
|
34
|
+
const response = await (0, fetch_1.default)(`${getExpoApiBaseUrl()}/v2/${path}`, {
|
|
35
|
+
...options,
|
|
36
|
+
headers: {
|
|
37
|
+
'Content-Type': 'application/json',
|
|
38
|
+
...getAuthHeaders(),
|
|
39
|
+
},
|
|
40
|
+
});
|
|
41
|
+
return await response.json();
|
|
42
|
+
}
|
|
43
|
+
catch (err) {
|
|
44
|
+
await handleApiErrorAsync(err);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
async function handleApiErrorAsync(err) {
|
|
48
|
+
var _a;
|
|
49
|
+
if (err instanceof fetch_1.RequestError) {
|
|
50
|
+
let result;
|
|
51
|
+
try {
|
|
52
|
+
result = (await err.response.json());
|
|
53
|
+
}
|
|
54
|
+
catch {
|
|
55
|
+
throw new Error(`Malformed api response: ${await err.response.text()}`);
|
|
56
|
+
}
|
|
57
|
+
if ((_a = result.errors) === null || _a === void 0 ? void 0 : _a.length) {
|
|
58
|
+
throw new ApiV2Error(result.errors[0]);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
throw err;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
function getAuthHeaders() {
|
|
66
|
+
const token = (0, sessionStorage_1.getAccessToken)();
|
|
67
|
+
if (token) {
|
|
68
|
+
return { authorization: `Bearer ${token}` };
|
|
69
|
+
}
|
|
70
|
+
const sessionSecret = (0, sessionStorage_1.getSessionSecret)();
|
|
71
|
+
if (sessionSecret) {
|
|
72
|
+
return { 'expo-session': sessionSecret };
|
|
73
|
+
}
|
|
74
|
+
return {};
|
|
75
|
+
}
|
|
44
76
|
function getExpoApiBaseUrl() {
|
|
45
77
|
if (process.env.EXPO_STAGING) {
|
|
46
78
|
return `https://staging-api.expo.dev`;
|
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.prepareAndroidBuildAsync = exports.createAndroidContextAsync = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
6
|
-
const chalk_1 =
|
|
7
|
-
const nullthrows_1 =
|
|
8
|
-
const AndroidCredentialsProvider_1 =
|
|
6
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
7
|
+
const nullthrows_1 = tslib_1.__importDefault(require("nullthrows"));
|
|
8
|
+
const AndroidCredentialsProvider_1 = tslib_1.__importDefault(require("../../credentials/android/AndroidCredentialsProvider"));
|
|
9
9
|
const BuildMutation_1 = require("../../graphql/mutations/BuildMutation");
|
|
10
|
-
const log_1 =
|
|
10
|
+
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
11
11
|
const applicationId_1 = require("../../project/android/applicationId");
|
|
12
12
|
const gradle_1 = require("../../project/android/gradle");
|
|
13
13
|
const prompts_1 = require("../../prompts");
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.prepareJobAsync = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
6
|
-
const path_1 =
|
|
7
|
-
const slash_1 =
|
|
6
|
+
const path_1 = tslib_1.__importDefault(require("path"));
|
|
7
|
+
const slash_1 = tslib_1.__importDefault(require("slash"));
|
|
8
8
|
const projectUtils_1 = require("../../project/projectUtils");
|
|
9
9
|
const actions_1 = require("../../user/actions");
|
|
10
10
|
const vcs_1 = require("../../vcs");
|
|
@@ -4,13 +4,13 @@ exports.cleanUpOldEasBuildGradleScriptAsync = exports.syncProjectConfigurationAs
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const config_plugins_1 = require("@expo/config-plugins");
|
|
6
6
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
7
|
-
const chalk_1 =
|
|
8
|
-
const fs_extra_1 =
|
|
9
|
-
const path_1 =
|
|
10
|
-
const log_1 =
|
|
7
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
8
|
+
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
9
|
+
const path_1 = tslib_1.__importDefault(require("path"));
|
|
10
|
+
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
11
|
+
const projectUtils_1 = require("../../project/projectUtils");
|
|
11
12
|
const workflow_1 = require("../../project/workflow");
|
|
12
|
-
const
|
|
13
|
-
const UpdatesModule_1 = require("./UpdatesModule");
|
|
13
|
+
const UpdatesModule_1 = require("../../update/android/UpdatesModule");
|
|
14
14
|
const version_1 = require("./version");
|
|
15
15
|
async function syncProjectConfigurationAsync({ projectDir, exp, buildProfile, }) {
|
|
16
16
|
const workflow = await (0, workflow_1.resolveWorkflowAsync)(projectDir, eas_build_job_1.Platform.ANDROID);
|
|
@@ -18,7 +18,7 @@ async function syncProjectConfigurationAsync({ projectDir, exp, buildProfile, })
|
|
|
18
18
|
const versionBumpStrategy = resolveVersionBumpStrategy(autoIncrement !== null && autoIncrement !== void 0 ? autoIncrement : false);
|
|
19
19
|
if (workflow === eas_build_job_1.Workflow.GENERIC) {
|
|
20
20
|
await cleanUpOldEasBuildGradleScriptAsync(projectDir);
|
|
21
|
-
if ((0,
|
|
21
|
+
if ((0, projectUtils_1.isExpoUpdatesInstalled)(projectDir)) {
|
|
22
22
|
await (0, UpdatesModule_1.syncUpdatesConfigurationAsync)(projectDir, exp);
|
|
23
23
|
}
|
|
24
24
|
await (0, version_1.bumpVersionAsync)({ projectDir, exp, bumpStrategy: versionBumpStrategy });
|
|
@@ -4,9 +4,9 @@ exports.maybeResolveVersionsAsync = exports.bumpVersionInAppJsonAsync = exports.
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const config_plugins_1 = require("@expo/config-plugins");
|
|
6
6
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
7
|
-
const chalk_1 =
|
|
8
|
-
const fs_extra_1 =
|
|
9
|
-
const log_1 =
|
|
7
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
8
|
+
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
9
|
+
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
10
10
|
const gradleUtils_1 = require("../../project/android/gradleUtils");
|
|
11
11
|
const workflow_1 = require("../../project/workflow");
|
|
12
12
|
const appJson_1 = require("../utils/appJson");
|
package/build/build/build.js
CHANGED
|
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.waitForBuildEndAsync = exports.prepareBuildRequestForPlatformAsync = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
6
|
-
const chalk_1 =
|
|
7
|
-
const fs_extra_1 =
|
|
6
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
7
|
+
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
8
8
|
const common_1 = require("../analytics/common");
|
|
9
9
|
const events_1 = require("../analytics/events");
|
|
10
10
|
const generated_1 = require("../graphql/generated");
|
|
11
11
|
const BuildQuery_1 = require("../graphql/queries/BuildQuery");
|
|
12
|
-
const log_1 =
|
|
12
|
+
const log_1 = tslib_1.__importStar(require("../log"));
|
|
13
13
|
const ora_1 = require("../ora");
|
|
14
14
|
const platform_1 = require("../platform");
|
|
15
15
|
const uploads_1 = require("../uploads");
|
|
@@ -202,7 +202,7 @@ async function waitForBuildEndAsync(buildIds, { timeoutSec = 3600, intervalSec =
|
|
|
202
202
|
const errored = builds.filter(build => (build === null || build === void 0 ? void 0 : build.status) === generated_1.BuildStatus.Errored).length;
|
|
203
203
|
const finished = builds.filter(build => (build === null || build === void 0 ? void 0 : build.status) === generated_1.BuildStatus.Finished).length;
|
|
204
204
|
const canceled = builds.filter(build => (build === null || build === void 0 ? void 0 : build.status) === generated_1.BuildStatus.Canceled).length;
|
|
205
|
-
const unknown = builds.length - newBuilds - inQueue - inProgress - errored - finished;
|
|
205
|
+
const unknown = builds.length - newBuilds - inQueue - inProgress - errored - finished - canceled;
|
|
206
206
|
spinner.text = [
|
|
207
207
|
newBuilds && `Builds created: ${newBuilds}`,
|
|
208
208
|
inQueue && `Builds in queue: ${inQueue}`,
|
package/build/build/configure.js
CHANGED
|
@@ -4,9 +4,9 @@ exports.ensureProjectConfiguredAsync = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
6
6
|
const eas_json_1 = require("@expo/eas-json");
|
|
7
|
-
const chalk_1 =
|
|
8
|
-
const fs_extra_1 =
|
|
9
|
-
const log_1 =
|
|
7
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
8
|
+
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
9
|
+
const log_1 = tslib_1.__importDefault(require("../log"));
|
|
10
10
|
const workflow_1 = require("../project/workflow");
|
|
11
11
|
const easCli_1 = require("../utils/easCli");
|
|
12
12
|
const vcs_1 = require("../vcs");
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.createBuildContextAsync = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
6
|
-
const json_file_1 =
|
|
7
|
-
const resolve_from_1 =
|
|
6
|
+
const json_file_1 = tslib_1.__importDefault(require("@expo/json-file"));
|
|
7
|
+
const resolve_from_1 = tslib_1.__importDefault(require("resolve-from"));
|
|
8
8
|
const uuid_1 = require("uuid");
|
|
9
9
|
const events_1 = require("../analytics/events");
|
|
10
10
|
const context_1 = require("../credentials/context");
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ensureIosCredentialsAsync = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
6
|
-
const IosCredentialsProvider_1 =
|
|
6
|
+
const IosCredentialsProvider_1 = tslib_1.__importDefault(require("../../credentials/ios/IosCredentialsProvider"));
|
|
7
7
|
const BuildCredentialsUtils_1 = require("../../credentials/ios/actions/BuildCredentialsUtils");
|
|
8
8
|
const entitlements_1 = require("../../credentials/ios/appstore/entitlements");
|
|
9
9
|
const credentials_1 = require("../utils/credentials");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.transformJob = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const nullthrows_1 =
|
|
5
|
+
const nullthrows_1 = tslib_1.__importDefault(require("nullthrows"));
|
|
6
6
|
const graphql_1 = require("../graphql");
|
|
7
7
|
function transformJob(job) {
|
|
8
8
|
return {
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.prepareJobAsync = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
6
|
-
const path_1 =
|
|
7
|
-
const slash_1 =
|
|
6
|
+
const path_1 = tslib_1.__importDefault(require("path"));
|
|
7
|
+
const slash_1 = tslib_1.__importDefault(require("slash"));
|
|
8
8
|
const projectUtils_1 = require("../../project/projectUtils");
|
|
9
9
|
const actions_1 = require("../../user/actions");
|
|
10
10
|
const vcs_1 = require("../../vcs");
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.syncProjectConfigurationAsync = void 0;
|
|
4
4
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
5
|
+
const projectUtils_1 = require("../../project/projectUtils");
|
|
5
6
|
const workflow_1 = require("../../project/workflow");
|
|
6
|
-
const
|
|
7
|
-
const UpdatesModule_1 = require("./UpdatesModule");
|
|
7
|
+
const UpdatesModule_1 = require("../../update/ios/UpdatesModule");
|
|
8
8
|
const version_1 = require("./version");
|
|
9
9
|
async function syncProjectConfigurationAsync({ projectDir, exp, buildProfile, buildSettings, }) {
|
|
10
10
|
const workflow = await (0, workflow_1.resolveWorkflowAsync)(projectDir, eas_build_job_1.Platform.IOS);
|
|
11
11
|
const { autoIncrement } = buildProfile;
|
|
12
12
|
const versionBumpStrategy = resolveVersionBumpStrategy(autoIncrement !== null && autoIncrement !== void 0 ? autoIncrement : false);
|
|
13
13
|
if (workflow === eas_build_job_1.Workflow.GENERIC) {
|
|
14
|
-
if ((0,
|
|
14
|
+
if ((0, projectUtils_1.isExpoUpdatesInstalled)(projectDir)) {
|
|
15
15
|
await (0, UpdatesModule_1.syncUpdatesConfigurationAsync)(projectDir, exp);
|
|
16
16
|
}
|
|
17
17
|
await (0, version_1.bumpVersionAsync)({ projectDir, exp, bumpStrategy: versionBumpStrategy, buildSettings });
|
|
@@ -5,9 +5,9 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const config_1 = require("@expo/config");
|
|
6
6
|
const config_plugins_1 = require("@expo/config-plugins");
|
|
7
7
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
8
|
-
const chalk_1 =
|
|
9
|
-
const path_1 =
|
|
10
|
-
const log_1 =
|
|
8
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
9
|
+
const path_1 = tslib_1.__importDefault(require("path"));
|
|
10
|
+
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
11
11
|
const workflow_1 = require("../../project/workflow");
|
|
12
12
|
const prompts_1 = require("../../prompts");
|
|
13
13
|
const plist_1 = require("../../utils/plist");
|
package/build/build/local.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.runLocalBuildAsync = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const spawn_async_1 =
|
|
6
|
-
const semver_1 =
|
|
5
|
+
const spawn_async_1 = tslib_1.__importDefault(require("@expo/spawn-async"));
|
|
6
|
+
const semver_1 = tslib_1.__importDefault(require("semver"));
|
|
7
7
|
const ora_1 = require("../ora");
|
|
8
8
|
const PLUGIN_PACKAGE_NAME = 'eas-cli-local-build-plugin';
|
|
9
|
-
const PLUGIN_PACKAGE_VERSION = '0.0.
|
|
9
|
+
const PLUGIN_PACKAGE_VERSION = '0.0.66';
|
|
10
10
|
async function runLocalBuildAsync(job, options) {
|
|
11
11
|
var _a;
|
|
12
12
|
const { command, args } = await getCommandAndArgsAsync(job);
|
package/build/build/metadata.js
CHANGED
|
@@ -4,28 +4,17 @@ exports.collectMetadataAsync = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const config_plugins_1 = require("@expo/config-plugins");
|
|
6
6
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
7
|
-
const fs_extra_1 =
|
|
8
|
-
const resolve_from_1 =
|
|
9
|
-
const log_1 =
|
|
7
|
+
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
8
|
+
const resolve_from_1 = tslib_1.__importDefault(require("resolve-from"));
|
|
9
|
+
const log_1 = tslib_1.__importDefault(require("../log"));
|
|
10
10
|
const projectUtils_1 = require("../project/projectUtils");
|
|
11
|
+
const UpdatesModule_1 = require("../update/android/UpdatesModule");
|
|
12
|
+
const UpdatesModule_2 = require("../update/ios/UpdatesModule");
|
|
11
13
|
const actions_1 = require("../user/actions");
|
|
12
14
|
const easCli_1 = require("../utils/easCli");
|
|
13
15
|
const vcs_1 = require("../vcs");
|
|
14
|
-
const UpdatesModule_1 = require("./android/UpdatesModule");
|
|
15
16
|
const version_1 = require("./android/version");
|
|
16
|
-
const UpdatesModule_2 = require("./ios/UpdatesModule");
|
|
17
17
|
const version_2 = require("./ios/version");
|
|
18
|
-
const updates_1 = require("./utils/updates");
|
|
19
|
-
// TODO(JJ): Replace this with the getRuntimeVersionNullable function in @expo/config-plugins
|
|
20
|
-
function getRuntimeVersionNullable(...[config, platform]) {
|
|
21
|
-
try {
|
|
22
|
-
return config_plugins_1.Updates.getRuntimeVersion(config, platform);
|
|
23
|
-
}
|
|
24
|
-
catch (e) {
|
|
25
|
-
log_1.default.debug(e);
|
|
26
|
-
return null;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
18
|
async function collectMetadataAsync(ctx) {
|
|
30
19
|
var _a, _b;
|
|
31
20
|
const channelOrReleaseChannel = await resolveChannelOrReleaseChannelAsync(ctx);
|
|
@@ -39,7 +28,7 @@ async function collectMetadataAsync(ctx) {
|
|
|
39
28
|
workflow: ctx.workflow,
|
|
40
29
|
credentialsSource: ctx.buildProfile.credentialsSource,
|
|
41
30
|
sdkVersion: ctx.exp.sdkVersion,
|
|
42
|
-
runtimeVersion: (_b = getRuntimeVersionNullable(ctx.exp, ctx.platform)) !== null && _b !== void 0 ? _b : undefined,
|
|
31
|
+
runtimeVersion: (_b = config_plugins_1.Updates.getRuntimeVersionNullable(ctx.exp, ctx.platform)) !== null && _b !== void 0 ? _b : undefined,
|
|
43
32
|
reactNativeVersion: await getReactNativeVersionAsync(ctx),
|
|
44
33
|
...channelOrReleaseChannel,
|
|
45
34
|
distribution,
|
|
@@ -78,7 +67,7 @@ function resolveAppIdentifier(ctx) {
|
|
|
78
67
|
}
|
|
79
68
|
}
|
|
80
69
|
async function resolveChannelOrReleaseChannelAsync(ctx) {
|
|
81
|
-
if (!(0,
|
|
70
|
+
if (!(0, projectUtils_1.isExpoUpdatesInstalled)(ctx.projectDir)) {
|
|
82
71
|
return null;
|
|
83
72
|
}
|
|
84
73
|
if (ctx.buildProfile.channel) {
|
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.runBuildAndSubmitAsync = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
6
|
-
const chalk_1 =
|
|
7
|
-
const nullthrows_1 =
|
|
6
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
7
|
+
const nullthrows_1 = tslib_1.__importDefault(require("nullthrows"));
|
|
8
8
|
const generated_1 = require("../graphql/generated");
|
|
9
9
|
const AppPlatform_1 = require("../graphql/types/AppPlatform");
|
|
10
|
-
const log_1 =
|
|
10
|
+
const log_1 = tslib_1.__importDefault(require("../log"));
|
|
11
11
|
const platform_1 = require("../platform");
|
|
12
12
|
const expoSdk_1 = require("../project/expoSdk");
|
|
13
13
|
const metroConfig_1 = require("../project/metroConfig");
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.readAppJson = exports.updateAppJsonConfigAsync = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const ExpoConfig =
|
|
6
|
-
const json_file_1 =
|
|
7
|
-
const assert_1 =
|
|
5
|
+
const ExpoConfig = tslib_1.__importStar(require("@expo/config"));
|
|
6
|
+
const json_file_1 = tslib_1.__importDefault(require("@expo/json-file"));
|
|
7
|
+
const assert_1 = tslib_1.__importDefault(require("assert"));
|
|
8
8
|
async function updateAppJsonConfigAsync({ projectDir, exp, }, modifyConfig) {
|
|
9
9
|
var _a;
|
|
10
10
|
const paths = ExpoConfig.getConfigFilePaths(projectDir);
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.logCredentialsSource = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const eas_json_1 = require("@expo/eas-json");
|
|
6
|
-
const chalk_1 =
|
|
7
|
-
const log_1 =
|
|
6
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
7
|
+
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
8
8
|
const platform_1 = require("../../platform");
|
|
9
9
|
function logCredentialsSource(credentialsSource, platform) {
|
|
10
10
|
let message = `Using ${credentialsSource} ${platform_1.requestedPlatformDisplayNames[platform]} credentials`;
|
|
@@ -4,10 +4,10 @@ exports.ensureExpoDevClientInstalledForDevClientBuildsAsync = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
6
6
|
const core_1 = require("@oclif/core");
|
|
7
|
-
const chalk_1 =
|
|
8
|
-
const resolve_from_1 =
|
|
7
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
8
|
+
const resolve_from_1 = tslib_1.__importDefault(require("resolve-from"));
|
|
9
9
|
const AppPlatform_1 = require("../../graphql/types/AppPlatform");
|
|
10
|
-
const log_1 =
|
|
10
|
+
const log_1 = tslib_1.__importStar(require("../../log"));
|
|
11
11
|
const platform_1 = require("../../platform");
|
|
12
12
|
const workflow_1 = require("../../project/workflow");
|
|
13
13
|
const prompts_1 = require("../../prompts");
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.formatGraphQLBuild = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const chalk_1 =
|
|
5
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
6
|
const generated_1 = require("../../graphql/generated");
|
|
7
7
|
const platform_1 = require("../../platform");
|
|
8
|
-
const formatFields_1 =
|
|
8
|
+
const formatFields_1 = tslib_1.__importDefault(require("../../utils/formatFields"));
|
|
9
9
|
const url_1 = require("./url");
|
|
10
10
|
function formatGraphQLBuild(build) {
|
|
11
11
|
var _a, _b;
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.printUserError = exports.printDeprecationWarnings = exports.printBuildResults = exports.printLogsUrls = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const assert_1 =
|
|
6
|
-
const chalk_1 =
|
|
7
|
-
const indent_string_1 =
|
|
8
|
-
const qrcode_terminal_1 =
|
|
5
|
+
const assert_1 = tslib_1.__importDefault(require("assert"));
|
|
6
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
7
|
+
const indent_string_1 = tslib_1.__importDefault(require("indent-string"));
|
|
8
|
+
const qrcode_terminal_1 = tslib_1.__importDefault(require("qrcode-terminal"));
|
|
9
9
|
const generated_1 = require("../../graphql/generated");
|
|
10
|
-
const log_1 =
|
|
10
|
+
const log_1 = tslib_1.__importStar(require("../../log"));
|
|
11
11
|
const platform_1 = require("../../platform");
|
|
12
12
|
const json_1 = require("../../utils/json");
|
|
13
13
|
const url_1 = require("./url");
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.reviewAndCommitChangesAsync = exports.makeProjectTarballAsync = exports.commitPromptAsync = exports.ensureRepoIsCleanAsync = exports.maybeBailOnRepoStatusAsync = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const chalk_1 =
|
|
6
|
-
const fs_extra_1 =
|
|
7
|
-
const path_1 =
|
|
8
|
-
const tar_1 =
|
|
5
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
|
+
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
7
|
+
const path_1 = tslib_1.__importDefault(require("path"));
|
|
8
|
+
const tar_1 = tslib_1.__importDefault(require("tar"));
|
|
9
9
|
const uuid_1 = require("uuid");
|
|
10
|
-
const log_1 =
|
|
10
|
+
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
11
11
|
const ora_1 = require("../../ora");
|
|
12
12
|
const prompts_1 = require("../../prompts");
|
|
13
13
|
const files_1 = require("../../utils/files");
|
package/build/build/utils/url.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getInternalDistributionInstallUrl = exports.getArtifactUrl = exports.getBuildLogsUrl = exports.getProjectDashboardUrl = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const assert_1 =
|
|
5
|
+
const assert_1 = tslib_1.__importDefault(require("assert"));
|
|
6
6
|
const api_1 = require("../../api");
|
|
7
7
|
const generated_1 = require("../../graphql/generated");
|
|
8
8
|
function getProjectDashboardUrl(accountName, projectName) {
|
|
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.bumpAppVersionAsync = exports.ensureStaticConfigExists = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const config_1 = require("@expo/config");
|
|
6
|
-
const chalk_1 =
|
|
7
|
-
const nullthrows_1 =
|
|
8
|
-
const semver_1 =
|
|
9
|
-
const log_1 =
|
|
6
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
7
|
+
const nullthrows_1 = tslib_1.__importDefault(require("nullthrows"));
|
|
8
|
+
const semver_1 = tslib_1.__importDefault(require("semver"));
|
|
9
|
+
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
10
10
|
const prompts_1 = require("../../prompts");
|
|
11
11
|
const appJson_1 = require("./appJson");
|
|
12
12
|
function ensureStaticConfigExists(projectDir) {
|
package/build/build/validate.js
CHANGED
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.checkGoogleServicesFileAsync = exports.checkNodeEnvVariable = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
6
|
-
const fs_extra_1 =
|
|
7
|
-
const path_1 =
|
|
8
|
-
const log_1 =
|
|
6
|
+
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
7
|
+
const path_1 = tslib_1.__importDefault(require("path"));
|
|
8
|
+
const log_1 = tslib_1.__importStar(require("../log"));
|
|
9
9
|
const vcs_1 = require("../vcs");
|
|
10
10
|
function checkNodeEnvVariable(ctx) {
|
|
11
11
|
var _a;
|
|
@@ -3,14 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const eas_json_1 = require("@expo/eas-json");
|
|
5
5
|
const core_1 = require("@oclif/core");
|
|
6
|
-
const semver_1 =
|
|
6
|
+
const semver_1 = tslib_1.__importDefault(require("semver"));
|
|
7
7
|
const rudderstackClient_1 = require("../analytics/rudderstackClient");
|
|
8
8
|
const projectUtils_1 = require("../project/projectUtils");
|
|
9
9
|
const User_1 = require("../user/User");
|
|
10
10
|
const actions_1 = require("../user/actions");
|
|
11
11
|
const easCli_1 = require("../utils/easCli");
|
|
12
12
|
const vcs_1 = require("../vcs");
|
|
13
|
-
const git_1 =
|
|
13
|
+
const git_1 = tslib_1.__importDefault(require("../vcs/clients/git"));
|
|
14
14
|
class EasCommand extends core_1.Command {
|
|
15
15
|
constructor() {
|
|
16
16
|
super(...arguments);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const EasCommand_1 =
|
|
5
|
-
const log_1 =
|
|
4
|
+
const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
|
|
5
|
+
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
6
6
|
const actions_1 = require("../../user/actions");
|
|
7
7
|
class AccountLogin extends EasCommand_1.default {
|
|
8
8
|
constructor() {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const EasCommand_1 =
|
|
5
|
-
const log_1 =
|
|
4
|
+
const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
|
|
5
|
+
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
6
6
|
const User_1 = require("../../user/User");
|
|
7
7
|
class AccountLogout extends EasCommand_1.default {
|
|
8
8
|
constructor() {
|