From 51c1288030af9b538842c2482c9c38c53f8fbc03 Mon Sep 17 00:00:00 2001 From: David Brazdil Date: Wed, 27 Jun 2018 10:51:24 +0100 Subject: [PATCH] Compile API stubs to dex Add 'compile_dex' flag to API stub rules. Soong will generate build targets which compile the JARs into dex files. Those will be compared against the boot class path dex files to determine the public API surface. Bug: 79409988 Test: m android_stubs_current, check javalib.jar contains classes.dex Change-Id: Ie7238572ece0678133ba08203108a923ea2f56ba --- build/Android.bp | 1 + 1 file changed, 1 insertion(+) diff --git a/build/Android.bp b/build/Android.bp index 65a5cadb4..2fd02a6f9 100644 --- a/build/Android.bp +++ b/build/Android.bp @@ -25,6 +25,7 @@ java_defaults { no_standard_libs: true, system_modules: "none", java_version: "1.8", + compile_dex: true, } java_library_static {