Commit graph

416 commits

Author SHA1 Message Date
Nelson Osacky 3a3577d3ca
Update distribution plugin. (#1079)
Also disable some unused build features to improve configuration time.
2020-10-20 09:34:45 -04:00
Justin Bassett 1f59ce2c45
Try a better approach for checking for daily changes. (#1073) 2020-10-20 09:20:12 -04:00
Justin Bassett e4fea1d727
Add privacy policy (#1075)
* Add privacy policy to settings.

* Add privacy policy to onboarding.

* Add privacy info to permission explanation

* Make privacy link more link like.
2020-10-19 10:26:21 -04:00
Justin Bassett 4490ddec88
Remove call number sensor due to policy changes at Google. (#1072)
* Remove call number sensor due to policy changes at Google.

* Remove missed reference.
2020-10-17 23:16:14 -04:00
Daniel Shokouhi 37c176bed4
Notification history filter options (#1069)
* Add history filter for notifications

* Remove command filters and reorganize the history

* Clean up category string

* Add a missing string, clean up some warnings
2020-10-17 23:10:05 -04:00
Justin Bassett 30cc3230bd
Request background location after requesting accurate location. (#1067)
* Request background location after requesting accurate location.

* Fix enable all for location.

* Fix issue with notification access.
2020-10-17 23:04:06 -04:00
Nelson Osacky 010b63a5c3
Update to Gradle 6.7. (#1066)
Also enable Gradle parallel flag and caching flags.
2020-10-17 22:57:22 -04:00
Paulus Schoutsen 52fec8cffd
Only check redirect uri if it starts with AUTH_CALLBACK (#1068) 2020-10-17 09:31:19 -04:00
Daniel Shokouhi 16625e9614
Fix light sensor control (#1065) 2020-10-16 14:55:11 -04:00
Justin Bassett 366b02ed15
Allow Play Store beta to be manually kicked off. (#1063) 2020-10-16 09:33:03 -04:00
Justin Bassett c31c0af390
Update Play Publisher Plugin (#1062)
* Update Play Publisher Plugin

* Fix more build issues.

* Add import
2020-10-16 09:17:42 -04:00
Daniel Shokouhi 8972742244
Power Menu button enhancements (#1061)
* Power Menu button enhancements

* Map more states for status text
2020-10-16 07:42:29 -04:00
Justin Bassett 44d8af97e9
Fix fan speed for non int fan speeds. (#1060) 2020-10-16 07:37:26 -04:00
Nelson Osacky 28152b6f6c
Add Gradle Build Scans (#1050)
* Add Gradle Build Scans

To discover insights in to which dependencies are pulling in older versions of kotlin.
For example:
https://scans.gradle.com/s/l3vm2auntthac/dependencies?dependencies=reflect&expandAll&focusedDependency=WzAsMyw3MzcsWzAsMCxbMV1dXQ&focusedDependencyIncomingPathsToggled=W1sxLDAsMV1d&focusedDependencyView=versions

* Only publish build scans on CI.
2020-10-16 07:28:41 -04:00
Justin Bassett d095a15106
Power Menu Enhancements (#1057)
* Add scene support.

* Add automatic refresh.

* Add climate support (hasn't been fully tested)...

* Add cover control.

* Add Fan Support.

* ktlint

* Fix climate and cleanup light.
2020-10-15 20:57:38 -04:00
Daniel Shokouhi c620bbabd2
Allow notifications from history to be deleted one at a time or all at once (#1058) 2020-10-15 20:49:00 -04:00
Justin Bassett 40c8596150
Fix migration for Notifications. (#1056) 2020-10-15 08:57:28 -04:00
Daniel Shokouhi e0f2eab639
Add notification history page to settings (#1054)
* Add notification history page to settings

* Attempt to fix lint minimal errors

* Attempt to fix minimal errors again

* Remove minimal files to revert back to original commit

* Remove unneeded stuff
2020-10-15 08:28:22 -04:00
Justin Bassett 1f48c44f44
Clean up a bunch of warnings. (#1053)
* Clean up a bunch of warnings.

* Remove unused class.
2020-10-15 08:16:34 -04:00
Daniel Shokouhi 48afca5427
Geofencing Improvements (#1048)
* Send an event when we enter or exit a zone

* Add more event data

* Change event name, update geofence registration logic, add zone entity ID to event

* Track geofence registration

* Remove geofences as needed, ignore updates within 5 seconds unless geofence event

* Reset variable when sending location

* Review comments
2020-10-15 08:10:03 -04:00
Home Assistant Bot 6cf4b41d92
Lokalise: updates (#1049) 2020-10-14 12:28:33 -04:00
Patrick Decat 5ec5c2975b
Fix alert dialog background (#1043) 2020-10-14 11:46:36 -04:00
Nelson Osacky 48b0d2fcff
Update AGP, Kotlin. (#1047)
This commit also enables the room incremental annotation processor.
This also fixes the export schema warning in the console logs.
2020-10-14 11:39:01 -04:00
Patrick Decat 44362d868b
Allow customizing keystore path with KEYSTORE_PATH environment variable (#1045) 2020-10-14 11:21:15 -04:00
Daniel Shokouhi 3efc459e5e
Fix listing all apps after target SDK change (#1044) 2020-10-14 11:12:22 -04:00
Daniel Shokouhi 6972f82f2a
Allow TTS notifications to use the alarm stream (#1037)
* Allow TTS notifications to use the alarm stream

* Fix toast error message not displaying in case of TTS failure
2020-10-13 12:38:51 -04:00
Daniel Shokouhi c3aa5847f9
Allow control of device ringer mode via notification (#1036)
* Allow control of device ringer mode via notification

* Add DND permission check on required devices
2020-10-13 12:34:11 -04:00
Daniel Shokouhi 1f5943e102
Rename notification dismissed to notification cleared for event type limit (#1041) 2020-10-13 12:29:32 -04:00
Daniel Shokouhi 120d1c26f6
More skippable intents (#1038)
* Add more skippable intents

* Remove phone state action since its tied to more than 1 sensor
2020-10-13 12:25:02 -04:00
Daniel Shokouhi 0a2edd0467
Remove attributes part 2 (#1035) 2020-10-13 12:19:34 -04:00
Kevin T. Berstene 51072b9e0d
Created a media player control widget (#1005)
* Added initial media player widget code.  Has some work to do

* ktLint Fixes and corrected TODOs

* Finished TODO: Media image fetch and update

* Corrected rewind/fastforward functionality so it actually seeks

* Made requested minor changes

* Additional minor requested changes

* Appeasing the mighty ktlint

* Added integration GET request for single entity instead of requesting all entities and parsing results

* Corrected dark mode widget icons

* Fix merge conflicts and migration.

* Added toast notification for entity fetch failure

Co-authored-by: Basset, Justin <Bassett.JustinT@gmail.com>
2020-10-13 12:13:50 -04:00
Patrick Decat cce1608bf0
Allow overriding PUSH_URL and RATE_LIMIT_URL in gradle.properties (#1032)
* Extract PUSH_URL and RATE_LIMIT_URL as BuildConfig values that can be overriden in local.properties

* Put push and rate limit URLs in gradle.properties instead of local.properties which can be overwritten by Android Studio
2020-10-11 14:14:49 -04:00
Nelson Osacky 46dde1912e
Remove redundant buildscript declaration (#1029)
Update Gradle to 6.6.1, AGP to 4.0.2
Declare root project name
Use lazy task configuration
2020-10-11 13:38:46 -04:00
Daniel Shokouhi 065e5b24bb
Fix sentry crash after target SDK change (#1034) 2020-10-11 12:27:04 -04:00
Justin Bassett 57358433f3
Initial Support for Android 11 Power Menu Actions (#1027)
* Upgrade target api.

* Proof of concept for Android 11 power menu controls.

* Support toggle types.

* More sustainable way to expand.

* Add input_number support.

* Add crappy fan support.

* Add Light support!

* Code Cleanup.
2020-10-11 00:37:40 -04:00
Daniel Shokouhi 490485b982
Allow control of DND via notification (#1024)
* Allow notification command to turn on or off DND

* Improve existing logic to account for additional commands and do better error handling
2020-10-10 23:59:06 -04:00
Daniel Shokouhi 3fbb1874af
Fix sorting of sensors on the manage sensor screen (#1026) 2020-10-09 09:04:51 -04:00
Daniel Shokouhi 08456d2a1b
Add notification rate limit info to settings (#1015)
* Add notification rate limit to settings

* Clean up

* Allow the preference to be copied

* Move logic to integrationService, make summary look better

* Review comments

* Clean up

* Lint
2020-10-08 14:05:13 -04:00
Justin Bassett 989229f2d8
Last Notification Sensor (#1018)
* Initial work on last notification sensor.

* Add allow list for packages.

* Add way to get sensor setting in common place.

* ktLint

* Add isEnabled check.
2020-10-08 13:30:26 -04:00
Daniel Shokouhi 3c0f1a8dce
Allow notifications to use the alarm stream (#1019)
* Allow notifications to use the alarm stream

* Review comment
2020-10-08 11:20:41 -04:00
Justin Bassett 6975acece9
Add Stale Bot (#1014) 2020-10-06 22:42:37 -04:00
Daniel Shokouhi 3efbbc073b
Send an event when a notification is dismissed (#1012)
* Send an event when a notification is dismissed

* Send all notification data instead of just the message

* Switch to a better method
2020-10-06 22:36:50 -04:00
Daniel Shokouhi a59ec710c6
Allow notifications to do TTS (#1011)
* Allow TTS for notifications

* Finalize approach, error and blank title handling

* Use utterance progress indicator to properly shut down TTS engine
2020-10-06 20:14:58 -04:00
Daniel Shokouhi f40c95adcd
Update readme push_url link after refactor (#1010) 2020-10-05 18:04:30 -04:00
Justin Bassett c8b26e2944
Attempt to request accurate location quicker. (#1008) 2020-10-05 08:47:35 -04:00
Justin Bassett 0a8c96d321
Allow opening of apps via notifications. (#1007) 2020-10-05 08:44:36 -04:00
Daniel Shokouhi e8efa495d1
Allow all sensors to be enabled or disabled at once (#1006)
* Allow all sensors to be enabled or disabled at once

* Review comments
2020-10-05 08:43:14 -04:00
Daniel Shokouhi b5d9714524
Add keyguard sensors (#1004) 2020-10-04 20:01:13 -04:00
Daniel Shokouhi 7ce1e9f5a4
Add migration fallback, improve crash handling (#996)
* Add migration fallback, improve crash handling

* Send an event and post a notification when the migration fails

* Mention widgets and move notification logic out of try and catch
2020-10-04 19:57:01 -04:00
Daniel Shokouhi 3c9e30182f
Fix sensor worker blank text (#1003)
* Initialize notification in english in case the app is killed

* Use context inline instead of defaulting to english
2020-10-02 08:56:50 -04:00