1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

DROID-3423 Settings | Enhancement | Show ethereumKey in tech info section on About screen (#2256)

This commit is contained in:
Evgenii Kozlov 2025-04-08 17:30:08 +02:00 committed by GitHub
parent 43191fe442
commit db4ec70790
Signed by: github
GPG key ID: B5690EEEBB952194
7 changed files with 25 additions and 10 deletions

View file

@ -33,6 +33,7 @@ fun AboutAppScreen(
deviceId: String,
version: String,
buildNumber: Int,
ethereumKey: String,
onMetaClicked: () -> Unit,
onContactUsClicked: () -> Unit,
onExternalLinkClicked: (AboutAppViewModel.ExternalLink) -> Unit,
@ -108,13 +109,14 @@ fun AboutAppScreen(
) {
Text(
text = stringResource(
id = R.string.about_meta_info,
id = R.string.about_meta_info_new,
version,
buildNumber,
libraryVersion,
accountId,
deviceId,
analyticsId
analyticsId,
ethereumKey
),
style = Caption2Regular.copy(
color = colorResource(id = R.color.text_secondary)
@ -173,6 +175,7 @@ fun PreviewAboutAppScreen() {
buildNumber = 1,
onMetaClicked = {},
onExternalLinkClicked = {},
onContactUsClicked = {}
onContactUsClicked = {},
ethereumKey = "Some key"
)
}

View file

@ -50,6 +50,7 @@ class AboutAppViewModel(
val accountId = MutableStateFlow("")
val analyticsId = MutableStateFlow("")
val deviceId = MutableStateFlow("")
val ethereumAddress = MutableStateFlow("")
init {
viewModelScope.launch {
@ -64,6 +65,7 @@ class AboutAppViewModel(
val config = configStorage.get()
analyticsId.value = config.analytics
deviceId.value = config.device
ethereumAddress.value = config.ethereumAddress
}
viewModelScope.launch {
getLibraryVersion(BaseUseCase.None).process(