From f7f8a34f948356dbce209482dfb41cea9cd7be30 Mon Sep 17 00:00:00 2001 From: Googler Date: Mon, 9 Jan 2023 08:31:58 -0800 Subject: [PATCH] Add a note about the Starlark version of android_ndk_repository to the docs for the native rule. RELNOTES: None PiperOrigin-RevId: 500721006 Change-Id: Id920ebdf9d574b50ad87955629b7b6c240ad2b41 --- .../lib/bazel/rules/android/AndroidNdkRepositoryRule.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/google/devtools/build/lib/bazel/rules/android/AndroidNdkRepositoryRule.java b/src/main/java/com/google/devtools/build/lib/bazel/rules/android/AndroidNdkRepositoryRule.java index 226e36378ddd42..2ba28614e66fa2 100644 --- a/src/main/java/com/google/devtools/build/lib/bazel/rules/android/AndroidNdkRepositoryRule.java +++ b/src/main/java/com/google/devtools/build/lib/bazel/rules/android/AndroidNdkRepositoryRule.java @@ -85,6 +85,12 @@ public Metadata getMetadata() {

Configures Bazel to use an Android NDK to support building Android targets with native code. +

Note that this implementation of android_ndk_repository is being replaced by an +implementation in Starlark. Support for future versions of the NDK including version 25 and up will +be implemented in the Starlark version of android_ndk_repository. See +rules_android_ndk for the Starlark +version. +

Note that building for Android also requires an android_sdk_repository rule in your WORKSPACE file.