Skip to content

Conversation

@tommasini
Copy link
Contributor

@tommasini tommasini commented Nov 8, 2025

Description

Changelog

CHANGELOG entry:

Related issues

Fixes:

Manual testing steps

Feature: my feature name

  Scenario: user [verb for user action]
    Given [describe expected initial app state]

    When user [verb for user action]
    Then [describe expected outcome]

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

Note

Adds GitHub CI Gradle properties and a dedicated Android E2E build path (x86_64, retry, verification), and sets default androidTest APK paths in Detox.

  • Build/E2E (Android):
    • Add buildAndroidReleaseE2E with flavor support, copies android/gradle.properties.github, retries with reduced parallelism on failure, and verifies APK outputs.
    • Route E2E builds in buildAndroid to the new flow for main/flask and legacy releaseE2E.
    • generateAndroidBinary (Release): always builds APK and AAB and generates checksum.
  • CI/Gradle:
    • Add android/gradle.properties.github with balanced JVM/worker settings, disabled VFS watch, reactNativeArchitectures=x86_64, and related AndroidX/Hermes/new arch flags.
  • Detox config:
    • Provide default testBinaryPath for android.debug, android.release, and android.flask.* apps.

Written by Cursor Bugbot for commit a90ee02. This will update automatically on new commits. Configure here.

@tommasini tommasini requested a review from a team as a code owner November 8, 2025 00:45
@github-actions
Copy link
Contributor

github-actions bot commented Nov 8, 2025

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@metamaskbot metamaskbot added the team-mobile-platform Mobile Platform team label Nov 8, 2025
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (chore/less-resources-for-gradle@99d182a). Learn more about missing BASE report.

Additional details and impacted files
@@                        Coverage Diff                         @@
##             chore/less-resources-for-gradle   #22356   +/-   ##
==================================================================
  Coverage                                   ?   77.85%           
==================================================================
  Files                                      ?     3824           
  Lines                                      ?    97952           
  Branches                                   ?    19192           
==================================================================
  Hits                                       ?    76257           
  Misses                                     ?    16473           
  Partials                                   ?     5222           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions github-actions bot added size-S and removed size-XS labels Nov 8, 2025
prebuild_android
cd android && ./gradlew assembleProdRelease app:assembleProdReleaseAndroidTest -PminSdkVersion=26 -DtestBuildType=release
# Use GitHub CI gradle properties for E2E builds (x86_64 only, optimized memory settings)
cp android/gradle.properties.github android/gradle.properties
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Unbacked Overwrites Cause Local Data Loss

The cp command overwrites android/gradle.properties without backing it up first. When developers run E2E builds locally, their custom gradle properties are permanently lost since the original file is never restored. This differs from CI where the file system is ephemeral. Consider backing up the original file before overwriting or checking if running in CI before copying.

Fix in Cursor Fix in Web

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why would I need to back it up if I don't use it after?

prebuild_android
cd android && ./gradlew assembleProdRelease app:assembleProdReleaseAndroidTest -PminSdkVersion=26 -DtestBuildType=release
# Use GitHub CI gradle properties for E2E builds (x86_64 only, optimized memory settings)
cp android/gradle.properties.github android/gradle.properties
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Builds Leave Repository in Modified State

The cp android/gradle.properties.github android/gradle.properties command permanently overwrites the tracked android/gradle.properties file without backing it up or restoring it afterward. This leaves the repository in a modified state after E2E builds, potentially affecting subsequent builds and causing unwanted git changes. The original file has different architecture settings that would be lost.

Fix in Cursor Fix in Web

@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 8, 2025

@tommasini tommasini closed this Nov 12, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Nov 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

size-S team-mobile-platform Mobile Platform team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants