Commit Graph

1425 Commits

Author SHA1 Message Date
dependabot[bot]
d6996ce527
Bump com.google.dagger:hilt-android-compiler from 2.45 to 2.46.1 (#3539)
Bumps [com.google.dagger:hilt-android-compiler](https://github.com/google/dagger) from 2.45 to 2.46.1.
- [Release notes](https://github.com/google/dagger/releases)
- [Changelog](https://github.com/google/dagger/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/dagger/compare/dagger-2.45...dagger-2.46.1)

---
updated-dependencies:
- dependency-name: com.google.dagger:hilt-android-compiler
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-22 11:49:07 -04:00
Justin Bassett
352f1e6c73
Changelog for 5/20 (#3538)
* Changelog for 5/20

* Fix order
2023-05-20 21:14:18 -04:00
dependabot[bot]
2cfc018101
Bump org.jetbrains.kotlinx:kotlinx-coroutines-android from 1.6.4 to 1.7.1 (#3528)
Bump org.jetbrains.kotlinx:kotlinx-coroutines-android

Bumps [org.jetbrains.kotlinx:kotlinx-coroutines-android](https://github.com/Kotlin/kotlinx.coroutines) from 1.6.4 to 1.7.1.
- [Release notes](https://github.com/Kotlin/kotlinx.coroutines/releases)
- [Changelog](https://github.com/Kotlin/kotlinx.coroutines/blob/master/CHANGES.md)
- [Commits](https://github.com/Kotlin/kotlinx.coroutines/compare/1.6.4...1.7.1)

---
updated-dependencies:
- dependency-name: org.jetbrains.kotlinx:kotlinx-coroutines-android
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-20 19:18:26 +00:00
dependabot[bot]
06f6ddb004
Bump io.sentry:sentry-android from 6.17.0 to 6.19.0 (#3533)
Bumps [io.sentry:sentry-android](https://github.com/getsentry/sentry-java) from 6.17.0 to 6.19.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.17.0...6.19.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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-20 14:59:40 -04:00
dependabot[bot]
774003b154
Bump org.jetbrains.kotlin:kotlin-stdlib from 1.8.20 to 1.8.21 (#3492)
Bumps [org.jetbrains.kotlin:kotlin-stdlib](https://github.com/JetBrains/kotlin) from 1.8.20 to 1.8.21.
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/v1.8.21/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/compare/v1.8.20...v1.8.21)

---
updated-dependencies:
- dependency-name: org.jetbrains.kotlin:kotlin-stdlib
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-20 14:59:01 -04:00
Joris Pelgröm
cb59ce1208
Handle updated intents for Matter commissioning (#3535)
- It looks like fast pair/shared Matter devices now re-use the commissioning activity if it is still open in the background. Set the launch mode to single top to be able to use onNewIntent and get data for new devices.
2023-05-20 14:58:23 -04:00
googlvalenzuela
f811c09175
Set Loading State for Entities (#3502)
* Set Loading State for Entities

* Fixing Ktlin LInt.

* Entity to executing take 2

* Adding buffering and disarming.

* Adding arming
2023-05-20 14:57:31 -04:00
Joris Pelgröm
6cf6c06c4c
Don't reset QS tile entity when changing servers if existing on new server (#3530)
- Prevent unnecessary changes to the selected entity when changing servers, if an entity exists on both servers. It already didn't clear everything like title/icon, just the selected entity!
 - Still calling selectEntityId in case the icon is different
2023-05-20 14:56:45 -04:00
Joris Pelgröm
57024e1561
Restore reading service data for configured button widgets (#3514) 2023-05-12 22:45:26 -04:00
Joris Pelgröm
7e1dc203ec
Fix expanded zone id for high accuracy zone constraint (#3509)
- When checking if an expanded zone geofence should be created include the server ID in the comparison as that is what is used everywhere else. Otherwise expanded zones are never added, and as a result high accuracy mode won't work as expected.
2023-05-12 22:43:38 -04:00
Joris Pelgröm
97634e3903
Fix dialog options for high accuracy zone constraint entity id (#3508)
Fix dialog for high accuracy zone constraint entity id

 - Zone entity ids can contain underscores, only split on underscores once to keep those that belong to the entity id (string is serverid_entityid). The data was being stored correctly.
2023-05-12 22:43:01 -04:00
dependabot[bot]
8b32f9bffd
Bump com.squareup.okhttp3:okhttp from 4.10.0 to 4.11.0 (#3490)
Bumps [com.squareup.okhttp3:okhttp](https://github.com/square/okhttp) from 4.10.0 to 4.11.0.
- [Release notes](https://github.com/square/okhttp/releases)
- [Changelog](https://github.com/square/okhttp/blob/master/CHANGELOG.md)
- [Commits](https://github.com/square/okhttp/compare/parent-4.10.0...parent-4.11.0)

---
updated-dependencies:
- dependency-name: com.squareup.okhttp3:okhttp
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-24 21:09:24 -04:00
Joris Pelgröm
1eb6ea61f4
Fix Wear OS template tile preview server (#3469)
Fix Wear template preview server

 - This still used an implicit server where it should be using a specific one
2023-04-24 21:05:49 -04:00
dependabot[bot]
6b03613352
Bump com.android.tools.build:gradle from 7.4.2 to 8.0.0 (#3474)
* Bump com.android.tools.build:gradle from 7.4.2 to 8.0.0

Bumps com.android.tools.build:gradle from 7.4.2 to 8.0.0.

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

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

* Bump Gradle version

* Build default values changes

 - Remove items that match new defaults
 - Add item to keep old default to allow for those changes to happen in another PR

* Align target Kotlin version with target Java version

* Use JDK 17

* Remove one more item that now matches default

---------

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>
2023-04-24 21:05:20 -04:00
Daniel Shokouhi
32a793337f
Update change log week of 4/14 (#3475) 2023-04-14 17:36:11 -07:00
Joris Pelgröm
64ee62b8fa
Entity state complication improvements (more flexibility) (#3465)
* Add ComplicationType.LONG_TEXT support, friendly state

 - Makes it possible for watch faces to request a long text complication
 - Use the friendly state to support translated states and dates

* Add show title option

 - Allows hiding the title of a complication in case it doesn't look right

* Implement/fix reading state from database

 - When a entity ID is provided in the configuration request, load data for that complication from the database to allow easy reconfiguration
 - Provide more appropriate error messages when complication isn't configured / the entity doesn't exist

* ktlint
2023-04-08 16:33:16 -04:00
Daniel Shokouhi
95a322fc0b
Update change log week of 4/7 (#3462) 2023-04-07 19:12:27 -04:00
dependabot[bot]
cffda9d3b4
Bump com.google.accompanist:accompanist-themeadapter-material from 0.28.0 to 0.30.1 (#3455)
Bump com.google.accompanist:accompanist-themeadapter-material

Bumps [com.google.accompanist:accompanist-themeadapter-material](https://github.com/google/accompanist) from 0.28.0 to 0.30.1.
- [Release notes](https://github.com/google/accompanist/releases)
- [Commits](https://github.com/google/accompanist/compare/v0.28.0...v0.30.1)

---
updated-dependencies:
- dependency-name: com.google.accompanist:accompanist-themeadapter-material
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-07 19:11:41 -04:00
Daniel Shokouhi
186e43b0e7
Bump a few app dependencies (#3461) 2023-04-07 19:11:16 -04:00
chriss158
8bffed7340
Fix option "Always show first view" with HA 2023.04 (#3459)
* Fix "Always show first view" option with HA > 2023.04

* Revert "Fix "Always show first view" option with HA > 2023.04"

This reverts commit bb1421e3f7.

* Much easier fix for "Always show first view" option with HA >2023.04
2023-04-07 19:10:39 -04:00
Joris Pelgröm
fdde72b81e
Fix zone event zone ID including server ID (#3457)
- The zone ID sent to the server included the server ID, which could break automations listening for the zone ID (server ID isn't intended to be exposed)
2023-04-07 19:10:12 -04:00
Daniel Shokouhi
f540c9cb49
Resize camera widget images to screen width (#3456)
* Resize camera widget images to screen width

* Only scale down image during resize
2023-04-07 19:09:47 -04:00
Markus Friedli
b4f877aa2d
Add Android OS sensors (#3449)
* Add Android OS sensors

* Rework review findings
2023-04-07 19:08:14 -04:00
pascal-t
94881a23d2
New intent extra types (#3436)
* Add more types to intent_extras

* Rearrange the intent_extras conversions to match the documentation

* Add String.urlencoded type for consistency.
2023-04-07 19:06:45 -04:00
Joris Pelgröm
75c7c08b2b
Improve phone feedback for Wear onboarding (#3450)
- Show a loading indicator after sending data
 - Show a Snackbar for success/errors
2023-04-02 20:20:16 -04:00
dependabot[bot]
e592c334ea
Bump org.jetbrains.kotlin:kotlin-stdlib from 1.8.10 to 1.8.20 (#3442)
Bumps [org.jetbrains.kotlin:kotlin-stdlib](https://github.com/JetBrains/kotlin) from 1.8.10 to 1.8.20.
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/commits)

---
updated-dependencies:
- dependency-name: org.jetbrains.kotlin:kotlin-stdlib
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-01 04:02:29 +00:00
dependabot[bot]
bdd7e6baec
Bump io.sentry:sentry-android from 6.14.0 to 6.17.0 (#3446)
Bumps [io.sentry:sentry-android](https://github.com/getsentry/sentry-java) from 6.14.0 to 6.17.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.14.0...6.17.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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-31 23:45:11 -04:00
Joris Pelgröm
b6688c6388
Share Wear session with main app to fix mismatch (#3439)
- Exchange server information between the Wear app and phone app, and create a temporary server on the phone that holds the Wear server information, to ensure that the same server is used on both devices
2023-03-31 23:30:57 -04:00
Joris Pelgröm
4aadcd0315
Fix notification for missing notification command permissions (#3435)
- Fixes notifications for missing notification command permissions crashing the app because there was no server ID included for the notification
2023-03-31 23:22:31 -04:00
dependabot[bot]
b947157f89
Bump com.google.accompanist:accompanist-themeadapter-material from 0.28.0 to 0.30.0 (#3431)
* Bump com.google.accompanist:accompanist-themeadapter-material

Bumps [com.google.accompanist:accompanist-themeadapter-material](https://github.com/google/accompanist) from 0.28.0 to 0.30.0.
- [Release notes](https://github.com/google/accompanist/releases)
- [Commits](https://github.com/google/accompanist/compare/v0.28.0...v0.30.0)

---
updated-dependencies:
- dependency-name: com.google.accompanist:accompanist-themeadapter-material
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* Update LiveData observer

---------

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>
2023-03-31 23:22:05 -04:00
Joris Pelgröm
f89d3c7c78
Fix Android Auto connected sensor intent crash (#3434)
- The CarConnection class registers for intents using the provided context, so switch to application context instead
2023-03-31 22:57:40 -04:00
Joris Pelgröm
3c0145eed3
Add Matter module preferred to manifest, again (#3427) 2023-03-31 22:57:33 -04:00
Joris Pelgröm
300edaa26b
Send device-preferred Thread dataset if different from core (#3426)
- Expand the automatic Thread dataset sync on Matter commissioning to also send the device-preferred Thread dataset if it's different from core (it will either receive something new or update)
2023-03-31 22:57:21 -04:00
googlvalenzuela
8a322c624f
Android Automotive Module (#3423)
* Creation of Automotive Module and Fix OnboardingActivity parent Activity.

* Adding Manifest Dependencies.

* Fixing ktlint

* Remove unused import.

* Copy Google Services to android automotive

Github actions for PR require this to be set up in order for the build to pass.

* Missing two entries to copy the google-services.json file

* Fixing Build Process.

* Version code +2

We add 2 because the app, wear (+1) and automotive versions need to have different version codes.

* Update +3 per recomendation.

* Code to support transition from Full app to Car App Library.

* Fixing linter.

* More ktlin

/home/runner/work/android/android/app/src/main/java/io/homeassistant/companion/android/BaseActivity.kt:19:1 Needless blank line(s)
/home/runner/work/android/android/app/src/main/java/io/homeassistant/companion/android/BaseActivity.kt:31:95 Unnecessary semicolon
/home/runner/work/android/android/app/src/main/java/io/homeassistant/companion/android/BaseActivity.kt:39:1 Unexpected blank line(s) before "}"
/home/runner/work/android/android/app/src/main/java/io/homeassistant/companion/android/BaseActivity.kt:44:1 First line in a method block should not be empty

* Changes to allow navigate back from / native and feedback from PR.

* Indentation fixes.
2023-03-31 17:54:33 -04:00
Joris Pelgröm
d96fc78cad
Add background to Wear screenshots (#3437)
* Add background to Wear screenshots

* Wear onboarding background
2023-03-27 13:19:53 -04:00
Joris Pelgröm
8d2c9f1cb4
Get user information and prevent using admin-only calls (#3417)
* Get and cache user information

 - Add function to get information about the current user
 - Cache user information alongside server in database

* Replace/prevent admin only calls
2023-03-16 07:10:27 +00:00
Joris Pelgröm
1a7091a761
Server trust feature (#3410)
* Server trust feature

* Always allow clear_notification, remove_channel and command_stop_tts commands
2023-03-15 19:14:39 -04:00
Daniel Shokouhi
0d9ea48fa7
Update change log week of 3/10 (#3413)
* Update change log week of 3/10

* Wording tweaks
2023-03-10 10:43:49 -08:00
Stefano Semeraro
e63d8b33f3
Properly handle multiple permissions requests (#3411)
* Properly handle multiple permissions requests

* Removed empty newline at the beginning of the block
2023-03-10 13:16:23 -05:00
Daniel Shokouhi
52c2f3a8c5
Move away from runBlocking and fix some bugs in geofence updates and clearing notification (#3409) 2023-03-10 13:14:22 -05:00
Daniel Shokouhi
b38974b30f
Allow clickAction to be set to noAction to do nothing (#3407) 2023-03-08 16:32:22 -05:00
Daniel Shokouhi
aaef25497d
Update change log week of 3/3 (#3391)
* Update change log week of 3/3

* Update with recent merges
2023-03-03 12:12:37 -08:00
Joris Pelgröm
b97383ebdf
Google dependency bumps (#3393)
* Google dependency bumps

* kotlinCompilerExtensionVersion
2023-03-03 19:49:18 +00:00
Joris Pelgröm
231622a0ef
Fix (potential) crashes when deleting a server (#3392)
* Prevent crash when pausing if server is deleted

* Handle race when deleting

 - Handle a race condition where we delete and finish the activity at the same time during which it might not yet have been fully removed
 - Handle a race condition where a back-up may be restored and a server is deleted on startup, which causes the authentication repository to become unavailable with a minor delay
2023-03-03 14:39:43 -05:00
dependabot[bot]
e704b32c59
Bump io.sentry:sentry-android from 6.14.0 to 6.15.0 (#3390)
Bumps [io.sentry:sentry-android](https://github.com/getsentry/sentry-java) from 6.14.0 to 6.15.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.14.0...6.15.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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-03 14:14:30 -05:00
Daniel Shokouhi
4984c9c1a3
Update Play Store listing for upcoming play policy changes for Wear OS (#3387)
* Update play store listing for wear OS

* Update description and add screenshots for tiles

* Update phone screenshots to be consistent and showcase some widgets

* Fix small size

* Use single screenshot to show widgets and meet requirements

* Update home screen images

* Show all widgets

* Update camera widget image, oops

* Fix screenshots
2023-03-03 14:09:05 -05:00
Daniel Shokouhi
ac02e8578a
Make background transparent, remove resizing and set minimum size to 1x1 grid for camera widget (#3375)
* Make background transparent, remove resizing and set minimum size to 1x1 grid for camera widget

* Use transparent background with rounded corners

* Remove background

* Change image view scale type

* Restore transparent background

* Set target cell size to maintain 2x2 grid by default

---------

Co-authored-by: Justin Bassett <bassett.justint@gmail.com>
2023-03-01 17:18:58 +00:00
dependabot[bot]
a2f85ef475
Bump org.jlleitschuh.gradle.ktlint from 11.1.0 to 11.2.0 (#3334)
* Bump org.jlleitschuh.gradle.ktlint from 11.1.0 to 11.2.0

Bumps org.jlleitschuh.gradle.ktlint from 11.1.0 to 11.2.0.

---
updated-dependencies:
- dependency-name: org.jlleitschuh.gradle.ktlint
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* gradlew ktlintFormat

* Rename packages with underscores

> Task :app:ktlintMainSourceSetFormat FAILED
home-assistant-android\app\src\main\java\io\homeassistant\companion\android\widgets\media_player_controls\MediaPlayerControlsWidget.kt:1:1 Package name must not contain underscore (cannot be auto-corrected)
home-assistant-android\app\src\main\java\io\homeassistant\companion\android\widgets\media_player_controls\MediaPlayerControlsWidgetConfigureActivity.kt:1:1 Package name must not contain underscore (cannot be auto-corrected)

Rename: media_player_controls to mediaplayer

> Task :wear:ktlintMainSourceSetFormat FAILED
home-assistant-android\wear\src\main\java\io\homeassistant\companion\android\onboarding\manual_setup\ManualSetupActivity.kt:1:1 Package name must not contain underscore (cannot be auto-corrected)
home-assistant-android\wear\src\main\java\io\homeassistant\companion\android\onboarding\manual_setup\ManualSetupModule.kt:1:1 Package name must not contain underscore (cannot be auto-corrected)
home-assistant-android\wear\src\main\java\io\homeassistant\companion\android\onboarding\manual_setup\ManualSetupPresenter.kt:1:1 Package name must not contain underscore (cannot be auto-corrected)
home-assistant-android\wear\src\main\java\io\homeassistant\companion\android\onboarding\manual_setup\ManualSetupPresenterImpl.kt:1:1 Package name must not contain underscore (cannot be auto-corrected)
home-assistant-android\wear\src\main\java\io\homeassistant\companion\android\onboarding\manual_setup\ManualSetupView.kt:1:1 Package name must not contain underscore (cannot be auto-corrected)

Rename: manual_setup to manual

---------

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>
2023-03-01 12:05:54 -05:00
Joris Pelgröm
0c4c32e512
Multiserver app lock (#3376)
* WebView check app lock on server change

* Settings check app lock on server details

 - If the currently active server has a lock, show it
 - If the currently visible server has a lock, also show it
2023-02-27 23:29:15 -05:00
Daniel Shokouhi
c066e7c3cf
Disable auto suggest on input fields for URLs (#3377)
* Disable auto suggest on input fields for URLs

* Wear OS too
2023-02-27 22:52:45 -05:00
Daniel Shokouhi
4b22c2b432
Update change log week of 2/25 (#3368) 2023-02-25 21:02:59 -05:00
Joris Pelgröm
8fd226216f
Enable location tracking toggle in additional server onboarding (#3366) 2023-02-25 14:16:40 -05:00
dmiales
9a4d00f05d
Feature/screen orientation (#3362)
* feature/landscape add setting for fix landscape orientation

* feature/landscape add setting for fix screen orientation

* feature/screen_orientation code review

* feature/screen_orientation code review
2023-02-24 14:31:53 -05:00
Joris Pelgröm
ebda0a23a5
Enable/disable sensors per-server (#3357)
* Sync sensors with individual servers

 - Update sensors once, and allow syncing enabled/state with individual servers instead of doing the same for every server
 - Default to the default sensor enabled state for new servers instead of copying another server

* Make last update sensor server-specific

* UI

* New servers: enable if enabled on any server

* Handle per-server enabled state in location tracking

* Fix icons in dark mode
2023-02-24 14:10:52 -05:00
dmiales
76ecfbda24
feature/minimumFontSize Proportional font styles are very blurry on l… (#3353)
feature/minimumFontSize Proportional font styles are very blurry on low resolution devices
2023-02-23 14:37:37 -05:00
Joris Pelgröm
4bda27387c
Server gestures and chooser (#3346)
* Server gestures and chooser

 - Add gestures to quickly switch between multiple servers
 - Add a chooser to select a server, and add a gesture for it

* Fix history (new page is added _after_ loading finishes)
2023-02-23 20:04:25 +01:00
Joris Pelgröm
25dd869272
Sync Thread datasets when starting Matter commissioning (#3349)
* Sync Thread datasets when starting Matter commissioning

 - When starting Matter commissioning from the frontend, check if there are Thread datasets on the device or in core but not the other, and if so try to sync them

* Also sync Thread datasets in shared device flow

 - Datasets may not be used by the system but it is useful for future devices
 - Make methods in ThreadManager a bit more general
2023-02-21 13:27:29 -05:00
Daniel Shokouhi
5f164ff5a6
Bump some project dependencies (#3347)
* Bump some project dependencies

* Bump kotlin too

* Use correct kotlin library
2023-02-21 12:55:00 -05:00
Daniel Shokouhi
1ceafa3967
Update change log week of 2/17 (#3342) 2023-02-17 17:44:55 -08:00
dependabot[bot]
4fcd20c72d
Bump com.google.dagger:hilt-android from 2.44.2 to 2.45 (#3335)
Bumps [com.google.dagger:hilt-android](https://github.com/google/dagger) from 2.44.2 to 2.45.
- [Release notes](https://github.com/google/dagger/releases)
- [Changelog](https://github.com/google/dagger/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/dagger/compare/dagger-2.44.2...dagger-2.45)

---
updated-dependencies:
- dependency-name: com.google.dagger:hilt-android
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-17 09:01:08 -05:00
dependabot[bot]
22606bf9df
Bump io.sentry:sentry-android from 6.13.1 to 6.14.0 (#3339)
Bumps [io.sentry:sentry-android](https://github.com/getsentry/sentry-java) from 6.13.1 to 6.14.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.13.1...6.14.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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-17 08:47:39 -05:00
Joris Pelgröm
88a7f61643
Allow device credential for app lock setup (#3340) 2023-02-17 08:47:11 -05:00
Joris Pelgröm
c8cc70ca84
Multiserver NFC tag fixes (#3336)
- Fix scanning tag not completing due to activity finishing early
 - Fire events to all servers from settings to match normal scanning
2023-02-17 08:46:32 -05:00
Justin Bassett
7d8bfb2bc6
Revert "Add Matter module preferred to manifest" (#3333)
Revert "Add Matter module preferred to manifest (#3319)"

This reverts commit 4ae185d31d.
2023-02-15 02:37:20 +00:00
Daniel Shokouhi
fd1ae9e39b
Update sensor enabled by default logic to be more granular (#3315) 2023-02-15 01:56:18 +00:00
dependabot[bot]
55fff2b87f
Bump com.google.dagger:hilt-android-compiler from 2.44.2 to 2.45 (#3330)
Bumps [com.google.dagger:hilt-android-compiler](https://github.com/google/dagger) from 2.44.2 to 2.45.
- [Release notes](https://github.com/google/dagger/releases)
- [Changelog](https://github.com/google/dagger/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/dagger/compare/dagger-2.44.2...dagger-2.45)

---
updated-dependencies:
- dependency-name: com.google.dagger:hilt-android-compiler
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-14 20:35:38 -05:00
dependabot[bot]
c1552e3f02
Bump io.sentry:sentry-android from 6.13.0 to 6.13.1 (#3318)
Bumps [io.sentry:sentry-android](https://github.com/getsentry/sentry-java) from 6.13.0 to 6.13.1.
- [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.13.0...6.13.1)

---
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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-14 20:35:24 -05:00
Joris Pelgröm
4ae185d31d
Add Matter module preferred to manifest (#3319) 2023-02-14 20:32:46 -05:00
Joris Pelgröm
f7cec0e5a2
Multiserver (#3332)
* Multiserver foundation

 - A foundation to build multiserver support on. Not ready for general use.

* Update new vehicle support

* Rebase fixes

* Multiserver settings

 - Show settings for the correct server when editing server settings from the settings

* Bind session to device/install

 - Save an install id with the app install to make sure that it isn't re-used on another device causing issues

* Add migration

 - Migrate server info from shared preferences to the database after database migration and clean up
 - Remove unused url shared preferences
 - Read/save server version from/to database

* Fix auth error when session is refreshed

* Show server name instead of URL

 - Read the server name when getting the config, and save it to the database
 - Allow the user to override the server name in the app's settings

* Multiserver notifications

 - Make notifications aware of which server sent the notification
 - Show server name in notification if more than 1 server is added to the app
 - Use the server-specific repositories when calling webhooks/authenticating/etc

* Handle multiserver in websocket worker

 - Copy the settings database row to the new server ID to allow for server-level settings (websocket) while keeping the original for app-level settings (sensor update frequency), and handle this in onboarding
 - Make the websocket worker check in on all servers and open/close connections where required
 - Add the webhook_id to websocket notifications to link them to servers
 - Update ServerManager servers to defaultServers because I'm using the same filter everywhere

* Migrate shared preferences

 - Move server-specific device name to Server and secret key to ServerConnectionInfo
 - Add a server ID key to the remaining shared preferences and migrate existing values

* Add option to delete server from settings

 - Allow deleting servers directly from the app's settings, because you might not be able to do so from the frontend.

* WebView switching and active server management

 - Allow switching which server is considered 'active' and used for the webview when loading
 - On auth errors remove the server instead of removing the URLs (?)
 - When getting external auth consider that the server might just have been removed (possible race condition from frontend which frequently causes 1 unauthorized connection when logging out)
 - Fetch config after adding a new server to fill in name and version before first use

* Sync registrations and blocking load

 - When starting the app, sync all registrations
 - Remove Wear state with server but new registration required
 - When receiving a new push token, update all registrations
 - Do a blocking load for getting the servers because otherwise the app might think it's not registered when running in the background

* Use StateFlow for the server list

 - Don't manually refresh but use a StateFlow to get updates pushed when the list of servers changes
 - Make settings use unique server keys to prevent constant remove/re-add

* Sensor updates and sync with multiple servers

 - Send sensor updates to all servers and sync changes to the app. Sensors are shared across all servers the app is connected to so changing enabled state on one server will update it for all servers.
 - Don't update sensor enabled state for location tracking directly from onboarding, this should be done in the result.
 - Remove unused SensorWithSettings class

* Send NFC tag scans to all servers

* QS tiles server selection

 - Listen to updates for a specific server
 - Allow selecting server if there is more than one

* Shortcuts server selection

 - Allow selecting server if there is more than one
 - Extract OutlinedButton with DropdownMenu for server selection to a standalone Composable
 - Update QS tiles to not automatically reset server ID when server no longer exists, align with shortcuts

* Fix revoked sessions + crashing app

 - When a session is revoked update the session object to reflect it
 - Fix app crashes on revoked sessions because of race conditions with the AlertDialog causing window active/inactive at the same time as finishing it

* Extra server onboarding tweaks

 - Skip welcome and location
 - Save/fix notification preference for minimal version

* Fix sensor state type conversion errors for new servers

 - If the state is removed but the type isn't, this can result in unwanted conversions throwing errors so remove the state type as well when copying a sensor

* Matter multiserver

 - Request specific server ID in Matter functions
 - Add server selection to shared Matter device flow

* Android Auto multiserver

 - Allow switching server in Android Auto. Defaults to active server, note that it doesn't change the default but only changes it in AA.

* Widgets server selection

 - Add server selection to all widgets and update handling to use the selected server

* Clean up TODOs out of scope

* Device controls multiserver

 - Subscribe to updates for each server that controls are added for
 - Allow managing lock screen enabled controls for each server

* Don't try to register sensors when finishing

 - Don't try to do a sensor update when finishing, as this may cause unintended use of resources we're trying to clean up (when deleting a server)

* Server-level zones and location tracking

 - Keep track of which server a zone belongs to for location tracking, and send updates only to that server
 - Add server name to zone selection setting

* Merge fix

* Show 'Activate Server' any time there are multiple servers

 - If the user is looking for the option to go to their server why hide it if it is already used, making them go back twice?

* More consistent strings

* Improve add server feedback in settings

 - Preserve the activate server before adding a new one to prevent unexpected active server changes
 - Show a Snackbar when another server is added indicating success with a button to activate it, or failure

* Remove unused ServerManager

* Fix tag import
2023-02-14 20:30:06 -05:00
Daniel Shokouhi
9d8055f8ce
Update change log week of 2/3 (#3307)
* Update chane log week of 2/3

* Make it clear the change is for android auto
2023-02-04 22:16:56 -05:00
dependabot[bot]
2fe968bd91
Bump sentry-android from 6.12.1 to 6.13.0 (#3277)
Bumps [sentry-android](https://github.com/getsentry/sentry-java) from 6.12.1 to 6.13.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.12.1...6.13.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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-01 12:06:36 -05:00
Daniel Shokouhi
d18ff2cf4e
Invalidate cache before updating camera widget (#3281) 2023-01-31 14:55:30 -05:00
Daniel Shokouhi
60f76fcd45
Add TTS notifications to Wear OS (#3266) 2023-01-31 14:18:58 -05:00
Daniel Shokouhi
3af6b007e8
Allow navigation to sensors in android auto if they contain proper attributes (#3273) 2023-01-31 14:14:50 -05:00
Joris Pelgröm
bd822afaba
Tweak Matter design (#3274)
- Update images to align with Matter branding guidelines
 - Remove "shared" from screens as this flow is also used for fast pair where it makes no sense
2023-01-26 18:01:36 -05:00
Daniel Shokouhi
65692af585
Change log week of 1/25 (#3267) 2023-01-26 08:33:32 -05:00
dependabot[bot]
cfc07362e8
Bump jackson-module-kotlin from 2.13.4 to 2.13.5 (#3256)
Bumps [jackson-module-kotlin](https://github.com/FasterXML/jackson-module-kotlin) from 2.13.4 to 2.13.5.
- [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.13.5)

---
updated-dependencies:
- dependency-name: com.fasterxml.jackson.module:jackson-module-kotlin
  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>
2023-01-25 20:32:51 -05:00
Daniel Shokouhi
6be617e666
Add ble transmitter and beacon monitor notification commands to Wear OS (#3253)
* Add ble transmitter and beacon monitor commands to Wear OS

* Move log to command check failure
2023-01-25 20:32:32 -05:00
Joris Pelgröm
594e6964f4
Improve state for Android Auto: translate, timestamps (#3262)
- Use string resources for common states to allow for translation
 - Format timestamps to a relative time (if recent) to make it easier to read
2023-01-24 22:37:00 -05:00
Daniel Shokouhi
96cf4f82a3
Update change log week of 1/20 (#3247)
* Update change log week of 1/20

* Tweak wording
2023-01-21 10:55:55 -08:00
dependabot[bot]
fd8f138c6c
Bump sentry-android from 6.11.0 to 6.12.1 (#3237)
Bumps [sentry-android](https://github.com/getsentry/sentry-java) from 6.11.0 to 6.12.1.
- [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.11.0...6.12.1)

---
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>
2023-01-20 19:17:48 +00:00
Joris Pelgröm
e382a4b687
Split app-level and server-level settings (#3241)
* Move server settings to a server settings screen

 - Move server-specific settings to a new screen to be accessed from the main settings only containing server specific settings in preparation for multiserver
 - Sensors is currently not server-specific even though one setting is stored by server ID, to be fixed later

* Store app preferences in another shared preferences file

 - Store app preferences not in the integration shared preferences file, but in the shared preferences file for general prefs (it is named themes but there are already other app-level prefs in it)
 - Move Wear specific preferences to it's own repository + shared preferences file

* Improve server row with local data

 - While we don't have a server name or user name, show the registration name when available to improve the server row layout

* Simplify location permission request code

 - Remove the flexible permission requests as it isn't used in the current settings structure, only expect location permissions
 - Switch from the deprecated functions to the new flow using activity result contracts

* Remove unused string
2023-01-20 14:10:21 -05:00
Daniel Shokouhi
33fc6c3779
Skip showing connection prompt when loaded URL is local or api path (#3232)
* Skip showing connection prompt when loaded URL is local or api path

* Only check first segment to limit false positives
2023-01-20 14:02:55 -05:00
Daniel Shokouhi
346ef3da5f
Initial commit of notification support on Wear OS (#3221)
* Initial commit of wear OS notifications

* Update to allow message and title

* Move constants to object to reduce imports

* Split up logic to match phone app

* Update readme and set websocket to false for wear OS

* Bump firebase BOM
2023-01-20 14:02:03 -05:00
Justin Bassett
5cd74c0179
Add and Android Auto sensor! (#3228)
* Add and Android Auto sensor!

* Fix build.

* Add version check on sensor.
2023-01-16 08:50:07 -05:00
Joris Pelgröm
d722a4d725
Update Compose theme adapter dependency (#3229) 2023-01-16 08:43:02 -05:00
Daniel Shokouhi
572324afb2
Update change log week of 1/13 (#3227) 2023-01-13 13:29:24 -05:00
Justin Bassett
1e910e7ec7
Bunch of Android Auto enhancements (#3225)
* Bunch of Android Auto enhancements

* Bump icon sizes.

* Formatting.

* Review Fixes.

* Ooops.

* Missed size.
2023-01-13 13:27:35 -05:00
Justin Bassett
220b73d20f
Bump a bunch of dependencies. (#3216) 2023-01-13 11:18:54 -05:00
Kostas Chatzikokolakis
bca80f6391
Add UUID filter to Beacon Monitor (#3178) 2023-01-13 11:06:29 -05:00
Joris Pelgröm
d6fbc1e95d
Minor Android Auto improvements (#3218)
- Fix low res entity icons
 - Fix domains not being translated
 - Add support for input_button
 - Use domain extension property
2023-01-12 15:26:40 -05:00
Justin Bassett
ee4272a168
Initial Android Auto Support (#3211)
* Initial work on Android Auto support.

* Get some toggling working, add a main view that is useful.

* Make sure we can test this on every commit.

* Migrate to full flavor.
2023-01-11 17:31:53 -05:00
dependabot[bot]
df47acb83c
Bump sentry-android from 6.10.0 to 6.11.0 (#3198)
Bumps [sentry-android](https://github.com/getsentry/sentry-java) from 6.10.0 to 6.11.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.10.0...6.11.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>
2023-01-11 21:56:07 +00:00
Daniel Shokouhi
db63a38cd5
Migrate bluetooth sensors to common and add to wear OS (#3168)
* Migrate bluetooth sensors to common and add to wear OS

* Add missing BT permissions and register for state change events

* Update permissions again
2023-01-11 16:37:00 -05:00
Daniel Shokouhi
afd8a21fbd
Update changelog week of 12/31 (#3192) 2022-12-31 19:41:58 -05:00
Joris Pelgröm
efb2390597
Add option for unlocked only quick settings tiles (#3189)
- Add option to quick settings tile to only allow interacting with it when the device is unlocked, similar to device controls on Android 13 (but phrased differently to match the system default behavior)
2022-12-30 20:34:31 -05:00
Justin Bassett
1bbd047626
Sentry Config (#3191)
Hide Sentry Config
2022-12-30 20:34:20 -05:00
Joris Pelgröm
a9e3a5daee
More quick settings tiles when needed (#3185)
- Add a lot more quick settings tile services
 - Enable QS tile services only for tiles up to the highest tile # in use + 4, with a minimum of 12, to prevent long lists and make it work 'automagically'
2022-12-30 20:27:27 -05:00
Joris Pelgröm
4ff2fcca4b
Update instead of cancel notification on replies (#3167)
* Update instead of cancel notification on reply

 - When a notification is replied to, update it instead of cancelling it to allow the other to continue manipulating it

* Support multiple replies

 - Keep a history of replies in the bundle to match system behavior

* Only keep replies that are actually shown
2022-12-30 20:15:36 -05:00
dependabot[bot]
37e00233bd
Bump android-beacon-library from 2.19.4 to 2.19.5 (#3179)
Bumps [android-beacon-library](https://github.com/AltBeacon/android-beacon-library) from 2.19.4 to 2.19.5.
- [Release notes](https://github.com/AltBeacon/android-beacon-library/releases)
- [Changelog](https://github.com/AltBeacon/android-beacon-library/blob/master/CHANGELOG.md)
- [Commits](https://github.com/AltBeacon/android-beacon-library/commits)

---
updated-dependencies:
- dependency-name: org.altbeacon:android-beacon-library
  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-12-30 19:53:50 -05:00
dependabot[bot]
a2499e6389
Bump sentry-android from 6.9.2 to 6.10.0 (#3164)
Bumps [sentry-android](https://github.com/getsentry/sentry-java) from 6.9.2 to 6.10.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.9.2...6.10.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-12-30 19:53:37 -05:00
Joris Pelgröm
e9712582b4
Fix app lock bypass on home WiFi command, code style (#3173)
* Fix app lock bypass on home WiFi command, code style

 - Fix the app lock bypass when on home WiFi notification command
 - Fix code style for app lock notification commands

* Consistent variable names
2022-12-30 19:53:02 -05:00
Daniel Shokouhi
4f5f6a1539
Update change log 12/19 (#3165)
* Update change log 12/19

* Remove trailing space

* Combine all QS tile updates
2022-12-20 12:07:10 -05:00
Joris Pelgröm
f928da2e6d
Matter dependency update and tweaks for shared devices + errors (#3161)
* Update Matter dependency

* Improve shared device commissioning

 - Show device name if available
 - Show error codes if returned

* Show toast for commissioning request errors

 - When an error occurs for commissioning requests/before the Play Services UI is shown, show a toast informing the user that Matter is currently unavailable. Most user-facing errors will be shown in the Play Services UI (during commissioning).
2022-12-18 21:37:35 +00:00
chriss158
e5191aed51
Add setting to start the app always on the first dashboard view (#3024)
* Add setting to start the app always on the first dashboard view

* Run linting

* Do not close SettingsActivity

* Only show first view if not in HA Config + Fix flash of dashboard when navigating to app settings

* Scroll to top when calling first view of dashboard

If we are on a another view a we are scrolled to the bottom, the first view will be also at the bottom

* Use default dashboard as starting dashboard

* Allow HA config dashboard to call the first view of dashboard

- Also disallow /hassio (Home Assistant addons) to call the first view

* Enhance show first view setting description

* Fix class name spelling LifecycleHandler

* Fix calling first view of dashboard on config/areas and config/automation

Co-authored-by: Justin Bassett <bassett.justint@gmail.com>
2022-12-18 21:08:22 +00:00
Joris Pelgröm
7e5e3adfe9
Use entity icon for quick settings tiles by default (#3160)
- When creating a new quick setting tile, use the entity's icon by default
 - Move Wear icon based on entity domain code to common
2022-12-18 15:31:01 -05:00
Daniel Shokouhi
8df504e1d7
Migrate more sensors to Wear OS (#3115) 2022-12-18 15:20:12 -05:00
Daniel Shokouhi
84d392f681
Update change log week of 12/16 (#3157) 2022-12-16 10:01:00 -08:00
dependabot[bot]
e29f692986
Bump sentry-android from 6.9.1 to 6.9.2 (#3141)
Bumps [sentry-android](https://github.com/getsentry/sentry-java) from 6.9.1 to 6.9.2.
- [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.9.1...6.9.2)

---
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-12-16 10:01:09 -05:00
Tamás Nagy
77f6de4550
Fix monochrome icon on Android 13+ (#3131)
Signed-off-by: Tamás Nagy (T-bond) <tbondvagyok@gmail.com>

Signed-off-by: Tamás Nagy (T-bond) <tbondvagyok@gmail.com>
2022-12-16 10:00:10 -05:00
Daniel Shokouhi
e7c18b870c
Add new option to vibrate when quick settings tile is clicked (#3123)
* Add new option to vibrate when quick settings tile is clicked

* Use vibration effects if the device supports it

* Review comments

* Remove question mark

* Set switch color when unchecked
2022-12-16 09:55:59 -05:00
Daniel Shokouhi
956b26cc99
Update change log week of 12/3 (#3133)
* Update change log week of 12/3

* Rewrite some changes

* Add Matter
2022-12-03 16:39:53 -08:00
dependabot[bot]
9e8949fe9b
Bump sentry-android from 6.9.0 to 6.9.1 (#3127)
Bumps [sentry-android](https://github.com/getsentry/sentry-java) from 6.9.0 to 6.9.1.
- [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.9.0...6.9.1)

---
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-12-03 17:53:52 -05:00
Joris Pelgröm
69d5949f14
Add initial Matter commissioning support (#3132)
* Matter commissioning: MVP

 - Implement a basic framework for the app to support Matter commissioning
 - Add hooks for the `matter/commission` message that will be sent by the frontend to trigger Matter commissioning

* [WIP] HA as Matter share target

* [WIP] Updated commissioning flow

 - Add websocket Matter API support
 - Update architecture to better ensure a working minimal build
 - Remove external bus responses for Matter commissioning message

* Rename MatterRepository

* Handle shared Matter devices

 - Adds UI to handle shared Matter devices instead of copying the pairing code to the clipboard
 - Updates the on network pairing pin/code to be a String, which may be received for shared devices

* Cleanup test button

* Pairing code type and service error handling

 - Update pairing/pin code type to Long for server
 - Send Play Services error if commissioning returned an error

* Increase timeout for Matter commissioning requests

* Use normal commissioning for shared devices

 - Use the normal matter/commission command for devices shared with the app
 - Shared device UI polishing

* Fix minimal and remove old name

* Update frontend commissioning status enum
2022-12-03 17:36:12 -05:00
Daniel Shokouhi
312a36e898
Update quick setting tiles with state updates (#3121)
* Update quick setting tiles with state updates

* Keep track of appropriate job to cancel when needed, use variable for toggle with lock

* Switch to Job from CoroutineScope
2022-11-30 15:19:00 -05:00
dependabot[bot]
8ced5d3974
Bump sentry-android from 6.8.0 to 6.9.0 (#3117)
Bumps [sentry-android](https://github.com/getsentry/sentry-java) from 6.8.0 to 6.9.0.
- [Release notes](https://github.com/getsentry/sentry-java/releases)
- [Changelog](https://github.com/getsentry/sentry-java/blob/6.9.0/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-java/compare/6.8.0...6.9.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-30 15:00:20 -05:00
dependabot[bot]
ffd658b539
Bump accompanist-appcompat-theme from 0.27.1 to 0.28.0 (#3116)
Bumps [accompanist-appcompat-theme](https://github.com/google/accompanist) from 0.27.1 to 0.28.0.
- [Release notes](https://github.com/google/accompanist/releases)
- [Commits](https://github.com/google/accompanist/compare/v0.27.1...v0.28.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-30 15:00:11 -05:00
Joris Pelgröm
4ec5fbf1f0
Remove NFC tag sample YAML for 'scanned by this device' on 2022.12+ (#3114) 2022-11-28 22:14:30 -05:00
Joris Pelgröm
11e8d5a8e8
Only request multiple tasks for HA notification intents (#3109)
Only request multiple tasks for notification intents for HA
2022-11-28 22:13:51 -05:00
Joris Pelgröm
71bf6a76f1
Don't crash when system is unable to handle download intent (#3108)
Catch ActivityNotFoundException for downloads

 - When trying to forward a download intent to the system catch the exception that is thrown if the system can't handle it to prevent a crash
2022-11-28 22:12:55 -05:00
Joris Pelgröm
442cb25e59
Add deeplinks to Wear OS sensor sync notifications (#3105)
Add deeplinks to Wear sensor sync notifications
2022-11-28 22:11:57 -05:00
Daniel Shokouhi
fd7a593c41
Fix current version sensor so it properly reports the flavor (#3104)
* Fix current version sensor so it properly reports the flavor

* Review comments
2022-11-28 22:11:12 -05:00
Joris Pelgröm
bd044c9be0
Support automation entities in quick settings tiles (#3102) 2022-11-28 22:06:30 -05:00
Tanishq Manuja
9bf5299fb2
Button Widget: Uniform Spacing (#3099)
* style(widget): more uniform spacing in button widget

* style(widget): more uniform spacing in entity state widget

* fix: revert unused changes
2022-11-28 22:05:30 -05:00
Tanishq Manuja
f35f9ce26e
Button Widget: Hide label if empty or null (#3097)
* feat(widget): hide label if empty or null

* fix(formatting): ktlint issue
2022-11-28 22:05:04 -05:00
dependabot[bot]
7af5b237cc
Bump sentry-android from 6.7.0 to 6.8.0 (#3089)
Bumps [sentry-android](https://github.com/getsentry/sentry-java) from 6.7.0 to 6.8.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.7.0...6.8.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-22 19:17:51 +00:00
dependabot[bot]
ee60714ad5
Bump accompanist-appcompat-theme from 0.27.0 to 0.27.1 (#3085)
Bumps [accompanist-appcompat-theme](https://github.com/google/accompanist) from 0.27.0 to 0.27.1.
- [Release notes](https://github.com/google/accompanist/releases)
- [Commits](https://github.com/google/accompanist/compare/v0.27.0...v0.27.1)

---
updated-dependencies:
- dependency-name: com.google.accompanist:accompanist-appcompat-theme
  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-22 14:05:31 -05:00
Daniel Shokouhi
f15b192a79
Reduce usage of job scheduling to avoid throttling (#3087) 2022-11-22 14:04:55 -05:00
dependabot[bot]
21d301b3f8
Bump reorderable from 0.9.5 to 0.9.6 (#3064)
* Bump reorderable from 0.9.5 to 0.9.6

Bumps [reorderable](https://github.com/aclassen/ComposeReorderable) from 0.9.5 to 0.9.6.
- [Release notes](https://github.com/aclassen/ComposeReorderable/releases)
- [Commits](https://github.com/aclassen/ComposeReorderable/commits/0.9.6)

---
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>

* Update canDragOver to new format

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>
2022-11-22 14:02:47 -05:00
Joris Pelgröm
c50ce30b5b
Update and fix in-app language picker (#3080)
* Manage app language using AndroidX, integrate with Android 13

 - Manage the app language using AndroidX to fix the setting not being applied and to be able to easily integrate with Android 13's system setting

* Move locales_config.xml to common

* Generate locales_config.xml when downloading translations

* Fix multiple variants for languages being collapsed into one

* Fix language codes with region variants

* Don't split languages when using app bundles

* Rename
2022-11-22 13:59:24 -05:00
dependabot[bot]
62ebb90f2e
Bump hilt-android from 2.44 to 2.44.2 (#3071)
Bumps [hilt-android](https://github.com/google/dagger) from 2.44 to 2.44.2.
- [Release notes](https://github.com/google/dagger/releases)
- [Changelog](https://github.com/google/dagger/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/dagger/compare/dagger-2.44...dagger-2.44.2)

---
updated-dependencies:
- dependency-name: com.google.dagger:hilt-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-11-17 14:42:31 +00:00
dependabot[bot]
1b5ab1c2ec
Bump hilt-android-compiler from 2.44 to 2.44.2 (#3072)
Bumps [hilt-android-compiler](https://github.com/google/dagger) from 2.44 to 2.44.2.
- [Release notes](https://github.com/google/dagger/releases)
- [Changelog](https://github.com/google/dagger/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/dagger/compare/dagger-2.44...dagger-2.44.2)

---
updated-dependencies:
- dependency-name: com.google.dagger:hilt-android-compiler
  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-17 09:30:21 -05:00
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
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
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
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
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
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
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
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]
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
Tiger Oakes
3f9b01affa
Remove unused setters (#3002) 2022-10-28 13:20:29 -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
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
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
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
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
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
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
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
Joris Pelgröm
c2937e77aa
Simplify themes (#2923)
* Merge Follow Home Assistant/Follow System Settings theme

 - As these two themes behave the same now, don't present two options but instead just one. The default setting has been renamed back to "Follow System Settings" to best match expectations. Internally the "android" setting still works, settings will show "Not set".

* Remove useless webview force dark

 - The WebView force dark settings are no longer required (and will no longer be supported when targeting Android 13), as the latest appcompat/webview/HA frontend already respect the app's theme setting and allow overriding it
2022-10-01 16:11:31 -04:00
Daniel Shokouhi
60aadc906a
Show custom icon if set for the entity in device controls (#2922)
* Add support for showing custom icons in device controls

* Clean up and set color based on state

* Set icon size and adjust colors based on domain

* Move color values to resources and add more color options from source

* Review comments

* Only set the icon if it exists in the library
2022-10-01 16:10:52 -04:00
Daniel Shokouhi
1a5776371e
Add commands to control screen brightness and a sensor to get its value (#2894)
* Add commands to control screen brightness and a sensor to get the value

* Minor file clean up

* Review comments

* Rename Device Settings to Display Sensors
2022-10-01 16:09:01 -04:00
Daniel Shokouhi
070a839b74
Update iBeacon format to have underscores (#2930)
* Update iBeacon format to have underscores

* Update change log
2022-10-01 19:57:01 +00:00
Daniel Shokouhi
79802c18a8
Update change log week of 10/1 (#2937) 2022-10-01 19:38:03 +00:00
Daniel Shokouhi
cabd41e6d5
Breaking Change: Only update geocoded sensor with location if the setting is turned on (#2913)
* Add a setting to control if the geocoded sensor should update with device tracker

* Update strings for settings
2022-09-26 10:55:02 -04:00
Daniel Shokouhi
113582ad2d
Update change log week of 9/24 (#2914) 2022-09-26 10:54:05 -04:00
Daniel Shokouhi
fbe300e30b
Breaking Change: Add bluetooth connect permission to beacon monitor to prevent log spam from library (#2920)
Add bluetooth connect permission to beacon monitor to prevent log spam from library
2022-09-26 10:53:42 -04:00
Joris Pelgröm
db98a7ced3
Fix BLE monitor new beacon check (#2918) 2022-09-26 10:52:28 -04:00
Daniel Shokouhi
e541db2ca8
Only check for beacons if the index is present (#2916)
* Only check for beacons if the index is present

* Remove assert

* Review comment
2022-09-26 10:52:08 -04:00
dependabot[bot]
1449ff5409
Bump sentry-android from 6.4.1 to 6.4.2 (#2898)
Bumps [sentry-android](https://github.com/getsentry/sentry-java) from 6.4.1 to 6.4.2.
- [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.1...6.4.2)

---
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-09-24 20:19:34 +00:00
Joris Pelgröm
0222d6b673
Bump Google dependencies (#2910) 2022-09-24 16:04:58 -04:00
Daniel Shokouhi
603e411823
Breaking Change: Add major and minor to UUID for beacon attribute in beacon monitor (#2909)
* Add major and minor to UUID for beacon attribute

* Review comments
2022-09-24 16:04:31 -04:00
Daniel Shokouhi
7c6096634f
Allow custom intents register for categories in case they are required (#2901)
* Allow custom intents register for categories in case they are required

* Update description

* Update string to be more generalized and readable
2022-09-24 16:03:32 -04:00
Daniel Shokouhi
91a4b02500
Change TTS error message and clean up some other strings (#2890) 2022-09-24 16:01:20 -04:00
Daniel Shokouhi
2e19dc4474
Add support for intent scheme URI and deep links in clickAction and actionable notifications (#2888)
* Add support for intent scheme URI in clickAction and actionable notifications

* Add a new prefix for app links in actions

* Rename app link to deep link to be more precise

* Use correct intent prefix

* Take user to the play store if the app is not installed

* Fix taking user to the market if app is missing, remove ability for deep links since we can't get the package name

* Only open the play store if we have an actual package to open to
2022-09-24 16:00:29 -04:00
Daniel Shokouhi
763819746a
Add a dynamic color sensor for accent color (#2884)
* Add a dynamic color sensor for accent color

* Update colors to color to match material design label
2022-09-24 15:56:10 -04:00
Joris Pelgröm
80816df6f5
Add support for using BSSIDs for internal connection (#2883)
* Add support for using BSSIDs for internal connection

 - Add support for entering BSSIDs to use for detecting when the internal connection URL should be used. These are saved like any regular SSID, but contain the prefix "BSSID:".

* Add link to documentation
2022-09-24 15:55:36 -04:00
Daniel Shokouhi
9fa983c6dc
Fix full screen mode for all devices (#2878)
* Fix full screen mode for all devices

* Hide system UI when we regain focus and a video is still full screen

* Revert theme changes

* Remove unneeded line break
2022-09-24 15:54:38 -04:00
Daniel Shokouhi
d87781dea4
Breaking Change: Only send notification received event if a notification wants the confirmation (#2899)
* Breaking Change: Only send notification received event if a notification wants the confirmation

* Update change log
2022-09-20 19:48:51 +00:00
Daniel Shokouhi
a34487409c
Update change log week of 9/2 (#2842)
* Update change log week of 9/2

* Reduce description as docs also mention the rate limit

* Add more changes from recent merges
2022-09-10 12:33:52 -07:00
Daniel Shokouhi
0ce8cbe871
Add item ID to active notification attributes to keep them unique (#2856) 2022-09-10 15:22:11 -04:00
Joris Pelgröm
6a0ffd82b1
Tweak camera control active state: true if not unavailable (#2871)
- Set the thumbnail template for the camera control to active as long as the camera isn't unavailable and the app was able to download an image, to show the camera image more often and better match the frontend.
2022-09-10 15:18:45 -04:00
Joris Pelgröm
6756e21112
Fix template widgets that render null in websocket subscription (#2866)
Fix widgets that return null in websocket subscription

 - Just like in the preview, null is a valid result and should be handled by the app
2022-09-10 15:18:10 -04:00
Joris Pelgröm
a31afb3455
Only subscribe to state changes for added controls (#2864)
- Instead of receiving all state changes when the device controls are open, only receive state changes for entities that were added as controls. This potentially reduces the amount of data used while controls are open.
2022-09-10 15:17:49 -04:00
Joris Pelgröm
bdc9094845
Improve adding quick settings tile (#2860)
* Improve adding quick settings tiles

 - Use the new option available on Android 13 to prompt the user to add a tile to the quick settings panel, if a tile wasn't already added
 - Switch Toast to Snackbar
 - Move some logic from the manage tiles view to viewmodel

* Only show subtitle field when supported

 - Setting a tile subtitle is only supported on Android Q+, so don't show the field on versions before that!

* Deeplink into app for tiles that aren't setup

 - Instead of disabling a tile if it isn't setup, if the user is logged in set it up as inactive with the default icon/label and deeplink into the app settings with a notice that it needs to be setup first. This provides a better first use experience, as the user can simply tap it to setup instead of requiring them to manually go to the settings.
2022-09-10 15:16:36 -04:00
dependabot[bot]
2380741a45
Bump jackson-module-kotlin from 2.13.3 to 2.13.4 (#2851)
Bumps [jackson-module-kotlin](https://github.com/FasterXML/jackson-module-kotlin) from 2.13.3 to 2.13.4.
- [Release notes](https://github.com/FasterXML/jackson-module-kotlin/releases)
- [Commits](https://github.com/FasterXML/jackson-module-kotlin/compare/jackson-module-kotlin-2.13.3...jackson-module-kotlin-2.13.4)

---
updated-dependencies:
- dependency-name: com.fasterxml.jackson.module:jackson-module-kotlin
  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-09-05 14:42:26 +00:00
Joris Pelgröm
a711c659a4
Update Wear onboarding to always use phone for sign in (#2838)
* Always do Wear onboarding on phone

 - Switch the Wear onboarding to always use the sign in flow on the paired phone, instead of offering the option to sign in completely on the watch.
 - When opening the companion app using the Wear app, immediately link the user to the list of instances or sign in screen.
 - Use standard OAuth flow for devices without companion app installed.
 - Fix type casting of location preference in Wear onboarding result.

* Fix ListenableFuture await import
2022-09-05 10:25:13 -04:00
Daniel Shokouhi
dab3640c6b
Fix sensorDao not initialized error after geocoded update (#2772)
* Fix sensorDao not initialized error after geocoded update

* Switch to sending an intent to update the sensor

* Review comments
2022-09-05 10:11:38 -04:00
Adrian Huber
d0016e530e
Add Beacon Monitor (#2472)
* Add BLE Beacon Monitoring Sensor

* Fix on/off toggle

* Add on/off commands

* Fix commands

* Add all beacons to attributtes

* Add Kalman Filter

* Improve performance

* More settings

* cleanup

* Fix linter errors

* Update description

* Show monitoring state in sensor

* Add missing permissions

* Fix permissions

* Fix Bluetooth state of Android 12

* Use instance instead of singelton

* Use runBlocking for updateLastSendState

* Use own scope for beacon manager

* Use new notification commands

* fix rebase

* use null instead of empty string

* return if sensor is disabled
2022-09-05 10:07:26 -04:00
dependabot[bot]
647d6c4533
Bump sentry-android from 6.4.0 to 6.4.1 (#2836)
Bumps [sentry-android](https://github.com/getsentry/sentry-java) from 6.4.0 to 6.4.1.
- [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.0...6.4.1)

---
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-09-05 10:05:33 -04:00
Joris Pelgröm
e31ec2f731
Send external url to Wear discovery (#2839) 2022-09-05 10:05:04 -04:00
leroyboerefijn
3926a04e21
Update companion settings landing page for Wear settings (#2837)
* Update companion settings landing page for Wear settings

* Fix description

* Update text and label
2022-09-05 10:04:26 -04:00
Joris Pelgröm
567e286bfa
Fix media notification command (#2835)
Fix media command

 - Fixes the media command code using 'command' to check if it is included but 'media_command' to do the actual command
2022-09-05 10:00:08 -04:00
Joris Pelgröm
c6b36d82bb
Support device controls on locked Android 13 device (#2820)
- Add support for using device controls while the device is locked on Android 13 devices
 - Start compiling with Android 13's SDK to make this possible
2022-09-05 09:58:13 -04:00
Joris Pelgröm
232fbb2b2d
Better state change subscriptions in entity state and media player widgets (#2814)
Implement subscribe_trigger and use it in widgets

 - Implement support for subscribing using subscribe_trigger, currently used to get state changes only for specific entities
 - Change the entity state and media player widgets to use this new subscription instead of subscribing to all state changes, based on the template widget
 - Removed some placeholder code from media player widget
2022-09-05 09:56:44 -04:00
RoboMagus
2cf5a7d215
Option to bypass app lock on home network (#2800)
* Add setting to bypass app lock on home network

* Debug loging to check logic

* Fix logic. Cleanup logging.

* Disable home lock bypass when no home networks are configured.

* Only check for WiFi SSID, not internal URL when evaluating isLockEnabled.

* Fix build error
2022-09-05 09:53:07 -04:00
andyboeh
6b06e0d8a8
Add authentication to widget buttons (#2798) 2022-09-05 09:50:53 -04:00
Daniel Shokouhi
6e647cb436
Only add next subscription if control is not null (#2812)
* Only add next subscription if control is not null

* Add one more null check for control
2022-08-29 20:50:09 -04:00
Aaron Wood
cfafffd27f
Remove toast when failing to send notification clear event (#2576) 2022-08-29 20:31:49 -04:00
Joris Pelgröm
e30390533d
Don't notify about cancellations in WebsocketManager (#2831)
Don't notify about cancellations in WebSocketManager
2022-08-29 20:27:46 -04:00
Joris Pelgröm
af0371fb7b
Fix adding media player widget from settings (#2813)
- Adding a media player widget from settings didn't work because the list used to check that entities have been selected isn't updated immediately, but only on load or in a callback after pinning the widget. To work around this, manually check it before pinning the widget.
2022-08-29 20:26:39 -04:00
Daniel Shokouhi
db8913c712
Breaking Change: Add some more attributes to geocoded sensor and check that device supports it (#2809)
* Add some more attributes to geocoded sensor and check that device supports it

* Remove language attribute as it does not supply the expected data

* Combine latitude and longitude into the location attribute again
2022-08-29 20:25:48 -04:00
Joris Pelgröm
a995d9410b
Support multiple subscriptions of same type in websocket and use in template widget (#2801)
* Update WebSocketRepository for multiple subscriptions of same type

 - Change the structure of how the websocket repository tracks individual subscriptions to allow subscribing multiple times with the same type, but different data

* Update TemplateWidget to use template subscriptions

 - Instead of depending on entity state changes and refreshing any time there is a change, use the render_template subscription for the template widget to limit the amount of data and power used. To make this possible without too much abstractions, the TemplateWidget no longer implements BaseWidgetProvider.
 - Fix hardcoded "Loading" string

* Handle potential null subscription ID

 - Implements #2795 for changes to tracked subscription ID

* Handle failed subscribing similar to other failures (null)

 - When subscribing fails, return null and don't store an active subscription instead of continuing and returning a flow (which would never emit messages)

* Update manifest
2022-08-29 20:23:48 -04:00
Daniel Shokouhi
ebc6b76dda
Update changelog week of 8/19 (#2808)
* Update changelog week of 8/19

* Mention battery power sensor
2022-08-20 08:52:49 -07:00
dependabot[bot]
358854b894
Bump sentry-android from 6.3.1 to 6.4.0 (#2806)
Bumps [sentry-android](https://github.com/getsentry/sentry-java) from 6.3.1 to 6.4.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.3.1...6.4.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-08-19 20:35:11 -04:00
Daniel Shokouhi
efdd5272e0
Add exclude recents flag to avoid showing multiple open activities in recents (#2805)
Add exclude recents flag to avoid showing multiple open activities
2022-08-19 20:34:57 -04:00
Daniel Shokouhi
da8263dc9c
Only update geocode sensor if accuracy and time are valid, like location updates (#2802) 2022-08-19 20:34:33 -04:00
Daniel Shokouhi
ae0f788bb4
Expand the error so its more meaningful (#2794) 2022-08-19 20:30:55 -04:00
dependabot[bot]
e7dcdacda0
Bump accompanist-appcompat-theme from 0.25.0 to 0.25.1 (#2787)
Bumps [accompanist-appcompat-theme](https://github.com/google/accompanist) from 0.25.0 to 0.25.1.
- [Release notes](https://github.com/google/accompanist/releases)
- [Commits](https://github.com/google/accompanist/compare/v0.25.0...v0.25.1)

---
updated-dependencies:
- dependency-name: com.google.accompanist:accompanist-appcompat-theme
  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-08-13 20:58:03 -04:00
Daniel Shokouhi
7f5ec402db
Bump some more app dependencies (#2792) 2022-08-13 20:52:34 -04:00
Joris Pelgröm
550c18c6e2
Handle foreground service restrictions for persistent connection (#2790)
* Handle foreground service restrictions for persistent connection

 - When trying to start the WebsocketManager as a foreground service, catch exceptions due to restrictions and show the user a notification to fix it

* Update logging in WebsocketManager
2022-08-13 20:49:55 -04:00
Joris Pelgröm
5e11df521c
Fix opening my.home-assistant.io links (#2780) 2022-08-13 20:38:07 -04:00
Joris Pelgröm
3436f2169d
Use OkHttpClient to download notification videos (#2779)
- Change to the OkHttpClient used elsewhere by the app to download notification videos to resolve problems related to cookies and mTLS authentication. As a result, storing and deleting the file is now handled by the app instead of by the system.
2022-08-13 20:37:26 -04:00
Daniel Shokouhi
d3c22cf341
Fix unable to Toast on QS tiles being clicked error (#2776)
* Fix unable to Toast on QS tiles being clicked error

* Review comments
2022-08-13 20:36:32 -04:00
Daniel Shokouhi
03a356f147
Only change channel if variable actually provided (#2773) 2022-08-13 20:33:22 -04:00
Rogue136198
0c9e8ac65f
Improve Notification GIFs (#2657)
* Modify Notification GIF Framerate

Modoify VIDEO_INCREMENT_MICROSECONDS to have notification GIFs generate a frame every 0.5 seconds for a video instead of the current every 2 seconds. This should result in smoother notification animations thus improving the UX

* Increase processingFrames.size

Increase processingFrames.size as increasing the framerate results in the animation ending too soon

* Scale video to a max width of 480 while maintaining video ratio

Notification video width scaled to 480. (1920 / 4) Height will scale accordingly while maintaining video aspect ratio. e.g. 1920x2560 will be scaled to 480x640

Frames are set to every 1 seconds with 5 frames resulting in a 5 second GIF

* Update MessagingManager.kt

Based on research and rapid prototyping under another fork, I've decided that scaling the image to a fixed width and a ratioed height is not going to work. There are issues that need to be resolved which result in the image being cut off and stretched in the notification. 

End result is the only overall change is changing the frame generation from once every 2 seconds to once every 1 second. This has improved the fluidity of notifications but I understand is my own subjective opinion.

This means there is still a potential case where 4K cameras will exceed the size limits of notifications.

* Typo fix

* Re-Implement Scaling to a Constant Width

* Update MessagingManager.kt

* Add logic to not scale videos smaller than specified width and Increase GIF speed (ViewFlipper)

* Tune processing times

Tune processing time to have one frame generated every 0.75s, then frames are played back at 3x speed. This results in 9 seconds of activity being played in 3 seconds.

* Implement Dynamic Frame Count

Dynamic number of frames up to a specified size limit (currently 2.5MB)

* Review Before Merge
2022-08-13 20:33:00 -04:00
Joris Pelgröm
22df320fd9
Use OkHttpClient to download notification images (#2768)
- Change to the OkHttpClient used elsewhere by the app to download notification images to resolve problems related to cookies and mTLS authentication
2022-08-06 13:03:38 -04:00
Joris Pelgröm
5d5e31e1cf
Update Wear OS companion app packages (#2766) 2022-08-06 13:02:26 -04:00
Daniel Shokouhi
cc68946026
Add fragment dependency to resolve settings view model crashes (#2764) 2022-08-05 01:25:19 +00:00
dependabot[bot]
ca6c0c505f
Bump hilt-android from 2.42 to 2.43.2 (#2754)
Bumps [hilt-android](https://github.com/google/dagger) from 2.42 to 2.43.2.
- [Release notes](https://github.com/google/dagger/releases)
- [Changelog](https://github.com/google/dagger/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/dagger/compare/dagger-2.42...dagger-2.43.2)

---
updated-dependencies:
- dependency-name: com.google.dagger:hilt-android
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-04 22:59:49 +00:00
Daniel Shokouhi
06b3dd386f
Update change log for week of 8/3 (#2756) 2022-08-04 15:55:35 -07:00
dependabot[bot]
c45618b355
Bump hilt-android-compiler from 2.42 to 2.43.2 (#2755)
Bumps [hilt-android-compiler](https://github.com/google/dagger) from 2.42 to 2.43.2.
- [Release notes](https://github.com/google/dagger/releases)
- [Changelog](https://github.com/google/dagger/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/dagger/compare/dagger-2.42...dagger-2.43.2)

---
updated-dependencies:
- dependency-name: com.google.dagger:hilt-android-compiler
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-04 18:24:00 -04:00
dependabot[bot]
d4f7f84f1d
Bump sentry-android from 6.3.0 to 6.3.1 (#2759)
Bumps [sentry-android](https://github.com/getsentry/sentry-java) from 6.3.0 to 6.3.1.
- [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.3.0...6.3.1)

---
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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-04 18:12:54 -04:00