@@ -23,6 +23,7 @@ buildscript {
23
23
}
24
24
apply plugin : ' com.android.application'
25
25
apply plugin : ' kotlin-android'
26
+ apply plugin : ' kotlin-android-extensions'
26
27
apply plugin : ' kotlin-kapt'
27
28
apply plugin : ' idea'
28
29
@@ -62,23 +63,26 @@ def getCustomProguardFiles() {
62
63
return fileTree(dir : " proguard" , include : [" *.pro" ]). asList(). toArray()
63
64
}
64
65
66
+ // workaround for Kotlin coverage in Android Studio 3
67
+ // see https://stackoverflow.com/questions/45819700/android-studio-3-0-gradle-3-0-0-beta2-breaks-kotlin-unit-test-coverage
68
+ task copyTestClasses (type : Copy ) {
69
+ from " build/tmp/kotlin-classes/developDebug"
70
+ into " build/intermediates/classes/develop/debug"
71
+ }
72
+
65
73
android {
66
74
compileSdkVersion 25
67
75
buildToolsVersion ' 26.0.2'
68
76
defaultConfig {
69
77
minSdkVersion 16
70
78
targetSdkVersion 25
71
- versionCode 32
72
- versionName " 2.5.1 "
79
+ versionCode 33
80
+ versionName " 2.5.2 "
73
81
testInstrumentationRunner " android.support.test.runner.AndroidJUnitRunner"
74
82
applicationId " es.usc.citius.servando.calendula"
75
83
multiDexEnabled true
76
84
}
77
85
78
- dexOptions {
79
- javaMaxHeapSize " 2g"
80
- }
81
-
82
86
packagingOptions {
83
87
exclude ' LICENSE.txt'
84
88
}
@@ -115,6 +119,7 @@ android {
115
119
debug {
116
120
debuggable true
117
121
minifyEnabled false
122
+ testCoverageEnabled true
118
123
}
119
124
beta {
120
125
minifyEnabled false
@@ -134,12 +139,14 @@ android {
134
139
develop {
135
140
applicationIdSuffix " .dev"
136
141
dimension " buildType"
142
+ minSdkVersion 21
137
143
}
138
144
product {
139
145
dimension " buildType"
140
146
}
141
147
ci {
142
148
dimension " buildType"
149
+ minSdkVersion 21
143
150
}
144
151
}
145
152
@@ -155,150 +162,153 @@ dependencies {
155
162
156
163
/* ********* DEBUGGING **********/
157
164
// Chrome debug bridge
158
- debugCompile ' com.facebook.stetho:stetho:1.5.0'
165
+ debugImplementation ' com.facebook.stetho:stetho:1.5.0'
159
166
160
167
// Memory leak debugging
161
168
// 1.5.2 held back because of a bug with gradle 3.0
162
- debugCompile ' com.squareup.leakcanary:leakcanary-android:1.5.1'
163
- releaseCompile ' com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
164
- alphaCompile ' com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
165
- betaCompile ' com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
166
- testCompile ' com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
167
- androidTestCompile ' com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
169
+ debugImplementation ' com.squareup.leakcanary:leakcanary-android:1.5.1'
170
+ releaseImplementation ' com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
171
+ alphaImplementation ' com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
172
+ betaImplementation ' com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
173
+ testImplementation ' com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
174
+ androidTestImplementation ' com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
168
175
169
176
/* ********* SUPPORT **********/
170
177
// Multidex support
171
- compile ' com.android.support:multidex:1.0.2'
178
+ implementation ' com.android.support:multidex:1.0.2'
172
179
173
180
// Support libs
174
- compile " com.android.support:appcompat-v7:$libVersions . android . support "
175
- compile " com.android.support:cardview-v7:$libVersions . android . support "
176
- compile " com.android.support:design:$libVersions . android . support "
177
- compile " com.android.support:gridlayout-v7:$libVersions . android . support "
178
- compile " com.android.support:palette-v7:$libVersions . android . support "
179
- compile " com.android.support:preference-v7:$libVersions . android . support "
180
- compile " com.android.support:recyclerview-v7:$libVersions . android . support "
181
- compile " com.android.support:support-annotations:$libVersions . android . support "
182
- compile " com.android.support:support-v4:$libVersions . android . support "
181
+ implementation " com.android.support:appcompat-v7:$libVersions . android . support "
182
+ implementation " com.android.support:cardview-v7:$libVersions . android . support "
183
+ implementation " com.android.support:design:$libVersions . android . support "
184
+ implementation " com.android.support:gridlayout-v7:$libVersions . android . support "
185
+ implementation " com.android.support:palette-v7:$libVersions . android . support "
186
+ implementation " com.android.support:preference-v7:$libVersions . android . support "
187
+ implementation " com.android.support:recyclerview-v7:$libVersions . android . support "
188
+ implementation " com.android.support:support-annotations:$libVersions . android . support "
189
+ implementation " com.android.support:support-v4:$libVersions . android . support "
190
+ implementation " com.android.support:preference-v14:$libVersions . android . support "
183
191
184
192
// Testing dependencies
185
193
// Made explicit to avoid conflicts with other testing libs
186
- androidTestCompile " com.android.support:appcompat-v7:$libVersions . android . support "
187
- androidTestCompile " com.android.support:design:$libVersions . android . support "
188
- androidTestCompile " com.android.support:recyclerview-v7:$libVersions . android . support "
189
- androidTestCompile " com.android.support:support-annotations:$libVersions . android . support "
190
- androidTestCompile " com.android.support:support-v4:$libVersions . android . support "
194
+ androidTestImplementation " com.android.support:appcompat-v7:$libVersions . android . support "
195
+ androidTestImplementation " com.android.support:design:$libVersions . android . support "
196
+ androidTestImplementation " com.android.support:recyclerview-v7:$libVersions . android . support "
197
+ androidTestImplementation " com.android.support:support-annotations:$libVersions . android . support "
198
+ androidTestImplementation " com.android.support:support-v4:$libVersions . android . support "
191
199
192
200
/* ********* TESTING **********/
193
201
// JUnit
194
- testCompile ' junit:junit:4.12'
202
+ testImplementation ' junit:junit:4.12'
195
203
196
204
// Mockito
197
- testCompile " org.mockito:mockito-core:2.8.47"
205
+ testImplementation " org.mockito:mockito-inline:2.13.0"
206
+ androidTestImplementation " org.mockito:mockito-android:2.13.0"
198
207
199
208
// Support testing
200
- androidTestCompile ' com.android.support.test.espresso:espresso-contrib:3.0.0 '
201
- androidTestCompile ' com.android.support.test.espresso:espresso-core:3.0.0 '
202
- androidTestCompile ' com.android.support.test:rules:1.0.0 '
203
- androidTestCompile ' com.android.support.test:runner:1.0.0 '
209
+ androidTestImplementation ' com.android.support.test.espresso:espresso-contrib:3.0.1 '
210
+ androidTestImplementation ' com.android.support.test.espresso:espresso-core:3.0.1 '
211
+ androidTestImplementation ' com.android.support.test:rules:1.0.1 '
212
+ androidTestImplementation ' com.android.support.test:runner:1.0.1 '
204
213
205
214
// Roboelectric
206
- testCompile " org.robolectric:robolectric:3.6.1"
207
- testCompile " org.robolectric:shadows-multidex:3.6.1"
215
+ testImplementation " org.robolectric:robolectric:3.6.1"
216
+ testImplementation " org.robolectric:shadows-multidex:3.6.1"
208
217
209
218
/* ********* UTILITIES **********/
210
219
// HTML parsing
211
- compile ' org.jsoup:jsoup:1.10.2'
220
+ implementation ' org.jsoup:jsoup:1.10.2'
212
221
213
222
// Event bus
214
- compile ' org.greenrobot:eventbus:3.0.0'
223
+ implementation ' org.greenrobot:eventbus:3.0.0'
215
224
216
225
// Jobs
217
- compile ' com.evernote:android-job:1.1.11'
226
+ implementation ' com.evernote:android-job:1.1.11'
218
227
219
228
// JSON serializing-deserializing
220
- compile ' com.google.code.gson:gson:2.8.1'
229
+ implementation ' com.google.code.gson:gson:2.8.1'
221
230
222
231
// Lang utilities
223
232
// Used for Levenshtein distance, etc
224
- compile ' org.apache.commons:commons-lang3:3.6'
225
- compile ' org.apache.commons:commons-text:1.1'
233
+ implementation ' org.apache.commons:commons-lang3:3.6'
234
+ implementation ' org.apache.commons:commons-text:1.1'
226
235
227
236
// QR code scanning
228
- compile ' com.google.zxing:core:3.3.0'
229
- compile ' com.journeyapps:zxing-android-embedded:3.5.0@aar'
237
+ implementation ' com.google.zxing:core:3.3.0'
238
+ implementation ' com.journeyapps:zxing-android-embedded:3.5.0@aar'
230
239
231
240
// Recurrence processing
232
- compile files(' libs/rfc2445.jar' )
241
+ implementation files(' libs/rfc2445.jar' )
233
242
234
243
// SQLite ORM
235
- compile ' com.j256.ormlite:ormlite-android:5.0'
244
+ implementation ' com.j256.ormlite:ormlite-android:5.0'
236
245
237
246
// Time and date handling
238
- compile ' com.fatboyindustrial.gson-jodatime-serialisers:gson-jodatime-serialisers:1.6.0'
239
- compile ' joda-time:joda-time:2.9.7'
247
+ implementation ' com.fatboyindustrial.gson-jodatime-serialisers:gson-jodatime-serialisers:1.6.0'
248
+ implementation ' joda-time:joda-time:2.9.7'
240
249
241
250
// View/resource binding
242
251
kapt ' com.jakewharton:butterknife-compiler:8.8.1'
243
- compile ' com.jakewharton:butterknife:8.8.1'
252
+ implementation ' com.jakewharton:butterknife:8.8.1'
244
253
245
254
/* ********* VIEWS AND VIEW UTILITIES **********/
246
255
// About page with libraries
247
- compile (' com.mikepenz:aboutlibraries:5.2.5@aar' ) {
256
+ implementation (' com.mikepenz:aboutlibraries:5.2.5@aar' ) {
248
257
transitive = true
249
258
}
250
259
251
260
// Calendar views
252
- compile ' com.roomorama:caldroid:3.0.1'
253
- compile ' com.squareup:android-times-square:1.6.4@aar'
261
+ implementation ' com.roomorama:caldroid:3.0.1'
262
+ implementation ' com.squareup:android-times-square:1.6.4@aar'
254
263
255
264
// Circular progress "pie" view
256
265
// Used for pill picker
257
- compile ' com.github.filippudak.progresspieview:library:1.0.4'
266
+ implementation ' com.github.filippudak.progresspieview:library:1.0.4'
258
267
259
268
// Dialogs with material style
260
- compile ' com.github.javiersantos:MaterialStyledDialogs:2.0'
269
+ implementation ' com.github.javiersantos:MaterialStyledDialogs:2.0'
261
270
262
271
// GIF ImageView
263
- compile ' pl.droidsonroids.gif:android-gif-drawable:1.2.3'
272
+ implementation ' pl.droidsonroids.gif:android-gif-drawable:1.2.3'
264
273
265
274
// Icons
266
- compile ' com.mikepenz:community-material-typeface:1.9.32.2@aar'
267
- compile ' com.mikepenz:google-material-typeface:2.1.2.1@aar'
268
- compile ' com.mikepenz:iconics-core:2.7.1@aar'
275
+ implementation ' com.mikepenz:community-material-typeface:1.9.32.2@aar'
276
+ implementation ' com.mikepenz:google-material-typeface:2.1.2.1@aar'
277
+ implementation ' com.mikepenz:iconics-core:2.7.1@aar'
269
278
270
279
// Image loading
271
- compile ' com.squareup.picasso:picasso:2.5.2'
280
+ implementation ' com.squareup.picasso:picasso:2.5.2'
272
281
273
282
// Intro slides
274
- compile ' com.heinrichreimersoftware:material-intro:1.5.8'
283
+ implementation ' com.heinrichreimersoftware:material-intro:1.5.8'
275
284
276
285
// Material style utilities
277
- compile (' com.mikepenz:materialize:0.2.7@aar' ) {
286
+ implementation (' com.mikepenz:materialize:0.2.7@aar' ) {
278
287
transitive = true
279
288
}
280
289
281
290
// Picker DialogFragments
282
- compile ' com.code-troopers.betterpickers:library:3.1.0'
291
+ implementation ' com.code-troopers.betterpickers:library:3.1.0'
283
292
284
293
// Round image view
285
- compile ' com.makeramen:roundedimageview:1.5.0'
294
+ implementation ' com.makeramen:roundedimageview:1.5.0'
286
295
287
296
// Tab strip
288
- compile ' com.astuetz:pagerslidingtabstrip:1.0.1'
297
+ implementation ' com.astuetz:pagerslidingtabstrip:1.0.1'
289
298
290
299
// Sliding left drawer
291
- compile (' com.mikepenz:materialdrawer:4.4.1@aar' ) {
300
+ implementation (' com.mikepenz:materialdrawer:4.4.1@aar' ) {
292
301
transitive = true
293
302
}
294
303
295
304
// Recyclerview adapters
296
- compile (' com.mikepenz:fastadapter:2.1.5@aar' ) {
305
+ implementation (' com.mikepenz:fastadapter:2.1.5@aar' ) {
297
306
transitive = true
298
307
}
299
- compile ' com.mikepenz:fastadapter-commons:2.1.0@aar'
300
- compile ' com.mikepenz:fastadapter-extensions:2.1.0@aar'
301
- compile " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
308
+ implementation ' com.mikepenz:fastadapter-commons:2.1.0@aar'
309
+ implementation ' com.mikepenz:fastadapter-extensions:2.1.0@aar'
310
+ implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
302
311
303
312
304
313
}
314
+
0 commit comments