I want to disable logcat on release mode and i put below code on build.gradle :
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
debuggable false
}
}
and put below code on proguard-rules.repo :
-assumenosideeffects class android.util.Log {
public static boolean isLoggable(java.lang.String, int);
public static *** d(...);
public static *** w(...);
public static *** v(...);
public static *** e(...);
public static *** i(...);
}
but I can see log too. what should I do? (I tried this code too :
-assumenosideeffects class android.util.Log{*;}
but it didn't work)
I have made constant class as a solution.
}