OSDN Git Service

Allow for opt-in of proguard shrinking of tests with new flag
authorMark Renouf <mrenouf@google.com>
Wed, 10 Sep 2014 00:08:46 +0000 (20:08 -0400)
committerMark Renouf <mrenouf@google.com>
Wed, 10 Sep 2014 00:42:48 +0000 (20:42 -0400)
commit99332f11c5cdf1e58eb056c019d3ca8b1e3f034a
tree9cb354ad0dd03770452d1a9847c691f9207f927f
parent4f3d31479d5e4e8d35e60de628417cb820d69f5e
Allow for opt-in of proguard shrinking of tests with new flag

By adding 'shrinktests' to LOCAL_PROGUARD_ENABLED, the -dontshrink
flag will be omitted from the resulting proguard config allowing
tests to have unnecessary classes removed before dexxing.

Clockwork is running into 64k method limits on some tests which
depend on GmsCore. On 4.4W (klp-modular-dev) we don't have the
option for multi-dex so proguard is the only solution here.

This change leaves the default behavior unchanged. Shrinking is
still disabled for tests by default unless the 'shrinktests'
flag is set in the Makefile.

Change-Id: Ib586ae9e7f617072b41e95742559bf7c8a6a6ce1
core/java.mk
core/proguard_tests.flags