B.B.
B.B.

Reputation: 954

Use ProGuard to exclude Log in Android

Is it possible to exclude the implementation of Log class from the apk using ProGuard during the build generation? So when we generate an apk, we do not have the development Logs in the class files.

Upvotes: 0

Views: 103

Answers (1)

Unii
Unii

Reputation: 1617

Yes, you can remove logs.

  -assumenosideeffects class android.util.Log {
        public static boolean isLoggable(java.lang.String, int);
        public static int v(...);
        public static int i(...);
        public static int w(...);
        public static int d(...);
        public static int e(...);
    }

more information: Removing Log call using proguard

Upvotes: 1

Related Questions