OSDN Git Service

Filter JUnit and android.test classes from applications using proguard
authorPaul Duffin <paulduffin@google.com>
Tue, 21 Feb 2017 13:11:13 +0000 (13:11 +0000)
committerPaul Duffin <paulduffin@google.com>
Tue, 21 Feb 2017 13:11:13 +0000 (13:11 +0000)
commitf22aca1e47a4cb7833afb42a90eee363a2258cb5
tree4471d8fb367b51c6bcea5466752a7613dad188ad
parent6cf9da761ab47a77a56cd3499e19613810ee4993
Filter JUnit and android.test classes from applications using proguard

The new javac/desugar/proguard/dx based toolchain can fail if
there are duplicate classes in the -injars and -libraryjars
passed to proguard. That causes problems for b/30188076 which
is attempting to remove various junit and android.test classes
from the API because it requires the changes to add those
classes statically to applications are submitted simultaneously
with the change to remove the classes from the API which is not
feasible.

This change simply causes Proguard to ignore the classes from
the application JAR so it will always use them from the library.
That allows the changes to be done separately and only requires
that this change is reverted simultaneously with the change to
update the API.

Bug: 30188076
Test: make checkbuild and make -j ANDROID_FORCE_JACK_ENABLED=disabled checkbuild
Change-Id: I6ed6c45a159d6261d90245551aa2913cc82d2e8b
core/definitions.mk
core/java.mk