diff --git a/README.md b/README.md index 4a6e2c3..ca5e750 100644 --- a/README.md +++ b/README.md @@ -131,6 +131,7 @@ If you are interested, please help us **translate**, thank you. - **TensorFlow** Lite - **ML Kit** (Machine Learning) - **Room** +- **AIDL** - Splash Screen - Navigation - Coil @@ -152,6 +153,11 @@ If you are interested, please help us **translate**, thank you. + + + AniVu, an all-in-one tool for RSS anime subscription and updates, bit torrent downloads, and video playback. + https://github.com/SkyD666/AniVu + Raca (Record All Classic Articles), a tool to record and search abstract passages and mini-essays in the comments section locally. 🤗 Are you still having trouble remembering the content of your mini-essay and facing the embarrassing situation of forgetting the front, middle and back? Using this tool will help you record the mini-essays you come across and never worry about forgetting them again! 😋 @@ -165,6 +171,7 @@ If you are interested, please help us **translate**, thank you. + ## 📃 License This software code is available under the following **license** diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 04bcf66..b172e7e 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -108,7 +108,7 @@ android { aidl = true } composeOptions { - kotlinCompilerExtensionVersion = "1.5.4" + kotlinCompilerExtensionVersion = "1.5.12" } packaging { resources.excludes += mutableSetOf( @@ -150,17 +150,17 @@ dependencies { val accompanistVersion: String by rootProject.extra val mlkitRecognitionVersion: String by rootProject.extra val roomVersion: String by rootProject.extra - implementation("androidx.core:core-ktx:1.12.0") + implementation("androidx.core:core-ktx:1.13.0") implementation("androidx.compose.ui:ui:$composeVersion") implementation("androidx.compose.material3:material3:$md3Version") implementation("androidx.compose.material3:material3-window-size-class:$md3Version") - implementation("androidx.compose.material:material:1.6.5") - implementation("androidx.compose.material:material-icons-extended:1.6.5") + implementation("androidx.compose.material:material:1.6.6") + implementation("androidx.compose.material:material-icons-extended:1.6.6") implementation("androidx.compose.ui:ui-tooling-preview:$md3Version") implementation("com.google.android.material:material:1.11.0") implementation("androidx.lifecycle:lifecycle-runtime-compose:2.7.0") implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.7.0") - implementation("androidx.activity:activity-compose:1.8.2") + implementation("androidx.activity:activity-compose:1.9.0") implementation("androidx.palette:palette-ktx:1.0.0") implementation("com.google.dagger:hilt-android:2.51") ksp("com.google.dagger:hilt-android-compiler:2.51") @@ -178,7 +178,7 @@ dependencies { implementation("com.github.thegrizzlylabs:sardine-android:0.8") implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3") implementation("com.materialkolor:material-kolor:1.4.4") - implementation("androidx.datastore:datastore-preferences:1.0.0") + implementation("androidx.datastore:datastore-preferences:1.1.0") implementation("com.airbnb.android:lottie-compose:6.3.0") implementation("com.squareup.retrofit2:retrofit:2.10.0") @@ -198,6 +198,6 @@ dependencies { implementation("com.github.penfeizhou.android.animation:apng:2.28.0") - debugImplementation("androidx.compose.ui:ui-tooling:1.6.5") - debugImplementation("androidx.compose.ui:ui-test-manifest:1.6.5") + debugImplementation("androidx.compose.ui:ui-tooling:1.6.6") + debugImplementation("androidx.compose.ui:ui-test-manifest:1.6.6") } \ No newline at end of file diff --git a/app/src/main/java/com/skyd/rays/ui/component/ClipboardTextField.kt b/app/src/main/java/com/skyd/rays/ui/component/ClipboardTextField.kt index f416448..58adb3e 100644 --- a/app/src/main/java/com/skyd/rays/ui/component/ClipboardTextField.kt +++ b/app/src/main/java/com/skyd/rays/ui/component/ClipboardTextField.kt @@ -2,8 +2,6 @@ package com.skyd.rays.ui.component import androidx.compose.foundation.horizontalScroll import androidx.compose.foundation.layout.Column -import androidx.compose.foundation.layout.Spacer -import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.padding import androidx.compose.foundation.rememberScrollState import androidx.compose.foundation.text.KeyboardActionScope @@ -30,12 +28,11 @@ fun ClipboardTextField( isPassword: Boolean = false, errorText: String = "", imeAction: ImeAction = ImeAction.Done, - keyboardAction: ((focusManager: FocusManager?, value: String) -> (KeyboardActionScope.() -> Unit))? = null, + keyboardAction: (KeyboardActionScope.(focusManager: FocusManager?, value: String) -> Unit)? = null, focusManager: FocusManager? = null, onConfirm: (String) -> Unit = {}, ) { Column(modifier = modifier) { - Spacer(modifier = Modifier.height(10.dp)) RaysTextField( readOnly = readOnly, value = value, @@ -48,27 +45,39 @@ fun ClipboardTextField( keyboardActions = KeyboardActions( onDone = if (imeAction == ImeAction.Done) { if (keyboardAction == null) action(focusManager, onConfirm, value) - else keyboardAction(focusManager, value) + else { + { keyboardAction(focusManager, value) } + } } else null, onGo = if (imeAction == ImeAction.Go) { if (keyboardAction == null) action(focusManager, onConfirm, value) - else keyboardAction(focusManager, value) + else { + { keyboardAction(focusManager, value) } + } } else null, onNext = if (imeAction == ImeAction.Next) { if (keyboardAction == null) action(focusManager, onConfirm, value) - else keyboardAction(focusManager, value) + else { + { keyboardAction(focusManager, value) } + } } else null, onPrevious = if (imeAction == ImeAction.Previous) { if (keyboardAction == null) action(focusManager, onConfirm, value) - else keyboardAction(focusManager, value) + else { + { keyboardAction(focusManager, value) } + } } else null, onSearch = if (imeAction == ImeAction.Search) { if (keyboardAction == null) action(focusManager, onConfirm, value) - else keyboardAction(focusManager, value) + else { + { keyboardAction(focusManager, value) } + } } else null, onSend = if (imeAction == ImeAction.Send) { if (keyboardAction == null) action(focusManager, onConfirm, value) - else keyboardAction(focusManager, value) + else { + { keyboardAction(focusManager, value) } + } } else null, ), keyboardOptions = KeyboardOptions( @@ -88,7 +97,6 @@ fun ClipboardTextField( ) } } - Spacer(modifier = Modifier.height(10.dp)) } } diff --git a/app/src/main/java/com/skyd/rays/ui/component/SettingsItem.kt b/app/src/main/java/com/skyd/rays/ui/component/SettingsItem.kt index 012e9ce..2aaeefb 100644 --- a/app/src/main/java/com/skyd/rays/ui/component/SettingsItem.kt +++ b/app/src/main/java/com/skyd/rays/ui/component/SettingsItem.kt @@ -54,7 +54,7 @@ fun BannerItem(content: @Composable () -> Unit) { Spacer(modifier = Modifier.height(16.dp)) CompositionLocalProvider( LocalContentColor provides (LocalContentColor.current alwaysLight true), - LocalVerticalPadding provides 12.dp + LocalVerticalPadding provides 21.dp ) { Box( modifier = Modifier @@ -354,7 +354,7 @@ fun BaseSettingsItem( combinedClickable(onLongClick = onLongClick) { onClick() } } else this } - .padding(LocalVerticalPadding.current), + .padding(horizontal = 16.dp), verticalAlignment = Alignment.CenterVertically ) { if (painter != null) { @@ -379,7 +379,7 @@ fun BaseSettingsItem( Column( modifier = Modifier .weight(1f) - .padding(horizontal = 10.dp) + .padding(horizontal = 10.dp, vertical = LocalVerticalPadding.current) ) { Text( text = text, diff --git a/app/src/main/java/com/skyd/rays/ui/screen/add/AddScreen.kt b/app/src/main/java/com/skyd/rays/ui/screen/add/AddScreen.kt index 64f5307..6ff6418 100644 --- a/app/src/main/java/com/skyd/rays/ui/screen/add/AddScreen.kt +++ b/app/src/main/java/com/skyd/rays/ui/screen/add/AddScreen.kt @@ -443,8 +443,8 @@ private fun LazyListScope.titleInputFieldItem( ) } }, - keyboardOptions = KeyboardOptions(imeAction = ImeAction.Done), - keyboardActions = KeyboardActions(onDone = { + keyboardOptions = KeyboardOptions(imeAction = ImeAction.Next), + keyboardActions = KeyboardActions(onNext = { focusManager.moveFocus(FocusDirection.Next) }) ) diff --git a/doc/README/README-zh-rCN.md b/doc/README/README-zh-rCN.md index 4cba542..55f80cb 100644 --- a/doc/README/README-zh-rCN.md +++ b/doc/README/README-zh-rCN.md @@ -129,6 +129,7 @@ - **TensorFlow** Lite - **ML Kit** (Machine Learning) - **Room** +- **AIDL** - Splash Screen - Navigation - Coil @@ -150,6 +151,11 @@ + + + AniVu,一个集 RSS 番剧订阅与更新、比特洪流下载、视频播放为一体的工具。 + https://github.com/SkyD666/AniVu + Raca (Record All Classic Articles),一个在本地记录、查找抽象段落/评论区小作文的工具。
🤗 您还在为记不住小作文内容,面临前面、中间、后面都忘了的尴尬处境吗?使用这款工具将帮助您记录您所遇到的小作文,再也不因为忘记而烦恼!😋 @@ -163,6 +169,7 @@ + ## 📃许可证 使用此软件代码需**遵循以下许可证协议** diff --git a/image/AniVu.svg b/image/AniVu.svg new file mode 100644 index 0000000..d98b06b --- /dev/null +++ b/image/AniVu.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + +