Skip to content

Commit

Permalink
chore: setup Detekt
Browse files Browse the repository at this point in the history
  • Loading branch information
pereyrarg11 committed Nov 25, 2023
1 parent be5bd74 commit ae8be97
Show file tree
Hide file tree
Showing 3 changed files with 795 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ plugins {
id("com.google.firebase.appdistribution")
// Crashlytics Gradle plugin
id("com.google.firebase.crashlytics")
// Detekt
id("io.gitlab.arturbosch.detekt")
}

android {
Expand Down Expand Up @@ -141,6 +143,13 @@ dependencies {
implementation("com.google.firebase:firebase-crashlytics")
}

detekt {
// TODO: set Detekt version as constant in buildSrc
toolVersion = "1.23.3"
config.setFrom(file("../config/detekt/detekt.yml"))
buildUponDefaultConfig = true
}

fun getSigningPropertiesByFlavorName(flavorName: String): Properties {
val signingPropertiesFile = rootProject.file("signing/$flavorName/signing.properties")
val properties = Properties()
Expand Down
3 changes: 3 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ plugins {
id("com.google.firebase.appdistribution") version "4.0.1" apply false
// Crashlytics Gradle plugin
id("com.google.firebase.crashlytics") version "2.9.9" apply false
// Detekt
// TODO: set Detekt version as constant in buildSrc
id("io.gitlab.arturbosch.detekt") version "1.23.3" apply false
}
Loading

0 comments on commit ae8be97

Please sign in to comment.