1package {
2    // See: http://go/android-license-faq
3    // A large-scale-change added 'default_applicable_licenses' to import
4    // all of the 'license_kinds' from "frameworks_base_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["frameworks_base_license"],
8}
9
10android_library {
11    name: "SettingsLibIllustrationPreference",
12    use_resource_processor: true,
13    defaults: [
14        "SettingsLintDefaults",
15    ],
16
17    srcs: ["src/**/*.java"],
18    resource_dirs: ["res"],
19
20    static_libs: [
21        "SettingsLibColor",
22        "androidx.preference_preference",
23        "lottie",
24        "settingslib_illustrationpreference_flags_lib",
25    ],
26
27    sdk_version: "system_current",
28    min_sdk_version: "28",
29
30    apex_available: [
31        "//apex_available:platform",
32        "com.android.permission",
33    ],
34}
35
36aconfig_declarations {
37    name: "settingslib_illustrationpreference_flags",
38    package: "com.android.settingslib.widget.flags",
39    container: "system",
40    srcs: [
41        "aconfig/illustrationpreference.aconfig",
42    ],
43}
44
45java_aconfig_library {
46    name: "settingslib_illustrationpreference_flags_lib",
47    aconfig_declarations: "settingslib_illustrationpreference_flags",
48
49    min_sdk_version: "30",
50    sdk_version: "system_current",
51
52    apex_available: [
53        "//apex_available:platform",
54        "com.android.permission",
55    ],
56}
57