Yahor Berdnikau
24a36e641c
Bump version to 2.5.0 for next release.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-06-12 22:36:39 +02:00
Yahor Berdnikau
91b5941c7c
Fix bookmark doesn't restore saved song position.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-06-12 22:29:19 +02:00
Yahor Berdnikau
c55ca02865
Fix f-droid can't build new app version.
...
F-Droid has a strict limitation (😞 ) that version code and
version name should be in the app build.gradle.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-06-12 21:53:06 +02:00
Óscar García Amor
8b58691246
Default server settings removed
...
Now when you configure a new server connection the input boxes will
appear clean instead of with default garbage.
Signed-off-by: Óscar García Amor <ogarcia@connectical.com>
2018-04-07 17:23:23 +02:00
Yahor Berdnikau
41fe68db0f
Fix notification can't be killed when player is not playing.
...
Fix clicking on close (x) in notification does nothing when player has
neither playing nor paused state.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-04-06 19:00:59 +02:00
Yahor Berdnikau
68cb1af02b
Fix inconsistent behaviour when adding new server on debug build.
...
After adding special suffix for debug builds, default shared preferences
name was changed.
2018-04-03 22:09:22 +02:00
Yahor Berdnikau
55a0e7cb3c
Update Kluent to 1.35 version.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-03-24 19:30:03 +01:00
Óscar García Amor
3c1debc51a
New adaptive icon
2018-03-23 14:16:31 +01:00
Yahor Berdnikau
661b8c2e97
Fix failing AAPT.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-03-21 22:22:48 +01:00
Yahor Berdnikau
52a5ceb5d6
Fix proguard removing too much.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-03-21 22:10:37 +01:00
Óscar García Amor
49ba219a57
Update translations
...
Signed-off-by: Óscar García Amor <ogarcia@connectical.com>
2018-03-19 20:58:34 +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
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
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
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
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
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
Yahor Berdnikau
773158859e
Migrate SearchCriteria entity to kotlin.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-02-21 22:07:11 +01:00
Yahor Berdnikau
8c5944d858
Migrate SearchResult entity to kotlin.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-02-21 22:05:38 +01:00
Yahor Berdnikau
20773761fa
Migrate Share entity to kotlin.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-02-21 21:51:40 +01:00
Yahor Berdnikau
cb02582740
Migrate UserInfo to Kotlin.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-02-20 22:08:34 +01:00
Yahor Berdnikau
4218698a16
Convert Version class to Kotlin.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-02-20 21:54:53 +01:00
Óscar García Amor
75e6e70094
REST_CLIENT_ID simplified
...
From UltraSonic%20for%20Android to simply Ultrasonic
Signed-off-by: Óscar García Amor <ogarcia@connectical.com>
2018-02-20 17:55:24 +01:00
Yahor Berdnikau
ef4d606db2
Move all converters to domain package.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-02-17 20:36:19 +01:00
Yahor Berdnikau
b080c62843
Fix app doesn't handle right transcoded suffix.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-02-11 22:44:53 +01:00
Yahor Berdnikau
acde5b9473
Fix wrong support for empty cover art url.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-02-10 20:11:17 +01:00
Yahor Berdnikau
009567c83e
Fix app may use wrong folder to store music.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-02-10 20:08:57 +01:00
Yahor Berdnikau
b6c14c7541
Fix stray ">" in songs list.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-02-08 22:00:22 +01:00
Óscar García Amor
e140e7fbcd
Set versions into dependencies.gradle
...
Signed-off-by: Óscar García Amor <ogarcia@connectical.com>
2018-01-29 17:48:34 +01:00
Óscar García Amor
60b0374952
Revert "Add versioning plugin."
...
This reverts commit c84482729d
.
2018-01-29 16:26:08 +01:00
Óscar García Amor
143a4a2f37
Fix plurals in source file for translations
...
Signed-off-by: Óscar García Amor <ogarcia@connectical.com>
2018-01-24 13:27:15 +01:00
Óscar García Amor
fcc4ddca55
Fix language files to Transifex
...
Signed-off-by: Óscar García Amor <ogarcia@connectical.com>
2018-01-24 13:20:16 +01:00
Óscar García Amor
0aa5c71d59
Bump version code
...
Signed-off-by: Óscar García Amor <ogarcia@connectical.com>
2018-01-23 22:17:55 +01:00
Yahor Berdnikau
716f184f48
Bump version to 2.2.1 for new bugfix release.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-01-23 21:59:04 +01:00
Ó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
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
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
365bd96f56
Remove unnecessary cast.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2018-01-20 12:53:26 +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
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
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
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
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
c9bc3df543
Merge branch 'master' into develop
2017-12-27 22:01:10 +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
Ó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
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
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
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
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
Ó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
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
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
c4f28280f9
Use getStreamUrl() method for video urls.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-21 21:29:24 +01:00
Yahor Berdnikau
d1256d2b77
Remove unused Apache http client.
...
Finally!
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-19 22:13:46 +01:00
Yahor Berdnikau
4b789e4c88
Disable getVideoUrl() method.
...
This method uses some assuptions on endpoint urls.
The right way is to use stream() api call to get video stream.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-19 22:10:34 +01:00
Yahor Berdnikau
91d93b713d
Remove unused methods.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-19 21:47:58 +01:00
Yahor Berdnikau
662e99ff5a
Use new getAvatar() api call.
...
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-19 21:40:27 +01:00
Yahor Berdnikau
f2ce22ef08
Fix response check NPE
...
Fix response check doens't take into account that body will be null
if response is not successfull.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-19 21:39:13 +01:00