Commit graph

643 commits

Author SHA1 Message Date
Justin Bassett c5ebd99a48
Dependency Updates. (#1643)
* Dependency Updates.
Needed to correctly call for Firebase Token in ioScope not main.

* Bump coroutines test dep as well.
2021-07-25 20:56:58 -04:00
dependabot[bot] 5df272a8f6
Bump mockk from 1.9.3 to 1.12.0 (#1635)
Bumps [mockk](https://github.com/mockk/mockk) from 1.9.3 to 1.12.0.
- [Release notes](https://github.com/mockk/mockk/releases)
- [Commits](https://github.com/mockk/mockk/compare/1.9.3...v1.12.0)

---
updated-dependencies:
- dependency-name: io.mockk:mockk
  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>
2021-07-25 17:19:00 -04:00
dependabot[bot] 52688d0172
Bump jackson-module-kotlin from 2.12.3 to 2.12.4 (#1633)
Bumps [jackson-module-kotlin](https://github.com/FasterXML/jackson-module-kotlin) from 2.12.3 to 2.12.4.
- [Release notes](https://github.com/FasterXML/jackson-module-kotlin/releases)
- [Commits](https://github.com/FasterXML/jackson-module-kotlin/compare/jackson-module-kotlin-2.12.3...jackson-module-kotlin-2.12.4)

---
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>
2021-07-25 17:15:18 -04:00
dependabot[bot] 583ba96b97
Bump org.jlleitschuh.gradle.ktlint from 10.0.0 to 10.1.0 (#1634)
Bumps org.jlleitschuh.gradle.ktlint from 10.0.0 to 10.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>
2021-07-25 16:59:29 -04:00
dependabot[bot] 0db2645455
Bump bruceadams/get-release from 1.2.1 to 1.2.2 (#1622)
Bumps [bruceadams/get-release](https://github.com/bruceadams/get-release) from 1.2.1 to 1.2.2.
- [Release notes](https://github.com/bruceadams/get-release/releases)
- [Commits](https://github.com/bruceadams/get-release/compare/v1.2.1...v1.2.2)

---
updated-dependencies:
- dependency-name: bruceadams/get-release
  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>
2021-07-25 16:57:24 -04:00
Justin Bassett 6d27dc4904
Setup Java Update + dependabot update (#1639)
* Update setup-java action to version 2.

* Update dependabot.yml to only use root for gradle.  It recursively looks for build.kt files
2021-07-25 16:54:51 -04:00
Justin Bassett 151957436c
Fix Playstore Publish and add Dependabot (#1621)
* Fix GPP error and remove deprecated repos.

* Migrate off Config.kt so we can enable dependabot.

* Add Dependabot config.
2021-07-25 15:33:59 -04:00
nick2525 fe8aa454de
Kotlin Styling (#1610)
* use when

* replace context?.getString() with getString() in fragment

Co-authored-by: nick2525 <test@test.com>
2021-07-20 09:06:10 -04:00
uvjustin 9a1f9c0502
Bump exoplayer version (#1588)
* Bump Exoplayer to v2.14.0
Use Player.Listener instead of deprecated VideoListener

* Remove transparent background

* Add cronet extension for http2 support

* Bump exoplayer version to 2.14.1
2021-07-20 08:51:34 -04:00
Basset, Justin 6f0a07baf4 Come full circle with GPP.
Now using snapshot with fix hopefully.
2021-06-10 19:44:48 -04:00
Basset, Justin 4675dffd9b Play Publishing Plugin half upgrade. 2021-06-10 17:05:23 -04:00
Justin Bassett 5a7728a23b
Roll back Play Publishing Plugin
Will be fixed in 3.5: https://github.com/Triple-T/gradle-play-publisher/issues/954
2021-06-10 16:56:06 -04:00
Daniel Shokouhi 972eec64dd
Add a 2s delay to more info pop-up for 2021.6 (#1584) 2021-06-08 15:58:34 -04:00
Daniel Shokouhi 40e730fa28
Finish null check for tiles (#1576) 2021-06-08 15:47:23 -04:00
Nelson Osacky 89457c5fe0
Bump AGP, Gradle and Kotlin Versions (#1563) 2021-06-08 14:58:50 -04:00
Daniel Shokouhi 16f06a33bc
Remove location name from location updates since its always blank (#1569)
* Remove location name from location updates since its always blank

* Fix tests
2021-05-26 23:35:51 -04:00
Daniel Shokouhi 58023e51c6
Account for color mode when determining brightness slider (#1564)
* Account for color mode when determining brightness slider

* Update app/src/main/java/io/homeassistant/companion/android/controls/LightControl.kt

Co-authored-by: Justin Bassett <bassett.justint@gmail.com>

Co-authored-by: Justin Bassett <bassett.justint@gmail.com>
2021-05-25 15:21:28 -04:00
Daniel Shokouhi f0ed2cab09
Prevent saving and rendering blank template widgets (#1562) 2021-05-25 14:37:23 -04:00
Daniel Shokouhi 315069a578
Prevent selecting an entity if they are missing (#1557) 2021-05-25 13:43:34 -04:00
Daniel Shokouhi e655357d4f
Only show widget errors when selected, other widget fixes (#1555) 2021-05-25 13:26:54 -04:00
Daniel Shokouhi 5147eacb7a
Register sensor names as English only (#1552) 2021-05-25 13:23:18 -04:00
Daniel Shokouhi 8b756607cc
Bump some app dependencies (#1551) 2021-05-25 13:20:43 -04:00
Daniel Shokouhi 849167a210
Catch a tile crash and add a null check (#1548) 2021-05-25 13:11:21 -04:00
T-bond 14685742c4
Write all published application IDs to NFC tags (#1506)
* Write all published application IDs to NFC tags

Signed-off-by: Nagy Tamás (T-bond) <tbondvagyok@gmail.com>

* Simplify build change.

* ktlint

Co-authored-by: Justin Bassett <bassett.justint@gmail.com>
2021-05-06 21:56:14 -04:00
Justin Bassett 19f57a2890
Fix DB Migration. (#1538) 2021-05-06 21:13:20 -04:00
uvjustin 98cbe816df
Adjust ExoPlayer scaling to better match hls.js (#1527)
Set windowed height using video height
Set resizeMode to match hls.js behavior
Also remove loadControl
Bump ExoPlayer version to 2.13.3
2021-05-06 20:34:02 -04:00
Daniel Shokouhi 33747ba81b
Add quick settings tiles for scripts and scenes (#1510)
* Add support for quick setting tiles

* Allow icon selection for the tiles

* Set proper help link

* Review comments, move logic to abstract method
2021-05-06 20:30:17 -04:00
Daniel Shokouhi a016525fb0
Clear out preference value if the value does not match the provided entry list (#1518) 2021-04-17 10:23:35 -04:00
Daniel Shokouhi 5048240396
Add a media session sensor (#1499)
* Add a media session sensor

* Set state as playback state when not playing

* Change state logic

* Update sensor description for the state

* Add docs link

* Change state logic
2021-04-17 10:22:20 -04:00
chriss158 413773f691
Fix default theme statusbar color (#1521)
* Fix dark statusbar color on HA default light theme

* Fix lint
2021-04-17 09:55:13 -04:00
chriss158 10e20828a1
High accuracy mode fixes (#1519)
* Fix removing high accuracy mode notification

* Hopefully fix multiple location registrations
2021-04-17 09:49:57 -04:00
Daniel Shokouhi cf27aa994f
Add unavailable state to power menu (#1517) 2021-04-17 09:48:37 -04:00
Daniel Shokouhi 72ac8af490
Fix button widget icon crash (#1514)
* Fix button widget icon crash

* Remove unused variable
2021-04-17 09:47:11 -04:00
Daniel Shokouhi bcb57918c5
Add a command to control active media sessions (#1513) 2021-04-17 09:46:08 -04:00
chriss158 ffd24c0973
Add translatable sensor settings (#1490)
* Add translatable sensor settings

* Set setting value as summary for list preference

* Fix empty preference value on migration

* Set pref summary from it's values

* Translate sensor settings dynamic names

* Improve logging

* Pretty format last update Intent setting

* Fix lint

* Notification Sensor Setting "Allow List" translatable

* Fix "Allow List" Translation of Next Alarm Sensor

* Fix merge error

* Migrate Allow List of Last remove notification and Last Notification

* Fix lint
2021-04-17 09:40:26 -04:00
Daniel Shokouhi cbe1f6f4b8
Reduce image size to account for varying screen resolutions in media player widget (#1504)
* Reduce image size and catch error

* Use better resolution for aspect ratio
2021-04-13 16:27:21 -04:00
chriss158 68c76ad81a
Fix log fragment crash (#1503) 2021-04-13 16:24:28 -04:00
chriss158 2942a69354
Fix empty interval crash for high accuracy mode (#1502)
Co-authored-by: Daniel Shokouhi <dshokouhi@gmail.com>
2021-04-13 16:20:32 -04:00
chriss158 f5ca266874
Improve Themes (#1501)
* Add follow home assistant theme setting
* Add instant status bar/nav bar color change, when change HA theme
* Fix status bar coloring when using a light theme
2021-04-13 16:16:26 -04:00
Daniel Shokouhi ba64ae12f8
Bump some app dependencies (#1500) 2021-04-13 16:09:44 -04:00
Daniel Shokouhi 729857c529
Add a camera widget (#1491)
* Add a camera widget

* Change widget update interval to be hourly

* Reduce image dimensions
2021-04-13 16:00:46 -04:00
Daniel Shokouhi 304e59b041
Add a toast message for visual feedback when updating a shortcut (#1495) 2021-04-07 20:32:35 -04:00
Daniel Shokouhi 92a132776a
Set proper values and defaults for shortcut type list (#1494) 2021-04-07 12:53:16 -04:00
chriss158 d6b6f9607c
Fix crash for high accuracy service (#1492)
* Fix crash for high accuracy service when onDestroy is called without even started the service

* Fix lint

* Really fix HighAccuracyLocationService crash
2021-04-07 12:30:35 -04:00
Daniel Shokouhi 4012860172
Fix null pointer on checkable menu option (#1493)
* Fix null pointer on checkable menu option

* Update app/src/main/java/io/homeassistant/companion/android/sensors/SensorsSettingsFragment.kt

Co-authored-by: Justin Bassett <bassett.justint@gmail.com>

Co-authored-by: Justin Bassett <bassett.justint@gmail.com>
2021-04-07 12:28:10 -04:00
Daniel Shokouhi 84b33e8255
Set menu options when we evaluate enable all toggle (#1489) 2021-04-06 16:32:32 -04:00
Daniel Shokouhi a782f3c714
Fix shortcut editing when selecting from pinned list (#1488) 2021-04-06 15:50:55 -04:00
Daniel Shokouhi ec5b2c14f9
Remove unused panel code (#1487) 2021-04-06 14:01:12 -04:00
Daniel Shokouhi 87ad57ef0d
Shortcut icon (#1486)
* Allow custom icon selection for shortcuts

* Pull in fix for webview flags

* Review comments

* Fix syntax per review comment
2021-04-06 11:51:50 -04:00
chriss158 9210a1ab14
Fix missing log fragment title (#1485) 2021-04-06 08:30:08 -04:00