Commit Graph

437 Commits

Author SHA1 Message Date
Yahor Berdnikau c917bcb1a6 Update ktlint to 0.12.1 version.
Also updated ktlint-gradle to 2.3.0 version. Added ktlint reports to
circle CI.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-16 22:04:38 +01:00
Yahor Berdnikau 7c3d19b048
Merge pull request #67 from ultrasonic/update-detekt
Update detekt to 1.0.0.RC5-4 version.
2017-11-16 21:55:16 +01:00
Yahor Berdnikau f7b1140b2c Update detekt to 1.0.0.RC5-4 version.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-16 21:49:53 +01:00
Yahor Berdnikau 2cfca3ff26
Merge pull request #66 from ultrasonic/update-gradle
Update gradle wrapper to 4.3.1 version.
2017-11-16 21:43:43 +01:00
Yahor Berdnikau deb734c8e5 Update gradle wrapper to 4.3.1 version.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-16 21:40:35 +01:00
Yahor Berdnikau 52f63cb2b9
Merge pull request #65 from ultrasonic/add-get-chat-messages
Add get chat messages
2017-11-16 21:36:55 +01:00
Yahor Berdnikau b6f9c733bc Delete unused ChatMessageParser.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-16 21:34:22 +01:00
Yahor Berdnikau 74bf89ef26 Use new api getChatMessages() call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-16 21:33:04 +01:00
Yahor Berdnikau 6c1039126e Add converter function for ChatMessage entity to domain entity.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-16 21:32:36 +01:00
Yahor Berdnikau 9cecebb314 Add getChatMessages() call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-16 21:19:24 +01:00
Yahor Berdnikau f1639bab48 Delete unused parser.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-15 22:05:52 +01:00
Yahor Berdnikau 59609c5125
Merge pull request #64 from ultrasonic/add-get-user
Add get user
2017-11-15 22:02:18 +01:00
Yahor Berdnikau e537b7ae1b Use new api getUser() call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-15 21:59:49 +01:00
Yahor Berdnikau 2402ed6a50 Add converter from api User entity to domain entity.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-15 21:56:01 +01:00
Yahor Berdnikau 6b74a3e563 Add getUser api call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-14 22:46:51 +01:00
Yahor Berdnikau 69f68460de
Merge pull request #63 from ultrasonic/update-kotlin
Update kotlin to 1.1.60 version.
2017-11-14 22:27:31 +01:00
Yahor Berdnikau 1fbcddc233 Update kotlin to 1.1.60 version.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-14 22:23:18 +01:00
Yahor Berdnikau 200a61fedc
Merge pull request #62 from ultrasonic/add-get-songs-by-genre
Add get songs by genre
2017-11-14 22:17:01 +01:00
Yahor Berdnikau 3b91f41cbe Use new api getSongsByGenre call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-14 22:12:23 +01:00
Yahor Berdnikau 5ea9eb7818 Increase default read timeout to 60 sec.
Default Okhttp read timeout is 10 sec, and as subsonic servers may be
not fast, better to increase timeout.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-14 22:11:03 +01:00
Yahor Berdnikau 10e25e8597 Add getSongsByGenre api call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-14 21:57:28 +01:00
Yahor Berdnikau 457181e074
Merge pull request #61 from ultrasonic/add-get-genres
Add get genres
2017-11-12 00:06:33 +01:00
Yahor Berdnikau 579accb06c Use new api getGenres call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-12 00:00:42 +01:00
Yahor Berdnikau d693971baf Add helper functions to convert api Genre to domain entity.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-12 00:00:28 +01:00
Yahor Berdnikau 1502c4c9c8 Add getGenres app call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-12 00:00:11 +01:00
Yahor Berdnikau 1907668c64
Merge pull request #60 from ultrasonic/add-create-share
Add create share
2017-11-11 20:36:06 +01:00
Yahor Berdnikau c6c640f0cf Use new api createShare call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-11 20:31:20 +01:00
Yahor Berdnikau 1012e41620 Add createShare api call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-11 20:31:20 +01:00
Yahor Berdnikau b4145a216a
Merge pull request #59 from ultrasonic/add-get-shares
Add get shares
2017-11-10 22:01:50 +01:00
Yahor Berdnikau 04df5b20da Use new api getShares call in RESTMusicService.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-10 22:00:10 +01:00
Yahor Berdnikau 3bbd1fb16b Add methods to convert api share entity to domain entity.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-10 22:00:10 +01:00
Yahor Berdnikau d5cdc18174 Add getShares call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-10 21:15:36 +01:00
Yahor Berdnikau 6e05dc7c40
Merge pull request #58 from ultrasonic/add-update-jukebox
Add update jukebox
2017-11-07 22:17:25 +01:00
Yahor Berdnikau db73978596 Use new subsonic api jukebox control method.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-07 22:03:52 +01:00
Yahor Berdnikau 17aaa0f87f Add JukeboxStatus converter to domain entity.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-07 21:57:43 +01:00
Yahor Berdnikau 947a1ce3b5 Add jukebox control call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-07 21:26:44 +01:00
Yahor Berdnikau 84e59a3581
Merge pull request #57 from ultrasonic/add-get-download-stream
Add get download stream
2017-11-05 22:25:00 +01:00
Yahor Berdnikau 3e2529bd25 Use new subsonic api stream call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-05 22:21:25 +01:00
Yahor Berdnikau ba412721ac Add stream call.
Also introduced helper method in SubsonicApiClient that handles error
cases.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-05 22:21:25 +01:00
Yahor Berdnikau c8c8766b55 Increase read timeout.
When range interceptor modifies request it also increases read timeout,
that allows server to do transcoding of the response and skip bytes
to offset value.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-05 22:21:25 +01:00
Yahor Berdnikau 72333f245f Add Range header modifier.
Add interceptor that modifies call "Range" header. It changes header
value to "bytes=value-".
2017-11-05 18:44:31 +01:00
Yahor Berdnikau be75511bb7 Update okhttp to 3.9.0 version.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-10-19 22:27:45 +02:00
Yahor Berdnikau 74c5123255 Merge pull request #56 from ultrasonic/add-get-cover-art
Add get cover art
2017-10-18 22:37:34 +02:00
Yahor Berdnikau 4ef8507353 Use new subsonic api getCoverArt call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-10-18 22:32:30 +02:00
Yahor Berdnikau 48e6788224 Add method to get cover art.
As this call should return byte stream: I've introduced helper method
in client to do the actual call and parse possible json error response.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-10-17 21:48:37 +02:00
Yahor Berdnikau d08beff1f4 Merge pull request #55 from ultrasonic/update-gradle
Update gradle to 4.2.1 version.
2017-10-07 21:03:00 +02:00
Yahor Berdnikau 351f51df28 Update gradle to 4.2.1 version.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-10-07 20:59:16 +02:00
Yahor Berdnikau 436ecc3aee Merge pull request #54 from ultrasonic/update-kotlin
Update kotlin to 1.1.51 version.
2017-10-07 20:54:51 +02:00
Yahor Berdnikau bd7e7416a6 Update kotlin to 1.1.51 version.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-10-07 20:46:53 +02:00
Yahor Berdnikau c66aa55d7a Merge pull request #53 from ultrasonic/add-get-starred-2
Add get starred 2
2017-09-16 23:02:28 +02:00