blob: 0307ccbf82df714a1c2c1abc1f3693e2e879d8f3 [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",
Sam Mortimer3a9f4342017-09-08 00:22:33 -070092 "org.lineageos.platform.internal",
LuK1337b1453102022-08-30 09:43:29 +020093 "LineagePreferenceLib",
Bruno Martins898c7ac2021-01-18 23:47:54 +000094 "vendor.lineage.fastcharge-V1.0-java",
LuK1337fbdf55b2022-04-29 12:46:22 +020095 "SystemUISharedLib",
Colin Cross946a0fd2019-05-07 11:22:05 -070096 ],
97
98 libs: [
99 "telephony-common",
100 "ims-common",
101 ],
Bernardo Rufino9e326202019-12-16 17:17:50 +0000102}
103
104platform_compat_config {
105 name: "settings-platform-compat-config",
Chaohui Wang9ec6f0e2022-05-30 01:01:55 +0800106 src: ":Settings-change-ids",
Mathew Inwoodde401bc2020-01-10 10:24:31 +0000107 system_ext_specific: true,
Colin Cross946a0fd2019-05-07 11:22:05 -0700108}
109
110android_app {
111 name: "Settings",
Jeff Sharkeya375faa2020-10-23 14:03:41 -0600112 defaults: ["platform_app_defaults"],
Colin Cross946a0fd2019-05-07 11:22:05 -0700113 platform_apis: true,
114 certificate: "platform",
Jeongik Cha68da89b2019-11-25 20:28:35 +0900115 system_ext_specific: true,
Colin Cross946a0fd2019-05-07 11:22:05 -0700116 privileged: true,
Mathew Inwoodde401bc2020-01-10 10:24:31 +0000117 required: [
118 "privapp_whitelist_com.android.settings",
119 "settings-platform-compat-config",
120 ],
Colin Cross946a0fd2019-05-07 11:22:05 -0700121 static_libs: ["Settings-core"],
Bonian Chene69d1a62021-01-06 05:41:46 +0000122 uses_libs: ["org.apache.http.legacy"],
Colin Cross946a0fd2019-05-07 11:22:05 -0700123 resource_dirs: [],
124 optimize: {
125 proguard_flags_files: ["proguard.flags"],
126 },
127}
128
129android_library_import {
130 name: "contextualcards",
131 aars: ["libs/contextualcards.aar"],
132}
Colin Cross38d3b0f2020-12-08 11:41:44 -0800133
134filegroup {
135 name: "Settings_proguard_flags",
136 srcs: ["proguard.flags"],
137}
138
139// The sources for Settings need to be exposed to SettingsGoogle, etc.
140// so they can run the com.android.settingslib.search.IndexableProcessor
141// over all the sources together.
142filegroup {
143 name: "Settings_srcs",
Chaohui Wang9ec6f0e2022-05-30 01:01:55 +0800144 srcs: ["src/**/*.java", "src/**/*.kt"],
Colin Cross38d3b0f2020-12-08 11:41:44 -0800145}
146
147filegroup {
148 name: "Settings_manifest",
149 srcs: ["AndroidManifest.xml"],
150}