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

Fix/fix third party ndk headers not found with REACT_NATIVE_DOWNLOADS_DIR setted #2272

Open
wants to merge 1 commit into
base: v2
Choose a base branch
from

Conversation

changhuali
Copy link

@changhuali changhuali commented Dec 9, 2023

What

After setting REACT_NATIVE_DOWNLOADS_DIR environment variable, rebuilding will be failed with follow reasons:
image
This is just because we forget to unzip the cached resources and copy them into the thirdPartyNdkDir dir

Changes

Remove the dependOn guard in prepareThirdPartyNdkHeaders task so that the prepare tasks could be done.

Tested on

  • Pixel 7 Pro emulator, SDK 34

Related issues

Copy link

vercel bot commented Dec 9, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-native-vision-camera ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 9, 2023 8:42am

@changhuali changhuali changed the base branch from main to v2 December 9, 2023 08:42
@changhuali changhuali changed the title Fix/fix third party ndk headers not found Fix/fix third party ndk headers not found with REACT_NATIVE_DOWNLOADS_DIR setted Dec 9, 2023
@mrousavy
Copy link
Owner

Doesn't this run quite often then now? I think those steps are invoked very often, not just once...

@mrousavy
Copy link
Owner

Can you confirm that the files are not unnecessarily being unzipped multiple times by addiing logs there?

@changhuali
Copy link
Author

Can you confirm that the files are not unnecessarily being unzipped multiple times by addiing logs there?

This is the build log after gradle clean
image
This is the rebuild log with cache
image
And i found that the mtime of the unziped files in third-party-ndk had also not been changed, so i confirm that the files are not unnecessarily being unzipped multiple times

@changhuali
Copy link
Author

Hi, should this pr be merged or closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants