Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 1 | java_library { |
| 2 | name: "settings-logtags", |
| 3 | srcs: ["src/**/*.logtags"], |
Quang Luong | b470e72 | 2019-06-24 14:47:55 -0700 | [diff] [blame] | 4 | static_libs: ["WifiTrackerLib"], |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 5 | } |
| 6 | |
Muhammad Qureshi | 0454b27 | 2020-01-23 14:33:47 -0800 | [diff] [blame] | 7 | genrule { |
| 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 | |
| 15 | java_library { |
| 16 | name: "statslog-settings", |
| 17 | srcs: [ |
| 18 | ":statslog-settings-java-gen", |
| 19 | ], |
| 20 | } |
| 21 | |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 22 | // Build the Settings APK |
| 23 | android_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 Qureshi | 0454b27 | 2020-01-23 14:33:47 -0800 | [diff] [blame] | 55 | "statslog-settings", |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 56 | "zxing-core-1.7", |
| 57 | ], |
| 58 | |
| 59 | libs: [ |
| 60 | "telephony-common", |
| 61 | "ims-common", |
Bernardo Rufino | 9e32620 | 2019-12-16 17:17:50 +0000 | [diff] [blame] | 62 | "app-compat-annotations", |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 63 | ], |
Bernardo Rufino | 9e32620 | 2019-12-16 17:17:50 +0000 | [diff] [blame] | 64 | |
| 65 | plugins: [ |
| 66 | "compat-changeid-annotation-processor", |
| 67 | ] |
| 68 | } |
| 69 | |
| 70 | platform_compat_config { |
| 71 | name: "settings-platform-compat-config", |
| 72 | src: ":Settings-core", |
Mathew Inwood | de401bc | 2020-01-10 10:24:31 +0000 | [diff] [blame] | 73 | system_ext_specific: true, |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 74 | } |
| 75 | |
| 76 | android_app { |
| 77 | name: "Settings", |
| 78 | platform_apis: true, |
| 79 | certificate: "platform", |
Jeongik Cha | 68da89b | 2019-11-25 20:28:35 +0900 | [diff] [blame] | 80 | system_ext_specific: true, |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 81 | privileged: true, |
Mathew Inwood | de401bc | 2020-01-10 10:24:31 +0000 | [diff] [blame] | 82 | required: [ |
| 83 | "privapp_whitelist_com.android.settings", |
| 84 | "settings-platform-compat-config", |
| 85 | ], |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 86 | static_libs: ["Settings-core"], |
| 87 | resource_dirs: [], |
| 88 | optimize: { |
| 89 | proguard_flags_files: ["proguard.flags"], |
| 90 | }, |
| 91 | } |
| 92 | |
| 93 | android_library_import { |
| 94 | name: "contextualcards", |
| 95 | aars: ["libs/contextualcards.aar"], |
| 96 | } |