1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-23 18:02:15 -05:00

Configure 'developer mode' via BuildConfig

This commit is contained in:
cketti 2015-01-03 08:29:45 +01:00
parent 2f832e5fa4
commit 147db8cc5e
2 changed files with 5 additions and 1 deletions

View File

@ -49,11 +49,15 @@ android {
if (project.hasProperty('storeFile')) { if (project.hasProperty('storeFile')) {
signingConfig signingConfigs.release signingConfig signingConfigs.release
} }
buildConfigField "boolean", "DEVELOPER_MODE", "false"
} }
debug { debug {
applicationIdSuffix ".debug" applicationIdSuffix ".debug"
testCoverageEnabled rootProject.testCoverage testCoverageEnabled rootProject.testCoverage
buildConfigField "boolean", "DEVELOPER_MODE", "true"
} }
} }

View File

@ -127,7 +127,7 @@ public class K9 extends Application {
* It should NEVER be on for Market builds * It should NEVER be on for Market builds
* Right now, it just governs strictmode * Right now, it just governs strictmode
**/ **/
public static boolean DEVELOPER_MODE = true; public static boolean DEVELOPER_MODE = BuildConfig.DEVELOPER_MODE;
/** /**