diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/garmin/watches/fenix/GarminFenix6SSapphireCoordinator.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/garmin/watches/fenix/GarminFenix6SSapphireCoordinator.java new file mode 100644 index 000000000..4d5924680 --- /dev/null +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/garmin/watches/fenix/GarminFenix6SSapphireCoordinator.java @@ -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; + } +} diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/garmin/watches/venu/GarminVenuSq2Coordinator.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/garmin/watches/venu/GarminVenuSq2Coordinator.java new file mode 100644 index 000000000..b76e854de --- /dev/null +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/garmin/watches/venu/GarminVenuSq2Coordinator.java @@ -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; + } +} diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/DeviceType.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/DeviceType.java index 34d0444d4..fabcbdd46 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/DeviceType.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/DeviceType.java @@ -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), diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 2350702da..63cd7848d 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1722,6 +1722,7 @@ Garmin VĂ­vomove Trend Garmin Venu Garmin Venu Sq + Garmin Venu Sq 2 Garmin Venu 2 Garmin Venu 2 Plus Garmin Venu 2S @@ -1734,6 +1735,7 @@ Garmin Fenix 5X Plus Garmin Fenix 6 Garmin Fenix 6 Sapphire + Garmin Fenix 6S Sapphire Garmin Fenix 7S Garmin Fenix 7 Pro Garmin Fenix 8