diff --git a/android/app/build.gradle b/android/app/build.gradle
index 529221630b..dd4178c4e9 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -72,6 +72,13 @@ android {
signingConfigs.release : signingConfigs.debug
}
}
+
+ lint {
+ // For docs on options available here:
+ // https://developer.android.com/reference/tools/gradle-api/8.5/com/android/build/api/dsl/Lint
+ checkAllWarnings = true
+ warningsAsErrors = true
+ }
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index b65a33a68a..a0f602e899 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -15,7 +15,6 @@
android:taskAffinity=""
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
- android:networkSecurityConfig="@xml/network_security_config"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
-
-
-
-
-
-
diff --git a/android/app/src/main/res/drawable/launch_background.xml b/android/app/src/main/res/drawable/launch_background.xml
index 304732f884..f74085f3f6 100644
--- a/android/app/src/main/res/drawable/launch_background.xml
+++ b/android/app/src/main/res/drawable/launch_background.xml
@@ -1,7 +1,7 @@
-
+
-
-
-
-
-
-
-
-
-
- zulipchat.com
- zulip.com
- zulip.org
-
-
-
-
-
diff --git a/tools/check b/tools/check
index 3acb65a725..48ea5615ab 100755
--- a/tools/check
+++ b/tools/check
@@ -362,6 +362,15 @@ run_android() {
files_check android/ \
|| return 0
+ # This causes `android/gradlew` to exist, for `tools/gradle` to use.
+ flutter build apk --config-only \
+ || return
+
+ # For docs on this Android linter:
+ # https://developer.android.com/studio/write/lint
+ tools/gradle -q :app:lint \
+ || return
+
flutter build apk \
|| return