Commit graph

1901 commits

Author SHA1 Message Date
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
Justin Bassett d69de89110 Add link to companion documentation. (#200) 2019-12-23 20:26:09 +01:00
Justin Bassett e133946f1e Allow user certs imported into android to be accepted. (#194)
* Allow user certs imported into android to be accepted.

* Remove extra use android:usesCleartextTraffic
2019-12-23 13:50:23 +01:00
Justin Bassett ab602bca4f
Set minimum accuracy for location updates. (#181)
* Set minimum accuracy for location updates.

* Redo logic to try up to 5 times.
If we get a location that meets accuracy needs then stop updates.

* Lint fixes.
2019-12-22 13:12:40 -05:00
Justin Bassett 9d6f52fdce
Make sure mobile_app is required. (#188) 2019-12-22 13:12:11 -05:00
Oscar Stenqvist fdd71ceb55 Fix Dead end when entering invalid Home Assistant url during onboarding #105 (#182)
* Fix Dead end when entering invalid Home Assistant url during onboarding #105

* Rename strings & fix CI build error

* Refactoring & Go back to onBoarding first and then show error

* Fixing Build Lint Error

Co-authored-by: HIQOscarStenqvist <55279974+HIQOscarStenqvist@users.noreply.github.com>
2019-12-21 12:47:56 -05:00
Justin Bassett cc831095cc Add Lokalise info. (#183) 2019-12-20 22:40:25 +01:00
Justin Bassett 4f34a9b67f Only send the needed data on update registration. (#180) 2019-12-19 18:37:29 -08:00
Cedrick Flocon 424d24be4d The version code is stuck at 50 (#179) 2019-12-19 14:02:59 -05:00
Cedrick Flocon a9e6dfa214 Use git log to get the change log (#178) 2019-12-19 13:11:10 -05:00
Justin Bassett 715ca9e362 Allow editing of Device Name (#158)
* Migrate preference categories to string resource.
Disable lint for missing translations.

* We now can change the device name.

* Linting Fixes.

* Tests a functional, now to add new tests.

* Fix all the tests for real this time.
Fix clean task being in wrong group.

* Add tests for persisting device registration.

* Extract string, remove summary, use androidx preferences.

* Migrate to injection and constants for registration data that is build time.

* Use SimpleSummaryProvider.

* Revert global missing translation lint error.

* Disable MissingTranslation lint globally.
2019-12-19 16:40:26 +01:00
Bram Kragten 8fb596a75c Fix some styling (#163)
* Fix some styling

Because `colorControlNormal` was set to white, the underline of a inactive textbox would be white. Making it hard to see where to input text.

* Update naming

* Add background color to style

* Update color name
2019-12-19 10:07:22 +01:00
Paulus Schoutsen c5adce616a
Lokalise: Translations update (#175)
* Lokalise: update of app/src/main/res/values/strings.xml

* Lokalise: update of app/src/main/res/values-it/strings.xml

* Lokalise: update of app/src/main/res/values-lv/strings.xml

* Lokalise: update of app/src/main/res/values-nl-rNL/strings.xml

* Lokalise: update of app/src/main/res/values-pl-rPL/strings.xml

* Lokalise: update of app/src/main/res/values-ro/strings.xml
2019-12-19 10:04:54 +01:00