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

# Copyright 2022 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")

android_library("java") {
  sources = [
    "java/src/org/chromium/chrome/browser/creator/CreatorCoordinator.java",
    "java/src/org/chromium/chrome/browser/creator/CreatorMediator.java",
    "java/src/org/chromium/chrome/browser/creator/CreatorProfileView.java",
    "java/src/org/chromium/chrome/browser/creator/CreatorProfileViewBinder.java",
    "java/src/org/chromium/chrome/browser/creator/CreatorProperties.java",
    "java/src/org/chromium/chrome/browser/creator/CreatorSnackbarController.java",
    "java/src/org/chromium/chrome/browser/creator/CreatorTabMediator.java",
    "java/src/org/chromium/chrome/browser/creator/CreatorTabSheetContent.java",
    "java/src/org/chromium/chrome/browser/creator/CreatorToolbarView.java",
    "java/src/org/chromium/chrome/browser/creator/CreatorToolbarViewBinder.java",
    "java/src/org/chromium/chrome/browser/creator/NewTabCreator.java",
    "java/src/org/chromium/chrome/browser/creator/SignInInterstitialInitiator.java",
    "java/src/org/chromium/chrome/browser/creator/WebContentsCreator.java",
  ]
  deps = [
    ":creator_java_resources",
    "//base:base_java",
    "//base/version_info/android:version_constants_java",
    "//build/android:build_java",
    "//chrome/browser/android/customtabs/branding:java",
    "//chrome/browser/feed/android:feed_java_resources",
    "//chrome/browser/feed/android:java",
    "//chrome/browser/feedback/android:java",
    "//chrome/browser/profiles/android:java",
    "//chrome/browser/share:java",
    "//chrome/browser/ui/android/favicon:java",
    "//chrome/browser/ui/messages/android:java",
    "//chrome/browser/xsurface:java",
    "//components/browser_ui/bottomsheet/android:factory_java",
    "//components/browser_ui/bottomsheet/android:java",
    "//components/browser_ui/bottomsheet/android:manager_java",
    "//components/browser_ui/styles/android:java",
    "//components/browser_ui/widget/android:java",
    "//components/embedder_support/android:content_view_java",
    "//components/embedder_support/android:util_java",
    "//components/embedder_support/android:web_contents_delegate_java",
    "//components/feed/core/v2:feedv2_core_java",
    "//components/security_state/content/android:java",
    "//components/security_state/core:security_state_enums_java",
    "//components/thin_webview:factory_java",
    "//components/thin_webview:java",
    "//components/url_formatter/android:url_formatter_java",
    "//content/public/android:content_full_java",
    "//content/public/android:content_main_dex_java",
    "//third_party/androidx:androidx_annotation_annotation_java",
    "//third_party/androidx:androidx_appcompat_appcompat_java",
    "//third_party/androidx:androidx_appcompat_appcompat_resources_java",
    "//third_party/androidx:androidx_core_core_java",
    "//third_party/androidx:androidx_recyclerview_recyclerview_java",
    "//third_party/jni_zero:jni_zero_java",
    "//ui/android:ui_no_recycler_view_java",
    "//ui/android:ui_utils_java",
    "//url:gurl_java",
  ]

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

android_resources("creator_java_resources") {
  sources = [
    "java/res/drawable/follow_add.xml",
    "java/res/drawable/following_checkmark.xml",
    "java/res/drawable/profile_background.xml",
    "java/res/layout/creator_activity.xml",
    "java/res/layout/creator_bottomsheet_toolbar.xml",
    "java/res/layout/creator_layout.xml",
    "java/res/layout/creator_privacy.xml",
    "java/res/layout/creator_profile.xml",
    "java/res/values/dimens.xml",
    "java/res/values/ids.xml",
    "java/res/values/styles.xml",
  ]
  deps = [
    "//chrome/android:chrome_app_java_resources",
    "//chrome/browser/ui/android/strings:ui_strings_grd",
    "//ui/android:ui_java_resources",
  ]
}

robolectric_library("junit") {
  sources = [
    "java/src/org/chromium/chrome/browser/creator/CreatorCoordinatorTest.java",
    "java/src/org/chromium/chrome/browser/creator/CreatorMediatorTest.java",
    "java/src/org/chromium/chrome/browser/creator/CreatorSnackbarControllerTest.java",
  ]

  deps = [
    ":creator_java_resources",
    ":java",
    "//base:base_java",
    "//base:base_java_test_support",
    "//base:base_junit_test_support",
    "//chrome/browser/feed/android:feed_java_resources",
    "//chrome/browser/feed/android:java",
    "//chrome/browser/feed/android:junit",
    "//chrome/browser/feedback/android:java",
    "//chrome/browser/profiles/android:java",
    "//chrome/browser/share:java",
    "//chrome/browser/ui/messages/android:java",
    "//chrome/browser/xsurface:java",
    "//components/browser_ui/bottomsheet/android:java",
    "//components/feed/core/v2:feedv2_core_java",
    "//components/url_formatter/android:url_formatter_java",
    "//content/public/android:content_java",
    "//third_party/androidx:androidx_recyclerview_recyclerview_java",
    "//third_party/androidx:androidx_test_core_java",
    "//third_party/androidx:androidx_test_ext_junit_java",
    "//third_party/androidx:androidx_test_runner_java",
    "//third_party/jni_zero:jni_zero_java",
    "//third_party/junit",
    "//third_party/mockito:mockito_java",
    "//ui/android:ui_java_test_support",
    "//ui/android:ui_java_test_support",
    "//ui/android:ui_no_recycler_view_java",
    "//url:gurl_java",
    "//url:gurl_junit_test_support",
  ]
  resources_package = "org.chromium.chrome.browser.creator.test"
}