Same lint config for all modules
This commit is contained in:
@@ -2,8 +2,10 @@ package extension
|
||||
|
||||
import Versions
|
||||
import com.android.build.api.dsl.CommonExtension
|
||||
import org.gradle.api.Project
|
||||
import java.io.File
|
||||
|
||||
fun CommonExtension<*, *, *, *>.androidConfig() {
|
||||
fun CommonExtension<*, *, *, *>.androidConfig(project: Project) {
|
||||
defaultConfig {
|
||||
compileSdk = Versions.compileSdk
|
||||
minSdk = Versions.minSdk
|
||||
@@ -17,6 +19,12 @@ fun CommonExtension<*, *, *, *>.androidConfig() {
|
||||
testOptions {
|
||||
unitTests.isReturnDefaultValues = true
|
||||
}
|
||||
|
||||
lint {
|
||||
lintConfig = File("${project.rootDir}/tools/lint/lint.xml")
|
||||
checkDependencies = true
|
||||
abortOnError = true
|
||||
}
|
||||
}
|
||||
|
||||
fun CommonExtension<*, *, *, *>.composeConfig() {
|
||||
|
||||
@@ -8,7 +8,7 @@ plugins {
|
||||
}
|
||||
|
||||
android {
|
||||
androidConfig()
|
||||
androidConfig(project)
|
||||
composeConfig()
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ plugins {
|
||||
}
|
||||
|
||||
android {
|
||||
androidConfig()
|
||||
androidConfig(project)
|
||||
composeConfig()
|
||||
}
|
||||
|
||||
|
||||
@@ -6,5 +6,5 @@ plugins {
|
||||
}
|
||||
|
||||
android {
|
||||
androidConfig()
|
||||
androidConfig(project)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user