How do I include custom lint rules in build.gradle?

I am trying to integrate the Timber Lint Rules via gradle. Is this possible, or do I have to manually install the rules?

Posted Jul 14, 2014, 7:27 PM UTC

163
JakeWharton•

Humorously enough, I'd like to know this as well!

5
GzFighterDev-myLTC•

Distribute it as an aar inserted of an apklib, an aar can include a lint.jar file.

1
GzFighterDev-myLTC•

Not sure how to manually add it, but AARs can have a lint.jar packed with it. See : http://tools.android.com/tech-docs/new-build-system/aar-format

1