summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/build.gradle15
-rw-r--r--app/lint.xml4
2 files changed, 15 insertions, 4 deletions
diff --git a/app/build.gradle b/app/build.gradle
index a2feb40b8..2613122f5 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -31,12 +31,17 @@ android {
testApplicationId "de.test.antennapod"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- def commit = "Unknown commit"
+ def commit = ""
try {
- commit = "git rev-parse --short HEAD".execute().text.trim()
+ def hashStdOut = new ByteArrayOutputStream()
+ exec {
+ commandLine "git", "rev-parse", "--short", "HEAD"
+ standardOutput = hashStdOut
+ }
+ commit = hashStdOut.toString().trim()
} catch (Exception ignore) {
}
- buildConfigField "String", "COMMIT_HASH", ('"' + commit + '"')
+ buildConfigField "String", "COMMIT_HASH", ('"' + (commit.isEmpty() ? "Unknown commit" : commit) + '"')
if (project.hasProperty("podcastindexApiKey")) {
buildConfigField "String", "PODCASTINDEX_API_KEY", '"' + podcastindexApiKey + '"'
@@ -121,7 +126,9 @@ android {
'StaticFieldLeak', 'UseCompoundDrawables', 'NestedWeights', 'Overdraw', 'UselessParent', 'TextFields',
'AlwaysShowAction', 'Autofill', 'ClickableViewAccessibility', 'ContentDescription',
'KeyboardInaccessibleWidget', 'LabelFor', 'SetTextI18n', 'HardcodedText', 'RelativeOverlap',
- 'RtlCompat', 'RtlHardcoded', 'MissingMediaBrowserServiceIntentFilter'
+ 'RtlCompat', 'RtlHardcoded', 'MissingMediaBrowserServiceIntentFilter', 'VectorPath',
+ 'InvalidPeriodicWorkRequestInterval', 'VectorDrawableCompat'
+ checkDependencies true
warningsAsErrors true
abortOnError true
}
diff --git a/app/lint.xml b/app/lint.xml
index 20f44d155..68829306e 100644
--- a/app/lint.xml
+++ b/app/lint.xml
@@ -7,4 +7,8 @@
<issue id="RestrictedApi" severity="error">
<ignore path="build" />
</issue>
+
+ <issue id="UnusedResources" severity="error">
+ <ignore path="**/values-**/strings.xml" />
+ </issue>
</lint>