1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-09-01 03:55:47 +02:00

CMF Watch Pro 2: Experimental support

This commit is contained in:
José Rebelo 2024-07-18 22:15:36 +01:00
parent 68d8a46b65
commit 650b3ec7dd
3 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,48 @@
/* Copyright (C) 2024 José Rebelo
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.cmfwatchpro;
import java.util.regex.Pattern;
import nodomain.freeyourgadget.gadgetbridge.R;
public class CmfWatchPro2Coordinator extends CmfWatchProCoordinator {
@Override
public boolean isExperimental() {
return true;
}
@Override
protected Pattern getSupportedDeviceName() {
return Pattern.compile("^CMF Watch Pro 2(-[A-Z0-9]{4})$");
}
@Override
public int getDeviceNameResource() {
return R.string.devicetype_nothing_cmf_watch_pro_2;
}
@Override
public int getDefaultIconResource() {
return R.drawable.ic_device_watchxplus;
}
@Override
public int getDisabledIconResource() {
return R.drawable.ic_device_watchxplus_disabled;
}
}

View File

@ -36,6 +36,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.casio.gb6900.CasioGB6900Devi
import nodomain.freeyourgadget.gadgetbridge.devices.casio.gbx100.CasioGBX100DeviceCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.casio.gwb5600.CasioGMWB5000DeviceCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.casio.gwb5600.CasioGWB5600DeviceCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.cmfwatchpro.CmfWatchPro2Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.cmfwatchpro.CmfWatchProCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.cycling_sensor.coordinator.CyclingSensorCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.divoom.PixooCoordinator;
@ -403,6 +404,7 @@ public enum DeviceType {
NOTHING_EAR2(Ear2Coordinator.class),
NOTHING_EAR_STICK(EarStickCoordinator.class),
NOTHING_CMF_WATCH_PRO(CmfWatchProCoordinator.class),
NOTHING_CMF_WATCH_PRO_2(CmfWatchPro2Coordinator.class),
GALAXY_BUDS_PRO(GalaxyBudsProDeviceCoordinator.class),
GALAXY_BUDS_LIVE(GalaxyBudsLiveDeviceCoordinator.class),
GALAXY_BUDS(GalaxyBudsDeviceCoordinator.class),

View File

@ -2179,6 +2179,7 @@
<string name="devicetype_nothingear2">Nothing Ear (2)</string>
<string name="devicetype_nothingearstick">Nothing Ear (Stick)</string>
<string name="devicetype_nothing_cmf_watch_pro">CMF Watch Pro</string>
<string name="devicetype_nothing_cmf_watch_pro_2">CMF Watch Pro 2</string>
<string name="devicetype_galaxybuds">Galaxy Buds</string>
<string name="devicetype_galaxybuds_live">Galaxy Buds Live</string>
<string name="devicetype_galaxybuds_pro">Galaxy Buds Pro</string>