From 75b83b0a81f2dbe55a1146118d0a4eff11c4ea87 Mon Sep 17 00:00:00 2001 From: Jeongik Cha Date: Fri, 1 Nov 2019 15:28:00 +0900 Subject: Link type will be check in android_library also For now, Soong checks link-type in java_library, so it cannot block hidden api usage from android_library that app links with. So we should add check in 'android_library' Test: m nothing Change-Id: Ic040270ec668bdd693b690ac8a88be1048922c3b --- java/app_test.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'java/app_test.go') diff --git a/java/app_test.go b/java/app_test.go index 05ab856e4..e99e17ca3 100644 --- a/java/app_test.go +++ b/java/app_test.go @@ -399,18 +399,21 @@ func TestAndroidResources(t *testing.T) { android_library { name: "lib", + sdk_version: "current", resource_dirs: ["lib/res"], static_libs: ["lib2"], } android_library { name: "lib2", + sdk_version: "current", resource_dirs: ["lib2/res"], } // This library has the same resources as lib (should not lead to dupe RROs) android_library { name: "lib3", + sdk_version: "current", resource_dirs: ["lib/res"] } ` -- cgit v1.2.3-59-g8ed1b