Merge branch 'develop' into patch-further
This commit is contained in:
commit
afccbf3f65
|
@ -27,7 +27,6 @@ jobs:
|
||||||
command: |
|
command: |
|
||||||
./gradlew ciTest testDebugUnitTest
|
./gradlew ciTest testDebugUnitTest
|
||||||
./gradlew jacocoFullReport
|
./gradlew jacocoFullReport
|
||||||
bash <(curl -s https://codecov.io/bash)
|
|
||||||
- run:
|
- run:
|
||||||
name: lint
|
name: lint
|
||||||
command: ./gradlew :ultrasonic:lintRelease
|
command: ./gradlew :ultrasonic:lintRelease
|
||||||
|
|
|
@ -42,6 +42,7 @@ See [CONTRIBUTING](CONTRIBUTING.md).
|
||||||
- [Subsonic](http://www.subsonic.org/pages/index.jsp)
|
- [Subsonic](http://www.subsonic.org/pages/index.jsp)
|
||||||
- [Airsonic](https://github.com/airsonic/airsonic)
|
- [Airsonic](https://github.com/airsonic/airsonic)
|
||||||
- [Supysonic](https://github.com/spl0k/supysonic)
|
- [Supysonic](https://github.com/spl0k/supysonic)
|
||||||
|
- [Ampache](https://ampache.org/)
|
||||||
|
|
||||||
Other *Subsonic API* implementations should work as well as long as they follow API
|
Other *Subsonic API* implementations should work as well as long as they follow API
|
||||||
[documentation](http://www.subsonic.org/pages/api.jsp).
|
[documentation](http://www.subsonic.org/pages/api.jsp).
|
||||||
|
|
|
@ -24,7 +24,7 @@ ext.versions = [
|
||||||
kotlinxCoroutines : "1.3.9",
|
kotlinxCoroutines : "1.3.9",
|
||||||
viewModelKtx : "2.2.0",
|
viewModelKtx : "2.2.0",
|
||||||
|
|
||||||
retrofit : "2.4.0",
|
retrofit : "2.6.4",
|
||||||
jackson : "2.9.5",
|
jackson : "2.9.5",
|
||||||
okhttp : "3.12.13",
|
okhttp : "3.12.13",
|
||||||
semver : "1.0.0",
|
semver : "1.0.0",
|
||||||
|
|
|
@ -320,7 +320,7 @@ class EditServerFragment : Fragment(), OnBackPressedHandler {
|
||||||
// Execute a ping to retrieve the API version.
|
// Execute a ping to retrieve the API version.
|
||||||
// This is accepted to fail if the authentication is incorrect yet.
|
// This is accepted to fail if the authentication is incorrect yet.
|
||||||
var pingResponse = subsonicApiClient.api.ping().execute()
|
var pingResponse = subsonicApiClient.api.ping().execute()
|
||||||
if (pingResponse?.body() != null) {
|
if (pingResponse.body() != null) {
|
||||||
val restApiVersion = pingResponse.body()!!.version.restApiVersion
|
val restApiVersion = pingResponse.body()!!.version.restApiVersion
|
||||||
currentServerSetting!!.minimumApiVersion = restApiVersion
|
currentServerSetting!!.minimumApiVersion = restApiVersion
|
||||||
Timber.i("Server minimum API version set to %s", restApiVersion)
|
Timber.i("Server minimum API version set to %s", restApiVersion)
|
||||||
|
|
|
@ -26,7 +26,7 @@ class ApiCallResponseChecker(
|
||||||
if (activeServerProvider.getActiveServer().minimumApiVersion == null) {
|
if (activeServerProvider.getActiveServer().minimumApiVersion == null) {
|
||||||
try {
|
try {
|
||||||
val response = subsonicAPIClient.api.ping().execute()
|
val response = subsonicAPIClient.api.ping().execute()
|
||||||
if (response?.body() != null) {
|
if (response.body() != null) {
|
||||||
val restApiVersion = response.body()!!.version.restApiVersion
|
val restApiVersion = response.body()!!.version.restApiVersion
|
||||||
Timber.i("Server minimum API version set to %s", restApiVersion)
|
Timber.i("Server minimum API version set to %s", restApiVersion)
|
||||||
activeServerProvider.setMinimumApiVersion(restApiVersion)
|
activeServerProvider.setMinimumApiVersion(restApiVersion)
|
||||||
|
|
Loading…
Reference in New Issue