Commit graph

1362 commits

Author SHA1 Message Date
Tiger Oakes 3f9b01affa
Remove unused setters (#3002) 2022-10-28 13:20:29 -04:00
Joris Pelgröm c7db22163e
Add database checks to PR workflow (#3000)
* Add database checks to PR workflow

* Update step names
2022-10-28 13:18:29 -04:00
Jorden 209497e0a2
Fix global vars in bedtime and theater mode (#3001) 2022-10-26 11:32:53 -04:00
Daniel Shokouhi 4ae3494c66
Bump play services location tracking and move away from deprecated methods (#2999)
* Bump play services location tracking and move away from deprecated methods

* Restore comments
2022-10-25 21:52:01 +00:00
Daniel Shokouhi 2a56db4a17
Add user activity sensor from health services for Wear OS (#2995)
* Add user activity sensor from health services for Wear OS

* Only add health services if device supports it

* Move library initialization to after isEnabled check

* Review comments
2022-10-25 21:31:28 +00:00
dependabot[bot] 8779bd0485
Bump sentry-android from 6.5.0 to 6.6.0 (#2998)
Bumps [sentry-android](https://github.com/getsentry/sentry-java) from 6.5.0 to 6.6.0.
- [Release notes](https://github.com/getsentry/sentry-java/releases)
- [Changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-java/compare/6.5.0...6.6.0)

---
updated-dependencies:
- dependency-name: io.sentry:sentry-android
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-25 21:27:18 +00:00
dependabot[bot] 4189a908ce
Bump bruceadams/get-release from 1.2.3 to 1.3.1 (#2996)
Bumps [bruceadams/get-release](https://github.com/bruceadams/get-release) from 1.2.3 to 1.3.1.
- [Release notes](https://github.com/bruceadams/get-release/releases)
- [Commits](https://github.com/bruceadams/get-release/compare/v1.2.3...v1.3.1)

---
updated-dependencies:
- dependency-name: bruceadams/get-release
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-25 17:15:10 -04:00
Jorden 1faf03a490
Add Wet Mode Sensor (#2994)
* Add Wet Mode Sensor

* Add Wet Mode Sensor

* Change Description

* Fix spelling

* Fix Sloppy mistakes
2022-10-25 17:12:28 -04:00
Justin Bassett fa001ffc29
Remove dependency that caused beta to fail to publish. (#2991) 2022-10-25 17:11:17 -04:00
Joris Pelgröm a64565108b
Revert/set force dark again for webview (#2989) 2022-10-25 17:10:51 -04:00
Tyler Carberry a0c149ad55
Fix navigation bar color on OnboardingActivity (#2988) 2022-10-25 17:09:06 -04:00
Joris Pelgröm 326ab94652
Make more onboarding screens scrollable (#2987)
- Fixes not being able to continue as the buttons are off screen
2022-10-25 17:08:38 -04:00
Daniel Shokouhi 6da455f1be
Add previews to Wear OS compose and sort sensor by name (#2984)
* Add composable previews for a few missing functions

* Sort sensors by name

* Review comment

* Specify the device for Wear OS previews
2022-10-25 17:08:06 -04:00
Tiger Oakes 993012f9dd
Convert Play tasks to coroutines (#2962)
* Convert tasks to coroutines

* Fix lint issues

* fullImplementation
2022-10-25 17:07:19 -04:00
Dmitry Tsyrulnikov 90a0aca2c0
Improve monochrome icon (#2980)
* Improve monochrome icon

* Include updated icon

* Remove debug version of the icon
2022-10-23 16:07:00 -04:00
Daniel Shokouhi 58bd438efc
Change log 10/21 (#2983)
* Update change log for week of 10/21

* Add data roaming breaking change fix

* Update per recent merges

* Mention breaking change for command_bluetooth on android 13+ devices
2022-10-21 11:49:48 -07:00
Daniel Shokouhi c95725f767
Add more Wear OS sensors (#2981)
* Add more Wear OS sensors

* Update description for how sensors update, also update the type
2022-10-21 18:19:41 +00:00
Joris Pelgröm 760aca4fa1
Tweak onboarding design to be more unified (#2979) 2022-10-21 14:01:05 -04:00
Joris Pelgröm e637b423f2
Support zone name only location tracking (#2969)
* Support zone name only location tracking

* Update strings to match iOS

* Only add Sent location setting on supported versions

* String updates

* Simplify code as the setting is always on
2022-10-21 13:59:02 -04:00
dependabot[bot] bd26435eb8
Bump community-material-typeface from 6.4.95.0-kotlin to 7.0.96.0-kotlin (#2944)
* Bump community-material-typeface from 6.4.95.0-kotlin to 7.0.96.0-kotlin

Bumps [community-material-typeface](https://github.com/mikepenz/Android-Iconics) from 6.4.95.0-kotlin to 7.0.96.0-kotlin.
- [Release notes](https://github.com/mikepenz/Android-Iconics/releases)
- [Changelog](https://github.com/mikepenz/Android-Iconics/blob/develop/gradle-release.gradle)
- [Commits](https://github.com/mikepenz/Android-Iconics/commits)

---
updated-dependencies:
- dependency-name: com.mikepenz:community-material-typeface
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Rename text-to-speech to microphone-message

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Joris Pelgröm <joris.pelgrom@gmail.com>
Co-authored-by: Justin Bassett <bassett.justint@gmail.com>
2022-10-21 17:57:15 +00:00
dependabot[bot] fa095a8bb2
Bump iconics-core from 5.3.4 to 5.4.0 (#2945)
Bumps [iconics-core](https://github.com/mikepenz/Android-Iconics) from 5.3.4 to 5.4.0.
- [Release notes](https://github.com/mikepenz/Android-Iconics/releases)
- [Changelog](https://github.com/mikepenz/Android-Iconics/blob/develop/gradle-release.gradle)
- [Commits](https://github.com/mikepenz/Android-Iconics/compare/v5.3.4...v5.4.0)

---
updated-dependencies:
- dependency-name: com.mikepenz:iconics-core
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-21 17:56:36 +00:00
Daniel Shokouhi e8fe823312
Add On Body sensor for Wear OS (#2961)
* Add On Body sensor for Wear OS

* Remove unnecessary requirement
2022-10-21 13:47:20 -04:00
dependabot[bot] 1d3e8d67e9
Bump iconics-compose from 5.3.4 to 5.4.0 (#2943)
Bumps [iconics-compose](https://github.com/mikepenz/Android-Iconics) from 5.3.4 to 5.4.0.
- [Release notes](https://github.com/mikepenz/Android-Iconics/releases)
- [Changelog](https://github.com/mikepenz/Android-Iconics/blob/develop/gradle-release.gradle)
- [Commits](https://github.com/mikepenz/Android-Iconics/compare/v5.3.4...v5.4.0)

---
updated-dependencies:
- dependency-name: com.mikepenz:iconics-compose
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-21 13:42:10 -04:00
RoboMagus 1f226a71fe
Settings activity app lock (#2926)
* Extract app lock timout functionality from WebViewActivity

* Add app lock authentication to SettingsActivity.
Handle enabling app lock setting authentication in SettingsActivity to avoid callback clash.

* Add blurview to SettingsActivity when app is locked

* Increase blur radius: 5px seems small enough to have text still somewhat legible

* Cleanup

* Cache appLock state for use in touch listeners

* Review rework

* Add onWindowFocusChanged to settingsActivity to check for authentication

* Cleanup SessionExpireMillis functions

* Fix logging formats

* Cleanup debug logging in onResume / onWindowFocusChanged handlers

* Linter fix

* Test SettingsActivity blurview without explicit background

* Improve isAppLocked() debug logging

* Increase applock grace period

* Fix setLockAuthenticationResult return value

* remove authentication from onResume. Perform only onWindowFocusChanged.

* Prevent double authentication prompt when enabling app lock

* Fix missing NotificationManagerCompat import
2022-10-21 13:41:24 -04:00
Daniel Shokouhi 07845fb797
Breaking Change: Fix mobile data roaming sensor after target SDK change (#2978)
Fix mobile data roaming sensor after target SDK change
2022-10-19 21:06:27 -04:00
dependabot[bot] 1cee64c768
Bump actions/setup-java from 3.5.1 to 3.6.0 (#2975)
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 3.5.1 to 3.6.0.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v3.5.1...v3.6.0)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-19 19:17:11 +00:00
dependabot[bot] b37a643d4d
Bump com.github.ben-manes.versions from 0.42.0 to 0.43.0 (#2971)
Bumps com.github.ben-manes.versions from 0.42.0 to 0.43.0.

---
updated-dependencies:
- dependency-name: com.github.ben-manes.versions
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-19 14:57:23 -04:00
dependabot[bot] 03c59af86a
Bump gradle from 7.3.0 to 7.3.1 (#2967)
Bumps gradle from 7.3.0 to 7.3.1.

---
updated-dependencies:
- dependency-name: com.android.tools.build:gradle
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-19 14:57:13 -04:00
Joris Pelgröm e287321c53
Show settings chip while loading Wear app (#2968)
* Show settings chip while loading Wear app

* Disable favorite editing while loading
2022-10-19 14:54:09 -04:00
Joris Pelgröm acd8d2d660
Improve settings when using Home Assistant Cloud (#2965)
* Save cloud URL separately and add pref

 - Save the cloud / remote UI url that is received during registration separately, and add a preference to use the cloud url instead of the external url
 - Save the cloud / remote UI url and cloudhook url received during webhook config updates, to be able to support using cloud after the app was set up
 - Clean up cloudhook url when logging out

* Add UI for "Use Home Assistant Cloud" url

* Cleanup

* Fix function order
2022-10-19 14:53:01 -04:00
Daniel Shokouhi 3e72f2719d
Fix permission requests for beacon monitor (#2964)
* Fix permission requests for beacon monitor

* Remove unneeded permission

* Adjust remaining BT permission issues
2022-10-19 14:51:21 -04:00
Daniel Shokouhi 865c911cb0
Add a screen off timeout sensor and command for control (#2960) 2022-10-19 14:50:25 -04:00
Joris Pelgröm 47e8957a92
Update deprecated onBackPressed, support predictive back gesture (#2959)
- Update onBackPressed functions which have been deprecated to use the new OnBackPressedDispatcher and OnBackPressedCallback
 - Indicate support for the predictive back gesture
2022-10-19 14:49:49 -04:00
Joris Pelgröm 51f9a3fe68
Don't use a hardcoded list of apps for Wear OS detection (#2958) 2022-10-19 14:49:12 -04:00
Daniel Shokouhi 7c792c4d4b
Add permissions requests to wear OS sensors and add network sensors (#2956)
* Add permissions requests to wear OS sensors

* Add intents for network sensors on wear

* Separate background/foreground location permission requests

* Prompt for background permissions after foreground was successful

* Only set sensor to enabled if all permissions are grantted

* Review comments

* Process more review comments

* Remove unnecessary variable update
2022-10-19 14:48:35 -04:00
Daniel Shokouhi 4ded46af4d
Clean up spacing in BLE transmitter description (#2952) 2022-10-19 14:47:47 -04:00
Joris Pelgröm 0ea8821193
Update filter in Manage Sensors to all/enabled/disabled (#2950)
* Update filter in Manage Sensors to all/enabled/disabled

* Cleanup when (enums are exhaustive)
2022-10-19 14:47:23 -04:00
Joris Pelgröm dd800d00ea
Use compressed entity changes for device controls (#2942)
* Use compressed entity changes for device controls

 - Add support for the subscribe_entities websocket subscription which delivers initial state + changes in a compressed format to reduce data usage
 - Use the new subscribe_entities format in device controls on supported Home Assistant versions

* Less duplicate code
2022-10-19 14:47:10 -04:00
RoboMagus 983dbd58e4
Add notify command for app-lock (#2868)
* Add notify command for app-lock

* Add null check for optional parameters

* Only allow enabling app_lock by notify command if previously enabled by user

* Use constants for app lock command parameters

* Add BiometricManager check before turning on app_lock

* Remove 'hasLockEverBeenEnabled' in favor of only biometricmanager check.

* Improved value checking for app lock command. 
Made setAppLock function suspending i.s.o. sepearate runBlocking calls.

* Show notification if no parameters were updated.

* improved parameter value checking

* Don't make changes when invalid data is provided

* Early check on argument validity for app lock commands

* Cleanup app lock command parameter validation
2022-10-19 14:45:22 -04:00
Joris Pelgröm 4a9dd8ba04
Android 13 notification changes + target (#2682)
* Request notification permission during onboarding

 - When using Android 13 or the minimal version, add a screen to onboarding to request to enable notifications on the device. This screen is based on iOS onboarding. When tapping Continue, on Android 13 this requests the system permission and/or on the minimal version this changes the websocket setting.
 - Compile with and target SDK 33 (targeting required to be able to request notification system permission on demand)

* Add notification settings link in settings when off

 - Show a new setting in settings for the user to enable notifications for the Home Assistant app, either because the permission was denied (Android 13) or the user manually turned off all notifications (Android 8-12).
 - This new setting replaces the notification channels setting when everything is off; in this case there is no point managing individual channels. If at least one channel is on, the existing notification channels setting is shown instead.

* Compose tweaks

 - Remove redundant content description for icon
 - Change to a simpler scroll modifier

* Fix skipping notifications on minimal version

 - Ensure that the value is actually saved to the database

* Post Bluetooth on/off commands as if invalid

 - When using Android 13, post notification commands to control Bluetooth on/off as a normal notification as if they were invalid, as the function has been deprecated for the app

* Remove type that can be inferred
2022-10-19 14:43:15 -04:00
dependabot[bot] 72681ca632
Bump sentry-android from 6.4.3 to 6.5.0 (#2963)
Bumps [sentry-android](https://github.com/getsentry/sentry-java) from 6.4.3 to 6.5.0.
- [Release notes](https://github.com/getsentry/sentry-java/releases)
- [Changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-java/compare/6.4.3...6.5.0)

---
updated-dependencies:
- dependency-name: io.sentry:sentry-android
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-11 13:04:07 -04:00
dependabot[bot] 0b6a934607
Bump sentry-android from 6.4.2 to 6.4.3 (#2953)
Bumps [sentry-android](https://github.com/getsentry/sentry-java) from 6.4.2 to 6.4.3.
- [Release notes](https://github.com/getsentry/sentry-java/releases)
- [Changelog](https://github.com/getsentry/sentry-java/blob/6.4.3/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-java/compare/6.4.2...6.4.3)

---
updated-dependencies:
- dependency-name: io.sentry:sentry-android
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-10 10:36:28 -04:00
Daniel Shokouhi 93844ffea0
Add pixel watch companion to list of Wear OS apps (#2957) 2022-10-07 14:21:56 -04:00
Daniel Shokouhi ddce1ca1b3
Set the media player widget icon if available, otherwise default to cast icon (#2940)
* Set the media player widget icon if available, otherwise default to cast icon

* Use icon directly per review comment
2022-10-04 08:34:40 -04:00
Daniel Shokouhi e4e414d5b4
Update change log week of 10/1 for beta (#2938)
* Update change log week of 10/1 for beta

* Add back changes so they are not missed during weekly beta

* Separate release blocks
2022-10-01 14:42:19 -07:00
Justin Bassett 1adc33bf61
Bump Hilt version to 2.44 (#2939)
Bump hilt version to 2.44
2022-10-01 17:12:32 -04:00
dependabot[bot] b2b976b3d6
Bump actions/setup-java from 3.5.0 to 3.5.1 (#2925)
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 3.5.0 to 3.5.1.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v3.5.0...v3.5.1)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-01 16:16:07 -04:00
Daniel Shokouhi 48f2ca3125
Default to app icon if icon is not available for notification (#2936) 2022-10-01 16:15:24 -04:00
Joris Pelgröm abf0220430
Update Gradle to 7.5.1, Android Gradle plugin to 7.3.0 (#2934)
- Update Gradle to latest version (7.5.1)
 - Update Android Gradle plugin to latest version (7.3.0)
 - Move package property out of manifest into gradle build files namespace as recommended
2022-10-01 16:14:45 -04:00
Chris Kemp 203e6868d1
Add new force_on and force_off options to command_high_accuracy_mode. (#2924) 2022-10-01 16:12:44 -04:00