From fc328e141c4d131633f0c308b488d10ddaa7d618 Mon Sep 17 00:00:00 2001 From: Andreas Date: Sat, 23 Jul 2022 14:54:08 +0200 Subject: [PATCH] Remove unused dependencies (#7585) --- app/build.gradle.kts | 1 - .../widget/ThemedSwipeRefreshLayout.kt | 19 ------------------- gradle/androidx.versions.toml | 1 - gradle/libs.versions.toml | 5 +---- 4 files changed, 1 insertion(+), 25 deletions(-) delete mode 100644 app/src/main/java/eu/kanade/tachiyomi/widget/ThemedSwipeRefreshLayout.kt diff --git a/app/build.gradle.kts b/app/build.gradle.kts index ffb9e6221..a2621f3d3 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -188,7 +188,6 @@ dependencies { implementation(androidx.corektx) implementation(androidx.splashscreen) implementation(androidx.recyclerview) - implementation(androidx.swiperefreshlayout) implementation(androidx.viewpager) implementation(androidx.bundles.lifecycle) diff --git a/app/src/main/java/eu/kanade/tachiyomi/widget/ThemedSwipeRefreshLayout.kt b/app/src/main/java/eu/kanade/tachiyomi/widget/ThemedSwipeRefreshLayout.kt deleted file mode 100644 index 51bf2ec4f..000000000 --- a/app/src/main/java/eu/kanade/tachiyomi/widget/ThemedSwipeRefreshLayout.kt +++ /dev/null @@ -1,19 +0,0 @@ -package eu.kanade.tachiyomi.widget - -import android.content.Context -import android.util.AttributeSet -import androidx.swiperefreshlayout.widget.SwipeRefreshLayout -import eu.kanade.tachiyomi.R -import eu.kanade.tachiyomi.util.system.getThemeColor - -class ThemedSwipeRefreshLayout @JvmOverloads constructor( - context: Context, - attrs: AttributeSet? = null, -) : SwipeRefreshLayout(context, attrs) { - init { - // Background - setProgressBackgroundColorSchemeColor(context.getThemeColor(R.attr.colorPrimary)) - // This updates the progress arrow color - setColorSchemeColors(context.getThemeColor(R.attr.colorOnPrimary)) - } -} diff --git a/gradle/androidx.versions.toml b/gradle/androidx.versions.toml index 04547a21d..47275cc34 100644 --- a/gradle/androidx.versions.toml +++ b/gradle/androidx.versions.toml @@ -11,7 +11,6 @@ coordinatorlayout = "androidx.coordinatorlayout:coordinatorlayout:1.2.0" corektx = "androidx.core:core-ktx:1.8.0" splashscreen = "androidx.core:core-splashscreen:1.0.0-alpha02" recyclerview = "androidx.recyclerview:recyclerview:1.3.0-beta01" -swiperefreshlayout = "androidx.swiperefreshlayout:swiperefreshlayout:1.2.0-alpha01" viewpager = "androidx.viewpager:viewpager:1.1.0-alpha01" lifecycle-common = { module = "androidx.lifecycle:lifecycle-common", version.ref = "lifecycle_version" } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 2ba03669c..f7a265ae5 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -74,9 +74,6 @@ conductor-support-preference = { module = "com.github.tachiyomiorg:conductor-sup flowbinding-android = { module = "io.github.reactivecircus.flowbinding:flowbinding-android", version.ref = "flowbinding_version" } flowbinding-appcompat = { module = "io.github.reactivecircus.flowbinding:flowbinding-appcompat", version.ref = "flowbinding_version" } -flowbinding-recyclerview = { module = "io.github.reactivecircus.flowbinding:flowbinding-recyclerview", version.ref = "flowbinding_version" } -flowbinding-swiperefreshlayout = { module = "io.github.reactivecircus.flowbinding:flowbinding-swiperefreshlayout", version.ref = "flowbinding_version" } -flowbinding-viewpager = { module = "io.github.reactivecircus.flowbinding:flowbinding-viewpager", version.ref = "flowbinding_version" } logcat = "com.squareup.logcat:logcat:0.1" @@ -106,7 +103,7 @@ js-engine = ["quickjs-android", "duktape-android"] sqlite = ["sqlitektx", "sqlite-android"] nucleus = ["nucleus-core", "nucleus-supportv7"] coil = ["coil-core", "coil-gif", "coil-compose"] -flowbinding = ["flowbinding-android", "flowbinding-appcompat", "flowbinding-recyclerview", "flowbinding-swiperefreshlayout", "flowbinding-viewpager"] +flowbinding = ["flowbinding-android", "flowbinding-appcompat"] conductor = ["conductor-core", "conductor-viewpager", "conductor-support-preference"] shizuku = ["shizuku-api", "shizuku-provider"]