Commit graph

1213 commits

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