mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-13 02:21:14 +01:00
77cad5c47f
Lots of support classes to enable local testing, without a device or an emulator.
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;
|
|
}
|
|
|
|
}
|