1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-09 03:37:03 +01:00

Garmin Fenix 5 Plus: Experimental support

This commit is contained in:
José Rebelo 2024-08-06 19:36:33 +01:00
parent f15f60542d
commit a96432a8a3
3 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,24 @@
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 GarminFenix5PlusCoordinator extends GarminCoordinator {
@Override
public boolean isExperimental() {
// https://codeberg.org/Freeyourgadget/Gadgetbridge/issues/3963
return true;
}
@Override
protected Pattern getSupportedDeviceName() {
return Pattern.compile("^fenix 5 Plus$");
}
@Override
public int getDeviceNameResource() {
return R.string.devicetype_garmin_fenix_5_plus;
}
}

View File

@ -53,6 +53,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.galaxy_buds.GalaxyBudsLiveDe
import nodomain.freeyourgadget.gadgetbridge.devices.galaxy_buds.GalaxyBudsProDeviceCoordinator; import nodomain.freeyourgadget.gadgetbridge.devices.galaxy_buds.GalaxyBudsProDeviceCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.epix.GarminEpixProCoordinator; import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.epix.GarminEpixProCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix5Coordinator; import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix5Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix5PlusCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix6Coordinator; import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix6Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix6SapphireCoordinator; import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix6SapphireCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix7SCoordinator; import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.fenix.GarminFenix7SCoordinator;
@ -373,6 +374,7 @@ public enum DeviceType {
VIVOMOVE_HR(GarminVivomoveHrCoordinator.class), VIVOMOVE_HR(GarminVivomoveHrCoordinator.class),
GARMIN_EPIX_PRO(GarminEpixProCoordinator.class), GARMIN_EPIX_PRO(GarminEpixProCoordinator.class),
GARMIN_FENIX_5(GarminFenix5Coordinator.class), GARMIN_FENIX_5(GarminFenix5Coordinator.class),
GARMIN_FENIX_5_PLUS(GarminFenix5PlusCoordinator.class),
GARMIN_FENIX_6(GarminFenix6Coordinator.class), GARMIN_FENIX_6(GarminFenix6Coordinator.class),
GARMIN_FENIX_6_SAPPHIRE(GarminFenix6SapphireCoordinator.class), GARMIN_FENIX_6_SAPPHIRE(GarminFenix6SapphireCoordinator.class),
GARMIN_FENIX_7S(GarminFenix7SCoordinator.class), GARMIN_FENIX_7S(GarminFenix7SCoordinator.class),

View File

@ -1542,6 +1542,7 @@
<string name="devicetype_garmin_venu_3s">Garmin Venu 3S</string> <string name="devicetype_garmin_venu_3s">Garmin Venu 3S</string>
<string name="devicetype_garmin_epix_pro">Garmin Epix Pro</string> <string name="devicetype_garmin_epix_pro">Garmin Epix Pro</string>
<string name="devicetype_garmin_fenix_5">Garmin Fenix 5</string> <string name="devicetype_garmin_fenix_5">Garmin Fenix 5</string>
<string name="devicetype_garmin_fenix_5_plus">Garmin Fenix 5 Plus</string>
<string name="devicetype_garmin_fenix_6">Garmin Fenix 6</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_6_sapphire">Garmin Fenix 6 Sapphire</string>
<string name="devicetype_garmin_fenix_7s">Garmin Fenix 7S</string> <string name="devicetype_garmin_fenix_7s">Garmin Fenix 7S</string>