Upgrade Metamask Gradle version for better performance

Description: Hi team, I’ve been working with Gradle 7.2.2 on a few other projects and have noticed a significant increase in build speed and performance. Would it be possible to consider updating the Gradle version in MetaMask to take advantage of these improvements?

Additionaly , I’ve been exploring some great new libraries recently that require Gradle 7.2.2. I believe these libraries could be very beneficial for MetaMask as well. Would it be possible to upgrade the Gradle version to support these libraries? It would open up a lot of new possibilities for the project.

Purpose: Improve performance of the wallet application

Extension/Mobile/Both: Mobile

Images/Attacments:

Finally a good one…Have been thinking about the same for a while

Other than performance, it is beneficial in all the following:

  1. Improved Dependency Management: Gradle 7 offers enhanced features for managing dependencies, including version catalogs and consistent dependency resolution. It also adds support for optional features and capabilities which can aid in resolving conflicts between different library versions.
  2. Java Module System Support: Gradle 7 has better support for the Java Module System, which can make managing dependencies in Java projects simpler and more robust.
  3. Support for Newer Java Versions: Gradle 7 supports newer versions of Java , allowing you to leverage the latest features and improvements in the Java language and runtime.
  4. Type-Safe Project Accessors: This new feature in Gradle 7 provides type-safe access to sub-projects in multi-project builds, improving the developer experience.
  5. Better Error Messages and Debugging: Gradle 7 comes with improved error messages and deprecation warnings which makes it easier to understand and fix issues in your builds.
  6. Toolchain Support for JVM projects: This feature allows you to describe what Java version your project requires and Gradle will auto-provision the matching Java version if it’s not installed.
  7. Improved Documentation: The Gradle team has worked on improving the documentation, making it easier to find solutions to common problems and understand how to use Gradle’s features.
  8. File System Watching: Gradle 7 can re-use information from previous builds, reducing the amount of disk I/O needed, which can lead to significant build speed improvements.
  9. Compatibility with Latest IDEs: Gradle 7 ensures compatibility with the latest IDE versions, including IntelliJ IDEA and Android Studio, which can offer improved developer tools and experiences.
1 Like