Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can i lint only one product flavor?

Problem:

When I execute gradle lint it lint both product flavors. One is not ready, so it fails always (not all the strings are there).

What i want:

I really want some option to say lint only this product flavor

like image 821
Extranion Avatar asked May 06 '14 15:05

Extranion


Video Answer


1 Answers

You can run:

gradle lintFlavorType

Also, in your build.gradle you can add this option

android {
    lintOptions {
        // if true, stop the gradle build if errors are found
        abortOnError false
    }
}
like image 199
Gabriele Mariotti Avatar answered Sep 28 '22 01:09

Gabriele Mariotti