Garmin Vívosmart 4: Initial support

This commit is contained in:
José Rebelo
2025-05-25 20:11:30 +01:00
parent 35a98dab82
commit 0bc285f174
3 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
package nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.vivosmart;
import java.util.regex.Pattern;
import nodomain.freeyourgadget.gadgetbridge.R;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.GarminWatchCoordinator;
public class GarminVivosmart4Coordinator extends GarminWatchCoordinator {
@Override
protected Pattern getSupportedDeviceName() {
return Pattern.compile("^vívosmart 4$");
}
@Override
public int getDeviceNameResource() {
return R.string.devicetype_garmin_vivosmart_4;
}
}

View File

@@ -29,6 +29,7 @@ package nodomain.freeyourgadget.gadgetbridge.model;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.bike.GarminEdgeExplore2Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.forerunner.GarminForerunner630Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.vivosmart.GarminVivosmart4Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.huami.zeppos.watches.AmazfitActive2NfcCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.huawei.huaweiwatchfit4pro.HuaweiWatchFit4ProCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.oppo.OppoEncoBuds2Coordinator;
@@ -552,6 +553,7 @@ public enum DeviceType {
GARMIN_VIVOACTIVE_4S(GarminVivoActive4SCoordinator.class),
GARMIN_VIVOACTIVE_5(GarminVivoActive5Coordinator.class),
GARMIN_VIVOACTIVE_HR(GarminVivoActiveHrCoordinator.class),
GARMIN_VIVOSMART_4(GarminVivosmart4Coordinator.class),
GARMIN_VIVOSMART_5(GarminVivosmart5Coordinator.class),
GARMIN_VIVOSPORT(GarminVivosportCoordinator.class),
GREE_AC(GreeAcCoordinator.class),

View File

@@ -1868,6 +1868,7 @@
<string name="devicetype_garmin_vivoactive_4s">Garmin Vívoactive 4S</string>
<string name="devicetype_garmin_vivoactive_5">Garmin Vívoactive 5</string>
<string name="devicetype_garmin_vivoactive_hr">Garmin Vívoactive HR</string>
<string name="devicetype_garmin_vivosmart_4">Garmin Vívosmart 4</string>
<string name="devicetype_garmin_vivosmart_5">Garmin Vívosmart 5</string>
<string name="devicetype_garmin_vivosport">Garmin Vívosport</string>
<string name="devicetype_gree_ac">Gree Air Conditioner</string>