Compile android.test.*.stubs into dex
Adjust the build rules of android.test.*.stubs packages to also
produce a jar with dex files. This will be used by the `hiddenapi`
tool to categorize the boot class path equivalents as public API.
Bug: 79409988
Test: m android.test.base.stubs ; check javalib.jar contains dex
Change-Id: I1d0850b18044c559ea4b9893d929dc45884b32c3
diff --git a/test-base/Android.bp b/test-base/Android.bp
index a0e3985..194b90e 100644
--- a/test-base/Android.bp
+++ b/test-base/Android.bp
@@ -115,4 +115,5 @@
},
},
sdk_version: "current",
+ compile_dex: true,
}
diff --git a/test-mock/Android.bp b/test-mock/Android.bp
index 51fa86b..86fd653 100644
--- a/test-mock/Android.bp
+++ b/test-mock/Android.bp
@@ -91,6 +91,7 @@
enabled: false,
},
},
+ compile_dex: true,
}
java_library_static {
@@ -104,4 +105,5 @@
enabled: false,
},
},
+ compile_dex: true,
}
diff --git a/test-runner/Android.bp b/test-runner/Android.bp
index b50ba3b..8f095f4 100644
--- a/test-runner/Android.bp
+++ b/test-runner/Android.bp
@@ -120,4 +120,5 @@
},
},
sdk_version: "current",
+ compile_dex: true,
}