File tree 3 files changed +9
-3
lines changed
checks/src/main/java/com/example/lint/checks
3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
buildscript {
4
4
ext {
5
- gradlePluginVersion = ' 3.0 .0-beta5 '
6
- lintVersion = ' 26.0 .0-beta5 '
5
+ gradlePluginVersion = ' 3.2 .0-rc02 '
6
+ lintVersion = ' 26.2 .0-rc02 '
7
7
}
8
8
9
9
repositories {
Original file line number Diff line number Diff line change 16
16
package com .example .lint .checks ;
17
17
18
18
import com .android .tools .lint .client .api .IssueRegistry ;
19
+ import com .android .tools .lint .detector .api .ApiKt ;
19
20
import com .android .tools .lint .detector .api .Issue ;
20
21
21
22
import java .util .Collections ;
@@ -29,5 +30,10 @@ public class SampleIssueRegistry extends IssueRegistry {
29
30
public List <Issue > getIssues () {
30
31
return Collections .singletonList (SampleCodeDetector .ISSUE );
31
32
}
33
+
34
+ @ Override
35
+ public int getApi () {
36
+ return ApiKt .CURRENT_API ;
37
+ }
32
38
}
33
39
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
3
3
distributionPath =wrapper/dists
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
6
- distributionUrl =https\://services.gradle.org/distributions/gradle-4.1 -all.zip
6
+ distributionUrl =https\://services.gradle.org/distributions/gradle-4.6 -all.zip
You can’t perform that action at this time.
0 commit comments