Skip to content

Commit 5abd169

Browse files
author
JiaYan Lin
committed
fix properties file's path in android_local_test
1 parent 1af51cc commit 5abd169

File tree

6 files changed

+16
-9
lines changed

6 files changed

+16
-9
lines changed

MODULE.bazel

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,13 @@ use_repo(bazel_binaries, "bazel_binaries")
100100
# extension for apksignerextensions
101101
apksig_extension = use_extension("//bzlmod_extensions:apksig.bzl", "apksig_extension")
102102
use_repo(apksig_extension, "apksig")
103+
104+
# rules_robolectric > 4.11.1
105+
RULES_ROBOLECTRIC_COMMIT = "a5b25a8c27cc6add74bb01e62cd0dc72df8933ff"
106+
RULES_ROBOLECTRIC_SHA = "wErQv8LAP50nd8+P4IkYczddtsi+/56ntxuy/Qp5+0c="
107+
archive_override(
108+
module_name = "rules_robolectric",
109+
urls = ["https://github.com/robolectric/robolectric-bazel/archive/%s.zip" % RULES_ROBOLECTRIC_COMMIT],
110+
integrity = "sha256-%s" % RULES_ROBOLECTRIC_SHA,
111+
strip_prefix = "robolectric-bazel-%s" % RULES_ROBOLECTRIC_COMMIT
112+
)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Android support in Bazel
2-
#### test bazelci @HEAD
2+
33
## Disclaimer
44

55
NOTE: This branch is a development preview of the Starlark implementation of Android rules for Bazel. This code is incomplete and may not function as-is.

prereqs.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ def rules_android_prereqs(dev_mode = False):
8888
maybe(
8989
http_archive,
9090
name = "robolectric",
91-
urls = ["https://github.com/robolectric/robolectric-bazel/archive/4.10.3.tar.gz"],
92-
strip_prefix = "robolectric-bazel-4.10.3",
93-
sha256 = "1b199a932cbde4af728dd8275937091adbb89a4bf63d326de49e6d0a42e723bf",
91+
urls = ["https://github.com/robolectric/robolectric-bazel/archive/a5b25a8c27cc6add74bb01e62cd0dc72df8933ff.zip"],
92+
strip_prefix = "robolectric-bazel-a5b25a8c27cc6add74bb01e62cd0dc72df8933ff",
93+
sha256 = "c04ad0bfc2c03f9d2777cf8fe0891873375db6c8beff9ea7b71bb2fd0a79fb47",
9494
)
9595

9696
maybe(

rules/android_local_test/attrs.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def make_attrs(additional_aspects = [], native_libs_transition = None):
178178
robolectric_properties_file = attr.label(
179179
doc = "The classpath to robolectric-deps.properties file.",
180180
allow_single_file = True,
181-
default = "@robolectric//bazel:android-all",
181+
default = '@robolectric//bazel:properties',
182182
),
183183
test_class = attr.string(
184184
doc = """

rules/android_local_test/impl.bzl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,7 @@ def _process_jvm(ctx, resources_ctx, **_unused_sub_ctxs):
170170
providers.append(AndroidFilteredJdepsInfo(jdeps = filtered_jdeps))
171171
runfiles.append(filtered_jdeps)
172172
file = ctx.file.robolectric_properties_file
173-
properties = '${JAVA_RUNFILES}/' + '/'.join(file.short_path.split('/')[1:-1]) + '/robolectric-deps.properties'
174-
print(">>>>>>>>>>>> ", properties)
173+
properties = '${JAVA_RUNFILES}/' + '/'.join(file.short_path.split('/')[1:])
175174

176175
return ProviderInfo(
177176
name = "jvm_ctx",

test/rules/android_binary_internal/r8_integration/r8_integration_test.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
import sys
1818
import unittest
1919
import zipfile
20-
import sys
21-
2220

2321

2422
class R8IntegrationTest(unittest.TestCase):

0 commit comments

Comments
 (0)