Commit graph

27 commits

Author SHA1 Message Date
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 7a7464c070
Bump dependency versions. (#3627) 2023-07-01 01:14:24 +00:00
Justin Bassett 0ef3bc4461
First attempt at a new release model. (#3597)
* First attempt at a new release model.

* Fix bad syntax

* Bump year and month with another job

* Use the plugin's version in apps.

* Make sure to generate the pre release weekly.

* Review Comments.
2023-06-26 09:05:17 -04:00
dependabot[bot] 47dafe6632
Bump io.sentry:sentry-android from 6.23.0 to 6.24.0 (#3603)
Bumps [io.sentry:sentry-android](https://github.com/getsentry/sentry-java) from 6.23.0 to 6.24.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.23.0...6.24.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-06-25 22:01:03 -04:00
dependabot[bot] 16eabfe34f
Bump io.sentry:sentry-android from 6.21.0 to 6.23.0 (#3590)
Bumps [io.sentry:sentry-android](https://github.com/getsentry/sentry-java) from 6.21.0 to 6.23.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.21.0...6.23.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-06-19 14:51:41 -04:00
dependabot[bot] 30024d5255
Bump org.jetbrains.kotlin:kotlin-stdlib from 1.8.21 to 1.8.22 (#3573)
Bumps [org.jetbrains.kotlin:kotlin-stdlib](https://github.com/JetBrains/kotlin) from 1.8.21 to 1.8.22.
- [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
  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-06-19 14:51:20 -04:00
Joris Pelgröm 1cae83c40e
Implement native Assist (#3589)
* Native Assist setup + text input

* Minor (text input) UI tweaks and fixes

 - Set a very light window tint to increase contrast on white backgrounds
 - Keyboard to outline for consistency
 - Text input: keyboard action, keyboard icon to outline for consistency, show keyboard when switching
 - Fix reset conversation on recreation

* Voice input

 - Add basic voice input support to the native Assist interface

* Voice input bugfixes

 - Don't block voice output while sending data via websocket
 - Drop voice output data if there is a subscriber and the buffer is full by specifying a buffer + overflow strategy that matches behavior when there are no subscribers
 - Properly stop AudioRecord reading when job is cancelled (non-suspending function)
 - Stop recorder before stopping output collection

* Voice responses (generated TTS) playback

 - Play received tts-end events when using voice input
 - Update permission info on resume to catch granted permissions while in the background

* Pipeline switcher

 - Allow switching between all different pipelines
 - Add icon content descriptions

* Check + show attribution

* Prevent sheet that is too high pushing controls away

* UI feedback: pipelines and attribution

* Update Automotive manifest

* Fix speech bubble size for larger responses

* Update manifest to handle tasks/backstack better

 - Set the affinity to a value to make sure Assist is always launched in another task than the main app
 - Automatically remove from recents as Assist will be the only thing in it's task, after finishing there's nothing left to (re)start

* App-specific feature checks and error handling

 - Check for microphone support on device
 - Handle connectivity errors
 - Handle argument errors
 - Handle errors for pipelines that are no longer visible

* More UI feedback

 - Add a title to the sheet to make sure people know this is the Home Assistant app
 - Fix TextField alignment

* More header means max height adjustment
2023-06-19 14:50:06 -04:00
Joris Pelgröm b586bf9955
Update manifest for Matter commissioning (#3586)
https://developers.home.google.com/matter/apis/home#calling_other_android_apps
2023-06-19 14:10:53 -04:00
Joris Pelgröm e8fae5dc50
Move vehicle service to main to allow for minimal Automotive build (#3570)
* Move vehicle service to minimal to allow for minimal Automotive build

 - Move the vehicle package from full to main so it is included in the minimal build as well, to allow for a minimal Automotive build
 - Adjust dependencies from full to any version (checked: the androidx.car dependency does not have a dependency on any GMS libraries)
 - Move Automotive CarAppActivity + service + metadata to main manifest; not moved in app module because it is only used for Android Auto there
 - Adjust GitHub Actions to include minimal Automotive APK

* Cleanup duplicate Play Services coroutines dependency

* Cleanup duplicate <uses-feature> for camera

* Missed one GMS dependency
2023-06-19 14:09:10 -04:00
dependabot[bot] bc248b6343
Bump io.sentry:sentry-android from 6.19.1 to 6.21.0 (#3564)
Bumps [io.sentry:sentry-android](https://github.com/getsentry/sentry-java) from 6.19.1 to 6.21.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.19.1...6.21.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-06-03 01:01:52 +00:00
Joris Pelgröm 9071302fef
Align dependency versions and bump Google dependencies (#3560)
* Align dependency versions and bump Google dependencies

* Fix overload resolution ambiguity
2023-06-02 20:40:15 -04:00
dependabot[bot] a5cfab0c3d
Bump com.google.dagger:hilt-android from 2.45 to 2.46.1 (#3548)
Bumps [com.google.dagger:hilt-android](https://github.com/google/dagger) from 2.45 to 2.46.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.45...dagger-2.46.1)

---
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>
2023-05-26 08:35:31 -04:00
googlvalenzuela ea81b57271
Manifest Changes per Automotive documentation. (#3552)
* Manifest Changes per Automotive documentation.

* Removing extra entry for template_host.
2023-05-26 08:27:33 -04:00
dependabot[bot] a2869ff78f
Bump org.jetbrains.kotlinx:kotlinx-coroutines-core from 1.6.4 to 1.7.1 (#3543)
Bumps [org.jetbrains.kotlinx:kotlinx-coroutines-core](https://github.com/Kotlin/kotlinx.coroutines) from 1.6.4 to 1.7.1.
- [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.4...1.7.1)

---
updated-dependencies:
- dependency-name: org.jetbrains.kotlinx:kotlinx-coroutines-core
  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-05-22 16:07:47 +00:00
dependabot[bot] 1788386c3b
Bump io.sentry:sentry-android from 6.19.0 to 6.19.1 (#3540)
Bumps [io.sentry:sentry-android](https://github.com/getsentry/sentry-java) from 6.19.0 to 6.19.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.19.0...6.19.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-05-22 11:49:47 -04:00
dependabot[bot] d6996ce527
Bump com.google.dagger:hilt-android-compiler from 2.45 to 2.46.1 (#3539)
Bumps [com.google.dagger:hilt-android-compiler](https://github.com/google/dagger) from 2.45 to 2.46.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.45...dagger-2.46.1)

---
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-05-22 11:49:07 -04:00
dependabot[bot] 2cfc018101
Bump org.jetbrains.kotlinx:kotlinx-coroutines-android from 1.6.4 to 1.7.1 (#3528)
Bump org.jetbrains.kotlinx:kotlinx-coroutines-android

Bumps [org.jetbrains.kotlinx:kotlinx-coroutines-android](https://github.com/Kotlin/kotlinx.coroutines) from 1.6.4 to 1.7.1.
- [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.4...1.7.1)

---
updated-dependencies:
- dependency-name: org.jetbrains.kotlinx:kotlinx-coroutines-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-05-20 19:18:26 +00:00
dependabot[bot] 06f6ddb004
Bump io.sentry:sentry-android from 6.17.0 to 6.19.0 (#3533)
Bumps [io.sentry:sentry-android](https://github.com/getsentry/sentry-java) from 6.17.0 to 6.19.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.17.0...6.19.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-05-20 14:59:40 -04:00
dependabot[bot] 774003b154
Bump org.jetbrains.kotlin:kotlin-stdlib from 1.8.20 to 1.8.21 (#3492)
Bumps [org.jetbrains.kotlin:kotlin-stdlib](https://github.com/JetBrains/kotlin) from 1.8.20 to 1.8.21.
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/v1.8.21/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/compare/v1.8.20...v1.8.21)

---
updated-dependencies:
- dependency-name: org.jetbrains.kotlin:kotlin-stdlib
  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-05-20 14:59:01 -04:00
dependabot[bot] 8b32f9bffd
Bump com.squareup.okhttp3:okhttp from 4.10.0 to 4.11.0 (#3490)
Bumps [com.squareup.okhttp3:okhttp](https://github.com/square/okhttp) from 4.10.0 to 4.11.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.10.0...parent-4.11.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>
2023-04-24 21:09:24 -04:00
dependabot[bot] 6b03613352
Bump com.android.tools.build:gradle from 7.4.2 to 8.0.0 (#3474)
* Bump com.android.tools.build:gradle from 7.4.2 to 8.0.0

Bumps com.android.tools.build:gradle from 7.4.2 to 8.0.0.

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

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

* Bump Gradle version

* Build default values changes

 - Remove items that match new defaults
 - Add item to keep old default to allow for those changes to happen in another PR

* Align target Kotlin version with target Java version

* Use JDK 17

* Remove one more item that now matches default

---------

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-04-24 21:05:20 -04:00
dependabot[bot] cffda9d3b4
Bump com.google.accompanist:accompanist-themeadapter-material from 0.28.0 to 0.30.1 (#3455)
Bump com.google.accompanist:accompanist-themeadapter-material

Bumps [com.google.accompanist:accompanist-themeadapter-material](https://github.com/google/accompanist) from 0.28.0 to 0.30.1.
- [Release notes](https://github.com/google/accompanist/releases)
- [Commits](https://github.com/google/accompanist/compare/v0.28.0...v0.30.1)

---
updated-dependencies:
- dependency-name: com.google.accompanist:accompanist-themeadapter-material
  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-04-07 19:11:41 -04:00
dependabot[bot] e592c334ea
Bump org.jetbrains.kotlin:kotlin-stdlib from 1.8.10 to 1.8.20 (#3442)
Bumps [org.jetbrains.kotlin:kotlin-stdlib](https://github.com/JetBrains/kotlin) from 1.8.10 to 1.8.20.
- [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
  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-04-01 04:02:29 +00:00
dependabot[bot] bdd7e6baec
Bump io.sentry:sentry-android from 6.14.0 to 6.17.0 (#3446)
Bumps [io.sentry:sentry-android](https://github.com/getsentry/sentry-java) from 6.14.0 to 6.17.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.14.0...6.17.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-03-31 23:45:11 -04:00
Bassett, Justin b22eb713c2 Let publishing of Automotive fail. 2023-03-31 22:04:29 -04:00
Bassett, Justin 66b86b5a55 Using the Automotive Track:
https://developers.google.com/android-publisher/tracks#ff-track-name
2023-03-31 21:06:50 -04:00
googlvalenzuela 8a322c624f
Android Automotive Module (#3423)
* Creation of Automotive Module and Fix OnboardingActivity parent Activity.

* Adding Manifest Dependencies.

* Fixing ktlint

* Remove unused import.

* Copy Google Services to android automotive

Github actions for PR require this to be set up in order for the build to pass.

* Missing two entries to copy the google-services.json file

* Fixing Build Process.

* Version code +2

We add 2 because the app, wear (+1) and automotive versions need to have different version codes.

* Update +3 per recomendation.

* Code to support transition from Full app to Car App Library.

* Fixing linter.

* More ktlin

/home/runner/work/android/android/app/src/main/java/io/homeassistant/companion/android/BaseActivity.kt:19:1 Needless blank line(s)
/home/runner/work/android/android/app/src/main/java/io/homeassistant/companion/android/BaseActivity.kt:31:95 Unnecessary semicolon
/home/runner/work/android/android/app/src/main/java/io/homeassistant/companion/android/BaseActivity.kt:39:1 Unexpected blank line(s) before "}"
/home/runner/work/android/android/app/src/main/java/io/homeassistant/companion/android/BaseActivity.kt:44:1 First line in a method block should not be empty

* Changes to allow navigate back from / native and feedback from PR.

* Indentation fixes.
2023-03-31 17:54:33 -04:00