Skip to content

Commit

Permalink
[build|chore] Update dependencies; remove useless resources
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyD666 committed Aug 29, 2024
1 parent 804ae55 commit d9c99ba
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 82 deletions.
6 changes: 3 additions & 3 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ android {
minSdk = 24
targetSdk = 35
versionCode = 22
versionName = "2.1-alpha24"
versionName = "2.1-alpha25"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"

Expand Down Expand Up @@ -191,7 +191,7 @@ dependencies {
implementation("com.squareup.okhttp3:logging-interceptor:4.12.0")
implementation("com.squareup.retrofit2:retrofit:2.11.0")
implementation("com.jakewharton.retrofit:retrofit2-kotlinx-serialization-converter:1.0.0")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.1")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.2")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-guava:1.8.1")

implementation("com.github.aniyomiorg:aniyomi-mpv-lib:1.15.n")
Expand All @@ -201,7 +201,7 @@ dependencies {
implementation("io.coil-kt:coil-gif:2.7.0")
implementation("io.coil-kt:coil-svg:2.7.0")
implementation("io.coil-kt:coil-video:2.7.0")
implementation("com.airbnb.android:lottie-compose:6.5.0")
implementation("com.airbnb.android:lottie-compose:6.5.1")
implementation("com.rometools:rome:2.1.0")
implementation("be.ceau:opml-parser:3.1.0") {
exclude(group = "net.sf.kxml", module = "kxml2")
Expand Down
13 changes: 7 additions & 6 deletions app/src/main/java/com/skyd/anivu/ui/activity/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.unit.dp
import androidx.core.os.BundleCompat
import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
import androidx.core.util.Consumer
import androidx.navigation.NavController
Expand All @@ -60,6 +61,8 @@ import com.skyd.anivu.ui.screen.MAIN_SCREEN_ROUTE
import com.skyd.anivu.ui.screen.MainScreen
import com.skyd.anivu.ui.screen.about.ABOUT_SCREEN_ROUTE
import com.skyd.anivu.ui.screen.about.AboutScreen
import com.skyd.anivu.ui.screen.about.license.LICENSE_SCREEN_ROUTE
import com.skyd.anivu.ui.screen.about.license.LicenseScreen
import com.skyd.anivu.ui.screen.about.update.UpdateDialog
import com.skyd.anivu.ui.screen.article.ARTICLE_SCREEN_ROUTE
import com.skyd.anivu.ui.screen.article.ArticleScreen
Expand All @@ -77,8 +80,6 @@ import com.skyd.anivu.ui.screen.filepicker.FILE_PICKER_SCREEN_ROUTE
import com.skyd.anivu.ui.screen.filepicker.FilePickerScreen
import com.skyd.anivu.ui.screen.filepicker.PATH_KEY
import com.skyd.anivu.ui.screen.filepicker.PICK_FOLDER_KEY
import com.skyd.anivu.ui.screen.about.license.LICENSE_SCREEN_ROUTE
import com.skyd.anivu.ui.screen.about.license.LicenseScreen
import com.skyd.anivu.ui.screen.media.sub.SUB_MEDIA_SCREEN_PATH_KEY
import com.skyd.anivu.ui.screen.media.sub.SUB_MEDIA_SCREEN_ROUTE
import com.skyd.anivu.ui.screen.media.sub.SubMediaScreenRoute
Expand Down Expand Up @@ -287,10 +288,10 @@ private fun MainNavHost() {
defaultValue = SearchDomain.Feed
}),
) {
SearchScreen(
searchDomain = (it.arguments?.getSerializable(SEARCH_DOMAIN_KEY) as? SearchDomain)
?: SearchDomain.Feed
)
val searchDomain = it.arguments?.let { arguments ->
BundleCompat.getSerializable(arguments, SEARCH_DOMAIN_KEY, SearchDomain::class.java)
} ?: SearchDomain.Feed
SearchScreen(searchDomain = searchDomain)
}
composable(
route = "$SUB_MEDIA_SCREEN_ROUTE/{$SUB_MEDIA_SCREEN_PATH_KEY}",
Expand Down
10 changes: 0 additions & 10 deletions app/src/main/res/drawable/ic_content_paste_24.xml

This file was deleted.

16 changes: 0 additions & 16 deletions app/src/main/res/drawable/ic_image_load_error_24.xml

This file was deleted.

10 changes: 0 additions & 10 deletions app/src/main/res/drawable/ic_info_24.xml

This file was deleted.

10 changes: 0 additions & 10 deletions app/src/main/res/drawable/ic_settings_24.xml

This file was deleted.

10 changes: 0 additions & 10 deletions app/src/main/res/drawable/ic_swap_vert_24.xml

This file was deleted.

10 changes: 0 additions & 10 deletions app/src/main/res/drawable/ic_warning_24.xml

This file was deleted.

5 changes: 0 additions & 5 deletions app/src/main/res/drawable/shape_fill_circle.xml

This file was deleted.

2 changes: 1 addition & 1 deletion app/src/main/res/values-zh-rCN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<string name="player_reset_zoom">还原屏幕</string>
<string name="player_long_press_playback_speed">倍速播放中…</string>
<string name="about_screen_name">关于</string>
<string name="app_short_description">一个集 RSS 番剧订阅与更新、比特洪流下载、视频播放为一体的工具。</string>
<string name="app_short_description">一个集 RSS 订阅与更新、比特洪流下载、视频播放为一体的工具。</string>
<string name="app_tech_stack_description">AniVu 使用 MVI 架构,完全采用 Material You 设计风格。使用 Android View 和 Compose 混合开发。</string>
<string name="about_screen_visit_github">访问 GitHub 仓库</string>
<string name="about_screen_join_telegram">加入 Telegram 群组</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<string name="player_reset_zoom">Reset</string>
<string name="player_long_press_playback_speed">Fast forwarding…</string>
<string name="about_screen_name">About</string>
<string name="app_short_description">An all-in-one tool for RSS anime subscription and updates, bit torrent downloads, and video playback.</string>
<string name="app_short_description">All-in-one Android app for RSS, BitTorrent dl &amp; play.</string>
<string name="app_tech_stack_description">AniVu utilizes the MVI architecture and fully adopts the Material You design style. All pages are developed using Android View and Compose.</string>
<string name="about_screen_visit_github">GitHub repository</string>
<string name="about_screen_join_telegram">Telegram group</string>
Expand Down

0 comments on commit d9c99ba

Please sign in to comment.