mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-25 01:39:49 +00:00
1) warn user that espresso tests delete contacts
2) don't leak verification code in logs // FREEBIE
This commit is contained in:

committed by
Moxie Marlinspike

parent
26f77bd00f
commit
d6a970133e
@@ -244,7 +244,12 @@ if (propFile.canRead()){
|
||||
android.buildTypes.release.signingConfig = null
|
||||
}
|
||||
|
||||
if (project.hasProperty('espresso')) {
|
||||
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 ENTER TO CONTINUE'
|
||||
System.console().readLine(':')
|
||||
|
||||
android.productFlavors {
|
||||
base {}
|
||||
espresso {
|
||||
@@ -258,4 +263,4 @@ if (project.hasProperty('espresso')) {
|
||||
java.srcDirs = ['test/androidTestEspresso/java']
|
||||
res.srcDirs = ['test/androidTestEspresso/res']
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user