Skip to content
Snippets Groups Projects
Verified Commit 422ba9ba authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

feat: remove version info from about fragment

parent f8cc2e1a
Branches
Tags
No related merge requests found
...@@ -122,31 +122,26 @@ class AboutFragment : DaggerFragment() { ...@@ -122,31 +122,26 @@ class AboutFragment : DaggerFragment() {
), ),
Library( Library(
name = "Apache Commons Codec", name = "Apache Commons Codec",
version = "1.13",
license = apache2, license = apache2,
url = "https://commons.apache.org/proper/commons-codec/" url = "https://commons.apache.org/proper/commons-codec/"
), ),
Library( Library(
name = "AutoService", name = "AutoService",
version = "1.0-rc6",
license = apache2, license = apache2,
url = "https://github.com/google/auto/tree/master/service" url = "https://github.com/google/auto/tree/master/service"
), ),
Library( Library(
name = "Better Link Movement Method", name = "Better Link Movement Method",
version = "2.1.0",
license = apache2, license = apache2,
url = "https://github.com/Saketme/Better-Link-Movement-Method" url = "https://github.com/Saketme/Better-Link-Movement-Method"
), ),
Library( Library(
name = "Butter Knife", name = "Butter Knife",
version = "10.1.0",
license = apache2, license = apache2,
url = "http://jakewharton.github.io/butterknife/" url = "http://jakewharton.github.io/butterknife/"
), ),
Library( Library(
name = "Dagger 2", name = "Dagger 2",
version = "2.24",
license = apache2, license = apache2,
url = "https://google.github.io/dagger/" url = "https://google.github.io/dagger/"
), ),
...@@ -161,19 +156,16 @@ class AboutFragment : DaggerFragment() { ...@@ -161,19 +156,16 @@ class AboutFragment : DaggerFragment() {
), ),
Library( Library(
name = "FloatingActionButtonSpeedDial", name = "FloatingActionButtonSpeedDial",
version = "3.0.0",
license = apache2, license = apache2,
url = "https://github.com/leinardi/FloatingActionButtonSpeedDial" url = "https://github.com/leinardi/FloatingActionButtonSpeedDial"
), ),
Library( Library(
name = "Glide", name = "Glide",
version = "4.9.0",
license = apache2, license = apache2,
url = "https://bumptech.github.io/glide/" url = "https://bumptech.github.io/glide/"
), ),
Library( Library(
name = "Gson", name = "Gson",
version = "2.8.5",
license = apache2, license = apache2,
url = "https://github.com/google/gson" url = "https://github.com/google/gson"
), ),
...@@ -188,31 +180,26 @@ class AboutFragment : DaggerFragment() { ...@@ -188,31 +180,26 @@ class AboutFragment : DaggerFragment() {
), ),
Library( Library(
name = "KotlinPoet", name = "KotlinPoet",
version = "1.3.0",
license = apache2, license = apache2,
url = "https://github.com/square/kotlinpoet" url = "https://github.com/square/kotlinpoet"
), ),
Library( Library(
name = "JetBrains Java Annotations", name = "JetBrains Java Annotations",
version = "17.0.0",
license = apache2, license = apache2,
url = "https://github.com/JetBrains/java-annotations" url = "https://github.com/JetBrains/java-annotations"
), ),
Library( Library(
name = "Kotlin Standard Library", name = "Kotlin Standard Library",
version = "1.6.10",
license = apache2, license = apache2,
url = "https://kotlinlang.org/" url = "https://kotlinlang.org/"
), ),
Library( Library(
name = "LeakCanary", name = "LeakCanary",
version = "1.6.3",
license = apache2, license = apache2,
url = "https://github.com/square/leakcanary" url = "https://github.com/square/leakcanary"
), ),
Library( Library(
name = "Material Components", name = "Material Components",
version = "1.1.0-alpha10",
license = apache2, license = apache2,
url = "https://github.com/material-components/material-components-android" url = "https://github.com/material-components/material-components-android"
), ),
...@@ -227,13 +214,11 @@ class AboutFragment : DaggerFragment() { ...@@ -227,13 +214,11 @@ class AboutFragment : DaggerFragment() {
), ),
Library( Library(
name = "Material Design Icons: Google", name = "Material Design Icons: Google",
version = "3.0.1",
license = apache2, license = apache2,
url = "https://github.com/google/material-design-icons" url = "https://github.com/google/material-design-icons"
), ),
Library( Library(
name = "Material Dialogs", name = "Material Dialogs",
version = "0.9.6.0",
license = License( license = License(
shortName = "MIT", shortName = "MIT",
fullName = "The MIT License (MIT)", fullName = "The MIT License (MIT)",
...@@ -243,13 +228,11 @@ class AboutFragment : DaggerFragment() { ...@@ -243,13 +228,11 @@ class AboutFragment : DaggerFragment() {
), ),
Library( Library(
name = "MaterialProgressBar", name = "MaterialProgressBar",
version = "1.6.1",
license = apache2, license = apache2,
url = "https://github.com/DreaminginCodeZH/MaterialProgressBar" url = "https://github.com/DreaminginCodeZH/MaterialProgressBar"
), ),
Library( Library(
name = "Quassel", name = "Quassel",
version = "0.13.1",
license = License( license = License(
shortName = "GPLv3", shortName = "GPLv3",
fullName = "GNU GENERAL PUBLIC LICENSE", fullName = "GNU GENERAL PUBLIC LICENSE",
...@@ -259,7 +242,6 @@ class AboutFragment : DaggerFragment() { ...@@ -259,7 +242,6 @@ class AboutFragment : DaggerFragment() {
), ),
Library( Library(
name = "Reactive Streams", name = "Reactive Streams",
version = "1.0.2",
license = License( license = License(
shortName = "CC0", shortName = "CC0",
fullName = "Creative Commons CC0 1.0 Universal", fullName = "Creative Commons CC0 1.0 Universal",
...@@ -269,25 +251,21 @@ class AboutFragment : DaggerFragment() { ...@@ -269,25 +251,21 @@ class AboutFragment : DaggerFragment() {
), ),
Library( Library(
name = "ReactiveNetwork", name = "ReactiveNetwork",
version = "3.0.6",
license = apache2, license = apache2,
url = "https://github.com/pwittchen/ReactiveNetwork" url = "https://github.com/pwittchen/ReactiveNetwork"
), ),
Library( Library(
name = "RecyclerView-FastScroll", name = "RecyclerView-FastScroll",
version = "2.0.",
license = apache2, license = apache2,
url = "https://github.com/timusus/RecyclerView-FastScroll" url = "https://github.com/timusus/RecyclerView-FastScroll"
), ),
Library( Library(
name = "Retrofit", name = "Retrofit",
version = "2.6.1",
license = apache2, license = apache2,
url = "https://square.github.io/retrofit/" url = "https://square.github.io/retrofit/"
), ),
Library( Library(
name = "RxJava", name = "RxJava",
version = "2.2.12",
license = apache2, license = apache2,
url = "https://github.com/ReactiveX/RxJava" url = "https://github.com/ReactiveX/RxJava"
), ),
...@@ -302,7 +280,6 @@ class AboutFragment : DaggerFragment() { ...@@ -302,7 +280,6 @@ class AboutFragment : DaggerFragment() {
), ),
Library( Library(
name = "ThreeTen backport project", name = "ThreeTen backport project",
version = "1.4.10",
license = License( license = License(
shortName = "BSD 3-clause", shortName = "BSD 3-clause",
text = R.raw.license_threetenbp text = R.raw.license_threetenbp
......
...@@ -21,7 +21,6 @@ package de.kuschku.quasseldroid.ui.clientsettings.about ...@@ -21,7 +21,6 @@ package de.kuschku.quasseldroid.ui.clientsettings.about
data class Library( data class Library(
val name: String, val name: String,
val version: String? = null,
val license: License, val license: License,
val url: String? = null val url: String? = null
) )
...@@ -56,8 +56,6 @@ class LibraryAdapter(private val libraries: List<Library>) : ...@@ -56,8 +56,6 @@ class LibraryAdapter(private val libraries: List<Library>) :
fun bind(item: Library) { fun bind(item: Library) {
this.item = item this.item = item
binding.name.text = item.name binding.name.text = item.name
binding.version.text = item.version
binding.version.visibleIf(!item.version.isNullOrBlank())
binding.license.text = item.license.shortName binding.license.text = item.license.shortName
} }
} }
......
...@@ -45,15 +45,6 @@ ...@@ -45,15 +45,6 @@
android:textSize="16sp" android:textSize="16sp"
tools:text="@sample/libraries.json/data/name" /> 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 <TextView
android:id="@+id/license" android:id="@+id/license"
style="@style/Widget.RtlConformTextView" style="@style/Widget.RtlConformTextView"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment