generated from nimblehq/android-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
121 lines (97 loc) · 4.23 KB
/
build.gradle
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
build_gradle_version = '7.4.2'
android_version_code = 1
android_version_name = "0.1.0"
android_min_sdk_version = 21
android_target_sdk_version = 28
android_compile_sdk_version = 31
// Dependencies (Alphabet sorted)
android_legacy_support_version = '1.0.0'
android_support_version = '1.1.0'
android_ktx_version = '1.3.1'
android_material = '1.3.0-alpha02'
arch_component_version = '2.2.0-rc02'
blurry_version = '3.0.0'
bouncycastle_version = '1.56'
circle_indicator_version = '2.1.4'
constraint_layout_version = '2.0.1'
firebase_analytics_version = '17.5.0'
fragment_ktx_version = '1.2.0'
glide_version = '4.11.0'
gson_version = '2.8.6'
google_service_version = '4.3.14'
hilt_version = '2.40.1'
hilt_androidx_version = '1.0.0-alpha01'
kotlin_version = '1.6.21'
lottie_version = '3.3.0'
moshi_jsonapi_version = '3.5.0'
moshi_version = '1.11.0'
multidex_version = '2.0.1'
nav_version = '2.4.1'
okhttp_version = '4.9.0'
permission_dispatcher_version = '4.3.0'
play_service_version = '12.0.1'
retrofit_version = '2.9.0'
room_version = "2.2.5"
rxandroid_version = '2.1.1'
rxjava_version = '2.2.19'
rxbinding_version = '3.0.0'
rxkotlin_version = '2.2.0'
sdp_android_version = "1.0.6"
shimmer_version = '0.5.0'
ssp_android_version = "1.0.6"
test_core_version = '1.3.0'
test_espresso_version = '3.3.0'
test_ext_junit_version = "1.1.2"
test_ext_truth_version = '1.3.0-rc01'
test_junit_version = '4.13'
test_kluent_version = '1.36'
test_mockito_kotlin_version = '2.1.0'
test_mockwebserver_version = '4.9.0'
test_robolectric_version = '4.4'
test_runner_version = '1.3.0'
timber_log_version = '4.7.1'
}
repositories {
google()
jcenter()
}
dependencies {
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version"
classpath "com.google.gms:google-services:$google_service_version"
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.15.0-RC1"
}
allprojects {
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
mavenCentral()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
detekt {
failFast = true // fail build on any finding
buildUponDefaultConfig = true // preconfigure defaults
config = files("$projectDir/config/detekt.yml") // point to your custom config defining rules to run, overwriting default behavior
baseline = file("$projectDir/config/baseline.xml") // a way of suppressing issues before introducing detekt
reports {
html.enabled = true // observe findings in your browser with structure and code snippets
xml.enabled = true // checkstyle like format mainly for integrations like Jenkins
txt.enabled = true // similar to the console output, contains issue signature to manually edit baseline files
}
}
// Groovy dsl
tasks.detekt.jvmTarget = "1.8"