Improve the excludes for AndroidTest

This commit is contained in:
ligi 2017-04-10 15:24:59 +02:00
parent 5ca84140bd
commit b3c29e2b8a
No known key found for this signature in database
GPG key ID: 8E81894010ABF23D

View file

@ -101,6 +101,18 @@ android {
}
}
configurations {
// http://stackoverflow.com/questions/30578243/why-would-adding-espresso-contrib-cause-an-inflateexception
androidTestCompile.exclude group: 'com.android.support', module: 'appcompat-v7'
androidTestCompile.exclude group: 'com.android.support', module: 'design'
androidTestCompile.exclude group: 'com.android.support', module: 'support-v4'
androidTestCompile.exclude group: 'com.android.support', module: 'support-annotations'
androidTestCompile.exclude group: 'com.android.support', module: 'preference-v7'
androidTestCompile.exclude module: 'recyclerview-v7'
androidTestCompile.exclude module: 'kotlin-stdlib'
}
dependencies {
compile "com.google.dagger:dagger:$dagger_version"
kapt "com.google.dagger:dagger-compiler:$dagger_version"
@ -113,18 +125,9 @@ dependencies {
kaptAndroidTest "com.google.dagger:dagger-compiler:$dagger_version"
androidTestCompile "com.android.support:support-annotations:$support_version"
androidTestCompile('com.github.ligi:trulesk:0.19') {
// http://stackoverflow.com/questions/30578243/why-would-adding-espresso-contrib-cause-an-inflateexception
exclude group: 'javax.inject'
}
androidTestCompile 'com.github.ligi:trulesk:0.19'
androidTestCompile('com.android.support.test.espresso:espresso-contrib:2.2.2') {
// http://stackoverflow.com/questions/30578243/why-would-adding-espresso-contrib-cause-an-inflateexception
exclude group: 'com.android.support', module: 'appcompat'
exclude group: 'com.android.support', module: 'support-v4'
exclude group: 'javax.inject'
exclude module: 'recyclerview-v7'
}
androidTestCompile 'com.android.support.test.espresso:espresso-contrib:2.2.2'
androidTestCompile 'com.squareup.assertj:assertj-android:1.1.1'