1android_library {
2
3    name: "SettingsLib",
4
5    static_libs: [
6        "androidx.annotation_annotation",
7        "androidx.legacy_legacy-support-v4",
8        "androidx.recyclerview_recyclerview",
9        "androidx.preference_preference",
10        "androidx.appcompat_appcompat",
11        "androidx.lifecycle_lifecycle-runtime",
12        "androidx.mediarouter_mediarouter-nodeps",
13
14        "SettingsLibHelpUtils",
15        "SettingsLibRestrictedLockUtils",
16        "SettingsLibActionBarShadow",
17        "SettingsLibAppPreference",
18        "SettingsLibSearchWidget",
19        "SettingsLibSettingsSpinner",
20        "SettingsLibLayoutPreference",
21        "SettingsLibActionButtonsPreference",
22        "SettingsLibEntityHeaderWidgets",
23        "SettingsLibBarChartPreference",
24        "SettingsLibProgressBar",
25        "SettingsLibAdaptiveIcon",
26    ],
27
28    // ANDROIDMK TRANSLATION ERROR: unsupported assignment to LOCAL_SHARED_JAVA_LIBRARIES
29    // LOCAL_SHARED_JAVA_LIBRARIES := androidx.lifecycle_lifecycle-common
30
31    resource_dirs: ["res"],
32
33    srcs: ["src/**/*.java", "src/**/*.kt"],
34
35    min_sdk_version: "21",
36
37}
38
39// NOTE: Keep this module in sync with ./common.mk
40java_defaults {
41    name: "SettingsLibDefaults",
42    static_libs: [
43        "androidx.annotation_annotation",
44        "androidx.lifecycle_lifecycle-common",
45        "androidx.legacy_legacy-support-v4",
46        "androidx.lifecycle_lifecycle-runtime",
47        "androidx.recyclerview_recyclerview",
48        "androidx.preference_preference",
49        "androidx.appcompat_appcompat",
50        "androidx.legacy_legacy-preference-v14",
51        "SettingsLib",
52    ],
53}
54