mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Garmin Instinct Solar Tactical: Initial support
This commit is contained in:
+41
@@ -0,0 +1,41 @@
|
||||
package nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.instinct;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import nodomain.freeyourgadget.gadgetbridge.R;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.GarminWatchCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice;
|
||||
|
||||
public class GarminInstinctSolarTacticalCoordinator extends GarminWatchCoordinator {
|
||||
@Override
|
||||
protected Pattern getSupportedDeviceName() {
|
||||
return Pattern.compile("^Instinct Solar Tac$");
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getDeviceNameResource() {
|
||||
return R.string.devicetype_garmin_instinct_solar_tactical;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsTrainingLoad(@NonNull final GBDevice device) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsHrvMeasurement(@NonNull final GBDevice device) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsRespiratoryRate(@NonNull final GBDevice device) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsVO2Max(@NonNull final GBDevice device) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -141,6 +141,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.instinct.Garm
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.instinct.GarminInstinctCrossoverCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.instinct.GarminInstinctECoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.instinct.GarminInstinctSolarCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.instinct.GarminInstinctSolarTacticalCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.instinct.GarminInstinctTacticalCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.lily.GarminLily2ActiveCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.lily.GarminLily2Coordinator;
|
||||
@@ -687,6 +688,7 @@ public enum DeviceType {
|
||||
GARMIN_INSTINCT(GarminInstinctCoordinator.class),
|
||||
GARMIN_INSTINCT_SOLAR(GarminInstinctSolarCoordinator.class),
|
||||
GARMIN_INSTINCT_TACTICAL(GarminInstinctTacticalCoordinator.class),
|
||||
GARMIN_INSTINCT_SOLAR_TACTICAL(GarminInstinctSolarTacticalCoordinator.class),
|
||||
GARMIN_INSTINCT_2(GarminInstinct2Coordinator.class),
|
||||
GARMIN_INSTINCT_2S(GarminInstinct2SCoordinator.class),
|
||||
GARMIN_INSTINCT_2S_SOLAR(GarminInstinct2SSolarCoordinator.class),
|
||||
|
||||
@@ -1974,6 +1974,7 @@
|
||||
<string name="devicetype_garmin_inReach_mini_2" translatable="false">Garmin inReach Mini 2</string>
|
||||
<string name="devicetype_garmin_instinct" translatable="false">Garmin Instinct</string>
|
||||
<string name="devicetype_garmin_instinct_solar" translatable="false">Garmin Instinct Solar</string>
|
||||
<string name="devicetype_garmin_instinct_solar_tactical" translatable="false">Garmin Instinct Solar Tactical</string>
|
||||
<string name="devicetype_garmin_instinct_2" translatable="false">Garmin Instinct 2</string>
|
||||
<string name="devicetype_garmin_instinct_2s" translatable="false">Garmin Instinct 2S</string>
|
||||
<string name="devicetype_garmin_instinct_2s_solar" translatable="false">Garmin Instinct 2S Solar</string>
|
||||
|
||||
+1
@@ -57,6 +57,7 @@ public class AbstractDeviceCoordinatorTest extends TestBase {
|
||||
put("GPSMAP 66S", DeviceType.GARMIN_GPSMAP_66S); // matrix
|
||||
put("GPSMAP 66S #1234512345", DeviceType.GARMIN_GPSMAP_66S); // matrix
|
||||
put("Instinct Tactical", DeviceType.GARMIN_INSTINCT_TACTICAL);
|
||||
put("Instinct Solar Tac", DeviceType.GARMIN_INSTINCT_SOLAR_TACTICAL); // #5764
|
||||
put("Xiaomi Smart Band 10 8C9F", DeviceType.MIBAND10);
|
||||
put("Venu X1", DeviceType.GARMIN_VENU_X1);
|
||||
put("Redmi Watch 5 163A", DeviceType.REDMIWATCH5);
|
||||
|
||||
Reference in New Issue
Block a user