Commit Graph

1900 Commits

Author SHA1 Message Date
Joris Pelgröm
6d457cf718
Update/replace deprecations in common module (#3698) 2023-07-24 10:29:03 -04:00
Daniel Shokouhi
2f042ae56f
Match android auto dependency versions (#3695) 2023-07-24 10:28:20 -04:00
Daniel Shokouhi
a214e327dc
Update change log week of 7/21 (#3691)
* Update change log week of 7/21

* Review comment

* Mention favorites
2023-07-21 17:21:58 -07:00
Joris Pelgröm
42ede5344c
Text field consistency updates (#3693)
* Replace OutlinedTextField with TextField

* Text field consistency updates

  - Replace `OutlinedTextField` with the filled `TextField`
  - Replace server dropdown button with server dropdown menu
2023-07-21 19:28:58 -04:00
Joris Pelgröm
e4f697fc3b
Resume Assist voice input on new intent (as assistant app/brought to front) (#3692)
* Resume Assist voice input on new intent (as assistant app/brought to front)

* Use constants for android.intent.action.ASSIST

 - android.intent.action.VOICE_ASSIST is marked as internal
2023-07-21 14:11:57 -04:00
Daniel Shokouhi
605e6ec914
Add favorites selection for Android Auto (#3670)
* Add favorites selection for Android Auto

* Move reorderable to implementation

* Small clean up

* Hide from minimal build

* Show on automotive builds and change some titles to match that device

* Update strings to be more precise about driving optimized

* Review comments

* Switch from string set to string to preserve order

* Move some conversion logic to PrefsRepository

* clean up

* Review comments

* Consistency updates
2023-07-21 14:11:14 -04:00
Daniel Shokouhi
455da053d1
Add sensors to report car energy profile (#3688) 2023-07-20 21:50:48 -04:00
Daniel Shokouhi
c02025e0f8
Only add up to the allowed limit of list items to android auto (#3687) 2023-07-20 21:47:42 -04:00
Joris Pelgröm
f4eb29cee3
Don't send group summary notifications to Android Auto (#3686)
Don't send group notifications to cars
2023-07-20 21:45:27 -04:00
Daniel Shokouhi
8cc594e945
Only show unit of measurement if we have it and if the state is not a string while managing sensors (#3685)
* Only show unit of measurement if we have it and if the state is not a string

* Remove parentheses
2023-07-20 21:44:37 -04:00
dependabot[bot]
7e12eaee3a
Bump io.sentry:sentry-android from 6.25.2 to 6.26.0 (#3682)
Bumps [io.sentry:sentry-android](https://github.com/getsentry/sentry-java) from 6.25.2 to 6.26.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.25.2...6.26.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-07-20 07:03:10 -04:00
Daniel Shokouhi
d421b88db2
Send state based on reported status, apply car prefix to car sensors, add some logging around new car sensors (#3668)
* Apply car prefix to car sensors, add some logging around new car sensors

* Update state based on reported status, minor clean up

* Make code more concise per review comment

* Use unavailable when status is not given
2023-07-19 16:18:05 -04:00
Justin Bassett
c4da52bdab
Hilt Dependency Update (#3681)
* Bump com.google.dagger:hilt-android-gradle-plugin from 2.46.1 to 2.47

Bumps [com.google.dagger:hilt-android-gradle-plugin](https://github.com/google/dagger) from 2.46.1 to 2.47.
- [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.46.1...dagger-2.47)

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

* Bump com.google.dagger:hilt-android-compiler from 2.46.1 to 2.47

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

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

* Bump com.google.dagger:hilt-android from 2.46.1 to 2.47

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

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

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-19 15:35:11 -04:00
dependabot[bot]
d50fc04ce9
Bump io.sentry:sentry-android from 6.25.1 to 6.25.2 (#3672)
Bumps [io.sentry:sentry-android](https://github.com/getsentry/sentry-java) from 6.25.1 to 6.25.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/6.25.1...6.25.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>
2023-07-18 18:44:37 -04:00
Joris Pelgröm
7b79024c1b
Update Thread network sync to update/delete HA networks (#3676) 2023-07-18 18:43:39 -04:00
Joris Pelgröm
ef916f606b
Breaking change: support last_used/preferred pipeline IDs and use last_used by default (#3669)
Support last_used/preferred pipeline IDs and use last_used by default
2023-07-18 18:42:36 -04:00
Joris Pelgröm
00c2ef6d9e
Add toggle for Assist as assistant app on Wear (#3663)
Add toggle for assistant app intent filter on Wear

 - Adds a toggle for enabling/disabling Assist as an assistant app (= intent filter on Assist activity), as users may not be able to change the app used after choosing 'Always' and Wear OS 2 doesn't ask the user which app to use which can result in Assist instead of the Google Assistant being forced.
2023-07-17 08:10:15 -04:00
Joris Pelgröm
cd62f17fac
Use new entity picker for more settings (#3662) 2023-07-17 08:08:51 -04:00
Joris Pelgröm
bc103636db
Update/replace deprecations in app module (#3661) 2023-07-17 08:08:20 -04:00
drosoCode
33dfc69949
Add CarInfo sensors (#3399)
* Add CarInfoSensorManager

* use overrideLibrary instead of increasing minSdk

* use fullImplementation

* ensure that the sensor is enabled

* check sensorid for required permissions

* fix formatting

* start app notification

* merge CarInfoSensorManager into AndroidAutoSensorManager

* fix formatting

* fix merge error

* add other sensors

car name, manufacturer, manufacturing year, odometer, ev status (connected, charging port open/close)

* prevent multiple notifications

* apply review comments

* add "needs to be started" state to sensors

* apply review comments

* add android auto channel

* set car battery level as diagnostic sensor

* remove onNewIntent (not needed)

* formatting

* remove notification code

* replace "android_auto" prefix by "car"

* move carinfo sensors to main instead of full

* move android car sdk override to main

* update unavailable message

* add hasSensor method

* hide sensors for automotive

* move automotive check and limit sensors to full version

* remove _level from sensor names and ids

* remove alreadySentMessage
2023-07-17 08:05:00 -04:00
Daniel Shokouhi
4b1be89fc5
Update change log week of 7/14 (#3660)
* Update change log week of 7/14

* Update version number and replace Phone with Main
2023-07-14 16:44:02 -07:00
dependabot[bot]
2804e7c4a8
Bump io.sentry:sentry-android from 6.25.0 to 6.25.1 (#3658)
Bumps [io.sentry:sentry-android](https://github.com/getsentry/sentry-java) from 6.25.0 to 6.25.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.25.0...6.25.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-07-14 15:35:52 -04:00
Daniel Shokouhi
8e55e57897
Hide android auto sensor section from devices that do not support it (#3657) 2023-07-14 15:34:22 -04:00
Joris Pelgröm
9d64260e1f
Implement a frontend-like single entity picker (#3653)
* Implement a frontend-like single entity picker

 - Adds a new Composable `SingleEntityPicker` which aims to provide a text input with autocomplete search for entities like the frontend, where you can pick one

* Improve filtering to allow suggestions with space, searching for entity IDs

 - Trim search input so the space automatically added after an IME suggestion is ignored
 - Also search entity ID but sort those results second, friendly name keeps priority
2023-07-14 15:34:05 -04:00
Joris Pelgröm
dbae8d2613
Assistant app intent fallback to 'safe' intent if not found (#3654)
- It looks like not all devices keep the original settings names, fallback to the 'manage default apps' intent if we cannot directly open the screen for the assistant app setting
2023-07-11 19:50:37 +00:00
Daniel Shokouhi
23c35af6a2
Force update on media session sensor when a session is in progress (#3652)
* Force update on media session sensor when a session is in progress

* Switch logic to only update when media is actively playing
2023-07-11 14:16:23 -04:00
Joris Pelgröm
f17a9d338d
Don't show assistant app suggestion on L, show on M (#3646)
- Don't suggest setting HA as the assistant app on Android L as this setting doesn't exist yet
 - Allow suggesting setting HA as the assistant app on Android M as this setting was added in M
2023-07-09 17:32:01 -04:00
Joris Pelgröm
8bf32b30e9
Minor update to Auto(motive) login screen (#3647) 2023-07-09 17:31:27 -04:00
Bassett, Justin
482414f62a Fix incorrect if on creating github pre-release. 2023-07-09 08:37:41 -04:00
Bassett, Justin
024df4be32 Manually trigger the weekly release workflow. 2023-07-09 08:16:02 -04:00
Daniel Shokouhi
8ad07f4b16
Fix broken Wear OS docs link in settings (#3644) 2023-07-09 01:39:16 +00:00
Daniel Shokouhi
4ef79b8e1e
Update change log week of 7/7 (#3643) 2023-07-07 20:10:26 -07:00
dependabot[bot]
0d8ae72922
Bump io.sentry:sentry-android from 6.24.0 to 6.25.0 (#3637)
Bumps [io.sentry:sentry-android](https://github.com/getsentry/sentry-java) from 6.24.0 to 6.25.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.24.0...6.25.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-07-07 11:57:14 -04:00
dependabot[bot]
9029f098d0
Bump com.google.guava:guava from 32.0.1-android to 32.1.1-android (#3630)
* Bump com.google.guava:guava from 32.0.1-android to 32.1.1-android

Bumps [com.google.guava:guava](https://github.com/google/guava) from 32.0.1-android to 32.1.1-android.
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

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

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

* Add dependency resolution strategy per release notes

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Joris Pelgröm <joris.pelgrom@gmail.com>
2023-07-07 11:56:59 -04:00
dependabot[bot]
7a8247caf9
Bump org.altbeacon:android-beacon-library from 2.19.5 to 2.19.6 (#3629)
* Bump org.altbeacon:android-beacon-library from 2.19.5 to 2.19.6

Bumps [org.altbeacon:android-beacon-library](https://github.com/AltBeacon/android-beacon-library) from 2.19.5 to 2.19.6.
- [Release notes](https://github.com/AltBeacon/android-beacon-library/releases)
- [Changelog](https://github.com/AltBeacon/android-beacon-library/blob/master/CHANGELOG.md)
- [Commits](https://github.com/AltBeacon/android-beacon-library/commits)

---
updated-dependencies:
- dependency-name: org.altbeacon:android-beacon-library
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* Remove unused beacon library in app/automotive, add appcompat to common

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Joris Pelgröm <joris.pelgrom@gmail.com>
2023-07-07 11:53:39 -04:00
Joris Pelgröm
0949d570d5
Add Android Auto notification extension (#3642)
Add Auto notification extension + vector icon

 - Add an option to have notifications show up on Android Auto
 - Apply color filter to MDI notification icons as Android Auto doesn't make them white
 - Switch default notification icon for vector icon
2023-07-07 11:51:10 -04:00
Joris Pelgröm
ef469fb977
Only invalidate vehicle template UI when contents change (#3641)
* Don't invalidate Auto main screen if domains don't change

* Don't invalidate Auto domain/map screen if contents don't change
2023-07-07 11:43:36 -04:00
Joris Pelgröm
774e89c58e
Implement suggestion area in app settings (#3640)
Implement suggestion area in settings

 - Add a suggestion area to the top of the main app settings screen where very important settings can be promoted; to start setting HA as assistant app and enabling the notification permission
2023-07-07 11:41:35 -04:00
Joris Pelgröm
e53533ed4a
Fix Thread sync throwing exception sometimes crashing app (#3634)
- Thread credential syncing uses the provided CoroutineScope to run other functions that throw exceptions. When using a normal Job a thrown exception will mean that everything in that scope is cancelled and propagates, even if caught. That isn't wanted so use a SupervisorJob instead when running this function to make sure that when caught nothing else stops.
2023-07-07 11:30:33 -04:00
dependabot[bot]
be022a5272
Bump org.jlleitschuh.gradle.ktlint from 11.4.2 to 11.5.0 (#3632)
Bumps org.jlleitschuh.gradle.ktlint from 11.4.2 to 11.5.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-07-04 13:26:04 -04:00
Joris Pelgröm
d1b17aa606
Jetpack Compose icon dialog (#3631)
* Add icon dialog based on Jetpack Compose

TODO

* Migrate to new icon dialog

* Migrate old database

* Don't wrap with drawablecompat

* Rebase fixes and updates

 - Fix and update database migration
 - Fix dependencies
 - Fix shortcut icons
 - Fix ComposeView in AlertDialog not working by switching implementation to DialogFragment
 - Fix icons that no longer exist
 - ktlint

* Visual compatibility

 - Automotive asset
 - Handle icon ids in shortcuts to prevent users losing icons when updating shortcuts
 - Add padding, color filter to shortcut icons to keep icons consistent with older icons
 - Increase button widget icon padding to keep sizing consistent
 - Add tip to dialog about searching in non-English languages

* Fix line endings

---------

Co-authored-by: Tiger Oakes <contact@tigeroakes.com>
2023-07-04 13:25:32 -04:00
Justin Bassett
938c515549
Allow weekly workflow to start push workflow
https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#triggering-a-workflow-from-a-workflow
2023-07-02 15:54:43 -04:00
Justin Bassett
39269d065c
Use old logic for promoting from internal to beta 2023-07-01 07:07:24 -04:00
Joris Pelgröm
ce3a51e417
Fix monthly tag (#3628) 2023-07-01 06:25:21 -04:00
Justin Bassett
7a7464c070
Bump dependency versions. (#3627) 2023-07-01 01:14:24 +00:00
Daniel Shokouhi
ba2e9c975f
Update change log week of 6/30 (#3626)
* Update change log week of 6/30

* Add extra PR.

---------

Co-authored-by: Justin Bassett <bassett.justint@gmail.com>
2023-07-01 00:48:19 +00:00
Joris Pelgröm
3338437e7d
Support sensor display precision (#3625)
* Support sensor display precision

* Apply Lint suggestion in same function
2023-06-30 20:04:56 -04:00
Joris Pelgröm
8dbdfebb7b
Hide a few GMS features unavailable on Automotive (#3623) 2023-06-30 18:26:20 -04:00
Justin Bassett
b0a7641a1a
Fix dirty SCM (#3624)
* Add `git status` check to determine what's dirty.

* Put the locale stuff in the app/wear folders rather than common with the real data.

* Revert "Add `git status` check to determine what's dirty."

This reverts commit 8513c0b09f.

* Leave the git status check for sanity later.
2023-06-30 21:09:13 +00:00
Justin Bassett
bd7c02c30d
Make sure our credential files are ignored from SCM. (#3617) 2023-06-29 23:29:01 -04:00