Skip to content

Commit

Permalink
version (#67)
Browse files Browse the repository at this point in the history
Build version is not required on the ABS Server
  • Loading branch information
GrakovNe authored Nov 23, 2024
1 parent 0ff5dc5 commit c322b55
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ android {
applicationId = "org.grakovne.lissen"
minSdk = 28
targetSdk = 35
versionCode = 42
versionName = "1.1.11"
versionCode = 43
versionName = "1.1.12"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class ConnectionInfoResponseConverter @Inject constructor() {

fun apply(response: ConnectionInfoResponse): ConnectionInfo = ConnectionInfo(
username = response.user.username,
serverVersion = response.serverSettings.version,
buildNumber = response.serverSettings.buildNumber,
serverVersion = response.serverSettings?.version,
buildNumber = response.serverSettings?.buildNumber,
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ package org.grakovne.lissen.channel.audiobookshelf.common.model.connection

data class ConnectionInfoResponse(
val user: ConnectionInfoUserResponse,
val serverSettings: ConnectionInfoServerResponse,
val serverSettings: ConnectionInfoServerResponse?,
)

data class ConnectionInfoUserResponse(
val username: String,
)

data class ConnectionInfoServerResponse(
val version: String,
val buildNumber: String,
val version: String?,
val buildNumber: String?,
)
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ package org.grakovne.lissen.channel.common

data class ConnectionInfo(
val username: String,
val serverVersion: String,
val buildNumber: String,
val serverVersion: String?,
val buildNumber: String?,
)

0 comments on commit c322b55

Please sign in to comment.