Commit graph

1586 commits

Author SHA1 Message Date
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
Joris Pelgröm 34ac4ad298
Disable favorites only view on Wear if all favorites are deleted (#3454) 2023-04-07 19:09:09 -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 cc20ffe83b
Add logged out state to Wear tiles (#3440)
- Adds a generic tile to be used when the Wear app isn't logged in
 - Simplify tile root layout building using Timeline.fromLayoutElement
2023-03-31 23:35:34 -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
Bassett, Justin 45c4e16074 Use less memory. 2023-03-31 22:21:58 -04:00
Bassett, Justin b22eb713c2 Let publishing of Automotive fail. 2023-03-31 22:04:29 -04:00
Bassett, Justin 66b86b5a55 Using the Automotive Track:
https://developers.google.com/android-publisher/tracks#ff-track-name
2023-03-31 21:06:50 -04:00
Justin Bassett b0d8ef625a
Make sure release keys are inflated. (#3447) 2023-03-31 22:47:51 +00: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
dependabot[bot] e1f797add7
Bump actions/setup-java from 3.10.0 to 3.11.0 (#3438)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-28 10:43:01 +02: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 421f38f1c2
Use new auth/revoke endpoint (#3416) 2023-03-15 19:15:16 -04: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
Joris Pelgröm cc8dd47fcd
Drop 'tile' from template tile name (#3414) 2023-03-10 18:23:43 +00: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
Adrian Huber 3ebae7ee08
Fix listed beacons that are out of range after enable (#3398)
* Fix listed beacons that are out of range after enable

* Fix linter
2023-03-10 13:10:49 -05:00
Daniel Shokouhi b38974b30f
Allow clickAction to be set to noAction to do nothing (#3407) 2023-03-08 16:32:22 -05:00
dependabot[bot] 194ed7ef2f
Bump org.jlleitschuh.gradle.ktlint from 11.2.0 to 11.3.1 (#3401)
Bumps org.jlleitschuh.gradle.ktlint from 11.2.0 to 11.3.1.

---
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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-08 10:08:28 -05:00
Joris Pelgröm 65d3a8acac
Update issue template selection (#3405)
* Disable blank issue option

* Add link to companion docs

* Add link to Discord
2023-03-08 10:08:13 -05:00
Joris Pelgröm bd30b2c53b
Update default entity icons (#3403)
- Catch up with frontend changes for domain icons
 - Dynamic weather icons
 - Dynamic (binary) sensor icons
2023-03-08 10:07:46 -05:00
Daniel Shokouhi deb3d84ab7
Update sensors when BLE transmitter turned on and off (#3385)
* Update sensors when BLE transmitter turned on and off

* Remove duplicate code
2023-03-08 10:06:55 -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] a74aae6851
Bump com.google.firebase:firebase-appdistribution-gradle from 3.2.0 to 4.0.0 (#3389)
Bump com.google.firebase:firebase-appdistribution-gradle

Bumps com.google.firebase:firebase-appdistribution-gradle from 3.2.0 to 4.0.0.

---
updated-dependencies:
- dependency-name: com.google.firebase:firebase-appdistribution-gradle
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-03 19:30:19 +00: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
dependabot[bot] 6aa3375746
Bump com.android.tools.build:gradle from 7.4.1 to 7.4.2 (#3378)
Bumps com.android.tools.build:gradle from 7.4.1 to 7.4.2.

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-03 14:11:31 -05:00
Joris Pelgröm b508114d75
Push Wear users to install app on phone (#3388)
* Push Wear users to install app on phone

 - Push Wear OS users to install the app on their phone if they don't already have it, as the sign in experience is a lot better and less sensitive to errors
 - Allow using 'Advanced' if the user cannot or doesn't want to install the app on their phone

* Fix import

* Add time
2023-03-03 14:11:14 -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 73b9ca471e
Use a black background for Wear OS onboarding screens (#3386) 2023-03-03 14:07:57 -05:00
Daniel Shokouhi c3fe6b3b6e
Use a foreground service for reliable beacon scanning in background (#3369)
* Use a foreground service for reliable beacon scanning in background

* Clean up

* Add action to stop beacon scanning

* Match sensor name

* Use existing Disable string for action

* ktlint
2023-03-03 14:07:02 -05:00
Joris Pelgröm f5d2b978ad
Improve sensor re-registration on app version change for offline server (#3380)
- Prevent the sensor worker runs from taking a long time when the app version changes if a server is offline due to reregistration of all servers (~15 min), by skipping these re-registrations if it fails with an exception that indicates offline/network issues.

Co-authored-by: Justin Bassett <bassett.justint@gmail.com>
2023-03-01 17:22:13 +00: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
Jorden f763c69344
Update Splash Screen due to new requirements (#3381)
Update Splash Screen
2023-03-01 12:08:47 -05:00