mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-30 14:02:56 +01:00
Colmi R0x: Add support for Colmi R10
This commit is contained in:
parent
2398dd0fbe
commit
25dc3f972b
@ -0,0 +1,38 @@
|
|||||||
|
/* 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.colmi;
|
||||||
|
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
|
import nodomain.freeyourgadget.gadgetbridge.R;
|
||||||
|
|
||||||
|
public class ColmiR10Coordinator extends AbstractColmiR0xCoordinator {
|
||||||
|
private static final Logger LOG = LoggerFactory.getLogger(ColmiR10Coordinator.class);
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected Pattern getSupportedDeviceName() {
|
||||||
|
return Pattern.compile("^COLMI R10_.*");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getDeviceNameResource() {
|
||||||
|
return R.string.devicetype_colmi_r10;
|
||||||
|
}
|
||||||
|
}
|
@ -41,6 +41,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.cmfwatchpro.CmfWatchProCoord
|
|||||||
import nodomain.freeyourgadget.gadgetbridge.devices.colmi.ColmiR02Coordinator;
|
import nodomain.freeyourgadget.gadgetbridge.devices.colmi.ColmiR02Coordinator;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.devices.colmi.ColmiR03Coordinator;
|
import nodomain.freeyourgadget.gadgetbridge.devices.colmi.ColmiR03Coordinator;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.devices.colmi.ColmiR06Coordinator;
|
import nodomain.freeyourgadget.gadgetbridge.devices.colmi.ColmiR06Coordinator;
|
||||||
|
import nodomain.freeyourgadget.gadgetbridge.devices.colmi.ColmiR10Coordinator;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.devices.cycling_sensor.coordinator.CyclingSensorCoordinator;
|
import nodomain.freeyourgadget.gadgetbridge.devices.cycling_sensor.coordinator.CyclingSensorCoordinator;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.devices.divoom.PixooCoordinator;
|
import nodomain.freeyourgadget.gadgetbridge.devices.divoom.PixooCoordinator;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.devices.domyos.DomyosT540Coordinator;
|
import nodomain.freeyourgadget.gadgetbridge.devices.domyos.DomyosT540Coordinator;
|
||||||
@ -533,6 +534,7 @@ public enum DeviceType {
|
|||||||
COLMI_R02(ColmiR02Coordinator.class),
|
COLMI_R02(ColmiR02Coordinator.class),
|
||||||
COLMI_R03(ColmiR03Coordinator.class),
|
COLMI_R03(ColmiR03Coordinator.class),
|
||||||
COLMI_R06(ColmiR06Coordinator.class),
|
COLMI_R06(ColmiR06Coordinator.class),
|
||||||
|
COLMI_R10(ColmiR10Coordinator.class),
|
||||||
SCANNABLE(ScannableDeviceCoordinator.class),
|
SCANNABLE(ScannableDeviceCoordinator.class),
|
||||||
CYCLING_SENSOR(CyclingSensorCoordinator.class),
|
CYCLING_SENSOR(CyclingSensorCoordinator.class),
|
||||||
BLE_GATT_CLIENT(BleGattClientCoordinator.class),
|
BLE_GATT_CLIENT(BleGattClientCoordinator.class),
|
||||||
|
@ -1869,6 +1869,7 @@
|
|||||||
<string name="devicetype_colmi_r02">Colmi R02</string>
|
<string name="devicetype_colmi_r02">Colmi R02</string>
|
||||||
<string name="devicetype_colmi_r03">Colmi R03</string>
|
<string name="devicetype_colmi_r03">Colmi R03</string>
|
||||||
<string name="devicetype_colmi_r06">Colmi R06</string>
|
<string name="devicetype_colmi_r06">Colmi R06</string>
|
||||||
|
<string name="devicetype_colmi_r10">Colmi R10</string>
|
||||||
<string name="choose_auto_export_location">Choose export location</string>
|
<string name="choose_auto_export_location">Choose export location</string>
|
||||||
<string name="notification_channel_name">General</string>
|
<string name="notification_channel_name">General</string>
|
||||||
<string name="notification_channel_high_priority_name">High-priority</string>
|
<string name="notification_channel_high_priority_name">High-priority</string>
|
||||||
|
Loading…
Reference in New Issue
Block a user