From cdfe4845abb5c1609127207a6b98199dd561cbd3 Mon Sep 17 00:00:00 2001 From: Jaewoong Jung Date: Tue, 11 Jun 2019 12:25:34 -0700 Subject: Improve android_app_import.dpi_variants handling. Instead of circumventing the limitation of Prebuilt implementation by picking a source path itself, it now uses the same mechanism as archMutator and replaces the source path in advance so that Prebuilt always sees the corrent source path. Because this requires the Apk field to be a string pointer, the single source prebuilt implementation is being updated to be reflection-based. Test: Soong unit tests, m soong_docs, TreeHugger Change-Id: I2304f15e32d632f74f95f0d9e9bf1f75ff3e2225 --- java/app_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'java/app_test.go') diff --git a/java/app_test.go b/java/app_test.go index 723cde3e..d4de7533 100644 --- a/java/app_test.go +++ b/java/app_test.go @@ -1271,7 +1271,7 @@ func TestAndroidAppImport_DpiVariants(t *testing.T) { { name: "AAPTPreferredConfig matches", aaptPreferredConfig: proptools.StringPtr("xhdpi"), - aaptPrebuiltDPI: []string{"xxhdpi", "lhdpi"}, + aaptPrebuiltDPI: []string{"xxhdpi", "ldpi"}, expected: "prebuilts/apk/app_xhdpi.apk", }, { -- cgit v1.2.3