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 | |
| 7 | // Build the Settings APK |
| 8 | android_library { |
| 9 | name: "Settings-core", |
| 10 | platform_apis: true, |
| 11 | defaults: [ |
| 12 | "SettingsLibDefaults", |
| 13 | "SettingsLib-search-defaults", |
| 14 | ], |
| 15 | |
| 16 | srcs: ["src/**/*.java"], |
| 17 | |
| 18 | static_libs: [ |
| 19 | "androidx-constraintlayout_constraintlayout", |
| 20 | "androidx.slice_slice-builders", |
| 21 | "androidx.slice_slice-core", |
| 22 | "androidx.slice_slice-view", |
| 23 | "androidx.core_core", |
| 24 | "androidx.appcompat_appcompat", |
| 25 | "androidx.cardview_cardview", |
| 26 | "androidx.preference_preference", |
| 27 | "androidx.recyclerview_recyclerview", |
| 28 | "com.google.android.material_material", |
| 29 | "setupcompat", |
| 30 | "setupdesign", |
| 31 | "androidx-constraintlayout_constraintlayout-solver", |
| 32 | "androidx.lifecycle_lifecycle-runtime", |
| 33 | "androidx.lifecycle_lifecycle-extensions", |
| 34 | "guava", |
| 35 | "jsr305", |
| 36 | "settings-contextual-card-protos-lite", |
| 37 | "settings-log-bridge-protos-lite", |
| 38 | "contextualcards", |
| 39 | "settings-logtags", |
| 40 | "zxing-core-1.7", |
| 41 | ], |
| 42 | |
| 43 | libs: [ |
| 44 | "telephony-common", |
| 45 | "ims-common", |
Bernardo Rufino | 9e32620 | 2019-12-16 17:17:50 +0000 | [diff] [blame] | 46 | "app-compat-annotations", |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 47 | ], |
Bernardo Rufino | 9e32620 | 2019-12-16 17:17:50 +0000 | [diff] [blame] | 48 | |
| 49 | plugins: [ |
| 50 | "compat-changeid-annotation-processor", |
| 51 | ] |
| 52 | } |
| 53 | |
| 54 | platform_compat_config { |
| 55 | name: "settings-platform-compat-config", |
| 56 | src: ":Settings-core", |
Mathew Inwood | de401bc | 2020-01-10 10:24:31 +0000 | [diff] [blame^] | 57 | system_ext_specific: true, |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 58 | } |
| 59 | |
| 60 | android_app { |
| 61 | name: "Settings", |
| 62 | platform_apis: true, |
| 63 | certificate: "platform", |
Jeongik Cha | 68da89b | 2019-11-25 20:28:35 +0900 | [diff] [blame] | 64 | system_ext_specific: true, |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 65 | privileged: true, |
Mathew Inwood | de401bc | 2020-01-10 10:24:31 +0000 | [diff] [blame^] | 66 | required: [ |
| 67 | "privapp_whitelist_com.android.settings", |
| 68 | "settings-platform-compat-config", |
| 69 | ], |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 70 | static_libs: ["Settings-core"], |
| 71 | resource_dirs: [], |
| 72 | optimize: { |
| 73 | proguard_flags_files: ["proguard.flags"], |
| 74 | }, |
| 75 | } |
| 76 | |
| 77 | android_library_import { |
| 78 | name: "contextualcards", |
| 79 | aars: ["libs/contextualcards.aar"], |
| 80 | } |