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

Use rules_android_ndk #1302

Closed
wants to merge 4 commits into from

Conversation

utzcoz
Copy link
Contributor

@utzcoz utzcoz commented Dec 22, 2024

When I try to execute REPIN=1 bazel run @maven//:pin, the android_ndk_repository tells me that it can't recognize RELEASE.TXT file or platforms directory when exposing latest Android Ndk with ANDROID_NDK_HOME.

After investigation, if we want to use Android NDK rc22+, we need to use rules_android_ndk, and this module has been released with version 1.0.2, also included into bazel central registry. So this CL just switchs to use rules_android_ndk latest stable version, and adds necessary rules_cc that rules_android_ndk requires. With it, I can run repin command to generate extra changes for maven_install.json.

I am not familiar with bzlmod and rules_jvm_external requirements for external dependencies very much , so please tell me if I did something wrong.

@utzcoz utzcoz force-pushed the use-rules_android_ndk branch from 12f34b9 to 046f417 Compare December 26, 2024 14:19
It copied from rules_android_ndk/.bazelci/presubmit.yml.

Signed-off-by: utzcoz <[email protected]>
@jin
Copy link
Collaborator

jin commented Jan 2, 2025

I'm pretty sure we don't use the NDK for developing the project or even for downstream users who download aar artifacts -- or at least, we shouldn't incur this dependency. It's an incidental complexity, and I think the right fix is to remove the dep altogether.

#1305 is an attempt.

@utzcoz
Copy link
Contributor Author

utzcoz commented Jan 2, 2025

@jin Thanks for the explanation. I will close this one.

@utzcoz utzcoz closed this Jan 2, 2025
@utzcoz utzcoz deleted the use-rules_android_ndk branch January 2, 2025 14:17
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.

2 participants