aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllen Hair <allenhair@google.com>2019-02-26 14:11:27 -0800
committerandroid-build-merger <android-build-merger@google.com>2019-02-26 14:11:27 -0800
commit11147a32d671226cdb8e09b6b111609e1309079c (patch)
treec63c125e72c1554b41a7346fd2303ceaf8dcf0f3
parentf827f09bac68f675cd1125d9cb43ec95066c2edc (diff)
parenta0fce88972e320ae4773296d6c93713ef44f6dd6 (diff)
downloadjacoco-11147a32d671226cdb8e09b6b111609e1309079c.tar.gz
Whitelist Offline.getProbes(..).
am: a0fce88972 Change-Id: Id5ef610d7548e075f7650186fbbfcdaebfdb45b9
-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