Bob Badour | a73a672 | 2021-02-25 15:05:14 -0800 | [diff] [blame] | 1 | package { |
| 2 | default_applicable_licenses: ["packages_apps_Settings_license"], |
| 3 | } |
| 4 | |
| 5 | // Added automatically by a large-scale-change |
| 6 | // See: http://go/android-license-faq |
| 7 | license { |
| 8 | name: "packages_apps_Settings_license", |
| 9 | visibility: [":__subpackages__"], |
| 10 | license_kinds: [ |
| 11 | "SPDX-license-identifier-Apache-2.0", |
| 12 | ], |
| 13 | license_text: [ |
| 14 | "NOTICE", |
| 15 | ], |
| 16 | } |
| 17 | |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 18 | java_library { |
| 19 | name: "settings-logtags", |
| 20 | srcs: ["src/**/*.logtags"], |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 21 | } |
| 22 | |
Muhammad Qureshi | 0454b27 | 2020-01-23 14:33:47 -0800 | [diff] [blame] | 23 | genrule { |
| 24 | name: "statslog-settings-java-gen", |
| 25 | tools: ["stats-log-api-gen"], |
| 26 | cmd: "$(location stats-log-api-gen) --java $(out) --module settings" |
| 27 | + " --javaPackage com.android.settings.core.instrumentation --javaClass SettingsStatsLog", |
| 28 | out: ["com/android/settings/core/instrumentation/SettingsStatsLog.java"], |
| 29 | } |
| 30 | |
| 31 | java_library { |
| 32 | name: "statslog-settings", |
| 33 | srcs: [ |
| 34 | ":statslog-settings-java-gen", |
| 35 | ], |
| 36 | } |
| 37 | |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 38 | // Build the Settings APK |
| 39 | android_library { |
| 40 | name: "Settings-core", |
| 41 | platform_apis: true, |
| 42 | defaults: [ |
| 43 | "SettingsLibDefaults", |
| 44 | "SettingsLib-search-defaults", |
| 45 | ], |
| 46 | |
Bonian Chen | 67bffec | 2021-09-23 12:51:26 +0800 | [diff] [blame] | 47 | srcs: ["src/**/*.java", "src/**/*.kt"], |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 48 | |
| 49 | static_libs: [ |
| 50 | "androidx-constraintlayout_constraintlayout", |
| 51 | "androidx.slice_slice-builders", |
| 52 | "androidx.slice_slice-core", |
| 53 | "androidx.slice_slice-view", |
| 54 | "androidx.core_core", |
| 55 | "androidx.appcompat_appcompat", |
| 56 | "androidx.cardview_cardview", |
| 57 | "androidx.preference_preference", |
| 58 | "androidx.recyclerview_recyclerview", |
| 59 | "com.google.android.material_material", |
| 60 | "setupcompat", |
| 61 | "setupdesign", |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 62 | "androidx.lifecycle_lifecycle-runtime", |
| 63 | "androidx.lifecycle_lifecycle-extensions", |
| 64 | "guava", |
| 65 | "jsr305", |
Junyu Lai | 3a15d6c | 2022-01-10 10:39:00 +0000 | [diff] [blame] | 66 | "net-utils-framework-common", |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 67 | "settings-contextual-card-protos-lite", |
| 68 | "settings-log-bridge-protos-lite", |
| 69 | "contextualcards", |
| 70 | "settings-logtags", |
Muhammad Qureshi | 0454b27 | 2020-01-23 14:33:47 -0800 | [diff] [blame] | 71 | "statslog-settings", |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 72 | "zxing-core-1.7", |
Rambo Wang | 9b7acf7 | 2020-02-11 19:24:46 -0800 | [diff] [blame] | 73 | "android.hardware.dumpstate-V1.0-java", |
| 74 | "android.hardware.dumpstate-V1.1-java", |
Curtis Belmonte | a543067 | 2021-05-21 14:59:01 -0700 | [diff] [blame] | 75 | "lottie", |
Quang Luong | 91dcd42 | 2021-06-10 14:30:06 -0700 | [diff] [blame] | 76 | "WifiTrackerLib", |
Tsung-Mao Fang | 18ad0c4 | 2021-08-17 18:28:06 +0800 | [diff] [blame] | 77 | "windowExtLib", |
Tsung-Mao Fang | 2df7964 | 2022-01-21 18:14:53 +0800 | [diff] [blame^] | 78 | "SettingsLibActivityEmbedding", |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 79 | ], |
| 80 | |
| 81 | libs: [ |
| 82 | "telephony-common", |
| 83 | "ims-common", |
Bernardo Rufino | 9e32620 | 2019-12-16 17:17:50 +0000 | [diff] [blame] | 84 | "app-compat-annotations", |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 85 | ], |
Bernardo Rufino | 9e32620 | 2019-12-16 17:17:50 +0000 | [diff] [blame] | 86 | } |
| 87 | |
| 88 | platform_compat_config { |
| 89 | name: "settings-platform-compat-config", |
| 90 | src: ":Settings-core", |
Mathew Inwood | de401bc | 2020-01-10 10:24:31 +0000 | [diff] [blame] | 91 | system_ext_specific: true, |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 92 | } |
| 93 | |
| 94 | android_app { |
| 95 | name: "Settings", |
Jeff Sharkey | a375faa | 2020-10-23 14:03:41 -0600 | [diff] [blame] | 96 | defaults: ["platform_app_defaults"], |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 97 | platform_apis: true, |
| 98 | certificate: "platform", |
Jeongik Cha | 68da89b | 2019-11-25 20:28:35 +0900 | [diff] [blame] | 99 | system_ext_specific: true, |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 100 | privileged: true, |
Mathew Inwood | de401bc | 2020-01-10 10:24:31 +0000 | [diff] [blame] | 101 | required: [ |
| 102 | "privapp_whitelist_com.android.settings", |
| 103 | "settings-platform-compat-config", |
| 104 | ], |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 105 | static_libs: ["Settings-core"], |
Bonian Chen | e69d1a6 | 2021-01-06 05:41:46 +0000 | [diff] [blame] | 106 | uses_libs: ["org.apache.http.legacy"], |
Tsung-Mao Fang | 18ad0c4 | 2021-08-17 18:28:06 +0800 | [diff] [blame] | 107 | optional_uses_libs: [ |
| 108 | "androidx.window.extensions", |
| 109 | "androidx.window.sidecar", |
| 110 | ], |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 111 | resource_dirs: [], |
| 112 | optimize: { |
| 113 | proguard_flags_files: ["proguard.flags"], |
| 114 | }, |
| 115 | } |
| 116 | |
| 117 | android_library_import { |
| 118 | name: "contextualcards", |
| 119 | aars: ["libs/contextualcards.aar"], |
| 120 | } |
Colin Cross | 38d3b0f | 2020-12-08 11:41:44 -0800 | [diff] [blame] | 121 | |
Tsung-Mao Fang | 18ad0c4 | 2021-08-17 18:28:06 +0800 | [diff] [blame] | 122 | android_library_import { |
| 123 | name: "windowExtLib", |
| 124 | aars: ["libs/window_ext_lib.aar"], |
| 125 | } |
| 126 | |
Colin Cross | 38d3b0f | 2020-12-08 11:41:44 -0800 | [diff] [blame] | 127 | filegroup { |
| 128 | name: "Settings_proguard_flags", |
| 129 | srcs: ["proguard.flags"], |
| 130 | } |
| 131 | |
| 132 | // The sources for Settings need to be exposed to SettingsGoogle, etc. |
| 133 | // so they can run the com.android.settingslib.search.IndexableProcessor |
| 134 | // over all the sources together. |
| 135 | filegroup { |
| 136 | name: "Settings_srcs", |
| 137 | srcs: ["src/**/*.java"], |
| 138 | } |
| 139 | |
| 140 | filegroup { |
| 141 | name: "Settings_manifest", |
| 142 | srcs: ["AndroidManifest.xml"], |
| 143 | } |