From 64ad49119719ecd04804a2a5031e45420d51466c Mon Sep 17 00:00:00 2001 From: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com> Date: Tue, 18 Apr 2023 19:54:56 +0400 Subject: [PATCH] mobile: what's new in 5.0 (#2200) * mobile: what's new in 5.0 * update texts * update --------- Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com> --- .../app/views/onboarding/WhatsNewView.kt | 34 ++++++++++++++++--- .../app/src/main/res/values/strings.xml | 6 ++++ .../Views/Onboarding/WhatsNewView.swift | 23 ++++++++++++- 3 files changed, 57 insertions(+), 6 deletions(-) diff --git a/apps/android/app/src/main/java/chat/simplex/app/views/onboarding/WhatsNewView.kt b/apps/android/app/src/main/java/chat/simplex/app/views/onboarding/WhatsNewView.kt index c112f8ff28..dbd3ce5e35 100644 --- a/apps/android/app/src/main/java/chat/simplex/app/views/onboarding/WhatsNewView.kt +++ b/apps/android/app/src/main/java/chat/simplex/app/views/onboarding/WhatsNewView.kt @@ -1,7 +1,7 @@ package chat.simplex.app.views.onboarding import android.content.res.Configuration -import androidx.compose.foundation.clickable +import androidx.compose.foundation.* import androidx.compose.foundation.layout.* import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.material.* @@ -40,11 +40,13 @@ fun WhatsNewView(viaSettings: Boolean = false, close: () -> Unit) { } Column( - horizontalAlignment = Alignment.Start + horizontalAlignment = Alignment.Start, + modifier = Modifier.padding(bottom = 12.dp) ) { Row( verticalAlignment = Alignment.CenterVertically, - horizontalArrangement = Arrangement.spacedBy(8.dp) + horizontalArrangement = Arrangement.spacedBy(8.dp), + modifier = Modifier.padding(bottom = 4.dp) ) { Icon(icon, stringResource(titleId), tint = HighOrLowlight) Text( @@ -107,8 +109,9 @@ fun WhatsNewView(viaSettings: Boolean = false, close: () -> Unit) { ModalView(close = close) { Column( Modifier - .fillMaxWidth() - .padding(horizontal = DEFAULT_PADDING), + .fillMaxSize() + .padding(horizontal = DEFAULT_PADDING) + .verticalScroll(rememberScrollState()), horizontalAlignment = Alignment.Start, verticalArrangement = Arrangement.spacedBy(16.dp) ) { @@ -307,6 +310,27 @@ private val versionDescriptions: List = listOf( ) ) ), + VersionDescription( + version = "v5.0", + features = listOf( + FeatureDescription( + icon = Icons.Outlined.UploadFile, + titleId = R.string.v5_0_large_files_support, + descrId = R.string.v5_0_large_files_support_descr + ), + FeatureDescription( + icon = Icons.Outlined.Lock, + titleId = R.string.v5_0_app_passcode, + descrId = R.string.v5_0_app_passcode_descr + ), + FeatureDescription( + icon = Icons.Outlined.Translate, + titleId = R.string.v5_0_polish_interface, + descrId = R.string.v5_0_polish_interface_descr, + link = "https://github.com/simplex-chat/simplex-chat/tree/stable#translate-the-apps" + ) + ) + ) ) private val lastVersion = versionDescriptions.last().version diff --git a/apps/android/app/src/main/res/values/strings.xml b/apps/android/app/src/main/res/values/strings.xml index 40be55bf04..e0fd08b380 100644 --- a/apps/android/app/src/main/res/values/strings.xml +++ b/apps/android/app/src/main/res/values/strings.xml @@ -1307,4 +1307,10 @@ More improvements are coming soon! Chinese and Spanish interface Thanks to the users – contribute via Weblate! + Videos and files up to 1gb + Fast and no wait until the sender is online! + App passcode + Set it instead of system authentication. + Polish interface + Thanks to the users – contribute via Weblate! diff --git a/apps/ios/Shared/Views/Onboarding/WhatsNewView.swift b/apps/ios/Shared/Views/Onboarding/WhatsNewView.swift index 06a32a7c28..295258bd24 100644 --- a/apps/ios/Shared/Views/Onboarding/WhatsNewView.swift +++ b/apps/ios/Shared/Views/Onboarding/WhatsNewView.swift @@ -164,6 +164,26 @@ private let versionDescriptions: [VersionDescription] = [ description: "Thanks to the users – [contribute via Weblate](https://github.com/simplex-chat/simplex-chat/tree/stable#translate-the-apps)!" ), ] + ), + VersionDescription( + version: "v5.0", + features: [ + FeatureDescription( + icon: "arrow.up.doc", + title: "Videos and files up to 1gb", + description: "Fast and no wait until the sender is online!" + ), + FeatureDescription( + icon: "lock", + title: "App passcode", + description: "Set it instead of system authentication." + ), + FeatureDescription( + icon: "character", + title: "Polish interface", + description: "Thanks to the users – [contribute via Weblate](https://github.com/simplex-chat/simplex-chat/tree/stable#translate-the-apps)!" + ), + ] ) ] @@ -197,6 +217,7 @@ struct WhatsNewView: View { .padding(.vertical) ForEach(v.features, id: \.icon) { f in featureDescription(f.icon, f.title, f.description) + .padding(.bottom, 8) } if !viaSettings { Spacer() @@ -223,7 +244,7 @@ struct WhatsNewView: View { } private func featureDescription(_ icon: String, _ title: LocalizedStringKey, _ description: LocalizedStringKey) -> some View { - VStack(alignment: .leading) { + VStack(alignment: .leading, spacing: 4) { HStack(alignment: .center, spacing: 4) { Image(systemName: icon).foregroundColor(.secondary) .frame(minWidth: 30, alignment: .center)