[Debug] Make debug mode for debug build

This commit is contained in:
Kacper Ziubryniewicz 2019-10-26 15:04:11 +02:00
parent 3e99c111bd
commit ca10ee2fe5

View File

@ -231,7 +231,7 @@ public class App extends androidx.multidex.MultiDexApplication {
e.printStackTrace(); e.printStackTrace();
} }
if ("f054761fbdb6a238".equals(deviceId)) { if ("f054761fbdb6a238".equals(deviceId) || BuildConfig.DEBUG) {
devMode = true; devMode = true;
} }
else if (appConfig.devModePassword != null) { else if (appConfig.devModePassword != null) {
@ -710,12 +710,8 @@ public class App extends androidx.multidex.MultiDexApplication {
public void checkDevModePassword() { public void checkDevModePassword() {
try { try {
if (Utils.AESCrypt.decrypt("nWFVxY65Pa8/aRrT7EylNAencmOD+IxUY2Gg/beiIWY=", appConfig.devModePassword).equals("ok here you go it's enabled now")) { devMode = Utils.AESCrypt.decrypt("nWFVxY65Pa8/aRrT7EylNAencmOD+IxUY2Gg/beiIWY=", appConfig.devModePassword).equals("ok here you go it's enabled now")
devMode = true; || BuildConfig.DEBUG;
}
else {
devMode = false;
}
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
devMode = false; devMode = false;