99332f11c5
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
26 lines
716 B
Text
26 lines
716 B
Text
# Keep everything for tests
|
|
# This flag has been moved to the makefiles and is set for tests by default.
|
|
#-dontshrink
|
|
|
|
# But we may want to obfuscate if the main app gets obfuscated.
|
|
# This flag has been moved to the makefiles.
|
|
#-dontobfuscate
|
|
|
|
#-keep class * extends junit.framework.TestCase {
|
|
# public void test*();
|
|
#}
|
|
|
|
#-keepclasseswithmembers class * {
|
|
# public static void run();
|
|
# public static junit.framework.Test suite();
|
|
#}
|
|
|
|
# some AllTests don't include run().
|
|
#-keepclasseswithmembers class * {
|
|
# public static junit.framework.Test suite();
|
|
#}
|
|
|
|
#-keep class * extends junit.framework.TestSuite
|
|
#-keep class * extends android.app.Instrumentation
|
|
#-keep class * extends android.test.TestSuiteProvider
|
|
|