refactor(app): centralize lint configuration

This commit is contained in:
Harsh Shandilya 2023-03-01 17:17:09 +05:30
parent bdf81cba52
commit ff58afde28
No known key found for this signature in database
3 changed files with 17 additions and 15 deletions

View file

@ -37,17 +37,6 @@ android {
}
namespace = "app.passwordstore"
lint {
abortOnError = true
checkReleaseBuilds = false
warningsAsErrors = true
disable.add("MissingTranslation")
disable.add("PluralsCandidate")
disable.add("ImpliedQuantity")
disable.add("DialogFragmentCallbacksDetector")
baseline = file("lint-baseline.xml")
}
}
dependencies {

View file

@ -26,5 +26,22 @@
<issue id="UnusedResources">
<ignore path="src/main/res/values/bools.xml" />
<ignore path="src/main/res/values/colors_material3.xml" />
<ignore path="src/main/res/layout/map_preference_widget_switch.xml" />
</issue>
<issue id="PrivateResource">
<ignore path="src/main/res/layout/map_preference_widget_switch.xml" />
</issue>
<issue id="Deprecated">
<ignore path="src/main/res/layout/item_field.xml" />
</issue>
<issue id="VectorPath">
<ignore path="src/main/res/drawable/app_settings_alt_24px.xml" />
<ignore path="src/main/res/drawable/ic_launcher_foreground_monochrome.xml" />
<ignore path="src/main/res/drawable/ic_miscellaneous_services_24px.xml" />
<ignore path="src/main/res/drawable/ic_miscellaneous_services_24px.xml" />
</issue>
<issue id="GradleDependency" severity="ignore" />
<issue id="ReportShortcutUsage" severity="ignore" />
<issue id="MissingTranslation" severity="ignore" />
<issue id="ImpliedQuantity" severity="ignore" />
</lint>

View file

@ -1,7 +1,5 @@
[versions]
agp = "7.4.2"
# 1.8.x is being built against current DP releases
# noinspection GradleDependency
androidxActivity = "1.7.0-beta02"
bouncycastle = "1.72"
# @keep used for kotlinCompilerExtensionVersion
@ -14,8 +12,6 @@ leakcanary = "2.10"
lifecycle = "2.6.0-rc01"
[libraries]
# 2.x releases for desugar_jdk_libs are weird and broken
# noinspection GradleDependency
android-desugarJdkLibs = "com.android.tools:desugar_jdk_libs:1.2.2"
androidx-activity-compose = { module = "androidx.activity:activity-compose", version.ref = "androidxActivity" }
androidx-activity-ktx = { module = "androidx.activity:activity-ktx", version.ref = "androidxActivity" }