blob: bed663f18f552573b580f4a1be744b5c2cc40484 [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
Bonian Chen67bffec2021-09-23 12:51:26 +080047 srcs: ["src/**/*.java", "src/**/*.kt"],
Colin Cross946a0fd2019-05-07 11:22:05 -070048
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",
Diego Vela668aea92022-04-07 13:18:03 -070059 "androidx.window_window",
Colin Cross946a0fd2019-05-07 11:22:05 -070060 "com.google.android.material_material",
61 "setupcompat",
62 "setupdesign",
Colin Cross946a0fd2019-05-07 11:22:05 -070063 "androidx.lifecycle_lifecycle-runtime",
64 "androidx.lifecycle_lifecycle-extensions",
65 "guava",
66 "jsr305",
Junyu Lai3a15d6c2022-01-10 10:39:00 +000067 "net-utils-framework-common",
Colin Cross946a0fd2019-05-07 11:22:05 -070068 "settings-contextual-card-protos-lite",
69 "settings-log-bridge-protos-lite",
Bonian Chend5460432022-03-09 09:26:03 +080070 "settings-telephony-protos-lite",
Colin Cross946a0fd2019-05-07 11:22:05 -070071 "contextualcards",
72 "settings-logtags",
Muhammad Qureshi0454b272020-01-23 14:33:47 -080073 "statslog-settings",
Colin Cross946a0fd2019-05-07 11:22:05 -070074 "zxing-core-1.7",
Rambo Wang9b7acf72020-02-11 19:24:46 -080075 "android.hardware.dumpstate-V1.0-java",
76 "android.hardware.dumpstate-V1.1-java",
Curtis Belmontea5430672021-05-21 14:59:01 -070077 "lottie",
Quang Luong91dcd422021-06-10 14:30:06 -070078 "WifiTrackerLib",
Tsung-Mao Fang2df79642022-01-21 18:14:53 +080079 "SettingsLibActivityEmbedding",
Sam Mortimer3a9f4342017-09-08 00:22:33 -070080 "org.lineageos.platform.internal",
LuK1337b1453102022-08-30 09:43:29 +020081 "LineagePreferenceLib",
Bruno Martins898c7ac2021-01-18 23:47:54 +000082 "vendor.lineage.fastcharge-V1.0-java",
Colin Cross946a0fd2019-05-07 11:22:05 -070083 ],
84
85 libs: [
86 "telephony-common",
87 "ims-common",
Bernardo Rufino9e326202019-12-16 17:17:50 +000088 "app-compat-annotations",
Colin Cross946a0fd2019-05-07 11:22:05 -070089 ],
Bernardo Rufino9e326202019-12-16 17:17:50 +000090}
91
92platform_compat_config {
93 name: "settings-platform-compat-config",
94 src: ":Settings-core",
Mathew Inwoodde401bc2020-01-10 10:24:31 +000095 system_ext_specific: true,
Colin Cross946a0fd2019-05-07 11:22:05 -070096}
97
98android_app {
99 name: "Settings",
Jeff Sharkeya375faa2020-10-23 14:03:41 -0600100 defaults: ["platform_app_defaults"],
Colin Cross946a0fd2019-05-07 11:22:05 -0700101 platform_apis: true,
102 certificate: "platform",
Jeongik Cha68da89b2019-11-25 20:28:35 +0900103 system_ext_specific: true,
Colin Cross946a0fd2019-05-07 11:22:05 -0700104 privileged: true,
Mathew Inwoodde401bc2020-01-10 10:24:31 +0000105 required: [
106 "privapp_whitelist_com.android.settings",
107 "settings-platform-compat-config",
108 ],
Colin Cross946a0fd2019-05-07 11:22:05 -0700109 static_libs: ["Settings-core"],
Bonian Chene69d1a62021-01-06 05:41:46 +0000110 uses_libs: ["org.apache.http.legacy"],
Colin Cross946a0fd2019-05-07 11:22:05 -0700111 resource_dirs: [],
112 optimize: {
113 proguard_flags_files: ["proguard.flags"],
114 },
115}
116
117android_library_import {
118 name: "contextualcards",
119 aars: ["libs/contextualcards.aar"],
120}
Colin Cross38d3b0f2020-12-08 11:41:44 -0800121
122filegroup {
123 name: "Settings_proguard_flags",
124 srcs: ["proguard.flags"],
125}
126
127// The sources for Settings need to be exposed to SettingsGoogle, etc.
128// so they can run the com.android.settingslib.search.IndexableProcessor
129// over all the sources together.
130filegroup {
131 name: "Settings_srcs",
132 srcs: ["src/**/*.java"],
133}
134
135filegroup {
136 name: "Settings_manifest",
137 srcs: ["AndroidManifest.xml"],
138}