Multiple Lint Files for Each Build Type

How to configure gradle on different lint files for different build types?

We want to translate the lines at the end of the development cycle. Therefore, we need to ignore the translation errors created by lint only in the debug version. When we create the release build, we must then throw the translation errors. The following build.gradle calls a DSL method that is not found.

android { buildTypes { release { signingConfig signingConfigs.release } debug { testCoverageEnabled = true applicationIdSuffix '.debug' versionNameSuffix '-DEBUG' signingConfig signingConfigs.debug lintOptions debug } beta { applicationIdSuffix '.beta' versionNameSuffix '- beta' signingConfig signingConfigs.debug } } lintOptions { debug { disable 'TypographyFractions' } } } 
+5
source share

All Articles