Good day.

I got a file, proguard-test-rules.pro, but I can’t connect it to the tests.

If I add the line I need to the main proguard, everything works, I test the error in the test, I conclude from this that it is not connected to me. Can someone tell me what to do about it? Or is it possible to check whether it is connected?

release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' testProguardFile 'proguard-test-rules.pro' buildConfigField "long", "VERSION_DATE", System.currentTimeMillis() + "L" signingConfig signingConfigs.release ext.enableCrashlytics = true ext.betaDistributionNotifications = true } debug { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' testProguardFile 'proguard-test-rules.pro' buildConfigField "long", "VERSION_DATE", "0L" signingConfig signingConfigs.debug ext.enableCrashlytics = false } 
  • And for what purpose did you include a proguard for a debug build? - temq
  • So it was before me) I just started automating mobile phones, so I can't give a clear answer - Alexander Zaitsev
  • one
    Usually, for debug builds, they turn off the proguard, otherwise it optimizes everything there and changes that it will be impossible to debug the application, plus all this significantly increases the build time. Therefore, I would advise you to disable all of this (leave only for release) - temq

0