aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'OpenKeychain/build.gradle')
-rw-r--r--OpenKeychain/build.gradle18
1 files changed, 18 insertions, 0 deletions
diff --git a/OpenKeychain/build.gradle b/OpenKeychain/build.gradle
index 6fe71540c..2a0779125 100644
--- a/OpenKeychain/build.gradle
+++ b/OpenKeychain/build.gradle
@@ -11,6 +11,18 @@ dependencies {
compile 'com.android.support:recyclerview-v7:22.1.0'
compile 'com.android.support:cardview-v7:22.1.0'
+ // UI testing libs
+ androidTestCompile 'com.android.support.test:runner:0.2'
+ androidTestCompile 'com.android.support.test:rules:0.2'
+ androidTestCompile 'com.android.support.test.espresso:espresso-core:2.1'
+ androidTestCompile 'com.android.support.test.espresso:espresso-contrib:2.1'
+
+ // Temporary workaround for bug: https://code.google.com/p/android-test-kit/issues/detail?id=136
+ // from https://github.com/googlesamples/android-testing/blob/master/build.gradle#L21
+ configurations.all {
+ resolutionStrategy.force 'com.android.support:support-annotations:22.1.1'
+ }
+
// JCenter etc.
compile 'com.eftimoff:android-patternview:1.0.1@aar'
compile 'com.journeyapps:zxing-android-embedded:2.3.0@aar'
@@ -85,6 +97,8 @@ android {
defaultConfig {
minSdkVersion 15
targetSdkVersion 22
+
+ testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
compileOptions {
@@ -135,6 +149,10 @@ android {
dexOptions {
preDexLibraries = false
}
+
+ packagingOptions {
+ exclude 'LICENSE.txt'
+ }
}
// NOTE: This disables Lint!