[优化] 其他优化

This commit is contained in:
HapeLee
2025-12-06 03:03:42 +08:00
parent 4b2c0ee4ae
commit bba9e43d30
4 changed files with 9 additions and 19 deletions
@@ -4,12 +4,7 @@ import android.annotation.SuppressLint
import android.content.Intent import android.content.Intent
import androidx.compose.animation.AnimatedContent import androidx.compose.animation.AnimatedContent
import androidx.compose.animation.Crossfade import androidx.compose.animation.Crossfade
import androidx.compose.animation.ExperimentalSharedTransitionApi
import androidx.compose.animation.animateContentSize
import androidx.compose.animation.core.tween import androidx.compose.animation.core.tween
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
import androidx.compose.animation.togetherWith
import androidx.compose.foundation.clickable import androidx.compose.foundation.clickable
import androidx.compose.foundation.horizontalScroll import androidx.compose.foundation.horizontalScroll
import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Arrangement
@@ -55,16 +50,13 @@ import androidx.compose.material3.ExperimentalMaterial3ExpressiveApi
import androidx.compose.material3.FilterChip import androidx.compose.material3.FilterChip
import androidx.compose.material3.Icon import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton import androidx.compose.material3.IconButton
import androidx.compose.material3.LoadingIndicator
import androidx.compose.material3.MaterialTheme import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.MediumTopAppBar import androidx.compose.material3.MediumTopAppBar
import androidx.compose.material3.ModalBottomSheet import androidx.compose.material3.ModalBottomSheet
import androidx.compose.material3.OutlinedButton
import androidx.compose.material3.Scaffold import androidx.compose.material3.Scaffold
import androidx.compose.material3.SheetValue import androidx.compose.material3.SheetValue
import androidx.compose.material3.Surface import androidx.compose.material3.Surface
import androidx.compose.material3.Text import androidx.compose.material3.Text
import androidx.compose.material3.TextButton
import androidx.compose.material3.TopAppBarDefaults import androidx.compose.material3.TopAppBarDefaults
import androidx.compose.material3.TopAppBarScrollBehavior import androidx.compose.material3.TopAppBarScrollBehavior
import androidx.compose.material3.rememberModalBottomSheetState import androidx.compose.material3.rememberModalBottomSheetState
@@ -1,7 +1,6 @@
package io.legado.app.ui.book.explore package io.legado.app.ui.book.explore
import android.content.Intent import android.content.Intent
import androidx.compose.runtime.snapshotFlow
import androidx.lifecycle.ViewModel import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope import androidx.lifecycle.viewModelScope
import io.legado.app.data.entities.BookSource import io.legado.app.data.entities.BookSource
@@ -16,7 +16,6 @@ import io.legado.app.ui.book.read.config.TipConfigDialog.Companion.TIP_DIVIDER_C
import io.legado.app.utils.getCompatColor import io.legado.app.utils.getCompatColor
import io.legado.app.utils.observeEvent import io.legado.app.utils.observeEvent
import io.legado.app.utils.postEvent import io.legado.app.utils.postEvent
import io.legado.app.utils.showDialogFragment
import io.legado.app.utils.viewbindingdelegate.viewBinding import io.legado.app.utils.viewbindingdelegate.viewBinding
class InfoConfigDialog : BaseBottomSheetDialogFragment(R.layout.dialog_read_info) { class InfoConfigDialog : BaseBottomSheetDialogFragment(R.layout.dialog_read_info) {
+9 -9
View File
@@ -1,14 +1,14 @@
[versions] [versions]
accompanistWebview = "0.36.0" accompanistWebview = "0.36.0"
animation = "1.9.4" animation = "1.10.0"
biometric = "1.2.0" biometric = "1.2.0"
coilCompose = "2.7.0" coilCompose = "2.7.0"
composeBom = "2025.11.01" composeBom = "2025.12.00"
constraintlayoutCompose = "1.1.1" constraintlayoutCompose = "1.1.1"
coreSplashscreen = "1.2.0" coreSplashscreen = "1.2.0"
datastorePreferences = "1.1.7" datastorePreferences = "1.2.0"
foundation = "1.9.4" foundation = "1.10.0"
kotlin = "2.2.21" kotlin = "2.2.21"
kotlinxCoroutinesAndroid = "1.10.2" kotlinxCoroutinesAndroid = "1.10.2"
ksp = "2.2.21-2.0.4" ksp = "2.2.21-2.0.4"
@@ -18,7 +18,7 @@ colorpicker = "1.1.0"
commonsText = "1.14.0" commonsText = "1.14.0"
constraintlayout = "2.2.1" constraintlayout = "2.2.1"
core = "1.17.0" core = "1.17.0"
firebaseBom = "34.4.0" firebaseBom = "34.6.0"
flexbox = "3.0.0" flexbox = "3.0.0"
fragment = "1.8.9" fragment = "1.8.9"
@@ -29,7 +29,7 @@ libarchive = "1.1.6"
lifecycle = "2.10.0" lifecycle = "2.10.0"
glide = "5.0.5" glide = "5.0.5"
gson = "2.13.2" gson = "2.13.2"
jsonPath = "2.9.0" jsonPath = "2.10.0"
# issue #3811,不要更新版本,新版引入了一个破坏性变更(详见https://github.com/jhy/jsoup/pull/2017 # issue #3811,不要更新版本,新版引入了一个破坏性变更(详见https://github.com/jhy/jsoup/pull/2017
# 若要升级请确保相关代码不会受此变更影响(如AnalyzeByJSoup.kt、JsoupXpath库等) # 若要升级请确保相关代码不会受此变更影响(如AnalyzeByJSoup.kt、JsoupXpath库等)
jsoup = "1.16.2" jsoup = "1.16.2"
@@ -40,7 +40,7 @@ liveeventbus = "1.8.14"
markdownCompose = "0.5.0" markdownCompose = "0.5.0"
markwon = "4.6.2" markwon = "4.6.2"
material = "1.14.0-alpha07" material = "1.14.0-alpha07"
material3 = "1.5.0-alpha09" material3 = "1.5.0-alpha10"
material3IconsExtended = "1.2.0" material3IconsExtended = "1.2.0"
materialIconsExtended = "1.7.8" materialIconsExtended = "1.7.8"
media = "1.7.1" media = "1.7.1"
@@ -57,10 +57,10 @@ splitties = "3.0.0"
rhino = "1.8.0" rhino = "1.8.0"
desugar = "2.1.5" desugar = "2.1.5"
activity = "1.11.0" activity = "1.12.1"
#kotlinxSerialization = "1.8.0" #kotlinxSerialization = "1.8.0"
startupRuntime = "1.2.0" startupRuntime = "1.2.0"
swiperefreshlayout = "1.1.0" swiperefreshlayout = "1.2.0"
#noinspection GradleDependency #noinspection GradleDependency
recyclerview = "1.4.0" recyclerview = "1.4.0"
#noinspection GradleDependency #noinspection GradleDependency