Ying Wang | 3b2bdf1 | 2010-02-01 09:51:23 -0800 | [diff] [blame] | 1 | # Keep everything for tests |
Mark Renouf | 99332f1 | 2014-09-09 20:08:46 -0400 | [diff] [blame] | 2 | # This flag has been moved to the makefiles and is set for tests by default. |
| 3 | #-dontshrink |
Ying Wang | 7311a34 | 2013-08-21 18:32:49 -0700 | [diff] [blame] | 4 | |
| 5 | # But we may want to obfuscate if the main app gets obfuscated. |
| 6 | # This flag has been moved to the makefiles. |
| 7 | #-dontobfuscate |
Ying Wang | 3b2bdf1 | 2010-02-01 09:51:23 -0800 | [diff] [blame] | 8 | |
| 9 | #-keep class * extends junit.framework.TestCase { |
| 10 | # public void test*(); |
| 11 | #} |
| 12 | |
| 13 | #-keepclasseswithmembers class * { |
| 14 | # public static void run(); |
| 15 | # public static junit.framework.Test suite(); |
| 16 | #} |
| 17 | |
| 18 | # some AllTests don't include run(). |
| 19 | #-keepclasseswithmembers class * { |
| 20 | # public static junit.framework.Test suite(); |
| 21 | #} |
| 22 | |
| 23 | #-keep class * extends junit.framework.TestSuite |
| 24 | #-keep class * extends android.app.Instrumentation |
| 25 | #-keep class * extends android.test.TestSuiteProvider |
| 26 | |