1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-15 14:39:26 +01:00
Commit Graph

1223 Commits

Author SHA1 Message Date
Andreas Shimokawa
d62946df63 Pebble: some minor code cleanups regarding health 2016-02-09 01:31:41 +01:00
Andreas Shimokawa
93db073538 Pebble: try to fix health code, might be broken, cant test 2016-02-09 00:56:16 +01:00
Andreas Shimokawa
12a5b53f00 Pebble: Merge DatalogHandler and DataLog session
Also:
- pass the length of the payload and not of the whole datalog buffer to handleMessage(), simplifying DatalogSessionHealth::handleMessage()
2016-02-09 00:49:42 +01:00
Andreas Shimokawa
b01a517813 Pebble: fix hexdump for health datalog 2016-02-08 23:33:05 +01:00
Julien Pivotto
5b539d5252 [travis] Test against JDK 7 and JDK 8
Bug #221 was due to a different behaviour of JDK8 and JDK7. To prevent
this in the future, travis should test with both.
2016-02-08 22:34:15 +01:00
Andreas Shimokawa
cdb25f3183 Merge pull request #222 from roidelapluie/fix221
Fix #221 - Cast pair.first as integer
2016-02-08 21:32:05 +01:00
Julien Pivotto
dd9864015d Fix #221 - Cast pair.first as integer
This commit fixes the following compilation error:

```
:app:compileDebugJavaWithJavac
/home/bob/dev/Gadgetbridge/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/LimitedQueue.java:26:
error: incomparable types: Object and int
            if (pair.first == id) {
                           ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
:app:compileDebugJavaWithJavac FAILED

FAILURE: Build failed with an exception.
```
2016-02-08 06:32:36 +01:00
Andreas Shimokawa
0c4e606e74 Pebble: rename BLOBDB_HEALTH to BLOBDB_PREFERENCES and encodeSaneDistanceUnit to encodeSetSaneDistanceUnit
Also allow to set insane units in the method
2016-02-07 21:59:14 +01:00
danielegobbetti
10b5c571bb Use Kilometers as distance unit 2016-02-07 16:44:16 +01:00
danielegobbetti
2f8207abf9 Initial support for reading pebble health steps/activity data. 2016-02-07 09:27:51 +01:00
Andreas Shimokawa
299b850a67 its release time 2016-02-06 21:48:33 +01:00
danielegobbetti
03ad7f5a24 Do not enable insights on the watch. Add notice about health activation to changelog. 2016-02-06 21:38:55 +01:00
danielegobbetti
ba9e00d2e4 Add strings for activate and deactivate pebble Health 2016-02-06 21:23:21 +01:00
danielegobbetti
a451b37ceb Added refactoring of user details to changelog 2016-02-06 19:48:03 +01:00
Andreas Shimokawa
3db88574fa bump version, update CHANGELOG.md (not yet released) 2016-02-06 19:41:21 +01:00
Andreas Shimokawa
59d6553c54 Pebble: fix stupid bug that broke active reconnection 2016-02-06 19:35:49 +01:00
Andreas Shimokawa
85bad9abf5 Pebble: store information about datalog sessions (uuid, item type, length, tag)
... and log them if data comes in from a known id.
Also request open sessions on connect.
And last but not least hex dump data which might be from Health (the tags that I never see on Aplite but always on Basalt)
2016-02-03 23:27:35 +01:00
Andreas Shimokawa
493fcfc853 Pebble: improve datalog output 2016-02-03 20:23:56 +01:00
Daniele Gobbetti
baf5eee72f Refactored the User Activity-tracking related preferences.
Created a new device-independent class ActivityUser to hold the data
Moved the constants from the miband constant class to the ActivityUser class
Removed the miband-specific in favor of common-prefixed preferences (with upgrade support for legacy values)
Changed the way the gender is stored to an integer value
Removed the hardcoded default values for user data in favor of static fields of the ActivityUser class
2016-02-02 17:33:24 +01:00
Daniele Gobbetti
94c8633bad Move the generic user info outside the miband preferences activity. They still have to be renamed. 2016-02-02 14:32:19 +01:00
Andreas Shimokawa
703cbd1745 Merge pull request #220 from chrisperelstein/spelling-fix
Fix misspelling in exception notification.
2016-02-02 10:22:30 +01:00
Chris Perelstein
60c7e9f6f6 Fix misspelling in exception notification. 2016-02-01 22:05:49 -05:00
Andreas Shimokawa
cc64bcf03c updated Korean and French from transifex (thanks!) 2016-01-31 00:57:16 +01:00
Daniele Gobbetti
5b016e2577 WIP, read the miband user information for the time being. 2016-01-29 17:45:35 +01:00
Daniele Gobbetti
9f2a7f5448 actual deletetion of the Health app.
It brings the health watchapp back to the pristine state "you need pebble health in order to use this app". The data, however, is not deleted!
2016-01-28 11:59:23 +01:00
Andreas Shimokawa
33cf76172b Pebble: add hack to enable and maybe disable Health from the App Manager activity 2016-01-27 23:02:09 +01:00
cpfeiffer
b9cb89ab8b Component diagram giving an overview
(created with umbrello)
2016-01-26 23:05:54 +01:00
Andreas Shimokawa
666c53a1e4 Pebble: make encodeBlobDB accept Strings and UUIDS as keys, use it for Heath activation 2016-01-26 10:48:50 +01:00
danielegobbetti
7ba3a874a2 Message to activate Pebble Health, possibly. 2016-01-25 23:15:19 +01:00
Andreas Shimokawa
857e282bdc bump version 2016-01-24 22:48:51 +01:00
Andreas Shimokawa
9af976657b Pebble: Report correct connection state to PebbleKit companion apps (not always connected) 2016-01-24 00:06:44 +01:00
Andreas Shimokawa
e6f68f445a Ignore generic notification when from SMSSecure when SMS Notifications are on.
This should improve (not fix) #214
Still, we cannot decrypt SMS, so if you use SMSSecure as the default SMS App
you should disable SMS Notifications which enables generic notifications for
SMSSecure which are already decrypted.
2016-01-22 21:30:50 +01:00
Andreas Shimokawa
a72373c17c move PebbleContentProvider.java 2016-01-22 20:38:44 +01:00
Andreas Shimokawa
b9c1332442 Testing content provdider 2016-01-22 20:21:18 +01:00
Andreas Shimokawa
a6ce10d306 translate some string to German, no idea about the rest. 2016-01-21 21:46:14 +01:00
Andreas Shimokawa
cf1c245e58 update CHANGELOG.md, README.md and bump version 2016-01-21 21:40:23 +01:00
Andreas Shimokawa
2b78b0a67f Merge pull request #213 from schlamar/patch-1
fix spelling
2016-01-21 21:30:45 +01:00
Andreas Shimokawa
31724b3ef2 Update Spanish, French, Japanese and Russian from transifex (thanks!!!) 2016-01-21 21:27:31 +01:00
Marc Schlaich
887b478ec6 fix spelling 2016-01-21 19:09:10 +01:00
Andreas Shimokawa
818c31eb2b update CHANGELOG.md 2016-01-11 15:47:09 +01:00
Andreas Shimokawa
de4ffe8fb0 allow to setup a common suffix for canned replies (defaults to " (canned reply)") 2016-01-11 15:29:12 +01:00
Andreas Shimokawa
0b53f60b0d Pebble: EXPERIMENTAL support for replying to wearable notifications
Tested with Signal, more could work.
2016-01-09 17:54:17 +01:00
Andreas Shimokawa
46bbab7df0 rename IDSenderLookup to LimitedQueue and store Object instead of String 2016-01-09 16:07:22 +01:00
Andreas Shimokawa
803e58743a add WearableExtender with reply action to debug notification
(This is for testing new features)
2016-01-09 15:33:18 +01:00
cpfeiffer
ae5417b9cc Avoid NPEs when aborting an erroneous sync #205 2016-01-07 00:33:20 +01:00
cpfeiffer
a6d3c50f94 Fix discovery of Mi Band 1S #196
closes #204
2016-01-06 23:38:17 +01:00
cpfeiffer
824382b385 New translation from transifex, thanks! 2016-01-06 21:26:59 +01:00
cpfeiffer
779d8ee930 Add a confirmation dialog when performing a db import #197 2016-01-06 00:24:39 +01:00
cpfeiffer
41dde9a9c2 Programmatically perform a bonding
(i.e. bluetooth-level pairing). Previously the pairing appeared to
happen automagically, but this doesn't work (anymore). So now we first
pair on the bluetooth-level, then application level.
2016-01-06 00:16:41 +01:00
Andreas Shimokawa
c425fd24ea sort blacklist by package name #195 2016-01-02 17:18:05 +01:00