Commit Graph

1967 Commits

Author SHA1 Message Date
Yahor Berdnikau 5227897580 Add detekt job to CI config.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-07-30 22:26:47 +02:00
Yahor Berdnikau 317ccd2ed8 Fix detekt issues.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-07-30 22:23:25 +02:00
Yahor Berdnikau 07c2bfaeaf Add detekt - static code analysis tool for Kotlin.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-07-30 22:22:13 +02:00
Yahor Berdnikau 61de665997 Merge pull request #15 from ultrasonic/add-circle-ci
Add CircleCI config.
2017-07-30 16:16:00 +02:00
Yahor Berdnikau 4b4fb1806f Add CircleCI build badge.
Currently it is showing status for develop branch.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-07-30 16:14:40 +02:00
Yahor Berdnikau d97b7de6e2 Add CircleCI config.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-07-30 15:40:47 +02:00
Yahor Berdnikau f1041d247d Merge pull request #14 from ultrasonic/add-ktlint
Add ktlint
2017-07-29 23:05:52 +02:00
Yahor Berdnikau 3907d10950 Fix ktLint issues.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-07-29 22:52:02 +02:00
Yahor Berdnikau 2d3316964a Add ktlint check.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-07-29 22:31:33 +02:00
Yahor Berdnikau 343d6fc4d7 Merge pull request #13 from ultrasonic/remove-unused-methods
Remove unused methods from MusicService.
2017-07-29 21:48:39 +02:00
Yahor Berdnikau 4f42301752 Remove unused methods from MusicService.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-07-29 10:32:13 +02:00
Yahor Berdnikau 4d2a8a16bb Merge pull request #11 from ultrasonic/feature-9
Add initial usage of new Subsonic API implementation in RESTMusicService
2017-07-27 09:37:47 +02:00
Yahor Berdnikau 7a5035e725 Reset MusicService when user changes active server.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-07-27 08:16:33 +02:00
Yahor Berdnikau ce90d5a3e9 Use different messages in progress listener.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-07-26 22:58:16 +02:00
Yahor Berdnikau 987ed9faf6 Remove unused MusicFolderParser.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-07-26 22:56:47 +02:00
Yahor Berdnikau a8ab61ec3b Remove unused LicenseParser.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-07-26 22:54:56 +02:00
Yahor Berdnikau 4fd5493d15 Use getMusicFolders() method from SubsonicAPI kotlin implementation.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-07-26 22:04:20 +02:00
Yahor Berdnikau 9ed0921218 Make MusicFolder has default values.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-07-26 22:02:35 +02:00
Yahor Berdnikau 67601262de Use getLicense() method from Subsonic API kotlin implementation.
Replace in RESTMusicService isLicenseValid() method body to use new kotlin subsonic API.
2017-07-25 22:31:49 +02:00
Yahor Berdnikau 0d3c0f0334 Add missing fields to License entity.
Add email and licenseExpires fields. Make all fields have default value,
this allows to make license field in LicenseResponse non-null.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-07-25 22:23:55 +02:00
Yahor Berdnikau 1caeaa9fe6 Add using new api for ping call.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-07-24 22:41:26 +02:00
Yahor Berdnikau f054fae2aa Add missing 1.15.0 subsonic api version.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-07-24 22:38:57 +02:00
Yahor Berdnikau 24b85a1647 Fix base url is not have rest endpoint part.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-07-24 22:35:59 +02:00
Yahor Berdnikau f1ab0a3e0c Add using new authentication method since 1.13.0.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-07-23 20:03:25 +02:00
Yahor Berdnikau 20d95ce19d Add optional logging to SubsonicAPI.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-07-22 22:49:26 +02:00
Yahor Berdnikau 24d68fcf3c Revert back to compile api 22.
Some used classes are missing in the newest sdk like FloatMath and apache http client.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-07-22 22:19:38 +02:00
Yahor Berdnikau 81dcbb0044 Adds get music directory response/request handling. 2017-07-19 17:02:47 +02:00
Yahor Berdnikau f686ebfb16 Update kotlin and android dependencies. 2017-07-19 17:02:47 +02:00
Yahor Berdnikau 429f302f7e Add getMusicFolders api request.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-07-19 17:02:47 +02:00
Yahor Berdnikau 4dec26de9c Generify check error response.
This will help easier to test each method error response.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-07-19 17:02:47 +02:00
Yahor Berdnikau cfa90e0a8d Switched to using Jackson for json parsing.
Also changed how response is parsed, allowing base response has different models to parse.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-07-19 17:02:47 +02:00
Yahor Berdnikau 0dd01d18ba Base implementation of Subsonic API in Kotlin. 2017-07-19 17:02:47 +02:00
Yahor Berdnikau 292490be7d Update gradle to 3.4
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-07-19 17:02:47 +02:00
Óscar García Amor eeacc79493 Fixed format of both pt translations 2017-07-18 09:30:03 +02:00
Óscar García Amor 0a4d9d47e6 Updated version to 1.8 2017-07-12 15:49:09 +02:00
Óscar García Amor 1afeafe1c6 Merge pull request #4 from inkognito13/defect/offline-mode-fix
Not add track number prefix to filename if its already added
2017-07-12 15:03:56 +02:00
dtarasov e3a485f0ef Not add track number prefix to filename if its already added 2017-06-28 13:25:04 +04:00
Óscar García Amor 47d8c5a95d Updated version to 1.7 2017-05-25 14:02:36 +02:00
Óscar García Amor ba55fdfae5 Added pt and pt_br tanslations
- Thanks to Paulo Schopf!
2017-05-25 13:45:41 +02:00
Óscar García Amor 122ae93bcb Updated version to 1.6 2017-02-20 16:39:23 +01:00
Óscar García Amor 53d2391016 Merge pull request #3 from Tapchicoma/fix_menu
Fix some actionbar menu items are not shown as icons.
2017-02-13 19:37:06 +01:00
Óscar García Amor 5aff175144 Merge pull request #2 from Tapchicoma/update_gitignore
Added IDEA files to .gitignore.
2017-02-13 19:36:49 +01:00
Óscar García Amor 9ad64ecf26 Merge pull request #1 from Tapchicoma/notification_refactor
Update how now playing notification is shown.
2017-02-13 19:36:38 +01:00
Yahor Berdnikau e1fa97b98f
Fix some actionbar menu items are not shown as icons.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-02-11 18:02:34 +01:00
Yahor Berdnikau 3ed83fb83f
Added IDEA files to .gitignore.
This files are not need to be in vcs as project can be built by Gradle.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-02-11 17:30:59 +01:00
Yahor Berdnikau c80d92b459
Update how now playing notification is shown.
Move all logic to the DownloadServiceImpl as it is not a responsibility of SubsonicTabActivity to do it.
Also NotificationCompat.Builder to build notification as now it is a standard way to do it.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-02-11 15:38:32 +01:00
Óscar García Amor 5fee79c652 Comented the code that uses sensitive permissions 2017-02-07 15:17:01 +01:00
Óscar García Amor 98a4f05f81 Removed sensitive permissions 2017-02-07 09:50:32 +01:00
Óscar García Amor c540af3c86 Better .gitignore 2017-02-07 09:12:44 +01:00
Óscar García Amor ccdb813800 Fixed small issue with notification background 2017-02-06 21:22:23 +01:00