Content-Length: 1004599 | pFad | http://github.com/toastkidjp/Yobidashi_kt/commit/53ce181e591ed9fbe8fbd05bef2832dfe58d1e34

05 Merge pull request #1066 from toastkidjp/release/2_0_82 · toastkidjp/Yobidashi_kt@53ce181 · GitHub
Skip to content

Commit

Permalink
Merge pull request #1066 from toastkidjp/release/2_0_82
Browse files Browse the repository at this point in the history
Release/2 0 82
  • Loading branch information
toastkidjp authored Dec 25, 2024
2 parents 2fe53a4 + 10449a1 commit 53ce181
Show file tree
Hide file tree
Showing 36 changed files with 66 additions and 81 deletions.
2 changes: 1 addition & 1 deletion api/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ android {
dependencies {
implementation("androidx.core:core-ktx:${LibraryVersion.ktx}")
implementation("com.squareup.okhttp3:okhttp:4.12.0")
implementation("com.jakewharton.timber:timber:${LibraryVersion.timber}")
implementation(libraries.timber)
implementation("com.squareup.retrofit2:retrofit:2.11.0")
implementation(libraries.jsoup)
implementation("com.jakewharton.retrofit:retrofit2-kotlinx-serialization-converter:1.0.0")
Expand Down
6 changes: 3 additions & 3 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,12 @@ dependencies {
// Compose dependencies.
implementation("androidx.compose.material3:material3:${LibraryVersion.composeMaterial3}")
implementation(libraries.activityCompose)
implementation("androidx.navigation:navigation-compose:${LibraryVersion.navigationCompose}")
implementation("androidx.navigation:navigation-runtime-ktx:${LibraryVersion.navigationCompose}")
implementation("androidx.navigation:navigation-compose:2.7.7")
implementation("androidx.navigation:navigation-runtime-ktx:2.7.7")
implementation("androidx.lifecycle:lifecycle-runtime-ktx:${LibraryVersion.lifecycle}")
implementation("androidx.core:core-ktx:${LibraryVersion.ktx}")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:${LibraryVersion.coroutines}")
implementation("com.jakewharton.timber:timber:${LibraryVersion.timber}")
implementation(libraries.timber)
implementation(libraries.kotlinSerialization)

implementation("org.burnoutcrew.composereorderable:reorderable:0.9.2")
Expand Down
2 changes: 1 addition & 1 deletion article/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ dependencies {

implementation("androidx.core:core-ktx:${LibraryVersion.ktx}")

implementation("com.jakewharton.timber:timber:${LibraryVersion.timber}")
implementation(libraries.timber)
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:${LibraryVersion.coroutines}")

implementation("androidx.compose.material3:material3:${LibraryVersion.composeMaterial3}")
Expand Down
2 changes: 1 addition & 1 deletion barcode/library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ dependencies {

implementation("com.google.zxing:core:3.4.1")

implementation("com.jakewharton.timber:timber:${LibraryVersion.timber}")
implementation(libraries.timber)

testImplementation("junit:junit:${LibraryVersion.junit}")
testImplementation("io.mockk:mockk:${LibraryVersion.mockk}")
Expand Down
3 changes: 1 addition & 2 deletions barcode/ui/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,14 @@ dependencies {

// Compose dependencies.
implementation("androidx.compose.material3:material3:${LibraryVersion.composeMaterial3}")
implementation(libraries.coilCompose)
implementation("androidx.lifecycle:lifecycle-runtime-ktx:${LibraryVersion.lifecycle}")
implementation(libraries.activityCompose)

implementation("androidx.camera:camera-camera2:1.0.2")
implementation("androidx.camera:camera-lifecycle:1.0.2")
implementation("androidx.camera:camera-view:1.3.4")

implementation("com.jakewharton.timber:timber:${LibraryVersion.timber}")
implementation(libraries.timber)

testImplementation("junit:junit:${LibraryVersion.junit}")
testImplementation("io.mockk:mockk:${LibraryVersion.mockk}")
Expand Down
1 change: 0 additions & 1 deletion buildSrc/src/main/java/property/LibraryVersion.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ object LibraryVersion {
val coroutines = "1.5.1"
val ktx = "1.1.0"
val lifecycle = "2.8.5"
val timber = "4.6.0"
val exifinterface = "1.3.3"
val composeCompiler = "1.4.6"
val composeMaterial3 = "1.3.0"
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/java/property/Version.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package property
object Version {
private const val MAJOR = 2
private const val MIDDLE = 0
private const val MINOR = 81
private const val MINOR = 82

init {
if (MIDDLE >= 100 || MINOR >= 10_000) {
Expand Down
2 changes: 1 addition & 1 deletion calendar/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ dependencies {
implementation("androidx.core:core-ktx:${LibraryVersion.ktx}")
implementation(libraries.activityCompose)
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:${LibraryVersion.lifecycle}")
implementation("com.jakewharton.timber:timber:${LibraryVersion.timber}")
implementation(libraries.timber)

testImplementation("junit:junit:${LibraryVersion.junit}")
testImplementation("io.mockk:mockk:${LibraryVersion.mockk}")
Expand Down
2 changes: 1 addition & 1 deletion editor/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ dependencies {
implementation(libraries.activityCompose)
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:${LibraryVersion.lifecycle}")

implementation("com.jakewharton.timber:timber:${LibraryVersion.timber}")
implementation(libraries.timber)
implementation(libraries.jsoup)

testImplementation("junit:junit:${LibraryVersion.junit}")
Expand Down
5 changes: 2 additions & 3 deletions image/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,13 @@ dependencies {
// Compose dependencies.
implementation("androidx.compose.material3:material3:${LibraryVersion.composeMaterial3}")
implementation(libraries.coilCompose)
implementation(libraries.coilGif)
implementation("androidx.lifecycle:lifecycle-runtime-ktx:${LibraryVersion.lifecycle}")
implementation(libraries.activityCompose)

implementation("androidx.core:core-ktx:${LibraryVersion.ktx}")
implementation("androidx.exifinterface:exifinterface:${LibraryVersion.exifinterface}")
implementation(libraries.exifinterface)

implementation("com.jakewharton.timber:timber:${LibraryVersion.timber}")
implementation(libraries.timber)
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:${LibraryVersion.coroutines}")

testImplementation("junit:junit:${LibraryVersion.junit}")
Expand Down
18 changes: 3 additions & 15 deletions image/src/main/java/jp/toastkid/image/preview/ImagePreviewUi.kt
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,15 @@ import androidx.core.net.toUri
import androidx.exifinterface.media.ExifInterface
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.ViewModelStoreOwner
import coil3.SingletonImageLoader
import coil3.compose.AsyncImage
import coil3.request.ImageRequest
import coil3.request.crossfade
import jp.toastkid.image.Image
import jp.toastkid.image.R
import jp.toastkid.image.factory.GifImageLoaderFactory
import jp.toastkid.image.preview.attach.AttachToAnyAppUseCase
import jp.toastkid.image.preview.attach.AttachToThisAppBackgroundUseCase
import jp.toastkid.image.preview.detail.ExifInformationExtractorUseCase
import jp.toastkid.image.preview.viewmodel.ImagePreviewViewModel
import jp.toastkid.lib.ContentViewModel
import jp.toastkid.ui.dialog.ConfirmDialog
import jp.toastkid.ui.image.EfficientImage
import kotlinx.coroutines.launch
import java.io.BufferedInputStream
import java.io.File
Expand Down Expand Up @@ -96,23 +92,15 @@ internal fun ImagePreviewUi(

val pagerState = rememberPagerState(initialIndex) { viewModel.pageCount() }

val gifImageLoader = remember { GifImageLoaderFactory().invoke(context) }
val imageLoader = remember { SingletonImageLoader.get(context) }

Box {
HorizontalPager(
pageSize = PageSize.Fill,
pageSpacing = 100.dp,
state = pagerState
) {
with(sharedTransitionScope) {
AsyncImage(
model = ImageRequest.Builder(LocalContext.current)
.data(viewModel.getCurrentImage(pagerState.currentPage).path)
.memoryCacheKey(viewModel.getCurrentImage(pagerState.currentPage).path)
.crossfade(true)
.build(),
imageLoader = if (viewModel.getCurrentImage(pagerState.currentPage).path.endsWith(".gif")) gifImageLoader else imageLoader,
EfficientImage(
model = viewModel.getCurrentImage(pagerState.currentPage).path,
contentDescription = viewModel.getCurrentImage(pagerState.currentPage).name,
colorFilter = viewModel.colorFilterState.value,
modifier = Modifier
Expand Down
13 changes: 3 additions & 10 deletions image/src/main/java/jp/toastkid/image/view/ImageListUi.kt
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ import androidx.compose.ui.unit.sp
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.ViewModelStoreOwner
import androidx.lifecycle.compose.LocalLifecycleOwner
import coil3.compose.AsyncImage
import coil3.request.ImageRequest
import coil3.request.crossfade
import coil3.request.placeholder
import jp.toastkid.image.Image
import jp.toastkid.image.R
import jp.toastkid.image.list.BucketLoader
Expand All @@ -60,6 +56,7 @@ import jp.toastkid.lib.ContentViewModel
import jp.toastkid.lib.preference.PreferenceApplier
import jp.toastkid.lib.view.scroll.StateScrollerFactory
import jp.toastkid.lib.viewmodel.event.finder.FindInPageEvent
import jp.toastkid.ui.image.EfficientImage
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
Expand Down Expand Up @@ -229,12 +226,8 @@ internal fun ImageListUi(
.padding(4.dp)
) {
with(sharedTransitionScope) {
AsyncImage(
model = ImageRequest.Builder(context)
.data(image.path)
.crossfade(true)
.placeholder(R.drawable.ic_image)
.build(),
EfficientImage(
model = image.path,
contentDescription = image.name,
contentScale = ContentScale.Crop,
modifier = Modifier
Expand Down
2 changes: 1 addition & 1 deletion lib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ dependencies {
implementation(libraries.composeUi)
implementation("androidx.compose.material3:material3:${LibraryVersion.composeMaterial3}")

implementation("com.jakewharton.timber:timber:${LibraryVersion.timber}")
implementation(libraries.timber)

testImplementation("junit:junit:${LibraryVersion.junit}")
testImplementation("org.robolectric:robolectric:${LibraryVersion.robolectric}")
Expand Down
1 change: 0 additions & 1 deletion markdown/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ dependencies {
implementation(project(":ui"))
implementation("androidx.compose.material3:material3:${property.LibraryVersion.composeMaterial3}")
implementation("androidx.core:core-ktx:1.7.0")
implementation(libraries.coilCompose)
implementation("androidx.lifecycle:lifecycle-runtime-ktx:${property.LibraryVersion.lifecycle}")
implementation(libraries.activityCompose)

Expand Down
4 changes: 2 additions & 2 deletions music/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,18 @@ tasks.withType<GenerateBuildConfig> {

dependencies {
implementation(project(path = ":lib"))
implementation(project(path = ":ui"))

implementation("androidx.core:core-ktx:${LibraryVersion.ktx}")

// Compose dependencies.
implementation("androidx.compose.material3:material3:${LibraryVersion.composeMaterial3}")
implementation(libraries.coilCompose)
implementation("androidx.lifecycle:lifecycle-runtime-ktx:${LibraryVersion.lifecycle}")
implementation(libraries.activityCompose)

implementation("androidx.media:media:1.3.0")

implementation("com.jakewharton.timber:timber:${LibraryVersion.timber}")
implementation(libraries.timber)
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:${LibraryVersion.coroutines}")

testImplementation("junit:junit:${LibraryVersion.junit}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ import androidx.compose.ui.unit.sp
import androidx.core.net.toUri
import androidx.core.os.bundleOf
import androidx.lifecycle.ViewModelProvider
import coil3.compose.AsyncImage
import jp.toastkid.lib.ContentViewModel
import jp.toastkid.media.R
import jp.toastkid.media.music.MediaPlayerService
import jp.toastkid.media.music.popup.MediaPlayerPopupViewModel
import jp.toastkid.media.music.popup.playback.speed.PlayingSpeed
import jp.toastkid.ui.image.EfficientImage
import kotlinx.coroutines.launch
import java.util.concurrent.atomic.AtomicReference

Expand Down Expand Up @@ -327,7 +327,7 @@ internal fun MusicList(
.clickable { onClickItem(music) }
.padding(4.dp)
) {
AsyncImage(
EfficientImage(
music.description.iconUri,
contentDescription = "TODO",
contentScale = ContentScale.FillBounds,
Expand Down
2 changes: 1 addition & 1 deletion pdf/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ tasks.withType<GenerateBuildConfig> {

dependencies {
implementation(project(path = ":lib"))
implementation(project(path = ":ui"))

implementation("androidx.core:core-ktx:${LibraryVersion.ktx}")

implementation("androidx.compose.material3:material3:${LibraryVersion.composeMaterial3}")
implementation(libraries.coilCompose)
implementation(libraries.activityCompose)

testImplementation("junit:junit:${LibraryVersion.junit}")
Expand Down
4 changes: 2 additions & 2 deletions pdf/src/main/java/jp/toastkid/pdf/view/PdfViewerUi.kt
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.compose.LocalLifecycleOwner
import coil3.compose.AsyncImage
import jp.toastkid.lib.ContentViewModel
import jp.toastkid.lib.view.scroll.StateScrollerFactory
import jp.toastkid.pdf.PdfImageFactory
import jp.toastkid.ui.image.EfficientImage
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
Expand Down Expand Up @@ -134,7 +134,7 @@ private fun PdfPageList(uri: Uri, listState: LazyListState, modifier: Modifier)
}
) {
val max = images.size
AsyncImage(
EfficientImage(
model = bitmap,
contentDescription = "${index + 1} / $max",
modifier = Modifier.graphicsLayer(
Expand Down
1 change: 0 additions & 1 deletion rss/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:${LibraryVersion.coroutines}")

implementation("androidx.compose.material3:material3:${LibraryVersion.composeMaterial3}")
implementation(libraries.coilCompose)
implementation(libraries.activityCompose)

testImplementation("junit:junit:${LibraryVersion.junit}")
Expand Down
4 changes: 2 additions & 2 deletions search/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ dependencies {
implementation("androidx.compose.material3:material3:${LibraryVersion.composeMaterial3}")
implementation(libraries.activityCompose)
implementation(libraries.coilCompose)
implementation("io.coil-kt.coil3:coil-network-okhttp:${LibraryVersion.coilCompose}")
implementation(libraries.coilNetwork)
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:${LibraryVersion.lifecycle}")
implementation("com.jakewharton.timber:timber:${LibraryVersion.timber}")
implementation(libraries.timber)

implementation("androidx.core:core-ktx:${LibraryVersion.ktx}")
testImplementation("junit:junit:${LibraryVersion.junit}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import coil3.compose.AsyncImage
import jp.toastkid.lib.R
import jp.toastkid.ui.parts.SwipeToDismissItem
import jp.toastkid.search.SearchCategory
import jp.toastkid.ui.image.EfficientImage
import jp.toastkid.ui.parts.SwipeToDismissItem
import jp.toastkid.yobidashi.browser.UrlItem
import jp.toastkid.yobidashi.browser.bookmark.model.Bookmark
import jp.toastkid.yobidashi.browser.history.ViewHistory
Expand Down Expand Up @@ -74,7 +74,7 @@ internal fun SearchItemContent(
)
.heightIn(min = 44.dp)
) {
AsyncImage(
EfficientImage(
SearchCategory.findByCategory(category).iconId,
contentDescription = category,
placeholder = painterResource(id = R.drawable.ic_history_black),
Expand Down Expand Up @@ -136,7 +136,7 @@ fun BindItemContent(
onLongClick = onLongClick
)
) {
AsyncImage(
EfficientImage(
when (urlItem) {
is Bookmark -> File(urlItem.favicon)
is ViewHistory -> File(urlItem.favicon)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import androidx.compose.ui.unit.sp
import coil3.compose.AsyncImage
import jp.toastkid.lib.preference.PreferenceApplier
import jp.toastkid.search.SearchCategory
import jp.toastkid.ui.image.EfficientImage

@Composable
internal fun SearchCategorySpinner(
Expand All @@ -57,7 +58,7 @@ internal fun SearchCategorySpinner(
) {
val category = SearchCategory.findByCategory(currentCategory)

AsyncImage(
EfficientImage(
category.iconId,
contentDescription = stringResource(id = category.id),
contentScale = ContentScale.Fit,
Expand All @@ -82,7 +83,7 @@ internal fun SearchCategorySpinner(
DropdownMenuItem(
text = {
Row(verticalAlignment = Alignment.CenterVertically) {
AsyncImage(
EfficientImage(
model = searchCategory.iconId,
contentDescription = stringResource(id = searchCategory.id),
modifier = Modifier.width(40.dp)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ import androidx.compose.ui.unit.sp
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.ViewModelStoreOwner
import androidx.lifecycle.viewmodel.compose.viewModel
import coil3.compose.AsyncImage
import jp.toastkid.data.repository.factory.RepositoryFactory
import jp.toastkid.lib.ContentViewModel
import jp.toastkid.lib.clip.Clipboard
import jp.toastkid.lib.intent.ShareIntentFactory
import jp.toastkid.search.R
import jp.toastkid.search.url_suggestion.ItemDeletionUseCase
import jp.toastkid.search.viewmodel.SearchUiViewModel
import jp.toastkid.ui.image.EfficientImage

@OptIn(
ExperimentalFoundationApi::class,
Expand Down Expand Up @@ -241,7 +241,7 @@ internal fun SearchContentsUi(
}
)
) {
AsyncImage(
EfficientImage(
model = it.image,
contentDescription = it.title,
modifier = Modifier.width(40.dp)
Expand Down
Loading

0 comments on commit 53ce181

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/toastkidjp/Yobidashi_kt/commit/53ce181e591ed9fbe8fbd05bef2832dfe58d1e34

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy