refactor(app): centralize lint configuration
This commit is contained in:
parent
bdf81cba52
commit
ff58afde28
3 changed files with 17 additions and 15 deletions
|
@ -37,17 +37,6 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace = "app.passwordstore"
|
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 {
|
dependencies {
|
||||||
|
|
17
app/lint.xml
17
app/lint.xml
|
@ -26,5 +26,22 @@
|
||||||
<issue id="UnusedResources">
|
<issue id="UnusedResources">
|
||||||
<ignore path="src/main/res/values/bools.xml" />
|
<ignore path="src/main/res/values/bools.xml" />
|
||||||
<ignore path="src/main/res/values/colors_material3.xml" />
|
<ignore path="src/main/res/values/colors_material3.xml" />
|
||||||
|
<ignore path="src/main/res/layout/map_preference_widget_switch.xml" />
|
||||||
</issue>
|
</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>
|
</lint>
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
[versions]
|
[versions]
|
||||||
agp = "7.4.2"
|
agp = "7.4.2"
|
||||||
# 1.8.x is being built against current DP releases
|
|
||||||
# noinspection GradleDependency
|
|
||||||
androidxActivity = "1.7.0-beta02"
|
androidxActivity = "1.7.0-beta02"
|
||||||
bouncycastle = "1.72"
|
bouncycastle = "1.72"
|
||||||
# @keep used for kotlinCompilerExtensionVersion
|
# @keep used for kotlinCompilerExtensionVersion
|
||||||
|
@ -14,8 +12,6 @@ leakcanary = "2.10"
|
||||||
lifecycle = "2.6.0-rc01"
|
lifecycle = "2.6.0-rc01"
|
||||||
|
|
||||||
[libraries]
|
[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"
|
android-desugarJdkLibs = "com.android.tools:desugar_jdk_libs:1.2.2"
|
||||||
androidx-activity-compose = { module = "androidx.activity:activity-compose", version.ref = "androidxActivity" }
|
androidx-activity-compose = { module = "androidx.activity:activity-compose", version.ref = "androidxActivity" }
|
||||||
androidx-activity-ktx = { module = "androidx.activity:activity-ktx", version.ref = "androidxActivity" }
|
androidx-activity-ktx = { module = "androidx.activity:activity-ktx", version.ref = "androidxActivity" }
|
||||||
|
|
Loading…
Reference in a new issue