diff options
author | Peter Kalauskas <peskal@google.com> | 2024-02-27 21:52:07 +0000 |
---|---|---|
committer | Peter Kalauskas <peskal@google.com> | 2024-02-27 22:52:28 +0000 |
commit | c26a513717029adfd4620655b54d3fe37ed9c1ed (patch) | |
tree | 95809af65a4c507fd0ab31fbe1b98fbb4c97f076 /Android.bp | |
parent | 5f581e6b9429b330049b9b4cd637989bdfaaa166 (diff) | |
download | robolectric-c26a513717029adfd4620655b54d3fe37ed9c1ed.tar.gz |
Add android-all-robolectric.jar to private_api_stubs
Create out/dist/android-all-robolectric.jar for Gradle builts
Test: m private_api_stubs dist && stat out/dist/android-all-robolectric.jar
Bug: 293327993
Change-Id: If49f4861be6d64b00368a27d4943c6136cba74fc
Diffstat (limited to 'Android.bp')
-rw-r--r-- | Android.bp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp index 3c278f580..86f88005e 100644 --- a/Android.bp +++ b/Android.bp @@ -102,8 +102,17 @@ java_library_host { "robolectric_tzdata", "robolectric_framework_res", ], + // WARNING: DO NOT ADD NEW DEPENDENCIES ON THIS MODULE OR ITS DIST JAR + // This dist jar is an internal implementation detail. For external Gradle builds (outside + // the platform), consumers should access robolectric via the maven repository. For + // platform robolectric usage (in Soong), consumers should use the + // android_robolectric_test module type. dist: { targets: [ + // Add android-all-robolectric.jar to private_api_stubs dist target for easier + // packaging by scripts. This jar is useful for running robolectric tests on + // platform app Gradle builds that compile against hidden platform APIs. + "private_api_stubs", "sdk", "win_sdk", ], |