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", |
Curtis Belmonte | a543067 | 2021-05-21 14:59:01 -0700 | [diff] [blame] | 86 | "lottie", |
Quang Luong | 91dcd42 | 2021-06-10 14:30:06 -0700 | [diff] [blame] | 87 | "WifiTrackerLib", |
Tsung-Mao Fang | 2df7964 | 2022-01-21 18:14:53 +0800 | [diff] [blame] | 88 | "SettingsLibActivityEmbedding", |
Chaohui Wang | 9ec6f0e | 2022-05-30 01:01:55 +0800 | [diff] [blame^] | 89 | "Settings-change-ids", |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 90 | ], |
| 91 | |
| 92 | libs: [ |
| 93 | "telephony-common", |
| 94 | "ims-common", |
| 95 | ], |
Bernardo Rufino | 9e32620 | 2019-12-16 17:17:50 +0000 | [diff] [blame] | 96 | } |
| 97 | |
| 98 | platform_compat_config { |
| 99 | name: "settings-platform-compat-config", |
Chaohui Wang | 9ec6f0e | 2022-05-30 01:01:55 +0800 | [diff] [blame^] | 100 | src: ":Settings-change-ids", |
Mathew Inwood | de401bc | 2020-01-10 10:24:31 +0000 | [diff] [blame] | 101 | system_ext_specific: true, |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 102 | } |
| 103 | |
| 104 | android_app { |
| 105 | name: "Settings", |
Jeff Sharkey | a375faa | 2020-10-23 14:03:41 -0600 | [diff] [blame] | 106 | defaults: ["platform_app_defaults"], |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 107 | platform_apis: true, |
| 108 | certificate: "platform", |
Jeongik Cha | 68da89b | 2019-11-25 20:28:35 +0900 | [diff] [blame] | 109 | system_ext_specific: true, |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 110 | privileged: true, |
Mathew Inwood | de401bc | 2020-01-10 10:24:31 +0000 | [diff] [blame] | 111 | required: [ |
| 112 | "privapp_whitelist_com.android.settings", |
| 113 | "settings-platform-compat-config", |
| 114 | ], |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 115 | static_libs: ["Settings-core"], |
Bonian Chen | e69d1a6 | 2021-01-06 05:41:46 +0000 | [diff] [blame] | 116 | uses_libs: ["org.apache.http.legacy"], |
Colin Cross | 946a0fd | 2019-05-07 11:22:05 -0700 | [diff] [blame] | 117 | resource_dirs: [], |
| 118 | optimize: { |
| 119 | proguard_flags_files: ["proguard.flags"], |
| 120 | }, |
| 121 | } |
| 122 | |
| 123 | android_library_import { |
| 124 | name: "contextualcards", |
| 125 | aars: ["libs/contextualcards.aar"], |
| 126 | } |
Colin Cross | 38d3b0f | 2020-12-08 11:41:44 -0800 | [diff] [blame] | 127 | |
| 128 | filegroup { |
| 129 | name: "Settings_proguard_flags", |
| 130 | srcs: ["proguard.flags"], |
| 131 | } |
| 132 | |
| 133 | // The sources for Settings need to be exposed to SettingsGoogle, etc. |
| 134 | // so they can run the com.android.settingslib.search.IndexableProcessor |
| 135 | // over all the sources together. |
| 136 | filegroup { |
| 137 | name: "Settings_srcs", |
Chaohui Wang | 9ec6f0e | 2022-05-30 01:01:55 +0800 | [diff] [blame^] | 138 | srcs: ["src/**/*.java", "src/**/*.kt"], |
Colin Cross | 38d3b0f | 2020-12-08 11:41:44 -0800 | [diff] [blame] | 139 | } |
| 140 | |
| 141 | filegroup { |
| 142 | name: "Settings_manifest", |
| 143 | srcs: ["AndroidManifest.xml"], |
| 144 | } |