Configure 'developer mode' via BuildConfig
This commit is contained in:
parent
2f832e5fa4
commit
147db8cc5e
2 changed files with 5 additions and 1 deletions
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue