feat: Add support for Colmi R07

This commit is contained in:
Qtekfun
2025-07-09 08:29:54 +02:00
parent 1717a40ad6
commit 234d057305
3 changed files with 39 additions and 0 deletions
@@ -0,0 +1,36 @@
/* Copyright (C) 2024 Arjan Schrijver
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 <https://www.gnu.org/licenses/>. */
package nodomain.freeyourgadget.gadgetbridge.devices.yawell.ring;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.regex.Pattern;
import nodomain.freeyourgadget.gadgetbridge.R;
public class ColmiR07Coordinator extends AbstractYawellRingCoordinator {
@Override
protected Pattern getSupportedDeviceName() {
return Pattern.compile("COLMI R07_.*");
}
@Override
public int getDeviceNameResource() {
return R.string.devicetype_colmi_r07;
}
}
@@ -366,6 +366,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.xwatch.XWatchCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.yawell.ring.ColmiR02Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.yawell.ring.ColmiR03Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.yawell.ring.ColmiR06Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.yawell.ring.ColmiR07Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.yawell.ring.ColmiR09Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.yawell.ring.ColmiR10Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.yawell.ring.ColmiR12Coordinator;
@@ -708,6 +709,7 @@ public enum DeviceType {
COLMI_R02(ColmiR02Coordinator.class),
COLMI_R03(ColmiR03Coordinator.class),
COLMI_R06(ColmiR06Coordinator.class),
COLMI_R07(ColmiR07Coordinator.class),
COLMI_R09(ColmiR09Coordinator.class),
COLMI_R10(ColmiR10Coordinator.class),
COLMI_R12(ColmiR12Coordinator.class),
+1
View File
@@ -2044,6 +2044,7 @@
<string name="devicetype_colmi_r02">Colmi R02</string>
<string name="devicetype_colmi_r03">Colmi R03</string>
<string name="devicetype_colmi_r06">Colmi R06</string>
<string name="devicetype_colmi_r07">Colmi R07</string>
<string name="devicetype_colmi_r09">Colmi R09</string>
<string name="devicetype_colmi_r10">Colmi R10</string>
<string name="devicetype_colmi_r12">Colmi R12</string>