mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-13 02:21:14 +01:00
27 lines
598 B
Java
27 lines
598 B
Java
|
package nodomain.freeyourgadget.gadgetbridge;
|
||
|
|
||
|
public class GBEnvironment {
|
||
|
private boolean localTest;
|
||
|
private boolean deviceTest;
|
||
|
|
||
|
public static GBEnvironment createLocalTestEnvironment() {
|
||
|
GBEnvironment env = new GBEnvironment();
|
||
|
env.localTest = true;
|
||
|
return env;
|
||
|
}
|
||
|
|
||
|
public static GBEnvironment createDeviceEnvironment() {
|
||
|
GBEnvironment env = new GBEnvironment();
|
||
|
return env;
|
||
|
}
|
||
|
|
||
|
public final boolean isTest() {
|
||
|
return localTest || deviceTest;
|
||
|
}
|
||
|
|
||
|
public boolean isLocalTest() {
|
||
|
return localTest;
|
||
|
}
|
||
|
|
||
|
}
|