blob: cc273fbe6ee24b5e7f7b2556158252adf707aa8a [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",
57 ],
58
59 libs: [
60 "telephony-common",
61 "ims-common",
Bernardo Rufino9e326202019-12-16 17:17:50 +000062 "app-compat-annotations",
Colin Cross946a0fd2019-05-07 11:22:05 -070063 ],
Bernardo Rufino9e326202019-12-16 17:17:50 +000064
65 plugins: [
66 "compat-changeid-annotation-processor",
67 ]
68}
69
70platform_compat_config {
71 name: "settings-platform-compat-config",
72 src: ":Settings-core",
Mathew Inwoodde401bc2020-01-10 10:24:31 +000073 system_ext_specific: true,
Colin Cross946a0fd2019-05-07 11:22:05 -070074}
75
76android_app {
77 name: "Settings",
78 platform_apis: true,
79 certificate: "platform",
Jeongik Cha68da89b2019-11-25 20:28:35 +090080 system_ext_specific: true,
Colin Cross946a0fd2019-05-07 11:22:05 -070081 privileged: true,
Mathew Inwoodde401bc2020-01-10 10:24:31 +000082 required: [
83 "privapp_whitelist_com.android.settings",
84 "settings-platform-compat-config",
85 ],
Colin Cross946a0fd2019-05-07 11:22:05 -070086 static_libs: ["Settings-core"],
87 resource_dirs: [],
88 optimize: {
89 proguard_flags_files: ["proguard.flags"],
90 },
91}
92
93android_library_import {
94 name: "contextualcards",
95 aars: ["libs/contextualcards.aar"],
96}