From 422ba9ba9a0450ae1dfe1b353718b85b88cb0bdf Mon Sep 17 00:00:00 2001
From: Janne Mareike Koschinski <janne@kuschku.de>
Date: Sun, 2 Apr 2023 15:28:07 +0200
Subject: [PATCH] feat: remove version info from about fragment

---
 .../ui/clientsettings/about/AboutFragment.kt  | 23 -------------------
 .../ui/clientsettings/about/Library.kt        |  1 -
 .../ui/clientsettings/about/LibraryAdapter.kt |  2 --
 app/src/main/res/layout/widget_library.xml    |  9 --------
 4 files changed, 35 deletions(-)

diff --git a/app/src/main/java/de/kuschku/quasseldroid/ui/clientsettings/about/AboutFragment.kt b/app/src/main/java/de/kuschku/quasseldroid/ui/clientsettings/about/AboutFragment.kt
index c6bc4bc62..5b1451516 100644
--- a/app/src/main/java/de/kuschku/quasseldroid/ui/clientsettings/about/AboutFragment.kt
+++ b/app/src/main/java/de/kuschku/quasseldroid/ui/clientsettings/about/AboutFragment.kt
@@ -122,31 +122,26 @@ class AboutFragment : DaggerFragment() {
       ),
       Library(
         name = "Apache Commons Codec",
-        version = "1.13",
         license = apache2,
         url = "https://commons.apache.org/proper/commons-codec/"
       ),
       Library(
         name = "AutoService",
-        version = "1.0-rc6",
         license = apache2,
         url = "https://github.com/google/auto/tree/master/service"
       ),
       Library(
         name = "Better Link Movement Method",
-        version = "2.1.0",
         license = apache2,
         url = "https://github.com/Saketme/Better-Link-Movement-Method"
       ),
       Library(
         name = "Butter Knife",
-        version = "10.1.0",
         license = apache2,
         url = "http://jakewharton.github.io/butterknife/"
       ),
       Library(
         name = "Dagger 2",
-        version = "2.24",
         license = apache2,
         url = "https://google.github.io/dagger/"
       ),
@@ -161,19 +156,16 @@ class AboutFragment : DaggerFragment() {
       ),
       Library(
         name = "FloatingActionButtonSpeedDial",
-        version = "3.0.0",
         license = apache2,
         url = "https://github.com/leinardi/FloatingActionButtonSpeedDial"
       ),
       Library(
         name = "Glide",
-        version = "4.9.0",
         license = apache2,
         url = "https://bumptech.github.io/glide/"
       ),
       Library(
         name = "Gson",
-        version = "2.8.5",
         license = apache2,
         url = "https://github.com/google/gson"
       ),
@@ -188,31 +180,26 @@ class AboutFragment : DaggerFragment() {
       ),
       Library(
         name = "KotlinPoet",
-        version = "1.3.0",
         license = apache2,
         url = "https://github.com/square/kotlinpoet"
       ),
       Library(
         name = "JetBrains Java Annotations",
-        version = "17.0.0",
         license = apache2,
         url = "https://github.com/JetBrains/java-annotations"
       ),
       Library(
         name = "Kotlin Standard Library",
-        version = "1.6.10",
         license = apache2,
         url = "https://kotlinlang.org/"
       ),
       Library(
         name = "LeakCanary",
-        version = "1.6.3",
         license = apache2,
         url = "https://github.com/square/leakcanary"
       ),
       Library(
         name = "Material Components",
-        version = "1.1.0-alpha10",
         license = apache2,
         url = "https://github.com/material-components/material-components-android"
       ),
@@ -227,13 +214,11 @@ class AboutFragment : DaggerFragment() {
       ),
       Library(
         name = "Material Design Icons: Google",
-        version = "3.0.1",
         license = apache2,
         url = "https://github.com/google/material-design-icons"
       ),
       Library(
         name = "Material Dialogs",
-        version = "0.9.6.0",
         license = License(
           shortName = "MIT",
           fullName = "The MIT License (MIT)",
@@ -243,13 +228,11 @@ class AboutFragment : DaggerFragment() {
       ),
       Library(
         name = "MaterialProgressBar",
-        version = "1.6.1",
         license = apache2,
         url = "https://github.com/DreaminginCodeZH/MaterialProgressBar"
       ),
       Library(
         name = "Quassel",
-        version = "0.13.1",
         license = License(
           shortName = "GPLv3",
           fullName = "GNU GENERAL PUBLIC LICENSE",
@@ -259,7 +242,6 @@ class AboutFragment : DaggerFragment() {
       ),
       Library(
         name = "Reactive Streams",
-        version = "1.0.2",
         license = License(
           shortName = "CC0",
           fullName = "Creative Commons CC0 1.0 Universal",
@@ -269,25 +251,21 @@ class AboutFragment : DaggerFragment() {
       ),
       Library(
         name = "ReactiveNetwork",
-        version = "3.0.6",
         license = apache2,
         url = "https://github.com/pwittchen/ReactiveNetwork"
       ),
       Library(
         name = "RecyclerView-FastScroll",
-        version = "2.0.",
         license = apache2,
         url = "https://github.com/timusus/RecyclerView-FastScroll"
       ),
       Library(
         name = "Retrofit",
-        version = "2.6.1",
         license = apache2,
         url = "https://square.github.io/retrofit/"
       ),
       Library(
         name = "RxJava",
-        version = "2.2.12",
         license = apache2,
         url = "https://github.com/ReactiveX/RxJava"
       ),
@@ -302,7 +280,6 @@ class AboutFragment : DaggerFragment() {
       ),
       Library(
         name = "ThreeTen backport project",
-        version = "1.4.10",
         license = License(
           shortName = "BSD 3-clause",
           text = R.raw.license_threetenbp
diff --git a/app/src/main/java/de/kuschku/quasseldroid/ui/clientsettings/about/Library.kt b/app/src/main/java/de/kuschku/quasseldroid/ui/clientsettings/about/Library.kt
index e082f4205..2c6ecb015 100644
--- a/app/src/main/java/de/kuschku/quasseldroid/ui/clientsettings/about/Library.kt
+++ b/app/src/main/java/de/kuschku/quasseldroid/ui/clientsettings/about/Library.kt
@@ -21,7 +21,6 @@ package de.kuschku.quasseldroid.ui.clientsettings.about
 
 data class Library(
   val name: String,
-  val version: String? = null,
   val license: License,
   val url: String? = null
 )
diff --git a/app/src/main/java/de/kuschku/quasseldroid/ui/clientsettings/about/LibraryAdapter.kt b/app/src/main/java/de/kuschku/quasseldroid/ui/clientsettings/about/LibraryAdapter.kt
index 580a33460..d7f1e498d 100644
--- a/app/src/main/java/de/kuschku/quasseldroid/ui/clientsettings/about/LibraryAdapter.kt
+++ b/app/src/main/java/de/kuschku/quasseldroid/ui/clientsettings/about/LibraryAdapter.kt
@@ -56,8 +56,6 @@ class LibraryAdapter(private val libraries: List<Library>) :
     fun bind(item: Library) {
       this.item = item
       binding.name.text = item.name
-      binding.version.text = item.version
-      binding.version.visibleIf(!item.version.isNullOrBlank())
       binding.license.text = item.license.shortName
     }
   }
diff --git a/app/src/main/res/layout/widget_library.xml b/app/src/main/res/layout/widget_library.xml
index b2ee94ae4..ea51f9193 100644
--- a/app/src/main/res/layout/widget_library.xml
+++ b/app/src/main/res/layout/widget_library.xml
@@ -45,15 +45,6 @@
       android:textSize="16sp"
       tools:text="@sample/libraries.json/data/name" />
 
-    <TextView
-      android:id="@+id/version"
-      style="@style/Widget.RtlConformTextView"
-      android:layout_width="wrap_content"
-      android:layout_height="wrap_content"
-      android:textAppearance="?android:attr/textAppearanceSmall"
-      android:textColor="?colorTextSecondary"
-      tools:text="@sample/libraries.json/data/version" />
-
     <TextView
       android:id="@+id/license"
       style="@style/Widget.RtlConformTextView"
-- 
GitLab