mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-09-27 16:56:57 +02:00
Initial support for Garmin Swim 2
This commit is contained in:
parent
a6ae66cd90
commit
c9842f4179
@ -0,0 +1,18 @@
|
|||||||
|
package nodomain.freeyourgadget.gadgetbridge.devices.garmin.swim2;
|
||||||
|
|
||||||
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
|
import nodomain.freeyourgadget.gadgetbridge.R;
|
||||||
|
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.GarminCoordinator;
|
||||||
|
|
||||||
|
public class GarminSwim2Coordinator extends GarminCoordinator {
|
||||||
|
@Override
|
||||||
|
protected Pattern getSupportedDeviceName() {
|
||||||
|
return Pattern.compile("Swim 2");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getDeviceNameResource() {
|
||||||
|
return R.string.devicetype_garmin_swim_2;
|
||||||
|
}
|
||||||
|
}
|
@ -50,6 +50,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.galaxy_buds.GalaxyBudsDevice
|
|||||||
import nodomain.freeyourgadget.gadgetbridge.devices.galaxy_buds.GalaxyBudsLiveDeviceCoordinator;
|
import nodomain.freeyourgadget.gadgetbridge.devices.galaxy_buds.GalaxyBudsLiveDeviceCoordinator;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.devices.galaxy_buds.GalaxyBudsProDeviceCoordinator;
|
import nodomain.freeyourgadget.gadgetbridge.devices.galaxy_buds.GalaxyBudsProDeviceCoordinator;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.forerunner245.GarminForerunner245Coordinator;
|
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.forerunner245.GarminForerunner245Coordinator;
|
||||||
|
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.swim2.GarminSwim2Coordinator;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.instinctsolar.GarminInstinctSolarCoordinator;
|
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.instinctsolar.GarminInstinctSolarCoordinator;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.instinct2s.GarminInstinct2SCoordinator;
|
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.instinct2s.GarminInstinct2SCoordinator;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.instinct2solar.GarminInstinct2SolarCoordinator;
|
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.instinct2solar.GarminInstinct2SolarCoordinator;
|
||||||
@ -333,6 +334,7 @@ public enum DeviceType {
|
|||||||
NUTMINI(NutCoordinator.class),
|
NUTMINI(NutCoordinator.class),
|
||||||
VIVOMOVE_HR(VivomoveHrCoordinator.class),
|
VIVOMOVE_HR(VivomoveHrCoordinator.class),
|
||||||
GARMIN_FORERUNNER_245(GarminForerunner245Coordinator.class),
|
GARMIN_FORERUNNER_245(GarminForerunner245Coordinator.class),
|
||||||
|
GARMIN_SWIM_2(GarminSwim2Coordinator.class),
|
||||||
GARMIN_INSTINCT_SOLAR(GarminInstinctSolarCoordinator.class),
|
GARMIN_INSTINCT_SOLAR(GarminInstinctSolarCoordinator.class),
|
||||||
GARMIN_INSTINCT_2S(GarminInstinct2SCoordinator.class),
|
GARMIN_INSTINCT_2S(GarminInstinct2SCoordinator.class),
|
||||||
GARMIN_INSTINCT_2_SOLAR(GarminInstinct2SolarCoordinator.class),
|
GARMIN_INSTINCT_2_SOLAR(GarminInstinct2SolarCoordinator.class),
|
||||||
|
@ -1494,6 +1494,7 @@
|
|||||||
<string name="devicetype_garmin_instinct_2_soltac">Garmin Instinct 2 SolTac</string>
|
<string name="devicetype_garmin_instinct_2_soltac">Garmin Instinct 2 SolTac</string>
|
||||||
<string name="devicetype_garmin_instinct_crossover">Garmin Instinct Crossover</string>
|
<string name="devicetype_garmin_instinct_crossover">Garmin Instinct Crossover</string>
|
||||||
<string name="devicetype_garmin_forerunner_245">Garmin Forerunner 245</string>
|
<string name="devicetype_garmin_forerunner_245">Garmin Forerunner 245</string>
|
||||||
|
<string name="devicetype_garmin_swim_2">Garmin Swim 2</string>
|
||||||
<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_vibratissimo">Vibratissimo</string>
|
<string name="devicetype_vibratissimo">Vibratissimo</string>
|
||||||
|
Loading…
Reference in New Issue
Block a user