mirror of
https://github.com/oxen-io/session-android.git
synced 2025-04-28 09:20:47 +00:00
require user to type 'espresso' at the warning prompt
// FREEBIE
This commit is contained in:
parent
d6a970133e
commit
a0246836a8
10
build.gradle
10
build.gradle
@ -245,11 +245,12 @@ 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(':')
|
|
||||||
|
|
||||||
|
def input = System.console().readLine(':')
|
||||||
|
if (input == 'espresso') {
|
||||||
android.productFlavors {
|
android.productFlavors {
|
||||||
base {}
|
base {}
|
||||||
espresso {
|
espresso {
|
||||||
@ -264,3 +265,4 @@ if (project.hasProperty('espresso') && System.console() != null) {
|
|||||||
res.srcDirs = ['test/androidTestEspresso/res']
|
res.srcDirs = ['test/androidTestEspresso/res']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user