mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-06-05 21:49:48 +02:00
Garmin Vívosmart 4: Initial support
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
|
}
|
@@ -29,6 +29,7 @@ package nodomain.freeyourgadget.gadgetbridge.model;
|
|||||||
|
|
||||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.bike.GarminEdgeExplore2Coordinator;
|
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.bike.GarminEdgeExplore2Coordinator;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.forerunner.GarminForerunner630Coordinator;
|
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.huami.zeppos.watches.AmazfitActive2NfcCoordinator;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.devices.huawei.huaweiwatchfit4pro.HuaweiWatchFit4ProCoordinator;
|
import nodomain.freeyourgadget.gadgetbridge.devices.huawei.huaweiwatchfit4pro.HuaweiWatchFit4ProCoordinator;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.devices.oppo.OppoEncoBuds2Coordinator;
|
import nodomain.freeyourgadget.gadgetbridge.devices.oppo.OppoEncoBuds2Coordinator;
|
||||||
@@ -552,6 +553,7 @@ public enum DeviceType {
|
|||||||
GARMIN_VIVOACTIVE_4S(GarminVivoActive4SCoordinator.class),
|
GARMIN_VIVOACTIVE_4S(GarminVivoActive4SCoordinator.class),
|
||||||
GARMIN_VIVOACTIVE_5(GarminVivoActive5Coordinator.class),
|
GARMIN_VIVOACTIVE_5(GarminVivoActive5Coordinator.class),
|
||||||
GARMIN_VIVOACTIVE_HR(GarminVivoActiveHrCoordinator.class),
|
GARMIN_VIVOACTIVE_HR(GarminVivoActiveHrCoordinator.class),
|
||||||
|
GARMIN_VIVOSMART_4(GarminVivosmart4Coordinator.class),
|
||||||
GARMIN_VIVOSMART_5(GarminVivosmart5Coordinator.class),
|
GARMIN_VIVOSMART_5(GarminVivosmart5Coordinator.class),
|
||||||
GARMIN_VIVOSPORT(GarminVivosportCoordinator.class),
|
GARMIN_VIVOSPORT(GarminVivosportCoordinator.class),
|
||||||
GREE_AC(GreeAcCoordinator.class),
|
GREE_AC(GreeAcCoordinator.class),
|
||||||
|
@@ -1868,6 +1868,7 @@
|
|||||||
<string name="devicetype_garmin_vivoactive_4s">Garmin Vívoactive 4S</string>
|
<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_5">Garmin Vívoactive 5</string>
|
||||||
<string name="devicetype_garmin_vivoactive_hr">Garmin Vívoactive HR</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_vivosmart_5">Garmin Vívosmart 5</string>
|
||||||
<string name="devicetype_garmin_vivosport">Garmin Vívosport</string>
|
<string name="devicetype_garmin_vivosport">Garmin Vívosport</string>
|
||||||
<string name="devicetype_gree_ac">Gree Air Conditioner</string>
|
<string name="devicetype_gree_ac">Gree Air Conditioner</string>
|
||||||
|
Reference in New Issue
Block a user