Commit graph

413 commits

Author SHA1 Message Date
Justin Bassett 0fa443a4fa
Remove quotes from wifi ssid and add '<not connected>' (#371)
* Remove quotes from wifi ssid and add '<not connected>'

* Linting.
2020-02-11 08:55:07 -08:00
Justin Bassett 427226bd23
Fix regression with notification actions. (#376) 2020-02-11 08:36:30 -08:00
Justin Bassett aacb4ea605
Sensor Support (#336) 2020-02-10 23:49:39 -05:00
Justin Bassett 6030aaa8fc
Multiple Notification Options (#356) 2020-02-10 22:14:16 -05:00
Kevin T. Berstene 876914a918
Added all as an available entity_id for autocompletion (#364) 2020-02-10 22:13:55 -05:00
Daniel Shokouhi 6db3201c24
Add note to check companion docs (#361) 2020-02-10 13:00:09 -08:00
quthla 5a7b49a7a0
Enable receiving broadcast to update location (#355) 2020-02-10 08:08:01 -05:00
Neonicus 4deffd108a
Add Authentication Dialog for iFrames (#351) 2020-02-09 08:12:40 -05:00
Kevin T. Berstene 2283042393
Added dynamic auto-complete fields for widget configuration (#339) 2020-02-07 20:47:26 -05:00
Justin Bassett 447cd635dd
Lokalise Update. (#346) 2020-02-07 00:11:55 -05:00
Justin Bassett 5113a0ed96
Add support for images and actions no matter what the app is doing. (#341) 2020-02-06 22:02:41 -05:00
Jörg Thalheim 48dd9192bb
implement request_location_update via push notifications (#333) 2020-02-04 09:31:26 -05:00
Justin Bassett 33ffe4a70c
Actionable Notifications (#332) 2020-02-02 22:50:28 -05:00
Neonicus 779b4ceff9
Fix Fullscreen for notch (#326)
* Fix Fullscreen for notch

Test if notch or not, if notch just hide nav bar

* Fix Fullscreen on screen with notch

* Fix Fullscreen for screen with notch

<item name="android:windowLayoutInDisplayCutoutMode" tools:targetApi="27">shortEdges</item> 
Is for renders content into the cutout area in both portrait and landscape modes therefore useless since in case of a notch we just hide the navigation bar

* Fix Fullscreen for screen with notch

* Fix Fullscreen for screen with notch

* Fix Fullscreen fo screen with notch

* Fix Fullscreen for screen with notch
2020-01-30 08:19:00 -08:00
Daniel Shokouhi f7a63c085a
Update size of text (#321) 2020-01-29 20:57:15 -08:00
Justin Bassett 417461d4b5
Update Lokalise. (#318) 2020-01-29 16:24:34 -08:00
Robbie Trencheny 154b923929
Microphone is not required (#317)
* Microphone is not required

Fixes Play Store rejection

* Hardware, not software
2020-01-29 11:04:54 -08:00
Justin Bassett d56d64f81f Update translations. (#308) 2020-01-26 21:43:08 -08:00
Neonicus bc03c149e1 Add Fullscreen option (#304) 2020-01-26 19:47:51 -05:00
Justin Bassett a21f0fea72 Fixup the styling on the Widget configuration. (#291)
* Fixup the styling on the Widget configuration.

* Actually pull services and entites for Widgets.

* Sort lists.

* Linting.

* Make sure entity_id is optional.

* Lint
2020-01-24 11:21:31 -08:00
Justin Bassett 497843b686 Dependency updates and 'Ok' to 'OK' changes. (#301) 2020-01-24 11:13:52 -08:00
Justin Bassett d1a846a5f0
Revert "Add Fullscreen option (#293)" (#295)
This reverts commit 922be6f168.
2020-01-23 09:35:42 -05:00
neopilou 922be6f168 Add Fullscreen option (#293) 2020-01-23 08:52:57 -05:00
Justin Bassett 11e0906f0c
Don't need to create debug directory anymore. (#294) 2020-01-23 08:26:54 -05:00
Justin Bassett ce719e9017 Make sure it's easy to tell which app is debug and which is production. (#290) 2020-01-22 22:36:02 -08:00
Justin Bassett baba03a757 Bugfix/crashlytics fixes (#289)
* Add null checks for HomeAssistantSearcher.
https://github.com/home-assistant/home-assistant-android/issues/288

* Make sure to catch the error if we can't update the device name.
https://github.com/home-assistant/home-assistant-android/issues/287

* Show error before we pop back on the stack.
https://github.com/home-assistant/home-assistant-android/issues/286

* Make sure to catch exceptions and show error before poping stacks.
https://github.com/home-assistant/home-assistant-android/issues/285
https://github.com/home-assistant/home-assistant-android/issues/286

* Linting
2020-01-22 18:45:30 -08:00
Justin Bassett e6d5b5825b Request we be exempt from Doze. (#273)
* Request we be exempt from Doze.

* Add an integration screen.

* Toggles now default based on requesting permissions.
2020-01-22 16:22:17 -08:00
Kevin T. Berstene 9f5a61b0ce Basic widget functionality added (#212)
* Basic widget functionality added

* Requested Fixes: 4 of 6 completed

* Changed widget to be responsive and have a light icon instead of a generic Home Assistant icon

* Fixed issue with latest rebase from upstream master

* Restricted label text to a single line

* Created repository and use case for widget data storage

* Fixed indentation

* Fix for Oreo and later Broadcast Intent restrictions

* Added negative feedback for widget.  Wrapped try blockaround only the relevant commands.

* Removed defunct preferences utilities file

* Removed unnecessary try catch block

* Fixed issue where layout would reset upon screen rotation after activating the widget.

* Moved widget storage logic to repository as requested

* Added multiple widget icons with a drop down menu in the configuration activity.
Added labels to configuration activity.
Made configuration activity scrollable.

* Changed widget feedback to be more immediate and clear.  Changed color of positive feedback.

* Changed callService HashMap to match Integration Repository

* Added testing for Integration callService method

* Changed how icons are stored so regeneration of resources will not randomize the stored icons

* Added basic WidgetUseCaseImpl tests

* Privatized localStorage access in WidgetRepositorImpl, removing it from the WidgetRepository interface
2020-01-22 14:55:51 -08:00
Justin Bassett 122f9e3a10
Place the mock google services for debug only. (#280) 2020-01-19 18:21:53 -05:00
Justin Bassett 195bc9601c Reload UI url more proactively (#275)
* Reload UI if the base url has changed.
AKA changed from remote/local.

* Linting.

* Now we don't rebuild dagger every time we change urls.
Need to fix tests.

* Test and comment.
2020-01-19 13:51:10 -08:00
Justin Bassett cc241e18bc Add the ability to debug on same device as production application. (#271)
* Add the ability to debug on same device as production application.

* Update mock-google-services.json for debug version.
2020-01-18 16:10:11 -08:00
Justin Bassett 1219767ef4 Stop the app from opening browser when logging out. (#274)
* Stop the app from opening browser when logging out.

* Formatting.
2020-01-18 16:08:41 -08:00
Justin Bassett 672a80e773
Fix get theme because of missing fields in DTO. (#270) 2020-01-17 19:15:26 -05:00
Justin Bassett bda966b270
Status Bar Color Match Theme (#268) 2020-01-17 18:33:27 -05:00
Justin Bassett 5db4b2d501
Automatic discovery of HA on local network. (#255) 2020-01-17 18:32:47 -05:00
neopilou 21e038bd2b Android TV Support (#264) 2020-01-16 15:48:32 -05:00
Justin Bassett 5fa1ee05ce Add specific error handling around revoked token. (#251)
* Add specific error handling around revoked token.

* Fix PR Comments.
2020-01-12 04:56:04 -08:00
Justin Bassett 675861d7c0 Add timeout to UI on load. (#249)
* Refactor to isConnected.

* Add timeout to UI on load.
2020-01-10 16:45:01 -08:00
Justin Bassett cf283cf662 Fix migration to pull from the correct preference. (#246) 2020-01-10 19:52:02 +01:00
Justin Bassett f9dfc15ec6 Fix issue when we are on local wifi without local url. (#247) 2020-01-10 19:51:50 +01:00
Justin Bassett 3719a1ca84 Only show error screen if main url fails to load. (#245) 2020-01-10 19:51:33 +01:00
Justin Bassett 3a99f62363 Remove URLs and WiFi when logged out. (#248) 2020-01-10 19:50:34 +01:00
Justin Bassett dfb03e32e0
Open urls that are outside the application correctly. (#236) 2020-01-08 17:55:14 -05:00
Justin Bassett 5f54896057 Support Migrations (#224)
* Add instanceId to data layer.

* Support migrations.

* Formatting

* Make sure version is set.

* Validate migrations working.
2020-01-08 22:51:57 +01:00
Justin Bassett 5d02ec9bc6
Send device_id for HA versions above 0.104.0 (#234) 2020-01-08 15:49:38 -05:00
Justin Bassett 0ee9b29074
Add permissions for Camera and Audio. (#235) 2020-01-08 15:49:19 -05:00
Justin Bassett 2e8cfc9499 Fix integration registration overriding url. (#220) 2020-01-03 21:20:06 +01:00
Justin Bassett ffdc3c3750 Home Network Settings (#209)
* Url management now abstracted to new separate use case.

* Add preferences for URLS.

* Add wifi ssid check.

* Tests now passing!

* Now show error and bring to settings when can't connect.

* Fix PR comments.

* Home SSID tracking now working.
Also go to settings if refresh token fails.

* Fix test.

* isInternal is now optional, we can determine in the repository if needed.

* Rework preferences ordering and disable when not used.

* Extract strings.

* Add validation of URLs.

* Formatting.

* Fix tests.
2020-01-03 11:43:25 +01:00
Justin Bassett 8604f1548f Support remoteUiUrl from the mobile_app integration. (#195)
* Support remoteUiUrl from the mobile_app integration.

* Update testing for new URL methods.

* Respect request into repository.
2019-12-24 16:53:12 +01:00
Patrick Decat e2127a9f20 Upgrade from kotlin 1.3.50 to 1.3.60 to support Java 11 (eliminates 'package javax.annotation.processing does not exist' errors) (#204) 2019-12-24 07:44:08 -05:00