• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package {
2    default_applicable_licenses: ["packages_apps_Settings_license"],
3}
4
5// Added automatically by a large-scale-change
6// See: http://go/android-license-faq
7license {
8    name: "packages_apps_Settings_license",
9    visibility: [":__subpackages__"],
10    license_kinds: [
11        "SPDX-license-identifier-Apache-2.0",
12    ],
13    license_text: [
14        "NOTICE",
15    ],
16}
17
18java_library {
19    name: "settings-logtags",
20    srcs: ["src/**/*.logtags"],
21}
22
23genrule {
24    name: "statslog-settings-java-gen",
25    tools: ["stats-log-api-gen"],
26    cmd: "$(location stats-log-api-gen) --java $(out) --module settings"
27        + " --javaPackage com.android.settings.core.instrumentation --javaClass SettingsStatsLog",
28    out: ["com/android/settings/core/instrumentation/SettingsStatsLog.java"],
29}
30
31java_library {
32    name: "statslog-settings",
33    srcs: [
34        ":statslog-settings-java-gen",
35    ],
36}
37
38// Build the Settings APK
39android_library {
40    name: "Settings-core",
41    platform_apis: true,
42    defaults: [
43        "SettingsLibDefaults",
44        "SettingsLib-search-defaults",
45    ],
46
47    srcs: ["src/**/*.java"],
48
49    static_libs: [
50        "androidx-constraintlayout_constraintlayout",
51        "androidx.slice_slice-builders",
52        "androidx.slice_slice-core",
53        "androidx.slice_slice-view",
54        "androidx.core_core",
55        "androidx.appcompat_appcompat",
56        "androidx.cardview_cardview",
57        "androidx.preference_preference",
58        "androidx.recyclerview_recyclerview",
59        "com.google.android.material_material",
60        "setupcompat",
61        "setupdesign",
62        "androidx-constraintlayout_constraintlayout-solver",
63        "androidx.lifecycle_lifecycle-runtime",
64        "androidx.lifecycle_lifecycle-extensions",
65        "guava",
66        "jsr305",
67        "settings-contextual-card-protos-lite",
68        "settings-log-bridge-protos-lite",
69        "contextualcards",
70        "settings-logtags",
71        "statslog-settings",
72        "zxing-core-1.7",
73        "android.hardware.dumpstate-V1.0-java",
74        "android.hardware.dumpstate-V1.1-java",
75        "lottie",
76    ],
77
78    libs: [
79        "telephony-common",
80        "ims-common",
81        "app-compat-annotations",
82    ],
83}
84
85platform_compat_config {
86    name: "settings-platform-compat-config",
87    src: ":Settings-core",
88    system_ext_specific: true,
89}
90
91android_app {
92    name: "Settings",
93    defaults: ["platform_app_defaults"],
94    platform_apis: true,
95    certificate: "platform",
96    system_ext_specific: true,
97    privileged: true,
98    required: [
99        "privapp_whitelist_com.android.settings",
100        "settings-platform-compat-config",
101    ],
102    static_libs: ["Settings-core"],
103    uses_libs: ["org.apache.http.legacy"],
104    resource_dirs: [],
105    optimize: {
106        proguard_flags_files: ["proguard.flags"],
107    },
108}
109
110android_library_import {
111    name: "contextualcards",
112    aars: ["libs/contextualcards.aar"],
113}
114
115filegroup {
116    name: "Settings_proguard_flags",
117    srcs: ["proguard.flags"],
118}
119
120// The sources for Settings need to be exposed to SettingsGoogle, etc.
121// so they can run the com.android.settingslib.search.IndexableProcessor
122// over all the sources together.
123filegroup {
124    name: "Settings_srcs",
125    srcs: ["src/**/*.java"],
126}
127
128filegroup {
129    name: "Settings_manifest",
130    srcs: ["AndroidManifest.xml"],
131}
132