mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
IMIKI Frame 2: Initial support
This commit is contained in:
+39
@@ -0,0 +1,39 @@
|
||||
/* Copyright (C) 2025 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.gloryfit.watches
|
||||
|
||||
import nodomain.freeyourgadget.gadgetbridge.R
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.gloryfit.GloryFitCoordinator
|
||||
import java.util.regex.Pattern
|
||||
|
||||
class ImikiFrame2Coordinator : GloryFitCoordinator() {
|
||||
override fun isExperimental(): Boolean {
|
||||
return true
|
||||
}
|
||||
|
||||
override fun getManufacturer(): String {
|
||||
return "IMIKI"
|
||||
}
|
||||
|
||||
override fun getSupportedDeviceName(): Pattern? {
|
||||
return Pattern.compile("^IMIKI FRAME 2$")
|
||||
}
|
||||
|
||||
override fun getDeviceNameResource(): Int {
|
||||
return R.string.devicetype_imiki_frame_2
|
||||
}
|
||||
}
|
||||
@@ -162,6 +162,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.generic_hr.GenericHeartRateC
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.generic_scale.GenericWeightScaleCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.gloryfit.watches.DotnP66DCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.gloryfit.watches.HaylouWatch2ProCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.gloryfit.watches.ImikiFrame2Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.gloryfit.watches.OukitelBT103Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.gloryfit.watches.Y66Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.gree.GreeAcCoordinator;
|
||||
@@ -776,6 +777,7 @@ public enum DeviceType {
|
||||
OPPO_ENCO_BUDS2(OppoEncoBuds2Coordinator.class),
|
||||
OUKITEL_BT103(OukitelBT103Coordinator.class),
|
||||
DOTN_P66D(DotnP66DCoordinator.class),
|
||||
IMIKI_FRAME_2(ImikiFrame2Coordinator.class),
|
||||
HAYLOU_WATCH_2_PRO(HaylouWatch2ProCoordinator.class),
|
||||
Y66(Y66Coordinator.class),
|
||||
REALME_BUDS_T110(RealmeBudsT110Coordinator.class),
|
||||
|
||||
@@ -4314,6 +4314,7 @@
|
||||
<string name="activity_print_label_print_size">Print size (px): %1$d x %2$d</string>
|
||||
<string name="service_notification_collector_service_title">Gadgetbridge Notification Monitor</string>
|
||||
<string name="service_notification_collector_service_text">Monitoring notifications in background</string>
|
||||
<string name="devicetype_imiki_frame_2" translatable="false">IMIKI Frame 2</string>
|
||||
<string name="devicetype_oukitel_bt103" translatable="false">Oukitel BT103</string>
|
||||
<string name="devicetype_y66" translatable="false">Y66</string>
|
||||
<string name="devicetype_haylou_watch_2_pro" translatable="false">Haylou Watch 2 Pro</string>
|
||||
|
||||
+1
@@ -34,6 +34,7 @@ public class AbstractDeviceCoordinatorTest extends TestBase {
|
||||
put("P80", DeviceType.COLMI_P80);
|
||||
put("BT103(ID-AB01)", DeviceType.OUKITEL_BT103);
|
||||
put("P66D(ID-AB01)", DeviceType.DOTN_P66D);
|
||||
put("IMIKI FRAME 2", DeviceType.IMIKI_FRAME_2);
|
||||
put("HAYLOU Watch 2 Pro", DeviceType.HAYLOU_WATCH_2_PRO);
|
||||
put("Y66(ID-AB01)", DeviceType.Y66);
|
||||
put("R11C_B200", DeviceType.YAWELL_R11);
|
||||
|
||||
Reference in New Issue
Block a user