Delete a record using Proguard

I am trying to delete journal entries without success. Other SO answers to the same question apply to Eclipse or to the old Android Studio IDE (Intellij).

build.gradle

buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } ... 

proguard-rules.pro

 -assumenosideeffects class android.util.Log { public static *** d(...); public static *** v(...); public static *** i(...); public static *** w(...); public static *** e(...); } 

I can still see the log instructions after getting the source code from the signed application-release.apk

+7
android proguard logcat
source share
1 answer

change build.gradle did the trick

 buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } ... 
+11
source share

All Articles