Skip to content

fix(android): introduce upper Gradle wrapper versions - #2133

Merged
Tommy Nguyen (tido64) merged 3 commits into
trunkfrom
tido/android/fix-gradle-wrapper-versions
Jul 22, 2024
Merged

Tommy Nguyen (tido64) merged 3 commits into
trunkfrom
tido/android/fix-gradle-wrapper-versions

Conversation

@tido64

@tido64 Tommy Nguyen (tido64) commented Jul 19, 2024 •

Copy link
Copy Markdown
Member

Description

Gradle 8.9 removes APIs that are still being used by 0.75.

Build log: https://github.com/microsoft/react-native-test-app/actions/runs/9993761517/job/27621913498

Fixed upstream in react/react-native@b82d7e1.

Platforms affected

  • Android
  • iOS
  • macOS
  • visionOS
  • Windows

Test plan

React Native versions and the Gradle version ranges that is supported:

  • 0.72: [8.1.1, 8.3)
  • 0.73: [8.3, 8.9)
  • 0.74: [8.6, 8.9)
  • 0.75: [8.8, 8.9)
  • 0.76 (nightly): 8.9

Test cases should cover these.

To manually test them:

  • Use set-react-version to set the react-native version
  • Set the Gradle wrapper version in example/android/gradle/wrapper/gradle-wrapper.properties
  • Build the Android app under example/android: ./gradlew assembleDebug

Gradle 8.9 removes APIs that are still being used by 0.75 (see
react/react-native@b82d7e1)

@JasonVMo Jason Morse (JasonVMo) left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nit on the if statements but not blocking, just a comment for the future.

Comment thread android/gradle-wrapper.js Outdated
@tido64
Tommy Nguyen (tido64) merged commit 0302d45 into trunk Jul 22, 2024
@tido64
Tommy Nguyen (tido64) deleted the tido/android/fix-gradle-wrapper-versions branch July 22, 2024 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

platform: Android This affects Android

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants