summaryrefslogtreecommitdiff
path: root/test-base
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2022-01-31 17:15:49 +0000
committer Paul Duffin <paulduffin@google.com> 2022-02-03 15:56:56 +0000
commitf404f1dbfc71e957aab99a014df0b461309b2bb7 (patch)
tree529867c908997156870c68300759f3974ceae8c9 /test-base
parent128ebcdb54d65a3b855f61c6d8180f26819a98ad (diff)
Remove repackaged.android.test... libraries
Repackaging is now being done by the CTS signature tests that break if they used the original classes from the shared libraries. This change removes the repackaged.android.test... libraries. Bug: 209607558 Test: cts/tests/signature/runSignatureTests.sh Change-Id: I8745fc7b41099f9f15d76a4e9d7cf6b15e794b92
Diffstat (limited to 'test-base')
-rw-r--r--test-base/Android.bp29
-rw-r--r--test-base/jarjar-rules.txt3
2 files changed, 8 insertions, 24 deletions
diff --git a/test-base/Android.bp b/test-base/Android.bp
index 8be732452228..527159a78ebf 100644
--- a/test-base/Android.bp
+++ b/test-base/Android.bp
@@ -72,11 +72,16 @@ java_sdk_library {
// Build the android.test.base_static library
// ==========================================
-// This is only intended for inclusion in the android.test.runner-minus-junit,
-// robolectric_android-all-stub and repackaged.android.test.* libraries.
+// This is only intended for use by the android.test.runner-minus-junit
+// library.
+//
// Must not be used elsewhere.
+//
java_library_static {
name: "android.test.base_static",
+ visibility: [
+ "//frameworks/base/test-runner",
+ ],
installable: false,
srcs: [":android-test-base-sources"],
@@ -91,28 +96,10 @@ java_library_static {
sdk_version: "current",
}
-// Build the repackaged.android.test.base library
-// ==============================================
-// This contains repackaged versions of the classes from
-// android.test.base.
-java_library_static {
- name: "repackaged.android.test.base",
-
- sdk_version: "current",
- static_libs: ["android.test.base_static"],
-
- jarjar_rules: "jarjar-rules.txt",
- // Pin java_version until jarjar is certified to support later versions. http://b/72703434
- java_version: "1.8",
-}
-
// Build the android.test.base-minus-junit library
// ===============================================
// This contains the android.test classes from android.test.base plus
-// the com.android.internal.util.Predicate[s] classes. This is only
-// intended for inclusion in android.test.legacy and in
-// android.test.base-hiddenapi-annotations to avoid a dependency cycle and must
-// not be used elsewhere.
+// the com.android.internal.util.Predicate[s] classes.
java_library_static {
name: "android.test.base-minus-junit",
diff --git a/test-base/jarjar-rules.txt b/test-base/jarjar-rules.txt
deleted file mode 100644
index fd8555c8931c..000000000000
--- a/test-base/jarjar-rules.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-rule junit.** repackaged.junit.@1
-rule android.test.** repackaged.android.test.@1
-rule com.android.internal.util.** repackaged.com.android.internal.util.@1