Rename peptide to revolt in API and About screen
This commit renames the `peptide` field to `revolt` in the `Root` data class and updates its usage in the `AboutScreen` to reflect this change.
This commit is contained in:
parent
8e19376e29
commit
d128710f7b
|
|
@ -9,7 +9,7 @@ import kotlinx.serialization.Serializable
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
data class Root(
|
data class Root(
|
||||||
val peptide: String,
|
val revolt: String,
|
||||||
val features: Features,
|
val features: Features,
|
||||||
val ws: String,
|
val ws: String,
|
||||||
val app: String,
|
val app: String,
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,7 @@ class AboutViewModel : ViewModel() {
|
||||||
"App Version" to BuildConfig.VERSION_NAME,
|
"App Version" to BuildConfig.VERSION_NAME,
|
||||||
"App Type" to BuildConfig.FLAVOUR_ID,
|
"App Type" to BuildConfig.FLAVOUR_ID,
|
||||||
"API Host" to URI(PeptideAPI.getCurrentBaseUrl()).host,
|
"API Host" to URI(PeptideAPI.getCurrentBaseUrl()).host,
|
||||||
"API Version" to (root?.peptide ?: "Unknown"),
|
"API Version" to (root?.revolt ?: "Unknown"),
|
||||||
"Runtime SDK" to Build.VERSION.SDK_INT.toString(),
|
"Runtime SDK" to Build.VERSION.SDK_INT.toString(),
|
||||||
"Model" to "${Build.MANUFACTURER} ${
|
"Model" to "${Build.MANUFACTURER} ${
|
||||||
Build.DEVICE.replaceFirstChar {
|
Build.DEVICE.replaceFirstChar {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue