blob: f56ca95f9be6ffc68f39fa22aa1a4c526cb024f7 [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
Chaohui Wang9ec6f0e2022-05-30 01:01:55 +080038java_library {
39 name: "Settings-change-ids",
40 srcs: ["src/com/android/settings/ChangeIds.java"],
41 libs: [
42 "app-compat-annotations",
43 ],
44}
45
46
Colin Cross946a0fd2019-05-07 11:22:05 -070047// Build the Settings APK
48android_library {
49 name: "Settings-core",
50 platform_apis: true,
51 defaults: [
52 "SettingsLibDefaults",
53 "SettingsLib-search-defaults",
54 ],
55
Bonian Chen67bffec2021-09-23 12:51:26 +080056 srcs: ["src/**/*.java", "src/**/*.kt"],
Colin Cross946a0fd2019-05-07 11:22:05 -070057
58 static_libs: [
59 "androidx-constraintlayout_constraintlayout",
60 "androidx.slice_slice-builders",
61 "androidx.slice_slice-core",
62 "androidx.slice_slice-view",
63 "androidx.core_core",
64 "androidx.appcompat_appcompat",
65 "androidx.cardview_cardview",
66 "androidx.preference_preference",
67 "androidx.recyclerview_recyclerview",
Diego Vela668aea92022-04-07 13:18:03 -070068 "androidx.window_window",
Colin Cross946a0fd2019-05-07 11:22:05 -070069 "com.google.android.material_material",
70 "setupcompat",
71 "setupdesign",
Colin Cross946a0fd2019-05-07 11:22:05 -070072 "androidx.lifecycle_lifecycle-runtime",
73 "androidx.lifecycle_lifecycle-extensions",
74 "guava",
75 "jsr305",
Junyu Lai3a15d6c2022-01-10 10:39:00 +000076 "net-utils-framework-common",
Colin Cross946a0fd2019-05-07 11:22:05 -070077 "settings-contextual-card-protos-lite",
78 "settings-log-bridge-protos-lite",
Bonian Chend5460432022-03-09 09:26:03 +080079 "settings-telephony-protos-lite",
Colin Cross946a0fd2019-05-07 11:22:05 -070080 "contextualcards",
81 "settings-logtags",
Muhammad Qureshi0454b272020-01-23 14:33:47 -080082 "statslog-settings",
Colin Cross946a0fd2019-05-07 11:22:05 -070083 "zxing-core-1.7",
Rambo Wang9b7acf72020-02-11 19:24:46 -080084 "android.hardware.dumpstate-V1.0-java",
85 "android.hardware.dumpstate-V1.1-java",
Rambo Wangc9292dc2022-09-07 14:59:49 +000086 "android.hardware.dumpstate-V1-java",
Curtis Belmontea5430672021-05-21 14:59:01 -070087 "lottie",
Quang Luong91dcd422021-06-10 14:30:06 -070088 "WifiTrackerLib",
Tsung-Mao Fang2df79642022-01-21 18:14:53 +080089 "SettingsLibActivityEmbedding",
Chaohui Wang9ec6f0e2022-05-30 01:01:55 +080090 "Settings-change-ids",
Joshua McCloskey67c6ec32022-11-02 19:49:00 +000091 "SystemUIUnfoldLib",
Colin Cross946a0fd2019-05-07 11:22:05 -070092 ],
93
94 libs: [
95 "telephony-common",
96 "ims-common",
97 ],
Bernardo Rufino9e326202019-12-16 17:17:50 +000098}
99
100platform_compat_config {
101 name: "settings-platform-compat-config",
Chaohui Wang9ec6f0e2022-05-30 01:01:55 +0800102 src: ":Settings-change-ids",
Mathew Inwoodde401bc2020-01-10 10:24:31 +0000103 system_ext_specific: true,
Colin Cross946a0fd2019-05-07 11:22:05 -0700104}
105
106android_app {
107 name: "Settings",
Jeff Sharkeya375faa2020-10-23 14:03:41 -0600108 defaults: ["platform_app_defaults"],
Colin Cross946a0fd2019-05-07 11:22:05 -0700109 platform_apis: true,
110 certificate: "platform",
Jeongik Cha68da89b2019-11-25 20:28:35 +0900111 system_ext_specific: true,
Colin Cross946a0fd2019-05-07 11:22:05 -0700112 privileged: true,
Mathew Inwoodde401bc2020-01-10 10:24:31 +0000113 required: [
114 "privapp_whitelist_com.android.settings",
115 "settings-platform-compat-config",
116 ],
Colin Cross946a0fd2019-05-07 11:22:05 -0700117 static_libs: ["Settings-core"],
Bonian Chene69d1a62021-01-06 05:41:46 +0000118 uses_libs: ["org.apache.http.legacy"],
Colin Cross946a0fd2019-05-07 11:22:05 -0700119 resource_dirs: [],
120 optimize: {
121 proguard_flags_files: ["proguard.flags"],
122 },
123}
124
125android_library_import {
126 name: "contextualcards",
127 aars: ["libs/contextualcards.aar"],
128}
Colin Cross38d3b0f2020-12-08 11:41:44 -0800129
130filegroup {
131 name: "Settings_proguard_flags",
132 srcs: ["proguard.flags"],
133}
134
135// The sources for Settings need to be exposed to SettingsGoogle, etc.
136// so they can run the com.android.settingslib.search.IndexableProcessor
137// over all the sources together.
138filegroup {
139 name: "Settings_srcs",
Chaohui Wang9ec6f0e2022-05-30 01:01:55 +0800140 srcs: ["src/**/*.java", "src/**/*.kt"],
Colin Cross38d3b0f2020-12-08 11:41:44 -0800141}
142
143filegroup {
144 name: "Settings_manifest",
145 srcs: ["AndroidManifest.xml"],
146}