Squad Leader

If you do any serious Android development, you’ve probably used ProGuard to obfuscate, optimise and shrink your application. In that case it’s also very likely that ProGuarding your app has broken your release builds, took a few hours of your time away while pulling your hair out.

Squad leader will hopefully make this a little bit more easier. It includes two annotations that you can add to your code to specify that you want to @Keep a class, method or field and it’s name. There’s also a @KeepName annotation that does the same, but only if the annotated element is actually used in your code.


Install/import with Gradle

Instructions for Gradle

Add the below to your build.gradle,

dependencies {
    compile 'nl.littlerobots.squadleader:squadleader:<insert-latest-version>'
Facebook Twitter Google Reddit LinkedIn

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *