Skip to content

Commit 492c3a7

Browse files
committed
[eas-cli] Add eas update:embedded:upload command
1 parent 9ee8758 commit 492c3a7

31 files changed

Lines changed: 874 additions & 615 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ This is the log of notable changes to EAS CLI and related packages.
88

99
### 🎉 New features
1010

11+
- [eas-cli] Add `eas update:embedded:upload` command. ([#3720](https://github.com/expo/eas-cli/pull/3720) by [@gwdp](https://github.com/gwdp))
12+
1113
### 🐛 Bug fixes
1214

1315
### 🧹 Chores

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"npmClient": "yarn",
3-
"version": "19.0.5",
3+
"version": "19.0.1",
44
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
55
}

packages/build-tools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@expo/build-tools",
3-
"version": "19.0.3",
3+
"version": "19.0.0",
44
"bugs": "https://github.com/expo/eas-cli/issues",
55
"license": "BUSL-1.1",
66
"author": "Expo <support@expo.io>",

packages/build-tools/src/android/gradleProfile.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@ export interface GradleProfileTask {
1010

1111
export async function parseGradleProfile(androidDir: string): Promise<GradleProfileTask[]> {
1212
const profileDir = path.join(androidDir, 'build', 'reports', 'profile');
13-
// Gradle profile may not exist for all builds (e.g. custom, repack
14-
// jobs). We should short circuit and not unnecessarily log.
1513
if (!(await fs.pathExists(profileDir))) {
16-
return [];
14+
throw new Error(`Gradle profile directory not found at ${profileDir}`);
1715
}
1816

1917
const files = await fs.readdir(profileDir);

packages/build-tools/src/builders/android.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ import {
1010
resolveGradleCommand,
1111
runGradleCommand,
1212
} from '../android/gradle';
13-
import { parseGradleProfile, formatGradleProfileReport } from '../android/gradleProfile';
14-
import { Sentry } from '../sentry';
1513
import { eagerBundleAsync, shouldUseEagerBundle } from '../common/eagerBundle';
1614
import { prebuildAsync } from '../common/prebuild';
1715
import { setupAsync } from '../common/setup';
@@ -182,20 +180,6 @@ async function buildAsync(ctx: BuildContext<Android.Job>): Promise<void> {
182180
});
183181
});
184182

185-
await ctx.runBuildPhase(BuildPhase.GRADLE_BUILD_PROFILE, async () => {
186-
try {
187-
const androidDir = path.join(ctx.getReactNativeProjectDirectory(), 'android');
188-
const profileTasks = await parseGradleProfile(androidDir);
189-
if (profileTasks.length > 0) {
190-
const report = formatGradleProfileReport(profileTasks);
191-
ctx.logger.info(report);
192-
}
193-
} catch (err: any) {
194-
Sentry.capture('Failed to parse Gradle build profile', err);
195-
ctx.markBuildPhaseSkipped();
196-
}
197-
});
198-
199183
await ctx.runBuildPhase(BuildPhase.PRE_UPLOAD_ARTIFACTS_HOOK, async () => {
200184
await runHookIfPresent(ctx, Hook.PRE_UPLOAD_ARTIFACTS);
201185
});

packages/build-tools/src/builders/ios.ts

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import { runFastlaneGym, runFastlaneResign } from '../ios/fastlane';
1616
import { installPods } from '../ios/pod';
1717
import { downloadApplicationArchiveAsync } from '../ios/resign';
1818
import { resolveArtifactPath, resolveBuildConfiguration, resolveScheme } from '../ios/resolve';
19-
import { Sentry } from '../sentry';
2019
import { parseAndReportXcactivitylog } from '../steps/utils/ios/xcactivitylog';
2120
import { cacheStatsAsync, restoreCcacheAsync } from '../steps/functions/restoreBuildCache';
2221
import { saveCcacheAsync } from '../steps/functions/saveBuildCache';
@@ -174,25 +173,17 @@ async function buildAsync(ctx: BuildContext<Ios.Job>): Promise<void> {
174173
});
175174
}
176175

177-
await ctx.runBuildPhase(BuildPhase.PARSE_XCACTIVITYLOG, async () => {
178-
if (ctx.isLocal) {
179-
ctx.logger.info('Local builds skip build performance analysis.');
180-
return;
181-
}
182-
try {
183-
const { derivedDataPath, workspacePath } = nullthrows(fastlaneResult);
176+
if (ctx.env.EXPERIMENTAL_EAS_XCACTIVITYLOG === '1') {
177+
const { derivedDataPath, workspacePath } = nullthrows(fastlaneResult);
178+
await ctx.runBuildPhase(BuildPhase.PARSE_XCACTIVITYLOG, async () => {
184179
await parseAndReportXcactivitylog({
185180
derivedDataPath,
186181
workspacePath,
187182
logger: ctx.logger,
188183
proxyBaseUrl: ctx.env.EAS_BUILD_COCOAPODS_CACHE_URL,
189-
env: ctx.env,
190184
});
191-
} catch (err: any) {
192-
Sentry.capture('Failed to parse xcactivitylog', err);
193-
ctx.markBuildPhaseSkipped();
194-
}
195-
});
185+
});
186+
}
196187

197188
await ctx.runBuildPhase(BuildPhase.PRE_UPLOAD_ARTIFACTS_HOOK, async () => {
198189
await runHookIfPresent(ctx, Hook.PRE_UPLOAD_ARTIFACTS);

packages/build-tools/src/steps/functions/parseXcactivitylog.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ export function parseXcactivitylogFunction(): BuildFunction {
4545
xclogparserVersion: version,
4646
logger: stepCtx.logger,
4747
proxyBaseUrl: env.EAS_BUILD_COCOAPODS_CACHE_URL,
48-
env,
4948
});
5049
},
5150
});

0 commit comments

Comments
 (0)