Created switches for disabling alpha/beta testing code.

This commit is contained in:
akwizgran
2014-04-30 13:40:31 +01:00
parent 7ce5903c17
commit 4aae062ea7
7 changed files with 50 additions and 19 deletions

View File

@@ -0,0 +1,25 @@
package org.briarproject.android;
import static java.util.logging.Level.INFO;
import java.util.logging.Level;
interface TestingConstants {
/** Default log level - this should be OFF for release builds. */
Level DEFAULT_LOG_LEVEL = INFO;
/**
* Whether to prevent screenshots from being taken. This should be true for
* release builds, to prevent Recent Apps from storing screenshots of
* private information. Unfortunately this also prevents the user from
* taking screenshots intentionally.
*/
boolean PREVENT_SCREENSHOTS = false;
/**
* Whether to allow TestingActivity to be launched from SettingsActivity.
* This should be false for release builds.
*/
boolean SHOW_TESTING_ACTIVITY = true;
}