Commit graph

726 commits

Author SHA1 Message Date
dependabot[bot] ed8a08d1b8
Bump sentry-android from 5.2.1 to 5.2.3 (#1798)
Bumps [sentry-android](https://github.com/getsentry/sentry-java) from 5.2.1 to 5.2.3.
- [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/5.2.1...5.2.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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-20 17:51:39 -04:00
Duncan Findlay c95a262f94
Support cookie-based authentication. (#1797)
This change uses the webkit built-in CookieManager to provide cookie
policy and persistence for the okhttp client. The net effect is that
cookies that are set during the onboarding process are persisted and
used for subsequent API calls.

This allows users to secure their HomeAssistant instance using
alternate authentication mechanisms that rely on cookies
(e.g. Cloudflare Access).
2021-10-20 17:51:19 -04:00
Daniel Shokouhi ce320f4c19
Add support for toggle entities in quick setting tiles (#1793) 2021-10-20 17:50:09 -04:00
Daniel Shokouhi 2b8493612b
Add icons for notification action buttons (#1791) 2021-10-20 17:47:35 -04:00
Daniel Shokouhi a61a5082be
Add option to always try the internal URL first (#1788)
* Add option to always try the internal URL first

* Apply setting to webview loading

* Only skip SSID checking if we are prioritizing
2021-10-20 17:46:07 -04:00
Daniel Shokouhi b8994b744d
Some fixes for empty entity lists in wear (#1789)
* Some fixes for empty entity lists in wear

* Review comments
2021-10-18 15:08:46 -04:00
Daniel Shokouhi 9f3f552155
Add auto back up rules for wear (#1790) 2021-10-15 20:47:56 -04:00
Daniel Shokouhi 602b6b9be4
Add device name to user agent and ensure user agent is used in all communication (#1776)
* Add user agent header to webview and whenever it was replaced in a call

* Add device name to user agent string and during auth

* Switch to WebSettings for User Agent in WebView

* Add header to more locations

* Review comments

* Switch from device name to device model and clean up
2021-10-15 20:19:02 -04:00
Daniel Shokouhi fc8f10afbc
Add network security config for wear app (#1787) 2021-10-15 07:14:49 -05:00
Daniel Shokouhi 62d7542216
Remove extra HA version check for NFC settings (#1785) 2021-10-14 21:30:06 -04:00
apo-mak 7a026c4f53
Wear - add Lights (#1783)
* add lights entity

* implement filter from 9891c92d01
code clean up.

* Add On/Off Logic (if state)

* fix code ktlint base on https://github.com/home-assistant/android/pull/1783/checks?check_run_id=3894949865

* fix code ktlint base on https://github.com/home-assistant/android/pull/1783/checks?check_run_id=3894949865

* remove "if state" and add "callService toggle"

* remove "if state" and add "callService toggle"
2021-10-14 21:29:31 -04:00
Bassett, Justin cbf217c51a Try something else for publishing. 2021-10-13 23:46:49 -04:00
Justin Bassett 23329d90cb
Make sure to only commit once: https://github.com/Triple-T/gradle-play-publisher/issues/217 (#1781) 2021-10-13 23:17:32 -04:00
Justin Bassett 8fbc55e97b
Enable publishing the Wear OS to Beta. (#1772)
* Enable publishing the Wear OS to Beta.

* Make versionCode different for wear app.
2021-10-13 22:42:23 -04:00
Justin Bassett 51df8dd9a8
Dependency upgrades (#1775)
* Dependency upgrades

* Upgrade compile sdk.
2021-10-13 20:58:14 -04:00
apo-mak f51d7ef92c
add focus,for rotary input (#1780)
add focus,for rotary input.
#1779
2021-10-13 20:55:55 -04:00
Daniel Shokouhi 4893a293bb
Sort entity list and add debug resources for wear app (#1778) 2021-10-13 20:55:37 -04:00
Daniel Shokouhi 243833ab33
Change welcome message text replacing Android with Companion (#1777) 2021-10-13 11:44:49 -07:00
Justin Bassett 1eb826cbcc
Cleanup deprecated build files. (#1774)
* Cleanup deprecated build files.

* ktlint
2021-10-12 23:35:05 -04:00
Justin Bassett 9681559603
Update Android build plugin. (#1773) 2021-10-12 23:25:30 -04:00
Daniel Shokouhi 9d2ec10ae3
Improve onboarding for new users (#1771)
* Improve onboarding for new users

* Change mention of instance to server in strings

* Add line breaks for example URLs
2021-10-12 22:44:04 -04:00
dependabot[bot] 84ede0b9c3
Bump android-junit5 from 1.6.2.0 to 1.8.0.0 (#1768)
Bumps [android-junit5](https://github.com/mannodermaus/android-junit5) from 1.6.2.0 to 1.8.0.0.
- [Release notes](https://github.com/mannodermaus/android-junit5/releases)
- [Commits](https://github.com/mannodermaus/android-junit5/compare/plugin-1.6.2.0...plugin-1.8.0.0)

---
updated-dependencies:
- dependency-name: de.mannodermaus.gradle.plugins:android-junit5
  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>
2021-10-12 22:31:42 -04:00
dependabot[bot] 6a29304b3e
Bump sentry-android from 5.2.0 to 5.2.1 (#1767)
Bumps [sentry-android](https://github.com/getsentry/sentry-java) from 5.2.0 to 5.2.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/5.2.0...5.2.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>
2021-10-12 22:31:25 -04:00
dependabot[bot] 67fd8e388d
Bump android-beacon-library from 2.19.2 to 2.19.3 (#1766)
Bumps [android-beacon-library](https://github.com/AltBeacon/android-beacon-library) from 2.19.2 to 2.19.3.
- [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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-12 22:31:05 -04:00
leroyboerefijn 1573c2e796
Wear os scenes and scripts support (#1763)
* Implement scenes in home activity as a clickable list

* Add ripple effect to list items

* Add scripts as well
2021-10-12 22:30:40 -04:00
Oleksandr Kapshuk 4f22ed959e
Keep screen on notification command (#1760) 2021-10-11 08:37:32 -04:00
Paul Bottein 321df4801c
add percentage support for fan controls (#1761) 2021-10-11 08:36:29 -04:00
Daniel Shokouhi 2edc63c062
Allow intent commands to provide the class name (#1749)
* Allow intent commands to provide the class name

* Use a new parameter instead of sticky
2021-10-07 20:34:13 -04:00
dependabot[bot] 0841dd5d94
Bump dagger-compiler from 2.39 to 2.39.1 (#1752)
Bumps [dagger-compiler](https://github.com/google/dagger) from 2.39 to 2.39.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.39...dagger-2.39.1)

---
updated-dependencies:
- dependency-name: com.google.dagger:dagger-compiler
  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>
2021-10-07 18:32:43 -04:00
Daniel Shokouhi 73e198a2d9
Set group alert behavior based on alert_once notification parameter (#1757) 2021-10-07 18:29:14 -04:00
Oleksandr Kapshuk 8dac3823b9
Added settings option to keep screen on for webview activity (#1758) 2021-10-07 18:28:28 -04:00
nick2525 ddeefe92cc
androidX getSystemService() and fix warnings (#1755)
Co-authored-by: nick2525 <test@test.com>
2021-10-07 18:26:42 -04:00
dependabot[bot] 4cb5f5d679
Bump dagger from 2.39 to 2.39.1 (#1751)
Bumps [dagger](https://github.com/google/dagger) from 2.39 to 2.39.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.39...dagger-2.39.1)

---
updated-dependencies:
- dependency-name: com.google.dagger:dagger
  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>
2021-10-07 18:25:13 -04:00
dependabot[bot] 5fbeec015e
Bump actions/setup-java from 2.3.0 to 2.3.1 (#1750)
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 2.3.0 to 2.3.1.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v2.3.0...v2.3.1)

---
updated-dependencies:
- dependency-name: actions/setup-java
  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>
2021-10-07 18:24:59 -04:00
Daniel Shokouhi 553b614c2b
Add Auto-Backup rules to ignore unneeded files (#1747)
* Add backup rules for database and sharedpref only

* Include sharedprefs in backup
2021-10-07 18:22:30 -04:00
Daniel Shokouhi 73c61eacbb
Remove extra sensor worker call from webview (#1745) 2021-10-01 22:40:16 -04:00
Daniel Shokouhi 00cb726774
Increase the total amount of quick settings tiles to 12 (#1744) 2021-10-01 22:39:24 -04:00
Daniel Shokouhi d067804578
Bump work manager dependency (#1742) 2021-10-01 22:26:06 -04:00
dependabot[bot] 6303f717fc
Bump okhttp from 4.9.1 to 4.9.2 (#1740)
Bumps [okhttp](https://github.com/square/okhttp) from 4.9.1 to 4.9.2.
- [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.9.1...parent-4.9.2)

---
updated-dependencies:
- dependency-name: com.squareup.okhttp3:okhttp
  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>
2021-09-30 22:12:09 -04:00
dependabot[bot] 8b9f57c5ca
Bump jackson-module-kotlin from 2.12.5 to 2.13.0 (#1734)
Bumps [jackson-module-kotlin](https://github.com/FasterXML/jackson-module-kotlin) from 2.12.5 to 2.13.0.
- [Release notes](https://github.com/FasterXML/jackson-module-kotlin/releases)
- [Commits](https://github.com/FasterXML/jackson-module-kotlin/compare/jackson-module-kotlin-2.12.5...jackson-module-kotlin-2.13.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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-30 22:04:40 -04:00
dependabot[bot] 91128a3743
Bump logging-interceptor from 4.9.1 to 4.9.2 (#1738)
Bumps [logging-interceptor](https://github.com/square/okhttp) from 4.9.1 to 4.9.2.
- [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.9.1...parent-4.9.2)

---
updated-dependencies:
- dependency-name: com.squareup.okhttp3:logging-interceptor
  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>
2021-09-30 21:47:12 -04:00
dependabot[bot] 761ac5ab4b
Bump sentry-android from 5.1.2 to 5.2.0 (#1739)
Bumps [sentry-android](https://github.com/getsentry/sentry-java) from 5.1.2 to 5.2.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/5.1.2...5.2.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>
2021-09-30 21:46:23 -04:00
dependabot[bot] 7fd58a9b70
Bump dagger from 2.38.1 to 2.39 (#1736)
Bumps [dagger](https://github.com/google/dagger) from 2.38.1 to 2.39.
- [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.38.1...dagger-2.39)

---
updated-dependencies:
- dependency-name: com.google.dagger:dagger
  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>
2021-09-30 21:46:02 -04:00
dependabot[bot] 59ecaba7c2
Bump dagger-compiler from 2.38.1 to 2.39 (#1735)
Bumps [dagger-compiler](https://github.com/google/dagger) from 2.38.1 to 2.39.
- [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.38.1...dagger-2.39)

---
updated-dependencies:
- dependency-name: com.google.dagger:dagger-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>
2021-09-30 21:38:34 -04:00
dependabot[bot] 5d756c4d05
Bump kotlin-stdlib-jdk8 from 1.5.30 to 1.5.31 (#1717)
Bumps [kotlin-stdlib-jdk8](https://github.com/JetBrains/kotlin) from 1.5.30 to 1.5.31.
- [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-jdk8
  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>
2021-09-30 21:37:46 -04:00
Justin Bassett 577c679ef1
I'm giving up on the tests for now. We are seeing random failures… (#1737)
* I'm giving up on the tests for now.  We are seeing random failures consistantly now.  We need a better way to takle this.

* ktLint
2021-09-30 21:37:19 -04:00
Daniel Shokouhi d7c167e3c5
Fix notification default clickAction to load lovelace dashboard (#1723)
* Fix notification default clickAction to load lovelace dashboard

* Use a better default for clickAction
2021-09-30 21:34:25 -04:00
dependabot[bot] 740767cdf3
Bump kotlin-reflect from 1.5.30 to 1.5.31 (#1719)
Bumps [kotlin-reflect](https://github.com/JetBrains/kotlin) from 1.5.30 to 1.5.31.
- [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-reflect
  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>
2021-09-30 20:49:16 -04:00
nick2525 a7628be64c
use androidx.core.view.isVisible (#1685)
* use androidx.core.view.isVisible

* remove empty primary constructor

Co-authored-by: nick2525 <test@test.com>
2021-09-30 20:42:42 -04:00
leroyboerefijn 5f904b980e
Wear os authentication (#1691)
* Initial proof-of-concept: sharing Session over data layer

* Add initial onboarding and login flow

In onboarding, the home assistant urls are received from connected devices. If the user clicks on it, the authentication flow starts.
The user can alter the login details and proceed to login.
The authentication uses the "auth/login_flow" api, instead of the normal authentication api, since there is no support for webview on wear os.

* Clean up wear and app communication

Clean up

* Add proof of authentication on home. And add logout button on home

* Update onboarding list

* Add loading views and error messages

* Move startup logic to HomeActivity to hopefully save some resources

* Add manual setup option and improve UI

* Cleanup

* Passing ktLintCheck

* Passing ktLintCheck after rebase

* Fix building after build.gradle changes during rebase

* Process review comments

Remove multiple product flavors
Remove unnecessary log
Replace margin with additional header
2021-09-30 20:41:22 -04:00