Skip to content

Commit 60ade6b

Browse files
author
UserGreen
committed
ci: baseline existing lint errors, downgrade MissingTranslation
baseline holds the 9 error-severity findings only; warnings stay visible in reports rather than frozen.
1 parent 11d06d9 commit 60ade6b

2 files changed

Lines changed: 45 additions & 0 deletions

File tree

app/build.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ android {
8484
buildConfig = true
8585
}
8686

87+
lint {
88+
warning += "MissingTranslation"
89+
baseline = file("lint-baseline.xml")
90+
}
91+
8792
packaging {
8893
resources.excludes += "/META-INF/{AL2.0,LGPL2.1}"
8994
resources.excludes += "META-INF/versions/9/OSGI-INF/MANIFEST.MF"

app/lint-baseline.xml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?xml version='1.0' encoding='utf-8'?>
2+
<issues format="6" by="lint 8.7.3" type="baseline" client="gradle" dependencies="false" name="AGP (8.7.3)" variant="all" version="8.7.3">
3+
4+
<issue id="NewApi" message="Call requires API level 29 (current min is 26): `android.widget.TextView#setTextCursorDrawable`" errorLine1=" textCursorDrawable = cursor_drawable" errorLine2=" ~~~~~~~~~~~~~~~~~~">
5+
<location file="src/main/kotlin/org/astermail/android/ui/compose/compose_screen.kt" line="1331" column="33" />
6+
</issue>
7+
8+
<issue id="NewApi" message="Call requires API level 29 (current min is 26): `android.widget.TextView#setTextSelectHandle`" errorLine1=" setTextSelectHandle(handle_drawable)" errorLine2=" ~~~~~~~~~~~~~~~~~~~">
9+
<location file="src/main/kotlin/org/astermail/android/ui/compose/compose_screen.kt" line="1340" column="33" />
10+
</issue>
11+
12+
<issue id="NewApi" message="Call requires API level 29 (current min is 26): `android.widget.TextView#setTextSelectHandleLeft`" errorLine1=" setTextSelectHandleLeft(handle_drawable)" errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~">
13+
<location file="src/main/kotlin/org/astermail/android/ui/compose/compose_screen.kt" line="1341" column="33" />
14+
</issue>
15+
16+
<issue id="NewApi" message="Call requires API level 29 (current min is 26): `android.widget.TextView#setTextSelectHandleRight`" errorLine1=" setTextSelectHandleRight(handle_drawable)" errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~">
17+
<location file="src/main/kotlin/org/astermail/android/ui/compose/compose_screen.kt" line="1342" column="33" />
18+
</issue>
19+
20+
<issue id="NewApi" message="Field requires API level 29 (current min is 26): `android.provider.MediaStore.Downloads#EXTERNAL_CONTENT_URI`" errorLine1=" val uri = context.contentResolver.insert(MediaStore.Downloads.EXTERNAL_CONTENT_URI, values)" errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
21+
<location file="src/main/kotlin/org/astermail/android/ui/mail/mail_detail_screen.kt" line="3976" column="70" />
22+
</issue>
23+
24+
<issue id="NewApi" message="Field requires API level 29 (current min is 26): `android.provider.MediaStore.Downloads#EXTERNAL_CONTENT_URI`" errorLine1=" val uri = context.contentResolver.insert(MediaStore.Downloads.EXTERNAL_CONTENT_URI, values)" errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
25+
<location file="src/main/kotlin/org/astermail/android/ui/mail/mail_detail_screen.kt" line="4118" column="90" />
26+
</issue>
27+
28+
<issue id="ProduceStateDoesNotAssignValue" message="produceState calls should assign `value` inside the producer lambda" errorLine1=" val view_state = produceState&lt;identity_key_view?&gt;(initialValue = null, deps) {" errorLine2=" ~~~~~~~~~~~~">
29+
<location file="src/main/kotlin/org/astermail/android/ui/settings/detail/encryption_screen.kt" line="152" column="22" />
30+
</issue>
31+
32+
<issue id="ProduceStateDoesNotAssignValue" message="produceState calls should assign `value` inside the producer lambda" errorLine1=" val bitmap by produceState&lt;android.graphics.Bitmap?&gt;(initialValue = null, bytes) {" errorLine2=" ~~~~~~~~~~~~">
33+
<location file="src/main/kotlin/org/astermail/android/ui/mail/mail_detail_screen.kt" line="4007" column="39" />
34+
</issue>
35+
36+
<issue id="UnrememberedGetBackStackEntry" message="Calling getBackStackEntry during composition without using `remember` with a NavBackStackEntry key" errorLine1=" try { nav_controller.getBackStackEntry(routes.inbox) } catch (_: Throwable) { null }" errorLine2=" ~~~~~~~~~~~~~~~~~">
37+
<location file="src/main/kotlin/org/astermail/android/MainActivity.kt" line="596" column="38" />
38+
</issue>
39+
40+
</issues>

0 commit comments

Comments
 (0)