Skip to content

Commit

Permalink
Remove R classes from espresso maven artifacts
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 392449283
  • Loading branch information
brettchabot authored and copybara-androidxtest committed Aug 23, 2021
1 parent 20d394a commit 6150aca
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 28 deletions.
1 change: 1 addition & 0 deletions espresso/core/java/androidx/test/espresso/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ axt_release_lib(
"//:proguard_binary.cfg",
"//espresso:proguard_binary.cfg",
],
remove_spec = "androidx/test/espresso/core/R[$$\\.]",
deps = [
":espresso",
],
Expand Down
12 changes: 7 additions & 5 deletions espresso/core/java/androidx/test/espresso/remote/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Remote package for espresso.

load("//build_extensions:maven_repo.bzl", "maven_artifact")
load("//build_extensions:axt_versions.bzl", "RUNNER_VERSION", "ESPRESSO_VERSION", "ANDROIDX_VERSION")
load("//build_extensions:combine_jars.bzl", "combine_jars")
load("//build_extensions:release.bzl", "axt_release_lib")

licenses(["notice"]) # Apache License 2.0

package(
Expand Down Expand Up @@ -183,10 +188,6 @@ android_library(
],
)

load("//build_extensions:maven_repo.bzl", "maven_artifact")
load("//build_extensions:axt_versions.bzl", "RUNNER_VERSION", "ESPRESSO_VERSION", "ANDROIDX_VERSION")
load("//build_extensions:combine_jars.bzl", "combine_jars")

filegroup(
name = "espresso_remote_src",
srcs = [
Expand All @@ -207,7 +208,7 @@ combine_jars(
],
)

load("//build_extensions:release.bzl", "axt_release_lib")


axt_release_lib(
name = "espresso_remote_release",
Expand All @@ -223,6 +224,7 @@ axt_release_lib(
"//:proguard_binary.cfg",
"//espresso:proguard_binary.cfg",
],
remove_spec = "androidx/test/espresso/remote/R[$$\\.]",
deps = [
":remote",
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Description:
# Light weight module that contains IdlinResources around concurrent Java APIs

load("//build_extensions:release.bzl", "axt_release_lib")
load("//build_extensions:maven_repo.bzl", "maven_artifact")
load("//build_extensions:axt_versions.bzl", "ESPRESSO_VERSION")
load("//build_extensions:combine_jars.bzl", "combine_jars")

package(
default_visibility = ["//:__subpackages__"],
)
Expand Down Expand Up @@ -40,22 +45,17 @@ android_library(
],
)

load("//build_extensions:release.bzl", "axt_release_lib")

# rule for outputting externally released binary. Produces
# idling_concurrent_release_no_deps.jar and idling_concurrent_release.aar
axt_release_lib(
name = "idling_concurrent_release",
keep_spec = "androidx/test/espresso/idling/concurrent",
remove_spec = "androidx/test/espresso/idling/concurrent/R[$$\\.]",
deps = [
":idling_concurrent",
],
)

load("//build_extensions:maven_repo.bzl", "maven_artifact")
load("//build_extensions:axt_versions.bzl", "ESPRESSO_VERSION")
load("//build_extensions:combine_jars.bzl", "combine_jars")

filegroup(
name = "idling_concurrent_src",
srcs = [
Expand Down
12 changes: 6 additions & 6 deletions espresso/idling_resource/java/androidx/test/espresso/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
# Light weight module represents a resources of an application under test which can cause
# asynchronous background work to happen during test execution.

load("//build_extensions:release.bzl", "axt_release_lib")
load("//build_extensions:maven_repo.bzl", "maven_artifact")
load("//build_extensions:axt_versions.bzl", "ESPRESSO_VERSION")
load("//build_extensions:combine_jars.bzl", "combine_jars")

package(
default_visibility = ["//visibility:public"],
)
Expand Down Expand Up @@ -47,23 +52,18 @@ alias(
actual = "//espresso/idling_resource/concurrent/java/androidx/test/espresso/idling/concurrent:thread_pool_idling_resource",
)

load("//build_extensions:release.bzl", "axt_release_lib")

# rule for outputting externally released binary. Produces
# espresso_idling_resource_release_no_deps.jar and espresso_idling_resource_release.aar
axt_release_lib(
name = "espresso_idling_resource_release",
custom_package = "androidx.test.espresso.idling.resource",
keep_spec = "androidx/test/espresso",
remove_spec = "androidx/test/espresso/idling/resource/R[$$\\.]",
deps = [
":idling_resource",
],
)

load("//build_extensions:maven_repo.bzl", "maven_artifact")
load("//build_extensions:axt_versions.bzl", "ESPRESSO_VERSION")
load("//build_extensions:combine_jars.bzl", "combine_jars")

filegroup(
name = "idling_resource_src",
srcs = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Description:
# Network Idling Resources
load("//build_extensions:release.bzl", "axt_release_lib")
load("//build_extensions:maven_repo.bzl", "maven_artifact")
load("//build_extensions:axt_versions.bzl", "ANDROIDX_VERSION", "ESPRESSO_VERSION")
load("//build_extensions:combine_jars.bzl", "combine_jars")

licenses(["notice"]) # Apache License 2.0

package(
Expand All @@ -16,22 +21,17 @@ android_library(
],
)

load("//build_extensions:release.bzl", "axt_release_lib")

# rule for outputting externally released binary. Produces
# idling_net_release_no_deps.jar and idling_net_release.aar
axt_release_lib(
name = "idling_net_release",
keep_spec = "androidx/test/espresso/idling/net",
remove_spec = "androidx/test/espresso/idling/net/R[$$\\.]",
deps = [
":uri_idling_resource",
],
)

load("//build_extensions:maven_repo.bzl", "maven_artifact")
load("//build_extensions:axt_versions.bzl", "ANDROIDX_VERSION", "ESPRESSO_VERSION")
load("//build_extensions:combine_jars.bzl", "combine_jars")

filegroup(
name = "idling_net_src",
srcs = [
Expand Down
11 changes: 6 additions & 5 deletions espresso/web/java/androidx/test/espresso/web/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
load("//build_extensions:release.bzl", "axt_release_lib")
load("//build_extensions:maven_repo.bzl", "maven_artifact")
load("//build_extensions:axt_versions.bzl", "ANDROIDX_VERSION", "ESPRESSO_VERSION")
load("//build_extensions:combine_jars.bzl", "combine_jars")

licenses(["notice"]) # Apache License 2.0

package(
default_visibility = ["//visibility:public"],
)

# ** Generate the release artifacts **
load("//build_extensions:release.bzl", "axt_release_lib")

android_library(
name = "espresso_web_release_lib",
Expand All @@ -28,15 +32,12 @@ axt_release_lib(
"//espresso:proguard_binary.cfg",
":proguard_binary.cfg",
],
remove_spec = "androidx/test/espresso/web/R[$$\\.]",
deps = [
":espresso_web_release_lib",
],
)

load("//build_extensions:maven_repo.bzl", "maven_artifact")
load("//build_extensions:axt_versions.bzl", "ESPRESSO_VERSION", "ANDROIDX_VERSION")
load("//build_extensions:combine_jars.bzl", "combine_jars")

filegroup(
name = "web_src",
srcs = [
Expand Down

0 comments on commit 6150aca

Please sign in to comment.