@expo/build-tools 19.0.2 → 19.0.3

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.
@@ -11,6 +11,8 @@ const common_1 = require("./common");
11
11
  const custom_1 = require("./custom");
12
12
  const credentials_1 = require("../android/credentials");
13
13
  const gradle_1 = require("../android/gradle");
14
+ const gradleProfile_1 = require("../android/gradleProfile");
15
+ const sentry_1 = require("../sentry");
14
16
  const eagerBundle_1 = require("../common/eagerBundle");
15
17
  const prebuild_1 = require("../common/prebuild");
16
18
  const setup_1 = require("../common/setup");
@@ -151,6 +153,20 @@ async function buildAsync(ctx) {
151
153
  : null),
152
154
  });
153
155
  });
156
+ await ctx.runBuildPhase(eas_build_job_1.BuildPhase.GRADLE_BUILD_PROFILE, async () => {
157
+ try {
158
+ const androidDir = path_1.default.join(ctx.getReactNativeProjectDirectory(), 'android');
159
+ const profileTasks = await (0, gradleProfile_1.parseGradleProfile)(androidDir);
160
+ if (profileTasks.length > 0) {
161
+ const report = (0, gradleProfile_1.formatGradleProfileReport)(profileTasks);
162
+ ctx.logger.info(report);
163
+ }
164
+ }
165
+ catch (err) {
166
+ sentry_1.Sentry.capture('Failed to parse Gradle build profile', err);
167
+ ctx.markBuildPhaseSkipped();
168
+ }
169
+ });
154
170
  await ctx.runBuildPhase(eas_build_job_1.BuildPhase.PRE_UPLOAD_ARTIFACTS_HOOK, async () => {
155
171
  await (0, hooks_1.runHookIfPresent)(ctx, hooks_1.Hook.PRE_UPLOAD_ARTIFACTS);
156
172
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expo/build-tools",
3
- "version": "19.0.2",
3
+ "version": "19.0.3",
4
4
  "bugs": "https://github.com/expo/eas-cli/issues",
5
5
  "license": "BUSL-1.1",
6
6
  "author": "Expo <support@expo.io>",
@@ -99,5 +99,5 @@
99
99
  "typescript": "^5.5.4",
100
100
  "uuid": "^9.0.1"
101
101
  },
102
- "gitHead": "b64f25b36dd01aec10a03a503ab35e9f9fb5be41"
102
+ "gitHead": "503b62b73d2fa1fa40352a93f672fc91f288b602"
103
103
  }