diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/hama/fit6900/HamaFit6900DeviceCoordinator.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/hama/fit6900/HamaFit6900DeviceCoordinator.java index b7c430c59f..5d0051dac5 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/hama/fit6900/HamaFit6900DeviceCoordinator.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/hama/fit6900/HamaFit6900DeviceCoordinator.java @@ -29,7 +29,7 @@ import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice; import nodomain.freeyourgadget.gadgetbridge.service.DeviceSupport; import nodomain.freeyourgadget.gadgetbridge.service.devices.hama.fit6900.HamaFit6900DeviceSupport; -public final class HamaFit6900DeviceCoordinator extends AbstractBLEDeviceCoordinator { +public class HamaFit6900DeviceCoordinator extends AbstractBLEDeviceCoordinator { @Override protected Pattern getSupportedDeviceName() { return Pattern.compile("^Fit6900$"); diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/xplora/XploraXmoveDeviceCoordinator.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/xplora/XploraXmoveDeviceCoordinator.java new file mode 100644 index 0000000000..850d72ab79 --- /dev/null +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/xplora/XploraXmoveDeviceCoordinator.java @@ -0,0 +1,42 @@ +/* +Copyright (C) 2024 enoint + +This file is part of Gadgetbridge. + +Gadgetbridge is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published +by the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +Gadgetbridge is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/ + +package nodomain.freeyourgadget.gadgetbridge.devices.xplora; + +import java.util.regex.Pattern; + +import nodomain.freeyourgadget.gadgetbridge.R; +import nodomain.freeyourgadget.gadgetbridge.devices.hama.fit6900.HamaFit6900DeviceCoordinator; + +public class XploraXmoveDeviceCoordinator extends HamaFit6900DeviceCoordinator { + @Override + protected Pattern getSupportedDeviceName() { + return Pattern.compile("^XMOVE$"); + } + + @Override + public String getManufacturer() { + return "Xplora"; + } + + @Override + public int getDeviceNameResource() { + return R.string.devicetype_xplora_xmove; + } +} 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 e6cc838614..3069b2d043 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/DeviceType.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/DeviceType.java @@ -196,6 +196,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.gloryfit.watches.Y66Coordina import nodomain.freeyourgadget.gadgetbridge.devices.gloryfit.watches.Y6Coordinator; import nodomain.freeyourgadget.gadgetbridge.devices.gree.GreeAcCoordinator; import nodomain.freeyourgadget.gadgetbridge.devices.hama.fit6900.HamaFit6900DeviceCoordinator; +import nodomain.freeyourgadget.gadgetbridge.devices.xplora.XploraXmoveDeviceCoordinator; import nodomain.freeyourgadget.gadgetbridge.devices.hplus.EXRIZUK8Coordinator; import nodomain.freeyourgadget.gadgetbridge.devices.hplus.HPlusCoordinator; import nodomain.freeyourgadget.gadgetbridge.devices.hplus.MakibesF68Coordinator; @@ -914,6 +915,7 @@ public enum DeviceType { FEMOMETER_VINCA2(FemometerVinca2DeviceCoordinator.class), PIXOO(PixooCoordinator.class), HAMA_FIT6900(HamaFit6900DeviceCoordinator.class), + XPLORA_XMOVE(XploraXmoveDeviceCoordinator.class), YAWELL_R05(YawellR05Coordinator.class), YAWELL_R10(YawellR10Coordinator.class), YAWELL_R11(YawellR11Coordinator.class), diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index ac25b0e975..b20cf4aaab 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -2287,6 +2287,7 @@ Bohemic Smart Bracelet Vivitar HR & BP Monitor Activity Tracker Hama Fit6900 + Xplora XMOVE Thermal Printer Garmin HRM-Pro Plus Headphones