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", |
Rambo Wang | 9b7acf7 | 2020-02-11 19:24:46 -0800 | [diff] [blame^] | 57 | "android.hardware.dumpstate-V1.0-java", |
| 58 | "android.hardware.dumpstate-V1.1-java", |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 59 | ], |
| 60 | |
| 61 | libs: [ |
| 62 | "telephony-common", |
| 63 | "ims-common", |
Bernardo Rufino | 9e32620 | 2019-12-16 17:17:50 +0000 | [diff] [blame] | 64 | "app-compat-annotations", |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 65 | ], |
Bernardo Rufino | 9e32620 | 2019-12-16 17:17:50 +0000 | [diff] [blame] | 66 | |
| 67 | plugins: [ |
| 68 | "compat-changeid-annotation-processor", |
| 69 | ] |
| 70 | } |
| 71 | |
| 72 | platform_compat_config { |
| 73 | name: "settings-platform-compat-config", |
| 74 | src: ":Settings-core", |
Mathew Inwood | de401bc | 2020-01-10 10:24:31 +0000 | [diff] [blame] | 75 | system_ext_specific: true, |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 76 | } |
| 77 | |
| 78 | android_app { |
| 79 | name: "Settings", |
| 80 | platform_apis: true, |
| 81 | certificate: "platform", |
Jeongik Cha | 68da89b | 2019-11-25 20:28:35 +0900 | [diff] [blame] | 82 | system_ext_specific: true, |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 83 | privileged: true, |
Mathew Inwood | de401bc | 2020-01-10 10:24:31 +0000 | [diff] [blame] | 84 | required: [ |
| 85 | "privapp_whitelist_com.android.settings", |
| 86 | "settings-platform-compat-config", |
| 87 | ], |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 88 | static_libs: ["Settings-core"], |
| 89 | resource_dirs: [], |
| 90 | optimize: { |
| 91 | proguard_flags_files: ["proguard.flags"], |
| 92 | }, |
| 93 | } |
| 94 | |
| 95 | android_library_import { |
| 96 | name: "contextualcards", |
| 97 | aars: ["libs/contextualcards.aar"], |
| 98 | } |