Commit graph

1142 commits

Author SHA1 Message Date
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