Commit Graph

551 Commits

Author SHA1 Message Date
Óscar García Amor 871082aea3 Madsonic v 5.1.xxx fix (#145)
* Fixes #129

Signed-off-by: Óscar García Amor <ogarcia@connectical.com>
2018-01-23 21:07:12 +01:00
Yahor Berdnikau 565ae00089
Merge pull request #141 from ultrasonic/better-feedback-on-certificate-error
Add more specific error message related to ssl connection problems.
2018-01-21 21:05:01 +01:00
Yahor Berdnikau efe1efdda6 Add more specific error message related to ssl connection problems.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-01-21 21:01:21 +01:00
Yahor Berdnikau 9389af5a79
Merge pull request #140 from ultrasonic/special-case-for-ldap-user
Special case for ldap user
2018-01-21 19:34:00 +01:00
Yahor Berdnikau ae6b73fab4 Add setting to force using old-authorization for LDAP users.
Subsonic api doesn't support new md5 based authorization for LDAP users.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-01-21 18:15:02 +01:00
Yahor Berdnikau 7830ed3dbf Add flag to force using hex password authentication.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-01-21 18:06:41 +01:00
Yahor Berdnikau cd54632339
Merge pull request #138 from ultrasonic/downgrade-api-to-22
Downgrade api to 22
2018-01-20 13:05:14 +01:00
Yahor Berdnikau 365bd96f56 Remove unnecessary cast.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-01-20 12:53:26 +01:00
Yahor Berdnikau 1cdf76db8b Add some several gradle optimizations.
Enabled parallel build, configure on demand, caching output of tasks.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-01-20 12:52:17 +01:00
Yahor Berdnikau 88053c0ccc Change ci image api to 27.
To be on the same value with compile sdk.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-01-20 11:28:34 +01:00
Yahor Berdnikau 697a689632 Decrease target sdk version to 22.
This is required for a new release as runtime permissions support is not yet implemented.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-01-20 11:27:34 +01:00
Yahor Berdnikau d2f292852d
Merge pull request #136 from ultrasonic/error-parser-stability-improvments
Error parser stability improvments
2018-01-20 11:15:56 +01:00
Yahor Berdnikau 749c257731 Replace generic error empty message with custom message.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-01-20 11:12:00 +01:00
Yahor Berdnikau 0b5cc5d3f3 Make subsonic error parser more fail safe.
Now it should parse more malformed error json, though having "code" field is still mandatory.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-01-20 10:56:58 +01:00
Yahor Berdnikau b38f4894c3
Merge pull request #132 from ultrasonic/fix-api-error-parsing
Fix api error parses always in generic error.
2018-01-13 11:01:11 +01:00
Yahor Berdnikau fff0762e08 Add more test for error responses.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-01-13 10:54:30 +01:00
Yahor Berdnikau 3e1dbe3476 Fix api error parses always in generic error.
Now it parses to right error representation. Also fix that right
exception for error is not thrown on api call.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-01-13 10:19:42 +01:00
Yahor Berdnikau fa03cf3881
Merge pull request #127 from ultrasonic/add-generic-error-message
Append generic error message to displayed text.
2018-01-08 19:53:29 +01:00
Yahor Berdnikau 1e7f2989eb Append generic error message to displayed text.
As generic error can provide different reasons, it is worth to add received message to displayed error text.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-01-08 19:45:55 +01:00
Yahor Berdnikau 86fcbb5650
Merge pull request #126 from ultrasonic/better-error-handling
Better error handling
2018-01-07 13:33:01 +01:00
Yahor Berdnikau ada94dc24f Change to handle json parse exception instead of xml.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-01-07 13:30:37 +01:00
Yahor Berdnikau 27465a086d Add displaying more specific api errors.
Now app will show more specific api errors to user.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-01-07 13:17:53 +01:00
Yahor Berdnikau deaa75938b
Merge pull request #115 from ultrasonic/resume-playback-headphones
Add option to resume playback on headphones insertion.
2017-12-28 22:03:56 +01:00
Yahor Berdnikau e96eae29d5 Add option to resume playback on headphones insertion.
This is disabled by default and should be enabled in app settings.
Playback resume only happened when app is not in Jukebox mode and
playback is paused.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-28 22:02:09 +01:00
Yahor Berdnikau b5aae0c01c
Merge pull request #113 from ultrasonic/add-support-api-implementations
Add supported (tested) subsonic api implementations in README.
2017-12-27 22:30:31 +01:00
Yahor Berdnikau 70c2e5213c Fix checkstyle problem.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-27 22:28:36 +01:00
Yahor Berdnikau ea3d36110d Add supported (tested) subsonic api implementations in README.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-27 22:25:59 +01:00
Yahor Berdnikau c9bc3df543 Merge branch 'master' into develop 2017-12-27 22:01:10 +01:00
Yahor Berdnikau 3379e491dd
Merge pull request #112 from ultrasonic/add-versioning-plugin
Add versioning plugin.
2017-12-27 21:43:18 +01:00
Yahor Berdnikau c84482729d Add versioning plugin.
This will allow to easy automate auto publishing of the app.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-27 21:38:40 +01:00
Yahor Berdnikau bd69a3a231
Merge pull request #110 from ultrasonic/readme
Detailed in README.md the supported API version
2017-12-27 17:42:03 +01:00
Óscar García Amor 48e2e5d983 Detailed in README.md the supported API version 2017-12-27 17:18:57 +01:00
Óscar García Amor bed26a3705
Merge pull request #105 from ultrasonic/allow-self-signed-certificates
Allow self signed certificates
2017-12-26 19:40:06 +01:00
Óscar García Amor 6b6c8a045f Updated versionCode and versionName
Signed-off-by: Óscar García Amor <ogarcia@connectical.com>
2017-12-26 19:35:25 +01:00
Óscar García Amor 7451ee2d19 Fix spanish translation 2017-12-26 19:17:53 +01:00
Yahor Berdnikau 592ab16b94 Add setting to server config to allow self-signed certificates.
It is disabled by default.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-26 12:34:52 +01:00
Yahor Berdnikau 1333534988 Allow to use self-signed certificates.
By default OkHttpClient will not allow self-signed certificates, but
some of app users use them.

This is disabled by default, should be enabled explicitly.

It also allows any CN in self-signed certificate.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-26 12:34:16 +01:00
Yahor Berdnikau 0a67f175fc
Merge pull request #101 from ultrasonic/api-23
Api 23
2017-12-21 11:56:20 +01:00
Yahor Berdnikau ae3ef770c7 Regenerate lint baseline.
Also have to fix some of the lint issues, for some reason they don't
get into baseline.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-21 11:53:15 +01:00
Yahor Berdnikau a86925d0b8 Delete old api resources.
Delete resources that was dedicated to pre 14 api level.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-21 11:37:39 +01:00
Yahor Berdnikau b5c0fa10f3 Update kotlin to 1.2.10 version.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-21 10:58:43 +01:00
Yahor Berdnikau 07802e9206 Update KtLint to 0.14.0 version.
Also fix style problems.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-21 10:58:43 +01:00
Yahor Berdnikau 11c1b92098 Update Detekt to 1.0.0.RC6 version.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-21 10:58:43 +01:00
Yahor Berdnikau c76ffe4db7 Update android plugin to 3.0.1 version.
Yay!

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-21 10:58:43 +01:00
Yahor Berdnikau 0943276a50 Update gradle wrapper to 4.4.1 version.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-21 10:58:41 +01:00
Yahor Berdnikau f528ad8845 Bump target api level to 23.
Also set compile sdk level to 27 and android support libs version to
23.4.0.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-21 10:54:01 +01:00
Yahor Berdnikau 2e9935e182 Remove usage of HttpRequest from StreamProxy.
Apache http client classes was removed since api 23. And actually this
HttpRequest doesn't required here at all.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-21 10:53:23 +01:00
Yahor Berdnikau ed78fce31c Remove deprecated HttpClient.
Apache HttpClient package was removed from Android since api 23.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-21 10:53:23 +01:00
Yahor Berdnikau c0fe52b2b3 Replace removed FloatMath with Math class.
FloatMath was removed since api 23.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-21 10:53:23 +01:00
Óscar García Amor 4f44977e55
Merge pull request #89 from ultrasonic/develop
New 2.0.0 release
2017-12-18 14:51:55 +01:00