chromium/chrome/browser/webauthn/android/BUILD.gn

# Copyright 2020 The Chromium Authors
# 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")
import("//third_party/jni_zero/jni_zero.gni")

android_library("java") {
  srcjar_deps = [ ":jni_headers" ]
  sources = [
    "java/src/org/chromium/chrome/browser/webauthn/AuthenticatorIncognitoConfirmationBottomsheet.java",
    "java/src/org/chromium/chrome/browser/webauthn/CableAuthenticatorModuleProvider.java",
    "java/src/org/chromium/chrome/browser/webauthn/ChromeAuthenticatorConfirmationFactory.java",
    "java/src/org/chromium/chrome/browser/webauthn/ChromeAuthenticatorFactory.java",
    "java/src/org/chromium/chrome/browser/webauthn/CredManUiRecommenderImpl.java",
    "java/src/org/chromium/chrome/browser/webauthn/PrivacySettingsFragment.java",
  ]

  jar_excluded_patterns = [ "*/CredManUiRecommenderImpl*.class" ]

  deps = [
    ":java_resources",
    "$google_play_services_package:google_play_services_tasks_java",
    "//base:base_java",
    "//build/android:build_java",
    "//chrome/android:chrome_app_java_resources",
    "//chrome/android/modules/cablev2_authenticator/public:java",
    "//chrome/browser/autofill/android:java",
    "//chrome/browser/enterprise/util:java",
    "//chrome/browser/notifications:java",
    "//chrome/browser/profiles/android:java",
    "//components/browser_ui/bottomsheet/android:java",
    "//components/browser_ui/notifications/android:java",
    "//components/browser_ui/settings/android:java",
    "//components/externalauth/android:java",
    "//components/module_installer/android:module_installer_java",
    "//components/prefs/android:java",
    "//components/user_prefs/android:java",
    "//components/webauthn/android:java",
    "//content/public/android:content_java",
    "//content/public/android:content_main_dex_java",
    "//mojo/public/java:bindings_java",
    "//services/device/public/java:device_feature_list_java",
    "//third_party/androidx:androidx_annotation_annotation_java",
    "//third_party/androidx:androidx_core_core_java",
    "//third_party/androidx:androidx_fragment_fragment_java",
    "//third_party/androidx:androidx_vectordrawable_vectordrawable_animated_java",
    "//third_party/blink/public/mojom:android_mojo_bindings_java",
    "//third_party/jni_zero:jni_zero_java",
    "//ui/android:ui_no_recycler_view_java",
  ]

  resources_package = "org.chromium.chrome.browser.webauthn"
}

generate_jni("jni_headers") {
  sources = [
    "java/src/org/chromium/chrome/browser/webauthn/CableAuthenticatorModuleProvider.java",
    "java/src/org/chromium/chrome/browser/webauthn/PrivacySettingsFragment.java",
  ]
}

android_library("recommender_public_java") {
  sources = [ "java/src/org/chromium/chrome/browser/webauthn/CredManUiRecommenderImpl.java" ]
  deps = [ "//components/webauthn/android:java" ]
}

android_resources("java_resources") {
  sources = [
    "java/res/anim/circle_loader_animation_interpolator_0.xml",
    "java/res/anim/circle_loader_animation_interpolator_1.xml",
    "java/res/anim/circle_loader_animation_interpolator_2.xml",
    "java/res/anim/circle_loader_animation_interpolator_3.xml",
    "java/res/anim/circle_loader_animation_interpolator_4.xml",
    "java/res/anim/circle_loader_animation_interpolator_5.xml",
    "java/res/anim/circle_loader_animation_interpolator_6.xml",
    "java/res/anim/circle_loader_animation_interpolator_7.xml",
    "java/res/anim/circle_loader_animation_interpolator_8.xml",
    "java/res/anim/circle_loader_circleblue_animation.xml",
    "java/res/anim/circle_loader_circlegreen_animation.xml",
    "java/res/anim/circle_loader_circlered_animation.xml",
    "java/res/anim/circle_loader_circleyellow_animation.xml",
    "java/res/anim/circle_loader_ellipse_path_2_animation.xml",
    "java/res/anim/circle_loader_ellipse_path_3_animation.xml",
    "java/res/anim/circle_loader_ellipse_path_4_animation.xml",
    "java/res/anim/circle_loader_ellipse_path_5_animation.xml",
    "java/res/drawable-night/error_icon.xml",
    "java/res/drawable/circle_loader.xml",
    "java/res/drawable/circle_loader_animation.xml",
    "java/res/drawable/error_icon.xml",
    "java/res/drawable/ic_lock_googblue_48dp.xml",
    "java/res/drawable/webauthn_incognito_confirmation_icon.xml",
    "java/res/layout-sw600dp/cablev2_error.xml",
    "java/res/layout-sw600dp/cablev2_spinner.xml",
    "java/res/layout/cablev2_error.xml",
    "java/res/layout/cablev2_settings.xml",
    "java/res/layout/cablev2_spinner.xml",
    "java/res/layout/webauthn_incognito_confirmation.xml",
  ]
  deps = [ "//chrome/android:chrome_app_java_resources" ]
}