Skip to content

Releases: bazelbuild/rules_android_ndk

v0.1.2

22 Jul 18:45
461e8c9
Compare
Choose a tag to compare

Using Bzlmod with Bazel 6 or greater

  1. (Bazel 6 only) Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "rules_android_ndk", version = "0.1.2")

Using WORKSPACE

Paste this snippet into your WORKSPACE.bazel file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "rules_android_ndk",
    sha256 = "65aedff0cd728bee394f6fb8e65ba39c4c5efb11b29b766356922d4a74c623f5",
    strip_prefix = "rules_android_ndk-0.1.2",
    url = "https://github.com/bazelbuild/rules_android_ndk/releases/download/v0.1.2/rules_android_ndk-v0.1.2.tar.gz",
)
load("@rules_android_ndk//:rules.bzl", "android_ndk_repository")

android_ndk_repository(name = "androidndk")

register_toolchains("@androidndk//:all")

v0.1.1

19 Jul 21:45
e57cdcc
Compare
Choose a tag to compare

What's Changed

  • Add a script to pull in rules-template files by @ted-xie in #75
  • Fix .bcr/presubmit.yml by @ted-xie in #74
  • Pull in github workflows by @ted-xie in #76
  • Ignore ci.yaml and buildifier.yaml from rules-template by @ted-xie in #77

Full Changelog: 0.1.0...v0.1.1

0.1.0

18 Jul 19:33
b91e64f
Compare
Choose a tag to compare
  • First release for rules_android_ndk
  • NDK r25c verified
  • Bazel 7.2.1 verified
  • Bzlmod and WORKSPACE supported
  • --android_platforms supported
  • Linux, Mac, and Windows hosts supported
  • Additional NDK headers available with examples (android/log.h, android_native_app_glue.h)

NOTE: There is a nearly identical release of this codebase here as v0.1.2, where the only differences are fixes in the CI release pipeline and proper integration into the Bazel Central Registry (BCR).