Skip to content

Commit e76346a

Browse files
committed
check: Run Android linter in android suite
1 parent 4bc45e9 commit e76346a

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

android/app/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ android {
7272
signingConfigs.release : signingConfigs.debug
7373
}
7474
}
75+
76+
lint {
77+
// For docs on options available here:
78+
// https://developer.android.com/reference/tools/gradle-api/8.5/com/android/build/api/dsl/Lint
79+
checkAllWarnings = true
80+
warningsAsErrors = true
81+
}
7582
}
7683

7784
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {

tools/check

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,11 @@ run_android() {
362362
files_check android/ \
363363
|| return 0
364364

365+
# For docs on this Android linter:
366+
# https://developer.android.com/studio/write/lint
367+
tools/gradle -q :app:lint \
368+
|| return
369+
365370
flutter build apk \
366371
|| return
367372

0 commit comments

Comments
 (0)