feat: add binavi air

This commit is contained in:
Michael Plattner
2026-05-13 23:33:24 +02:00
committed by José Rebelo
parent 26e162ec68
commit bad96e4f75
3 changed files with 48 additions and 0 deletions
@@ -0,0 +1,45 @@
/* Copyright (C) 2025 Vitaliy Tomin, Thomas Kuehne
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.igpsport;
import java.util.regex.Pattern;
import nodomain.freeyourgadget.gadgetbridge.R;
import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice;
public class IGPSportBiNaviAirCoordinator extends IGPSportAbstractCoordinator {
@Override
public int getDeviceNameResource() {
return R.string.devicetype_igpsport_binavi_air;
}
@Override
protected Pattern getSupportedDeviceName() {
return Pattern.compile("(?i)(?:iGPSPORT\\s*)?BiNavi[\\s_-]*Air");
}
@Override
public boolean supportsWeather(final GBDevice device) {
return true;
}
@Override
public boolean supportsMusicInfo(final GBDevice device) {
return true;
}
}
@@ -316,6 +316,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.huawei.huaweiwatchultimate.H
import nodomain.freeyourgadget.gadgetbridge.devices.huawei.huaweiwatchultimate2.HuaweiWatchUltimate2Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.id115.ID115Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.idasen.IdasenCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.igpsport.IGPSportBiNaviAirCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.igpsport.IGPSportBSC200Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.igpsport.IGPSportBSC200SCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.igpsport.IGPSportiGS630Coordinator;
@@ -951,6 +952,7 @@ public enum DeviceType {
IGPSPORT_IGS630(IGPSportiGS630Coordinator.class),
IGPSPORT_IGS630S(IGPSportiGS630SCoordinator.class),
IGPSPORT_IGS800(IGPSportiGS800Coordinator.class),
IGPSPORT_BINAVI_AIR(IGPSportBiNaviAirCoordinator.class),
TEST(TestDeviceCoordinator.class);
private DeviceCoordinator coordinator;
+1
View File
@@ -2255,6 +2255,7 @@
<string name="devicetype_igpsport_igs630" translatable="false">iGPSPORT iGS630</string>
<string name="devicetype_igpsport_igs630s" translatable="false">iGPSPORT iGS630S</string>
<string name="devicetype_igpsport_igs800" translatable="false">iGPSPORT iGS800</string>
<string name="devicetype_igpsport_binavi_air" translatable="false">iGPSPORT BiNavi Air</string>
<string name="task_installing_route">Installing route</string>
<string name="route_upload_completed">Route upload completed</string>
<string name="route_upload_failed">Route upload failed</string>