Skip to content

Commit

Permalink
Add load visibility to all acl files.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 640698240
Change-Id: I2d533758261b304f90b76e6fe02d8f8be18d9c7e
  • Loading branch information
timpeut authored and Copybara-Service committed Jun 6, 2024
1 parent 8446c9d commit 7ff0e29
Show file tree
Hide file tree
Showing 48 changed files with 175 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rules/acls/aar_import_deps_checker.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
See b/148478031 for context.
"""

load("//rules:visibility.bzl", "PROJECT_VISIBILITY")

visibility(PROJECT_VISIBILITY)

# keep sorted
AAR_IMPORT_DEPS_CHECKER_ROLLOUT = [
"//:__subpackages__",
Expand Down
4 changes: 4 additions & 0 deletions rules/acls/aar_import_explicit_exports_manifest.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

"""Allow list for aar_import rule to explcitly set exports_manifest."""

load("//rules:visibility.bzl", "PROJECT_VISIBILITY")

visibility(PROJECT_VISIBILITY)

# keep sorted
AAR_IMPORT_EXPLICIT_EXPORTS_MANIFEST = [
]
4 changes: 4 additions & 0 deletions rules/acls/aar_import_exports_r_java.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

"""Allow list for aar_import rule to export the R.java."""

load("//rules:visibility.bzl", "PROJECT_VISIBILITY")

visibility(PROJECT_VISIBILITY)

# keep sorted
AAR_IMPORT_EXPORTS_R_JAVA = [
]
3 changes: 3 additions & 0 deletions rules/acls/allow_resource_conflicts.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@
See b/125484033.
"""

load("//rules:visibility.bzl", "PROJECT_VISIBILITY")

visibility(PROJECT_VISIBILITY)
ALLOW_RESOURCE_CONFLICTS = []
3 changes: 3 additions & 0 deletions rules/acls/android_apk_to_bundle_features_lockdown.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,8 @@

"""Allowlist for specifying `features` on the android_apk_to_bundle rule."""

load("//rules:visibility.bzl", "PROJECT_VISIBILITY")

visibility(PROJECT_VISIBILITY)
ANDROID_APK_TO_BUNDLE_FEATURES = [
]
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

"""Allow list for using sandboxed SDKs in the android_application rule."""

load("//rules:visibility.bzl", "PROJECT_VISIBILITY")

visibility(PROJECT_VISIBILITY)

# keep sorted
ANDROID_APPLICATION_WITH_SANDBOXED_SDKS_ALLOWLIST = [
"//:__subpackages__",
Expand Down
4 changes: 4 additions & 0 deletions rules/acls/android_archive_dogfood.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

"""Allowlist for targets able to use the android_archive rule."""

load("//rules:visibility.bzl", "PROJECT_VISIBILITY")

visibility(PROJECT_VISIBILITY)

# keep sorted
ANDROID_ARCHIVE_DOGFOOD = [
"//:__subpackages__",
Expand Down
4 changes: 4 additions & 0 deletions rules/acls/android_archive_duplicate_class_allowlist.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

"""Allowlist for android_archive targets to skip duplicate class validation."""

load("//rules:visibility.bzl", "PROJECT_VISIBILITY")

visibility(PROJECT_VISIBILITY)

# Map of {"//some:target": ["list.class", "of.class", "classes.class"]} which will be excluded from
# duplicate class validation.
# keep sorted
Expand Down
4 changes: 4 additions & 0 deletions rules/acls/android_archive_excluded_deps_denylist.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

"""Denylist for rules that are not allowed in android_archive excluded_deps."""

load("//rules:visibility.bzl", "PROJECT_VISIBILITY")

visibility(PROJECT_VISIBILITY)

# keep sorted
ANDROID_ARCHIVE_EXCLUDED_DEPS_DENYLIST = [
# Failure test support.
Expand Down
4 changes: 4 additions & 0 deletions rules/acls/android_archive_exposed_package_allowlist.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

"""Allowlist for android_archive targets to expose packages that would otherwise be restricted."""

load("//rules:visibility.bzl", "PROJECT_VISIBILITY")

visibility(PROJECT_VISIBILITY)

# Map of {"target": ["list", "of", "packages"]} which will be excluded from
# exposed package checks.
# keep sorted
Expand Down
4 changes: 4 additions & 0 deletions rules/acls/android_binary_min_sdk_version_attribute.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

"""Allowlist for setting new min_sdk_version on android_binary targets."""

load("//rules:visibility.bzl", "PROJECT_VISIBILITY")

visibility(PROJECT_VISIBILITY)

# keep sorted.
ANDROID_BINARY_MIN_SDK_VERSION_ATTRIBUTE_ALLOWLIST = [
"//test/rules/android_binary_internal:__subpackages__",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,10 @@
# limitations under the License.

"""Allow list for android_binary targets with raw access to resource paths in the APK ."""

load("//rules:visibility.bzl", "PROJECT_VISIBILITY")

visibility(PROJECT_VISIBILITY)

ANDROID_BINARY_RAW_ACCESS_TO_RESOURCE_PATHS_ALLOWLIST = [
]
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,9 @@
# limitations under the License.

"""Allow list of android_binary targets that need to opt out of the AAPT2 resource name obfuscation optimization."""

load("//rules:visibility.bzl", "PROJECT_VISIBILITY")

visibility(PROJECT_VISIBILITY)

ANDROID_BINARY_RESOURCE_NAME_OBFUSCATION_OPT_OUT_ALLOWLIST = []
4 changes: 4 additions & 0 deletions rules/acls/android_binary_starlark_javac.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

"""Allow list for rollout of Starlark java compilation in android_binary_internal."""

load("//rules:visibility.bzl", "PROJECT_VISIBILITY")

visibility(PROJECT_VISIBILITY)

# keep sorted
ANDROID_BINARY_STARLARK_JAVAC_ROLLOUT = [
"//:__subpackages__",
Expand Down
3 changes: 3 additions & 0 deletions rules/acls/android_binary_starlark_rollout.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@

"""Allow list for rollout of Starlark android_binary rule."""

load("//rules:visibility.bzl", "PROJECT_VISIBILITY")

visibility(PROJECT_VISIBILITY)
ANDROID_BINARY_STARLARK_ROLLOUT = [
"//:__subpackages__",
]
Expand Down
3 changes: 3 additions & 0 deletions rules/acls/android_binary_starlark_split_transition.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@

"""Allow and fallback lists for using the Starlark implementation of the android split transition"""

load("//rules:visibility.bzl", "PROJECT_VISIBILITY")

visibility(PROJECT_VISIBILITY)
ANDROID_BINARY_STARLARK_SPLIT_TRANSITION_ROLLOUT = [
"//:__subpackages__",
]
Expand Down
4 changes: 4 additions & 0 deletions rules/acls/android_binary_with_sandboxed_sdks_allowlist.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

"""Allow list of android_binary_with_sandboxed_sdks rule."""

load("//rules:visibility.bzl", "PROJECT_VISIBILITY")

visibility(PROJECT_VISIBILITY)

# keep sorted
ANDROID_BINARY_WITH_SANDBOXED_SDKS_ALLOWLIST = [
"//:__subpackages__",
Expand Down
4 changes: 4 additions & 0 deletions rules/acls/android_build_stamping_rollout.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

"""Allow list for build stamping in the Android Rules."""

load("//rules:visibility.bzl", "PROJECT_VISIBILITY")

visibility(PROJECT_VISIBILITY)

# keep sorted
ANDROID_BUILD_STAMPING_ROLLOUT = [
]
Expand Down
4 changes: 4 additions & 0 deletions rules/acls/android_device_plugin_rollout.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

"""Allow and fallback lists for ATP Device Plugin rollout."""

load("//rules:visibility.bzl", "PROJECT_VISIBILITY")

visibility(PROJECT_VISIBILITY)

# Targets for ATP Device Plugin Rollout
ANDROID_DEVICE_PLUGIN_ROLLOUT = [
"//:__subpackages__",
Expand Down
4 changes: 4 additions & 0 deletions rules/acls/android_feature_splits_dogfood.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

"""Packages able to use deprecated Android feature splits features."""

load("//rules:visibility.bzl", "PROJECT_VISIBILITY")

visibility(PROJECT_VISIBILITY)

# keep sorted
ANDROID_FEATURE_SPLITS_DOGFOOD = [
]
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
"""Rollout list for enabling test class derivation in android_instrumentation_test,"""

load("//rules:acls.bzl", "make_dict", "matches")
load("//rules:visibility.bzl", "PROJECT_VISIBILITY")

visibility(PROJECT_VISIBILITY)

_ANDROID_INSTRUMENTATION_TEST_DERIVED_TEST_CLASS_ROLLOUT = [
"//:__subpackages__",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@

"""Rollout list for enabling manifest validation in android_instrumentation_test."""

load("//rules:visibility.bzl", "PROJECT_VISIBILITY")

visibility(PROJECT_VISIBILITY)
ANDROID_INSTRUMENTATION_TEST_MANIFEST_CHECK_ROLLOUT = [
"//:__subpackages__",
]
Expand Down
4 changes: 4 additions & 0 deletions rules/acls/android_instrumentation_test_prebuilt_test_apk.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

"""Allow list of a_i_t targets allowed to use a prebuilt test apk."""

load("//rules:visibility.bzl", "PROJECT_VISIBILITY")

visibility(PROJECT_VISIBILITY)

# keep sorted
ANDROID_INSTRUMENTATION_TEST_PREBUILT_TEST_APK_ROLLOUT = [
]
Expand Down
3 changes: 3 additions & 0 deletions rules/acls/android_library_resources_without_srcs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@

"""Allow list for b/144163743, allowing implicit export of deps when resources and deps are present."""

load("//rules:visibility.bzl", "PROJECT_VISIBILITY")

visibility(PROJECT_VISIBILITY)
ANDROID_LIBRARY_RESOURCES_WITHOUT_SRCS_GENERATOR_FUNCTIONS = []

ANDROID_LIBRARY_RESOURCES_WITHOUT_SRCS = ["//:__subpackages__"]
4 changes: 4 additions & 0 deletions rules/acls/android_library_starlark_resource_outputs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ those files generated by the Starlark resource processing pipeline and not the n
processing pipeline. These resource-related predeclared outputs need to be re-pointed to the corresponding
artifacts in the Starlark pipeline. See b/177261846."""

load("//rules:visibility.bzl", "PROJECT_VISIBILITY")

visibility(PROJECT_VISIBILITY)

# keep sorted
ANDROID_LIBRARY_STARLARK_RESOURCE_OUTPUTS_ROLLOUT = [
"//:__subpackages__",
Expand Down
3 changes: 3 additions & 0 deletions rules/acls/android_library_use_aosp_aidl_compiler.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,8 @@

"""Allow list for the `idl_use_aosp_compiler` attribute in the `android_library` rule."""

load("//rules:visibility.bzl", "PROJECT_VISIBILITY")

visibility(PROJECT_VISIBILITY)
ANDROID_LIBRARY_USE_AOSP_AIDL_COMPILER_ALLOWLIST = [
]
4 changes: 4 additions & 0 deletions rules/acls/android_lint_checks_rollout.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

"""Allow list for using the "fully enabled" lint check config."""

load("//rules:visibility.bzl", "PROJECT_VISIBILITY")

visibility(PROJECT_VISIBILITY)

# keep sorted
ANDROID_LINT_CHECKS_ROLLOUT = [
]
Expand Down
4 changes: 4 additions & 0 deletions rules/acls/android_lint_rollout.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

"""Allow list for Android Lint in the Android Rules."""

load("//rules:visibility.bzl", "PROJECT_VISIBILITY")

visibility(PROJECT_VISIBILITY)

# keep sorted
ANDROID_LINT_ROLLOUT = [
]
Expand Down
4 changes: 4 additions & 0 deletions rules/acls/android_local_test_jdk_sts_rollout.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

"""Allow and fallback lists for using the latest JDK runtime in android_local_test."""

load("//rules:visibility.bzl", "PROJECT_VISIBILITY")

visibility(PROJECT_VISIBILITY)

# keep sorted
ANDROID_LOCAL_TEST_JDK_STS_ROLLOUT = [
]
Expand Down
3 changes: 3 additions & 0 deletions rules/acls/android_multidex_native_min_sdk_allowlist.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@
"""Allow list for android_binary and android_test targets which configure multidex=native with a
# pre-Lollipop minSdkVersion, until they're cleaned up. See b/36138693."""

load("//rules:visibility.bzl", "PROJECT_VISIBILITY")

visibility(PROJECT_VISIBILITY)
ANDROID_MULTIDEX_NATIVE_MIN_SDK_ALLOWLIST = []
3 changes: 3 additions & 0 deletions rules/acls/android_test_lockdown.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@

"""Allowlist of macro and targets that are allowed to use android_test."""

load("//rules:visibility.bzl", "PROJECT_VISIBILITY")

visibility(PROJECT_VISIBILITY)
ANDROID_TEST_LOCKDOWN_GENERATOR_FUNCTIONS = [
]

Expand Down
3 changes: 3 additions & 0 deletions rules/acls/b122039567.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,8 @@

"""Allow list for b/122039567."""

load("//rules:visibility.bzl", "PROJECT_VISIBILITY")

visibility(PROJECT_VISIBILITY)
B122039567 = [
]
4 changes: 4 additions & 0 deletions rules/acls/baseline_profiles_optimizer_integration.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

"""Allowlist for targets allowed to use baseline_profiles in optimizer tools."""

load("//rules:visibility.bzl", "PROJECT_VISIBILITY")

visibility(PROJECT_VISIBILITY)

# keep sorted
BASELINE_PROFILES_OPTIMIZER_INTEGRATION = [
"//test/rules/android_binary_internal:__subpackages__",
Expand Down
4 changes: 4 additions & 0 deletions rules/acls/baseline_profiles_rollout.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

"""Allowlist for targets allowed to set baseline_profiles."""

load("//rules:visibility.bzl", "PROJECT_VISIBILITY")

visibility(PROJECT_VISIBILITY)

# keep sorted
BASELINE_PROFILES_ROLLOUT = [
]
4 changes: 4 additions & 0 deletions rules/acls/cldr.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

"""Allowlist for the CLDR Locale provider"""

load("//rules:visibility.bzl", "PROJECT_VISIBILITY")

visibility(PROJECT_VISIBILITY)

# keep sorted
USE_CLDR_ROLLOUT = [
]
Expand Down
4 changes: 4 additions & 0 deletions rules/acls/databinding.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

"""Allowlist for databinding"""

load("//rules:visibility.bzl", "PROJECT_VISIBILITY")

visibility(PROJECT_VISIBILITY)

# keep sorted
DATABINDING_ALLOWED = [
"//:__subpackages__",
Expand Down
4 changes: 4 additions & 0 deletions rules/acls/dex2oat_opts.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

"""Packages in this list are allowed to specify custom dex2oat options."""

load("//rules:visibility.bzl", "PROJECT_VISIBILITY")

visibility(PROJECT_VISIBILITY)

# keep sorted
CAN_USE_DEX2OAT_OPTIONS = [
]
3 changes: 3 additions & 0 deletions rules/acls/disable_optimizing_dexer.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,8 @@

"""Temporary allowlist to disable the optimizing dexer flow."""

load("//rules:visibility.bzl", "PROJECT_VISIBILITY")

visibility(PROJECT_VISIBILITY)
DISABLE_OPTIMIZING_DEXER = [
]
Loading

0 comments on commit 7ff0e29

Please sign in to comment.