Skip to content

chore: build optimizations — remove dead config, increase daemon heap#6347

Merged
SeniorZhai merged 1 commit intochore/optimize-build-speedfrom
copilot/fix-gradle-deprecation-warnings
Apr 28, 2026
Merged

chore: build optimizations — remove dead config, increase daemon heap#6347
SeniorZhai merged 1 commit intochore/optimize-build-speedfrom
copilot/fix-gradle-deprecation-warnings

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 28, 2026

Removes stale/redundant Gradle build configuration and increases JVM heap limits to reduce GC pressure during parallel KSP + Kotlin compilation.

Changes

app/build.gradle

  • Remove room.expandProjection KSP arg — deprecated since Room 2.6+, was causing unnecessary extra KSP processing overhead
  • Remove composeOptions { kotlinCompilerExtensionVersion } block — redundant now that org.jetbrains.kotlin.plugin.compose plugin is declared; the hardcoded 1.5.14 was also mismatched with the Kotlin 2.x toolchain

gradle.properties

  • Gradle daemon: heap 4g → 6g, MetaspaceSize 1g → 1536m, add -XX:+UseStringDeduplication (reduces GC overhead from annotation processor string literals under 14-core parallel load)
  • Kotlin daemon: heap 3g → 4g

Agent-Logs-Url: https://github.com/MixinNetwork/android-app/sessions/819bda26-8c30-47bf-abe2-5672618e8713

Co-authored-by: SeniorZhai <5416585+SeniorZhai@users.noreply.github.com>
@SeniorZhai SeniorZhai marked this pull request as ready for review April 28, 2026 07:47
@SeniorZhai SeniorZhai merged commit 2d1bc98 into chore/optimize-build-speed Apr 28, 2026
@SeniorZhai SeniorZhai deleted the copilot/fix-gradle-deprecation-warnings branch April 28, 2026 07:47
crossle pushed a commit that referenced this pull request Apr 28, 2026
* chore: optimize Gradle build configuration

* chore: apply build optimization improvements (#6347)

Agent-Logs-Url: https://github.com/MixinNetwork/android-app/sessions/819bda26-8c30-47bf-abe2-5672618e8713

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: SeniorZhai <5416585+SeniorZhai@users.noreply.github.com>

* revert: disable non-transitive R class

* revert: restore Gradle heap settings

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
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.

2 participants