Skip to content

Commit

Permalink
Rename build_bazel_rules_android to rules_android (#1047)
Browse files Browse the repository at this point in the history
* Rename build_bazel_rules_android to rules_android

* Formatting

* Update MODULE.bazel
  • Loading branch information
Bencodes authored Oct 12, 2023
1 parent 8cb605b commit aea51a5
Show file tree
Hide file tree
Showing 15 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ bazel_dep(name = "rules_cc", version = "0.0.8")
rules_kotlin_extensions = use_extension("//src/main/starlark/core/repositories:bzlmod_setup.bzl", "rules_kotlin_extensions")
use_repo(
rules_kotlin_extensions,
"build_bazel_rules_android",
"buildkite_config",
"com_github_google_ksp",
"com_github_jetbrains_kotlin",
"com_github_pinterest_ktlint",
"kt_java_stub_template",
"rules_android",
)

register_toolchains("//kotlin/internal:default_toolchain")
Expand Down
2 changes: 1 addition & 1 deletion examples/android/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module(name = "android-example")
remote_android_extensions = use_extension("@bazel_tools//tools/android:android_extensions.bzl", "remote_android_tools_extensions")
use_repo(remote_android_extensions, "android_gmaven_r8", "android_tools")

bazel_dep(name = "rules_android", version = "0.1.1", repo_name = "build_bazel_rules_android")
bazel_dep(name = "rules_android", version = "0.1.1")
bazel_dep(name = "bazel_skylib", version = "1.2.1")
bazel_dep(name = "rules_robolectric", version = "4.10.3", repo_name = "robolectric")
bazel_dep(name = "rules_java", version = "6.4.0")
Expand Down
4 changes: 2 additions & 2 deletions examples/android/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ maven_install(
)

http_archive(
name = "build_bazel_rules_android",
name = "rules_android",
sha256 = versions.ANDROID.SHA,
strip_prefix = "rules_android-%s" % versions.ANDROID.VERSION,
urls = ["https://github.com/bazelbuild/rules_android/archive/v%s.zip" % versions.ANDROID.VERSION],
)

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

Expand Down
2 changes: 1 addition & 1 deletion examples/android/app/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("@bazel_skylib//rules:build_test.bzl", "build_test")
load("@build_bazel_rules_android//android:rules.bzl", "android_binary")
load("@rules_android//android:rules.bzl", "android_binary")

# An app that consumes android-kt deps
android_binary(
Expand Down
2 changes: 1 addition & 1 deletion examples/android/libAndroid/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@build_bazel_rules_android//android:rules.bzl", "android_library")
load("@rules_android//android:rules.bzl", "android_library")
load("@rules_kotlin//kotlin:jvm.bzl", "kt_jvm_library")

android_library(
Expand Down
4 changes: 2 additions & 2 deletions examples/anvil/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ register_toolchains("//:kotlin_toolchain")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
name = "build_bazel_rules_android",
name = "rules_android",
sha256 = versions.ANDROID.SHA,
strip_prefix = "rules_android-%s" % versions.ANDROID.VERSION,
urls = ["https://github.com/bazelbuild/rules_android/archive/v%s.zip" % versions.ANDROID.VERSION],
)

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

android_sdk_repository(name = "androidsdk")

Expand Down
2 changes: 1 addition & 1 deletion examples/anvil/app/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@build_bazel_rules_android//android:rules.bzl", "android_binary")
load("@rules_android//android:rules.bzl", "android_binary")

android_binary(
name = "app",
Expand Down
2 changes: 1 addition & 1 deletion examples/associates/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ kt_register_toolchains()
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
name = "build_bazel_rules_android",
name = "rules_android",
sha256 = "cd06d15dd8bb59926e4d65f9003bfc20f9da4b2519985c27e190cddc8b7a7806",
strip_prefix = "rules_android-0.1.1",
urls = ["https://github.com/bazelbuild/rules_android/archive/v0.1.1.zip"],
Expand Down
4 changes: 2 additions & 2 deletions examples/deps/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ maven_install(
)

http_archive(
name = "build_bazel_rules_android",
name = "rules_android",
sha256 = versions.ANDROID.SHA,
strip_prefix = "rules_android-%s" % versions.ANDROID.VERSION,
urls = ["https://github.com/bazelbuild/rules_android/archive/v%s.zip" % versions.ANDROID.VERSION],
)

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

Expand Down
4 changes: 2 additions & 2 deletions examples/jetpack_compose/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ http_archive(
## Android

http_archive(
name = "build_bazel_rules_android",
name = "rules_android",
sha256 = versions.ANDROID.SHA,
strip_prefix = "rules_android-%s" % versions.ANDROID.VERSION,
urls = ["https://github.com/bazelbuild/rules_android/archive/v%s.zip" % versions.ANDROID.VERSION],
)

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

android_sdk_repository(name = "androidsdk")
2 changes: 1 addition & 1 deletion examples/jetpack_compose/app/BUILD
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("@bazel_skylib//rules:build_test.bzl", "build_test")
load("@build_bazel_rules_android//android:rules.bzl", "android_binary")
load("@rules_android//android:rules.bzl", "android_binary")

# An app that consumes android-kt deps
android_binary(
Expand Down
2 changes: 1 addition & 1 deletion examples/plugin/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ maven_install(
],
)

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

android_sdk_repository(name = "androidsdk")
2 changes: 1 addition & 1 deletion kotlin/internal/jvm/android.bzl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load(
"@build_bazel_rules_android//android:rules.bzl",
"@rules_android//android:rules.bzl",
_android_library = "android_library",
_android_local_test = "android_local_test",
)
Expand Down
2 changes: 1 addition & 1 deletion src/main/starlark/core/repositories/download.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def kt_download_local_dev_dependencies():
)

rules_stardoc_repository(
name = "build_bazel_rules_android",
name = "rules_android",
sha256 = versions.ANDROID.SHA,
strip_prefix = "rules_android-%s" % versions.ANDROID.VERSION,
urls = versions.ANDROID.URLS,
Expand Down
2 changes: 1 addition & 1 deletion src/main/starlark/core/repositories/initialize.release.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def kotlin_repositories(

maybe(
http_archive,
name = "build_bazel_rules_android",
name = "rules_android",
sha256 = versions.ANDROID.SHA,
strip_prefix = "rules_android-%s" % versions.ANDROID.VERSION,
urls = versions.ANDROID.URLS,
Expand Down

0 comments on commit aea51a5

Please sign in to comment.