blob: 3bc0f427a91a44f240544849609710656358271c [file] [log] [blame]
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/android/rules.gni")
android_library("java") {
sources = [
"java/src/org/chromium/components/browser_ui/settings/ManagedPreferenceDelegate.java",
"java/src/org/chromium/components/browser_ui/settings/ManagedPreferencesUtils.java",
"java/src/org/chromium/components/browser_ui/settings/SearchUtils.java",
"java/src/org/chromium/components/browser_ui/settings/SettingsUtils.java",
"widget/java/src/org/chromium/components/browser_ui/settings/ButtonPreference.java",
"widget/java/src/org/chromium/components/browser_ui/settings/ChromeBaseCheckBoxPreference.java",
"widget/java/src/org/chromium/components/browser_ui/settings/ChromeBasePreference.java",
"widget/java/src/org/chromium/components/browser_ui/settings/ChromeImageViewPreference.java",
"widget/java/src/org/chromium/components/browser_ui/settings/ChromeSwitchPreference.java",
"widget/java/src/org/chromium/components/browser_ui/settings/ExpandablePreferenceGroup.java",
"widget/java/src/org/chromium/components/browser_ui/settings/SpinnerPreference.java",
"widget/java/src/org/chromium/components/browser_ui/settings/TextMessagePreference.java",
]
deps = [
":java_resources",
"//base:base_java",
"//third_party/android_deps:android_support_v7_appcompat_java",
"//third_party/android_deps:androidx_annotation_annotation_java",
"//third_party/android_deps:androidx_preference_preference_java",
# TODO(crbug.com/1017190): Remove the following deps once we stop linting individual targets.
"//components/browser_ui/styles/android:java_resources",
"//third_party/android_deps:com_google_android_material_material_java",
"//ui/android:ui_java",
]
}
android_resources("java_resources") {
deps = [
"//components/browser_ui/strings/android:browser_ui_strings_grd",
"//components/browser_ui/styles/android:java_resources",
"//third_party/android_deps:androidx_preference_preference_java",
"//third_party/android_deps:com_google_android_material_material_java",
"//ui/android:ui_java_resources",
]
sources = [
"java/res/drawable-hdpi/controlled_setting_mandatory.png",
"java/res/drawable-hdpi/ic_account_child_grey600_36dp.png",
"java/res/drawable-mdpi/controlled_setting_mandatory.png",
"java/res/drawable-mdpi/ic_account_child_grey600_36dp.png",
"java/res/drawable-xhdpi/controlled_setting_mandatory.png",
"java/res/drawable-xhdpi/ic_account_child_grey600_36dp.png",
"java/res/drawable-xxhdpi/controlled_setting_mandatory.png",
"java/res/drawable-xxhdpi/ic_account_child_grey600_36dp.png",
"java/res/drawable-xxxhdpi/ic_account_child_grey600_36dp.png",
"java/res/layout/button_preference_button.xml",
"java/res/layout/button_preference_layout.xml",
"java/res/layout/checkable_image_view_widget.xml",
"java/res/layout/preference_chrome_image_view.xml",
"java/res/layout/preference_compat.xml",
"java/res/layout/preference_spinner.xml",
"java/res/layout/preference_spinner_single_line.xml",
"java/res/layout/preference_spinner_single_line_item.xml",
"java/res/values/attrs.xml",
"java/res/values/dimens.xml",
"java/res/values/styles.xml",
]
custom_package = "org.chromium.components.browser_ui.settings"
}