2015-04-12 11:54:29 +00:00
|
|
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
|
|
|
|
|
|
buildscript {
|
2020-06-10 14:33:17 +00:00
|
|
|
ext.kotlin_version = '1.3.72'
|
2020-01-13 09:53:24 +00:00
|
|
|
ext.build_tools_version = '29.0.0'
|
2018-08-08 14:21:26 +00:00
|
|
|
ext.sdk_version = 28
|
2017-10-08 16:31:48 +00:00
|
|
|
|
2015-04-12 11:54:29 +00:00
|
|
|
repositories {
|
2017-10-26 13:52:12 +00:00
|
|
|
google()
|
2018-10-30 20:38:57 +00:00
|
|
|
jcenter()
|
2017-10-03 13:19:05 +00:00
|
|
|
maven { url "https://plugins.gradle.org/m2/" }
|
2015-04-12 11:54:29 +00:00
|
|
|
}
|
|
|
|
|
dependencies {
|
2020-06-05 09:25:42 +00:00
|
|
|
classpath 'com.android.tools.build:gradle:4.0.0'
|
2017-10-03 13:19:05 +00:00
|
|
|
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
|
2020-01-13 09:53:24 +00:00
|
|
|
classpath 'com.google.gms:google-services:4.3.3'
|
|
|
|
|
classpath "io.realm:realm-gradle-plugin:6.0.2"
|
2017-10-03 13:19:05 +00:00
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
2019-10-08 12:12:39 +00:00
|
|
|
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.1.0"
|
2019-04-17 07:37:05 +00:00
|
|
|
classpath "android.arch.navigation:navigation-safe-args-gradle-plugin:1.0.0"
|
2019-08-06 09:44:21 +00:00
|
|
|
classpath 'com.google.firebase:perf-plugin:1.3.1'
|
2015-04-12 11:54:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2015-06-20 18:40:53 +00:00
|
|
|
|
2017-10-03 13:19:05 +00:00
|
|
|
apply plugin: 'io.gitlab.arturbosch.detekt'
|
|
|
|
|
|
2015-06-20 18:40:53 +00:00
|
|
|
allprojects {
|
|
|
|
|
repositories {
|
2017-10-26 13:52:12 +00:00
|
|
|
google()
|
2018-10-30 20:38:57 +00:00
|
|
|
jcenter()
|
2017-10-03 13:19:05 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
detekt {
|
2019-10-08 12:12:39 +00:00
|
|
|
input = files("Habitica/src/main/java")
|
|
|
|
|
config = files("detekt.yml")
|
|
|
|
|
reports {
|
|
|
|
|
xml {
|
|
|
|
|
enabled = true // Enable/Disable XML report (default: true)
|
|
|
|
|
destination = file("build/reports/detekt.xml") // Path where XML report will be stored (default: `build/reports/detekt/detekt.xml`)
|
|
|
|
|
}
|
|
|
|
|
html {
|
|
|
|
|
enabled = true // Enable/Disable HTML report (default: true)
|
|
|
|
|
destination = file("build/reports/detekt.html") // Path where HTML report will be stored (default: `build/reports/detekt/detekt.html`)
|
|
|
|
|
}
|
|
|
|
|
txt {
|
|
|
|
|
enabled = true // Enable/Disable TXT report (default: true)
|
|
|
|
|
destination = file("build/reports/detekt.txt") // Path where TXT report will be stored (default: `build/reports/detekt/detekt.txt`)
|
|
|
|
|
}
|
2015-06-20 18:40:53 +00:00
|
|
|
}
|
|
|
|
|
}
|