diff --git a/MODULE.bazel b/MODULE.bazel index 80fa3d7c68..44f4757999 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -28,6 +28,7 @@ bazel_dep(name = "pico-sdk", version = "2.0.0") bazel_dep(name = "picotool", version = "2.0.0") bazel_dep(name = "platforms", version = "0.0.10") bazel_dep(name = "protobuf", version = "28.2", repo_name = "com_google_protobuf") +bazel_dep(name = "rules_android", version = "0.1.1") bazel_dep(name = "rules_cc", version = "0.0.10") bazel_dep(name = "rules_fuzzing", version = "0.5.2") bazel_dep(name = "rules_go", version = "0.49.0", repo_name = "io_bazel_rules_go") diff --git a/pw_hdlc/java/main/dev/pigweed/pw_hdlc/BUILD.bazel b/pw_hdlc/java/main/dev/pigweed/pw_hdlc/BUILD.bazel index 11f19a54d5..eefc2480c8 100644 --- a/pw_hdlc/java/main/dev/pigweed/pw_hdlc/BUILD.bazel +++ b/pw_hdlc/java/main/dev/pigweed/pw_hdlc/BUILD.bazel @@ -12,6 +12,7 @@ # License for the specific language governing permissions and limitations under # the License. +load("@rules_android//android:library.bzl", "android_library") load("@rules_java//java:defs.bzl", "java_library") load("@rules_jvm_external//:defs.bzl", "artifact") diff --git a/pw_log/java/android_main/dev/pigweed/pw_log/BUILD.bazel b/pw_log/java/android_main/dev/pigweed/pw_log/BUILD.bazel index b1810bcef1..7025be7c0d 100644 --- a/pw_log/java/android_main/dev/pigweed/pw_log/BUILD.bazel +++ b/pw_log/java/android_main/dev/pigweed/pw_log/BUILD.bazel @@ -12,6 +12,8 @@ # License for the specific language governing permissions and limitations under # the License. +load("@rules_android//android:library.bzl", "android_library") + android_library( name = "pw_log", srcs = ["Logger.java"], diff --git a/pw_rpc/java/main/dev/pigweed/pw_rpc/BUILD.bazel b/pw_rpc/java/main/dev/pigweed/pw_rpc/BUILD.bazel index 776dccd372..95a3f58199 100644 --- a/pw_rpc/java/main/dev/pigweed/pw_rpc/BUILD.bazel +++ b/pw_rpc/java/main/dev/pigweed/pw_rpc/BUILD.bazel @@ -14,6 +14,7 @@ # Generic client for pw_rpc, Pigweed's RPC system. +load("@rules_android//android:library.bzl", "android_library") load("@rules_java//java:defs.bzl", "java_library") load("@rules_jvm_external//:defs.bzl", "artifact") diff --git a/pw_transfer/java/main/dev/pigweed/pw_transfer/BUILD.bazel b/pw_transfer/java/main/dev/pigweed/pw_transfer/BUILD.bazel index 1aa6943eed..0c4d0d3c04 100644 --- a/pw_transfer/java/main/dev/pigweed/pw_transfer/BUILD.bazel +++ b/pw_transfer/java/main/dev/pigweed/pw_transfer/BUILD.bazel @@ -15,6 +15,7 @@ # Client for the pw_transfer RPC service, which is used to send and receive data # over pw_rpc. +load("@rules_android//android:library.bzl", "android_library") load("@rules_java//java:defs.bzl", "java_library") load("@rules_jvm_external//:defs.bzl", "artifact")