mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Garmin Descent G1: Initial support
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
package nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.descent;
|
||||
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import nodomain.freeyourgadget.gadgetbridge.R;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.GarminWatchCoordinator;
|
||||
|
||||
public class GarminDescentG1Coordinator extends GarminWatchCoordinator {
|
||||
@Override
|
||||
protected Pattern getSupportedDeviceName() {
|
||||
return Pattern.compile("^Descent G1$");
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getDeviceNameResource() {
|
||||
return R.string.devicetype_garmin_descent_g1;
|
||||
}
|
||||
}
|
||||
@@ -77,6 +77,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.garmin.hrm.GarminHrmProPlusC
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.gps.GarminETrexSeCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.gps.GarminInReachMini2;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.hrm.GarminHrm200Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.descent.GarminDescentG1Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.descent.GarminDescentG2Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.descent.GarminDescentMk3Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.enduro.GarminEnduro3Coordinator;
|
||||
@@ -641,6 +642,7 @@ public enum DeviceType {
|
||||
GARMIN_EPIX(GarminEpixCoordinator.class),
|
||||
GARMIN_EPIX_PRO(GarminEpixProCoordinator.class),
|
||||
GARMIN_DESCENT_MK3(GarminDescentMk3Coordinator.class),
|
||||
GARMIN_DESCENT_G1(GarminDescentG1Coordinator.class),
|
||||
GARMIN_DESCENT_G2(GarminDescentG2Coordinator.class),
|
||||
GARMIN_FENIX_3(GarminFenix3Coordinator.class),
|
||||
GARMIN_FENIX_3_HR(GarminFenix3HrCoordinator.class),
|
||||
|
||||
@@ -1976,6 +1976,7 @@
|
||||
<string name="devicetype_garmin_tactix_7" translatable="false">Garmin Tactix 7</string>
|
||||
<string name="devicetype_garmin_tactix_8" translatable="false">Garmin Tactix 8</string>
|
||||
<string name="devicetype_garmin_descent_mk3" translatable="false">Garmin Descent Mk3</string>
|
||||
<string name="devicetype_garmin_descent_g1" translatable="false">Garmin Descent G1</string>
|
||||
<string name="devicetype_garmin_descent_g2" translatable="false">Garmin Descent G2</string>
|
||||
<string name="devicetype_garmin_inReach_mini_2" translatable="false">Garmin inReach Mini 2</string>
|
||||
<string name="devicetype_garmin_instinct" translatable="false">Garmin Instinct</string>
|
||||
|
||||
+1
@@ -64,6 +64,7 @@ public class AbstractDeviceCoordinatorTest extends TestBase {
|
||||
put("Venu X1", DeviceType.GARMIN_VENU_X1);
|
||||
put("Redmi Watch 5 163A", DeviceType.REDMIWATCH5);
|
||||
put("Descent Mk3 43mm", DeviceType.GARMIN_DESCENT_MK3);
|
||||
put("Descent G1", DeviceType.GARMIN_DESCENT_G1); // #5915
|
||||
put("Descent G2", DeviceType.GARMIN_DESCENT_G2);
|
||||
put("Active 2 NFC (Round)-4B84", DeviceType.AMAZFITACTIVE2NFC);
|
||||
put("Redmi Buds 6 Pro", DeviceType.REDMIBUDS6PRO);
|
||||
|
||||
Reference in New Issue
Block a user