Commit graph

400 commits

Author SHA1 Message Date
Cedrick Flocon e881e3b28b For now it's seem to be imposible to keep the state of the webview. let avoid auto recreate on configuration change (#160) 2019-12-17 09:18:10 +01:00
Bram Kragten 969548ad8c Add back Lokalise SDK (#161)
* Add back Lokalise SDK

Copy paste bug was fixed in beta 4.

* Lint
2019-12-16 11:42:04 -08:00
Cedrick Flocon 3d4b8ff499 improve style (#157) 2019-12-16 07:13:22 +01:00
Cedrick Flocon 7ee9dfee4d Url improvement (#156)
* Save url with string

* throw malformed http url exception if the url is not valid

* catch malformed http url exception
2019-12-16 07:07:06 +01:00
Paulus Schoutsen f44bb402ab Add github issue template 2019-12-16 07:04:53 +01:00
Grzegorz Matyszczak b8e4fae356 Remove buttonStyle from Theme.HomeAssistant. Set button style in manual setup fragment explicitly. (#155) 2019-12-15 20:52:43 +01:00
Justin Bassett 7a93113e18 Bugfix/disable location tracking (#152)
* When someone chooses not to track location,
honor that choice before a reboot.

* Add some logging.
2019-12-13 19:27:33 -08:00
Robbie Trencheny 42d380589f
Fix notification icon 2019-12-12 17:11:23 -08:00
Justin Bassett 20cc710490 Basic Notification Support (#140)
* Initial pass on notifications support

* Linting and Dep updates.

* Basic Notification Support complete.

* Fix onboarding flow and test compile issue.

* Fix unit tests

* Bump tool versions.

* All tests pass... Need to clean up still.

* Using correct mockk features.

* Using correct mockk features everywhere.

* More test fixes.
2019-12-12 09:17:26 -08:00
jobhh b8a9737d18 Location permission fixes (#135)
* Fixed bug where ACCESS_BACKGROUND_LOCATION was used below API level 29. Removed ACCESS_COARSE_LOCATION permission since it has no purpose when ACCESS_FINE_LOCATION is used.

* Added a more generic validatePermissions to PermissionManager and renamed haveLocationPermissions to hasLocationPermissions.
2019-12-12 17:34:58 +01:00
Paulus Schoutsen 149ec161f5
Update README.md 2019-12-12 15:47:12 +01:00
Justin Bassett 126b025e40 Add some error handling around getting zones from HA. Failing gracefully. (#142) 2019-12-12 15:11:26 +01:00
Robbie Trencheny 1bdf8d4664
Fix strings to fill untranslated ones with English. Fixes #137. 2019-12-11 15:07:54 -08:00
Robbie Trencheny c0b2c6d5dc
Update strings 2019-12-11 12:05:57 -08:00
Justin Bassett 594936c088 Feature/location settings (#129)
* Initial work on zone based location tracking.

* Tests and enhancements.

* Fix unit tests.

* Fix test cases.

* Initial location preferences work.

* Location settings now function will requests for permissions when needed.

* ktlink formatting.

* Domain tests.

* Data tests

* Extract strings into resources.

* Remove translations until Lokalise SDK is added back.
Failing lint

* Update wording.

* Add icons and toolbar.

* Coloring the settings.
2019-12-11 14:02:31 -06:00
Bram Kragten 0e515a8222 Remove Lokalise SDK (#120)
* Remove Lokalise SDK

* Lint
2019-12-06 08:23:37 -08:00
Justin Bassett a0c9974116 Fix vertical accuracy. (#116)
* Send 0 instead of null for vertical accuracy if we don't have real value.

* Remove nullable fields if they aren't nullable.
2019-12-05 15:11:30 -08:00
Florian Chauveau 96f548a914 fix #102 (#109) 2019-12-04 15:47:41 -05:00
Justin Bassett 2475aa15dd Fix double application registration. (#93) 2019-12-03 20:42:02 -05:00
Cedrick Flocon 29fb20f7e2
Update version name according to the tag (#88) 2019-12-03 23:28:46 +01:00
Cedrick Flocon eb953e789e
Add missing dependency (#87) 2019-12-03 22:47:47 +01:00
Robbie Trencheny 3bc7fdaa11 Add Lokalise SDK (#72)
* Add Lokalise SDK

* Add initial Lokalise strings
2019-12-03 21:56:53 +01:00
Justin Bassett 42ff5acf99 Device Tracking (#74)
* Initial work on requesting updates to location.

* Location now working in background too for Q+.

* Location now sent back to HA.
2019-12-03 19:19:30 +01:00
Marcio Granzotto Rodrigues 7d7fc0bd6e Code formatting and linter (#73)
* add ktlint to the project

* Auto format and fix linter issues

* Add Quality section to README
2019-12-01 09:05:37 +01:00
Cedrick Flocon cc35db99e4
Update jackson dependency (#69) 2019-11-26 09:34:04 +01:00
Cedrick Flocon 47d5c64b5b
Url add hint Example and trim url query parameters and segment (#66) 2019-11-25 19:06:01 +01:00
Cedrick Flocon f222f18465
Display a dialog on javascript confirm (#57) 2019-11-25 18:02:11 +01:00
Bradley Nelson fd4e855285 Error Message on URL Parse Exception (#36)
* Show message on manual url parse error
2019-11-24 23:14:46 +01:00
Cedrick Flocon 09ccc4893d
add group to firebase app distribution (#62) 2019-11-24 19:08:20 +01:00
Cedrick Flocon 433ead291d Logout (#49)
* Logout the use when revokeExternalAuth is called

* callback even if onGetExternalAuth failed

* Add http log

* Open on boarding activity when logout

* fix revoke token field name
2019-11-22 08:30:29 -08:00
Cedrick Flocon 2ed8fab74a
Readme (#46)
* Put back old readme Setup Development Environment

* Add CI information
2019-11-21 13:28:27 +01:00
Cedrick Flocon 961ecaeb7a
Crashlytics Setup (#33)
* Setup crashlytics

* Fix possible crash when trying to retrieve external authentication
2019-11-19 11:52:55 +01:00
Fabian Affolter 809501cc6f
Enable move 2019-11-16 09:52:14 +01:00
Justin Bassett ea56328a52 Initial work on integrating the mobile_app component. (#25)
* Initial work on integrating the mobile_app component.

* Tests because even if I don't like to write them, I probably should.

* Remove unused dependency for now.

* Fix view related PR comments, migrate to view flipper to make more
consistent with other UI.

* Migrate from error handling at Repository to Presenter for Integration.

* Extract register device data class.

* Extract the mapping of DeviceRegistration to RegisterDeviceRequest.

* Extract ensuring we have a valid, refreshed session.

* Unique localStorage per usage to avoid name collision.
2019-11-15 07:59:41 +01:00
Timmo 024ee91543 Update Gradle to 3.5.2 (#19) 2019-11-13 09:38:10 +01:00
Cedrick Flocon 102eaceb83
Run publish if the build is from a tag (#24) 2019-11-11 00:38:02 +01:00
Timmo 24e7999777 Add vibration support (#21) 2019-11-10 22:14:46 +01:00
Cedrick Flocon 3219504a12 [ARCHITECTURE] Let's do some quality (#15)
* extract dependencies

* Update test command and add lint

* Move Retrofit into data module and test authentication service

* Implement authorization repository

* Implementation authentication usecase

* Implementation presenter layer

* Remove old session stuff

* Java time backport

* Dependency with dagger
2019-11-10 13:07:38 -08:00
Florian Gareis 4789d7283f Fix round icon background color (#22) 2019-11-10 11:06:11 +01:00
Bradley Nelson c6f0a49886 Added Adaptive Icons (#17)
* Added Adaptive Icons

* Removed ldpi and mdpi and other changes

* Delete ic_launcher_background.xml
2019-11-09 22:42:50 +01:00
Cedrick Flocon b3191ae337
[FIREBASE] App Distribution (#14)
* Wrong path to Service Account

* Run Unit test on pr and on branch
2019-11-05 15:06:57 +01:00
Cedrick Flocon 1ec669db9d [PLAYSTORE] release to playstore (#13)
* change package name

* Use gradle to publish on the store
2019-11-04 15:51:29 -08:00
Cedrick Flocon 3dca2c9704 [CI] Travis with Firebase App Distribution (#11)
* Setup travis ci with Firebase App Distribution

* Encrypt google-services.json and serviceCredentialsFile.json into a tar
2019-11-03 11:33:56 -08:00
Cedrick Flocon e54311ec21 Alpha application (#4)
* Update gitignore

* Remove idea file

* Remove fcm

* Remove test folder

* Clear resources

* Create onboarding activity

* Discovery fragment

* Manual setup fragment

* Authentication fragment

* WebView Activity

* Handle back press

* Save session

* refresh token

* Settings activity

* Clear read me

* Use JSONObject to serialize json.
Check token each time the frontend hit getExternalAuth
Use Android client id
2019-11-02 06:38:40 -07:00
Cedrick Flocon 5cf20a56d2 Cleanup (#3)
* Delete unused icon

* Cleanup build gradle

* Update all dependencies

* Retro compatibility to lollipop

* Cleanup the main activity
2019-10-25 09:53:40 -07:00
Jason Hu 7b6fbbe914 Add basic dev env setup guide (#2)
Add basic dev env setup guide
2019-04-03 11:36:27 -07:00
Jason Hu 18b6ce60ff Create README.md (#1) 2019-04-02 22:20:21 -07:00
Robbie Trencheny b34887868f
Add VC config 2019-04-01 22:52:38 -07:00
Robbie Trencheny dde8aa1049
Add required documents 2019-04-01 22:52:24 -07:00
Robbie Trencheny aed98be0c5
Initial commit 2019-04-01 22:52:08 -07:00