blob: 8e075b6db904e9f4c1ec765a3d77e884dee0ca54 [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",
75 platform_apis: true,
76 certificate: "platform",
Jeongik Cha68da89b2019-11-25 20:28:35 +090077 system_ext_specific: true,
Colin Cross946a0fd2019-05-07 11:22:05 -070078 privileged: true,
Mathew Inwoodde401bc2020-01-10 10:24:31 +000079 required: [
80 "privapp_whitelist_com.android.settings",
81 "settings-platform-compat-config",
82 ],
Colin Cross946a0fd2019-05-07 11:22:05 -070083 static_libs: ["Settings-core"],
84 resource_dirs: [],
85 optimize: {
86 proguard_flags_files: ["proguard.flags"],
87 },
88}
89
90android_library_import {
91 name: "contextualcards",
92 aars: ["libs/contextualcards.aar"],
93}