blob: 5470e708143456c3c29c064f92b25dd6f9f80d61 [file] [log] [blame]
Colin Cross946a0fd2019-05-07 11:22:05 -07001java_library {
2 name: "settings-logtags",
3 srcs: ["src/**/*.logtags"],
Colin Cross946a0fd2019-05-07 11:22:05 -07004}
5
Muhammad Qureshi0454b272020-01-23 14:33:47 -08006genrule {
7 name: "statslog-settings-java-gen",
8 tools: ["stats-log-api-gen"],
9 cmd: "$(location stats-log-api-gen) --java $(out) --module settings"
10 + " --javaPackage com.android.settings.core.instrumentation --javaClass SettingsStatsLog",
11 out: ["com/android/settings/core/instrumentation/SettingsStatsLog.java"],
12}
13
14java_library {
15 name: "statslog-settings",
16 srcs: [
17 ":statslog-settings-java-gen",
18 ],
19}
20
Colin Cross946a0fd2019-05-07 11:22:05 -070021// Build the Settings APK
22android_library {
23 name: "Settings-core",
24 platform_apis: true,
25 defaults: [
26 "SettingsLibDefaults",
27 "SettingsLib-search-defaults",
28 ],
29
30 srcs: ["src/**/*.java"],
31
32 static_libs: [
33 "androidx-constraintlayout_constraintlayout",
34 "androidx.slice_slice-builders",
35 "androidx.slice_slice-core",
36 "androidx.slice_slice-view",
37 "androidx.core_core",
38 "androidx.appcompat_appcompat",
39 "androidx.cardview_cardview",
40 "androidx.preference_preference",
41 "androidx.recyclerview_recyclerview",
42 "com.google.android.material_material",
43 "setupcompat",
44 "setupdesign",
45 "androidx-constraintlayout_constraintlayout-solver",
46 "androidx.lifecycle_lifecycle-runtime",
47 "androidx.lifecycle_lifecycle-extensions",
48 "guava",
49 "jsr305",
50 "settings-contextual-card-protos-lite",
51 "settings-log-bridge-protos-lite",
52 "contextualcards",
53 "settings-logtags",
Muhammad Qureshi0454b272020-01-23 14:33:47 -080054 "statslog-settings",
Colin Cross946a0fd2019-05-07 11:22:05 -070055 "zxing-core-1.7",
Rambo Wang9b7acf72020-02-11 19:24:46 -080056 "android.hardware.dumpstate-V1.0-java",
57 "android.hardware.dumpstate-V1.1-java",
Colin Cross946a0fd2019-05-07 11:22:05 -070058 ],
59
60 libs: [
61 "telephony-common",
62 "ims-common",
Bernardo Rufino9e326202019-12-16 17:17:50 +000063 "app-compat-annotations",
Colin Cross946a0fd2019-05-07 11:22:05 -070064 ],
Bernardo Rufino9e326202019-12-16 17:17:50 +000065}
66
67platform_compat_config {
68 name: "settings-platform-compat-config",
69 src: ":Settings-core",
Mathew Inwoodde401bc2020-01-10 10:24:31 +000070 system_ext_specific: true,
Colin Cross946a0fd2019-05-07 11:22:05 -070071}
72
73android_app {
74 name: "Settings",
Jeff Sharkeya375faa2020-10-23 14:03:41 -060075 defaults: ["platform_app_defaults"],
Colin Cross946a0fd2019-05-07 11:22:05 -070076 platform_apis: true,
77 certificate: "platform",
Jeongik Cha68da89b2019-11-25 20:28:35 +090078 system_ext_specific: true,
Colin Cross946a0fd2019-05-07 11:22:05 -070079 privileged: true,
Mathew Inwoodde401bc2020-01-10 10:24:31 +000080 required: [
81 "privapp_whitelist_com.android.settings",
82 "settings-platform-compat-config",
83 ],
Colin Cross946a0fd2019-05-07 11:22:05 -070084 static_libs: ["Settings-core"],
Bonian Chene69d1a62021-01-06 05:41:46 +000085 uses_libs: ["org.apache.http.legacy"],
Colin Cross946a0fd2019-05-07 11:22:05 -070086 resource_dirs: [],
87 optimize: {
88 proguard_flags_files: ["proguard.flags"],
89 },
90}
91
92android_library_import {
93 name: "contextualcards",
94 aars: ["libs/contextualcards.aar"],
95}