Skip to content

Releases: ted-xie/rules_android_ndk

v0.1.7

v0.1.7 Pre-release
Pre-release

Choose a tag to compare

@ted-xie ted-xie released this 22 Jul 17:45

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 = "com_myorg_rules_android_ndk", version = "0.1.7")

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 = "ba393a2e44505a6a22cc6d6a9b98def827ebc9584edee354167d814e4c33bbb4",
    strip_prefix = "rules_android_ndk-0.1.7",
    url = "https://github.com/myorg/rules_android_ndk/releases/download/v0.1.7/rules_android_ndk-v0.1.7.tar.gz",
)
load("@rules_android_ndk//:rules.bzl", "android_ndk_repository")

android_ndk_repository(name = "androidndk")

register_toolchains("@androidndk//:all")

v0.1.6

v0.1.6 Pre-release
Pre-release

Choose a tag to compare

@ted-xie ted-xie released this 22 Jul 16:33

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 = "com_myorg_rules_android_ndk", version = "0.1.6")

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 = "bc0bf2005c761844d09f0dcd8b8529d812c7edd152ebe0f890fbbc3acf7df346",
    strip_prefix = "rules_android_ndk-0.1.6",
    url = "https://github.com/myorg/rules_android_ndk/releases/download/v0.1.6/rules_android_ndk-v0.1.6.tar.gz",
)
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

load("@rules_android_ndk//:rules.bzl", "android_ndk_repository")

android_ndk_repository(name = "androidndk")

register_toolchains("@androidndk//:all")

# rules_android and Android SDK

RULES_ANDROID_COMMIT = "dd7b90c91fdc4edeca90ba9ebffa3c469b426a35"

http_archive(
    name = "rules_android",
    sha256 = "d0b310dd23442b8ff024cba73ad7564024b473673d8d5de7d01bd91adb9aa2d0",
    strip_prefix = "rules_android-" + RULES_ANDROID_COMMIT,
    urls = ["https://github.com/bazelbuild/rules_android/archive/%s.zip" % RULES_ANDROID_COMMIT],
)

load("@rules_android//:prereqs.bzl", "rules_android_prereqs")

rules_android_prereqs()

load("@rules_android//:defs.bzl", "rules_android_workspace")

rules_android_workspace()

load("@rules_android//rules:rules.bzl", "android_sdk_repository")

# Requires that the ANDROID_HOME environment variable is set to the Android SDK path.
android_sdk_repository(
    name = "androidsdk",
)

register_toolchains(
    "@rules_android//toolchains/android:android_default_toolchain",
    "@rules_android//toolchains/android_sdk:android_sdk_tools",
)

v0.1.5

Choose a tag to compare

@ted-xie ted-xie released this 22 Jul 15:33

Full Changelog: v0.1.4...v0.1.5

v0.1.4

Choose a tag to compare

@ted-xie ted-xie released this 22 Jul 15:26

Full Changelog: v0.1.3...v0.1.4

v0.1.3

Choose a tag to compare

@ted-xie ted-xie released this 22 Jul 15:22

Full Changelog: v0.1.2...v0.1.3

v0.1.2

Choose a tag to compare

@ted-xie ted-xie released this 22 Jul 15:08

Full Changelog: v0.1.1...v0.1.2

v0.1.1

Choose a tag to compare

@ted-xie ted-xie released this 22 Jul 15:05
e57cdcc