From 147db8cc5e258e19bc66c35b0c1c68592594a364 Mon Sep 17 00:00:00 2001 From: cketti Date: Sat, 3 Jan 2015 08:29:45 +0100 Subject: [PATCH] Configure 'developer mode' via BuildConfig --- k9mail/build.gradle | 4 ++++ k9mail/src/main/java/com/fsck/k9/K9.java | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/k9mail/build.gradle b/k9mail/build.gradle index 59d8577c8..8e935d7b7 100644 --- a/k9mail/build.gradle +++ b/k9mail/build.gradle @@ -49,11 +49,15 @@ android { if (project.hasProperty('storeFile')) { signingConfig signingConfigs.release } + + buildConfigField "boolean", "DEVELOPER_MODE", "false" } debug { applicationIdSuffix ".debug" testCoverageEnabled rootProject.testCoverage + + buildConfigField "boolean", "DEVELOPER_MODE", "true" } } diff --git a/k9mail/src/main/java/com/fsck/k9/K9.java b/k9mail/src/main/java/com/fsck/k9/K9.java index c4b51b4f3..87fa1237d 100644 --- a/k9mail/src/main/java/com/fsck/k9/K9.java +++ b/k9mail/src/main/java/com/fsck/k9/K9.java @@ -127,7 +127,7 @@ public class K9 extends Application { * It should NEVER be on for Market builds * Right now, it just governs strictmode **/ - public static boolean DEVELOPER_MODE = true; + public static boolean DEVELOPER_MODE = BuildConfig.DEVELOPER_MODE; /**