eas-cli 5.3.1 → 5.5.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 +103 -55
- package/build/branch/utils.d.ts +2 -1
- package/build/branch/utils.js +2 -4
- package/build/build/android/build.js +5 -3
- package/build/build/android/prepareJob.js +1 -2
- package/build/build/android/syncProjectConfiguration.d.ts +3 -1
- package/build/build/android/syncProjectConfiguration.js +2 -2
- package/build/build/android/version.d.ts +4 -2
- package/build/build/android/version.js +4 -4
- package/build/build/build.d.ts +1 -3
- package/build/build/build.js +7 -58
- package/build/build/configure.d.ts +2 -0
- package/build/build/configure.js +9 -10
- package/build/build/context.d.ts +4 -0
- package/build/build/createContext.d.ts +3 -1
- package/build/build/createContext.js +7 -2
- package/build/build/ios/build.js +4 -0
- package/build/build/ios/prepareJob.js +1 -2
- package/build/build/ios/syncProjectConfiguration.d.ts +3 -1
- package/build/build/ios/syncProjectConfiguration.js +3 -3
- package/build/build/ios/version.d.ts +6 -4
- package/build/build/ios/version.js +10 -10
- package/build/build/metadata.js +7 -8
- package/build/build/runBuildAndSubmit.d.ts +2 -1
- package/build/build/runBuildAndSubmit.js +12 -8
- package/build/build/utils/devClient.d.ts +3 -1
- package/build/build/utils/devClient.js +6 -7
- package/build/build/utils/repository.d.ts +6 -5
- package/build/build/utils/repository.js +14 -15
- package/build/build/utils/resourceClass.js +3 -12
- package/build/build/validate.js +2 -3
- package/build/commandUtils/EasCommand.d.ts +4 -0
- package/build/commandUtils/EasCommand.js +4 -0
- package/build/commandUtils/context/VcsClientContextField.d.ts +5 -0
- package/build/commandUtils/context/VcsClientContextField.js +11 -0
- package/build/commands/branch/create.d.ts +1 -0
- package/build/commands/branch/create.js +3 -2
- package/build/commands/build/cancel.d.ts +1 -0
- package/build/commands/build/cancel.js +1 -0
- package/build/commands/build/configure.d.ts +1 -0
- package/build/commands/build/configure.js +8 -6
- package/build/commands/build/index.d.ts +1 -0
- package/build/commands/build/index.js +3 -2
- package/build/commands/build/inspect.d.ts +1 -0
- package/build/commands/build/inspect.js +5 -6
- package/build/commands/build/internal.d.ts +1 -0
- package/build/commands/build/internal.js +3 -2
- package/build/commands/build/list.d.ts +1 -0
- package/build/commands/build/list.js +1 -0
- package/build/commands/build/resign.d.ts +1 -0
- package/build/commands/build/resign.js +5 -3
- package/build/commands/build/run.d.ts +1 -0
- package/build/commands/build/run.js +1 -0
- package/build/commands/build/version/get.d.ts +1 -0
- package/build/commands/build/version/get.js +3 -1
- package/build/commands/build/version/set.d.ts +1 -0
- package/build/commands/build/version/set.js +3 -1
- package/build/commands/build/version/sync.d.ts +1 -0
- package/build/commands/build/version/sync.js +9 -4
- package/build/commands/build/view.d.ts +1 -0
- package/build/commands/build/view.js +1 -0
- package/build/commands/credentials.d.ts +1 -0
- package/build/commands/credentials.js +3 -2
- package/build/commands/diagnostics.d.ts +1 -0
- package/build/commands/diagnostics.js +6 -5
- package/build/commands/metadata/pull.d.ts +1 -0
- package/build/commands/metadata/pull.js +4 -2
- package/build/commands/metadata/push.d.ts +1 -0
- package/build/commands/metadata/push.js +4 -2
- package/build/commands/project/init.d.ts +1 -0
- package/build/commands/project/init.js +43 -11
- package/build/commands/submit.d.ts +1 -0
- package/build/commands/submit.js +3 -1
- package/build/commands/update/configure.d.ts +1 -0
- package/build/commands/update/configure.js +4 -3
- package/build/commands/update/index.d.ts +1 -0
- package/build/commands/update/index.js +17 -11
- package/build/commands/update/roll-back-to-embedded.d.ts +1 -1
- package/build/commands/update/roll-back-to-embedded.js +8 -6
- package/build/commands/update/rollback.d.ts +0 -1
- package/build/commands/update/rollback.js +0 -1
- package/build/credentials/android/actions/BuildCredentialsUtils.js +1 -1
- package/build/credentials/android/api/GraphqlClient.js +0 -1
- package/build/credentials/context.d.ts +3 -0
- package/build/credentials/context.js +1 -0
- package/build/credentials/credentialsJson/update.js +6 -8
- package/build/credentials/ios/actions/DeviceUtils.js +1 -1
- package/build/credentials/ios/appstore/bundleIdCapabilities.js +7 -0
- package/build/credentials/manager/HelperActions.d.ts +2 -0
- package/build/credentials/manager/ManageAndroid.js +2 -1
- package/build/credentials/manager/ManageIos.js +3 -0
- package/build/credentials/manager/SelectPlatform.d.ts +3 -1
- package/build/credentials/manager/SelectPlatform.js +2 -1
- package/build/graphql/generated.d.ts +457 -4
- package/build/graphql/generated.js +7 -2
- package/build/graphql/types/Account.js +4 -0
- package/build/graphql/types/credentials/AppleDevice.js +1 -0
- package/build/metadata/auth.js +4 -4
- package/build/project/android/applicationId.d.ts +4 -2
- package/build/project/android/applicationId.js +5 -5
- package/build/project/android/gradle.d.ts +2 -1
- package/build/project/android/gradle.js +2 -2
- package/build/project/applicationIdentifier.d.ts +3 -1
- package/build/project/applicationIdentifier.js +10 -7
- package/build/project/ios/bundleIdentifier.d.ts +4 -2
- package/build/project/ios/bundleIdentifier.js +5 -5
- package/build/project/ios/entitlements.d.ts +2 -1
- package/build/project/ios/entitlements.js +2 -2
- package/build/project/ios/scheme.d.ts +3 -1
- package/build/project/ios/scheme.js +2 -2
- package/build/project/ios/target.d.ts +4 -2
- package/build/project/ios/target.js +10 -8
- package/build/project/projectUtils.d.ts +1 -0
- package/build/project/projectUtils.js +12 -1
- package/build/project/publish.d.ts +6 -4
- package/build/project/publish.js +10 -11
- package/build/project/workflow.d.ts +4 -3
- package/build/project/workflow.js +5 -8
- package/build/submit/android/AndroidSubmitCommand.js +1 -1
- package/build/submit/context.d.ts +3 -0
- package/build/submit/context.js +2 -1
- package/build/submit/ios/AppProduce.js +1 -1
- package/build/submit/ios/AscApiKeySource.js +1 -1
- package/build/update/configure.d.ts +3 -1
- package/build/update/configure.js +5 -5
- package/build/update/ios/UpdatesModule.d.ts +2 -1
- package/build/update/ios/UpdatesModule.js +4 -5
- package/build/uploads.d.ts +1 -1
- package/build/uploads.js +2 -1
- package/oclif.manifest.json +1 -1
- package/package.json +7 -7
|
@@ -6,8 +6,7 @@ const config_plugins_1 = require("@expo/config-plugins");
|
|
|
6
6
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
7
7
|
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
8
8
|
const path_1 = tslib_1.__importDefault(require("path"));
|
|
9
|
-
|
|
10
|
-
async function resolveWorkflowAsync(projectDir, platform) {
|
|
9
|
+
async function resolveWorkflowAsync(projectDir, platform, vcsClient) {
|
|
11
10
|
let platformWorkflowMarkers;
|
|
12
11
|
try {
|
|
13
12
|
platformWorkflowMarkers =
|
|
@@ -21,7 +20,6 @@ async function resolveWorkflowAsync(projectDir, platform) {
|
|
|
21
20
|
catch {
|
|
22
21
|
return eas_build_job_1.Workflow.MANAGED;
|
|
23
22
|
}
|
|
24
|
-
const vcsClient = (0, vcs_1.getVcsClient)();
|
|
25
23
|
const vcsRootPath = path_1.default.normalize(await vcsClient.getRootPathAsync());
|
|
26
24
|
for (const marker of platformWorkflowMarkers) {
|
|
27
25
|
if ((await fs_extra_1.default.pathExists(marker)) &&
|
|
@@ -32,16 +30,15 @@ async function resolveWorkflowAsync(projectDir, platform) {
|
|
|
32
30
|
return eas_build_job_1.Workflow.MANAGED;
|
|
33
31
|
}
|
|
34
32
|
exports.resolveWorkflowAsync = resolveWorkflowAsync;
|
|
35
|
-
async function resolveWorkflowPerPlatformAsync(projectDir) {
|
|
33
|
+
async function resolveWorkflowPerPlatformAsync(projectDir, vcsClient) {
|
|
36
34
|
const [android, ios] = await Promise.all([
|
|
37
|
-
resolveWorkflowAsync(projectDir, eas_build_job_1.Platform.ANDROID),
|
|
38
|
-
resolveWorkflowAsync(projectDir, eas_build_job_1.Platform.IOS),
|
|
35
|
+
resolveWorkflowAsync(projectDir, eas_build_job_1.Platform.ANDROID, vcsClient),
|
|
36
|
+
resolveWorkflowAsync(projectDir, eas_build_job_1.Platform.IOS, vcsClient),
|
|
39
37
|
]);
|
|
40
38
|
return { android, ios };
|
|
41
39
|
}
|
|
42
40
|
exports.resolveWorkflowPerPlatformAsync = resolveWorkflowPerPlatformAsync;
|
|
43
|
-
async function hasIgnoredIosProjectAsync(projectDir) {
|
|
44
|
-
const vcsClient = (0, vcs_1.getVcsClient)();
|
|
41
|
+
async function hasIgnoredIosProjectAsync(projectDir, vcsClient) {
|
|
45
42
|
const vcsRootPath = path_1.default.normalize(await vcsClient.getRootPathAsync());
|
|
46
43
|
try {
|
|
47
44
|
const pbxProjectPath = config_plugins_1.IOSConfig.Paths.getPBXProjectPath(projectDir);
|
|
@@ -44,7 +44,7 @@ class AndroidSubmitCommand {
|
|
|
44
44
|
}
|
|
45
45
|
async maybeGetAndroidPackageFromCurrentProjectAsync() {
|
|
46
46
|
try {
|
|
47
|
-
return (0, results_1.result)(await (0, applicationId_1.getApplicationIdAsync)(this.ctx.projectDir, this.ctx.exp));
|
|
47
|
+
return (0, results_1.result)(await (0, applicationId_1.getApplicationIdAsync)(this.ctx.projectDir, this.ctx.exp, this.ctx.vcsClient));
|
|
48
48
|
}
|
|
49
49
|
catch (error) {
|
|
50
50
|
if (error instanceof applicationId_1.AmbiguousApplicationIdError) {
|
|
@@ -5,6 +5,7 @@ import { Analytics, AnalyticsEventProperties } from '../analytics/AnalyticsManag
|
|
|
5
5
|
import { ExpoGraphqlClient } from '../commandUtils/context/contextUtils/createGraphqlClient';
|
|
6
6
|
import { CredentialsContext } from '../credentials/context';
|
|
7
7
|
import { Actor } from '../user/User';
|
|
8
|
+
import { Client } from '../vcs/vcs';
|
|
8
9
|
export interface SubmissionContext<T extends Platform> {
|
|
9
10
|
accountName: string;
|
|
10
11
|
archiveFlags: SubmitArchiveFlags;
|
|
@@ -20,6 +21,7 @@ export interface SubmissionContext<T extends Platform> {
|
|
|
20
21
|
user: Actor;
|
|
21
22
|
graphqlClient: ExpoGraphqlClient;
|
|
22
23
|
analytics: Analytics;
|
|
24
|
+
vcsClient: Client;
|
|
23
25
|
applicationIdentifierOverride?: string;
|
|
24
26
|
}
|
|
25
27
|
export interface SubmitArchiveFlags {
|
|
@@ -42,4 +44,5 @@ export declare function createSubmissionContextAsync<T extends Platform>(params:
|
|
|
42
44
|
analytics: Analytics;
|
|
43
45
|
exp: ExpoConfig;
|
|
44
46
|
projectId: string;
|
|
47
|
+
vcsClient: Client;
|
|
45
48
|
}): Promise<SubmissionContext<T>>;
|
package/build/submit/context.js
CHANGED
|
@@ -6,7 +6,7 @@ const AnalyticsManager_1 = require("../analytics/AnalyticsManager");
|
|
|
6
6
|
const context_1 = require("../credentials/context");
|
|
7
7
|
const projectUtils_1 = require("../project/projectUtils");
|
|
8
8
|
async function createSubmissionContextAsync(params) {
|
|
9
|
-
const { applicationIdentifier, projectDir, nonInteractive, actor, exp, projectId, graphqlClient, analytics, } = params;
|
|
9
|
+
const { applicationIdentifier, projectDir, nonInteractive, actor, exp, projectId, graphqlClient, analytics, vcsClient, } = params;
|
|
10
10
|
const { env, ...rest } = params;
|
|
11
11
|
const projectName = exp.slug;
|
|
12
12
|
const account = await (0, projectUtils_1.getOwnerAccountForProjectIdAsync)(graphqlClient, projectId);
|
|
@@ -20,6 +20,7 @@ async function createSubmissionContextAsync(params) {
|
|
|
20
20
|
analytics,
|
|
21
21
|
projectInfo: { exp, projectId },
|
|
22
22
|
nonInteractive,
|
|
23
|
+
vcsClient,
|
|
23
24
|
});
|
|
24
25
|
}
|
|
25
26
|
const analyticsEventProperties = {
|
|
@@ -16,7 +16,7 @@ async function ensureAppStoreConnectAppExistsAsync(ctx) {
|
|
|
16
16
|
const { appName, language } = ctx.profile;
|
|
17
17
|
const options = {
|
|
18
18
|
...ctx.profile,
|
|
19
|
-
bundleIdentifier: (_b = (_a = ctx.applicationIdentifierOverride) !== null && _a !== void 0 ? _a : ctx.profile.bundleIdentifier) !== null && _b !== void 0 ? _b : (await (0, bundleIdentifier_1.getBundleIdentifierAsync)(ctx.projectDir, exp)),
|
|
19
|
+
bundleIdentifier: (_b = (_a = ctx.applicationIdentifierOverride) !== null && _a !== void 0 ? _a : ctx.profile.bundleIdentifier) !== null && _b !== void 0 ? _b : (await (0, bundleIdentifier_1.getBundleIdentifierAsync)(ctx.projectDir, exp, ctx.vcsClient)),
|
|
20
20
|
appName: (_c = appName !== null && appName !== void 0 ? appName : exp.name) !== null && _c !== void 0 ? _c : (await promptForAppNameAsync()),
|
|
21
21
|
language: (0, language_1.sanitizeLanguage)(language),
|
|
22
22
|
};
|
|
@@ -27,7 +27,7 @@ async function getAscApiKeyResultAsync(ctx, source) {
|
|
|
27
27
|
exports.getAscApiKeyResultAsync = getAscApiKeyResultAsync;
|
|
28
28
|
async function maybeGetIosBundleIdentifierAsync(ctx) {
|
|
29
29
|
try {
|
|
30
|
-
return await (0, bundleIdentifier_1.getBundleIdentifierAsync)(ctx.projectDir, ctx.exp);
|
|
30
|
+
return await (0, bundleIdentifier_1.getBundleIdentifierAsync)(ctx.projectDir, ctx.exp, ctx.vcsClient);
|
|
31
31
|
}
|
|
32
32
|
catch (error) {
|
|
33
33
|
if (error instanceof bundleIdentifier_1.AmbiguousBundleIdentifierError) {
|
|
@@ -2,6 +2,7 @@ import { ExpoConfig } from '@expo/config-types';
|
|
|
2
2
|
import { Workflow } from '@expo/eas-build-job';
|
|
3
3
|
import { ExpoGraphqlClient } from '../commandUtils/context/contextUtils/createGraphqlClient';
|
|
4
4
|
import { RequestedPlatform } from '../platform';
|
|
5
|
+
import { Client } from '../vcs/vcs';
|
|
5
6
|
export declare const DEFAULT_MANAGED_RUNTIME_VERSION_GTE_SDK_49: {
|
|
6
7
|
readonly policy: "appVersion";
|
|
7
8
|
};
|
|
@@ -24,10 +25,11 @@ export declare function ensureEASUpdateIsConfiguredInEasJsonAsync(projectDir: st
|
|
|
24
25
|
* - Sets `updates.url` if not set
|
|
25
26
|
* - Ensure latest changes are reflected in the native config, if any
|
|
26
27
|
*/
|
|
27
|
-
export declare function ensureEASUpdateIsConfiguredAsync(graphqlClient: ExpoGraphqlClient, { exp: expMaybeWithoutUpdates, projectId, projectDir, platform, }: {
|
|
28
|
+
export declare function ensureEASUpdateIsConfiguredAsync(graphqlClient: ExpoGraphqlClient, { exp: expMaybeWithoutUpdates, projectId, projectDir, vcsClient, platform, }: {
|
|
28
29
|
exp: ExpoConfig;
|
|
29
30
|
projectId: string;
|
|
30
31
|
projectDir: string;
|
|
32
|
+
vcsClient: Client;
|
|
31
33
|
platform: RequestedPlatform | null;
|
|
32
34
|
}): Promise<void>;
|
|
33
35
|
export declare function ensureUseClassicUpdatesIsRemovedAsync({ exp: expMaybeWithoutUpdates, projectDir, }: {
|
|
@@ -172,13 +172,13 @@ function warnEASUpdatesManualConfig({ modifyConfig, workflows, }) {
|
|
|
172
172
|
/**
|
|
173
173
|
* Make sure that the current `app.json` configuration for EAS Updates is set natively.
|
|
174
174
|
*/
|
|
175
|
-
async function ensureEASUpdateIsConfiguredNativelyAsync(graphqlClient, { exp, projectId, projectDir, platform, workflows, }) {
|
|
175
|
+
async function ensureEASUpdateIsConfiguredNativelyAsync(graphqlClient, vcsClient, { exp, projectId, projectDir, platform, workflows, }) {
|
|
176
176
|
if (['all', 'android'].includes(platform) && workflows.android === eas_build_job_1.Workflow.GENERIC) {
|
|
177
177
|
await (0, UpdatesModule_1.syncUpdatesConfigurationAsync)(graphqlClient, projectDir, exp, projectId);
|
|
178
178
|
log_1.default.withTick(`Configured ${chalk_1.default.bold('AndroidManifest.xml')} for EAS Update`);
|
|
179
179
|
}
|
|
180
180
|
if (['all', 'ios'].includes(platform) && workflows.ios === eas_build_job_1.Workflow.GENERIC) {
|
|
181
|
-
await (0, UpdatesModule_2.syncUpdatesConfigurationAsync)(graphqlClient, projectDir, exp, projectId);
|
|
181
|
+
await (0, UpdatesModule_2.syncUpdatesConfigurationAsync)(graphqlClient, vcsClient, projectDir, exp, projectId);
|
|
182
182
|
log_1.default.withTick(`Configured ${chalk_1.default.bold('Expo.plist')} for EAS Update`);
|
|
183
183
|
}
|
|
184
184
|
}
|
|
@@ -237,7 +237,7 @@ exports.ensureEASUpdateIsConfiguredInEasJsonAsync = ensureEASUpdateIsConfiguredI
|
|
|
237
237
|
* - Sets `updates.url` if not set
|
|
238
238
|
* - Ensure latest changes are reflected in the native config, if any
|
|
239
239
|
*/
|
|
240
|
-
async function ensureEASUpdateIsConfiguredAsync(graphqlClient, { exp: expMaybeWithoutUpdates, projectId, projectDir, platform, }) {
|
|
240
|
+
async function ensureEASUpdateIsConfiguredAsync(graphqlClient, { exp: expMaybeWithoutUpdates, projectId, projectDir, vcsClient, platform, }) {
|
|
241
241
|
var _a;
|
|
242
242
|
// EAS Update and SDK 49's "useClassicUpdates" option are mutually exclusive
|
|
243
243
|
if ((_a = expMaybeWithoutUpdates.updates) === null || _a === void 0 ? void 0 : _a.useClassicUpdates) {
|
|
@@ -260,7 +260,7 @@ async function ensureEASUpdateIsConfiguredAsync(graphqlClient, { exp: expMaybeWi
|
|
|
260
260
|
if (!platform) {
|
|
261
261
|
return;
|
|
262
262
|
}
|
|
263
|
-
const workflows = await (0, workflow_1.resolveWorkflowPerPlatformAsync)(projectDir);
|
|
263
|
+
const workflows = await (0, workflow_1.resolveWorkflowPerPlatformAsync)(projectDir, vcsClient);
|
|
264
264
|
const { projectChanged, exp: expWithUpdates } = await ensureEASUpdatesIsConfiguredInExpoConfigAsync({
|
|
265
265
|
exp: expMaybeWithoutUpdates,
|
|
266
266
|
projectDir,
|
|
@@ -269,7 +269,7 @@ async function ensureEASUpdateIsConfiguredAsync(graphqlClient, { exp: expMaybeWi
|
|
|
269
269
|
workflows,
|
|
270
270
|
});
|
|
271
271
|
if (projectChanged || !hasExpoUpdates) {
|
|
272
|
-
await ensureEASUpdateIsConfiguredNativelyAsync(graphqlClient, {
|
|
272
|
+
await ensureEASUpdateIsConfiguredNativelyAsync(graphqlClient, vcsClient, {
|
|
273
273
|
exp: expWithUpdates,
|
|
274
274
|
projectDir,
|
|
275
275
|
projectId,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ExpoConfig } from '@expo/config';
|
|
2
2
|
import { ExpoGraphqlClient } from '../../commandUtils/context/contextUtils/createGraphqlClient';
|
|
3
|
-
|
|
3
|
+
import { Client } from '../../vcs/vcs';
|
|
4
|
+
export declare function syncUpdatesConfigurationAsync(graphqlClient: ExpoGraphqlClient, vcsClient: Client, projectDir: string, exp: ExpoConfig, projectId: string): Promise<void>;
|
|
4
5
|
export declare function readReleaseChannelSafelyAsync(projectDir: string): Promise<string | null>;
|
|
5
6
|
export declare function readChannelSafelyAsync(projectDir: string): Promise<string | null>;
|
|
@@ -5,14 +5,13 @@ const config_plugins_1 = require("@expo/config-plugins");
|
|
|
5
5
|
const platform_1 = require("../../platform");
|
|
6
6
|
const projectUtils_1 = require("../../project/projectUtils");
|
|
7
7
|
const plist_1 = require("../../utils/plist");
|
|
8
|
-
const vcs_1 = require("../../vcs");
|
|
9
8
|
const utils_1 = require("../utils");
|
|
10
|
-
async function syncUpdatesConfigurationAsync(graphqlClient, projectDir, exp, projectId) {
|
|
9
|
+
async function syncUpdatesConfigurationAsync(graphqlClient, vcsClient, projectDir, exp, projectId) {
|
|
11
10
|
(0, utils_1.ensureValidVersions)(exp, platform_1.RequestedPlatform.Ios);
|
|
12
11
|
const accountName = (await (0, projectUtils_1.getOwnerAccountForProjectIdAsync)(graphqlClient, projectId)).name;
|
|
13
12
|
const expoPlist = await readExpoPlistAsync(projectDir);
|
|
14
13
|
const updatedExpoPlist = config_plugins_1.IOSConfig.Updates.setUpdatesConfig(projectDir, exp, expoPlist, accountName);
|
|
15
|
-
await writeExpoPlistAsync(projectDir, updatedExpoPlist);
|
|
14
|
+
await writeExpoPlistAsync(vcsClient, projectDir, updatedExpoPlist);
|
|
16
15
|
}
|
|
17
16
|
exports.syncUpdatesConfigurationAsync = syncUpdatesConfigurationAsync;
|
|
18
17
|
async function readExpoPlistAsync(projectDir) {
|
|
@@ -20,10 +19,10 @@ async function readExpoPlistAsync(projectDir) {
|
|
|
20
19
|
const expoPlistPath = config_plugins_1.IOSConfig.Paths.getExpoPlistPath(projectDir);
|
|
21
20
|
return ((_a = (await (0, plist_1.readPlistAsync)(expoPlistPath))) !== null && _a !== void 0 ? _a : {});
|
|
22
21
|
}
|
|
23
|
-
async function writeExpoPlistAsync(projectDir, expoPlist) {
|
|
22
|
+
async function writeExpoPlistAsync(vcsClient, projectDir, expoPlist) {
|
|
24
23
|
const expoPlistPath = config_plugins_1.IOSConfig.Paths.getExpoPlistPath(projectDir);
|
|
25
24
|
await (0, plist_1.writePlistAsync)(expoPlistPath, expoPlist);
|
|
26
|
-
await
|
|
25
|
+
await vcsClient.trackFileAsync(expoPlistPath);
|
|
27
26
|
}
|
|
28
27
|
async function readReleaseChannelSafelyAsync(projectDir) {
|
|
29
28
|
var _a;
|
package/build/uploads.d.ts
CHANGED
|
@@ -7,4 +7,4 @@ export interface PresignedPost {
|
|
|
7
7
|
fields: Record<string, string>;
|
|
8
8
|
}
|
|
9
9
|
export declare function uploadFileAtPathToGCSAsync(graphqlClient: ExpoGraphqlClient, type: UploadSessionType, path: string, handleProgressEvent: ProgressHandler): Promise<string>;
|
|
10
|
-
export declare function uploadWithPresignedPostWithRetryAsync(file: string, presignedPost: PresignedPost): Promise<Response>;
|
|
10
|
+
export declare function uploadWithPresignedPostWithRetryAsync(file: string, presignedPost: PresignedPost, onAssetUploadBegin: () => void): Promise<Response>;
|
package/build/uploads.js
CHANGED
|
@@ -13,11 +13,12 @@ async function uploadFileAtPathToGCSAsync(graphqlClient, type, path, handleProgr
|
|
|
13
13
|
return signedUrl.bucketKey;
|
|
14
14
|
}
|
|
15
15
|
exports.uploadFileAtPathToGCSAsync = uploadFileAtPathToGCSAsync;
|
|
16
|
-
async function uploadWithPresignedPostWithRetryAsync(file, presignedPost) {
|
|
16
|
+
async function uploadWithPresignedPostWithRetryAsync(file, presignedPost, onAssetUploadBegin) {
|
|
17
17
|
return await (0, promise_retry_1.default)(async (retry) => {
|
|
18
18
|
// retry fetch errors (usually connection or DNS errors)
|
|
19
19
|
let response;
|
|
20
20
|
try {
|
|
21
|
+
onAssetUploadBegin();
|
|
21
22
|
response = await uploadWithPresignedPostAsync(file, presignedPost);
|
|
22
23
|
}
|
|
23
24
|
catch (e) {
|