File tree 2 files changed +16
-0
lines changed
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,13 @@ android {
72
72
signingConfigs. release : signingConfigs. debug
73
73
}
74
74
}
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
+ }
75
82
}
76
83
77
84
tasks. withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile ). configureEach {
Original file line number Diff line number Diff line change @@ -362,6 +362,15 @@ run_android() {
362
362
files_check android/ \
363
363
|| return 0
364
364
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
+
365
374
flutter build apk \
366
375
|| return
367
376
You can’t perform that action at this time.
0 commit comments