Commit Graph

672 Commits

Author SHA1 Message Date
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
Óscar García Amor 7aba11bb03
Merge pull request #97 from ultrasonic/update-version
Updated versionCode and versionName
2017-12-18 14:48:14 +01:00
Óscar García Amor 047b67164c Updated versionCode and versionName 2017-12-18 14:45:05 +01:00
Yahor Berdnikau 2150a548f5
Merge pull request #96 from ultrasonic/add-store-badges
Update with store badges instead of links.
2017-12-16 22:41:22 +01:00
Yahor Berdnikau d12dd58aaa Update with store badges instead of links.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-16 22:40:07 +01:00
Yahor Berdnikau 0bda4476ee
Merge pull request #95 from ultrasonic/update-contributing
Update doc with what branch use by default for PR.
2017-12-16 22:29:55 +01:00
Yahor Berdnikau 385790d601 Update doc with what branch use by default for PR.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-16 22:28:31 +01:00
Yahor Berdnikau 4715deb159
Merge pull request #94 from ultrasonic/bug/entities-ids
Bug/entities ids
2017-12-16 22:22:54 +01:00
Yahor Berdnikau aadb14eb4e Fix service try download covert art for empty id.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-16 22:20:44 +01:00
Yahor Berdnikau b2384a43ce Update api definition to use String type for ids.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-16 22:14:01 +01:00
Yahor Berdnikau 5bf5af2842 Change MusicDirectoryChild ids type to String.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-16 21:28:18 +01:00
Yahor Berdnikau ad20064d79 Change Share id type to String.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-16 20:54:43 +01:00
Yahor Berdnikau 9cb6a5c4e9 Change PodcastChannel id type to String.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-16 20:51:07 +01:00
Yahor Berdnikau 434d07c4a3 Change Playlist id type to String.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-16 20:47:00 +01:00
Yahor Berdnikau e62e5c553c Change MusicDirectory ids type to String.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-16 20:43:39 +01:00
Yahor Berdnikau f2d838cb1c Change album ids type to String.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-16 20:10:25 +01:00
Yahor Berdnikau a694f895e9 Change artist id type to String.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-16 19:50:57 +01:00
Yahor Berdnikau 66d7973c5a Replace type of id property to String.
Some api implementations are using UUID string for ids.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-12 21:08:49 +01:00
Yahor Berdnikau 46cf8a71c2
Merge pull request #88 from ultrasonic/update-readme
Update project README
2017-12-10 13:52:59 +01:00
Yahor Berdnikau 7790e3bca9 Update project README
This reflects changes in the project status. Added Contributing guide and
rewrite new issue template.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-10 13:44:52 +01:00
Yahor Berdnikau 0516ebcc20
Merge pull request #87 from ultrasonic/api-versions-check
Api versions check
2017-12-10 10:54:12 +01:00
Yahor Berdnikau 3fddef0ec5 Check call if it supported by current server version.
Add a api wrapper that checks if current protocol version is supported
for this call and fail fast if not.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-10 10:48:41 +01:00
Yahor Berdnikau 336f505ba5 Replace ServerTooOldException with more proper ApiNotSupportedException. 2017-12-03 14:14:01 +01:00
Yahor Berdnikau 491d8423c4
Merge pull request #86 from ultrasonic/handle-server-versions
Adapt client to server version
2017-12-02 21:58:37 +01:00
Yahor Berdnikau d384bcc3c5 Update dynamically client version.
Now subsonic api client will update dynamically to the supported server
api version when it doing the requests.
2017-12-02 21:51:26 +01:00
Yahor Berdnikau e838750ee2 Add proxy password interceptor.
It passes request chain either to hex password interceptor or
to md5+salt interceptor depending on current protocol version.
2017-12-02 21:51:26 +01:00
Yahor Berdnikau 0c5ac61402 Add 1.16.0 subsonic version. 2017-12-02 21:51:26 +01:00
Yahor Berdnikau c76d25e1ba Add version interceptor.
This interceptor add version param to request and peeks into response
to parse server version.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-02 21:51:26 +01:00
Yahor Berdnikau 1c56d6459b Fix subsonic accepts only lowercase md5 password hash.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-12-02 11:48:23 +01:00
Yahor Berdnikau 0deed54a9e
Merge pull request #82 from ultrasonic/introduce-auth-interceptors
Extract password param providing in separate interceptors.
2017-11-22 22:01:52 +01:00