-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
129 lines (101 loc) · 4.43 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
122
123
124
125
126
127
128
129
plugins {
id 'com.android.application'
id 'kotlin-android'
id 'kotlin-android-extensions'
id 'kotlin-kapt'
}
android {
compileSdkVersion rootProject.ext.compile_sdk_version
defaultConfig {
applicationId "com.example.mygithubapp"
minSdkVersion rootProject.ext.min_sdk_version
targetSdkVersion rootProject.ext.target_sdk_version
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
buildTypes {
debug{
buildConfigField("String", "BASE_URL", base_url)
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
buildConfigField("String", "BASE_URL", base_url)
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'androidx.core:core-ktx:1.3.2'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
// JARs
implementation fileTree(dir: 'libs', include: ['*.jar'])
// Android Support Library
implementation "androidx.appcompat:appcompat:$app_compat_version"
// Constraint Layout
implementation "androidx.constraintlayout:constraintlayout:$constraint_version"
// Material Design
implementation "com.google.android.material:material:$support_library_version"
// RecyclerView
implementation "androidx.recyclerview:recyclerview:$support_library_version"
// CardView
implementation "androidx.cardview:cardview:$support_library_version"
// ViewModel and LiveData
implementation "androidx.lifecycle:lifecycle-extensions:$lifecycle_version"
// Lifecycle Annotations
kapt "androidx.lifecycle:lifecycle-compiler:$lifecycle_version"
// Multidex
implementation "androidx.multidex:multidex:2.0.1"
// Dagger
implementation "com.google.dagger:dagger:$dagger_version"
kapt "com.google.dagger:dagger-compiler:$dagger_version"
// Database
implementation "androidx.room:room-runtime:$room_version"
kapt "androidx.room:room-compiler:$room_version"
implementation "androidx.room:room-rxjava2:$room_version"
// Image
implementation "com.github.bumptech.glide:glide:$glide_version"
kapt "com.github.bumptech.glide:compiler:$glide_version"
// Networking
implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
implementation "com.squareup.retrofit2:converter-gson:$retrofit_version"
implementation "com.squareup.okhttp3:okhttp:$okhttp_version"
implementation "com.squareup.okhttp3:logging-interceptor:$okhttp_version"
implementation "com.jakewharton.retrofit:retrofit2-rxjava2-adapter:1.0.0"
// Reactive
implementation "io.reactivex.rxjava2:rxjava:$rootProject.rxjava_version"
implementation "io.reactivex.rxjava2:rxandroid:$rootProject.rxandroid_version"
// logger
implementation "com.jakewharton.timber:timber:$timber_version"
// Parser
implementation "com.google.code.gson:gson:$gson_version"
// Debugging
debugImplementation "com.amitshekhar.android:debug-db:$debug_db_version"
// Local Unit tests
testImplementation "junit:junit:$junit_version"
testImplementation "org.mockito:mockito-core:$mockito_version"
kaptTest "com.google.dagger:dagger-compiler:$dagger_version"
testImplementation "android.arch.core:core-testing:$core_testing_version"
testImplementation "org.hamcrest:hamcrest-library:$hamcrest_version"
// UI Testing
androidTestImplementation "androidx.test:runner:$test_runner_version"
androidTestImplementation "androidx.test.ext:junit:$test_ext_runner_version"
androidTestImplementation "androidx.test.espresso:espresso-core:$espresso_version"
androidTestImplementation "androidx.test.espresso:espresso-intents:$espresso_version"
androidTestImplementation "org.mockito:mockito-core:$mockito_version"
kaptAndroidTest "com.google.dagger:dagger-compiler:$dagger_version"
//Animation
implementation "com.airbnb.android:lottie:$lottieVersion"
//Circular image view
implementation "de.hdodenhof:circleimageview:$circular_image_view"
implementation 'org.ocpsoft.prettytime:prettytime:4.0.4.Final'
}