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 | |
Chaohui Wang | 9ec6f0e | 2022-05-30 01:01:55 +0800 | [diff] [blame] | 38 | java_library { |
| 39 | name: "Settings-change-ids", |
| 40 | srcs: ["src/com/android/settings/ChangeIds.java"], |
| 41 | libs: [ |
| 42 | "app-compat-annotations", |
| 43 | ], |
| 44 | } |
| 45 | |
| 46 | |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 47 | // Build the Settings APK |
| 48 | android_library { |
| 49 | name: "Settings-core", |
| 50 | platform_apis: true, |
| 51 | defaults: [ |
| 52 | "SettingsLibDefaults", |
| 53 | "SettingsLib-search-defaults", |
| 54 | ], |
| 55 | |
Bonian Chen | 67bffec | 2021-09-23 12:51:26 +0800 | [diff] [blame] | 56 | srcs: ["src/**/*.java", "src/**/*.kt"], |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 57 | |
| 58 | static_libs: [ |
| 59 | "androidx-constraintlayout_constraintlayout", |
| 60 | "androidx.slice_slice-builders", |
| 61 | "androidx.slice_slice-core", |
| 62 | "androidx.slice_slice-view", |
| 63 | "androidx.core_core", |
| 64 | "androidx.appcompat_appcompat", |
| 65 | "androidx.cardview_cardview", |
| 66 | "androidx.preference_preference", |
| 67 | "androidx.recyclerview_recyclerview", |
Diego Vela | 668aea9 | 2022-04-07 13:18:03 -0700 | [diff] [blame] | 68 | "androidx.window_window", |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 69 | "com.google.android.material_material", |
| 70 | "setupcompat", |
| 71 | "setupdesign", |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 72 | "androidx.lifecycle_lifecycle-runtime", |
| 73 | "androidx.lifecycle_lifecycle-extensions", |
| 74 | "guava", |
| 75 | "jsr305", |
Junyu Lai | 3a15d6c | 2022-01-10 10:39:00 +0000 | [diff] [blame] | 76 | "net-utils-framework-common", |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 77 | "settings-contextual-card-protos-lite", |
| 78 | "settings-log-bridge-protos-lite", |
Bonian Chen | d546043 | 2022-03-09 09:26:03 +0800 | [diff] [blame] | 79 | "settings-telephony-protos-lite", |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 80 | "contextualcards", |
| 81 | "settings-logtags", |
Muhammad Qureshi | 0454b27 | 2020-01-23 14:33:47 -0800 | [diff] [blame] | 82 | "statslog-settings", |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 83 | "zxing-core-1.7", |
Rambo Wang | 9b7acf7 | 2020-02-11 19:24:46 -0800 | [diff] [blame] | 84 | "android.hardware.dumpstate-V1.0-java", |
| 85 | "android.hardware.dumpstate-V1.1-java", |
Rambo Wang | c9292dc | 2022-09-07 14:59:49 +0000 | [diff] [blame] | 86 | "android.hardware.dumpstate-V1-java", |
Curtis Belmonte | a543067 | 2021-05-21 14:59:01 -0700 | [diff] [blame] | 87 | "lottie", |
Quang Luong | 91dcd42 | 2021-06-10 14:30:06 -0700 | [diff] [blame] | 88 | "WifiTrackerLib", |
Tsung-Mao Fang | 2df7964 | 2022-01-21 18:14:53 +0800 | [diff] [blame] | 89 | "SettingsLibActivityEmbedding", |
Chaohui Wang | 9ec6f0e | 2022-05-30 01:01:55 +0800 | [diff] [blame] | 90 | "Settings-change-ids", |
Joshua McCloskey | 67c6ec3 | 2022-11-02 19:49:00 +0000 | [diff] [blame] | 91 | "SystemUIUnfoldLib", |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 92 | ], |
| 93 | |
| 94 | libs: [ |
| 95 | "telephony-common", |
| 96 | "ims-common", |
| 97 | ], |
Bernardo Rufino | 9e32620 | 2019-12-16 17:17:50 +0000 | [diff] [blame] | 98 | } |
| 99 | |
| 100 | platform_compat_config { |
| 101 | name: "settings-platform-compat-config", |
Chaohui Wang | 9ec6f0e | 2022-05-30 01:01:55 +0800 | [diff] [blame] | 102 | src: ":Settings-change-ids", |
Mathew Inwood | de401bc | 2020-01-10 10:24:31 +0000 | [diff] [blame] | 103 | system_ext_specific: true, |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 104 | } |
| 105 | |
| 106 | android_app { |
| 107 | name: "Settings", |
Jeff Sharkey | a375faa | 2020-10-23 14:03:41 -0600 | [diff] [blame] | 108 | defaults: ["platform_app_defaults"], |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 109 | platform_apis: true, |
| 110 | certificate: "platform", |
Jeongik Cha | 68da89b | 2019-11-25 20:28:35 +0900 | [diff] [blame] | 111 | system_ext_specific: true, |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 112 | privileged: true, |
Mathew Inwood | de401bc | 2020-01-10 10:24:31 +0000 | [diff] [blame] | 113 | required: [ |
| 114 | "privapp_whitelist_com.android.settings", |
| 115 | "settings-platform-compat-config", |
| 116 | ], |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 117 | static_libs: ["Settings-core"], |
Bonian Chen | e69d1a6 | 2021-01-06 05:41:46 +0000 | [diff] [blame] | 118 | uses_libs: ["org.apache.http.legacy"], |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 119 | resource_dirs: [], |
| 120 | optimize: { |
| 121 | proguard_flags_files: ["proguard.flags"], |
| 122 | }, |
| 123 | } |
| 124 | |
| 125 | android_library_import { |
| 126 | name: "contextualcards", |
| 127 | aars: ["libs/contextualcards.aar"], |
| 128 | } |
Colin Cross | 38d3b0f | 2020-12-08 11:41:44 -0800 | [diff] [blame] | 129 | |
| 130 | filegroup { |
| 131 | name: "Settings_proguard_flags", |
| 132 | srcs: ["proguard.flags"], |
| 133 | } |
| 134 | |
| 135 | // The sources for Settings need to be exposed to SettingsGoogle, etc. |
| 136 | // so they can run the com.android.settingslib.search.IndexableProcessor |
| 137 | // over all the sources together. |
| 138 | filegroup { |
| 139 | name: "Settings_srcs", |
Chaohui Wang | 9ec6f0e | 2022-05-30 01:01:55 +0800 | [diff] [blame] | 140 | srcs: ["src/**/*.java", "src/**/*.kt"], |
Colin Cross | 38d3b0f | 2020-12-08 11:41:44 -0800 | [diff] [blame] | 141 | } |
| 142 | |
| 143 | filegroup { |
| 144 | name: "Settings_manifest", |
| 145 | srcs: ["AndroidManifest.xml"], |
| 146 | } |