mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Moondrop Space Travel 2 Ultra: Initial support
This commit is contained in:
+33
@@ -0,0 +1,33 @@
|
|||||||
|
/* Copyright (C) 2026 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.moondrop;
|
||||||
|
|
||||||
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
|
import nodomain.freeyourgadget.gadgetbridge.R;
|
||||||
|
|
||||||
|
public class MoondropSpaceTravel2UltraCoordinator extends MoondropSpaceTravel2Coordinator {
|
||||||
|
@Override
|
||||||
|
protected Pattern getSupportedDeviceName() {
|
||||||
|
return Pattern.compile("Space Travel 2 Ultra");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getDeviceNameResource() {
|
||||||
|
return R.string.devicetype_moondrop_space_travel_2_ultra;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -347,6 +347,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.mijia_lywsd.MijiaXmwsdj04Coo
|
|||||||
import nodomain.freeyourgadget.gadgetbridge.devices.miscale.MiCompositionScaleCoordinator;
|
import nodomain.freeyourgadget.gadgetbridge.devices.miscale.MiCompositionScaleCoordinator;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.devices.miscale.MiSmartScaleCoordinator;
|
import nodomain.freeyourgadget.gadgetbridge.devices.miscale.MiSmartScaleCoordinator;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.devices.moondrop.MoondropSpaceTravel2Coordinator;
|
import nodomain.freeyourgadget.gadgetbridge.devices.moondrop.MoondropSpaceTravel2Coordinator;
|
||||||
|
import nodomain.freeyourgadget.gadgetbridge.devices.moondrop.MoondropSpaceTravel2UltraCoordinator;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.devices.moondrop.MoondropSpaceTravelCoordinator;
|
import nodomain.freeyourgadget.gadgetbridge.devices.moondrop.MoondropSpaceTravelCoordinator;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.devices.moyoung.AdvanWatchSE1AICoordinator;
|
import nodomain.freeyourgadget.gadgetbridge.devices.moyoung.AdvanWatchSE1AICoordinator;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.devices.moyoung.BlackviewR60Coordinator;
|
import nodomain.freeyourgadget.gadgetbridge.devices.moyoung.BlackviewR60Coordinator;
|
||||||
@@ -834,6 +835,7 @@ public enum DeviceType {
|
|||||||
SOUNDCORE_SPORT_X20(SoundcoreSportX20Coordinator.class),
|
SOUNDCORE_SPORT_X20(SoundcoreSportX20Coordinator.class),
|
||||||
MOONDROP_SPACE_TRAVEL(MoondropSpaceTravelCoordinator.class),
|
MOONDROP_SPACE_TRAVEL(MoondropSpaceTravelCoordinator.class),
|
||||||
MOONDROP_SPACE_TRAVEL_2(MoondropSpaceTravel2Coordinator.class),
|
MOONDROP_SPACE_TRAVEL_2(MoondropSpaceTravel2Coordinator.class),
|
||||||
|
MOONDROP_SPACE_TRAVEL_2_ULTRA(MoondropSpaceTravel2UltraCoordinator.class),
|
||||||
BOSE_QC35(QC35Coordinator.class),
|
BOSE_QC35(QC35Coordinator.class),
|
||||||
ONEMORE_SONOFLOW(OneMoreSonoFlowCoordinator.class),
|
ONEMORE_SONOFLOW(OneMoreSonoFlowCoordinator.class),
|
||||||
HONORBAND3(HonorBand3Coordinator.class),
|
HONORBAND3(HonorBand3Coordinator.class),
|
||||||
|
|||||||
@@ -2151,6 +2151,7 @@
|
|||||||
<string name="devicetype_pixel_buds_a_series" translatable="false">Pixel Buds A-Series</string>
|
<string name="devicetype_pixel_buds_a_series" translatable="false">Pixel Buds A-Series</string>
|
||||||
<string name="devicetype_moondrop_space_travel" translatable="false">Moondrop Space Travel</string>
|
<string name="devicetype_moondrop_space_travel" translatable="false">Moondrop Space Travel</string>
|
||||||
<string name="devicetype_moondrop_space_travel_2" translatable="false">Moondrop Space Travel 2</string>
|
<string name="devicetype_moondrop_space_travel_2" translatable="false">Moondrop Space Travel 2</string>
|
||||||
|
<string name="devicetype_moondrop_space_travel_2_ultra" translatable="false">Moondrop Space Travel 2 Ultra</string>
|
||||||
<string name="devicetype_binary_sensor">Binary sensor</string>
|
<string name="devicetype_binary_sensor">Binary sensor</string>
|
||||||
<string name="devicetype_honor_band3" translatable="false">Honor Band 3</string>
|
<string name="devicetype_honor_band3" translatable="false">Honor Band 3</string>
|
||||||
<string name="devicetype_honor_band4" translatable="false">Honor Band 4</string>
|
<string name="devicetype_honor_band4" translatable="false">Honor Band 4</string>
|
||||||
|
|||||||
+1
@@ -135,6 +135,7 @@ public class AbstractDeviceCoordinatorTest extends TestBase {
|
|||||||
put("vívomove Trend", DeviceType.GARMIN_VIVOMOVE_TREND); // #3875
|
put("vívomove Trend", DeviceType.GARMIN_VIVOMOVE_TREND); // #3875
|
||||||
put("fenix 5", DeviceType.GARMIN_FENIX_5); // #3869
|
put("fenix 5", DeviceType.GARMIN_FENIX_5); // #3869
|
||||||
put("Forerunner 255S", DeviceType.GARMIN_FORERUNNER_255S); // #3841
|
put("Forerunner 255S", DeviceType.GARMIN_FORERUNNER_255S); // #3841
|
||||||
|
put("Space Travel 2 Ultra", DeviceType.MOONDROP_SPACE_TRAVEL_2_ULTRA); // matrix
|
||||||
put("Venu 2", DeviceType.GARMIN_VENU_2); // #3835
|
put("Venu 2", DeviceType.GARMIN_VENU_2); // #3835
|
||||||
put("Venu 4 45mm", DeviceType.GARMIN_VENU_4); // #5461
|
put("Venu 4 45mm", DeviceType.GARMIN_VENU_4); // #5461
|
||||||
put("Venu 4 - 45mm", DeviceType.GARMIN_VENU_4); // matrix
|
put("Venu 4 - 45mm", DeviceType.GARMIN_VENU_4); // matrix
|
||||||
|
|||||||
Reference in New Issue
Block a user