I want to use proguard to only remove log statements, but now my application crashes when it is started. I am not too familiar with proguard, but I guess I have to add in some lines to keep my other classes to be fine.
This is my proguard-project.txt:
# To enable ProGuard in your project, edit project.properties # to define the proguard.config property as described in that file. # # Add project specific ProGuard rules here. # By default, the flags in this file are appended to flags specified # in ${sdk.dir}/tools/proguard/proguard-android.txt # You can edit the include path and order by changing the ProGuard # include property in project.properties. # # For more details, see # http://developer.android.com/guide/developing/tools/proguard.html # Add any project specific keep options here: # If your project uses WebView with JS, uncomment the following # and specify the fully qualified class name to the JavaScript interface # class: #-keepclassmembers class fqcn.of.javascript.interface.for.webview { # public *; #} -assumenosideeffects class android.util.Log { *; } #ProGuard may remove code that it thinks you don't use such as: #a class that is referenced only in the AndroidManifest.xml file #a method called from JNI #dynamically referenced fields and methods #-keep public class <MyClass> How would I go about adding a statement that will "disregard" proguard for all of my other classes? I just want to make sure that the removal of the logging works. I will then concentrate on obfuscation later down the road.
I am trying this, but I get an error when exporting:
-keep class com.finesspro.gui** { * }