1package { 2 default_applicable_licenses: ["Android-Apache-2.0"], 3} 4 5genrule { 6 name: "statslog-tvsettings-java-gen", 7 tools: ["stats-log-api-gen"], 8 cmd: "$(location stats-log-api-gen) --java $(out) --module tv_settings" + 9 " --javaPackage com.android.tv.twopanelsettings.slices --javaClass TvSettingsStatsLog", 10 out: ["com/android/tv/twopanelsettings/slices/TvSettingsStatsLog.java"], 11} 12 13// This is needed to provide TvSettingsStatsLog as a library for TwoPanelSettingsOverlay makefile. 14java_library { 15 name: "statslog-tvsettings", 16 libs: [ 17 "androidx.annotation_annotation", 18 ], 19 srcs: [ 20 ":statslog-tvsettings-java-gen", 21 ], 22} 23 24android_library { 25 26 name: "TwoPanelSettingsLib", 27 defaults: ["SettingsLibDefaults"], 28 29 srcs: [ 30 "src/**/*.java", 31 "src/**/*.java", 32 ], 33 34 resource_dirs: ["res"], 35 36 static_libs: [ 37 "androidx.recyclerview_recyclerview", 38 "androidx.preference_preference", 39 "androidx.appcompat_appcompat", 40 "androidx.legacy_legacy-preference-v14", 41 "androidx.leanback_leanback-preference", 42 "androidx.leanback_leanback", 43 "androidx.lifecycle_lifecycle-extensions", 44 "androidx.slice_slice-builders", 45 "androidx.slice_slice-core", 46 "androidx.slice_slice-view", 47 "androidx.lifecycle_lifecycle-runtime", 48 "androidx.lifecycle_lifecycle-extensions", 49 "androidx.lifecycle_lifecycle-common-java8", 50 "androidx.cardview_cardview", 51 "statslog-tvsettings", 52 "TvSettingsAPI", 53 ], 54 // TODO(b/319716205): re-enable use_resource_processor 55 use_resource_processor: false, 56} 57 58// For the test package. 59