Commit graph

1231 commits

Author SHA1 Message Date
dependabot[bot] ca6c0c505f
Bump hilt-android from 2.42 to 2.43.2 (#2754)
Bumps [hilt-android](https://github.com/google/dagger) from 2.42 to 2.43.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.42...dagger-2.43.2)

---
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>
2022-08-04 22:59:49 +00:00
Daniel Shokouhi 06b3dd386f
Update change log for week of 8/3 (#2756) 2022-08-04 15:55:35 -07:00
dependabot[bot] 3d009ac2b2
Bump firebase-appdistribution-gradle from 3.0.2 to 3.0.3 (#2762)
Bumps firebase-appdistribution-gradle from 3.0.2 to 3.0.3.

---
updated-dependencies:
- dependency-name: com.google.firebase:firebase-appdistribution-gradle
  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-08-04 22:43:47 +00:00
dependabot[bot] e34b395e50
Bump hilt-android-gradle-plugin from 2.43.1 to 2.43.2 (#2761)
Bumps [hilt-android-gradle-plugin](https://github.com/google/dagger) from 2.43.1 to 2.43.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.43.1...dagger-2.43.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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-04 22:29:02 +00:00
dependabot[bot] c45618b355
Bump hilt-android-compiler from 2.42 to 2.43.2 (#2755)
Bumps [hilt-android-compiler](https://github.com/google/dagger) from 2.42 to 2.43.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.42...dagger-2.43.2)

---
updated-dependencies:
- dependency-name: com.google.dagger:hilt-android-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>
2022-08-04 18:24:00 -04:00
dependabot[bot] 552e86f678
Bump gradle from 7.2.1 to 7.2.2 (#2760)
Bumps gradle from 7.2.1 to 7.2.2.

---
updated-dependencies:
- dependency-name: com.android.tools.build:gradle
  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-08-04 18:23:51 -04:00
dependabot[bot] d4f7f84f1d
Bump sentry-android from 6.3.0 to 6.3.1 (#2759)
Bumps [sentry-android](https://github.com/getsentry/sentry-java) from 6.3.0 to 6.3.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/6.3.0...6.3.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>
2022-08-04 18:12:54 -04:00
dependabot[bot] b7d23d1c66
Bump hilt-android-gradle-plugin from 2.42 to 2.43.1 (#2742)
Bumps [hilt-android-gradle-plugin](https://github.com/google/dagger) from 2.42 to 2.43.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.42...dagger-2.43.1)

---
updated-dependencies:
- dependency-name: com.google.dagger:hilt-android-gradle-plugin
  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-08-04 18:01:52 -04:00
dependabot[bot] cffb397ffc
Bump accompanist-appcompat-theme from 0.23.1 to 0.25.0 (#2719)
Bumps [accompanist-appcompat-theme](https://github.com/google/accompanist) from 0.23.1 to 0.25.0.
- [Release notes](https://github.com/google/accompanist/releases)
- [Commits](https://github.com/google/accompanist/compare/v0.23.1...v0.25.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>
2022-08-04 18:01:39 -04:00
Daniel Shokouhi c717e16afc
Update geocode location sensor with location updates that are sent to HA (#2757)
* Actually update geocoded sensor on location updates we send to HA

* Ensure sensor is updated before checking if we should send the update

* Move update logic to sensor receiver, ensure last sent attributes are updated
2022-08-04 18:00:07 -04:00
Daniel Shokouhi a6341251ea
Add a notification command to stop TTS (#2740) 2022-08-03 18:08:16 -04:00
Daniel Shokouhi 67d77d3b89
Restart location updates if we detect too much time passed since last update (#2732)
* Restart location updates if we detect too much time passed since last update

* Switch to last location received for proper evaluation

* Code review: move variable logic to be inside the condition
2022-08-03 18:07:11 -04:00
Joris Pelgröm 7953f81b95
Fix websocket stays subscribed after widget edit due to multiple instances (#2753)
* Fix websocket stays subscribed after widget edit due to multiple instances

 - When a widget is edited, the system will send a broadcast to _a new instance_ of the widget class. Because there is a websocket connection to keep widgets updated, the new instance of the class should also receive events to unsubscribe.

* Use companion object to prevent unnecessary updates

 - Only actually start listening for updates in one of the instances in order to prevent unnecessary duplicate widget updates
2022-08-03 18:04:50 -04:00
Daniel Shokouhi c543aff9eb
Switch to non-deprecated method to get FCM token during registration resync (#2752) 2022-08-03 18:03:30 -04:00
Daniel Shokouhi d68666dae0
Bump some app dependencies (#2751)
* Bump some phone app dependencies

* Add wear dependencies

* Bump compile SDK in common
2022-08-03 18:03:14 -04:00
Joris Pelgröm bddb3a62dd
Don't include session in backup/transfer (#2747)
- The session data is unique to the device and shouldn't be included in a backup or transfer
 - Add Android 12+ backup rules for Wear OS
2022-08-03 18:02:31 -04:00
Daniel Shokouhi d7aeb582bb
Make sure to fallback to background updates when disable is selected in high accuracy notification (#2746)
* Make sure to fallback to background updates when disable is selected in notification

* Review comment
2022-08-03 18:01:45 -04:00
Daniel Shokouhi db0ddf25c2
Actually check the paired state instead of assuming it for bluetooth connection sensor (#2738)
* Actually check the paired state instead of assuming it

* Ensure the attributes have no duplicates by making the lists distinct

* Actually check for duplicate devices to remove them

* Apply code suggestion

* Revert some changes and remove allowDuplicates per comment
2022-08-03 18:01:21 -04:00
Daniel Shokouhi 8d57290314
Add support for lock domain in QS tiles and other improvements (#2737)
* Add support for lock domain in QS tiles, change tile not setup message to be more precise

* Update dispatcher

* Review comments: Remove not setup from string, only get state if domain is lock when tile is clicked

* Remove duplicate strings
2022-08-03 18:01:13 -04:00
Joris Pelgröm 9fc98e464e
Remove error message on null template (#2735)
* Remove error message on null template

 - Null is a valid value for a template so the app should reflect that instead of suggesting there is an error, which may cause users to start looking in the wrong place.

* Log.e instead of Log.i
2022-08-03 17:59:00 -04:00
Márton Maráz 7f1677a2dd
Fix Last Notification sensor not updating when notification is repeated with the same content (#2734)
Make Sensor::lastSentState and lastSentIcon nullable, set them to null when forceUpdate = true, and make null their default value everywhere.
2022-08-03 17:58:23 -04:00
Daniel Shokouhi 90a9a27e5e
Update changelog for week of 7/21 (#2665)
* Update changelog for week of 7/9

* Add a few more changes

* Update changes for recent merges
2022-07-29 15:16:12 -07:00
Joris Pelgröm 80d05a77a9
Fix sensor re-registration on logout/login on core 2022.6+ (#2730)
- Make it possible to distinguish between unable to get response/not supported and got a response but server doesn't know about entity. If there is a response but the server doesn't know about the entity, even though it should according to the database, re-register the sensor.
2022-07-29 17:56:33 -04:00
Joris Pelgröm c7b4f229ec
Improve discovery reliability for some devices (#2718)
- Some devices (most notably Google Pixels) require manually requesting a multicast lock in order for DNS-SD to work reliably
2022-07-29 17:55:06 -04:00
Daniel Shokouhi d03eb74fa9
Improve logging and error messages during onboarding (#2716)
* Add logging in authentication fragment to print errors

* Expand error messages to contain more useful data

* Add error content to pop-up to provide more data to the user

* Show more descriptive onReceivedError message

* Ensure the correct messages are used

* Add changes from @jpelgrom to only show the error on the expected URL

* Add condition to onReceivedErrror as well
2022-07-29 17:51:44 -04:00
Joris Pelgröm 8ee0e14e12
Support downloading data URIs (#2715)
- Adds support for downloading data URIs
 - Redirect unsupported download requests to the browser (or other app that supports it)
2022-07-29 17:51:04 -04:00
Daniel Shokouhi 285adfa5ce
Allow UUID, Major and Minor to be changed via notification command (#2713)
* Allow UUID, Major and Minor to be achanged via notification command

* Ensure transmitter restarts and attributes are updated upon change
2022-07-29 17:49:38 -04:00
Daniel Shokouhi b7fc9bbcff
Use correct default value for update interval to avoid double registrations on cold start (#2712) 2022-07-29 17:48:35 -04:00
Daniel Shokouhi 4b123ef2cf
Fire an event when a notification is received (#2705)
* Add a tsetting to fire an event when a notification is received

* Add a toast message to visually notify about failure

* Remove setting and toast
2022-07-29 17:47:59 -04:00
Márton Maráz bf1b56af1d
Fix unwanted reordering of Last Update Sensor's Intent list when there are 10+ entries (#2704) 2022-07-29 17:47:12 -04:00
Joris Pelgröm 1cf3506d4b
Automatically delete 'stale'/old widgets from database (#2702)
Automatically delete stale widgets from database

 - Automatically removes widgets that are no longer bound to the widget provider but that are still in the database -> 'stale'/old widgets will no longer cause unnecessary updates
2022-07-29 17:46:02 -04:00
Joris Pelgröm 2e7c72456c
Remove external storage permission for logs, completely on Android 10+ (#2691)
- Removes the external storage permission for logs for devices on Android 6+, because the external cache dir is usable without this permission and it will no longer work when targeting Android 13 on Android 13 devices. It should work on Android 4.4 and above but this bug suggests it might not on Android 5, but it is auto-granted and needed for downloads anyway: https://issuetracker.google.com/issues/37013142.
 - Set the maximum version for the external storage permission to Android 9; starting with Android 10 the download manager will use MediaStore.Downloads which doesn't require any additional permissions.
2022-07-29 17:44:31 -04:00
leroyboerefijn e7a926396d
Implement html styling on the template tile (#2653)
* Implement styling on the template tyle

* Also process preview in phone settings

* Small cleanup

* Improve template null handling

* Update template rendering error

* Update help text to indicate new line and markup options

* Also support newline

* More extensive replacement for <br>
2022-07-29 17:42:17 -04:00
dependabot[bot] f9ceeb0d65
Bump sentry-android from 6.2.1 to 6.3.0 (#2693)
Bumps [sentry-android](https://github.com/getsentry/sentry-java) from 6.2.1 to 6.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/6.2.1...6.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>
2022-07-21 20:51:59 -04:00
Daniel Shokouhi fca56364b6
Add channel, category and group to notification sensor attributes (#2676)
* Add channel, category and group to notification sensor attributes

* Review comments
2022-07-21 20:42:44 -04:00
Daniel Shokouhi 33f6673e61
Minor location update fixes (#2670)
* Minor location update fixes

* Remove delay and use a new location intent for high accuracy updates to avoid a conflict
2022-07-21 20:41:08 -04:00
Daniel Shokouhi d072b90843
Breaking Change: Add friendly BT name next to the mac address if we have it (#2697)
* Breaking Change: Add friendly BT name next to the mac address if we have it

* Only add the name if we have it
2022-07-21 20:39:14 -04:00
Joris Pelgröm f4eea70b2c
Deprecate Android WebView quick bar gesture support (#2690)
* Deprecate WebView quick bar gesture in code

* Clarify 'up to' to exclude the mentioned version
2022-07-21 20:38:41 -04:00
dependabot[bot] f8d0d46124
Bump kotlinx-coroutines-play-services from 1.6.3 to 1.6.4 (#2685)
Bumps [kotlinx-coroutines-play-services](https://github.com/Kotlin/kotlinx.coroutines) from 1.6.3 to 1.6.4.
- [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.3...1.6.4)

---
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-07-17 03:42:40 +00:00
dependabot[bot] 41f6045557
Bump kotlinx-coroutines-android from 1.6.3 to 1.6.4 (#2678)
Bumps [kotlinx-coroutines-android](https://github.com/Kotlin/kotlinx.coroutines) from 1.6.3 to 1.6.4.
- [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.3...1.6.4)

---
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-07-17 03:32:15 +00:00
dependabot[bot] 8f2e1688db
Bump android-junit5 from 1.8.2.0 to 1.8.2.1 (#2658)
Bumps [android-junit5](https://github.com/mannodermaus/android-junit5) from 1.8.2.0 to 1.8.2.1.
- [Release notes](https://github.com/mannodermaus/android-junit5/releases)
- [Commits](https://github.com/mannodermaus/android-junit5/compare/plugin-1.8.2.0...plugin-1.8.2.1)

---
updated-dependencies:
- dependency-name: de.mannodermaus.gradle.plugins:android-junit5
  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-07-16 23:25:58 -04:00
dependabot[bot] b13f548aea
Bump kotlinx-coroutines-guava from 1.6.3 to 1.6.4 (#2679)
Bumps [kotlinx-coroutines-guava](https://github.com/Kotlin/kotlinx.coroutines) from 1.6.3 to 1.6.4.
- [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.3...1.6.4)

---
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-07-16 23:25:27 -04:00
dependabot[bot] a67b2014f9
Bump kotlinx-coroutines-core from 1.6.3 to 1.6.4 (#2677)
Bumps [kotlinx-coroutines-core](https://github.com/Kotlin/kotlinx.coroutines) from 1.6.3 to 1.6.4.
- [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.3...1.6.4)

---
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-07-16 23:24:38 -04:00
dependabot[bot] 0503214079
Bump sentry-android from 6.1.4 to 6.2.1 (#2672)
Bumps [sentry-android](https://github.com/getsentry/sentry-java) from 6.1.4 to 6.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/6.1.4...6.2.1)

---
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>
2022-07-16 23:24:21 -04:00
dependabot[bot] 36cee5cd04
Bump actions/setup-java from 3.4.0 to 3.4.1 (#2671)
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 3.4.0 to 3.4.1.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v3.4.0...v3.4.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>
2022-07-16 23:24:11 -04:00
Daniel Shokouhi 84efb2a367
Fix last update add new intent toggle not showing up on new installs (#2674)
* Fix last update add new intent toggle not showing up on new installs

* Only add the toggle if it does not yet exist

* Efficiency
2022-07-16 23:23:47 -04:00
Joris Pelgröm 0e0994de7f
Add camera device control (#2663)
* Add camera device control

 - Adds a camera device control on supported devices (12+)
 - Update content description for camera widget

* Improve Icon if downloading thumbnail fails

 - Show a blank grey thumbnail like an empty tile if downloading the camera thumbnail fails, because the system will stretch the provided image so a 'proper' icon can end up looking weird

* Improve error handling
2022-07-09 15:29:47 -04:00
Joris Pelgröm 9474675a88
Migrate SSID dialog to Compose, move + rename prioritize internal (#2662)
* Migrate SSID dialog to Compose, move + rename prioritize internal

 - Replaces the SSID dialog with a new screen built with Compose (same functionality as before)
 - Move the prioritize internal setting to the new SSID screen where it makes more sense, and rename it + style it as a dropdown to prevent unnecessary changes

* Remove unused Spacer
2022-07-09 15:26:56 -04:00
Márton Maráz 4bf88ac907
Show the charging state on the Battery Level sensor's icon (#2661)
* Show the charging state on the Battery Level sensor's icon.
A different icon will be shown for wired and wireless charging.
From now on, changing only the icon (but not the state) of a sensor will trigger sending an update to the server.
A new DB property called last_sent_icon is added, thus a DB migration is needed.

* Merge SensorDao.updateLastSendState(…) and updateLastSentIcon(…) methods to updateLastSentStateAndIcon(…)
2022-07-09 14:19:23 -04:00
Daniel Shokouhi 0883ada422
Update changelog for week of 7/1 (#2652)
* Update changelog for week of 7/1

* Add wear OS changes to changelog

* Split Wear OS changes to its own section
2022-07-01 10:53:10 -07:00