| package { |
| default_applicable_licenses: ["packages_apps_Settings_license"], |
| } |
| |
| // Added automatically by a large-scale-change |
| // See: http://go/android-license-faq |
| license { |
| name: "packages_apps_Settings_license", |
| visibility: [":__subpackages__"], |
| license_kinds: [ |
| "SPDX-license-identifier-Apache-2.0", |
| ], |
| license_text: [ |
| "NOTICE", |
| ], |
| } |
| |
| java_library { |
| name: "settings-logtags", |
| srcs: ["src/**/*.logtags"], |
| } |
| |
| genrule { |
| name: "statslog-settings-java-gen", |
| tools: ["stats-log-api-gen"], |
| cmd: "$(location stats-log-api-gen) --java $(out) --module settings" |
| + " --javaPackage com.android.settings.core.instrumentation --javaClass SettingsStatsLog", |
| out: ["com/android/settings/core/instrumentation/SettingsStatsLog.java"], |
| } |
| |
| java_library { |
| name: "statslog-settings", |
| srcs: [ |
| ":statslog-settings-java-gen", |
| ], |
| } |
| |
| // Build the Settings APK |
| android_library { |
| name: "Settings-core", |
| platform_apis: true, |
| defaults: [ |
| "SettingsLibDefaults", |
| "SettingsLib-search-defaults", |
| ], |
| |
| srcs: ["src/**/*.java"], |
| |
| static_libs: [ |
| "androidx-constraintlayout_constraintlayout", |
| "androidx.slice_slice-builders", |
| "androidx.slice_slice-core", |
| "androidx.slice_slice-view", |
| "androidx.core_core", |
| "androidx.appcompat_appcompat", |
| "androidx.cardview_cardview", |
| "androidx.preference_preference", |
| "androidx.recyclerview_recyclerview", |
| "com.google.android.material_material", |
| "setupcompat", |
| "setupdesign", |
| "androidx-constraintlayout_constraintlayout-solver", |
| "androidx.lifecycle_lifecycle-runtime", |
| "androidx.lifecycle_lifecycle-extensions", |
| "guava", |
| "jsr305", |
| "net-utils-framework-common", |
| "settings-contextual-card-protos-lite", |
| "settings-log-bridge-protos-lite", |
| "contextualcards", |
| "settings-logtags", |
| "statslog-settings", |
| "zxing-core-1.7", |
| "android.hardware.dumpstate-V1.0-java", |
| "android.hardware.dumpstate-V1.1-java", |
| "lottie", |
| "windowExtLib", |
| ], |
| |
| libs: [ |
| "telephony-common", |
| "ims-common", |
| "app-compat-annotations", |
| ], |
| } |
| |
| platform_compat_config { |
| name: "settings-platform-compat-config", |
| src: ":Settings-core", |
| system_ext_specific: true, |
| } |
| |
| android_app { |
| name: "Settings", |
| defaults: ["platform_app_defaults"], |
| platform_apis: true, |
| certificate: "platform", |
| system_ext_specific: true, |
| privileged: true, |
| required: [ |
| "privapp_whitelist_com.android.settings", |
| "settings-platform-compat-config", |
| ], |
| static_libs: ["Settings-core"], |
| uses_libs: ["org.apache.http.legacy"], |
| optional_uses_libs: [ |
| "androidx.window.extensions", |
| "androidx.window.sidecar", |
| ], |
| resource_dirs: [], |
| optimize: { |
| proguard_flags_files: ["proguard.flags"], |
| }, |
| } |
| |
| android_library_import { |
| name: "contextualcards", |
| aars: ["libs/contextualcards.aar"], |
| } |
| |
| android_library_import { |
| name: "windowExtLib", |
| aars: ["libs/window_ext_lib.aar"], |
| } |
| |
| filegroup { |
| name: "Settings_proguard_flags", |
| srcs: ["proguard.flags"], |
| } |
| |
| // The sources for Settings need to be exposed to SettingsGoogle, etc. |
| // so they can run the com.android.settingslib.search.IndexableProcessor |
| // over all the sources together. |
| filegroup { |
| name: "Settings_srcs", |
| srcs: ["src/**/*.java"], |
| } |
| |
| filegroup { |
| name: "Settings_manifest", |
| srcs: ["AndroidManifest.xml"], |
| } |