Can someone help me understand the use of testProguardFile. Suppose I have a debug buildType and it is configured this way in the gradle build file:
// inside android block debug { shrinkResources true // removes unused graphics etc minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' testProguardFile('test-proguard-rules.pro') }
then why am I supplying another proguard rule file called test-proguard-rules.pro for testing? If I understand correctly, when I test the hardware, a separate apk is generated, but what if I do only the unit test, is that right?
what I would like to do is run βunit testsβ (not control tests), but when using unit test apk they use the proguard rules that I defined in my project build settings.
source share