Commit graph

1395 commits

Author SHA1 Message Date
Joris Pelgröm 0bccff65c3
Revert jackson-module-kotlin bump to fix compatibility on older Android version (#3077) 2022-11-17 09:06:31 -05:00
Joris Pelgröm 23e65c491a
Make active websocket message tracking thread-safe (#3061)
- Make sure that the `activeMessages` map that tracks the active messages/subscriptions on the websocket is thread-safe to prevent exceptions when it is read/modified from different coroutines.
2022-11-12 17:37:33 -05:00
Daniel Shokouhi 4eb709d9c6
Update change log week of 11/11 (#3058) 2022-11-12 09:26:10 -08:00
dependabot[bot] 65df318161
Bump reorderable from 0.9.2 to 0.9.5 (#3055)
Bumps [reorderable](https://github.com/aclassen/ComposeReorderable) from 0.9.2 to 0.9.5.
- [Release notes](https://github.com/aclassen/ComposeReorderable/releases)
- [Commits](https://github.com/aclassen/ComposeReorderable/commits)

---
updated-dependencies:
- dependency-name: org.burnoutcrew.composereorderable:reorderable
  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-11-12 08:25:00 -05:00
Daniel Shokouhi 70c66fcb46
Bump location dependency (#3056) 2022-11-12 08:24:38 -05:00
Daniel Shokouhi 494414eb87
Add Daily Calories, Distance and Steps sensors for health services (#3054)
* Add Daily Calories, Distance and Steps sensors for health services

* Process data points before condition to push update
2022-11-12 08:24:17 -05:00
Daniel Shokouhi 33d1e30cb1
Switch from viewModelScope to lifecycleScope for external collections (#3045)
* Switch from viewmodelscope to lifecyclescope for external collections

* Check loading state before collecting

* Revert previous changes for checking loading state

* Skip collection if not connected

* Simplify launching collections
2022-11-12 08:23:44 -05:00
dependabot[bot] 5bac66c0c7
Bump sentry-android from 6.6.0 to 6.7.0 (#3049)
Bumps [sentry-android](https://github.com/getsentry/sentry-java) from 6.6.0 to 6.7.0.
- [Release notes](https://github.com/getsentry/sentry-java/releases)
- [Changelog](https://github.com/getsentry/sentry-java/blob/6.7.0/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-java/compare/6.6.0...6.7.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-11-09 16:18:18 -05:00
dependabot[bot] a20fb24ddc
Bump jackson-module-kotlin from 2.13.4 to 2.14.0 (#3048)
Bumps [jackson-module-kotlin](https://github.com/FasterXML/jackson-module-kotlin) from 2.13.4 to 2.14.0.
- [Release notes](https://github.com/FasterXML/jackson-module-kotlin/releases)
- [Commits](https://github.com/FasterXML/jackson-module-kotlin/compare/jackson-module-kotlin-2.13.4...jackson-module-kotlin-2.14.0)

---
updated-dependencies:
- dependency-name: com.fasterxml.jackson.module:jackson-module-kotlin
  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-11-09 16:18:05 -05:00
chriss158 367e35dae4
Remove quick bar deprecation comment (#3052)
Remove quick bar comment

Home assistant core has fixed the issue in 2022.10.0
2022-11-09 16:17:39 -05:00
Joris Pelgröm e1c636e44e
Catch exceptions while sending websocket messages (#3046)
- Don't crash the app when the connection is closed while a message was still being sent on the websocket. Instead return null like what is done for invalid messages.
2022-11-09 16:16:05 -05:00
Daniel Shokouhi afa8a83496
Add missing boot completed permission for Wear OS (#3042) 2022-11-09 16:15:26 -05:00
Daniel Shokouhi 6f2b5cf9eb
Remove unneeded kotlin option (#3039) 2022-11-09 16:15:08 -05:00
Daniel Shokouhi 57b3b771b4
Track time between hardware sensor updates to restart the listener as needed (#3026)
* Check if listener got stuck for heart rate sensor and restart if needed

* Apply reset listener logic to other hardware sensors

* Review comments
2022-11-09 16:14:49 -05:00
Daniel Shokouhi affc60178e
Add daily floors sensor for Wear OS3 devices (#3005)
* Add daily floors sensor for Wear OS3 devices

* Do a compatibility check for sensor availability in health services

* Print more logs and attempt to send latest data, update more getAvailableSensor methods

* Process review comments

* Process more review comments, use actual time in millis

* Clear out available sensors when updating with new list

* Log the capabilities in case we need to troubleshoot later

* Review comment

* Missed one additional review comment

* Return immediately instead of storing a list
2022-11-09 16:12:13 -05:00
Mads Sørensen e01246ae28
Add caching of favorites in Wear OS, resulting in prettier loading (#2982)
* Add caching of favorites, results in prettier loading

* Update wear/src/main/java/io/homeassistant/companion/android/home/MainViewModel.kt

Co-authored-by: Joris Pelgröm <jpelgrom@users.noreply.github.com>

* Implement a lot suggestions from @jpelgrom
Revert previous changes to database and implement properly

* Apply suggestions from code review

Co-authored-by: Joris Pelgröm <jpelgrom@users.noreply.github.com>

* Implement suggestions from @jpelgrom

* Remove null assertions from icon function

* Update wear/src/main/java/io/homeassistant/companion/android/home/views/MainView.kt

Co-authored-by: Joris Pelgröm <jpelgrom@users.noreply.github.com>

* Fallback to entity ID if friendly_name is missing when creating cache,
Remove wrapper function to delete cached items

* Remove "clear cache" button

* Implement changes by @jpelgrom

Co-authored-by: Joris Pelgröm <jpelgrom@users.noreply.github.com>
2022-11-09 16:06:38 -05:00
Daniel Shokouhi 8a50f0d048
Revert reorderable bump until upstream issue is fixed (#3035) 2022-11-03 17:40:35 +00:00
dependabot[bot] 38ea6e8dcd
Bump accompanist-appcompat-theme from 0.25.1 to 0.27.0 (#2997)
Bumps [accompanist-appcompat-theme](https://github.com/google/accompanist) from 0.25.1 to 0.27.0.
- [Release notes](https://github.com/google/accompanist/releases)
- [Commits](https://github.com/google/accompanist/compare/v0.25.1...v0.27.0)

---
updated-dependencies:
- dependency-name: com.google.accompanist:accompanist-appcompat-theme
  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-11-03 16:48:18 +00:00
Daniel Shokouhi c89184bf31
Bump and switch to compose BOM dependency (#3028)
* Bump and switch to compose BOM dependency

* Bump kotlin and compose extensions
2022-11-03 12:31:35 -04:00
Joris Pelgröm 150f919a1b
Don't log full exception with no Wear app installed (#3031)
- If no Wear app is installed on a device, checking for nodes will throw an exception that the API is unavailable. This is an expected error, don't log it to not confuse users.
2022-11-03 12:30:31 -04:00
Joris Pelgröm 3b93bc1860
Fix location updates on core <2022.2 (#3030)
- Including `location_name` always breaks compatibility with previous versions as it will reject updates with unknown keys. Only including non-null values seems to work correctly and makes it work again on older versions.
2022-11-03 12:30:07 -04:00
Joris Pelgröm 2b445ca03c
Increase notification video attachment GIF length (#3027)
- Increase the length of the GIF created for video attachments in notifications as the Android 13 bug that limited this has been resolved
2022-11-03 12:29:42 -04:00
Daniel Shokouhi 3afc5d4d55
Don't check Wifi SSID when home wifi list is empty (#3025) 2022-11-03 12:29:05 -04:00
Joris Pelgröm 9eac506105
Only resume once for websocket message responses (#3023)
- Don't try to resume on a websocket response coroutine if it was already resumed.
2022-11-03 12:28:44 -04:00
Joris Pelgröm 0e3d50960f
Catch Geocoder exceptions on Android 13 (#3021)
- Switch from Error to Exception on errors which will be caught
2022-11-03 12:28:02 -04:00
Jorden 1b1c2bb672
Change DocsLink in Wear OS Sensors (#3017) 2022-11-03 12:27:38 -04:00
Joris Pelgröm c57b80b978
Only use internal URL when data is also using Wi-Fi (#3015) 2022-11-03 12:27:23 -04:00
Daniel Shokouhi 66bc26037c
Update change log 10/28 (#3013)
* Update change log for recent commits

* Revert "Update change log for recent commits"

This reverts commit 33914d6e36f6fa77e0639c08763145d362c01299.

* Update change log week of 10/28
2022-10-28 19:37:06 -07:00
dependabot[bot] 91b884695f
Bump firebase-appdistribution-gradle from 3.0.3 to 3.1.0 (#3011)
Bumps firebase-appdistribution-gradle from 3.0.3 to 3.1.0.

---
updated-dependencies:
- dependency-name: com.google.firebase:firebase-appdistribution-gradle
  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-28 17:38:03 +00:00
Daniel Shokouhi 7f5dd17c87
Add a heart rate sensor to Wear OS (#3008) 2022-10-28 13:34:05 -04:00
dependabot[bot] 35dd73966e
Bump reorderable from 0.9.2 to 0.9.4 (#3007)
Bumps [reorderable](https://github.com/aclassen/ComposeReorderable) from 0.9.2 to 0.9.4.
- [Release notes](https://github.com/aclassen/ComposeReorderable/releases)
- [Commits](https://github.com/aclassen/ComposeReorderable/compare/0.9.2...0.9.4)

---
updated-dependencies:
- dependency-name: org.burnoutcrew.composereorderable:reorderable
  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-28 13:22:17 -04:00
dependabot[bot] a7f37560f2
Bump bruceadams/get-release from 1.3.1 to 1.3.2 (#3004)
Bumps [bruceadams/get-release](https://github.com/bruceadams/get-release) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/bruceadams/get-release/releases)
- [Commits](https://github.com/bruceadams/get-release/compare/v1.3.1...v1.3.2)

---
updated-dependencies:
- dependency-name: bruceadams/get-release
  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-28 13:22:01 -04:00
StopMotionCuber 11f2006924
Set focus for onboarding activity to support rotary input (#3009) 2022-10-28 13:21:17 -04:00
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