Skip to content

Commit ba829c6

Browse files
committed
check: Run Android linter in android suite
1 parent 8cbaf36 commit ba829c6

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

android/app/build.gradle

+7
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

+9
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,15 @@ run_android() {
362362
files_check android/ \
363363
|| return 0
364364

365+
# This causes `android/gradlew` to exist, for `tools/gradle` to use.
366+
flutter build apk --config-only \
367+
|| return
368+
369+
# For docs on this Android linter:
370+
# https://developer.android.com/studio/write/lint
371+
tools/gradle -q :app:lint \
372+
|| return
373+
365374
flutter build apk \
366375
|| return
367376

0 commit comments

Comments
 (0)