blob: 18e10bd8a6d366805f006612ca39133d228c1fd1 [file] [log] [blame] [edit]
// Copyright (C) 2022 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: ["Android-Apache-2.0"],
}
java_sdk_library {
name: "framework-configinfrastructure",
srcs: [
"java/**/*.java",
"java/**/*.aidl",
],
defaults: ["framework-module-defaults"],
permitted_packages: [
"android.internal.configinfra",
"android.provider",
"android.provider.flags",
"android.provider.x",
"android.provider.aidl",
"android.os.flagging",
],
apex_available: [
"com.android.configinfrastructure",
],
min_sdk_version: "34",
sdk_version: "module_current",
impl_library_visibility: [
"//packages/modules/ConfigInfrastructure:__subpackages__",
"//frameworks/base/ravenwood",
],
libs: [
"unsupportedappusage",
"aconfig_storage_stub",
],
static_libs: [
"aconfigd_java_proto_lite_lib",
"configinfra_framework_flags_java_lib",
"modules-utils-build",
"aconfig_storage_file_java",
],
aconfig_declarations: [
"configinfra_framework_flags",
],
jarjar_rules: "jarjar-rules.txt",
lint: {
baseline_filename: "lint-baseline.xml",
},
}
filegroup {
name: "framework-configinfrastructure-ravenwood-policies",
srcs: [
"framework-configinfrastructure-ravenwood-policies.txt",
],
visibility: ["//frameworks/base/ravenwood"],
}
aconfig_declarations {
name: "configinfra_framework_flags",
package: "android.provider.flags",
container: "com.android.configinfrastructure",
srcs: [
"flags.aconfig",
],
}
java_aconfig_library {
name: "configinfra_framework_flags_java_lib",
min_sdk_version: "34",
apex_available: [
"com.android.configinfrastructure",
"//apex_available:platform", // Used by DeviceConfigService
],
visibility: [
"//visibility:public",
],
aconfig_declarations: "configinfra_framework_flags",
sdk_version: "core_platform",
libs: [
"fake_device_config",
],
}