Commit graph

1146 commits

Author SHA1 Message Date
dependabot[bot] e8fd1760f4
Bump okhttp from 4.9.3 to 4.10.0 (#2608)
Bumps [okhttp](https://github.com/square/okhttp) from 4.9.3 to 4.10.0.
- [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.3...parent-4.10.0)

---
updated-dependencies:
- dependency-name: com.squareup.okhttp3:okhttp
  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>
2022-06-14 13:52:56 +00:00
Joris Pelgröm 1fe299b4a1
Improve service button widget feedback state speed (#2603) 2022-06-14 09:51:20 -04:00
Tiger Oakes c5b021504d
Update delete methods in daos (#2593)
* Update delete methods in daos

* Make widgetDao.getAll a suspend function
2022-06-14 09:44:27 -04:00
dependabot[bot] 4d2d8d4178
Bump logging-interceptor from 4.9.3 to 4.10.0 (#2607)
Bumps [logging-interceptor](https://github.com/square/okhttp) from 4.9.3 to 4.10.0.
- [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.3...parent-4.10.0)

---
updated-dependencies:
- dependency-name: com.squareup.okhttp3:logging-interceptor
  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>
2022-06-14 09:41:57 -04:00
Daniel Shokouhi 827d20190a
Update changelog for week of 6/9 (#2601) 2022-06-09 15:11:20 +00:00
Daniel Shokouhi 2f588fec2d
Use minimal specific string for home wifi option on persistent connection (#2584)
* Use minimal specific string for home wifi option on persistent connection

* Review comment for consistency
2022-06-09 15:03:13 +00:00
Joris Pelgröm 574623d837
Fix slow service button widgets (#2597)
* Make service button widgets execute calls faster

* Fix service call feedback background border radius
2022-06-09 10:10:01 -04:00
Joris Pelgröm 6d1197bbdb
Fix syncing sensor enabled state if all sensors are disabled on device (#2596) 2022-06-09 10:01:56 -04:00
Joris Pelgröm dba77ee825
Use Bluetooth device address for high accuracy mode BT constraint, fixes settings crash (#2591)
* Don't include devices twice in Bluetooth list

 - Don't include Bluetooth devices twice in the devices list when using it for location-related functions. Do allow duplicates for the BT sensor for backwards compatibility.

* Switch high accuracy mode BT constraint to device address

 - Change the Bluetooth device constraint for high accuracy mode for location updates to use the Bluetooth device address instead of the device name to ensure uniqueness + fix crash in sensor settings screen
 - Set padding in Scaffold because lint doesn't seem to like ignoring it

* Migrate high accuracy mode BT constraint names to addresses

 - When enabling the high accuracy mode, make sure that all data for the Bluetooth device constraint is a Bluetooth device address and if not try to match it to a device.
 - Because the database can contain devices that are not currently paired/connected, without changing to a new setting this check always must be executed, which is why it is placed in the function for enabling the high accuracy mode.

* Also show user-friendly labels in sensor settings detail screen

 - Update the sensor settings detail screen to also show a user-friendly label for list settings on the main screen, before opening a dialog. This will use the same function as when the dialog info is populated, which simplifies code.
 - Merge SensorSettingType.LIST with other list types rows in sensor settings detail screen, remove getSettingTranslatedEntry in viewmodel which is no longer necessary.

* Fix empty Bluetooth list setting value when off
2022-06-09 10:00:05 -04:00
Joris Pelgröm 0f0edcf4a9
Bump reorderable and fix/improve design (#2587)
* Bump reorderable and fix breaking changes

* Only include reorderable with full version

* Improve "Wear Favorite Entities" screen design

 - Fix too small touch targets for dragging
 - Fix no background resulting in overlapping text when dragging
 - Update design to standard Material design
 - Re-use Composable for selected and unselected favorite entities
2022-06-09 09:54:53 -04:00
dependabot[bot] ffaf9fa11a
Bump sentry-android from 5.7.4 to 6.0.0 (#2595)
Bumps [sentry-android](https://github.com/getsentry/sentry-java) from 5.7.4 to 6.0.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.7.4...6.0.0)

---
updated-dependencies:
- dependency-name: io.sentry:sentry-android
  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>
2022-06-09 09:54:02 -04:00
Daniel Shokouhi 1190e0a302
Register for the shutdown intent to send 1 final sensor update before device restarts or powers down (#2572) 2022-06-08 09:01:32 -07:00
Daniel Shokouhi 206ea4ba5d
Update google play wear OS screenshots to match demo site functionality (#2583) 2022-06-03 16:35:23 +00:00
Joris Pelgröm db5713839d
Fix crash when notification extras cannot be mapped (#2581)
Fix crash when notification extras contain internal class
2022-06-02 22:16:36 -04:00
Justin Bassett dcfc590458
Fix issues with initing view models. (#2575)
Add missing `@AndroidEntryPoint` annotations.
2022-06-01 20:19:11 -04:00
Joris Pelgröm 1b318df578
Improve HA version check when unable to read config (#2573)
Improve HA version check when unable to connect
2022-06-01 17:47:27 -04:00
Joris Pelgröm d95ab887cb
Fix manage tiles screen crash if there are tiles, updating tiles (#2568)
* Fix crash when opening manage tiles screen if there are tiles

* Fix updating existing tiles

* Remove IO thread, not required
2022-06-01 11:34:50 -04:00
Joris Pelgröm f8a3584054
Remove specific jackson-databind dependency (#2567) 2022-06-01 11:34:38 -04:00
Justin Bassett 7e34271e56
Hotfix: Sensor DAO Injection Issues (#2566)
Fix issues with SensorDao.
2022-06-01 11:34:27 -04:00
dependabot[bot] 31ab4e822c
Bump jackson-module-kotlin from 2.13.2 to 2.13.3 (#2562)
Bumps [jackson-module-kotlin](https://github.com/FasterXML/jackson-module-kotlin) from 2.13.2 to 2.13.3.
- [Release notes](https://github.com/FasterXML/jackson-module-kotlin/releases)
- [Commits](https://github.com/FasterXML/jackson-module-kotlin/compare/jackson-module-kotlin-2.13.2...jackson-module-kotlin-2.13.3)

---
updated-dependencies:
- dependency-name: com.fasterxml.jackson.module:jackson-module-kotlin
  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>
2022-05-30 20:42:39 +00:00
dependabot[bot] 9ad8ec3def
Bump sentry-android from 5.7.3 to 5.7.4 (#2563)
Bumps [sentry-android](https://github.com/getsentry/sentry-java) from 5.7.3 to 5.7.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.7.3...5.7.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>
2022-05-30 20:21:24 +00:00
dependabot[bot] d62ae99b20
Bump kotlinx-coroutines-guava from 1.6.1 to 1.6.2 (#2560)
Bumps [kotlinx-coroutines-guava](https://github.com/Kotlin/kotlinx.coroutines) from 1.6.1 to 1.6.2.
- [Release notes](https://github.com/Kotlin/kotlinx.coroutines/releases)
- [Changelog](https://github.com/Kotlin/kotlinx.coroutines/blob/master/CHANGES.md)
- [Commits](https://github.com/Kotlin/kotlinx.coroutines/compare/1.6.1...1.6.2)

---
updated-dependencies:
- dependency-name: org.jetbrains.kotlinx:kotlinx-coroutines-guava
  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>
2022-05-30 20:19:14 +00:00
dependabot[bot] 0ef230a29c
Bump jackson-databind from 2.13.2.2 to 2.13.3 (#2561)
Bumps [jackson-databind](https://github.com/FasterXML/jackson) from 2.13.2.2 to 2.13.3.
- [Release notes](https://github.com/FasterXML/jackson/releases)
- [Commits](https://github.com/FasterXML/jackson/commits)

---
updated-dependencies:
- dependency-name: com.fasterxml.jackson.core:jackson-databind
  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>
2022-05-30 20:18:38 +00:00
dependabot[bot] 78150f4fe0
Bump kotlinx-coroutines-android from 1.6.1 to 1.6.2 (#2559)
Bumps [kotlinx-coroutines-android](https://github.com/Kotlin/kotlinx.coroutines) from 1.6.1 to 1.6.2.
- [Release notes](https://github.com/Kotlin/kotlinx.coroutines/releases)
- [Changelog](https://github.com/Kotlin/kotlinx.coroutines/blob/master/CHANGES.md)
- [Commits](https://github.com/Kotlin/kotlinx.coroutines/compare/1.6.1...1.6.2)

---
updated-dependencies:
- dependency-name: org.jetbrains.kotlinx:kotlinx-coroutines-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>
2022-05-30 20:07:31 +00:00
dependabot[bot] f7496e0b0c
Bump kotlinx-coroutines-play-services from 1.6.1 to 1.6.2 (#2558)
Bumps [kotlinx-coroutines-play-services](https://github.com/Kotlin/kotlinx.coroutines) from 1.6.1 to 1.6.2.
- [Release notes](https://github.com/Kotlin/kotlinx.coroutines/releases)
- [Changelog](https://github.com/Kotlin/kotlinx.coroutines/blob/master/CHANGES.md)
- [Commits](https://github.com/Kotlin/kotlinx.coroutines/compare/1.6.1...1.6.2)

---
updated-dependencies:
- dependency-name: org.jetbrains.kotlinx:kotlinx-coroutines-play-services
  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>
2022-05-30 15:56:12 -04:00
dependabot[bot] 82191172c4
Bump kotlinx-coroutines-core from 1.6.1 to 1.6.2 (#2557)
Bumps [kotlinx-coroutines-core](https://github.com/Kotlin/kotlinx.coroutines) from 1.6.1 to 1.6.2.
- [Release notes](https://github.com/Kotlin/kotlinx.coroutines/releases)
- [Changelog](https://github.com/Kotlin/kotlinx.coroutines/blob/master/CHANGES.md)
- [Commits](https://github.com/Kotlin/kotlinx.coroutines/compare/1.6.1...1.6.2)

---
updated-dependencies:
- dependency-name: org.jetbrains.kotlinx:kotlinx-coroutines-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>
2022-05-30 15:56:05 -04:00
Justin Bassett 11868c185c
Dependency bumps. (#2556) 2022-05-30 15:40:54 -04:00
Daniel Shokouhi 400edbd57f
Update change log for week of 5/29 (#2553) 2022-05-30 11:24:52 -07:00
Tiger Oakes f4375e4b72
Add dagger module for daos (#2541)
* Add dagger module for daos

* Update classes in common to inject daos

* Update app view models to use inject

* Use inject with widgets

* Update app activities and fragments to use inject

* Clean up imports

* Make TileExtensions use coroutines
2022-05-30 14:04:26 -04:00
Joris Pelgröm 0094f9163a
Show snackbar if sensor can't be enabled due to permissions (#2549)
- Instead of silently failing, inform the user that a sensor cannot be enabled due to missing permissions and provide a link to change the setting. If possible, name the specific permission that is required.
2022-05-29 11:27:11 -04:00
Joris Pelgröm ea55fdee35
Don't show changelog immediately on new app installs (#2548) 2022-05-29 11:23:21 -04:00
Joris Pelgröm c98b291d30
Sync sensor enabled state with core 2022.6+ (#2547)
* Sync sensor enabled state from app to core

 - Change sensor 'registered' to indicate not registered, registered as disabled or registered as enabled
 - When a sensor is disabled, set it's status as such on core 2022.6 servers
 - In the sensor registration, use the basic sensor details in case there is no info in the database that can be used

* Clean up version check

 - Now that there is a standard function to get the version, re-use it

* Improve which sensors are synced to core

 - Update database migration to reset registration state on db upgrade to make sure the information is correct for all sensors
 - Only sync sensors that are actually available on the device
 - Fix registering all sensors on core <2022.6 on app/core version change
 - Fix unnecessary sensor updates due to location sensors which are never registered always triggering update on core >=2022.6

* Sync sensor enabled state from core to app

  - After pushing app enabled changes to core, if on core 2022.6 check if the enabled state for any of the sensors is different from what is registered in the app and try to update the sensors. This is done by reading the entire config, because otherwise we wouldn't know about sensors that have been enabled and the app already updates all sensors at the same time so no need for tracking individual updates in the sensor update response.
  - Restore getting config using webhooks, because only the webhook config contains information about entity enabled state
  - Add support for opening a specific sensor's settings page, used for the notification when trying to enable a sensor that requires granting (additional) permissions
2022-05-29 11:22:52 -04:00
Tiger Oakes c532b74a94
Update compose items loops to use keys (#2544) 2022-05-29 10:32:20 -04:00
Tiger Oakes 977d367c8b
Update ManageTilesView for performance (#2540)
* Update ManageTilesView for performance

Removes blocking calls and reduces recompositions

* Don't need to double-sort

getEntities is already sorted

* Revert tile entity change

* Fix crash
2022-05-29 10:18:44 -04:00
Jannis Göing b9c1092302
Multiple media players per widget (#2534)
* Update Media Player Widget Preview

* Add support for multiple media players. optionally show media source label

* fix crop of media player widget preview image. avoid unnecessary api call's when finding active media player. add db migrations. add text color to media source label. set default value of showsource to false.

* remove placeholder source for source icon to fix widget preview
2022-05-29 08:57:52 -04:00
Justin Bassett 7b9fb83f1e
Fix build from bad merge. (#2552) 2022-05-29 08:22:46 -04:00
Thomas Sigmund 10f2e0f6b0
Add additional location setting to combine connected BT devices and entering a zone to enable high accuracy mode (#2491) 2022-05-29 07:30:36 -04:00
Tiger Oakes 7b8720963e
Create a WidgetConfigureActivity base class (#2488) 2022-05-29 07:29:12 -04:00
dependabot[bot] b7428d454b
Bump actions/setup-java from 3.2.0 to 3.3.0 (#2504)
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 3.2.0 to 3.3.0.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v3.2.0...v3.3.0)

---
updated-dependencies:
- dependency-name: actions/setup-java
  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>
2022-05-23 17:40:45 -04:00
dependabot[bot] b98bfbe59b
Bump org.jlleitschuh.gradle.ktlint from 10.2.1 to 10.3.0 (#2502)
Bumps org.jlleitschuh.gradle.ktlint from 10.2.1 to 10.3.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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-23 17:40:15 -04:00
Joris Pelgröm def3b3081f
Better SSL error handling in WebViewActivity (#2535)
- Use unique tags to allow identifying which function receives an error
 - Actually use the onReceivedSslError callback error
 - Also show SSL errors in the external auth callback
2022-05-23 17:39:26 -04:00
Joris Pelgröm a06f96fd4d
Provide Compose preview for Play Store listing screens (#2542)
* Provide Compose preview for Play Store listing screens

* Update previews for onboarding

 - Set theme correctly and show system UI
 - Add variant for dark mode

* Update Wear OS listing image

* Remove specific icon, we can use domain default
2022-05-23 17:13:31 -04:00
Joris Pelgröm cb3471ad6a
Improve time zone sensor state (#2536)
* Improve time zone sensor string

 - Update string to reflect if the time zone is using summer/daylight savings time or not
 - Use the user's language settings instead of always using English

* Keep using English for sensor state
2022-05-23 16:02:41 -04:00
Joris Pelgröm 22ee199bcd
Catch exceptions during app registration (#2533)
- Catch any exceptions thrown during app registration (after webview login) instead of crashing. There should only be a few errors possible here that are not encountered in the webview.
 - Set dialog theme to fix background on API <31
2022-05-23 16:02:12 -04:00
Joris Pelgröm f2ccd8657b
Fix widget settings scrolling with narrow buttons (#2528)
- Set the width of the LazyColumn, which provides the scrollable container for this screen, to the full width of the screen to also allow scrolling the screen when touching on the right of narrow buttons
2022-05-14 14:24:23 -04:00
Joris Pelgröm 954801b73e
Save + show crash stacktrace in app settings logs (#2527) 2022-05-14 14:23:43 -04:00
Joris Pelgröm 658f3638e0
Fix device controls crashing System UI on long press (#2513) 2022-05-14 14:15:09 -04:00
Joris Pelgröm f81989f78e
Hide hidden entities on Wear home screen (#2509) 2022-05-08 13:15:26 -04:00
Joris Pelgröm 1f95e6af87
Allow refreshing Wear template tile by tapping anywhere (#2508)
- The touch target for the refresh button is really small and there aren't any other conflicting actions, so allow tapping anywhere to refresh the content
2022-05-08 13:13:28 -04:00
Joris Pelgröm b1e48d5900
Allow setting push notification visibility/sensitivity (#2505) 2022-05-08 13:12:51 -04:00