forked from nimblehq/android-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
106 lines (85 loc) · 2.94 KB
/
build.gradle
File metadata and controls
106 lines (85 loc) · 2.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
build_gradle_version = '4.0.1'
android_version_code = 1
android_version_name = "0.1.0"
android_min_sdk_version = 19
android_target_sdk_version = 28
android_compile_sdk_version = 28
// Dependencies (Alphabet sorted)
android_legacy_support_version = '1.0.0'
android_support_version = '1.1.0'
android_ktx_version = '1.0.1'
fragment_ktx_version = '1.2.0'
android_material = '1.1.0-alpha02'
arch_component_version = '2.2.0-rc02'
constraint_layout_version = '2.0.0-alpha3'
glide_version = '4.8.0'
gson_version = '2.4'
hilt_version = '2.28-alpha'
hilt_androidx_version = '1.0.0-alpha01'
kotlin_version = '1.3.61'
moshi_version = '1.6.0'
multidex_version = '2.0.1'
okhttp_version = '3.7.0'
permission_dispatcher_version = '4.3.0'
play_service_version = '12.0.1'
retrofit_version = '2.4.0'
rxandroid_version = '2.0.1'
rxjava_version = '2.1.4'
rxbinding_version = '2.1.1'
test_junit_version = '4.12'
test_kluent_version = '1.36'
test_mockito_version = '0.3.1'
test_runner_version = '1.1.1'
timber_log_version = '3.1.0'
}
repositories {
google()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:$build_gradle_version"
classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
plugins {
id "io.gitlab.arturbosch.detekt" version "1.14.0"
}
allprojects {
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
mavenCentral()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
detekt {
toolVersion = "1.14.0"
input = files("app/src/main/java", "app/src/main/kotlin", "data/src/main/kotlin", "data/src/main/java")
parallel = false
config = files("detekt-config.yml")
buildUponDefaultConfig = false
disableDefaultRuleSets = false
debug = false
ignoreFailures = false
ignoredBuildTypes = ["release"]
ignoredFlavors = ["production"]
reports {
xml {
enabled = true
destination = file("build/reports/detekt.xml")
}
html {
enabled = true
destination = file("build/reports/detekt.html")
}
}
}