forked from TheTurok/smash-ranks-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
154 lines (122 loc) · 4.87 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
// Fabric
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
//noinspection GradleDynamicVersion
classpath 'io.fabric.tools:gradle:1.+'
}
}
// Android
apply plugin: 'com.android.application'
// Kotlin
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
// Fabric
apply plugin: 'io.fabric'
// Fabric
repositories {
maven { url 'https://maven.fabric.io/public' }
}
android {
compileSdkVersion 28
buildToolsVersion "28.0.3"
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
defaultConfig {
minSdkVersion 21
targetSdkVersion 28
versionCode 20001
versionName "2.0.1"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
aaptOptions {
cruncherEnabled false
}
testOptions {
unitTests {
includeAndroidResources = true
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
testImplementation "junit:junit:4.12"
// Kotlin
// https://kotlinlang.org/docs/reference/using-gradle.html
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
// Kotlin Reflection (only for tests)
// https://kotlinlang.org/docs/reference/using-gradle.html
testImplementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
// Android Architecture Components - ViewModel and LiveData
// https://developer.android.com/jetpack/androidx/releases/lifecycle
implementation "androidx.lifecycle:lifecycle-extensions:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-common-java8:$lifecycle_version"
// Android Architecture Components - WorkManager
// https://developer.android.com/jetpack/androidx/releases/work
implementation "androidx.work:work-runtime:$workmanager_version"
// AndroidX AppCompat
// https://developer.android.com/jetpack/androidx/releases/appcompat
implementation "androidx.appcompat:appcompat:$appcompat_version"
// AndroidX CardView
// https://developer.android.com/jetpack/androidx/releases/cardview
implementation "androidx.cardview:cardview:$cardview_version"
// AndroidX ConstraintLayout
// https://developer.android.com/jetpack/androidx/releases/constraintlayout
implementation "androidx.constraintlayout:constraintlayout:$constraintlayout_version"
// AndroidX Palette
// https://developer.android.com/jetpack/androidx/releases/palette
implementation "androidx.palette:palette:$palette_version"
// AndroidX RecyclerView
// https://developer.android.com/jetpack/androidx/releases/recyclerview
implementation "androidx.recyclerview:recyclerview:$recyclerview_version"
// AndroidX Test
// https://developer.android.com/jetpack/androidx/releases/test
testImplementation "androidx.test:core:$testcore_version"
// Facebook's Fresco
// https://github.com/facebook/fresco
implementation "com.facebook.fresco:fresco:$fresco_version"
implementation "com.facebook.fresco:imagepipeline-okhttp3:$fresco_version"
// Google's Material Design Library
// https://material.io/develop/android/
implementation "com.google.android.material:material:$material_design_version"
// Koin
// https://github.com/InsertKoinIO/koin
implementation "org.koin:koin-android:$koin_version"
implementation "org.koin:koin-androidx-viewmodel:$koin_version"
testImplementation "org.koin:koin-test:$koin_version"
// Robolectric
// https://github.com/robolectric/robolectric
testImplementation "org.robolectric:robolectric:$robolectric_version"
// RxJava
// https://github.com/ReactiveX/RxJava
implementation "io.reactivex.rxjava2:rxjava:$rx_java_version"
// Square's Moshi
// https://github.com/square/moshi
implementation "com.squareup.moshi:moshi:$moshi_version"
kapt "com.squareup.moshi:moshi-kotlin-codegen:$moshi_version"
// Square's OkHttp
// https://github.com/square/okhttp
implementation "com.squareup.okhttp3:okhttp:$okhttp_version"
// Square's Retrofit
// https://github.com/square/retrofit
implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
implementation "com.squareup.retrofit2:adapter-rxjava2:$retrofit_version"
implementation "com.squareup.retrofit2:converter-moshi:$retrofit_version"
// Fabric
// https://fabric.io/kits/android/crashlytics/update
implementation("com.crashlytics.sdk.android:crashlytics:$crashlytics_version@aar") {
transitive = true
}
// Annoying fix for compile error: "error cannot access nullable"
implementation "com.google.code.findbugs:jsr305:3.0.2"
}