-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.gradle
More file actions
121 lines (104 loc) · 4.49 KB
/
build.gradle
File metadata and controls
121 lines (104 loc) · 4.49 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
plugins {
id 'com.android.application'
id 'kotlin-android'
id 'kotlin-android-extensions'
id 'kotlin-kapt'
id 'de.mannodermaus.android-junit5'
id 'dagger.hilt.android.plugin'
}
android {
compileSdkVersion 30
buildToolsVersion "29.0.3"
defaultConfig {
applicationId "com.example.githubfirebaseissue"
minSdkVersion 21
targetSdkVersion 30
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
// For Kotlin projects
kotlinOptions {
jvmTarget = "1.8"
}
testOptions {
unitTests.returnDefaultValues = true
junitPlatform {
filters {
engines {
include 'spek'
}
}
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.0'
api "androidx.appcompat:appcompat:$appcompat_version"
api "androidx.constraintlayout:constraintlayout:$androidx_constraint_layout_version"
api "androidx.core:core-ktx:$appcompat_version"
api "androidx.recyclerview:recyclerview:$androidx_stable_version"
api "androidx.fragment:fragment:$androidx_stable_version"
api "androidx.fragment:fragment-ktx:$ktx_fragment_version"
api "androidx.lifecycle:lifecycle-extensions:$lifecycle_version"
/* retrofit for network calls */
api "com.squareup.retrofit2:retrofit:$retrofit_version"
api "com.squareup.retrofit2:converter-gson:$retrofit_version"
api "com.squareup.retrofit2:adapter-rxjava:$retrofit_version"
api 'com.squareup.retrofit2:adapter-rxjava2:2.7.1'
api "com.squareup.okhttp3:okhttp:4.6.0"
api "com.squareup.okhttp3:logging-interceptor:$logging_interceptor_version"
api "com.github.bumptech.glide:glide:$glide_version"
kapt "com.github.bumptech.glide:compiler:$glide_version"
api "com.google.android.material:material:$android_material_version"
implementation "io.reactivex.rxjava2:rxandroid:$rxJavaVersion"
implementation "io.reactivex.rxjava2:rxjava:$rxJavaVersion"
// architecture components
implementation "android.arch.lifecycle:runtime:$arch_runtime_version"
implementation "android.arch.lifecycle:extensions:$arch_version"
implementation "android.arch.lifecycle:reactivestreams:$arch_version"
kapt "android.arch.lifecycle:compiler:$arch_version"
// gson for type converters
api "com.google.code.gson:gson:$gson_version"
//shimmer
api 'com.facebook.shimmer:shimmer:0.5.0@aar'
// dagger
implementation "com.google.dagger:dagger:$dagger_version"
implementation "com.google.dagger:dagger-android:$dagger_version"
implementation "com.google.dagger:dagger-android-support:$dagger_version"
kapt "com.google.dagger:dagger-compiler:$dagger_version"
kapt "com.google.dagger:dagger-android-processor:$dagger_version"
//testing
testImplementation "android.arch.core:core-testing:1.1.1"
androidTestImplementation 'androidx.arch.core:core-testing:2.1.0'
testImplementation "com.jraska.livedata:testing-ktx:$jraska_version"
testImplementation "junit:junit:$junit_version"
testImplementation "org.mockito:mockito-inline:$mockito_version"
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.4.1'
testImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0"
testImplementation "org.hamcrest:hamcrest-library:$hamcrest_version"
testImplementation "com.google.truth:truth:1.0"
//hilt
implementation "com.google.dagger:hilt-android:$hilt_version"
kapt "com.google.dagger:hilt-compiler:$hilt_version"
//Spek
testImplementation 'org.junit.platform:junit-platform-engine:1.6.2'
testImplementation 'org.jetbrains.spek:spek-api:1.1.5'
testImplementation 'org.spekframework.spek2:spek-dsl-jvm:2.0.6'
testImplementation 'org.spekframework.spek2:spek-runner-junit5:2.0.6'
testImplementation 'org.jetbrains.spek:spek-junit-platform-engine:1.1.5'
testImplementation 'org.junit.platform:junit-platform-runner:1.4.0'
}