Skip to content

Commit

Permalink
rework "It is too late to set baselinePath"
Browse files Browse the repository at this point in the history
  • Loading branch information
TWiStErRob committed Mar 5, 2023
1 parent 86940c5 commit ffdd70e
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,18 @@ android {
}

allprojects { project ->
project.android {
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_8
def androidConfig = {
project.android {
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_8
}
lintOptions.baseline rootProject.file("config/lint/lint-baseline-${project.name}.xml")
lintOptions.lintConfig = rootProject.file("config/lint/lint.xml")
}
// lintOptions.baseline rootProject.file("config/lint/lint-baseline-${project.name}.xml")
// lintOptions.lintConfig = rootProject.file("config/lint/lint.xml")
}
plugins.withId('com.android.library', androidConfig)
plugins.withId('com.android.application', androidConfig)
}

subprojects { project ->
Expand Down

0 comments on commit ffdd70e

Please sign in to comment.