Quantcast
Channel: How to remove all debug logging calls before building the release version of an Android app? - Stack Overflow
Viewing all articles
Browse latest Browse all 32

Answer by Emmanuel Ametepee for How to remove all debug logging calls before building the release version of an Android app?

$
0
0

This is how I solve it in my Kotlin Project before going to production:

buildTypes {        release {            minifyEnabled true            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'        }    }-assumenosideeffects class android.util.Log {    public static boolean isLoggable(java.lang.String, int);    public static int d(...);    public static int w(...);    public static int v(...);    public static int i(...);    public static int e(...);}

Viewing all articles
Browse latest Browse all 32

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>