Commit Graph

45 Commits (60b24e004a7bfe63c372f55d6006d597f0f5e237)

Author SHA1 Message Date
Andreas Shimokawa 60b24e004a Pebble: Fix bug for Pebble Intent Notifications not arriving on FW 2.x 2015-09-19 21:35:02 +02:00
Andreas Shimokawa 0c4dbf75e0 Pebble: fix for PebbleKit AppMessages containing non-latin characters 2015-09-19 15:32:09 +02:00
Andreas Shimokawa e6a8a1a36c Pebble: Better support for 8 and 16 bit integers in AppMessages 2015-09-18 00:03:34 +02:00
Andreas Shimokawa 041bd1a7f4 Treat Conversations messagess as chat messages, even if arrived via Pebble Intents (which is the default) 2015-09-17 23:08:05 +02:00
Andreas Shimokawa a5ef952e37 Pebble: Implement WIP outbound communication with PebbleKit Android Apps
This improves #106

Pebblebike aka Ventoo works to some extent sometimes now ;)
2015-09-17 19:21:22 +02:00
Julien Pivotto 21d59b23c1 Allow QKSMS notifications to be handled as a generic notification if SMS notification mode is set to "never"
This makes it possible to use the "Open on Phone" and individial dismiss feature with QKSMS.
2015-09-13 22:51:05 +02:00
Andreas Shimokawa 95e22a4e32 Pebble: Allow stopping apps though PebbleKit messages (also in the API) 2015-09-13 21:44:26 +02:00
Andreas Shimokawa 6fff4fb7ba Pebble: support byte arrays for Appmessages (including PebbleKit ones) 2015-09-13 18:37:59 +02:00
Andreas Shimokawa 9a32be97cb Pebble: work towards PebbleKit support #106
- Untested features have to be turned on.
- We will accept data from any source.
- One way, we do not send out replies.

This already works with the minimalistic sports demo from the sdk
2015-09-13 18:20:15 +02:00
Andreas Shimokawa d3dbde6917 Some refactoring:
- Put Pebble icon ID constants in its own class
- remove ICON_ and COLOR_ prefixes from constants
2015-09-13 15:21:07 +02:00
Julien Pivotto 1027336591 Pebble: Support colors in 3.x notifications (Pebble Time)
* Generic notifications are still red
* Colors are in a separated static class

Closes #120.
2015-09-13 14:54:43 +02:00
Andreas Shimokawa 44d8294f8c Pebble: use Hipchat icon for chat notifications on FW 3.x 2015-09-13 13:32:18 +02:00
Andreas Shimokawa a85c04c02a Pebble: use constant for icons where possible 2015-09-13 12:55:10 +02:00
Julien Pivotto d50a82d495 Pebble: Set application icons for generic notifications
Closes #116.
2015-09-13 00:39:53 +02:00
Julien Pivotto 986e7e0450 Improve Pebble Time notifications icons
* Add a list of icons in the source code
* Generic notification now use the correct icon instead of the SMS icon
2015-09-12 22:14:36 +02:00
Andreas Shimokawa 7f331a1bb1 Pebble: play around with timeline pins 2015-09-08 14:15:46 +02:00
Andreas Shimokawa a839f07496 Pebble: use proper icon for "Open on Phone" on Pebble Time 2015-09-05 21:00:18 +02:00
Andreas Shimokawa 1a1277fa3d Pebble: Fix "Open on Phone" on OG Pebble (no more error display) 2015-09-05 20:40:12 +02:00
Andreas Shimokawa ab29736a50 Pebble: Implement "Open on Phone" function for generic notifications
TODO:
- search a better icon for the Pebble Time
- send a reply to the OG Pebble to prevent the error message from popping up
2015-09-02 22:43:22 +02:00
Andreas Shimokawa fd789c445e Allow dismissal of individual (generic) notification
Implemented for Pebble and Pebble Time #103
2015-09-01 22:00:11 +02:00
Andreas Shimokawa 46171e4ab8 Some preparations for interactive notifications 2015-08-31 22:27:25 +02:00
Andreas Shimokawa 2ca8e149ee Pebble: support "dismiss all" action also on Pebble Time/FW 3.x notifications
This is done through a workaround, now we just label it as a generic action and reply properly to the invocation from the Pebble.
Fixes #86
2015-08-27 18:01:19 +02:00
Andreas Shimokawa 44c7f99c58 GBDeviceProtocol::decodeResponse() now returns an array GBDeviceEvents
This allowed to remove some ugly hacks from pebble code,  when encoding a
response in a GBDeviceEventSendBytes  and at the same time trying to notify
generic code via another GBDeviceEnvent.
2015-08-27 15:02:29 +02:00
Andreas Shimokawa 027e6fe8c3 Pebble: add more Datalogging endpoint debug output 2015-08-26 23:17:32 +02:00
Andreas Shimokawa cedd95186f Pebble: revert changes commited accidentially 2015-08-22 00:29:52 +02:00
Andreas Shimokawa 1150ad2b8d Pebble: Support taking Pebble Time screenshots. Closes #97. 2015-08-22 00:14:14 +02:00
Andreas Shimokawa 12337836bc bump version, update CHANGELOG.md 2015-08-21 16:06:23 +02:00
Andreas Shimokawa 6e80978998 Pebble: Add generic method for Blobdb endpoint for deduplicating code. 2015-08-21 14:29:12 +02:00
cpfeiffer a1cb246e27 Add and use a "client interface" for the actions of the service
Previously, the DeviceCommunicationService was invoked directly,
via
Intent intent = new Intent(foo, bar);
intent.setExtra(EXTRA_BAZ, baz);
startService(...);

and this was scattered throughout GadgetBridge.
Now there is a "frontend" available, so that you can call
the service more easily, like
GBApplication.deviceService().connect();

For a start, this client interface (DeviceService) actually
implements the same interface (EventHandler) as the receiving side
(DeviceSupport). This may change in the future.

This will also make testing much easier, because we can use
this client interface to invoke the test service as well.
2015-08-21 01:03:57 +02:00
Andreas Shimokawa e8e631fb49 Pebble: encode flags in metadata, this could not work on real devices 2015-08-19 01:42:13 +02:00
cpfeiffer 121baa19ec Move AbstractSerialDeviceSupport et al from bt package into serial package 2015-08-18 01:26:15 +02:00
Andreas Shimokawa c0323339e8 Pebble: set UTC time and offset on FW 3.x 2015-08-18 00:13:55 +02:00
Andreas Shimokawa 8fee88a1ba Pebble: use SMS/EMAIL icons for notifications on FW 3.X 2015-08-17 13:57:01 +02:00
Andreas Shimokawa e704357728 Pebble: set HW revision to "dvt" for basalt emulator 2015-08-17 13:19:15 +02:00
Andreas Shimokawa c8c882c3d1 Pebble: Support removing apps on FW 3.X (metadata) 2015-08-17 13:07:34 +02:00
Andreas Shimokawa f0924716fc Pebble: when reading app fetch uuid, do not switch to little endian too early 2015-08-17 12:55:17 +02:00
Andreas Shimokawa 48f5931043 PebbleProtocol: add missing assignment 2015-08-16 13:13:53 +02:00
Andreas Shimokawa 6af0bb2754 Pebble: Do not hardcode icon id for metadata installation, properly acknowledge app fetch requests 2015-08-16 11:33:32 +02:00
Andreas Shimokawa a4f5524f6e Pebble: blindly implement missing parts for app installation on FW 3.x
This is expected to fail and needs to be enable in preferences (untested features).
2015-08-16 00:32:36 +02:00
Andreas Shimokawa c69bf1b0af Pebble: always use 2.x notification on FW 2.x except for K9
FW 2.x notifications enables the "dismiss all" action, but for K9 we would loose
the mail icon. So K9 still needs the force option.
2015-08-15 22:38:10 +02:00
Andreas Shimokawa e28d6fa7cb Pebble: try to install app metadata on FW 3.x (untested) 2015-08-14 12:51:30 +02:00
Andreas Shimokawa e43fed2e7e Pebble: various preparations for FW 3.x support
- Implement encodeAppStart() for FW 3.x
- List cached PBWs in AppManager (currently only UUID)
2015-08-11 13:55:35 +02:00
Andreas Shimokawa 13260416f3 Pebble: decode app fetch requests for debugging purposes 2015-08-11 13:21:29 +02:00
Andreas Shimokawa d983d7a5c4 Pebble: answer pings from the watch 2015-08-09 21:42:27 +02:00
cpfeiffer db4261e02b More refactoring: new service/devices package and service/bt package 2015-08-03 23:51:53 +02:00