Skip to content
This repository has been archived by the owner on Mar 16, 2021. It is now read-only.

Commit

Permalink
Adjust lint tests version to current gradle plugin version
Browse files Browse the repository at this point in the history
Allow absence of Android SDK in lint tests
  • Loading branch information
Jannis Veerkamp committed Jan 28, 2020
1 parent 438fbf2 commit f718614
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ ext {
// According to https://github.com/googlesamples/android-custom-lint-rules/tree/master/android-studio-3
// the lint version should match to the used Android Gradle Plugin by the formula "AGP Version X.Y.Z + 23.0.0"
// E.g. "AGP Version 3.1.3 + 23.0.0 = Lint Version 26.1.3"
lintVersion = '26.3.2'
lintVersion = '26.4.2'
}

allprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ class MissingViewInCompositeDetectorTest : LintDetectorTest() {

override fun getDetector(): Detector = MissingViewInCompositeDetector()

override fun getIssues(): MutableList<Issue> = mutableListOf(
MissingViewInCompositeDetector.ISSUE)
override fun getIssues(): MutableList<Issue> = mutableListOf(MissingViewInCompositeDetector.ISSUE)

/*
override fun allowMissingSdk(): Boolean = true
/*
* --------------------------------------------------------------------------------
* CompositeActivity
* --------------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ class MissingViewInThirtyInchDetectorTest : LintDetectorTest() {

override fun getDetector(): Detector = MissingViewInThirtyInchDetector()

override fun getIssues(): MutableList<Issue> = mutableListOf(
MissingViewInThirtyInchDetector.ISSUE)
override fun getIssues(): MutableList<Issue> = mutableListOf(MissingViewInThirtyInchDetector.ISSUE)

override fun allowMissingSdk(): Boolean = true

/*
* --------------------------------------------------------------------------------
Expand Down

0 comments on commit f718614

Please sign in to comment.