From 0fac2187f07de31cd53accddba3b51df9b26c66e Mon Sep 17 00:00:00 2001 From: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com> Date: Wed, 22 Mar 2023 17:45:55 +0000 Subject: [PATCH] mobile: what's new in 4.6 (#2058) * ios: what's new in 4.6 * android: what's new in 4.6 --- .../app/views/onboarding/WhatsNewView.kt | 39 ++++++++++++++++++- .../app/src/main/res/values/strings.xml | 12 ++++++ .../Views/Chat/Group/GroupChatInfoView.swift | 4 +- .../Views/Onboarding/WhatsNewView.swift | 38 ++++++++++++++++++ 4 files changed, 90 insertions(+), 3 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 6f6d3350a4..c112f8ff28 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 @@ -270,8 +270,45 @@ private val versionDescriptions: List = listOf( link = "https://github.com/simplex-chat/simplex-chat/tree/stable#translate-the-apps" ) ) - ) + ), + VersionDescription( + version = "v4.6", + features = listOf( + FeatureDescription( + icon = Icons.Outlined.Lock, + titleId = R.string.v4_6_hidden_chat_profiles, + descrId = R.string.v4_6_hidden_chat_profiles_descr + ), + FeatureDescription( + icon = Icons.Outlined.Flag, + titleId = R.string.v4_6_group_moderation, + descrId = R.string.v4_6_group_moderation_descr + ), + FeatureDescription( + icon = Icons.Outlined.MapsUgc, + titleId = R.string.v4_6_group_welcome_message, + descrId = R.string.v4_6_group_welcome_message_descr + ), + FeatureDescription( + icon = Icons.Outlined.Call, + titleId = R.string.v4_6_audio_video_calls, + descrId = R.string.v4_6_audio_video_calls_descr + ), + FeatureDescription( + icon = Icons.Outlined.Battery3Bar, + titleId = R.string.v4_6_reduced_battery_usage, + descrId = R.string.v4_6_reduced_battery_usage_descr + ), + FeatureDescription( + icon = Icons.Outlined.Translate, + titleId = R.string.v4_6_chinese_spanish_interface, + descrId = R.string.v4_6_chinese_spanish_interface_descr, + link = "https://github.com/simplex-chat/simplex-chat/tree/stable#translate-the-apps" + ) + ) + ), ) + private val lastVersion = versionDescriptions.last().version fun setLastVersionDefault(m: ChatModel) { diff --git a/apps/android/app/src/main/res/values/strings.xml b/apps/android/app/src/main/res/values/strings.xml index 7abaa6fb01..a25f108bdc 100644 --- a/apps/android/app/src/main/res/values/strings.xml +++ b/apps/android/app/src/main/res/values/strings.xml @@ -1158,4 +1158,16 @@ More improvements are coming soon! Italian interface Thanks to the users – contribute via Weblate! + Hidden chat profiles + Protect your chat profiles with a password! + Audio and video calls + Support bluetooth and other improvements. + Group moderation + Now admins can:\n- delete members\' messages.\n- disable members (\"observer\" role) + Group welcome message + Set the message shown to new members! + Further reduced battery usage + More improvements are coming soon! + Chinese and Spanish interface + Thanks to the users – contribute via Weblate! diff --git a/apps/ios/Shared/Views/Chat/Group/GroupChatInfoView.swift b/apps/ios/Shared/Views/Chat/Group/GroupChatInfoView.swift index b13e9d7ce5..ed8dfd9221 100644 --- a/apps/ios/Shared/Views/Chat/Group/GroupChatInfoView.swift +++ b/apps/ios/Shared/Views/Chat/Group/GroupChatInfoView.swift @@ -223,8 +223,8 @@ struct GroupChatInfoView: View { .navigationBarTitleDisplayMode(.large) } label: { groupInfo.groupProfile.description == nil - ? Label("Add welcome message", systemImage: "plus.bubble.fill") - : Label("Welcome message", systemImage: "plus.bubble.fill") + ? Label("Add welcome message", systemImage: "plus.message") + : Label("Welcome message", systemImage: "message") } } diff --git a/apps/ios/Shared/Views/Onboarding/WhatsNewView.swift b/apps/ios/Shared/Views/Onboarding/WhatsNewView.swift index adb625b931..06a32a7c28 100644 --- a/apps/ios/Shared/Views/Onboarding/WhatsNewView.swift +++ b/apps/ios/Shared/Views/Onboarding/WhatsNewView.swift @@ -129,6 +129,41 @@ 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: "v4.6", + features: [ + FeatureDescription( + icon: "lock", + title: "Hidden chat profiles", + description: "Protect your chat profiles with a password!" + ), + FeatureDescription( + icon: "phone.arrow.up.right", + title: "Audio and video calls", + description: "Fully re-implemented - work in background!" + ), + FeatureDescription( + icon: "flag", + title: "Group moderation", + description: "Now admins can:\n- delete members' messages.\n- disable members (\"observer\" role)" + ), + FeatureDescription( + icon: "plus.message", + title: "Group welcome message", + description: "Set the message shown to new members!" + ), + FeatureDescription( + icon: "battery.50", + title: "Further reduced battery usage", + description: "More improvements are coming soon!" + ), + FeatureDescription( + icon: "character", + title: "Chinese and Spanish interface", + description: "Thanks to the users – [contribute via Weblate](https://github.com/simplex-chat/simplex-chat/tree/stable#translate-the-apps)!" + ), + ] ) ] @@ -182,6 +217,9 @@ struct WhatsNewView: View { pagination() } .padding() + .onChange(of: currentVersion) { _ in + currentVersionNav = currentVersion + } } private func featureDescription(_ icon: String, _ title: LocalizedStringKey, _ description: LocalizedStringKey) -> some View {