Skip to content

fix: add CMAKE_VERSION override to bitrise.yml for RN 0.81 compatibility#29922

Merged
adnxy merged 2 commits into
mainfrom
chore/fix-bitrise-workflow-android
May 8, 2026
Merged

fix: add CMAKE_VERSION override to bitrise.yml for RN 0.81 compatibility#29922
adnxy merged 2 commits into
mainfrom
chore/fix-bitrise-workflow-android

Conversation

@adnxy
Copy link
Copy Markdown
Contributor

@adnxy adnxy commented May 8, 2026

Description

React Native 0.81's ReactAndroid/build.gradle.kts resolves the CMake version via System.getenv("CMAKE_VERSION") ?: "3.30.5", defaulting to 3.30.5 when the environment variable is not set.

Bitrise CI machines only ship CMake 3.22.1, and AGP cannot auto-download the missing version,
resulting in [CXX1300] CMake '3.30.5' was not found build failures.

This PR sets CMAKE_VERSION: '3.22.1' as an app-level environment variable in bitrise.yml, directing
the build to use the pre-installed version. This is safe since RN's CMakeLists files only require
CMake >= 3.13.

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

Performance checks (if applicable)

  • I've tested on Android
    • Ideally on a mid-range device; emulator is acceptable
  • I've tested with a power user scenario
    • Use these power-user SRPs to import wallets with many accounts and tokens
  • I've instrumented key operations with Sentry traces for production performance metrics

For performance guidelines and tooling, see the Performance Guide.

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

Low Risk
Low risk CI-only change that adds an environment override; impact is limited to Android build tooling selection on Bitrise.

Overview
Ensures Bitrise Android builds use the preinstalled CMake by adding an app-level CMAKE_VERSION: '3.22.1' environment variable in bitrise.yml, preventing React Native 0.81 builds from defaulting to a missing CMake version.

Reviewed by Cursor Bugbot for commit ab924f7. Bugbot is set up for automated code reviews on this repo. Configure here.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@adnxy adnxy requested review from andrepimenta and tommasini May 8, 2026 15:02
@adnxy adnxy self-assigned this May 8, 2026
@adnxy adnxy added team-mobile-platform Mobile Platform team no-changelog no-changelog Indicates no external facing user changes, therefore no changelog documentation needed size-XS labels May 8, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

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.

@github-actions github-actions Bot added the pr-not-ready-for-e2e Skip E2E and block merging. Remove this label once the PR is ready to run the E2E tests. label May 8, 2026
@adnxy adnxy marked this pull request as ready for review May 8, 2026 15:03
@adnxy adnxy requested a review from a team as a code owner May 8, 2026 15:03
@adnxy adnxy enabled auto-merge May 8, 2026 15:05
@adnxy adnxy disabled auto-merge May 8, 2026 15:05
@adnxy adnxy enabled auto-merge May 8, 2026 15:13
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 8, 2026

@adnxy adnxy added this pull request to the merge queue May 8, 2026
Merged via the queue into main with commit fd2d639 May 8, 2026
60 checks passed
@adnxy adnxy deleted the chore/fix-bitrise-workflow-android branch May 8, 2026 15:58
@github-actions github-actions Bot locked and limited conversation to collaborators May 8, 2026
@metamaskbotv2 metamaskbotv2 Bot added the release-7.78.0 Issue or pull request that will be included in release 7.78.0 label May 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

no-changelog no-changelog Indicates no external facing user changes, therefore no changelog documentation needed pr-not-ready-for-e2e Skip E2E and block merging. Remove this label once the PR is ready to run the E2E tests. release-7.78.0 Issue or pull request that will be included in release 7.78.0 size-XS team-mobile-platform Mobile Platform team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants