Commit Graph

797 Commits

Author SHA1 Message Date
Yahor Berdnikau b0119281f2
Merge branch 'master' into develop 2018-03-18 19:43:17 +01:00
Yahor Berdnikau 2c2968f780
Merge pull request #177 from ultrasonic/update-version
Bump version to 2.3.0 for next release.
2018-03-18 19:36:38 +01:00
Yahor Berdnikau c5bcc49e40 Bump version to 2.3.0 for next release.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-03-18 19:32:50 +01:00
Yahor Berdnikau d102f6d60b
Merge pull request #176 from ultrasonic/fix-server-version-is-not-updated
Fix server version is not updated
2018-03-18 19:19:50 +01:00
Yahor Berdnikau d476ddfa0c Make a ping to server on app start.
This will update supported server version in subsonic api client.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-03-18 19:15:22 +01:00
Yahor Berdnikau 44114e90ab Increase response peek bytes to 1000.
This will increase the probability that version is parsed.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-03-18 18:38:28 +01:00
Yahor Berdnikau bf6026087a
Merge pull request #175 from ultrasonic/enable-minify-for-release
Enable minify for release
2018-03-18 18:22:55 +01:00
Yahor Berdnikau 32990acb2a Add assemble release step to build job.
This will check that minification of release is not broken.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-03-18 18:18:43 +01:00
Yahor Berdnikau 7bf39ca877 Enable minification for release build.
This reduces result apk size around 2x times.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-03-18 18:09:42 +01:00
Yahor Berdnikau 3de18ed282
Merge pull request #173 from ultrasonic/persistent-cache
Persistent cache
2018-03-18 17:42:35 +01:00
Yahor Berdnikau 1737fd69e7 Remove unused method from FileUtil.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-03-18 17:38:47 +01:00
Yahor Berdnikau cd02aff0f5 Remove ununsed companion object from MusicFolder entity.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-03-18 17:37:11 +01:00
Yahor Berdnikau b6140d841f Update twitter serial to 0.1.6 version.
This fixes unknown type deserialization error.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-03-18 17:36:22 +01:00
Yahor Berdnikau 72743346dc Hide implementation under typealias.
Though it is not working for java interop.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-03-18 17:30:55 +01:00
Yahor Berdnikau 8076956786 Clear persistent storage on server deletion.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-03-12 22:21:07 +01:00
Yahor Berdnikau 334ffbf5e9 Make persistent storage per server base.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-03-12 21:40:55 +01:00
Yahor Berdnikau fa7b8b1c88 Store loaded artists in persistent file store.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-03-12 21:19:46 +01:00
Yahor Berdnikau 423461c3ba Store loaded indexes in persistent storage.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-03-11 22:02:31 +01:00
Yahor Berdnikau 63715aab18 Add more test for PermanentFileStorage.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-03-11 19:13:01 +01:00
Yahor Berdnikau 1e806e3658 Added cache module to code coverage reports.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-03-11 11:56:38 +01:00
Yahor Berdnikau c49e447240 Add permanent file storage.
It serialize domain objects to byte array and store it to file.
For now it only uses for MusicFolder entity store.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-03-10 22:20:34 +01:00
Yahor Berdnikau ad52e3ad95 Move domain entities to own module.
This allow other modules to depend on them.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-03-10 19:42:28 +01:00
Yahor Berdnikau 4952e1d240 Add new cache module.
This module will be responsible for temporary and
permanent caching of any data.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-02-26 22:03:33 +01:00
Yahor Berdnikau 441f1d9832
Merge pull request #171 from ultrasonic/update-versions
Update versions
2018-02-25 22:40:14 +01:00
Yahor Berdnikau da7c8dee2c Add more build improvements into gradle.properties.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-02-25 22:35:48 +01:00
Yahor Berdnikau 29f2d1eea8 Update detekt to 1.0.0.RC6-3 version.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-02-25 22:23:55 +01:00
Yahor Berdnikau e59acc880e Update ktlint to 0.15.1 version.
Also update gradle plugin to 3.0.1 version.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-02-25 22:19:56 +01:00
Yahor Berdnikau 9b4155c06f Update gradle to 4.5.1 version.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-02-25 22:16:30 +01:00
Yahor Berdnikau 5e716f5026 Update kotlin to 1.20.21 version.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-02-25 22:11:47 +01:00
Yahor Berdnikau 4c85213c6c
Merge pull request #169 from ultrasonic/convert_entities_to_data_class
Convert domain entities to kotlin
2018-02-24 23:07:41 +01:00
Yahor Berdnikau 85111dd47d Fix crash on entry unboxing.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-02-24 23:04:07 +01:00
Yahor Berdnikau 12c68d9ebf Fix adapter using toString() method for entry.
Replace it to use getName().

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-02-24 23:03:50 +01:00
Yahor Berdnikau 4ab4351cb4 Enable code coverage for domain package.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-02-24 22:27:23 +01:00
Yahor Berdnikau 182eb7ec3b Fix unit tests.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-02-24 22:19:34 +01:00
Yahor Berdnikau a11037ecf1 Fix ChatMessage was not data class.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-02-24 22:19:17 +01:00
Yahor Berdnikau 440eb4067d Fix missing empty line in the end.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-02-22 22:47:41 +01:00
Yahor Berdnikau 1fe6da5f46 Convert MusicDirectory domain entity to kotlin.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-02-22 22:45:28 +01:00
Yahor Berdnikau 47d5a4dba1 Convert Artist domain entity to kotlin.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-02-22 22:30:39 +01:00
Yahor Berdnikau 3e3d39e2cd Convert Bookmark domain entity to kotlin.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-02-22 22:23:48 +01:00
Yahor Berdnikau 817122c16f Convert ChatMessage domain entity to kotlin.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-02-22 22:18:23 +01:00
Yahor Berdnikau ea5fd0d1be Convert Genre domain entity to kotlin.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-02-22 21:57:10 +01:00
Yahor Berdnikau 9ddd68f941 Convert Indexes domain entity to kotlin.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-02-22 21:46:53 +01:00
Yahor Berdnikau 21b3fcc77c Convert JukeboxStatus domain entity to kotlin.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-02-22 21:36:58 +01:00
Yahor Berdnikau 3dd7e531b9 Convert Lyrics domain entity to kotlin.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-02-22 21:26:40 +01:00
Yahor Berdnikau a1f2132a17 Convert MusicFolder domain entity to kotlin.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-02-22 21:18:24 +01:00
Yahor Berdnikau b3d70f8745 Convert Playlist domain enum to kotlin.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-02-22 21:16:41 +01:00
Yahor Berdnikau 5265e58d47 Convert Playlist domain entity to kotlin.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-02-22 21:15:32 +01:00
Yahor Berdnikau 6d6380ca96 Remove unused PodcastEpisode entity.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-02-22 20:53:16 +01:00
Yahor Berdnikau 257a014b18 Migrate PodcastsChannel entity to kotlin.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-02-21 22:38:13 +01:00
Yahor Berdnikau 82e265fda9 Migrate RepeatMode enum to kotlin.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-02-21 22:09:34 +01:00