blob: 4112d0417224e8069832f376a372fb9743745fbb [file] [log] [blame]
Colin Cross946a0fd2019-05-07 11:22:05 -07001java_library {
2 name: "settings-logtags",
3 srcs: ["src/**/*.logtags"],
Quang Luongb470e722019-06-24 14:47:55 -07004 static_libs: ["WifiTrackerLib"],
Colin Cross946a0fd2019-05-07 11:22:05 -07005}
6
Muhammad Qureshi0454b272020-01-23 14:33:47 -08007genrule {
8 name: "statslog-settings-java-gen",
9 tools: ["stats-log-api-gen"],
10 cmd: "$(location stats-log-api-gen) --java $(out) --module settings"
11 + " --javaPackage com.android.settings.core.instrumentation --javaClass SettingsStatsLog",
12 out: ["com/android/settings/core/instrumentation/SettingsStatsLog.java"],
13}
14
15java_library {
16 name: "statslog-settings",
17 srcs: [
18 ":statslog-settings-java-gen",
19 ],
20}
21
Colin Cross946a0fd2019-05-07 11:22:05 -070022// Build the Settings APK
23android_library {
24 name: "Settings-core",
25 platform_apis: true,
26 defaults: [
27 "SettingsLibDefaults",
28 "SettingsLib-search-defaults",
29 ],
30
31 srcs: ["src/**/*.java"],
32
33 static_libs: [
34 "androidx-constraintlayout_constraintlayout",
35 "androidx.slice_slice-builders",
36 "androidx.slice_slice-core",
37 "androidx.slice_slice-view",
38 "androidx.core_core",
39 "androidx.appcompat_appcompat",
40 "androidx.cardview_cardview",
41 "androidx.preference_preference",
42 "androidx.recyclerview_recyclerview",
43 "com.google.android.material_material",
44 "setupcompat",
45 "setupdesign",
46 "androidx-constraintlayout_constraintlayout-solver",
47 "androidx.lifecycle_lifecycle-runtime",
48 "androidx.lifecycle_lifecycle-extensions",
49 "guava",
50 "jsr305",
51 "settings-contextual-card-protos-lite",
52 "settings-log-bridge-protos-lite",
53 "contextualcards",
54 "settings-logtags",
Muhammad Qureshi0454b272020-01-23 14:33:47 -080055 "statslog-settings",
Colin Cross946a0fd2019-05-07 11:22:05 -070056 "zxing-core-1.7",
Rambo Wang9b7acf72020-02-11 19:24:46 -080057 "android.hardware.dumpstate-V1.0-java",
58 "android.hardware.dumpstate-V1.1-java",
Colin Cross946a0fd2019-05-07 11:22:05 -070059 ],
60
61 libs: [
62 "telephony-common",
63 "ims-common",
Bernardo Rufino9e326202019-12-16 17:17:50 +000064 "app-compat-annotations",
Colin Cross946a0fd2019-05-07 11:22:05 -070065 ],
Bernardo Rufino9e326202019-12-16 17:17:50 +000066
67 plugins: [
68 "compat-changeid-annotation-processor",
69 ]
70}
71
72platform_compat_config {
73 name: "settings-platform-compat-config",
74 src: ":Settings-core",
Mathew Inwoodde401bc2020-01-10 10:24:31 +000075 system_ext_specific: true,
Colin Cross946a0fd2019-05-07 11:22:05 -070076}
77
78android_app {
79 name: "Settings",
80 platform_apis: true,
81 certificate: "platform",
Jeongik Cha68da89b2019-11-25 20:28:35 +090082 system_ext_specific: true,
Colin Cross946a0fd2019-05-07 11:22:05 -070083 privileged: true,
Mathew Inwoodde401bc2020-01-10 10:24:31 +000084 required: [
85 "privapp_whitelist_com.android.settings",
86 "settings-platform-compat-config",
87 ],
Colin Cross946a0fd2019-05-07 11:22:05 -070088 static_libs: ["Settings-core"],
89 resource_dirs: [],
90 optimize: {
91 proguard_flags_files: ["proguard.flags"],
92 },
93}
94
95android_library_import {
96 name: "contextualcards",
97 aars: ["libs/contextualcards.aar"],
98}