-
Notifications
You must be signed in to change notification settings - Fork 45
/
build.gradle
156 lines (133 loc) · 6.16 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
155
156
plugins {
id 'com.android.application'
id 'kotlin-android'
id 'kotlin-kapt'
id 'kotlin-android-extensions'
id "org.jetbrains.kotlin.plugin.allopen" version "$kotlin_version"
}
allOpen {
annotation("com.theapache64.topcorn.utils.test.OpenForTesting")
}
android {
compileSdkVersion compile_sdk_version
defaultConfig {
applicationId "com.theapache64.topcorn"
minSdkVersion min_sdk_version
targetSdkVersion target_sdk_version
versionCode 10404
versionName "1.0.4-alpha04"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
buildFeatures {
dataBinding true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
// Setting sharedTest file should be shared with both `test` and `androidTest`
sourceSets {
String sharedTestDir = 'src/sharedTest/java'
String resourceDir = 'src/sharedTest/resources'
test {
java.srcDir sharedTestDir
res.srcDirs resourceDir
}
androidTest {
java.srcDir sharedTestDir
res.srcDirs resourceDir
}
}
// Always show the result of every unit test when running via command line, even if it passes.
testOptions.unitTests {
includeAndroidResources true
returnDefaultValues true
}
}
dependencies {
//Core
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation "androidx.appcompat:appcompat:$appcompat_version"
implementation "androidx.core:core-ktx:$ktx_version"
implementation "androidx.constraintlayout:constraintlayout:$constraint_version"
implementation "com.google.android.material:material:$material_version"
implementation "androidx.activity:activity-ktx:1.2.0-alpha04"
implementation "androidx.recyclerview:recyclerview:1.2.0-alpha03"
// Coroutines
def coroutines_version = '1.3.5'
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
// Lifecycle extension
implementation "androidx.lifecycle:lifecycle-extensions:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version"
// Dagger 2
def dagger_version = '2.27'
implementation "com.google.dagger:dagger:$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"
// Retrofit
implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
implementation 'com.squareup.okhttp3:logging-interceptor:4.2.1'
implementation "com.squareup.retrofit2:adapter-rxjava2:$retrofit_version"
// Moshi
implementation 'com.squareup.moshi:moshi:1.9.2'
// MaterialColors
implementation 'com.theah64.materialcolors:materialcolors:1.0.0'
// TwinKill
def twinkill_version = '1.0.0-alpha06'
implementation "com.theapache64.twinkill:core:$twinkill_version"
implementation "com.theapache64.twinkill:logger:$twinkill_version"
implementation "com.theapache64.twinkill:network:$twinkill_version"
implementation "com.theapache64.twinkill:google_sans:$twinkill_version"
// Room
def room_version = "2.2.5"
implementation "androidx.room:room-runtime:$room_version"
implementation "androidx.room:room-ktx:$room_version"
kapt "androidx.room:room-compiler:$room_version"
// Test Support
implementation "androidx.test.espresso:espresso-idling-resource:$espresso_version"
// Test
testImplementation "junit:junit:$junit_version"
testImplementation "org.mockito:mockito-core:$mockito_version"
testImplementation "org.mockito:mockito-inline:$mockito_version"
testImplementation('com.winterbe:expekt:0.5.0') {
exclude group: "org.jetbrains.kotlin"
}
testImplementation "androidx.arch.core:core-testing:2.1.0"
testImplementation "androidx.test.ext:junit:1.1.1"
testImplementation "androidx.test.espresso:espresso-core:$espresso_version"
testImplementation "androidx.test.espresso:espresso-intents:$espresso_version"
testImplementation "androidx.test.espresso:espresso-contrib:$espresso_version"
testImplementation 'androidx.test:runner:1.2.0'
testImplementation 'androidx.test:rules:1.2.0'
testImplementation "androidx.fragment:fragment-testing:1.3.0-alpha04"
testImplementation "org.robolectric:robolectric:4.3.1"
testImplementation 'com.github.fabioCollini.daggermock:daggermock:0.8.5'
testImplementation 'com.github.fabioCollini.daggermock:daggermock-kotlin:0.8.5'
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutines_version"
androidTestImplementation "androidx.arch.core:core-testing:2.1.0"
androidTestImplementation "androidx.test.ext:junit:1.1.1"
androidTestImplementation "androidx.test.espresso:espresso-core:$espresso_version"
androidTestImplementation "androidx.test.espresso:espresso-intents:$espresso_version"
androidTestImplementation "androidx.test.espresso:espresso-contrib:$espresso_version"
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test:rules:1.2.0'
androidTestImplementation "org.mockito:mockito-core:$mockito_version"
androidTestImplementation "org.mockito:mockito-android:$mockito_version"
androidTestImplementation "androidx.fragment:fragment-testing:1.3.0-alpha04"
androidTestImplementation 'com.github.fabioCollini.daggermock:daggermock:0.8.5'
androidTestImplementation 'com.github.fabioCollini.daggermock:daggermock-kotlin:0.8.5'
androidTestImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutines_version"
}