-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add notifications and sounds to schema
Add the ability to specific app notifications and sounds in the schema. Here is an example: ```starlark def get_schema(): return schema.Schema( version = "1", notifications = [ schema.Notification( id = "notificationid", name = "Notification", desc = "A Notification", icon = "notification", sounds = [ schema.Sound( title = "Ding!", file = ding_mp3, ), ], ), ], ) ``` This change makes the `Schema` and `SchemaJSON` fields of `Applet` public, so that embedders can inspect the schema and access the sound files that are referenced by `schema.Sound`.
- Loading branch information
1 parent
0d1fdc4
commit 721cfe6
Showing
13 changed files
with
546 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.