mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-25 01:39:49 +00:00

committed by
Moxie Marlinspike

parent
2d65464c04
commit
fbc527145c
44
build.gradle
44
build.gradle
@@ -81,9 +81,16 @@ dependencies {
|
||||
compile 'org.whispersystems:textsecure-android:1.6.2'
|
||||
compile 'com.h6ah4i.android.compat:mulsellistprefcompat:1.0.0'
|
||||
|
||||
testCompile 'junit:junit:4.12'
|
||||
testCompile 'org.assertj:assertj-core:1.7.1'
|
||||
testCompile 'org.mockito:mockito-core:1.9.5'
|
||||
testCompile 'org.powermock:powermock-api-mockito:1.6.1'
|
||||
testCompile 'org.powermock:powermock-module-junit4:1.6.1'
|
||||
testCompile 'org.powermock:powermock-module-junit4-rule:1.6.1'
|
||||
testCompile 'org.powermock:powermock-classloading-xstream:1.6.1'
|
||||
|
||||
androidTestCompile 'com.google.dexmaker:dexmaker:1.2'
|
||||
androidTestCompile 'com.google.dexmaker:dexmaker-mockito:1.2'
|
||||
|
||||
androidTestCompile ('org.assertj:assertj-core:1.7.1') {
|
||||
exclude group: 'org.hamcrest', module: 'hamcrest-core'
|
||||
}
|
||||
@@ -91,13 +98,6 @@ dependencies {
|
||||
exclude group: 'org.hamcrest', module: 'hamcrest-core'
|
||||
exclude group: 'com.android.support', module: 'support-annotations'
|
||||
}
|
||||
androidTestCompile ('com.android.support.test:runner:0.2') {
|
||||
exclude group: 'com.android.support', module: 'support-annotations'
|
||||
}
|
||||
androidTestCompile ('com.android.support.test.espresso:espresso-core:2.1') {
|
||||
exclude group: 'com.android.support', module: 'support-annotations'
|
||||
exclude group: 'javax.inject'
|
||||
}
|
||||
}
|
||||
|
||||
dependencyVerification {
|
||||
@@ -162,7 +162,6 @@ android {
|
||||
minSdkVersion 9
|
||||
targetSdkVersion 22
|
||||
|
||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||
buildConfigField "long", "BUILD_TIMESTAMP", System.currentTimeMillis() + "L"
|
||||
buildConfigField "String", "PUSH_URL", "\"https://textsecure-service.whispersystems.org\""
|
||||
buildConfigField "boolean", "DEV_BUILD", "false"
|
||||
@@ -227,6 +226,9 @@ android {
|
||||
androidTest {
|
||||
java.srcDirs = ['test/androidTest/java']
|
||||
}
|
||||
test {
|
||||
java.srcDirs = ['test/unitTest/java']
|
||||
}
|
||||
}
|
||||
|
||||
lintOptions {
|
||||
@@ -265,27 +267,3 @@ if (propFile.canRead()){
|
||||
android.buildTypes.release.signingConfig = null
|
||||
}
|
||||
|
||||
if (project.hasProperty('espresso') && System.console() != null) {
|
||||
println "______________________WARNING_______________________"
|
||||
println "ALL YOUR CONTACTS WILL BE DELETED IN THE PROCESS"
|
||||
println "OF RUNNING THESE TESTS, TYPE 'delete all my contacts'"
|
||||
println "TO CONTINUE"
|
||||
println "----------------------------------------------------"
|
||||
|
||||
def input = System.console().readLine(':')
|
||||
if (input == 'delete all my contacts') {
|
||||
android.productFlavors {
|
||||
base {}
|
||||
espresso {
|
||||
testInstrumentationRunner "org.thoughtcrime.securesms.TextSecureWakingTestRunner"
|
||||
}
|
||||
}
|
||||
android.sourceSets.espresso {
|
||||
manifest.srcFile 'test/espresso/AndroidManifest.xml'
|
||||
}
|
||||
android.sourceSets.androidTestEspresso {
|
||||
java.srcDirs = ['test/androidTestEspresso/java']
|
||||
res.srcDirs = ['test/androidTestEspresso/res']
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user