eas-cli 13.4.1 → 14.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +73 -73
- package/build/ApiV2Error.js +5 -1
- package/build/analytics/AnalyticsManager.js +5 -4
- package/build/api.js +1 -0
- package/build/branch/actions/SelectBranch.js +1 -0
- package/build/branch/queries.d.ts +3 -3
- package/build/branch/queries.js +7 -5
- package/build/build/validate.js +6 -3
- package/build/channel/actions/SelectChannel.js +1 -0
- package/build/channel/queries.d.ts +0 -1
- package/build/channel/queries.js +11 -16
- package/build/commandUtils/EasCommand.js +100 -90
- package/build/commandUtils/builds.d.ts +1 -0
- package/build/commandUtils/builds.js +3 -0
- package/build/commandUtils/context/contextUtils/findProjectDirAndVerifyProjectSetupAsync.js +1 -1
- package/build/commandUtils/context/contextUtils/getProjectIdAsync.js +0 -2
- package/build/commandUtils/gating/FeatureGateEnvOverrides.js +1 -1
- package/build/commandUtils/gating/FeatureGating.js +2 -0
- package/build/commands/account/login.js +16 -18
- package/build/commands/account/logout.js +6 -8
- package/build/commands/account/view.js +8 -10
- package/build/commands/analytics.js +2 -2
- package/build/commands/branch/create.js +18 -20
- package/build/commands/branch/delete.js +17 -19
- package/build/commands/branch/list.js +11 -13
- package/build/commands/branch/publish.js +2 -2
- package/build/commands/branch/rename.js +18 -20
- package/build/commands/branch/view.js +19 -21
- package/build/commands/build/cancel.js +22 -24
- package/build/commands/build/configure.js +15 -17
- package/build/commands/build/delete.js +22 -24
- package/build/commands/build/index.js +81 -83
- package/build/commands/build/inspect.js +42 -44
- package/build/commands/build/internal.js +32 -34
- package/build/commands/build/list.js +58 -60
- package/build/commands/build/resign.js +36 -38
- package/build/commands/build/run.js +36 -38
- package/build/commands/build/version/get.js +21 -23
- package/build/commands/build/version/set.js +20 -22
- package/build/commands/build/version/sync.js +20 -22
- package/build/commands/build/view.js +12 -14
- package/build/commands/channel/create.js +17 -19
- package/build/commands/channel/delete.js +18 -20
- package/build/commands/channel/edit.js +20 -22
- package/build/commands/channel/list.js +12 -14
- package/build/commands/channel/pause.js +20 -22
- package/build/commands/channel/resume.js +20 -22
- package/build/commands/channel/rollout.js +74 -76
- package/build/commands/channel/view.js +18 -20
- package/build/commands/config.js +21 -23
- package/build/commands/credentials/configure-build.js +21 -23
- package/build/commands/credentials/index.js +13 -15
- package/build/commands/device/create.js +6 -8
- package/build/commands/device/delete.js +12 -14
- package/build/commands/device/list.js +12 -14
- package/build/commands/device/rename.js +13 -15
- package/build/commands/device/view.js +8 -10
- package/build/commands/diagnostics.js +6 -8
- package/build/commands/env/create.js +39 -41
- package/build/commands/env/delete.js +25 -27
- package/build/commands/env/exec.js +22 -24
- package/build/commands/env/get.js +26 -28
- package/build/commands/env/link.js +27 -29
- package/build/commands/env/list.js +27 -29
- package/build/commands/env/pull.js +23 -25
- package/build/commands/env/push.js +21 -23
- package/build/commands/env/unlink.js +23 -25
- package/build/commands/env/update.js +38 -40
- package/build/commands/fingerprint/compare.d.ts +28 -0
- package/build/commands/fingerprint/compare.js +324 -0
- package/build/commands/metadata/lint.js +18 -20
- package/build/commands/metadata/pull.js +15 -17
- package/build/commands/metadata/push.js +15 -17
- package/build/commands/open.js +6 -8
- package/build/commands/project/info.js +6 -8
- package/build/commands/project/init.js +26 -30
- package/build/commands/project/onboarding.js +10 -12
- package/build/commands/secret/create.js +30 -32
- package/build/commands/secret/delete.js +14 -16
- package/build/commands/secret/list.js +7 -9
- package/build/commands/secret/push.js +23 -25
- package/build/commands/submit/internal.js +23 -25
- package/build/commands/submit.js +54 -56
- package/build/commands/update/configure.js +18 -20
- package/build/commands/update/delete.js +16 -18
- package/build/commands/update/edit.js +25 -27
- package/build/commands/update/index.js +65 -67
- package/build/commands/update/list.js +21 -23
- package/build/commands/update/republish.js +45 -47
- package/build/commands/update/roll-back-to-embedded.d.ts +2 -1
- package/build/commands/update/roll-back-to-embedded.js +92 -84
- package/build/commands/update/rollback.js +7 -7
- package/build/commands/update/view.js +16 -18
- package/build/commands/webhook/create.js +20 -22
- package/build/commands/webhook/delete.js +17 -19
- package/build/commands/webhook/list.js +14 -16
- package/build/commands/webhook/update.js +23 -25
- package/build/commands/webhook/view.js +13 -15
- package/build/commands/worker/alias.js +30 -32
- package/build/commands/worker/deploy.js +38 -40
- package/build/commands/workflow/create.js +16 -18
- package/build/commands/workflow/run.js +13 -15
- package/build/commands/workflow/validate.js +18 -20
- package/build/credentials/android/AndroidCredentialsProvider.js +3 -1
- package/build/credentials/android/actions/AssignFcm.js +1 -0
- package/build/credentials/android/actions/AssignGoogleServiceAccountKeyForFcmV1.js +1 -0
- package/build/credentials/android/actions/AssignGoogleServiceAccountKeyForSubmissions.js +1 -0
- package/build/credentials/android/actions/CreateFcm.js +1 -0
- package/build/credentials/android/actions/CreateGoogleServiceAccountKey.js +1 -0
- package/build/credentials/android/actions/CreateKeystore.js +1 -0
- package/build/credentials/android/actions/DownloadKeystore.js +2 -0
- package/build/credentials/android/actions/RemoveFcm.js +1 -0
- package/build/credentials/android/actions/RemoveGoogleServiceAccountKey.js +2 -0
- package/build/credentials/android/actions/RemoveKeystore.js +1 -0
- package/build/credentials/android/actions/SetUpBuildCredentials.js +1 -0
- package/build/credentials/android/actions/SetUpBuildCredentialsFromCredentialsJson.js +1 -0
- package/build/credentials/android/actions/SetUpGoogleServiceAccountKeyForFcmV1.js +1 -0
- package/build/credentials/android/actions/SetUpGoogleServiceAccountKeyForSubmissions.js +1 -0
- package/build/credentials/android/actions/UseExistingGoogleServiceAccountKey.js +1 -0
- package/build/credentials/context.js +14 -5
- package/build/credentials/errors.js +1 -0
- package/build/credentials/ios/IosCredentialsProvider.js +3 -1
- package/build/credentials/ios/actions/AssignAscApiKey.js +1 -0
- package/build/credentials/ios/actions/AssignPushKey.js +1 -0
- package/build/credentials/ios/actions/ConfigureProvisioningProfile.js +4 -0
- package/build/credentials/ios/actions/CreateAscApiKey.js +1 -0
- package/build/credentials/ios/actions/CreateDistributionCertificate.js +1 -0
- package/build/credentials/ios/actions/CreateProvisioningProfile.js +3 -0
- package/build/credentials/ios/actions/CreatePushKey.js +1 -0
- package/build/credentials/ios/actions/RemoveAscApiKey.js +2 -0
- package/build/credentials/ios/actions/RemoveDistributionCertificate.js +3 -0
- package/build/credentials/ios/actions/RemoveProvisioningProfile.js +2 -0
- package/build/credentials/ios/actions/RemovePushKey.js +2 -0
- package/build/credentials/ios/actions/SetUpAdhocProvisioningProfile.js +1 -0
- package/build/credentials/ios/actions/SetUpAscApiKey.js +9 -7
- package/build/credentials/ios/actions/SetUpBuildCredentials.js +1 -0
- package/build/credentials/ios/actions/SetUpBuildCredentialsFromCredentialsJson.js +3 -0
- package/build/credentials/ios/actions/SetUpDistributionCertificate.js +3 -0
- package/build/credentials/ios/actions/SetUpInternalProvisioningProfile.js +1 -0
- package/build/credentials/ios/actions/SetUpProvisioningProfile.js +3 -0
- package/build/credentials/ios/actions/SetUpPushKey.js +1 -0
- package/build/credentials/ios/actions/SetUpTargetBuildCredentials.js +1 -0
- package/build/credentials/ios/actions/SetUpTargetBuildCredentialsFromCredentialsJson.js +3 -0
- package/build/credentials/ios/actions/UpdateCredentialsJson.js +3 -0
- package/build/credentials/ios/appstore/AppStoreApi.js +2 -0
- package/build/credentials/manager/CheckBuildProfileFlagAgainstEasJson.js +3 -0
- package/build/credentials/manager/CreateAndroidBuildCredentials.js +1 -0
- package/build/credentials/manager/ManageAndroid.js +2 -0
- package/build/credentials/manager/ManageIos.js +2 -0
- package/build/credentials/manager/SelectAndroidBuildCredentials.js +2 -0
- package/build/credentials/manager/SelectBuildProfileFromEasJson.js +2 -0
- package/build/credentials/manager/SelectIosDistributionTypeGraphqlFromBuildProfile.js +1 -0
- package/build/credentials/manager/SelectPlatform.js +7 -0
- package/build/credentials/manager/SetDefaultAndroidKeystore.js +1 -0
- package/build/credentials/manager/SetUpAndroidBuildCredentials.js +1 -0
- package/build/credentials/manager/SetUpBuildCredentialsCommandAction.js +9 -0
- package/build/credentials/manager/SetUpIosBuildCredentials.js +1 -0
- package/build/devices/actions/create/action.js +4 -0
- package/build/devices/manager.js +4 -0
- package/build/fetch.js +1 -0
- package/build/graphql/generated.d.ts +179 -3
- package/build/graphql/generated.js +8 -3
- package/build/graphql/mutations/AppMutation.d.ts +0 -2
- package/build/graphql/queries/BuildQuery.d.ts +4 -1
- package/build/graphql/queries/BuildQuery.js +19 -0
- package/build/graphql/types/Build.d.ts +1 -0
- package/build/graphql/types/Build.js +15 -1
- package/build/graphql/types/Fingerprint.d.ts +1 -0
- package/build/graphql/types/Fingerprint.js +12 -0
- package/build/log.js +2 -2
- package/build/metadata/apple/config/reader.js +1 -0
- package/build/metadata/apple/config/writer.js +1 -0
- package/build/metadata/apple/tasks/age-rating.js +1 -4
- package/build/metadata/apple/tasks/app-info.js +1 -4
- package/build/metadata/apple/tasks/app-review-detail.js +1 -4
- package/build/metadata/apple/tasks/app-version.js +2 -1
- package/build/metadata/errors.js +5 -0
- package/build/project/fetchOrCreateProjectIDForWriteToConfigWithConfirmationAsync.d.ts +0 -2
- package/build/project/fetchOrCreateProjectIDForWriteToConfigWithConfirmationAsync.js +0 -1
- package/build/project/projectUtils.d.ts +1 -2
- package/build/project/projectUtils.js +1 -14
- package/build/rollout/actions/CreateRollout.d.ts +9 -10
- package/build/rollout/actions/CreateRollout.js +2 -0
- package/build/rollout/actions/EditRollout.d.ts +2 -3
- package/build/rollout/actions/EditRollout.js +2 -0
- package/build/rollout/actions/EndRollout.d.ts +4 -6
- package/build/rollout/actions/EndRollout.js +2 -0
- package/build/rollout/actions/ManageRollout.d.ts +2 -3
- package/build/rollout/actions/ManageRollout.js +2 -0
- package/build/rollout/actions/NonInteractiveRollout.d.ts +6 -27
- package/build/rollout/actions/NonInteractiveRollout.js +1 -0
- package/build/rollout/actions/RolloutMainMenu.d.ts +6 -7
- package/build/rollout/actions/RolloutMainMenu.js +1 -0
- package/build/rollout/actions/SelectRuntime.d.ts +6 -20
- package/build/rollout/actions/SelectRuntime.js +3 -0
- package/build/submit/BaseSubmitter.js +4 -0
- package/build/submit/android/AndroidSubmitCommand.js +1 -0
- package/build/submit/ios/IosSubmitCommand.js +1 -0
- package/build/update/configure.js +2 -1
- package/build/update/getBranchFromChannelNameAndCreateAndLinkIfNotExistsAsync.js +3 -3
- package/build/user/SessionManager.js +2 -0
- package/build/utils/fingerprint.d.ts +97 -0
- package/build/utils/fingerprint.js +5 -0
- package/build/utils/fingerprintCli.d.ts +5 -7
- package/build/utils/fingerprintCli.js +11 -1
- package/build/utils/fingerprintDiff.d.ts +33 -0
- package/build/utils/fingerprintDiff.js +122 -0
- package/build/vcs/clients/git.js +2 -1
- package/build/vcs/local.js +2 -1
- package/oclif.manifest.json +51 -7
- package/package.json +15 -13
package/build/devices/manager.js
CHANGED
|
@@ -18,6 +18,7 @@ The provisioning profile needs to contain the UDIDs (unique identifiers) of your
|
|
|
18
18
|
First of all, choose the Expo account under which you want to register your devices.
|
|
19
19
|
Later, authenticate with Apple and choose your desired Apple Team (if your Apple ID has access to multiple teams).`;
|
|
20
20
|
class DeviceManager {
|
|
21
|
+
ctx;
|
|
21
22
|
constructor(ctx) {
|
|
22
23
|
this.ctx = ctx;
|
|
23
24
|
}
|
|
@@ -40,6 +41,9 @@ class DeviceManager {
|
|
|
40
41
|
}
|
|
41
42
|
exports.default = DeviceManager;
|
|
42
43
|
class AccountResolver {
|
|
44
|
+
graphqlClient;
|
|
45
|
+
projectId;
|
|
46
|
+
user;
|
|
43
47
|
constructor(graphqlClient, projectId, user) {
|
|
44
48
|
this.graphqlClient = graphqlClient;
|
|
45
49
|
this.projectId = projectId;
|
package/build/fetch.js
CHANGED
|
@@ -6,6 +6,7 @@ const https_proxy_agent_1 = tslib_1.__importDefault(require("https-proxy-agent")
|
|
|
6
6
|
const node_fetch_1 = tslib_1.__importDefault(require("node-fetch"));
|
|
7
7
|
tslib_1.__exportStar(require("node-fetch"), exports);
|
|
8
8
|
class RequestError extends Error {
|
|
9
|
+
response;
|
|
9
10
|
constructor(message, response) {
|
|
10
11
|
super(message);
|
|
11
12
|
this.response = response;
|
|
@@ -642,6 +642,7 @@ export type AccountSsoConfigurationPublicDataQueryPublicDataByAccountNameArgs =
|
|
|
642
642
|
accountName: Scalars['String']['input'];
|
|
643
643
|
};
|
|
644
644
|
export declare enum AccountUploadSessionType {
|
|
645
|
+
ProfileImageUpload = "PROFILE_IMAGE_UPLOAD",
|
|
645
646
|
WorkflowsProjectSources = "WORKFLOWS_PROJECT_SOURCES"
|
|
646
647
|
}
|
|
647
648
|
export type AccountUsageEasBuildMetadata = {
|
|
@@ -1160,8 +1161,9 @@ export type App = Project & {
|
|
|
1160
1161
|
* @deprecated Classic updates have been deprecated.
|
|
1161
1162
|
*/
|
|
1162
1163
|
playStoreUrl?: Maybe<Scalars['String']['output']>;
|
|
1163
|
-
/** @deprecated
|
|
1164
|
+
/** @deprecated No longer supported */
|
|
1164
1165
|
privacy: Scalars['String']['output'];
|
|
1166
|
+
/** @deprecated No longer supported */
|
|
1165
1167
|
privacySetting: AppPrivacy;
|
|
1166
1168
|
/**
|
|
1167
1169
|
* Whether there have been any classic update publishes
|
|
@@ -1508,7 +1510,6 @@ export type AppInfoInput = {
|
|
|
1508
1510
|
export type AppInput = {
|
|
1509
1511
|
accountId: Scalars['ID']['input'];
|
|
1510
1512
|
appInfo?: InputMaybe<AppInfoInput>;
|
|
1511
|
-
privacy: AppPrivacy;
|
|
1512
1513
|
projectName: Scalars['String']['input'];
|
|
1513
1514
|
};
|
|
1514
1515
|
export type AppInsights = {
|
|
@@ -1746,6 +1747,9 @@ export type AppUpdatesConnection = {
|
|
|
1746
1747
|
edges: Array<AppUpdateEdge>;
|
|
1747
1748
|
pageInfo: PageInfo;
|
|
1748
1749
|
};
|
|
1750
|
+
export declare enum AppUploadSessionType {
|
|
1751
|
+
ProfileImageUpload = "PROFILE_IMAGE_UPLOAD"
|
|
1752
|
+
}
|
|
1749
1753
|
/** Represents Play Store/App Store version of an application */
|
|
1750
1754
|
export type AppVersion = {
|
|
1751
1755
|
__typename?: 'AppVersion';
|
|
@@ -1791,7 +1795,6 @@ export type AppWithGithubRepositoryInput = {
|
|
|
1791
1795
|
accountId: Scalars['ID']['input'];
|
|
1792
1796
|
appInfo?: InputMaybe<AppInfoInput>;
|
|
1793
1797
|
installationIdentifier?: InputMaybe<Scalars['String']['input']>;
|
|
1794
|
-
privacy: AppPrivacy;
|
|
1795
1798
|
projectName: Scalars['String']['input'];
|
|
1796
1799
|
};
|
|
1797
1800
|
export type AppWorkflowRunEdge = {
|
|
@@ -2276,6 +2279,7 @@ export type Build = ActivityTimelineProjectActivity & BuildOrBuildJob & {
|
|
|
2276
2279
|
error?: Maybe<BuildError>;
|
|
2277
2280
|
estimatedWaitTimeLeftSeconds?: Maybe<Scalars['Int']['output']>;
|
|
2278
2281
|
expirationDate?: Maybe<Scalars['DateTime']['output']>;
|
|
2282
|
+
fingerprint?: Maybe<Fingerprint>;
|
|
2279
2283
|
gitCommitHash?: Maybe<Scalars['String']['output']>;
|
|
2280
2284
|
gitCommitMessage?: Maybe<Scalars['String']['output']>;
|
|
2281
2285
|
gitRef?: Maybe<Scalars['String']['output']>;
|
|
@@ -2309,6 +2313,7 @@ export type Build = ActivityTimelineProjectActivity & BuildOrBuildJob & {
|
|
|
2309
2313
|
reactNativeVersion?: Maybe<Scalars['String']['output']>;
|
|
2310
2314
|
releaseChannel?: Maybe<Scalars['String']['output']>;
|
|
2311
2315
|
requiredPackageManager?: Maybe<Scalars['String']['output']>;
|
|
2316
|
+
resolvedEnvironment?: Maybe<EnvironmentVariableEnvironment>;
|
|
2312
2317
|
/**
|
|
2313
2318
|
* The builder resource class requested by the developer
|
|
2314
2319
|
* @deprecated Use resourceClassDisplayName instead
|
|
@@ -2427,6 +2432,7 @@ export type BuildFilter = {
|
|
|
2427
2432
|
channel?: InputMaybe<Scalars['String']['input']>;
|
|
2428
2433
|
distribution?: InputMaybe<DistributionType>;
|
|
2429
2434
|
gitCommitHash?: InputMaybe<Scalars['String']['input']>;
|
|
2435
|
+
hasFingerprint?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2430
2436
|
platform?: InputMaybe<AppPlatform>;
|
|
2431
2437
|
runtimeVersion?: InputMaybe<Scalars['String']['input']>;
|
|
2432
2438
|
sdkVersion?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -2437,6 +2443,7 @@ export type BuildFilterInput = {
|
|
|
2437
2443
|
channel?: InputMaybe<Scalars['String']['input']>;
|
|
2438
2444
|
developmentClient?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2439
2445
|
distributions?: InputMaybe<Array<DistributionType>>;
|
|
2446
|
+
hasFingerprint?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2440
2447
|
platforms?: InputMaybe<Array<AppPlatform>>;
|
|
2441
2448
|
releaseChannel?: InputMaybe<Scalars['String']['input']>;
|
|
2442
2449
|
runtimeVersion?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -5773,6 +5780,8 @@ export type UploadSession = {
|
|
|
5773
5780
|
__typename?: 'UploadSession';
|
|
5774
5781
|
/** Create an Upload Session for a specific account */
|
|
5775
5782
|
createAccountScopedUploadSession: Scalars['JSONObject']['output'];
|
|
5783
|
+
/** Create an Upload Session for a specific app */
|
|
5784
|
+
createAppScopedUploadSession: Scalars['JSONObject']['output'];
|
|
5776
5785
|
/** Create an Upload Session */
|
|
5777
5786
|
createUploadSession: Scalars['JSONObject']['output'];
|
|
5778
5787
|
};
|
|
@@ -5780,6 +5789,10 @@ export type UploadSessionCreateAccountScopedUploadSessionArgs = {
|
|
|
5780
5789
|
accountID: Scalars['ID']['input'];
|
|
5781
5790
|
type: AccountUploadSessionType;
|
|
5782
5791
|
};
|
|
5792
|
+
export type UploadSessionCreateAppScopedUploadSessionArgs = {
|
|
5793
|
+
appID: Scalars['ID']['input'];
|
|
5794
|
+
type: AppUploadSessionType;
|
|
5795
|
+
};
|
|
5783
5796
|
export type UploadSessionCreateUploadSessionArgs = {
|
|
5784
5797
|
type: UploadSessionType;
|
|
5785
5798
|
};
|
|
@@ -12260,6 +12273,89 @@ export type BuildsWithSubmissionsByIdQuery = {
|
|
|
12260
12273
|
};
|
|
12261
12274
|
};
|
|
12262
12275
|
};
|
|
12276
|
+
export type BuildsWithFingerprintByIdQueryVariables = Exact<{
|
|
12277
|
+
buildId: Scalars['ID']['input'];
|
|
12278
|
+
}>;
|
|
12279
|
+
export type BuildsWithFingerprintByIdQuery = {
|
|
12280
|
+
__typename?: 'RootQuery';
|
|
12281
|
+
builds: {
|
|
12282
|
+
__typename?: 'BuildQuery';
|
|
12283
|
+
byId: {
|
|
12284
|
+
__typename?: 'Build';
|
|
12285
|
+
id: string;
|
|
12286
|
+
status: BuildStatus;
|
|
12287
|
+
platform: AppPlatform;
|
|
12288
|
+
channel?: string | null;
|
|
12289
|
+
distribution?: DistributionType | null;
|
|
12290
|
+
iosEnterpriseProvisioning?: BuildIosEnterpriseProvisioning | null;
|
|
12291
|
+
buildProfile?: string | null;
|
|
12292
|
+
sdkVersion?: string | null;
|
|
12293
|
+
appVersion?: string | null;
|
|
12294
|
+
appBuildVersion?: string | null;
|
|
12295
|
+
runtimeVersion?: string | null;
|
|
12296
|
+
gitCommitHash?: string | null;
|
|
12297
|
+
gitCommitMessage?: string | null;
|
|
12298
|
+
initialQueuePosition?: number | null;
|
|
12299
|
+
queuePosition?: number | null;
|
|
12300
|
+
estimatedWaitTimeLeftSeconds?: number | null;
|
|
12301
|
+
priority: BuildPriority;
|
|
12302
|
+
createdAt: any;
|
|
12303
|
+
updatedAt: any;
|
|
12304
|
+
message?: string | null;
|
|
12305
|
+
completedAt?: any | null;
|
|
12306
|
+
expirationDate?: any | null;
|
|
12307
|
+
isForIosSimulator: boolean;
|
|
12308
|
+
fingerprint?: {
|
|
12309
|
+
__typename?: 'Fingerprint';
|
|
12310
|
+
id: string;
|
|
12311
|
+
hash: string;
|
|
12312
|
+
debugInfoUrl?: string | null;
|
|
12313
|
+
} | null;
|
|
12314
|
+
error?: {
|
|
12315
|
+
__typename?: 'BuildError';
|
|
12316
|
+
errorCode: string;
|
|
12317
|
+
message: string;
|
|
12318
|
+
docsUrl?: string | null;
|
|
12319
|
+
} | null;
|
|
12320
|
+
artifacts?: {
|
|
12321
|
+
__typename?: 'BuildArtifacts';
|
|
12322
|
+
buildUrl?: string | null;
|
|
12323
|
+
xcodeBuildLogsUrl?: string | null;
|
|
12324
|
+
applicationArchiveUrl?: string | null;
|
|
12325
|
+
buildArtifactsUrl?: string | null;
|
|
12326
|
+
} | null;
|
|
12327
|
+
initiatingActor?: {
|
|
12328
|
+
__typename: 'Robot';
|
|
12329
|
+
id: string;
|
|
12330
|
+
displayName: string;
|
|
12331
|
+
} | {
|
|
12332
|
+
__typename: 'SSOUser';
|
|
12333
|
+
id: string;
|
|
12334
|
+
displayName: string;
|
|
12335
|
+
} | {
|
|
12336
|
+
__typename: 'User';
|
|
12337
|
+
id: string;
|
|
12338
|
+
displayName: string;
|
|
12339
|
+
} | null;
|
|
12340
|
+
project: {
|
|
12341
|
+
__typename: 'App';
|
|
12342
|
+
id: string;
|
|
12343
|
+
name: string;
|
|
12344
|
+
slug: string;
|
|
12345
|
+
ownerAccount: {
|
|
12346
|
+
__typename?: 'Account';
|
|
12347
|
+
id: string;
|
|
12348
|
+
name: string;
|
|
12349
|
+
};
|
|
12350
|
+
} | {
|
|
12351
|
+
__typename: 'Snack';
|
|
12352
|
+
id: string;
|
|
12353
|
+
name: string;
|
|
12354
|
+
slug: string;
|
|
12355
|
+
};
|
|
12356
|
+
};
|
|
12357
|
+
};
|
|
12358
|
+
};
|
|
12263
12359
|
export type ViewBuildsOnAppQueryVariables = Exact<{
|
|
12264
12360
|
appId: Scalars['String']['input'];
|
|
12265
12361
|
offset: Scalars['Int']['input'];
|
|
@@ -13578,6 +13674,80 @@ export type BuildWithSubmissionsFragment = {
|
|
|
13578
13674
|
slug: string;
|
|
13579
13675
|
};
|
|
13580
13676
|
};
|
|
13677
|
+
export type BuildWithFingerprintFragment = {
|
|
13678
|
+
__typename?: 'Build';
|
|
13679
|
+
id: string;
|
|
13680
|
+
status: BuildStatus;
|
|
13681
|
+
platform: AppPlatform;
|
|
13682
|
+
channel?: string | null;
|
|
13683
|
+
distribution?: DistributionType | null;
|
|
13684
|
+
iosEnterpriseProvisioning?: BuildIosEnterpriseProvisioning | null;
|
|
13685
|
+
buildProfile?: string | null;
|
|
13686
|
+
sdkVersion?: string | null;
|
|
13687
|
+
appVersion?: string | null;
|
|
13688
|
+
appBuildVersion?: string | null;
|
|
13689
|
+
runtimeVersion?: string | null;
|
|
13690
|
+
gitCommitHash?: string | null;
|
|
13691
|
+
gitCommitMessage?: string | null;
|
|
13692
|
+
initialQueuePosition?: number | null;
|
|
13693
|
+
queuePosition?: number | null;
|
|
13694
|
+
estimatedWaitTimeLeftSeconds?: number | null;
|
|
13695
|
+
priority: BuildPriority;
|
|
13696
|
+
createdAt: any;
|
|
13697
|
+
updatedAt: any;
|
|
13698
|
+
message?: string | null;
|
|
13699
|
+
completedAt?: any | null;
|
|
13700
|
+
expirationDate?: any | null;
|
|
13701
|
+
isForIosSimulator: boolean;
|
|
13702
|
+
fingerprint?: {
|
|
13703
|
+
__typename?: 'Fingerprint';
|
|
13704
|
+
id: string;
|
|
13705
|
+
hash: string;
|
|
13706
|
+
debugInfoUrl?: string | null;
|
|
13707
|
+
} | null;
|
|
13708
|
+
error?: {
|
|
13709
|
+
__typename?: 'BuildError';
|
|
13710
|
+
errorCode: string;
|
|
13711
|
+
message: string;
|
|
13712
|
+
docsUrl?: string | null;
|
|
13713
|
+
} | null;
|
|
13714
|
+
artifacts?: {
|
|
13715
|
+
__typename?: 'BuildArtifacts';
|
|
13716
|
+
buildUrl?: string | null;
|
|
13717
|
+
xcodeBuildLogsUrl?: string | null;
|
|
13718
|
+
applicationArchiveUrl?: string | null;
|
|
13719
|
+
buildArtifactsUrl?: string | null;
|
|
13720
|
+
} | null;
|
|
13721
|
+
initiatingActor?: {
|
|
13722
|
+
__typename: 'Robot';
|
|
13723
|
+
id: string;
|
|
13724
|
+
displayName: string;
|
|
13725
|
+
} | {
|
|
13726
|
+
__typename: 'SSOUser';
|
|
13727
|
+
id: string;
|
|
13728
|
+
displayName: string;
|
|
13729
|
+
} | {
|
|
13730
|
+
__typename: 'User';
|
|
13731
|
+
id: string;
|
|
13732
|
+
displayName: string;
|
|
13733
|
+
} | null;
|
|
13734
|
+
project: {
|
|
13735
|
+
__typename: 'App';
|
|
13736
|
+
id: string;
|
|
13737
|
+
name: string;
|
|
13738
|
+
slug: string;
|
|
13739
|
+
ownerAccount: {
|
|
13740
|
+
__typename?: 'Account';
|
|
13741
|
+
id: string;
|
|
13742
|
+
name: string;
|
|
13743
|
+
};
|
|
13744
|
+
} | {
|
|
13745
|
+
__typename: 'Snack';
|
|
13746
|
+
id: string;
|
|
13747
|
+
name: string;
|
|
13748
|
+
slug: string;
|
|
13749
|
+
};
|
|
13750
|
+
};
|
|
13581
13751
|
export type EnvironmentSecretFragment = {
|
|
13582
13752
|
__typename?: 'EnvironmentSecret';
|
|
13583
13753
|
id: string;
|
|
@@ -13609,6 +13779,12 @@ export type EnvironmentVariableWithSecretFragment = {
|
|
|
13609
13779
|
visibility: EnvironmentVariableVisibility;
|
|
13610
13780
|
type: EnvironmentSecretType;
|
|
13611
13781
|
};
|
|
13782
|
+
export type FingerprintFragment = {
|
|
13783
|
+
__typename?: 'Fingerprint';
|
|
13784
|
+
id: string;
|
|
13785
|
+
hash: string;
|
|
13786
|
+
debugInfoUrl?: string | null;
|
|
13787
|
+
};
|
|
13612
13788
|
export type RuntimeFragment = {
|
|
13613
13789
|
__typename?: 'Runtime';
|
|
13614
13790
|
id: string;
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* For more info and docs, visit https://graphql-code-generator.com/
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
11
|
-
exports.WorkflowRunStatus = exports.WorkflowProjectSourceType = exports.WorkflowJobType = exports.WorkflowJobStatus = exports.WorkerLoggerLevel = exports.WorkerDeploymentTier = exports.WorkerDeploymentLogLevel = exports.WebhookType = exports.UserEntityTypeName = exports.UserAgentOs = exports.UserAgentBrowser = void 0;
|
|
9
|
+
exports.Feature = exports.Experiment = exports.EnvironmentVariableVisibility = exports.EnvironmentVariableScope = exports.EnvironmentVariableEnvironment = exports.EnvironmentSecretType = exports.EntityTypeName = exports.EasTotalPlanEnablementUnit = exports.EasServiceMetric = exports.EasService = exports.EasBuildWaiverType = exports.EasBuildDeprecationInfoType = exports.EasBuildBillingResourceClass = exports.DistributionType = exports.CustomDomainStatus = exports.CustomDomainDnsRecordType = exports.CrashSampleFor = exports.ContinentCode = exports.BuildWorkflow = exports.BuildTrigger = exports.BuildStatus = exports.BuildRetryDisabledReason = exports.BuildResourceClass = exports.BuildPriority = exports.BuildPhase = exports.BuildMode = exports.BuildLimitThresholdExceededMetadataType = exports.BuildIosEnterpriseProvisioning = exports.BuildCredentialsSource = exports.BackgroundJobState = exports.BackgroundJobResultType = exports.AuthProviderIdentifier = exports.AuthProtocolType = exports.AuditLogsExportFormat = exports.AssetMetadataStatus = exports.AppsFilter = exports.AppleTeamType = exports.AppleDeviceClass = exports.AppUploadSessionType = exports.AppStoreConnectUserRole = exports.AppSort = exports.AppPrivacy = exports.AppPlatform = exports.AppInternalDistributionBuildPrivacy = exports.AndroidKeystoreType = exports.AndroidFcmVersion = exports.AndroidBuildType = exports.ActivityTimelineProjectActivityType = exports.AccountUploadSessionType = exports.AccountAppsSortByField = void 0;
|
|
10
|
+
exports.UsageMetricType = exports.UploadSessionType = exports.TargetEntityMutationType = exports.SubmissionStatus = exports.SubmissionPriority = exports.SubmissionArchiveSourceType = exports.SubmissionAndroidTrack = exports.SubmissionAndroidReleaseStatus = exports.SubmissionAndroidArchiveType = exports.StatuspageServiceStatus = exports.StatuspageServiceName = exports.StatuspageIncidentStatus = exports.StatuspageIncidentImpact = exports.StandardOffer = exports.SecondFactorMethod = exports.Role = exports.ResponseType = exports.ResponseStatusType = exports.ResponseCacheStatus = exports.ResourceClassExperiment = exports.RequestsOrderByField = exports.RequestsOrderByDirection = exports.RequestMethod = exports.ProjectArchiveSourceType = exports.Permission = exports.Order = exports.OnboardingEnvironment = exports.OnboardingDeviceType = exports.OfferType = exports.NotificationType = exports.NotificationEvent = exports.MailchimpTag = exports.MailchimpAudience = exports.JobRunStatus = exports.JobRunPriority = exports.IosSchemeBuildConfiguration = exports.IosManagedBuildType = exports.IosDistributionType = exports.IosBuildType = exports.InvoiceDiscountType = exports.InsightsFilterType = exports.GitHubJobRunTriggerType = exports.GitHubJobRunTriggerRunStatus = exports.GitHubJobRunJobType = exports.GitHubBuildTriggerType = exports.GitHubBuildTriggerRunStatus = exports.GitHubBuildTriggerExecutionBehavior = exports.GitHubAppInstallationStatus = exports.GitHubAppEnvironment = exports.FingerprintSourceType = void 0;
|
|
11
|
+
exports.WorkflowRunStatus = exports.WorkflowProjectSourceType = exports.WorkflowJobType = exports.WorkflowJobStatus = exports.WorkerLoggerLevel = exports.WorkerDeploymentTier = exports.WorkerDeploymentLogLevel = exports.WebhookType = exports.UserEntityTypeName = exports.UserAgentOs = exports.UserAgentBrowser = exports.UsageMetricsGranularity = void 0;
|
|
12
12
|
var AccountAppsSortByField;
|
|
13
13
|
(function (AccountAppsSortByField) {
|
|
14
14
|
AccountAppsSortByField["LatestActivityTime"] = "LATEST_ACTIVITY_TIME";
|
|
@@ -20,6 +20,7 @@ var AccountAppsSortByField;
|
|
|
20
20
|
})(AccountAppsSortByField || (exports.AccountAppsSortByField = AccountAppsSortByField = {}));
|
|
21
21
|
var AccountUploadSessionType;
|
|
22
22
|
(function (AccountUploadSessionType) {
|
|
23
|
+
AccountUploadSessionType["ProfileImageUpload"] = "PROFILE_IMAGE_UPLOAD";
|
|
23
24
|
AccountUploadSessionType["WorkflowsProjectSources"] = "WORKFLOWS_PROJECT_SOURCES";
|
|
24
25
|
})(AccountUploadSessionType || (exports.AccountUploadSessionType = AccountUploadSessionType = {}));
|
|
25
26
|
var ActivityTimelineProjectActivityType;
|
|
@@ -90,6 +91,10 @@ var AppStoreConnectUserRole;
|
|
|
90
91
|
AppStoreConnectUserRole["Technical"] = "TECHNICAL";
|
|
91
92
|
AppStoreConnectUserRole["Unknown"] = "UNKNOWN";
|
|
92
93
|
})(AppStoreConnectUserRole || (exports.AppStoreConnectUserRole = AppStoreConnectUserRole = {}));
|
|
94
|
+
var AppUploadSessionType;
|
|
95
|
+
(function (AppUploadSessionType) {
|
|
96
|
+
AppUploadSessionType["ProfileImageUpload"] = "PROFILE_IMAGE_UPLOAD";
|
|
97
|
+
})(AppUploadSessionType || (exports.AppUploadSessionType = AppUploadSessionType = {}));
|
|
93
98
|
var AppleDeviceClass;
|
|
94
99
|
(function (AppleDeviceClass) {
|
|
95
100
|
AppleDeviceClass["Ipad"] = "IPAD";
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { ExpoGraphqlClient } from '../../commandUtils/context/contextUtils/createGraphqlClient';
|
|
2
|
-
import { AppPrivacy } from '../generated';
|
|
3
2
|
export declare const AppMutation: {
|
|
4
3
|
createAppAsync(graphqlClient: ExpoGraphqlClient, appInput: {
|
|
5
4
|
accountId: string;
|
|
6
5
|
projectName: string;
|
|
7
|
-
privacy: AppPrivacy;
|
|
8
6
|
}): Promise<string>;
|
|
9
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ExpoGraphqlClient } from '../../commandUtils/context/contextUtils/createGraphqlClient';
|
|
2
|
-
import { BuildFragment, BuildWithSubmissionsFragment, ViewBuildsOnAppQueryVariables } from '../generated';
|
|
2
|
+
import { BuildFragment, BuildWithFingerprintFragment, BuildWithSubmissionsFragment, ViewBuildsOnAppQueryVariables } from '../generated';
|
|
3
3
|
export declare const BuildQuery: {
|
|
4
4
|
byIdAsync(graphqlClient: ExpoGraphqlClient, buildId: string, { useCache }?: {
|
|
5
5
|
useCache?: boolean | undefined;
|
|
@@ -7,5 +7,8 @@ export declare const BuildQuery: {
|
|
|
7
7
|
withSubmissionsByIdAsync(graphqlClient: ExpoGraphqlClient, buildId: string, { useCache }?: {
|
|
8
8
|
useCache?: boolean | undefined;
|
|
9
9
|
}): Promise<BuildWithSubmissionsFragment>;
|
|
10
|
+
withFingerprintByIdAsync(graphqlClient: ExpoGraphqlClient, buildId: string, { useCache }?: {
|
|
11
|
+
useCache?: boolean | undefined;
|
|
12
|
+
}): Promise<BuildWithFingerprintFragment>;
|
|
10
13
|
viewBuildsOnAppAsync(graphqlClient: ExpoGraphqlClient, { appId, limit, offset, filter }: ViewBuildsOnAppQueryVariables): Promise<BuildFragment[]>;
|
|
11
14
|
};
|
|
@@ -45,6 +45,25 @@ exports.BuildQuery = {
|
|
|
45
45
|
.toPromise());
|
|
46
46
|
return data.builds.byId;
|
|
47
47
|
},
|
|
48
|
+
async withFingerprintByIdAsync(graphqlClient, buildId, { useCache = true } = {}) {
|
|
49
|
+
const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
|
|
50
|
+
.query((0, graphql_tag_1.default) `
|
|
51
|
+
query BuildsWithFingerprintByIdQuery($buildId: ID!) {
|
|
52
|
+
builds {
|
|
53
|
+
byId(buildId: $buildId) {
|
|
54
|
+
id
|
|
55
|
+
...BuildWithFingerprintFragment
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
${(0, graphql_1.print)(Build_1.BuildFragmentWithFingerprintNode)}
|
|
60
|
+
`, { buildId }, {
|
|
61
|
+
requestPolicy: useCache ? 'cache-first' : 'network-only',
|
|
62
|
+
additionalTypenames: ['Build'],
|
|
63
|
+
})
|
|
64
|
+
.toPromise());
|
|
65
|
+
return data.builds.byId;
|
|
66
|
+
},
|
|
48
67
|
async viewBuildsOnAppAsync(graphqlClient, { appId, limit, offset, filter }) {
|
|
49
68
|
const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
|
|
50
69
|
.query(
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BuildFragmentWithSubmissionsNode = exports.BuildFragmentNode = void 0;
|
|
3
|
+
exports.BuildFragmentWithFingerprintNode = exports.BuildFragmentWithSubmissionsNode = exports.BuildFragmentNode = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const graphql_1 = require("graphql");
|
|
6
6
|
const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
|
|
7
|
+
const Fingerprint_1 = require("./Fingerprint");
|
|
7
8
|
const Submission_1 = require("./Submission");
|
|
8
9
|
exports.BuildFragmentNode = (0, graphql_tag_1.default) `
|
|
9
10
|
fragment BuildFragment on Build {
|
|
@@ -73,3 +74,16 @@ exports.BuildFragmentWithSubmissionsNode = (0, graphql_tag_1.default) `
|
|
|
73
74
|
}
|
|
74
75
|
}
|
|
75
76
|
`;
|
|
77
|
+
exports.BuildFragmentWithFingerprintNode = (0, graphql_tag_1.default) `
|
|
78
|
+
${(0, graphql_1.print)(Fingerprint_1.FingerprintFragmentNode)}
|
|
79
|
+
${(0, graphql_1.print)(exports.BuildFragmentNode)}
|
|
80
|
+
|
|
81
|
+
fragment BuildWithFingerprintFragment on Build {
|
|
82
|
+
id
|
|
83
|
+
...BuildFragment
|
|
84
|
+
fingerprint {
|
|
85
|
+
id
|
|
86
|
+
...FingerprintFragment
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FingerprintFragmentNode: import("graphql").DocumentNode;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FingerprintFragmentNode = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
|
|
6
|
+
exports.FingerprintFragmentNode = (0, graphql_tag_1.default) `
|
|
7
|
+
fragment FingerprintFragment on Fingerprint {
|
|
8
|
+
id
|
|
9
|
+
hash
|
|
10
|
+
debugInfoUrl
|
|
11
|
+
}
|
|
12
|
+
`;
|
package/build/log.js
CHANGED
|
@@ -8,6 +8,7 @@ const getenv_1 = require("getenv");
|
|
|
8
8
|
const log_symbols_1 = tslib_1.__importDefault(require("log-symbols"));
|
|
9
9
|
const terminal_link_1 = tslib_1.__importDefault(require("terminal-link"));
|
|
10
10
|
class Log {
|
|
11
|
+
static isDebug = (0, getenv_1.boolish)('EXPO_DEBUG', false);
|
|
11
12
|
static log(...args) {
|
|
12
13
|
Log.consoleLog(...args);
|
|
13
14
|
}
|
|
@@ -56,6 +57,7 @@ class Log {
|
|
|
56
57
|
static withTextColor(args, chalkColor) {
|
|
57
58
|
return args.map(arg => chalkColor(arg));
|
|
58
59
|
}
|
|
60
|
+
static isLastLineNewLine = false;
|
|
59
61
|
static updateIsLastLineNewLine(args) {
|
|
60
62
|
if (args.length === 0) {
|
|
61
63
|
Log.isLastLineNewLine = true;
|
|
@@ -71,8 +73,6 @@ class Log {
|
|
|
71
73
|
}
|
|
72
74
|
}
|
|
73
75
|
}
|
|
74
|
-
Log.isDebug = (0, getenv_1.boolish)('EXPO_DEBUG', false);
|
|
75
|
-
Log.isLastLineNewLine = false;
|
|
76
76
|
exports.default = Log;
|
|
77
77
|
/**
|
|
78
78
|
* Prints a link for given URL, using text if provided, otherwise text is just the URL.
|
|
@@ -8,10 +8,7 @@ const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
|
8
8
|
const log_2 = require("../../utils/log");
|
|
9
9
|
const task_1 = require("../task");
|
|
10
10
|
class AgeRatingTask extends task_1.AppleTask {
|
|
11
|
-
|
|
12
|
-
super(...arguments);
|
|
13
|
-
this.name = () => 'age rating declarations';
|
|
14
|
-
}
|
|
11
|
+
name = () => 'age rating declarations';
|
|
15
12
|
async prepareAsync({ context }) {
|
|
16
13
|
(0, assert_1.default)(context.version, `App version information is not prepared, can't update age rating`);
|
|
17
14
|
context.ageRating = (await context.version.getAgeRatingDeclarationAsync()) ?? undefined;
|
|
@@ -9,10 +9,7 @@ const log_2 = require("../../utils/log");
|
|
|
9
9
|
const retry_1 = require("../../utils/retry");
|
|
10
10
|
const task_1 = require("../task");
|
|
11
11
|
class AppInfoTask extends task_1.AppleTask {
|
|
12
|
-
|
|
13
|
-
super(...arguments);
|
|
14
|
-
this.name = () => 'app information';
|
|
15
|
-
}
|
|
12
|
+
name = () => 'app information';
|
|
16
13
|
async prepareAsync({ context }) {
|
|
17
14
|
const info = await (0, retry_1.retryIfNullAsync)(() => context.app.getEditAppInfoAsync());
|
|
18
15
|
(0, assert_1.default)(info, 'Could not resolve the editable app info to update');
|
|
@@ -9,10 +9,7 @@ const log_2 = require("../../utils/log");
|
|
|
9
9
|
const task_1 = require("../task");
|
|
10
10
|
/** Handle all contact, demo account, or instruction info that are required for the App Store review team. */
|
|
11
11
|
class AppReviewDetailTask extends task_1.AppleTask {
|
|
12
|
-
|
|
13
|
-
super(...arguments);
|
|
14
|
-
this.name = () => 'app review detail';
|
|
15
|
-
}
|
|
12
|
+
name = () => 'app review detail';
|
|
16
13
|
async prepareAsync({ context }) {
|
|
17
14
|
(0, assert_1.default)(context.version, `App version not initialized, can't download store review details`);
|
|
18
15
|
context.reviewDetail = (await context.version.getAppStoreReviewDetailAsync()) ?? undefined;
|
|
@@ -10,15 +10,16 @@ const log_2 = require("../../utils/log");
|
|
|
10
10
|
const retry_1 = require("../../utils/retry");
|
|
11
11
|
const task_1 = require("../task");
|
|
12
12
|
class AppVersionTask extends task_1.AppleTask {
|
|
13
|
+
options;
|
|
13
14
|
constructor(options = {}) {
|
|
14
15
|
super();
|
|
15
|
-
this.name = () => (this.options.editLive ? 'live app version' : 'editable app version');
|
|
16
16
|
this.options = {
|
|
17
17
|
platform: options.platform ?? apple_utils_1.Platform.IOS,
|
|
18
18
|
editLive: options.editLive ?? false,
|
|
19
19
|
version: options.version ?? null,
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
+
name = () => (this.options.editLive ? 'live app version' : 'editable app version');
|
|
22
23
|
async prepareAsync({ context }) {
|
|
23
24
|
const { version, versionIsFirst, versionIsLive } = await resolveVersionAsync(context.app, this.options);
|
|
24
25
|
(0, assert_1.default)(version, 'Could not resolve a live or editable app version');
|
package/build/metadata/errors.js
CHANGED
|
@@ -10,6 +10,7 @@ const log_1 = tslib_1.__importStar(require("../log"));
|
|
|
10
10
|
* and should contain useful information for the user to solve before trying again.
|
|
11
11
|
*/
|
|
12
12
|
class MetadataValidationError extends Error {
|
|
13
|
+
errors;
|
|
13
14
|
constructor(message, errors = []) {
|
|
14
15
|
super(message ?? 'Store configuration validation failed');
|
|
15
16
|
this.errors = errors;
|
|
@@ -23,6 +24,8 @@ exports.MetadataValidationError = MetadataValidationError;
|
|
|
23
24
|
* It contains that list of encountered errors to present to the user.
|
|
24
25
|
*/
|
|
25
26
|
class MetadataUploadError extends Error {
|
|
27
|
+
errors;
|
|
28
|
+
executionId;
|
|
26
29
|
constructor(errors, executionId) {
|
|
27
30
|
super(`Store configuration upload encountered ${errors.length === 1 ? 'an error' : `${errors.length} errors`}.`);
|
|
28
31
|
this.errors = errors;
|
|
@@ -37,6 +40,8 @@ exports.MetadataUploadError = MetadataUploadError;
|
|
|
37
40
|
* It contains that list of encountered errors to present to the user.
|
|
38
41
|
*/
|
|
39
42
|
class MetadataDownloadError extends Error {
|
|
43
|
+
errors;
|
|
44
|
+
executionId;
|
|
40
45
|
constructor(errors, executionId) {
|
|
41
46
|
super(`Store configuration download encountered ${errors.length === 1 ? 'an error' : `${errors.length} errors`}.`);
|
|
42
47
|
this.errors = errors;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ExpoGraphqlClient } from '../commandUtils/context/contextUtils/createGraphqlClient';
|
|
2
|
-
import { AppPrivacy } from '../graphql/generated';
|
|
3
2
|
import { Actor } from '../user/User';
|
|
4
3
|
/**
|
|
5
4
|
* 1. Looks for an existing project on EAS servers. If found, ask the user whether this is the
|
|
@@ -10,7 +9,6 @@ import { Actor } from '../user/User';
|
|
|
10
9
|
export declare function fetchOrCreateProjectIDForWriteToConfigWithConfirmationAsync(graphqlClient: ExpoGraphqlClient, projectInfo: {
|
|
11
10
|
accountName: string;
|
|
12
11
|
projectName: string;
|
|
13
|
-
privacy?: AppPrivacy;
|
|
14
12
|
}, options: {
|
|
15
13
|
nonInteractive: boolean;
|
|
16
14
|
}, actor: Actor): Promise<string>;
|
|
@@ -56,7 +56,6 @@ async function fetchOrCreateProjectIDForWriteToConfigWithConfirmationAsync(graph
|
|
|
56
56
|
const id = await AppMutation_1.AppMutation.createAppAsync(graphqlClient, {
|
|
57
57
|
accountId: account.id,
|
|
58
58
|
projectName,
|
|
59
|
-
privacy: projectInfo.privacy ?? generated_1.AppPrivacy.Public,
|
|
60
59
|
});
|
|
61
60
|
spinner.succeed(`Created ${chalk_1.default.bold(projectLink)} on Expo`);
|
|
62
61
|
return id;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ExpoConfig } from '@expo/config';
|
|
2
2
|
import { ExpoGraphqlClient } from '../commandUtils/context/contextUtils/createGraphqlClient';
|
|
3
|
-
import { AccountFragment
|
|
3
|
+
import { AccountFragment } from '../graphql/generated';
|
|
4
4
|
import { Actor } from '../user/User';
|
|
5
5
|
export declare function getUsername(exp: ExpoConfig, user: Actor): string | undefined;
|
|
6
|
-
export declare const toAppPrivacy: (privacy: ExpoConfig['privacy']) => AppPrivacy;
|
|
7
6
|
/**
|
|
8
7
|
* Return a useful name describing the project config.
|
|
9
8
|
* - dynamic: app.config.js
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getDisplayNameForProjectIdAsync = exports.getOwnerAccountForProjectIdAsync = exports.installExpoUpdatesAsync = exports.isModernExpoUpdatesCLIWithRuntimeVersionCommandSupportedAsync = exports.enforceRollBackToEmbeddedUpdateSupportAsync = exports.validateAppVersionRuntimePolicySupportAsync = exports.isUsingEASUpdate = exports.isExpoUpdatesInstalledOrAvailable = exports.isExpoUpdatesInstalledAsDevDependency = exports.isExpoInstalled = exports.isExpoNotificationsInstalled = exports.isExpoUpdatesInstalled = exports.getProjectConfigDescription = exports.
|
|
3
|
+
exports.getDisplayNameForProjectIdAsync = exports.getOwnerAccountForProjectIdAsync = exports.installExpoUpdatesAsync = exports.isModernExpoUpdatesCLIWithRuntimeVersionCommandSupportedAsync = exports.enforceRollBackToEmbeddedUpdateSupportAsync = exports.validateAppVersionRuntimePolicySupportAsync = exports.isUsingEASUpdate = exports.isExpoUpdatesInstalledOrAvailable = exports.isExpoUpdatesInstalledAsDevDependency = exports.isExpoInstalled = exports.isExpoNotificationsInstalled = exports.isExpoUpdatesInstalled = exports.getProjectConfigDescription = exports.getUsername = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const config_1 = require("@expo/config");
|
|
6
6
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
@@ -9,7 +9,6 @@ const path_1 = tslib_1.__importDefault(require("path"));
|
|
|
9
9
|
const resolve_from_1 = tslib_1.__importDefault(require("resolve-from"));
|
|
10
10
|
const semver_1 = tslib_1.__importDefault(require("semver"));
|
|
11
11
|
const api_1 = require("../api");
|
|
12
|
-
const generated_1 = require("../graphql/generated");
|
|
13
12
|
const AppQuery_1 = require("../graphql/queries/AppQuery");
|
|
14
13
|
const log_1 = tslib_1.__importStar(require("../log"));
|
|
15
14
|
const expoCli_1 = require("../utils/expoCli");
|
|
@@ -29,18 +28,6 @@ function getUsername(exp, user) {
|
|
|
29
28
|
}
|
|
30
29
|
}
|
|
31
30
|
exports.getUsername = getUsername;
|
|
32
|
-
const toAppPrivacy = (privacy) => {
|
|
33
|
-
if (privacy === 'public') {
|
|
34
|
-
return generated_1.AppPrivacy.Public;
|
|
35
|
-
}
|
|
36
|
-
else if (privacy === 'hidden') {
|
|
37
|
-
return generated_1.AppPrivacy.Hidden;
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
return generated_1.AppPrivacy.Unlisted;
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
exports.toAppPrivacy = toAppPrivacy;
|
|
44
31
|
/**
|
|
45
32
|
* Return a useful name describing the project config.
|
|
46
33
|
* - dynamic: app.config.js
|