Skip to content

fix(mobile): raise Gradle Metaspace limit - #391

Merged
AprilNEA merged 1 commit into
masterfrom
xuan/code-535
Aug 2, 2026
Merged

fix(mobile): raise Gradle Metaspace limit#391
AprilNEA merged 1 commit into
masterfrom
xuan/code-535

Conversation

@AprilNEA

@AprilNEA AprilNEA commented Aug 1, 2026

Copy link
Copy Markdown
Member

Summary

  • persist a 1 GiB Gradle Metaspace limit through Expo clean prebuilds
  • keep the existing 2 GiB heap and Android release lint enabled
  • apply the fix to local, GitHub Actions, and EAS-generated Android projects

Root cause

Build Mobile #1 exhausted the Expo template's 512 MiB Gradle Metaspace during lintVitalAnalyzeRelease. Gradle emitted FAILED, while the EAS local-build wrapper remained alive until the job timeout.

Validation

  • clean Android Expo prebuild generated org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=1024m
  • pnpm check:ci
  • pnpm test — 2,439 passed, 1 skipped
  • pnpm -F @linkcode/mobile smoke:export — Android and iOS passed

Linear: CODE-535

@linear-code

linear-code Bot commented Aug 1, 2026

Copy link
Copy Markdown

CODE-535

@AprilNEA
AprilNEA marked this pull request as ready for review August 2, 2026 07:37
@AprilNEA
AprilNEA merged commit 9edd337 into master Aug 2, 2026
10 checks passed
@AprilNEA
AprilNEA deleted the xuan/code-535 branch August 2, 2026 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant