Commit graph

753 commits

Author SHA1 Message Date
amadeo-alex c6a5231435
Add BLE beacon advertise mode setting (#1856)
* replaced variables with values where possible

* added option to set advertise mode

* adjusted sensor description and changed the formatting

* renamed values to be more descriptive

* changed constant names to be more descriptive

* fixed and unified naming of settings, added quotes around references to specific sensor settings
2021-10-30 20:40:36 -04:00
Daniel Shokouhi ef06cf4cc4
Fix sharing export flag (#1858) 2021-10-30 20:39:05 -04:00
chriss158 39689a8fbf
Fix sensor update not working in background (#1854) 2021-10-30 20:38:40 -04:00
Daniel Shokouhi e881a8a9c4
Add permissions for modify audio settings for webview activity (#1850) 2021-10-29 16:08:41 -04:00
Daniel Shokouhi 8631b3db98
Fix notification command permissions not launching by directing user to open the app (#1848) 2021-10-29 16:07:48 -04:00
Marcus Lönnberg 89492743f8
Support Lock states jammed, locking and unlocking (#1843) 2021-10-29 16:07:12 -04:00
Daniel Shokouhi b75f730233
Fix high accuracy command after sensor update logic was corrected (#1849) 2021-10-28 13:53:45 -04:00
Daniel Shokouhi 3d4c37e910
Allow notification icon to be changed (#1837) 2021-10-28 13:50:49 -04:00
Daniel Shokouhi 27f8c181f7
Convert notification detail page to compose (#1822)
* Convert notification detail page to compose

* Switch to fragment instead of preference

* Pass in the data to compose for recomposition
2021-10-28 13:13:08 -04:00
dependabot[bot] 38dd8b4a8c
Bump accompanist-appcompat-theme from 0.16.0 to 0.20.0 (#1832)
Bumps [accompanist-appcompat-theme](https://github.com/google/accompanist) from 0.16.0 to 0.20.0.
- [Release notes](https://github.com/google/accompanist/releases)
- [Commits](https://github.com/google/accompanist/compare/v0.16.0...v0.20.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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-25 12:31:42 -04:00
dependabot[bot] 3834a5f29a
Bump sentry-android from 5.2.3 to 5.2.4 (#1831)
Bumps [sentry-android](https://github.com/getsentry/sentry-java) from 5.2.3 to 5.2.4.
- [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.3...5.2.4)

---
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-25 11:15:19 -04:00
Daniel Shokouhi ff20e4502b
Some NFC fixes for Android 12 (#1830) 2021-10-24 18:48:09 -04:00
Daniel Shokouhi e1cc6c8dcb
Check for Galaxy Wearable app as well for Galaxy Watch 4 users (#1826) 2021-10-23 22:51:23 -04:00
Daniel Shokouhi 578ec93c78
Add reconfiguration and description to widgets for Android 12 (#1825) 2021-10-23 22:50:58 -04:00
Daniel Shokouhi 406da5c86e
Update the high accuracy sensor when we receive a notification command (#1821)
* Update the high accuracy sensor when we receive a notification command

* Review comments

* Remove sensor maanger
2021-10-23 16:35:40 -04:00
Daniel Shokouhi 6b43dfba64
Set the correct export flag for QS tiles (#1824) 2021-10-23 13:47:19 -04:00
Daniel Shokouhi 6d9e4cd3b3
Fix NFC activity due to missing pending intent flag (#1823) 2021-10-23 13:46:23 -04:00
Daniel Shokouhi 3eec7142b1
Set icon tint for priority (#1820) 2021-10-23 13:44:01 -04:00
Daniel Shokouhi 430740ca4e
Migrate welcome fragment to use jetpack compose (#1818)
* Migrate welcome fragment to use jetpack compose

* Ditch XML
2021-10-22 12:19:11 -04:00
amadeo-alex 7023702a46
Sensor detail long description fix (#1817)
* added custom preference with max summary length of 64 lines

* replaced summary preference with SensorDetailDescriptionPreference

* fixed formatting according to ktlintCheck
2021-10-22 08:36:34 -04:00
Daniel Shokouhi e3cc165c79
Only load MDI icons on wear, otherwise load default (#1816)
* Only load MDI icons on wear, otherwise load default

* Combine conditions

* Update wear/src/main/java/io/homeassistant/companion/android/viewHolders/EntityButtonViewHolder.kt

Co-authored-by: Justin Bassett <bassett.justint@gmail.com>

Co-authored-by: Justin Bassett <bassett.justint@gmail.com>
2021-10-21 00:39:43 -04:00
Daniel Shokouhi 95bc2a184f
Updates for Android 12 (#1807)
* Updates for Android 12

* Fix notification actions

* Final missing pending intent flag
2021-10-20 23:40:08 -04:00
Justin Bassett ca9706b1af
Make sure device supports CookieManager before using. (#1815) 2021-10-20 23:25:37 -04:00
Daniel Shokouhi f7883bebc5
Add Wear OS Settings section (#1796)
* Add Wear OS Settings section

* Fix minimal build

* Fix PR build and hide category by default

* Mention Wear OS app is only offered as a beta in case user is unable to install

* Review comments
2021-10-20 22:34:29 -04:00
Daniel Shokouhi 5c9a1f5ed1
Add a setting to enable auto play videos on lovelace (#1792)
* Add a setting to enable auto play videos on lovelace

* Flip condition
2021-10-20 18:17:37 -04:00
uvjustin 7f9e30db97
Update ExoPlayer load and playback options (#1808) 2021-10-20 17:54:26 -04:00
leroyboerefijn 652b8eb576
Support custom icons (#1799) 2021-10-20 17:52:58 -04:00
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