Commit graph

29 commits

Author SHA1 Message Date
Nelson Osacky 010b63a5c3
Update to Gradle 6.7. (#1066)
Also enable Gradle parallel flag and caching flags.
2020-10-17 22:57:22 -04:00
Justin Bassett c31c0af390
Update Play Publisher Plugin (#1062)
* Update Play Publisher Plugin

* Fix more build issues.

* Add import
2020-10-16 09:17:42 -04:00
Justin Bassett 1f48c44f44
Clean up a bunch of warnings. (#1053)
* Clean up a bunch of warnings.

* Remove unused class.
2020-10-15 08:16:34 -04:00
Nelson Osacky 48b0d2fcff
Update AGP, Kotlin. (#1047)
This commit also enables the room incremental annotation processor.
This also fixes the export schema warning in the console logs.
2020-10-14 11:39:01 -04:00
Patrick Decat 44362d868b
Allow customizing keystore path with KEYSTORE_PATH environment variable (#1045) 2020-10-14 11:21:15 -04:00
Kevin T. Berstene 51072b9e0d
Created a media player control widget (#1005)
* Added initial media player widget code.  Has some work to do

* ktLint Fixes and corrected TODOs

* Finished TODO: Media image fetch and update

* Corrected rewind/fastforward functionality so it actually seeks

* Made requested minor changes

* Additional minor requested changes

* Appeasing the mighty ktlint

* Added integration GET request for single entity instead of requesting all entities and parsing results

* Corrected dark mode widget icons

* Fix merge conflicts and migration.

* Added toast notification for entity fetch failure

Co-authored-by: Basset, Justin <Bassett.JustinT@gmail.com>
2020-10-13 12:13:50 -04:00
Nelson Osacky 46dde1912e
Remove redundant buildscript declaration (#1029)
Update Gradle to 6.6.1, AGP to 4.0.2
Declare root project name
Use lazy task configuration
2020-10-11 13:38:46 -04:00
Justin Bassett 6e13b16214
Architecture Simplification (#917)
* Common compiling....
So I guess I have that going for me...

* It's very broken...

* App builds and tests pass....

* Remove other now extra files.
2020-09-11 15:39:30 -04:00
Justin Bassett df621311b1
Build Enhancements (#866)
* Nicer changelog printing
* Cache the gradle Cache
* Playstore updated nightly not on commit.
2020-09-02 00:34:19 -04:00
Justin Bassett 4fe2489432
Sentry.io Changes (#846)
* Set the sentry.io release version explicitly.

* Include session tracking to improve crash support.

* ktlint

* Remove comments in build
2020-08-30 15:19:20 -04:00
Justin Bassett de1b8d58d9
More build updates (#844)
* Remove version code from version string.

* Make sure true releases work.

* Beta Sentry.io releases

* Really do Sentry,io Releaes

* Sentry.io releases for production
2020-08-29 18:23:58 -04:00
uvjustin c50c0adf0e
Add Exoplayer view and interface (#739)
* Add Exoplayer view and interface

* Fix play/pause buttons

* Support PictureInPicture

* Migrate dependencies to Config.kt

* Move code from inline to functions

* Add spacing in playback control layout

* Changes per @balloob

* Fix ktlint errors
2020-08-25 10:38:51 -04:00
Justin Bassett 4c91c34ec8
Let widgets use any material icon (#745)
* Functional widgets with all material icons to pick from.

* Load icons in io thread since it takes a hot second.

* Bump DB version.

* ktlint

* Blow away widget prefs since it was a hack anyway.

* Migrate static widgets to room db.

* ktlint and tests.

* Little more cleanup.

* More ktlint.

* Initial attempt at Migrations.

* Add missing Migrations.kt

* Add full migration support from old to new widgets.
2020-08-16 22:18:20 -04:00
chriss158 6bc19488b4
Add easier way to use of emoji in notifications (#741)
* Add easier way to use of emoji in notifications

* Try to exclude org.json:json

* Fix lint
2020-08-16 21:57:47 -04:00
David Luhmer ec9ff0ae6b
Add nfc support (#689) 2020-08-11 10:37:43 -04:00
Daniel Shokouhi 09ea80f5d6
Fix android dark mode (#717)
* Fix android dark mode

* Lint

* Remove extra spaces
2020-08-09 10:25:17 -04:00
Justin Bassett d747afd37c
Disable minimal publishing. (#699)
* Disable minimal publishing.

* Linting.
2020-08-03 16:45:14 -04:00
Justin Bassett f64fbafd38
Disable Sentry.io for debug builds. (#696) 2020-08-02 14:40:44 -04:00
Justin Bassett b2fd541c9c
Migrate to Sentry and remove Crashlytics (#686) 2020-08-01 09:36:37 -04:00
Justin Bassett bf29174a4a
Minimal Android Flavor (#682)
* Initial rip out of most of the Googley stuff.

* Lokalise plugin and dependencies removed.
They would be more useful if we had a large app with many translations.  However, with most of our UI being a PWA the usefulness of it is very limited.

* Both apps now build.... Yay

* Formatting.

* Tests and checks pass.

* Make sure Github Actions are up to date.

* Fix more unit tests.

* ktLint

* Use config class for gradle dependencies.
2020-07-31 07:46:54 -04:00
chriss158 a7a46787ef
Fix widget service calls with numbers (#640) (#650)
* Widget service calls will fail, if a number for any field is used.
Because the GSON parser will parse every integer to a double.
This is especially a problem on the service alarm_control_panel.alarm_disarm
which needs a code to disarm the alarm panel.
So every code will be converted to .0 (eg. 1234 would be 1234.0)
Solution: Use Jackson instead of gson
GSON problem described here (not fixed):
https://github.com/google/gson/issues/1084
2020-07-07 15:58:51 -04:00
Neonicus 50d80413ce
Authentication Dialog Enhancement (#633)
* Authentication Dialog Enhancement

* Add "Remember" checkbox

* Add button for password visibility
2020-07-07 15:50:37 -04:00
Justin Bassett a455afd8a6
Update Production Release Steps. (#655)
Make it all automated!
2020-07-05 22:27:03 -04:00
Justin Bassett ad64855220
First attempt at CI action (#652)
* First attempt at CI action

* Split lints and test steps.

* Only run validate job on PR.

* First attempt at beta deploy via Github Actions

* Try to archive a debug version of application.

* Use static version of NDK.

* Add ENV variables to building the release.

* Ensure all secrets are used!

* Attempt to publish feature branch.

* Make sure all files are in place first.

* Ensure keystore is still accessible during deployment.

* Update README.md for the lack of automation for now.
2020-07-05 17:48:00 -04:00
Neonicus 756556046a
Fix Biometric Unlock & Enhancement (#625)
* Fix Biometric Unlock
* Add Prompt Unlock function directly in WebViewActivity
* Added session timeout in app settings
* App is locked when resumed (after session timed out)
* When the application is locked, the screen is blurred (no quite obnoxious splash screen to look at), which allows the HA frontend to be loaded before or during unlocking
* No button needs to be touched for unlock
* When the unlock prompt is displayed, the back button close the app
* Fix issues #555 and #587
2020-07-05 10:09:17 -04:00
Justin Bassett b191334309
Update crashlytics. (#624) 2020-06-11 20:49:30 -04:00
Justin Bassett 247cef3c72
Fix lint issues (#618)
* Increase tool version, enable linting again.

* Fix lint errors.

* Ensure ktlint is working.

* Use correct build tools in travis.
2020-06-11 13:15:50 -04:00
Justin Bassett 0f92172fee
Fix build. (#617) 2020-06-10 16:28:09 -04:00
Tim f87ed32560
Feature/switch to kotlin dsl (#595)
* Switch to using Kotlin in of groovy for the gradle configurations.

* Gradle file cleanup.

* Switch to using Kotlin in of groovy for the gradle configurations.

* Gradle file cleanup.

* Retrofit (and maybe others libs) requires java compile options 1.8, still backwards compatible.

* Prep for release 1.9.0-XXX

* Fix ktLint errors.
2020-06-10 15:16:11 -04:00