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 12 name: "SettingsLib", 13 14 defaults: [ 15 "SettingsLibDependenciesWithoutWifiTracker", 16 ], 17 18 // TODO(b/149540986): revert this change. 19 static_libs: [ 20 // All other dependent components should be put in 21 // "SettingsLibDependenciesWithoutWifiTracker". 22 "WifiTrackerLib", 23 ], 24 25 // ANDROIDMK TRANSLATION ERROR: unsupported assignment to LOCAL_SHARED_JAVA_LIBRARIES 26 // LOCAL_SHARED_JAVA_LIBRARIES := androidx.lifecycle_lifecycle-common 27 28 resource_dirs: ["res"], 29 30 srcs: [ 31 "src/**/*.java", 32 "src/**/*.kt", 33 ], 34 35 min_sdk_version: "29", 36 37} 38 39java_defaults { 40 name: "SettingsLibDependenciesWithoutWifiTracker", 41 static_libs: [ 42 "androidx.annotation_annotation", 43 "androidx.legacy_legacy-support-v4", 44 "androidx.recyclerview_recyclerview", 45 "androidx.preference_preference", 46 "androidx.appcompat_appcompat", 47 "androidx.lifecycle_lifecycle-runtime", 48 "androidx.mediarouter_mediarouter-nodeps", 49 "iconloader", 50 51 "SettingsLibHelpUtils", 52 "SettingsLibRestrictedLockUtils", 53 "SettingsLibActionBarShadow", 54 "SettingsLibAppPreference", 55 "SettingsLibSearchWidget", 56 "SettingsLibSettingsSpinner", 57 "SettingsLibIllustrationPreference", 58 "SettingsLibLayoutPreference", 59 "SettingsLibMainSwitchPreference", 60 "SettingsLibActionButtonsPreference", 61 "SettingsLibEntityHeaderWidgets", 62 "SettingsLibBarChartPreference", 63 "SettingsLibProgressBar", 64 "SettingsLibAdaptiveIcon", 65 "SettingsLibRadioButtonPreference", 66 "SettingsLibDisplayDensityUtils", 67 "SettingsLibUtils", 68 "SettingsLibEmergencyNumber", 69 "SettingsLibTopIntroPreference", 70 "SettingsLibBannerMessagePreference", 71 "SettingsLibFooterPreference", 72 "SettingsLibUsageProgressBarPreference", 73 "SettingsLibCollapsingToolbarBaseActivity", 74 "SettingsLibTwoTargetPreference", 75 "SettingsLibSettingsTransition", 76 ], 77} 78 79// NOTE: Keep this module in sync with ./common.mk 80java_defaults { 81 name: "SettingsLibDefaults", 82 static_libs: [ 83 "androidx.annotation_annotation", 84 "androidx.lifecycle_lifecycle-common", 85 "androidx.legacy_legacy-support-v4", 86 "androidx.lifecycle_lifecycle-runtime", 87 "androidx.recyclerview_recyclerview", 88 "androidx.preference_preference", 89 "androidx.appcompat_appcompat", 90 "androidx.legacy_legacy-preference-v14", 91 "SettingsLib", 92 ], 93} 94