use custom proguard config for running tests
The new Android Testing Support library stuff causes proguard to freak out, so make proguard ignore all that stuff when running tests.
This commit is contained in:
parent
fc0df0dcf4
commit
70864e3479
@ -132,6 +132,7 @@ android {
|
||||
minifyEnabled true
|
||||
shrinkResources true
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
testProguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro', 'src/androidTest/proguard-rules.pro'
|
||||
}
|
||||
debug {
|
||||
testCoverageEnabled = true
|
||||
|
16
app/src/androidTest/proguard-rules.pro
vendored
Normal file
16
app/src/androidTest/proguard-rules.pro
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
-dontwarn android.test.**
|
||||
-dontwarn android.support.test.**
|
||||
-dontnote junit.framework.**
|
||||
-dontnote junit.runner.**
|
||||
|
||||
# Uncomment this if you use Mockito
|
||||
#-dontwarn org.mockito.**
|
||||
|
||||
-keep class org.hamcrest.** { *; }
|
||||
-dontwarn org.hamcrest.**
|
||||
|
||||
-keep class org.junit.** { *; }
|
||||
-dontwarn org.junit.**
|
||||
|
||||
-keep class junit.** { *; }
|
||||
-dontwarn junit.**
|
Loading…
x
Reference in New Issue
Block a user