Commit graph

1516 commits

Author SHA1 Message Date
dependabot[bot] 55fff2b87f
Bump com.google.dagger:hilt-android-compiler from 2.44.2 to 2.45 (#3330)
Bumps [com.google.dagger:hilt-android-compiler](https://github.com/google/dagger) from 2.44.2 to 2.45.
- [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.44.2...dagger-2.45)

---
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>
2023-02-14 20:35:38 -05:00
dependabot[bot] c1552e3f02
Bump io.sentry:sentry-android from 6.13.0 to 6.13.1 (#3318)
Bumps [io.sentry:sentry-android](https://github.com/getsentry/sentry-java) from 6.13.0 to 6.13.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.13.0...6.13.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>
2023-02-14 20:35:24 -05:00
dependabot[bot] 196a65013a
Bump actions/setup-java from 3.9.0 to 3.10.0 (#3317)
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 3.9.0 to 3.10.0.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v3.9.0...v3.10.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>
2023-02-14 20:35:15 -05:00
Daniel Shokouhi 8bede17fd6
Show version number in Wear OS settings (#3327) 2023-02-14 20:33:03 -05:00
Joris Pelgröm 4ae185d31d
Add Matter module preferred to manifest (#3319) 2023-02-14 20:32:46 -05:00
Daniel Shokouhi fafbfdca77
Default to carrier name when SIM sensor display name is null (#3316) 2023-02-14 20:31:01 -05:00
Joris Pelgröm f7cec0e5a2
Multiserver (#3332)
* Multiserver foundation

 - A foundation to build multiserver support on. Not ready for general use.

* Update new vehicle support

* Rebase fixes

* Multiserver settings

 - Show settings for the correct server when editing server settings from the settings

* Bind session to device/install

 - Save an install id with the app install to make sure that it isn't re-used on another device causing issues

* Add migration

 - Migrate server info from shared preferences to the database after database migration and clean up
 - Remove unused url shared preferences
 - Read/save server version from/to database

* Fix auth error when session is refreshed

* Show server name instead of URL

 - Read the server name when getting the config, and save it to the database
 - Allow the user to override the server name in the app's settings

* Multiserver notifications

 - Make notifications aware of which server sent the notification
 - Show server name in notification if more than 1 server is added to the app
 - Use the server-specific repositories when calling webhooks/authenticating/etc

* Handle multiserver in websocket worker

 - Copy the settings database row to the new server ID to allow for server-level settings (websocket) while keeping the original for app-level settings (sensor update frequency), and handle this in onboarding
 - Make the websocket worker check in on all servers and open/close connections where required
 - Add the webhook_id to websocket notifications to link them to servers
 - Update ServerManager servers to defaultServers because I'm using the same filter everywhere

* Migrate shared preferences

 - Move server-specific device name to Server and secret key to ServerConnectionInfo
 - Add a server ID key to the remaining shared preferences and migrate existing values

* Add option to delete server from settings

 - Allow deleting servers directly from the app's settings, because you might not be able to do so from the frontend.

* WebView switching and active server management

 - Allow switching which server is considered 'active' and used for the webview when loading
 - On auth errors remove the server instead of removing the URLs (?)
 - When getting external auth consider that the server might just have been removed (possible race condition from frontend which frequently causes 1 unauthorized connection when logging out)
 - Fetch config after adding a new server to fill in name and version before first use

* Sync registrations and blocking load

 - When starting the app, sync all registrations
 - Remove Wear state with server but new registration required
 - When receiving a new push token, update all registrations
 - Do a blocking load for getting the servers because otherwise the app might think it's not registered when running in the background

* Use StateFlow for the server list

 - Don't manually refresh but use a StateFlow to get updates pushed when the list of servers changes
 - Make settings use unique server keys to prevent constant remove/re-add

* Sensor updates and sync with multiple servers

 - Send sensor updates to all servers and sync changes to the app. Sensors are shared across all servers the app is connected to so changing enabled state on one server will update it for all servers.
 - Don't update sensor enabled state for location tracking directly from onboarding, this should be done in the result.
 - Remove unused SensorWithSettings class

* Send NFC tag scans to all servers

* QS tiles server selection

 - Listen to updates for a specific server
 - Allow selecting server if there is more than one

* Shortcuts server selection

 - Allow selecting server if there is more than one
 - Extract OutlinedButton with DropdownMenu for server selection to a standalone Composable
 - Update QS tiles to not automatically reset server ID when server no longer exists, align with shortcuts

* Fix revoked sessions + crashing app

 - When a session is revoked update the session object to reflect it
 - Fix app crashes on revoked sessions because of race conditions with the AlertDialog causing window active/inactive at the same time as finishing it

* Extra server onboarding tweaks

 - Skip welcome and location
 - Save/fix notification preference for minimal version

* Fix sensor state type conversion errors for new servers

 - If the state is removed but the type isn't, this can result in unwanted conversions throwing errors so remove the state type as well when copying a sensor

* Matter multiserver

 - Request specific server ID in Matter functions
 - Add server selection to shared Matter device flow

* Android Auto multiserver

 - Allow switching server in Android Auto. Defaults to active server, note that it doesn't change the default but only changes it in AA.

* Widgets server selection

 - Add server selection to all widgets and update handling to use the selected server

* Clean up TODOs out of scope

* Device controls multiserver

 - Subscribe to updates for each server that controls are added for
 - Allow managing lock screen enabled controls for each server

* Don't try to register sensors when finishing

 - Don't try to do a sensor update when finishing, as this may cause unintended use of resources we're trying to clean up (when deleting a server)

* Server-level zones and location tracking

 - Keep track of which server a zone belongs to for location tracking, and send updates only to that server
 - Add server name to zone selection setting

* Merge fix

* Show 'Activate Server' any time there are multiple servers

 - If the user is looking for the option to go to their server why hide it if it is already used, making them go back twice?

* More consistent strings

* Improve add server feedback in settings

 - Preserve the activate server before adding a new one to prevent unexpected active server changes
 - Show a Snackbar when another server is added indicating success with a button to activate it, or failure

* Remove unused ServerManager

* Fix tag import
2023-02-14 20:30:06 -05:00
dependabot[bot] 76690b371a
Bump com.github.triplet.gradle:play-publisher from 3.7.0 to 3.8.1 (#3305)
Bumps com.github.triplet.gradle:play-publisher from 3.7.0 to 3.8.1.

---
updated-dependencies:
- dependency-name: com.github.triplet.gradle:play-publisher
  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>
2023-02-06 07:41:45 -05:00
dependabot[bot] 027cdb44c9
Bump com.android.tools.build:gradle from 7.4.0 to 7.4.1 (#3300)
Bumps com.android.tools.build:gradle from 7.4.0 to 7.4.1.

---
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>
2023-02-06 07:41:38 -05:00
Daniel Shokouhi e9aab182db
Update issue template to be more specific (#3297)
* Update issue template to be more specific

* Review comments

* Remove mention of android auto for versions
2023-02-06 07:41:15 -05:00
Daniel Shokouhi 9d8055f8ce
Update change log week of 2/3 (#3307)
* Update chane log week of 2/3

* Make it clear the change is for android auto
2023-02-04 22:16:56 -05:00
dependabot[bot] 82d13d0b87
Bump com.github.ben-manes.versions from 0.44.0 to 0.45.0 (#3294)
Bumps com.github.ben-manes.versions from 0.44.0 to 0.45.0.

---
updated-dependencies:
- dependency-name: com.github.ben-manes.versions
  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>
2023-02-01 17:25:40 +00:00
dependabot[bot] df8749b924
Bump org.jlleitschuh.gradle.ktlint from 11.0.0 to 11.1.0 (#3285)
Bumps org.jlleitschuh.gradle.ktlint from 11.0.0 to 11.1.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>
2023-02-01 12:06:52 -05:00
dependabot[bot] 2fe968bd91
Bump sentry-android from 6.12.1 to 6.13.0 (#3277)
Bumps [sentry-android](https://github.com/getsentry/sentry-java) from 6.12.1 to 6.13.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.12.1...6.13.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>
2023-02-01 12:06:36 -05:00
Daniel Shokouhi 61d39fde86
Add new option to only show favorites on home screen (#3276)
* Add new option to only show favorites on home screen

* Review comments

* Review comments
2023-02-01 12:04:36 -05:00
Daniel Shokouhi 047abe93ba
Add new option to only show favorites on home screen (#3276)
* Add new option to only show favorites on home screen

* Review comments

* Review comments
2023-02-01 12:04:24 -05:00
Joris Pelgröm ef1f386ad0
Send sensor state as null if not set or blank (#3293)
Send sensor state as null if blank

 - Prevent core errors about invalid state types because of the device class/state class/unit by sending blank strings as null instead of a blank string
2023-02-01 12:03:37 -05:00
Daniel Shokouhi 152d11147a
Add a watchface complication for Assist (#3284) 2023-01-31 14:56:03 -05:00
Daniel Shokouhi d18ff2cf4e
Invalidate cache before updating camera widget (#3281) 2023-01-31 14:55:30 -05:00
Daniel Shokouhi 60f76fcd45
Add TTS notifications to Wear OS (#3266) 2023-01-31 14:18:58 -05:00
Daniel Shokouhi 3af6b007e8
Allow navigation to sensors in android auto if they contain proper attributes (#3273) 2023-01-31 14:14:50 -05:00
Joris Pelgröm bd822afaba
Tweak Matter design (#3274)
- Update images to align with Matter branding guidelines
 - Remove "shared" from screens as this flow is also used for fast pair where it makes no sense
2023-01-26 18:01:36 -05:00
Daniel Shokouhi 00588d0270
Only show not supported error after support check is complete and design tweaks (#3270)
* Only show not supported error after support check is complete

* Minor design tweaks
2023-01-26 18:01:06 -05:00
Daniel Shokouhi 65692af585
Change log week of 1/25 (#3267) 2023-01-26 08:33:32 -05:00
dependabot[bot] cfc07362e8
Bump jackson-module-kotlin from 2.13.4 to 2.13.5 (#3256)
Bumps [jackson-module-kotlin](https://github.com/FasterXML/jackson-module-kotlin) from 2.13.4 to 2.13.5.
- [Release notes](https://github.com/FasterXML/jackson-module-kotlin/releases)
- [Commits](https://github.com/FasterXML/jackson-module-kotlin/compare/jackson-module-kotlin-2.13.4...jackson-module-kotlin-2.13.5)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-25 20:32:51 -05:00
Daniel Shokouhi 6be617e666
Add ble transmitter and beacon monitor notification commands to Wear OS (#3253)
* Add ble transmitter and beacon monitor commands to Wear OS

* Move log to command check failure
2023-01-25 20:32:32 -05:00
dependabot[bot] 0a25707075
Bump firebase-appdistribution-gradle from 3.1.1 to 3.2.0 (#3255)
Bumps firebase-appdistribution-gradle from 3.1.1 to 3.2.0.

---
updated-dependencies:
- dependency-name: com.google.firebase:firebase-appdistribution-gradle
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-24 22:37:10 -05:00
Joris Pelgröm 594e6964f4
Improve state for Android Auto: translate, timestamps (#3262)
- Use string resources for common states to allow for translation
 - Format timestamps to a relative time (if recent) to make it easier to read
2023-01-24 22:37:00 -05:00
Joost Lekkerkerker 59fa25ece0
Migrated all table and column names to lower snake case (#3195)
* Migrated all table names to lower snake case

* Migrated all table names to lower snake case

* Migrated all table names to lower snake case

* Migrated all column names to lower snake case

* Migrated all column names to lower snake case

* Merged the migrations to 1 migration

* Fixed feedback

* Update migration script
2023-01-24 22:30:36 -05:00
Daniel Shokouhi 65696e891b
Make conversation activity launchable (#3254)
* Make conversation activity launchable

* Use better launcher icons per review comments

* Review comments
2023-01-24 22:27:04 -05:00
Daniel Shokouhi 96cf4f82a3
Update change log week of 1/20 (#3247)
* Update change log week of 1/20

* Tweak wording
2023-01-21 10:55:55 -08:00
Joris Pelgröm 38d394f839
Fix scene and script Android Auto actions (#3252)
- Scenes need to be turned on
 - Scripts need to be turned on and off
2023-01-21 08:01:50 -05:00
Joris Pelgröm 9e8e37a5c2
Fix conversation tile vibrate after settings split (#3246) 2023-01-20 19:59:53 +00:00
dependabot[bot] fd8f138c6c
Bump sentry-android from 6.11.0 to 6.12.1 (#3237)
Bumps [sentry-android](https://github.com/getsentry/sentry-java) from 6.11.0 to 6.12.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.11.0...6.12.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>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-20 19:17:48 +00:00
dependabot[bot] dcac0f8a42
Bump google-services from 4.3.14 to 4.3.15 (#3245)
Bumps google-services from 4.3.14 to 4.3.15.

---
updated-dependencies:
- dependency-name: com.google.gms:google-services
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-20 14:11:47 -05:00
Joris Pelgröm a4fd7d4fd8
Set Wear OAuth redirect URI automatically and catch exceptions (#3244)
- Allow the Wear support libraries to specify the redirect URI to use for OAuth login
 - Catch any exceptions that might be thrown when building an OAuth request
2023-01-20 14:11:01 -05:00
Joris Pelgröm e382a4b687
Split app-level and server-level settings (#3241)
* Move server settings to a server settings screen

 - Move server-specific settings to a new screen to be accessed from the main settings only containing server specific settings in preparation for multiserver
 - Sensors is currently not server-specific even though one setting is stored by server ID, to be fixed later

* Store app preferences in another shared preferences file

 - Store app preferences not in the integration shared preferences file, but in the shared preferences file for general prefs (it is named themes but there are already other app-level prefs in it)
 - Move Wear specific preferences to it's own repository + shared preferences file

* Improve server row with local data

 - While we don't have a server name or user name, show the registration name when available to improve the server row layout

* Simplify location permission request code

 - Remove the flexible permission requests as it isn't used in the current settings structure, only expect location permissions
 - Switch from the deprecated functions to the new flow using activity result contracts

* Remove unused string
2023-01-20 14:10:21 -05:00
Daniel Shokouhi ca8059da65
Add bluetooth skippable intents in case sensor is not enabled (#3240) 2023-01-20 14:05:10 -05:00
Anna Tikhomirova 1638c0f99e
Wi-Fi sensor improvements (#3239)
Use rssi instead of scanResults to reliably get signal strength.
Get some info (IP, link speed, frequency, signal strength) and determine connection status even if Location is disabled on a device.
2023-01-20 14:04:50 -05:00
Daniel Shokouhi cce8b60c66
Conversation tile design changes (#3233)
* Update conversation UI with speech bubble

* Clean up design, vibrate when displaying response, close activity if screen turns off

* Review comments

* Switch response side to better match frontend

* Design tweaks

* Use row padding instead of spacer
2023-01-20 14:03:30 -05:00
Daniel Shokouhi 33fc6c3779
Skip showing connection prompt when loaded URL is local or api path (#3232)
* Skip showing connection prompt when loaded URL is local or api path

* Only check first segment to limit false positives
2023-01-20 14:02:55 -05:00
Daniel Shokouhi 346ef3da5f
Initial commit of notification support on Wear OS (#3221)
* Initial commit of wear OS notifications

* Update to allow message and title

* Move constants to object to reduce imports

* Split up logic to match phone app

* Update readme and set websocket to false for wear OS

* Bump firebase BOM
2023-01-20 14:02:03 -05:00
Justin Bassett 5cd74c0179
Add and Android Auto sensor! (#3228)
* Add and Android Auto sensor!

* Fix build.

* Add version check on sensor.
2023-01-16 08:50:07 -05:00
Daniel Shokouhi 9337f6b471
Fix conversation data response type (#3231) 2023-01-16 08:49:37 -05:00
Joris Pelgröm d722a4d725
Update Compose theme adapter dependency (#3229) 2023-01-16 08:43:02 -05:00
Daniel Shokouhi d7ee395306
Fix beacon monitor not updating after move to common (#3220) 2023-01-13 18:35:35 -05:00
Daniel Shokouhi 572324afb2
Update change log week of 1/13 (#3227) 2023-01-13 13:29:24 -05:00
Justin Bassett 1e910e7ec7
Bunch of Android Auto enhancements (#3225)
* Bunch of Android Auto enhancements

* Bump icon sizes.

* Formatting.

* Review Fixes.

* Ooops.

* Missed size.
2023-01-13 13:27:35 -05:00
dependabot[bot] 3dfdc72588
Bump gradle from 7.3.1 to 7.4.0 (#3222)
Bumps gradle from 7.3.1 to 7.4.0.

---
updated-dependencies:
- dependency-name: com.android.tools.build:gradle
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-13 11:35:51 -05:00
Justin Bassett 220b73d20f
Bump a bunch of dependencies. (#3216) 2023-01-13 11:18:54 -05:00