Skip to content

Commit

Permalink
Added support for loyalty cards from gadgetbridge
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriele Monaco committed Aug 19, 2023
1 parent f8708c9 commit 8986fec
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/android/ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@
0.30: Send firmware and hardware versions on connection
Allow alarm enable/disable
0.31: Implement API for activity fetching
0.32: Added support for loyalty cards from gadgetbridge
5 changes: 5 additions & 0 deletions apps/android/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,11 @@
event.t="remove";
}
require("messages").pushMessage(event);
},
"cards" : function() {
// we receive all, just override what we have
if (Array.isArray(event))
require("Storage").writeJSON("android.cards.json", event);
}
};
var h = HANDLERS[event.t];
Expand Down
2 changes: 1 addition & 1 deletion apps/android/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "android",
"name": "Android Integration",
"shortName": "Android",
"version": "0.31",
"version": "0.32",
"description": "Display notifications/music/etc sent from the Gadgetbridge app on Android. This replaces the old 'Gadgetbridge' Bangle.js widget.",
"icon": "app.png",
"tags": "tool,system,messages,notifications,gadgetbridge",
Expand Down

0 comments on commit 8986fec

Please sign in to comment.