Add DependencyGuard to check release runtime dependencies

This commit is contained in:
Wolf-Martell Montwé 2024-01-12 15:39:19 +01:00
parent d02c7c0a45
commit e809756c55
No known key found for this signature in database
GPG key ID: 6D45B21512ACBF72
2 changed files with 7 additions and 0 deletions

View file

@ -1,5 +1,6 @@
plugins {
id(ThunderbirdPlugins.App.android)
alias(libs.plugins.dependency.guard)
}
val testCoverageEnabled: Boolean by extra
@ -164,3 +165,7 @@ android {
}
}
}
dependencyGuard {
configuration("releaseRuntimeClasspath")
}

View file

@ -41,6 +41,7 @@ glide = "4.16.0"
moshi = "1.15.0"
mockito = "5.8.0"
forkhandlesBom = "2.12.2.0"
pluginDependencyGuard = "0.4.3"
[plugins]
android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
@ -53,6 +54,7 @@ kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
spotless = "com.diffplug.spotless:6.23.3"
detekt = "io.gitlab.arturbosch.detekt:1.23.4"
dependency-check = "com.github.ben-manes.versions:0.50.0"
dependency-guard = { id = "com.dropbox.dependency-guard", version.ref = "pluginDependencyGuard" }
[libraries]
desugar = "com.android.tools:desugar_jdk_libs:2.0.4"