Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump NDK to 25 #37974

Closed
wants to merge 3 commits into from
Closed

Conversation

szymonrybczak
Copy link
Contributor

Summary:

Bumps NDK to current LTS Release.

Changelog:

[Android] [Changed] - Bump NDK to 25

Test Plan:

CI Green ✅

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 20, 2023
@szymonrybczak
Copy link
Contributor Author

Looks like CircleCI's machine broke on installing dependencies on iOS 🥲

Copy link
Contributor

@cortinico cortinico left a comment

Choose a reason for hiding this comment

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

That's sadly not sufficient :(
First I'd like to wait for this to land:

Then we'll have to make sure all the dependencies we link against are built with NDK 25. Namely:

  • FBJNI
  • Hermes
  • Flipper

Your change is only bumping the NDK version of the template. We'll have to take care of the NDK version of ReactAndroid as well. Would you be able to take a look at it?

@analysis-bot
Copy link

analysis-bot commented Jun 20, 2023

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,889,374 +46,093
android hermes armeabi-v7a 7,939,885 -212,536
android hermes x86 9,287,256 -61,791
android hermes x86_64 9,191,068 -733
android jsc arm64-v8a 9,478,667 +22,655
android jsc armeabi-v7a 8,421,751 -215,392
android jsc x86 9,462,239 -76,855
android jsc x86_64 9,779,136 -3,251

Base commit: d3c28d2
Branch: main

@szymonrybczak
Copy link
Contributor Author

@cortinico Yeah, so:
FBJNI - 23.1.7779620
Hermes - Not sure, where to find it.
Flipper - 25.1.8937393
I can create PRs bumping versions in those repositories.
Yes, I can look at ReactAndroid, is just doing that - will be okay in build.gradle.kts?

val ndkVersion by extra(System.getenv("ANDROID_NDK_VERSION") ?: "25.2.9519653")

Also I think we can bump NDK version in the docker-android, WDYT?

@cortinico
Copy link
Contributor

FBJNI - 23.1.7779620

I'm currently working on it. Will be out with FBJNI version 0.5.0 sometime soon

Hermes - Not sure, where to find it.

This is controlled by ReactAndroid/hermes-engine/build.gradle so it will be bumped with everything.

Flipper - 25.1.8937393

That's correct as that's the version we want to use actually (see https://developer.android.com/build/releases/gradle-plugin#compatibility-8-0-0 as the default for 8.0.0).

We'll have to find which version of Flipper is the first one that bumped NDK to 25 and make sure we use it.

@cortinico
Copy link
Contributor

Also I think we can bump NDK version in the docker-android, WDYT?

Yup that's also needed 🙏

@szymonrybczak
Copy link
Contributor Author

We'll have to find which version of Flipper is the first one that bumped NDK to 25 and make sure we use it.

It was bumped in this PR facebook/flipper#4443, and it was first released in 0.187.1, btw. just out of curiosity why the first one?

Yup that's also needed 🙏

PR: react-native-community/docker-android#204

@cortinico
Copy link
Contributor

and it was first released in 0.187.1, btw. just out of curiosity why the first one?

Because we might already have it shipped/bumped, but that's not the case as we're on 0.182.0

@cortinico
Copy link
Contributor

@szymonrybczak can we move this forward?

@szymonrybczak
Copy link
Contributor Author

Yeah, sure. So I updated the version to 25.1.8937393 (as it is the default for 8.0.0) in template and also in ReactAndroid. And I check the status of bumping to NDK 25 inside dependencies, and it looks like this:
FBJNI - Bumped, but not released yet.
Flipper - Not bumped in RN repository.
docker-android - Bumped, but not released yet.

@cortinico
Copy link
Contributor

FBJNI - Bumped, but not released yet.
docker-android - Bumped, but not released yet.

I will take of those two next week.

Flipper - Not bumped in RN repository.

@szymonrybczak do you want to attempt to do this bump? It should be fairly easy (just search for a previous Flipper bump) 👍 I can support if needed

facebook-github-bot pushed a commit that referenced this pull request Jul 14, 2023
Summary:
Bumped Flipper version from `0.182.0` to `0.201.0` (which is currently latest version). New version contain NDK 25, which is necessarily for us since we would like to bump NDK in React Native to 25, see [here](#37974) for more context.

## Changelog:

[General] [Changed] - Bump Flipper to 0.204.0

Pull Request resolved: #38260

Test Plan: CI Green ✅

Reviewed By: NickGerleman, mdvacca

Differential Revision: D47373525

Pulled By: cortinico

fbshipit-source-id: d1d5f03cb2f00bc8b9064af986b7c3b6e7ccae3c
juniorklawa pushed a commit to juniorklawa/react-native that referenced this pull request Jul 20, 2023
Summary:
Bumped Flipper version from `0.182.0` to `0.201.0` (which is currently latest version). New version contain NDK 25, which is necessarily for us since we would like to bump NDK in React Native to 25, see [here](facebook#37974) for more context.

## Changelog:

[General] [Changed] - Bump Flipper to 0.204.0

Pull Request resolved: facebook#38260

Test Plan: CI Green ✅

Reviewed By: NickGerleman, mdvacca

Differential Revision: D47373525

Pulled By: cortinico

fbshipit-source-id: d1d5f03cb2f00bc8b9064af986b7c3b6e7ccae3c
@cortinico
Copy link
Contributor

Hey @szymonrybczak
Sorry this took longer for me, but now we should be fully unblocked:

https://github.com/facebookincubator/fbjni/releases/tag/v0.5.0
https://github.com/react-native-community/docker-android/releases/tag/v10.0

Can I ask you to bump those 2 and rebase? And we should be able to import this 👍

@szymonrybczak szymonrybczak force-pushed the bump/ndk-version branch 2 times, most recently from 1b69f60 to 7d68762 Compare July 24, 2023 12:55
@github-actions
Copy link

github-actions bot commented Jul 24, 2023

Warnings
⚠️ 🔒 package.json - Changes were made to package.json. This will require a manual import by a Facebook employee.

Generated by 🚫 dangerJS against cc92bcc

@facebook-github-bot
Copy link
Contributor

@cortinico has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jul 26, 2023
@facebook-github-bot
Copy link
Contributor

@cortinico merged this pull request in 28deaa3.

@szymonrybczak szymonrybczak deleted the bump/ndk-version branch July 26, 2023 10:41
billnbell pushed a commit to billnbell/react-native that referenced this pull request Jul 29, 2023
Summary:
Bumps NDK to current LTS Release.

## Changelog:

[Android] [Changed] - Bump NDK to 25

Pull Request resolved: facebook#37974

Test Plan: CI Green ✅

Reviewed By: christophpurrer

Differential Revision: D47754763

Pulled By: cortinico

fbshipit-source-id: 24fbca503b3814c28a05aada5223c741e14bda28
billnbell pushed a commit to billnbell/react-native that referenced this pull request Jul 29, 2023
Summary:
Bumps NDK to current LTS Release.

## Changelog:

[Android] [Changed] - Bump NDK to 25

Pull Request resolved: facebook#37974

Test Plan: CI Green ✅

Reviewed By: christophpurrer

Differential Revision: D47754763

Pulled By: cortinico

fbshipit-source-id: 24fbca503b3814c28a05aada5223c741e14bda28
billnbell pushed a commit to billnbell/react-native that referenced this pull request Jul 29, 2023
Summary:
Bumps NDK to current LTS Release.

## Changelog:

[Android] [Changed] - Bump NDK to 25

Pull Request resolved: facebook#37974

Test Plan: CI Green ✅

Reviewed By: christophpurrer

Differential Revision: D47754763

Pulled By: cortinico

fbshipit-source-id: 24fbca503b3814c28a05aada5223c741e14bda28
yayvery pushed a commit to discord/react-native that referenced this pull request Jan 11, 2024
Summary:
Bumped Flipper version from `0.182.0` to `0.201.0` (which is currently latest version). New version contain NDK 25, which is necessarily for us since we would like to bump NDK in React Native to 25, see [here](facebook#37974) for more context.

[General] [Changed] - Bump Flipper to 0.204.0

Pull Request resolved: facebook#38260

Test Plan: CI Green ✅

Reviewed By: NickGerleman, mdvacca

Differential Revision: D47373525

Pulled By: cortinico

fbshipit-source-id: d1d5f03cb2f00bc8b9064af986b7c3b6e7ccae3c
yayvery pushed a commit to discord/react-native that referenced this pull request Jan 14, 2024
Summary:
Bumped Flipper version from `0.182.0` to `0.201.0` (which is currently latest version). New version contain NDK 25, which is necessarily for us since we would like to bump NDK in React Native to 25, see [here](facebook#37974) for more context.

[General] [Changed] - Bump Flipper to 0.204.0

Pull Request resolved: facebook#38260

Test Plan: CI Green ✅

Reviewed By: NickGerleman, mdvacca

Differential Revision: D47373525

Pulled By: cortinico

fbshipit-source-id: d1d5f03cb2f00bc8b9064af986b7c3b6e7ccae3c
yayvery pushed a commit to discord/react-native that referenced this pull request Jan 14, 2024
Summary:
Bumps NDK to current LTS Release.

[Android] [Changed] - Bump NDK to 25

Pull Request resolved: facebook#37974

Test Plan: CI Green ✅

Reviewed By: christophpurrer

Differential Revision: D47754763

Pulled By: cortinico

fbshipit-source-id: 24fbca503b3814c28a05aada5223c741e14bda28
yayvery pushed a commit to discord/react-native that referenced this pull request Jan 14, 2024
Summary:
Bumped Flipper version from `0.182.0` to `0.201.0` (which is currently latest version). New version contain NDK 25, which is necessarily for us since we would like to bump NDK in React Native to 25, see [here](facebook#37974) for more context.

[General] [Changed] - Bump Flipper to 0.204.0

Pull Request resolved: facebook#38260

Test Plan: CI Green ✅

Reviewed By: NickGerleman, mdvacca

Differential Revision: D47373525

Pulled By: cortinico

fbshipit-source-id: d1d5f03cb2f00bc8b9064af986b7c3b6e7ccae3c
yayvery pushed a commit to discord/react-native that referenced this pull request Jan 14, 2024
Summary:
Bumps NDK to current LTS Release.

[Android] [Changed] - Bump NDK to 25

Pull Request resolved: facebook#37974

Test Plan: CI Green ✅

Reviewed By: christophpurrer

Differential Revision: D47754763

Pulled By: cortinico

fbshipit-source-id: 24fbca503b3814c28a05aada5223c741e14bda28
blakef pushed a commit to blakef/template that referenced this pull request Feb 28, 2024
Summary:
Bumps NDK to current LTS Release.

## Changelog:

[Android] [Changed] - Bump NDK to 25

Pull Request resolved: facebook/react-native#37974

Test Plan: CI Green ✅

Reviewed By: christophpurrer

Differential Revision: D47754763

Pulled By: cortinico

fbshipit-source-id: 24fbca503b3814c28a05aada5223c741e14bda28

Original: facebook/react-native@28deaa3
blakef pushed a commit to react-native-community/template that referenced this pull request Feb 29, 2024
Summary:
Bumps NDK to current LTS Release.

## Changelog:

[Android] [Changed] - Bump NDK to 25

Pull Request resolved: facebook/react-native#37974

Test Plan: CI Green ✅

Reviewed By: christophpurrer

Differential Revision: D47754763

Pulled By: cortinico

fbshipit-source-id: 24fbca503b3814c28a05aada5223c741e14bda28

Original-Commit: facebook/react-native@28deaa3
blakef pushed a commit to react-native-community/template that referenced this pull request Feb 29, 2024
Summary:
Bumps NDK to current LTS Release.

## Changelog:

[Android] [Changed] - Bump NDK to 25

Pull Request resolved: facebook/react-native#37974

Test Plan: CI Green ✅

Reviewed By: christophpurrer

Differential Revision: D47754763

Pulled By: cortinico

fbshipit-source-id: 24fbca503b3814c28a05aada5223c741e14bda28

Original-Commit: facebook/react-native@28deaa3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants