- Tip 1: Always keep an check on library's method count using these two tools:
- Tip 2: Use Proguard for debug builds as well.
Configuring gradle plug-in:
Global build.gradle:
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.5.0'
Local : app/build.gradle
apply plugin: 'com.android.library'
//AFTER android or library pluginapply plugin: 'com.getkeepsafe.dexcount'
References:
- http://jeroenmols.com/blog/2016/05/06/methodcount
No comments:
Post a Comment