mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-22 04:18:27 +00:00
require user to type 'espresso' at the warning prompt
// FREEBIE
This commit is contained in:
parent
d6a970133e
commit
a0246836a8
32
build.gradle
32
build.gradle
@ -245,22 +245,24 @@ if (propFile.canRead()){
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (project.hasProperty('espresso') && System.console() != null) {
|
if (project.hasProperty('espresso') && System.console() != null) {
|
||||||
println '____________________WARNING_____________________'
|
println "____________________WARNING_____________________"
|
||||||
println 'ALL YOUR CONTACTS WILL BE DELETED IN THE PROCESS'
|
println "ALL YOUR CONTACTS WILL BE DELETED IN THE PROCESS"
|
||||||
println 'OF RUNNING THESE TESTS, TYPE ENTER TO CONTINUE'
|
println "OF RUNNING THESE TESTS, TYPE 'espresso' TO CONTINUE"
|
||||||
System.console().readLine(':')
|
|
||||||
|
|
||||||
android.productFlavors {
|
def input = System.console().readLine(':')
|
||||||
base {}
|
if (input == 'espresso') {
|
||||||
espresso {
|
android.productFlavors {
|
||||||
testInstrumentationRunner "org.thoughtcrime.securesms.TextSecureWakingTestRunner"
|
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']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
android.sourceSets.espresso {
|
|
||||||
manifest.srcFile 'test/espresso/AndroidManifest.xml'
|
|
||||||
}
|
|
||||||
android.sourceSets.androidTestEspresso {
|
|
||||||
java.srcDirs = ['test/androidTestEspresso/java']
|
|
||||||
res.srcDirs = ['test/androidTestEspresso/res']
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user