mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2025-01-18 12:56:45 -06:00
[Debug] Make debug mode for debug build
This commit is contained in:
parent
3e99c111bd
commit
ca10ee2fe5
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user