From f78c7816cdcfdb54dc43ffdd5f90589a7b150ff0 Mon Sep 17 00:00:00 2001 From: Neil Fuller Date: Tue, 25 Sep 2018 13:24:22 +0100 Subject: Compile against core public SDK APIs only Explicitly compile using core_current, which are the public SDK APIs provided by the core libraries. Bug: 113148576 Test: build / treehugger Change-Id: I9412425e2aec33dd7a6d23ab18362e7f22234efa --- Android.bp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Android.bp b/Android.bp index ffc0621..fdc1eb4 100644 --- a/Android.bp +++ b/Android.bp @@ -17,12 +17,12 @@ //------------------------------- // build a target jar -java_library_static { +java_library { name: "junit-params", host_supported: true, hostdex: true, srcs: ["src/main/java/**/*.java"], - no_framework_libs: true, + sdk_version: "core_current", static_libs: ["junit"], } @@ -45,7 +45,7 @@ java_test { host_supported: true, srcs: ["src/test/java/**/*.java"], java_resource_dirs: ["src/test/resources"], - no_framework_libs: true, + sdk_version: "core_current", static_libs: [ "junit-params", "junit-params-assertj-core", -- cgit v1.2.3