Commit graph

666 commits

Author SHA1 Message Date
Justin Bassett 0555367c65
Move Strings to Common (#1971)
* Move all strings to common to make translations easier.

* Update lokalise github action.
2021-11-27 20:34:04 -05:00
dependabot[bot] a0a50c8bd3
Bump sentry-android from 5.4.1 to 5.4.2 (#1968)
Bumps [sentry-android](https://github.com/getsentry/sentry-java) from 5.4.1 to 5.4.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/5.4.1...5.4.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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-27 14:35:20 -05:00
dependabot[bot] ded624d1a0
Bump hilt-android from 2.40.1 to 2.40.2 (#1965)
* Bump hilt-android-gradle-plugin from 2.40.1 to 2.40.2

Bumps [hilt-android-gradle-plugin](https://github.com/google/dagger) from 2.40.1 to 2.40.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.40.1...dagger-2.40.2)

---
updated-dependencies:
- dependency-name: com.google.dagger:hilt-android-gradle-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump hilt-android from 2.40.1 to 2.40.2

Bumps [hilt-android](https://github.com/google/dagger) from 2.40.1 to 2.40.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.40.1...dagger-2.40.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>

* Bump hilt-android-compiler from 2.40.1 to 2.40.2

Bumps [hilt-android-compiler](https://github.com/google/dagger) from 2.40.1 to 2.40.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.40.1...dagger-2.40.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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Justin Bassett <bassett.justint@gmail.com>
2021-11-27 14:34:58 -05:00
Timothy Kist a42cb8ab05
Add Wear OS battery sensors (#1890)
* Move database to common module

* Fix lint

* Better kapt error reporting

* Alias common module's resources into app

* Move base sensor receiver & worker to common module

* Add sensor receiver & worker to wear module

* Schedule sensors Worker on app start up

* Export the SensorReceiver in the wear manifest

* Upgrade base and wear sensors Receivers and Workers to Hilt + hoist updateSensors to sensors Receiver base + introduce base location manager + fix minimal sensor stubs

* Re-add important battery sensor info

* Remove unused imports

* Listen for battery updates in wear app

* Listen for screen updates in wear app

* Fix ktlint

* Add sensors to wear OS on home screen

* Stop listening to screens and power save mode

The sensor isn't added yet

* Remove commented code due to absent sensors... for now. Mwahahaha!

* Remove unused import
2021-11-27 13:08:26 -05:00
Justin Bassett 196c30f8e8
Multiple Bug Fixes (#1962)
* Fix startup crash if we can't connect to core.
Default the version if we fail to get a new one.

* Fix issue with not registering location zones.

* ktlint

* Fix minimal version.
2021-11-22 23:06:19 -05:00
Daniel Shokouhi a88704ae24
Editing wear favorites from the phone (#1908)
* Begin work on editing favorites from the phone

* Get list of entities and show alongside favorites

* Fix minimal build

* Fix minimal build again

* Another fix attempt

* Lint

* Send and save favorites from phone to wear

* Add TopAppBar, make row clickable, minor clean up

* Add landing view, navigation and major cleanup

* Add some previews, fix missing entities, more refactoring

* Remove unused method

* Remove TODOs

* Switch to hilt

* Review comments: Fix favorite deselection, update favorits in onResume

* Review comment: remove unused code

* Review comments

* More review comments

* Correct spelling

* Apply code review to PhoneSettingListener

* Remove unneeded thread calls
2021-11-22 20:51:48 -05:00
Daniel Shokouhi 8e3e2efea7
Fix NFC crash when inside read fragment (#1956) 2021-11-22 20:35:12 -05:00
dependabot[bot] aa180a8fc3
Bump okhttp from 4.9.2 to 4.9.3 (#1952)
Bumps [okhttp](https://github.com/square/okhttp) from 4.9.2 to 4.9.3.
- [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.2...parent-4.9.3)

---
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-11-22 20:34:52 -05:00
Lasse Rosenow 50687f82c7
Feature/show launch screen behind webview (#1950)
* Show launch screen behind webview

* Remove import

* Fix imports

* Fix color

* Fix color

* Fix color

* Fix api 26

* Change logic to always draw status and navigation bar colors like the web app

* Remove import

* Fix lint

* Remove println
2021-11-22 20:33:44 -05:00
dependabot[bot] 40e7907dbd
Bump sentry-android from 5.4.0 to 5.4.1 (#1945)
Bumps [sentry-android](https://github.com/getsentry/sentry-java) from 5.4.0 to 5.4.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.4.0...5.4.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-11-20 15:50:56 -05:00
Justin Bassett e7bbceb0a9
Instant Update Widgets (#1944)
* Migrate TemplateWidget.kt to use websockets for updates!

* Move EntityWidget.kt to use websockets.

* Got everything compiling after rebase.

* Ensure we really only have one Websocket!

* Make sure the first widget also gets instant updates.
2021-11-19 00:06:27 -05:00
Daniel Shokouhi e4cbd9cf8b
Fix forwarding HA instance to wear after settings introduction (#1942) 2021-11-18 20:58:41 -05:00
Lasse Rosenow 211331c309
Remove startup activity animation (#1941) 2021-11-18 20:58:06 -05:00
Lasse Rosenow 678a35f3ce
Change navigation bar background color to be the same as the app's background color (#1939)
* Fix navigation bar background color

* Fix ktlint
2021-11-18 20:55:45 -05:00
Lasse Rosenow ec51b68f78
Add launch screen for phone app (#1938)
* Add launch screen

* Fix light status/navigation bars

* Add launch screen background color

* Fix dark color and api 31
2021-11-18 20:53:54 -05:00
Justin Bassett 672e49b6fb
Hilt Upgrade (#1933)
* Onboarding and webview work with Hilt!

* App fully on Hilt, next up Wear OS!

* Wear now on Hilt.

* Upgrade hilt.
Fix lint errors.
2021-11-16 11:06:19 -05:00
dependabot[bot] 912ae9605b
Bump dagger-compiler from 2.40 to 2.40.1 (#1929)
Bumps [dagger-compiler](https://github.com/google/dagger) from 2.40 to 2.40.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.40...dagger-2.40.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-11-15 18:04:51 -05:00
dependabot[bot] c7c6248345
Bump kotlin-stdlib-jdk8 from 1.5.31 to 1.6.0 (#1932)
Bumps [kotlin-stdlib-jdk8](https://github.com/JetBrains/kotlin) from 1.5.31 to 1.6.0.
- [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-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-15 18:04:35 -05:00
dependabot[bot] b88d7f6830
Bump community-material-typeface from 5.8.55.0-kotlin to 6.4.95.0-kotlin (#1930)
Bumps [community-material-typeface](https://github.com/mikepenz/Android-Iconics) from 5.8.55.0-kotlin to 6.4.95.0-kotlin.
- [Release notes](https://github.com/mikepenz/Android-Iconics/releases)
- [Changelog](https://github.com/mikepenz/Android-Iconics/blob/develop/gradle-release.gradle)
- [Commits](https://github.com/mikepenz/Android-Iconics/commits)

---
updated-dependencies:
- dependency-name: com.mikepenz:community-material-typeface
  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>
2021-11-15 18:04:08 -05:00
dependabot[bot] 06926ffd38
Bump dagger from 2.40 to 2.40.1 (#1927)
Bumps [dagger](https://github.com/google/dagger) from 2.40 to 2.40.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.40...dagger-2.40.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-11-15 18:03:10 -05:00
dependabot[bot] 59d6939bb8
Bump kotlin-reflect from 1.5.31 to 1.6.0 (#1922)
Bumps [kotlin-reflect](https://github.com/JetBrains/kotlin) from 1.5.31 to 1.6.0.
- [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-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-15 17:36:06 -05:00
dependabot[bot] c0920928fd
Bump iconics-core from 5.3.2 to 5.3.3 (#1921)
Bumps [iconics-core](https://github.com/mikepenz/Android-Iconics) from 5.3.2 to 5.3.3.
- [Release notes](https://github.com/mikepenz/Android-Iconics/releases)
- [Changelog](https://github.com/mikepenz/Android-Iconics/blob/develop/gradle-release.gradle)
- [Commits](https://github.com/mikepenz/Android-Iconics/compare/v5.3.2...v5.3.3)

---
updated-dependencies:
- dependency-name: com.mikepenz:iconics-core
  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-11-15 17:34:35 -05:00
dependabot[bot] bba76f4c84
Bump sentry-android from 5.3.0 to 5.4.0 (#1920)
Bumps [sentry-android](https://github.com/getsentry/sentry-java) from 5.3.0 to 5.4.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.3.0...5.4.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-11-15 17:34:12 -05:00
Daniel Shokouhi 38c627f9e7
Check cover state in QS tiles (#1914) 2021-11-14 11:35:19 -05:00
Daniel Shokouhi ec29a1e3ae
Use default trigger range if field is left blank for high accuracy mode (#1913) 2021-11-14 11:25:43 -05:00
Justin Bassett 70e441f9ce
Initial support for websocket state changed events! (#1906) 2021-11-11 16:09:44 -05:00
Daniel Shokouhi 55a9c51250
Clean up welcome and notification details compose views (#1902)
* Clean up welcome and notification details compose views

* Remove parcel data as its not necessary
2021-11-11 12:48:33 -05:00
Justin Bassett ba8345a3cf
Initial WebSocket Implementation (#1884)
* Initial setup of WebSockets!

* Got some good sets of table tennis going.

* Move to a more kotlin friendly way to lock.

* Functional get config call.

* Remove testing function.

* Linting.

* Migrate get config calls to websockets!

* Working retries.

* Get services now as websocket request.

* Remove unused service call via api.

* Fix issue with widget not prompting the correct items.

* Migrate to websocket get states.

* ktlint.

* Review Comments.
2021-11-09 20:44:05 -05:00
dependabot[bot] a45fe24a6b
Bump accompanist-appcompat-theme from 0.20.0 to 0.20.2 (#1888)
Bumps [accompanist-appcompat-theme](https://github.com/google/accompanist) from 0.20.0 to 0.20.2.
- [Release notes](https://github.com/google/accompanist/releases)
- [Commits](https://github.com/google/accompanist/compare/v0.20.0...v0.20.2)

---
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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-09 09:42:40 -05:00
Lasse Rosenow dc80d31d4a
Remove automatic darkening of system bars (#1882)
* Remove automatic darkening of system bars

In modern material design the system bars should not be darker then the rest of the app.

* Fix unnecessary import
2021-11-07 21:14:45 -05:00
Daniel Shokouhi 0aece4ac3c
Request proper android 12 permissions for BLE transmitter (#1876)
* Request proper android 12 permissions for BLE transmitter

* Reorder permissions so we don't skip advertise when needed
2021-11-07 21:14:14 -05:00
nick2525 1c748663e4
fix warnings (#1867)
* fix warnings and errors

* pr fixes

Co-authored-by: nick2525 <test@test.com>
2021-11-07 20:54:16 -05:00
Justin Bassett edc41424a0
Hotfix/fix startup crash (#1873)
* Fix view binding for exo player.

* ktlint.
2021-11-04 08:56:38 -04:00
Tiger Oakes 5f87d10846
Replace kotlinx.android.synthetic with viewbinding (#1840)
* Replace kotlinx.android.synthetic with viewbinding

* Remove kotlin-android-extensions

* Replace findViewById calls with viewbinding
2021-11-03 23:01:46 -04:00
Daniel Shokouhi 2322e981a3
Bump compose libraries (#1869)
* Bump compose libraries

* Move version to inline
2021-11-03 21:48:33 -04:00
Daniel Shokouhi 4959925fd5
Add support for entity category and state class sensors (#1835)
* Add support for entity category and state class in sensors

* Add device class for signal strength sensor

* Set more state class and entity categories

* Set more categories and add option to trigger registration again

* Always register sensors during the update, remove unneeded code

* Use constants for entity category and state class

* Update logic to include checking app and HA version

* Remove additional check for HA version as it is done every 4 hours

* Only update HA version during security check when user has no sensors enabed

* Switch from pushToken to appVersion for registration check to account for minimal users

* Change logic to update based on each sensors registered app and core version

* Fix migration

* Attempt to fix migration again

* Really fix migration

* Restore time interval for testing

* Dont store app version in preferences
2021-11-02 22:05:59 -04:00
dependabot[bot] 4b72ef9a9d
Bump sentry-android from 5.2.4 to 5.3.0 (#1859)
Bumps [sentry-android](https://github.com/getsentry/sentry-java) from 5.2.4 to 5.3.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.2.4...5.3.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-11-02 21:08:38 -04:00
dependabot[bot] 6c1f1f3e0c
Bump dagger-compiler from 2.39.1 to 2.40 (#1861)
Bumps [dagger-compiler](https://github.com/google/dagger) from 2.39.1 to 2.40.
- [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.1...dagger-2.40)

---
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-11-02 21:08:18 -04:00
dependabot[bot] b36cc0a5a3
Bump dagger from 2.39.1 to 2.40 (#1860)
Bumps [dagger](https://github.com/google/dagger) from 2.39.1 to 2.40.
- [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.1...dagger-2.40)

---
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-11-02 20:58:22 -04:00
Daniel Shokouhi 1bf7caa49a
Dependency updates and minor changes to accompany them (#1865) 2021-11-02 20:57:51 -04:00
Alfiegerner f3ff0886d8
Add measured power setting to BLE transmitter (#1864)
* Add measured power setting to BLE transmitter

Revert default setting to publish with measured power of -59, in attempt to resolve issues described by #1855.

Setting added to allow override if required.

* Fix whitespace linting
2021-11-02 20:54:13 -04:00
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