José Rebelo
773132c4e1
Make all Zepp OS classes explicit
...
There are still some actual "Huami 2021" classes that are used in
non-ZeppOS devices, but this refactor improves the distinction.
2024-01-29 23:30:28 +00:00
José Rebelo
61116c5fc8
Upgrade to gradlew 7.6, mockito-core 2.28.2
...
Fixes the unit tests after the AGP upgrade from 1a92bcf8a
2024-01-29 18:50:40 +00:00
José Rebelo
5999eb01d0
Nothing CMF Watch Pro: Initial support
2024-01-28 18:46:13 +00:00
Martin.JM
704875c3c2
Update license headers
2024-01-10 18:25:20 +00:00
José Rebelo
9bfe3dcd5f
Huawei: Fix tests
...
- Allow the calendar to be passed as parameter for tests
- Disable the setWearMessage test, for now, broken since 5b0736b751
2024-01-09 17:27:18 +00:00
Damien 'Psolyca' Gaignon
0c22ecdd51
Huawei: Add initial support for Huawei-Honor
2024-01-07 23:18:08 +01:00
mormegil
ec73b244ee
Improve ASCII transliterator
...
We should use NFKD instead of NFD since we are flattening to US-ASCII
afterwards anyway. This allows various Unicode characters which would
end up as a question mark to be represented by their compatibility
decomposition. This applies to e.g. ligatures (e.g. U+FB01 LATIN SMALL
LIGATURE FI will now be replaced with plain fi instead of a question
mark), and also the U+00A0 NO-BREAK SPACE [NBSP] to be replaced by
a normal space instead of a question mark.
+Add Czech fancy quotes to the Czech transliterator
+Add a unit test for Multitransliterator
2023-11-28 18:24:42 +00:00
José Rebelo
096358c76f
Fix unit tests
2023-11-25 23:08:02 +00:00
Kornél Schmidt
58a8484322
added test, added to defaultLanguagesIfEnabled
2023-11-25 23:03:30 +00:00
José Rebelo
d66de2f94f
Xiaomi: Fix activity file id encoding
2023-11-25 21:16:52 +00:00
José Rebelo
544909a970
Mi Band 8: Activity fetching basics
2023-11-25 21:16:52 +00:00
José Rebelo
3d8ae8596c
Fix unit tests
2023-10-28 15:53:47 +01:00
Davis Mosenkovs
77450efb99
Add Common Symbols transliteration
2023-10-07 17:42:52 +03:00
Daniel Dakhno
ef1d38d9d3
Device Manager: replaced getSupportedType with supports method
...
Huami: introduced getSupportedDeviceName
Huami: implemented getSupportedDeviceName
Huami: fixed typo
Device manager: added error on empty getSupportedDeviceName and empty supports()
Device manager: migrated more devices to getSupportedDeviceName
Device manager: simplified default supports implementation
Device manager: added caching for getSupportedDeviceName pattern
Device manager: added caching DeviceType resolution
Device manager: changed pattern matching find()->matches()
Device manager: use Candidate as caching key
Device manager: more verbose variable initialization
Device manager: fixed typo
Device manager: removed device caching from DeviceHelper
Gradle: removed protoc binary
Device manager: moved more devices to getSupportedDeviceName
Device manager: reduced usages of String.format
Device Vesc: removed multiple device types
Device management: regex improvements
Makibes HR3: fixed device recognition regex
2023-10-05 20:34:53 +00:00
José Rebelo
d1dee47186
Fix tests
2023-10-04 21:58:45 +01:00
Davis Mosenkovs
98df2d1837
Add Latvian transliteration
2023-10-04 00:30:27 +03:00
Daniel Dakhno
b97b26ce3a
Device manager: moved device icons and name to Coordinator
2023-09-28 00:11:02 +03:00
José Rebelo
3716d99788
Add test to ensure no duplicated DeviceType keys
2023-08-13 13:56:57 +01:00
hrglpfrmpf
c1fd0b77ad
Support for Withings Steel HR ( #2831 )
...
Co-authored-by: hrglpfrmpf <hrglpfrmpf@web.de>
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2831
Co-authored-by: hrglpfrmpf <hrglpfrmpf@noreply.codeberg.org>
Co-committed-by: hrglpfrmpf <hrglpfrmpf@noreply.codeberg.org>
2023-07-26 17:20:43 +00:00
mormegil
dccb8ed1c4
Changes suggested in PR
...
- use `BLETypeConversions`, added the missing functions there (+ unit tests for all)
- change Java package of Protobuf definitions so that they are not discarded by Proguard
-- +add subpackages to the Proguard rules so we can subdivide the classes
+ disable device-specific settings for Vivomove (no settings yet)
2023-07-20 20:30:14 +00:00
José Rebelo
bdb904faf9
Fix character mark removal before flattening to ASCII
2023-07-17 22:42:53 +01:00
José Rebelo
853470a2bd
Revert "Zepp OS: Unify support class and fw handling"
...
This reverts commit d59e8c3f62
.
We need to refactor the Huami classes too, otherwise this needs a lot of
hacks to work properly.
2023-06-15 21:39:22 +01:00
José Rebelo
d59e8c3f62
Zepp OS: Unify support class and fw handling
2023-06-15 20:50:15 +01:00
José Rebelo
76d99f1c33
Zepp OS: Start new GPX segments on pause/resume
2023-05-14 16:22:32 +01:00
José Rebelo
01ec74602a
Refactor and extend GpxParser
2023-05-14 14:19:48 +01:00
José Rebelo
e0d481bb36
Sony WH-1000XM5: Add power off, fix battery, fix speak-to-chat fetch
2023-05-06 17:41:10 +01:00
José Rebelo
7b3fbeb4af
Sony WH-1000XM5: Initial support
2023-05-06 16:03:48 +01:00
José Rebelo
e4933a0b42
Sony Headphones: Improve unit tests
2023-05-06 14:41:28 +01:00
thirschbuechler
da001544c5
add CroatianTransliterator
2023-03-21 20:00:28 +00:00
roolx
11bcaeb7a8
Add Georgian Transliteration
2023-02-09 21:44:35 +00:00
Arjan Schrijver
b1d03e9f7a
Clean up duplicated unimplemented methods from device support classes
...
Moved to AbstractDeviceSupport so each device support class can override them if required. This change helps to keep the code base clean by not requiring every (Device)Support class to implement these methods even when they don't need them.
2023-01-05 22:11:32 +01:00
José Rebelo
17c58d2947
Amazfit GTR 4/GTS 4: Add AGPS Updates
2023-01-05 11:31:51 +00:00
José Rebelo
041aa4faf2
Sony WF-1000XM4: Fix audio codec
2022-12-31 11:55:06 +00:00
José Rebelo
ff15fdaa9f
Sony LinkBuds S: Initial support
2022-12-30 18:07:18 +00:00
José Rebelo
b51328e4f2
Huami: Fix payload when setting the time
...
Fixes #2999
2022-12-15 21:38:06 +00:00
MPeter
4c14dd5f72
fix indentation
2022-11-05 11:26:24 +01:00
MPeter
e75f80c3f9
Add unit test for ZipFile class
2022-11-04 19:17:54 +01:00
José Rebelo
addf7ff6a6
Amazfit GTR 4: Initial support
2022-10-22 22:03:49 +02:00
José Rebelo
8fdfbfa97c
Sony WF-1000XM4: Initial support
2022-10-22 13:14:50 +01:00
Daniel Dakhno
858c53efb8
Utils: added simple Protobuf creator
2022-09-15 01:40:05 +02:00
José Rebelo
83a2b10c03
Fix tests after SDK bump
2022-09-11 16:13:29 +02:00
José Rebelo
ba565df088
Xiaomi Smart Band 7: Initial support
2022-08-19 23:13:27 +02:00
José Rebelo
5d82030d49
Refactor file logging logic
2022-08-07 23:24:16 +01:00
José Rebelo
7892b8be6a
Fix tests after DeviceService changes
2022-08-05 21:36:16 +01:00
vanous
d9a5296a66
FitPro: add DeviceSupport tests
2022-07-17 00:13:09 +02:00
vanous
1eb1ad3a3e
Fix tests after adding folder support
2022-07-17 00:13:03 +02:00
José Rebelo
152f19575f
Make calendar blacklist configurable per device
2022-07-05 19:58:21 +02:00
José Rebelo
33d433d206
Make transliteration configurable per-language
2022-06-15 18:40:28 +02:00
Ludovic Jozeau
b07dc6f2b2
fix calendar blacklist, view and storage
...
- view: unselect calendar that aren't blacklisted
- use more unique string to identify and store blacklisted calendars
2022-05-30 13:14:46 +02:00
José Rebelo
a5a3e57a34
Sony Headphones: Simplify capability definition
2022-05-15 17:22:55 +01:00
Daniel Dakhno
fb3a858263
fixed testCases
2021-12-27 14:54:58 +01:00
vanous
e00ee75ad2
adding FitPro bands support
2021-09-21 16:37:19 +02:00
vanous
9fc02ff09b
move transliteration to per device to DeviceCommunicationService, plus migration, fix #2237
2021-03-28 13:33:08 +02:00
vanous
198040c935
add UUID to to GPX with opentracks namespace
...
ensure that GPX has trackpoints
improve GPX track name if null
2021-01-17 00:07:55 +01:00
vanous
a382032021
Add GPX Import test
2020-10-25 14:48:06 +01:00
TaaviE
01feaabffd
Added support for Nut devices
2020-10-11 19:16:31 +03:00
Andreas Shimokawa
5ce44a4575
fix tests
2020-06-13 22:52:23 +02:00
Ted Stein
973e2bd34e
Implement transliteration for Korean.
2020-04-13 02:49:19 -07:00
Ted Stein
59a6e3633e
Add Arabic-style Eastern Arabic numerals to transliteration.
2020-04-05 18:36:56 +02:00
cpfeiffer
6244bdd745
File external files dir creation, add test
2020-01-29 20:20:20 +01:00
Andreas Shimokawa
f99bc0de64
Move another file from AmazfitBip to Huami which is no longer Bip specific
2019-08-13 22:20:18 +02:00
Andreas Shimokawa
59482a0bfc
fix tests
2019-06-05 16:07:30 +02:00
Andreas Shimokawa
16090f0e21
Move fake device offset to Mi Band 1 preferences, remove support for other devices
...
Reasons for removal:
- I doubt we honored the offset correctly for new features anyway that are available on newer devices
- Newer devices have a display always displaying the wrong time
2019-06-05 14:11:44 +02:00
Andreas Shimokawa
b2f79f3283
Update robolectric to 4.2.1
2019-05-25 00:07:21 +02:00
Nick Spacek
6854807f91
Adds GPX schema XSD, sample data, and tests which validate output.
2019-03-16 11:13:27 -03:00
Sebastian Kranz
f898bf5050
Satisfy travis test run - TestDeviceSupport.
2019-02-21 07:56:09 +01:00
Daniele Gobbetti
75d3dffb14
Migrate to androidx support libraries and bump compile SDK version
...
"Optimize imports" has been run on all source files, there might be
unrelated changes, but these should be harmless.
2019-01-26 16:00:56 +01:00
abettenburg
51399066a4
Merge remote-tracking branch 'upstream/master' into black_whitelist_for_notifications
...
# Conflicts:
# app/src/main/res/values/strings.xml
2019-01-12 09:55:53 +01:00
Andreas Shimokawa
b020d59f54
Implement factory reset feature in debug activity
...
Implemented for Mi Band 1/2/3, Cor, Bip
Could be implemented for Pebble by deleting all blobdbs etc
Related to #109
2018-12-16 16:06:12 +01:00
AndrewBedscastle
c5358bcbdf
Merge branch 'upstream_master' into black_whitelist_for_notifications
2018-12-06 12:54:14 +01:00
abettenburg
d6190e6e59
Apps Notification can now be configured to filter notification content based on black- and whitelists
...
Go to notification blacklist, allow an app if blacklisted, than configure it's behavior with the menu icon on the right hand side.
Should be pretty much self explanatory.
Database Scheme raised to 20
2018-12-03 09:48:16 +01:00
Nabil BENDAFI
6f86d70ca1
Fix RTL test
2018-12-02 23:33:09 +01:00
উৎসব রায়(Utsob Roy)
e66d0a2d10
Enhancement and Fixes for Bengali Transliteration. ( #1263 )
...
* Added various fixes and enhancment for Bengali transliteration.
* various fixes and enhancment for Bengali transliteration
* fixed a coding typo [master]
* Boolean lowercase and added .project in .gitignore
* Boolean lowercase and added .project in .gitignore
* typo fix [master]
* fixed negative index error [master]
* fixed negative index error [master]
* unprinted character fix [master]
* enhanced transliteration [master]
* lowercased boolean and replaced Integer with int [master]
* removed .setting, .classpath and .project and added them to .gitignore too.
* bug fix and multilingual testcase [master]
2018-10-01 23:04:51 +02:00
Carsten Pfeiffer
7b709dd975
Merge pull request #1250 from haditim/persianTransliteration
...
Persian transliteration
2018-09-05 23:33:34 +02:00
Roi
a35b96ad39
fix missing import
2018-09-05 23:33:16 +03:00
cpfeiffer
4f7e5b256a
Use constants for "rtl" and "contextualArabic" preferences
2018-09-05 21:32:06 +02:00
cpfeiffer
bd162f6319
Fix small copy&paste issue in test cases
2018-09-05 20:49:15 +02:00
Carsten Pfeiffer
e67398af87
Merge pull request #1233 from roigreenberg/master
...
Adding RTL support
2018-09-05 20:48:15 +02:00
M. Hadi
ddecab7d25
Changes Persian transliteration such that it does not alter Arabic. Test should run fine now. Also added punctuations.
2018-09-05 10:08:10 +02:00
Roi Greenberg
84fa1b011a
Add Unittest for Rtl + some small fixes
2018-09-05 01:51:13 +03:00
Roi Greenberg
761d8327f9
Add Unittest for Rtl + some small fixes
2018-09-05 01:39:01 +03:00
Carsten Pfeiffer
ece0f094eb
Merge pull request #1236 from uroybd/master
...
Better Bengali transliteration.
2018-09-01 09:35:23 +02:00
Utsob Roy
8e8fa24652
A missing semicolon added.
2018-09-01 00:46:02 +06:00
Utsob Roy
6a293bd40a
Done the recommended edits, added more testcases, and fixed a bug.
2018-09-01 00:38:15 +06:00
José Rebelo
cc6c57bd4c
Add support for LED Color, FM Frequency
2018-08-31 14:03:39 +01:00
Utsob Roy
98e747c5f5
Various Fixes
...
1. Updated test.
2. Fixed a composite letter issue.
3. Moved some redundant codes to a function.
2018-08-24 22:33:25 +06:00
Carsten Pfeiffer
c4411a9c48
Merge pull request #1206 from UncleInf/transliterate_lithuanian
...
Adding Lithuanian transliteration
2018-08-18 13:08:40 +02:00
Aniruddha Adhikary
b942db166e
add Bengali Transliteration
2018-08-18 13:05:15 +02:00
Thomas
93dcb2be0d
Adding Lithuanian transliteration
2018-08-12 11:31:35 +03:00
cpfeiffer
22e7569587
Add a small testcase for logging
2018-08-06 23:13:59 +02:00
cpfeiffer
664ffdd629
Adjust testcases for samples with calculated timestamps
2018-08-02 22:02:52 +02:00
cpfeiffer
df84927954
Fix filename generation and add testcasce
...
Fixes #1169
2018-08-01 19:33:33 +02:00
Andreas Shimokawa
99dec159f7
Mi Band 3: add untested and incomplete support
...
This also improves firmware/RES probing to distinguish Mi Band 2/3 firmware files and Mi Band 3/Bip RES files.
Notes:
- Firmware flashing should might but is untested
- This basicall runs off the Amazfit Bip code which will probably incorrect (Mi Band 3 is proabably something between the Bip and the Mi Band 2)
2018-06-14 18:16:49 +02:00
cpfeiffer
f88ef0e688
Fix ActivityDetailsParserTest now that we reuse trackpoints
2018-04-15 16:48:57 +02:00
Andreas Shimokawa
29a05f1d8f
refactor onFetchActivityData() into onFetchRecordedData(dataTypes) to make it more generic
...
This removes misuse of testNewFunctionality() and support fetching GPS data and debug logs
Fetching debug logs (Amazfit Bip/Cor) is now accessible in the debug activity
Fetching GPS data can be done by swiping in the list activity.
TODO: actually refresh list when fetching data is done :P
Also fix some android studio warnings on the go...
2018-03-31 16:21:25 +02:00
Andreas Shimokawa
3d3cc1f40c
Merge branch 'master' into bip-wip
2018-03-13 17:27:18 +01:00
Ted Stein
1e0d7550d9
Add ta marbutah to Arabic transliteration.
...
Add ة, a normally-silent form of the letter ت that was missed when this
functionality was originally added.
2018-02-27 17:37:12 +01:00
Andreas Shimokawa
1349a1c7da
Merge branch 'master' into bip-wip
2018-01-22 08:57:01 +01:00
Ted Stein
39e151f51d
Add transliteration for Arabic and Farsi.
2018-01-12 22:05:33 +01:00
Andreas Shimokawa
6f68c8adde
Merge branch 'master' into bip-wip
2018-01-04 12:09:57 +01:00