small stuff

This commit is contained in:
Mike Schwörer 2018-10-20 19:10:10 +02:00
parent 38eaa0c132
commit 39fcddfaf0
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF
4 changed files with 4 additions and 3 deletions

View File

@ -21,8 +21,9 @@ public class SCNApp extends Application implements LifecycleObserver
private static SCNApp instance; private static SCNApp instance;
private static WeakReference<MainActivity> mainActivity; private static WeakReference<MainActivity> mainActivity;
public static final boolean DEBUG = BuildConfig.DEBUG || !BuildConfig.VERSION_NAME.endsWith(".0"); public static final boolean LOCAL_DEBUG = BuildConfig.DEBUG;
public static final boolean RELEASE = !DEBUG; public static final boolean DEBUG = BuildConfig.DEBUG || !BuildConfig.VERSION_NAME.endsWith(".0");
public static final boolean RELEASE = !DEBUG;
private static boolean isBackground = true; private static boolean isBackground = true;

View File

@ -19,7 +19,7 @@ import okhttp3.ResponseBody;
public class ServerCommunication public class ServerCommunication
{ {
public static final String BASE_URL = "https://scn.blackforestbytes.com/"; public static final String BASE_URL = SCNApp.LOCAL_DEBUG ? "localhost:1010/" : "https://scn.blackforestbytes.com/";
private static final OkHttpClient client = new OkHttpClient(); private static final OkHttpClient client = new OkHttpClient();

Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 KiB

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 107 KiB