blob: dce25d7ddaeeef54cff5fb6a9c934f5295d9c69b [file] [log] [blame]
Bob Badoura73a6722021-02-25 15:05:14 -08001package {
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
Colin Cross946a0fd2019-05-07 11:22:05 -070018java_library {
19 name: "settings-logtags",
20 srcs: ["src/**/*.logtags"],
Colin Cross946a0fd2019-05-07 11:22:05 -070021}
22
Muhammad Qureshi0454b272020-01-23 14:33:47 -080023genrule {
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
Colin Cross946a0fd2019-05-07 11:22:05 -070038// 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",
Muhammad Qureshi0454b272020-01-23 14:33:47 -080071 "statslog-settings",
Colin Cross946a0fd2019-05-07 11:22:05 -070072 "zxing-core-1.7",
Rambo Wang9b7acf72020-02-11 19:24:46 -080073 "android.hardware.dumpstate-V1.0-java",
74 "android.hardware.dumpstate-V1.1-java",
Curtis Belmontea5430672021-05-21 14:59:01 -070075 "lottie",
Tsung-Mao Fangc6e44c02021-08-17 18:28:06 +080076 "windowExtLib",
Colin Cross946a0fd2019-05-07 11:22:05 -070077 ],
78
79 libs: [
80 "telephony-common",
81 "ims-common",
Bernardo Rufino9e326202019-12-16 17:17:50 +000082 "app-compat-annotations",
Colin Cross946a0fd2019-05-07 11:22:05 -070083 ],
Bernardo Rufino9e326202019-12-16 17:17:50 +000084}
85
86platform_compat_config {
87 name: "settings-platform-compat-config",
88 src: ":Settings-core",
Mathew Inwoodde401bc2020-01-10 10:24:31 +000089 system_ext_specific: true,
Colin Cross946a0fd2019-05-07 11:22:05 -070090}
91
92android_app {
93 name: "Settings",
Jeff Sharkeya375faa2020-10-23 14:03:41 -060094 defaults: ["platform_app_defaults"],
Colin Cross946a0fd2019-05-07 11:22:05 -070095 platform_apis: true,
96 certificate: "platform",
Jeongik Cha68da89b2019-11-25 20:28:35 +090097 system_ext_specific: true,
Colin Cross946a0fd2019-05-07 11:22:05 -070098 privileged: true,
Mathew Inwoodde401bc2020-01-10 10:24:31 +000099 required: [
100 "privapp_whitelist_com.android.settings",
101 "settings-platform-compat-config",
102 ],
Colin Cross946a0fd2019-05-07 11:22:05 -0700103 static_libs: ["Settings-core"],
Bonian Chene69d1a62021-01-06 05:41:46 +0000104 uses_libs: ["org.apache.http.legacy"],
Tsung-Mao Fangc6e44c02021-08-17 18:28:06 +0800105 optional_uses_libs: [
106 "androidx.window.extensions",
107 "androidx.window.sidecar",
108 ],
Colin Cross946a0fd2019-05-07 11:22:05 -0700109 resource_dirs: [],
110 optimize: {
111 proguard_flags_files: ["proguard.flags"],
112 },
113}
114
115android_library_import {
116 name: "contextualcards",
117 aars: ["libs/contextualcards.aar"],
118}
Colin Cross38d3b0f2020-12-08 11:41:44 -0800119
Tsung-Mao Fangc6e44c02021-08-17 18:28:06 +0800120android_library_import {
121 name: "windowExtLib",
122 aars: ["libs/window_ext_lib.aar"],
123}
124
Colin Cross38d3b0f2020-12-08 11:41:44 -0800125filegroup {
126 name: "Settings_proguard_flags",
127 srcs: ["proguard.flags"],
128}
129
130// The sources for Settings need to be exposed to SettingsGoogle, etc.
131// so they can run the com.android.settingslib.search.IndexableProcessor
132// over all the sources together.
133filegroup {
134 name: "Settings_srcs",
135 srcs: ["src/**/*.java"],
136}
137
138filegroup {
139 name: "Settings_manifest",
140 srcs: ["AndroidManifest.xml"],
141}