blob: 82e0fdab77e6dc91b8318f20fb39b46f0b14ab4a [file] [log] [blame]
//
// Copyright (C) 2024 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
package {
default_applicable_licenses: ["frameworks_base_packages_SystemUI_license"],
// The package default_visibility specified here is inherited to subpackages that do not
// specify default_visibility:
default_visibility: ["//visibility:private"],
}
java_defaults {
name: "SystemUI_pod_defaults_api",
libs: [
"jsr330",
],
lint: {
extra_check_modules: ["SystemUILintChecker"],
warning_checks: ["MissingApacheLicenseDetector"],
},
kotlincflags: [
"-Xexplicit-api=strict",
"-Xjvm-default=all",
],
visibility: ["//visibility:public"],
defaults_visibility: [":__subpackages__"],
}
java_defaults {
name: "SystemUI_pod_defaults_impl",
libs: [
"jsr330",
],
lint: {
extra_check_modules: ["SystemUILintChecker"],
warning_checks: ["MissingApacheLicenseDetector"],
},
kotlincflags: [
"-Xexplicit-api=strict",
"-Xjvm-default=all",
],
// TODO(b/423659894): Once SysUI stands up its Dagger graph in its own build target, this
// visibility should be updated to just that build target.
visibility: ["//frameworks/base/packages/SystemUI:__subpackages__"],
defaults_visibility: [":__subpackages__"],
}
// Have all pods in the same java_library so that new pods don't need to modify packages/SystemUI/Android.bp.
java_library {
name: "com.android.systemui.pods-aosp-handheld",
static_libs: [
"com.android.systemui.dagger-api",
"com.android.systemui.retail-impl",
"com.android.systemui.util.settings-api",
"com.android.systemui.util.time-api",
"com.android.systemui.util.time-impl",
],
visibility: ["//frameworks/base/packages/SystemUI:__pkg__"],
}