aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2019-02-27 04:09:46 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2019-02-27 04:09:46 +0000
commitf1ad3999655d7ca2a9c97fd4793317552771ca14 (patch)
treec63c125e72c1554b41a7346fd2303ceaf8dcf0f3
parentc34b2093f429822dc92662589e54cfb6c06f43e9 (diff)
parent4532dfd9040c6f841991b9fa787ba398bca8dab5 (diff)
downloadjacoco-f1ad3999655d7ca2a9c97fd4793317552771ca14.tar.gz
Snap for 5339364 from 4532dfd9040c6f841991b9fa787ba398bca8dab5 to qt-release
Change-Id: Iaa649cfef633e6558333cba999fc2789d9b7ce87
-rw-r--r--Android.bp13
1 files changed, 13 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index e220dcbe..6a777643 100644
--- a/Android.bp
+++ b/Android.bp
@@ -58,6 +58,19 @@ java_library {
],
}
+// Generates stubs containing the classes that will be referenced by instrumented bytecode.
+droidstubs {
+ name: "jacoco-stubs-gen",
+ srcs: ["org.jacoco.agent.rt/src/org/jacoco/agent/rt/internal/Offline.java"],
+}
+
+// A stubs target containing the parts of JaCoCo that we need to add to the hidden API whitelist.
+java_library {
+ name: "jacoco-stubs",
+ compile_dex: true,
+ srcs: [":jacoco-stubs-gen"],
+}
+
// Build jacoco-cli from sources for the platform
// TODO(jeffrygaston) it'd be nice to keep the build process and/or list of source files in sync with