aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllen Hair <allenhair@google.com>2019-02-26 14:21:24 -0800
committerandroid-build-merger <android-build-merger@google.com>2019-02-26 14:21:24 -0800
commit4532dfd9040c6f841991b9fa787ba398bca8dab5 (patch)
treec63c125e72c1554b41a7346fd2303ceaf8dcf0f3
parentcb22735746c6c74b8fb9fd4f45de7a9d390a7379 (diff)
parent0def5d5da5c5bf36c6397d53daf5392f8849dfbd (diff)
downloadplatform_external_jacoco-4532dfd9040c6f841991b9fa787ba398bca8dab5.tar.gz
platform_external_jacoco-4532dfd9040c6f841991b9fa787ba398bca8dab5.tar.bz2
platform_external_jacoco-4532dfd9040c6f841991b9fa787ba398bca8dab5.zip
Whitelist Offline.getProbes(..). am: a0fce88972 am: 11147a32d6
am: 0def5d5da5 Change-Id: Ia0ecdf188fb01978b03af22335a69d1267a200f2
-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