Garmin Fenix 6S Sapphire / Venu Sq 2: Initial support

This commit is contained in:
José Rebelo 2024-10-13 13:39:43 +01:00
parent 92004ce4de
commit d47a08479d
4 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,18 @@
package nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix;
import java.util.regex.Pattern;
import nodomain.freeyourgadget.gadgetbridge.R;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.GarminCoordinator;
public class GarminFenix6SSapphireCoordinator extends GarminCoordinator {
@Override
protected Pattern getSupportedDeviceName() {
return Pattern.compile("^fenix 6S Sapphire$");
}
@Override
public int getDeviceNameResource() {
return R.string.devicetype_garmin_fenix_6s_sapphire;
}
}

View File

@ -0,0 +1,18 @@
package nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.venu;
import java.util.regex.Pattern;
import nodomain.freeyourgadget.gadgetbridge.R;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.GarminCoordinator;
public class GarminVenuSq2Coordinator extends GarminCoordinator {
@Override
protected Pattern getSupportedDeviceName() {
return Pattern.compile("^Venu Sq 2$");
}
@Override
public int getDeviceNameResource() {
return R.string.devicetype_garmin_venu_sq_2;
}
}

View File

@ -60,6 +60,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminF
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix5PlusCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix5XPlusCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix6Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix6SSapphireCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix6SapphireCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix7ProCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix7SCoordinator;
@ -87,6 +88,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.swim.GarminSw
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.venu.GarminVenu2Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.venu.GarminVenu2PlusCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.venu.GarminVenu2SCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.venu.GarminVenuSq2Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.venu.GarminVenu3Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.venu.GarminVenu3SCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.venu.GarminVenuCoordinator;
@ -411,6 +413,7 @@ public enum DeviceType {
GARMIN_FENIX_5X_PLUS(GarminFenix5XPlusCoordinator.class),
GARMIN_FENIX_6(GarminFenix6Coordinator.class),
GARMIN_FENIX_6_SAPPHIRE(GarminFenix6SapphireCoordinator.class),
GARMIN_FENIX_6S_SAPPHIRE(GarminFenix6SSapphireCoordinator.class),
GARMIN_FENIX_7S(GarminFenix7SCoordinator.class),
GARMIN_FENIX_7_PRO(GarminFenix7ProCoordinator.class),
GARMIN_FENIX_8(GarminFenix8Coordinator.class),
@ -438,6 +441,7 @@ public enum DeviceType {
GARMIN_VIVOMOVE_TREND(GarminVivomoveTrendCoordinator.class),
GARMIN_VENU(GarminVenuCoordinator.class),
GARMIN_VENU_SQ(GarminVenuSqCoordinator.class),
GARMIN_VENU_SQ_2(GarminVenuSq2Coordinator.class),
GARMIN_VENU_2(GarminVenu2Coordinator.class),
GARMIN_VENU_2S(GarminVenu2SCoordinator.class),
GARMIN_VENU_2_PLUS(GarminVenu2PlusCoordinator.class),

View File

@ -1722,6 +1722,7 @@
<string name="devicetype_garmin_vivomove_trend">Garmin Vívomove Trend</string>
<string name="devicetype_garmin_venu">Garmin Venu</string>
<string name="devicetype_garmin_venu_sq">Garmin Venu Sq</string>
<string name="devicetype_garmin_venu_sq_2">Garmin Venu Sq 2</string>
<string name="devicetype_garmin_venu_2">Garmin Venu 2</string>
<string name="devicetype_garmin_venu_2_plus">Garmin Venu 2 Plus</string>
<string name="devicetype_garmin_venu_2s">Garmin Venu 2S</string>
@ -1734,6 +1735,7 @@
<string name="devicetype_garmin_fenix_5x_plus">Garmin Fenix 5X Plus</string>
<string name="devicetype_garmin_fenix_6">Garmin Fenix 6</string>
<string name="devicetype_garmin_fenix_6_sapphire">Garmin Fenix 6 Sapphire</string>
<string name="devicetype_garmin_fenix_6s_sapphire">Garmin Fenix 6S Sapphire</string>
<string name="devicetype_garmin_fenix_7s">Garmin Fenix 7S</string>
<string name="devicetype_garmin_fenix_7_pro">Garmin Fenix 7 Pro</string>
<string name="devicetype_garmin_fenix_8">Garmin Fenix 8</string>