Skip to content

Commit

Permalink
[Build] Switch androidx dependencies to use //third_party/androidx
Browse files Browse the repository at this point in the history
This CL switches depenendencies on the
//third_party/android_deps:androidx alias to refer to
//third_party/androidx instead.

This CL was generated via:
find . -name *.gn -exec sed -i 's/android_deps:androidx/androidx:androidx/g' {} +

BUG=1064277

Change-Id: I3238cd487298ef733939ade5edf5898dd374c5ec
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2693055
Reviewed-by: Andrew Grieve <[email protected]>
Commit-Queue: Peter Kotwicz <[email protected]>
Cr-Commit-Position: refs/heads/master@{#853751}
  • Loading branch information
pkotwicz authored and Chromium LUCI CQ committed Feb 13, 2021
1 parent 60a00b4 commit 0409372
Show file tree
Hide file tree
Showing 230 changed files with 749 additions and 749 deletions.
12 changes: 6 additions & 6 deletions android_webview/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ standalone_system_webview_apk_tmpl("system_webview_no_weblayer_apk") {
# TODO(b/165810905): Use per-feature -keep rules in R8 once supported, then
# this can be removed.
assert_no_deps =
[ "//third_party/android_deps:androidx_recyclerview_recyclerview_java" ]
[ "//third_party/androidx:androidx_recyclerview_recyclerview_java" ]
}

if (enable_webview_bundles) {
Expand Down Expand Up @@ -552,8 +552,8 @@ android_library("browser_java") {
"//mojo/public/java/system:system_impl_java",
"//net/android:net_java",
"//services/network/public/mojom:mojom_java",
"//third_party/android_deps:androidx_annotation_annotation_java",
"//third_party/android_deps:protobuf_lite_runtime_java",
"//third_party/androidx:androidx_annotation_annotation_java",
"//third_party/blink/public:blink_headers_java",
"//third_party/blink/public/mojom:mojom_platform_java",
"//ui/android:ui_no_recycler_view_java",
Expand Down Expand Up @@ -582,8 +582,8 @@ android_library("common_variations_java") {
"//android_webview/proto:aw_variations_seed_proto_java",
"//base:base_java",
"//components/variations/android:variations_java",
"//third_party/android_deps:androidx_annotation_annotation_java",
"//third_party/android_deps:protobuf_lite_runtime_java",
"//third_party/androidx:androidx_annotation_annotation_java",
]
}

Expand All @@ -600,7 +600,7 @@ android_library("common_platform_services_java") {
"//base:base_java",
"//components/embedder_support/android/metrics:java",
"//content/public/android:content_full_java",
"//third_party/android_deps:androidx_annotation_annotation_java",
"//third_party/androidx:androidx_annotation_annotation_java",
]

# The appropriate .class file will be loaded via a dependency to a library
Expand Down Expand Up @@ -629,7 +629,7 @@ android_library("common_crash_java") {
"//base:jni_java",
"//components/background_task_scheduler:background_task_scheduler_task_ids_java",
"//components/minidump_uploader:minidump_uploader_java",
"//third_party/android_deps:androidx_annotation_annotation_java",
"//third_party/androidx:androidx_annotation_annotation_java",
]
annotation_processor_deps = [ "//base/android/jni_generator:jni_processor" ]
}
Expand Down Expand Up @@ -664,7 +664,7 @@ android_library("common_java") {
"//components/metrics:metrics_java",
"//components/viz:viz_java",
"//gpu/config:config_java",
"//third_party/android_deps:androidx_annotation_annotation_java",
"//third_party/androidx:androidx_annotation_annotation_java",
"//third_party/blink/public/common:common_java",
"//ui/android:ui_features_java",
]
Expand Down
2 changes: 1 addition & 1 deletion android_webview/glue/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ android_library("glue_java") {
"//components/embedder_support/android:util_java",
"//content/public/android:content_java",
"//net/android:net_java",
"//third_party/android_deps:androidx_annotation_annotation_java",
"//third_party/androidx:androidx_annotation_annotation_java",
"//ui/android:ui_no_recycler_view_java",
"//url:gurl_java",
]
Expand Down
18 changes: 9 additions & 9 deletions android_webview/nonembedded/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ android_library("nonembedded_java") {
"//base:jni_java",
"//components/about_ui/android:aboutui_java",
"//components/embedder_support/android:application_java",
"//third_party/android_deps:androidx_annotation_annotation_java",
"//third_party/android_deps:com_google_code_findbugs_jsr305_java",
"//third_party/android_deps:protobuf_lite_runtime_java",
"//third_party/androidx:androidx_annotation_annotation_java",
"//ui/android:ui_no_recycler_view_java",
]
annotation_processor_deps = [ "//base/android/jni_generator:jni_processor" ]
Expand Down Expand Up @@ -66,13 +66,13 @@ android_library("devui_java") {
"//base:base_java",
"//components/minidump_uploader:minidump_uploader_java",
"//components/version_info/android:version_constants_java",
"//third_party/android_deps:androidx_activity_activity_java",
"//third_party/android_deps:androidx_annotation_annotation_java",
"//third_party/android_deps:androidx_core_core_java",
"//third_party/android_deps:androidx_fragment_fragment_java",
"//third_party/android_deps:androidx_lifecycle_lifecycle_common_java",
"//third_party/android_deps:androidx_lifecycle_lifecycle_viewmodel_java",
"//third_party/android_deps:androidx_savedstate_savedstate_java",
"//third_party/androidx:androidx_activity_activity_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_lifecycle_lifecycle_common_java",
"//third_party/androidx:androidx_lifecycle_lifecycle_viewmodel_java",
"//third_party/androidx:androidx_savedstate_savedstate_java",
"//ui/android:ui_no_recycler_view_java",
]
resources_package = "org.chromium.android_webview.devui"
Expand Down Expand Up @@ -103,9 +103,9 @@ android_library("services_java") {
"//components/minidump_uploader:minidump_uploader_java",
"//components/variations/android:variations_java",
"//components/version_info/android:version_constants_java",
"//third_party/android_deps:androidx_annotation_annotation_java",
"//third_party/android_deps:com_google_code_findbugs_jsr305_java",
"//third_party/android_deps:protobuf_lite_runtime_java",
"//third_party/androidx:androidx_annotation_annotation_java",
]
}

Expand Down
2 changes: 1 addition & 1 deletion android_webview/support_library/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ android_library("support_lib_glue_java") {
"//base:base_java",
"//components/embedder_support/android:util_java",
"//content/public/android:content_java",
"//third_party/android_deps:androidx_annotation_annotation_java",
"//third_party/androidx:androidx_annotation_annotation_java",
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ android_library("boundary_interface_java") {
# build when we mirror this into AndroidX. We are only permitted to depend on
# core Android classes and other AndroidX classes (must be in the androidx.*
# package name).
deps = [ "//third_party/android_deps:androidx_annotation_annotation_java" ]
deps = [ "//third_party/androidx:androidx_annotation_annotation_java" ]
}

android_apk("boundary_interface_example_apk") {
Expand Down
2 changes: 1 addition & 1 deletion android_webview/support_library/callback/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ android_library("callback_java") {
"//android_webview:browser_java",
"//android_webview/support_library/boundary_interfaces:boundary_interface_java",
"//base:base_java",
"//third_party/android_deps:androidx_annotation_annotation_java",
"//third_party/androidx:androidx_annotation_annotation_java",
]
}
14 changes: 7 additions & 7 deletions android_webview/test/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ android_apk("webview_instrumentation_apk") {
"//components/heap_profiling/multi_process:heap_profiling_java_test_support",
"//components/policy/android:policy_java_test_support",
"//content/public/android:content_java",
"//third_party/android_deps:androidx_annotation_annotation_java",
"//third_party/android_support_test_runner:runner_java",
"//third_party/androidx:androidx_annotation_annotation_java",
"//third_party/junit",
"//ui/android:ui_java",
"//url:gurl_java",
Expand Down Expand Up @@ -221,18 +221,18 @@ instrumentation_test_apk("webview_instrumentation_test_apk") {
"//net/android:net_javatests",
"//services/device/public/java:geolocation_java",
"//services/device/public/java:geolocation_java_test_support",
"//third_party/android_deps:androidx_activity_activity_java",
"//third_party/android_deps:androidx_annotation_annotation_java",
"//third_party/android_deps:androidx_core_core_java",
"//third_party/android_deps:androidx_fragment_fragment_java",
"//third_party/android_deps:androidx_test_runner_java",
"//third_party/android_deps:com_google_code_findbugs_jsr305_java",
"//third_party/android_deps:com_google_guava_failureaccess_java",
"//third_party/android_deps:espresso_java",
"//third_party/android_deps:guava_android_java",
"//third_party/android_deps:protobuf_lite_runtime_java",
"//third_party/android_support_test_runner:rules_java",
"//third_party/android_support_test_runner:runner_java",
"//third_party/androidx:androidx_activity_activity_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_test_runner_java",
"//third_party/blink/public/mojom:web_feature_mojo_bindings_java",
"//third_party/hamcrest:hamcrest_java",
"//third_party/junit",
Expand Down Expand Up @@ -544,9 +544,9 @@ junit_binary("android_webview_junit_tests") {
"//base:base_java_test_support",
"//base:base_junit_test_support",
"//content/public/test/android:content_java_test_support",
"//third_party/android_deps:androidx_test_runner_java",
"//third_party/android_deps:protobuf_lite_runtime_java",
"//third_party/android_support_test_runner:runner_java",
"//third_party/androidx:androidx_test_runner_java",
"//third_party/blink/public/mojom:mojom_platform_java",
]

Expand Down
4 changes: 2 additions & 2 deletions android_webview/tools/automated_ui_tests/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ instrumentation_test_apk("webview_ui_test_app_test_apk") {
":webview_ui_test_app_java",
"//base:base_java",
"//base:base_java_test_support",
"//third_party/android_deps:androidx_annotation_annotation_java",
"//third_party/android_deps:androidx_test_runner_java",
"//third_party/android_deps:espresso_java",
"//third_party/android_sdk:android_test_base_java",
"//third_party/android_support_test_runner:rules_java",
"//third_party/android_support_test_runner:runner_java",
"//third_party/androidx:androidx_annotation_annotation_java",
"//third_party/androidx:androidx_test_runner_java",
"//third_party/hamcrest:hamcrest_java",
"//third_party/junit",
"//third_party/ub-uiautomator:ub_uiautomator_java",
Expand Down
12 changes: 6 additions & 6 deletions android_webview/tools/system_webview_shell/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ android_library("system_webview_shell_apk_java") {
":system_webview_shell_apk_resources",
"//base:base_java",
"//third_party/android_deps:android_support_v7_appcompat_java",
"//third_party/android_deps:androidx_activity_activity_java",
"//third_party/android_deps:androidx_annotation_annotation_java",
"//third_party/android_deps:androidx_savedstate_savedstate_java",
"//third_party/android_deps:androidx_webkit_webkit_java",
"//third_party/android_deps:guava_android_java",
"//third_party/androidx:androidx_activity_activity_java",
"//third_party/androidx:androidx_annotation_annotation_java",
"//third_party/androidx:androidx_savedstate_savedstate_java",
"//third_party/androidx:androidx_webkit_webkit_java",
]
resources_package = "org.chromium.webview_shell"
}
Expand Down Expand Up @@ -109,9 +109,9 @@ instrumentation_test_apk("system_webview_shell_page_cycler_apk") {
"//content/public/android:content_java",
"//content/public/test/android:content_java_test_support",
"//testing/android/reporter:reporter_java",
"//third_party/android_deps:androidx_test_runner_java",
"//third_party/android_support_test_runner:rules_java",
"//third_party/android_support_test_runner:runner_java",
"//third_party/androidx:androidx_test_runner_java",
"//third_party/junit",
]
}
Expand All @@ -130,10 +130,10 @@ instrumentation_test_apk("system_webview_shell_layout_test_apk") {
"//base:base_java",
"//base:base_java_test_support",
"//testing/android/reporter:reporter_java",
"//third_party/android_deps:androidx_test_runner_java",
"//third_party/android_sdk:android_test_base_java",
"//third_party/android_support_test_runner:rules_java",
"//third_party/android_support_test_runner:runner_java",
"//third_party/androidx:androidx_test_runner_java",
"//third_party/junit",
]
data = [
Expand Down
34 changes: 17 additions & 17 deletions base/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -3700,11 +3700,11 @@ if (is_android) {

deps = [
":jni_java",
"//third_party/android_deps:androidx_annotation_annotation_java",
"//third_party/android_deps:androidx_collection_collection_java",
"//third_party/android_deps:androidx_core_core_java",
"//third_party/android_deps:androidx_multidex_multidex_java",
"//third_party/android_deps:com_google_code_findbugs_jsr305_java",
"//third_party/androidx:androidx_annotation_annotation_java",
"//third_party/androidx:androidx_collection_collection_java",
"//third_party/androidx:androidx_core_core_java",
"//third_party/androidx:androidx_multidex_multidex_java",
]

sources = [
Expand Down Expand Up @@ -3884,11 +3884,11 @@ if (is_android) {
":base_java_test_support",
":jni_java",
"//base/test:test_support_java",
"//third_party/android_deps:androidx_test_monitor_java",
"//third_party/android_deps:androidx_test_runner_java",
"//third_party/android_deps:androidx_test_uiautomator_uiautomator_java",
"//third_party/android_support_test_runner:rules_java",
"//third_party/android_support_test_runner:runner_java",
"//third_party/androidx:androidx_test_monitor_java",
"//third_party/androidx:androidx_test_runner_java",
"//third_party/androidx:androidx_test_uiautomator_uiautomator_java",
"//third_party/hamcrest:hamcrest_java",
"//third_party/junit:junit",
"//third_party/mockito:mockito_java",
Expand Down Expand Up @@ -3943,17 +3943,17 @@ if (is_android) {
":base_java",
":jni_java",
"//testing/android/reporter:reporter_java",
"//third_party/android_deps:androidx_annotation_annotation_java",
"//third_party/android_deps:androidx_core_core_java",
"//third_party/android_deps:androidx_test_monitor_java",
"//third_party/android_deps:androidx_test_runner_java",
"//third_party/android_deps:androidx_test_uiautomator_uiautomator_java",
"//third_party/android_sdk:android_support_chromium_java",
"//third_party/android_sdk:android_test_base_java",
"//third_party/android_sdk:android_test_mock_java",
"//third_party/android_support_test_runner:exposed_instrumentation_api_publish_java",
"//third_party/android_support_test_runner:rules_java",
"//third_party/android_support_test_runner:runner_java",
"//third_party/androidx:androidx_annotation_annotation_java",
"//third_party/androidx:androidx_core_core_java",
"//third_party/androidx:androidx_test_monitor_java",
"//third_party/androidx:androidx_test_runner_java",
"//third_party/androidx:androidx_test_uiautomator_uiautomator_java",
"//third_party/hamcrest:hamcrest_core_java",
"//third_party/hamcrest:hamcrest_java",
"//third_party/junit",
Expand Down Expand Up @@ -4068,11 +4068,11 @@ if (is_android) {
deps = [
":base_java",
"//testing/android/junit:junit_test_support",
"//third_party/android_deps:androidx_test_core_java",
"//third_party/android_deps:androidx_test_monitor_java",
"//third_party/android_deps:androidx_test_uiautomator_uiautomator_java",
"//third_party/android_deps:robolectric_all_java",
"//third_party/android_support_test_runner:runner_java",
"//third_party/androidx:androidx_test_core_java",
"//third_party/androidx:androidx_test_monitor_java",
"//third_party/androidx:androidx_test_uiautomator_uiautomator_java",
"//third_party/hamcrest:hamcrest_java",
"//third_party/junit:junit",
]
Expand Down Expand Up @@ -4124,8 +4124,8 @@ if (is_android) {
":base_junit_test_support",
":jni_java",
"//base/test:test_support_java",
"//third_party/android_deps:androidx_annotation_annotation_java",
"//third_party/android_deps:androidx_test_runner_java",
"//third_party/androidx:androidx_annotation_annotation_java",
"//third_party/androidx:androidx_test_runner_java",
"//third_party/hamcrest:hamcrest_java",
]
}
Expand Down
2 changes: 1 addition & 1 deletion base/test/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -488,8 +488,8 @@ if (is_android) {
"//base:base_java",
"//base:base_java_test_support",
"//testing/android/native_test:native_main_runner_java",
"//third_party/android_deps:androidx_annotation_annotation_java",
"//third_party/android_deps:com_google_code_findbugs_jsr305_java",
"//third_party/androidx:androidx_annotation_annotation_java",
]
srcjar_deps = [ ":test_support_java_aidl" ]
sources = [
Expand Down
2 changes: 1 addition & 1 deletion build/config/android/test/resource_overlay/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ android_library("javatests") {
":dependency_tagged_root_resources",
":root_tagged_root_resources",
"//base:base_java_test_support",
"//third_party/android_deps:androidx_test_runner_java",
"//third_party/android_support_test_runner:runner_java",
"//third_party/androidx:androidx_test_runner_java",
"//third_party/junit",
]
}
2 changes: 1 addition & 1 deletion cc/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ if (is_android) {
srcjar_deps = [ ":cc_android_java_enums_srcjar" ]
deps = [
"//base:base_java",
"//third_party/android_deps:androidx_annotation_annotation_java",
"//third_party/androidx:androidx_annotation_annotation_java",
]
}
}
Loading

0 comments on commit 0409372

Please sign in to comment.