Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion android/private/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ bzl_library(
name = "fullstory_android_binary",
srcs = ["fullstory_android_binary.bzl"],
visibility = ["//android:__subpackages__"],
deps = ["@rules_android//android:rules"],
deps = ["@rules_android//rules"],
)

bzl_library(
Expand Down
2 changes: 1 addition & 1 deletion android/private/fullstory_android_binary.bzl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"implementation of fullstory_android_binary rule"

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

def _impl(ctx):
return [
Expand Down
41 changes: 17 additions & 24 deletions patches/bazelbuild/rules_android/rules_bzl_lib.patch
Original file line number Diff line number Diff line change
@@ -1,33 +1,26 @@
diff --git a/android/BUILD b/android/BUILD
index 4db0c10..d7ee91b 100644
--- a/android/BUILD
+++ b/android/BUILD
@@ -16,3 +16,16 @@
Package used for redirecting Starlark rules from //android/rules.bzl to //rules/rules.bzl.
Used for easier migration to a new branch due to directory differences.
"""
+
+load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
+
diff --git a/rules/BUILD b/rules/BUILD
index c8b565d..b21b536 100644
--- a/rules/BUILD
+++ b/rules/BUILD
@@ -118,6 +118,21 @@ bzl_library(
],
)

+# Publicly-visible single-file `rules.bzl` target, for users of
+# `bazelbuild/bazel-skylib`'s `bazel_skylib_gazelle_plugin`:
+# https://registry.bazel.build/modules/bazel_skylib_gazelle_plugin
+bzl_library(
+ name = "rules",
+ srcs = ["rules.bzl"],
+ visibility = [
+ "//visibility:public",
+ ],
+ deps = [
+ "//rules:bzl",
+ ":bzl",
+ ],
+)
diff --git a/rules/BUILD b/rules/BUILD
index c8b565d..b1a560b 100644
--- a/rules/BUILD
+++ b/rules/BUILD
@@ -115,6 +115,7 @@ bzl_library(
"rules.bzl",
],
visibility = [
+ "//android:__pkg__",
"//mobile_install:__pkg__",
"//stardoc:__pkg__",
],
+
+
bzl_library(
name = "min_sdk_version_bzl",
srcs = ["min_sdk_version.bzl"],