Add a debug page (#32)

Click the version in settings 3 times to open this new debug page which
displays internal information such as settings, server info, app info,
and database info. It will also show recently logcat messages.
This commit is contained in:
damontecres 2025-10-18 15:48:04 -04:00 committed by GitHub
parent f57fd25f8e
commit 405e170750
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 325 additions and 2 deletions

View file

@ -22,4 +22,7 @@ interface ItemPlaybackDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
fun saveItem(item: ItemPlayback): Long
@Query("SELECT * from ItemPlayback WHERE userId=:userId")
fun getItems(userId: Int): List<ItemPlayback>
}

View file

@ -13,6 +13,7 @@ import androidx.room.Query
import androidx.room.Relation
import androidx.room.Transaction
import androidx.room.Update
import com.github.damontecres.wholphin.ui.isNotNullOrBlank
import java.util.UUID
@Entity(tableName = "servers")
@ -43,7 +44,10 @@ data class JellyfinUser(
@ColumnInfo(index = true)
val serverId: UUID,
val accessToken: String?,
)
) {
override fun toString(): String =
"JellyfinUser(rowId=$rowId, id=$id, name=$name, serverId=$serverId, accessToken=${accessToken.isNotNullOrBlank()})"
}
data class JellyfinServerUsers(
@Embedded val server: JellyfinServer,