diff --git a/android/build.gradle b/android/build.gradle index fe3a0c3b..0a7d80e4 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -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'