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