Change app name from Etsudoku to Shirizu
parent
f2e1b26a59
commit
746934d421
@ -1 +1 @@
|
||||
Etsudoku
|
||||
Shirizu
|
||||
@ -1,4 +1,4 @@
|
||||
package org.xtimms.etsudoku
|
||||
package org.xtimms.shirizu
|
||||
|
||||
import android.app.Application
|
||||
import android.content.Context
|
||||
@ -1,4 +1,4 @@
|
||||
package org.xtimms.etsudoku
|
||||
package org.xtimms.shirizu
|
||||
|
||||
import android.app.Instrumentation
|
||||
import kotlin.coroutines.resume
|
||||
@ -1,6 +0,0 @@
|
||||
package org.xtimms.etsudoku.core.exceptions
|
||||
|
||||
class SyncApiException(
|
||||
message: String,
|
||||
val code: Int,
|
||||
) : RuntimeException(message)
|
||||
@ -1,5 +0,0 @@
|
||||
package org.xtimms.etsudoku.sections.details
|
||||
|
||||
import org.xtimms.etsudoku.core.base.event.UiEvent
|
||||
|
||||
interface DetailsEvent : UiEvent
|
||||
@ -1,5 +0,0 @@
|
||||
package org.xtimms.etsudoku.sections.explore
|
||||
|
||||
import org.xtimms.etsudoku.core.base.event.UiEvent
|
||||
|
||||
interface ExploreEvent : UiEvent
|
||||
@ -1,5 +0,0 @@
|
||||
package org.xtimms.etsudoku.sections.list
|
||||
|
||||
import org.xtimms.etsudoku.core.base.event.PagedUiEvent
|
||||
|
||||
interface MangaListEvent : PagedUiEvent
|
||||
@ -1,8 +0,0 @@
|
||||
package org.xtimms.etsudoku.sections.reader
|
||||
|
||||
import org.xtimms.etsudoku.sections.reader.pager.ReaderPage
|
||||
|
||||
data class ReaderContent(
|
||||
val pages: List<ReaderPage>,
|
||||
val state: ReaderState?
|
||||
)
|
||||
@ -1,88 +0,0 @@
|
||||
package org.xtimms.etsudoku.sections.settings.appearance
|
||||
|
||||
import androidx.compose.foundation.Image
|
||||
import androidx.compose.foundation.layout.Arrangement
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.Row
|
||||
import androidx.compose.foundation.layout.fillMaxHeight
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.height
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.material3.ElevatedCard
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.draw.clip
|
||||
import androidx.compose.ui.res.painterResource
|
||||
import androidx.compose.ui.text.style.TextOverflow
|
||||
import androidx.compose.ui.tooling.preview.PreviewLightDark
|
||||
import androidx.compose.ui.unit.dp
|
||||
import org.xtimms.etsudoku.R
|
||||
import org.xtimms.etsudoku.ui.theme.EtsudokuTheme
|
||||
|
||||
@Composable
|
||||
fun MangaCard(
|
||||
modifier: Modifier = Modifier,
|
||||
title: String = "Ookami to Koushinryou",
|
||||
author: String = "Hasekura Isuna",
|
||||
thumbnailUrl: Any = "",
|
||||
showCancelButton: Boolean = false,
|
||||
onCancel: () -> Unit = {},
|
||||
onClick: () -> Unit = {},
|
||||
progress: Float = 75f,
|
||||
) {
|
||||
ElevatedCard(
|
||||
modifier = modifier
|
||||
.height(136.dp)
|
||||
.fillMaxWidth(),
|
||||
onClick = onClick,
|
||||
shape = MaterialTheme.shapes.small,
|
||||
) {
|
||||
Row(
|
||||
modifier = Modifier.fillMaxWidth()
|
||||
) {
|
||||
Image(
|
||||
modifier = Modifier
|
||||
.padding()
|
||||
.fillMaxHeight()
|
||||
.clip(MaterialTheme.shapes.small),
|
||||
painter = painterResource(id = R.drawable.ookami),
|
||||
contentDescription = null
|
||||
)
|
||||
Column(
|
||||
modifier = Modifier
|
||||
.weight(1f)
|
||||
.padding(horizontal = 12.dp, vertical = 8.dp)
|
||||
.fillMaxWidth(),
|
||||
verticalArrangement = Arrangement.Top
|
||||
) {
|
||||
Text(
|
||||
text = title,
|
||||
style = MaterialTheme.typography.titleLarge,
|
||||
color = MaterialTheme.colorScheme.onSurface,
|
||||
maxLines = 2,
|
||||
overflow = TextOverflow.Ellipsis
|
||||
)
|
||||
if (author != "null") Text(
|
||||
modifier = Modifier.padding(top = 3.dp),
|
||||
text = author,
|
||||
style = MaterialTheme.typography.bodySmall,
|
||||
color = MaterialTheme.colorScheme.onSurfaceVariant,
|
||||
maxLines = 1,
|
||||
overflow = TextOverflow.Ellipsis
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@PreviewLightDark
|
||||
@Composable
|
||||
fun MangaCardPreview() {
|
||||
EtsudokuTheme {
|
||||
MangaCard(
|
||||
thumbnailUrl = "https://spice-and-wolf.com/special/img/visual_january.jpg"
|
||||
)
|
||||
}
|
||||
}
|
||||
@ -1,5 +0,0 @@
|
||||
package org.xtimms.etsudoku.sections.settings.storage
|
||||
|
||||
import org.xtimms.etsudoku.core.base.event.UiEvent
|
||||
|
||||
interface StorageEvent : UiEvent
|
||||
@ -1,3 +0,0 @@
|
||||
package org.xtimms.etsudoku.utils.material
|
||||
|
||||
const val SecondaryItemAlpha = .78f
|
||||
@ -1,8 +0,0 @@
|
||||
package org.xtimms.etsudoku.work.tracker
|
||||
|
||||
import org.xtimms.etsudoku.core.tracker.model.MangaTracking
|
||||
|
||||
data class TrackingItem(
|
||||
val tracking: MangaTracking,
|
||||
val channelId: String?,
|
||||
)
|
||||
@ -1,4 +1,4 @@
|
||||
package org.xtimms.etsudoku.core
|
||||
package org.xtimms.shirizu.core
|
||||
|
||||
import androidx.compose.animation.core.Animatable
|
||||
import androidx.compose.animation.core.AnimationVector1D
|
||||
@ -1,4 +1,4 @@
|
||||
package org.xtimms.etsudoku.core.base
|
||||
package org.xtimms.shirizu.core.base
|
||||
|
||||
import android.app.Dialog
|
||||
import android.os.Bundle
|
||||
@ -1,4 +1,4 @@
|
||||
package org.xtimms.etsudoku.core.base
|
||||
package org.xtimms.shirizu.core.base
|
||||
|
||||
import android.content.Intent
|
||||
import android.content.res.Configuration
|
||||
@ -1,4 +1,4 @@
|
||||
package org.xtimms.etsudoku.core.base.event
|
||||
package org.xtimms.shirizu.core.base.event
|
||||
|
||||
interface PagedUiEvent : UiEvent {
|
||||
fun loadMore()
|
||||
@ -1,4 +1,4 @@
|
||||
package org.xtimms.etsudoku.core.base.event
|
||||
package org.xtimms.shirizu.core.base.event
|
||||
|
||||
interface UiEvent {
|
||||
fun showMessage(message: String?)
|
||||
@ -1,4 +1,4 @@
|
||||
package org.xtimms.etsudoku.core.base.state
|
||||
package org.xtimms.shirizu.core.base.state
|
||||
|
||||
abstract class PagedUiState : UiState() {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package org.xtimms.etsudoku.core.base.state
|
||||
package org.xtimms.shirizu.core.base.state
|
||||
|
||||
abstract class UiState {
|
||||
abstract val isLoading: Boolean
|
||||
@ -1,4 +1,4 @@
|
||||
package org.xtimms.etsudoku.core.cache
|
||||
package org.xtimms.shirizu.core.cache
|
||||
|
||||
enum class CacheDir(val dir: String) {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package org.xtimms.etsudoku.core.cache
|
||||
package org.xtimms.shirizu.core.cache
|
||||
|
||||
import org.koitharu.kotatsu.parsers.model.Manga
|
||||
import org.koitharu.kotatsu.parsers.model.MangaPage
|
||||
@ -1,4 +1,4 @@
|
||||
package org.xtimms.etsudoku.core.cache
|
||||
package org.xtimms.shirizu.core.cache
|
||||
|
||||
import androidx.collection.LruCache
|
||||
import java.util.concurrent.TimeUnit
|
||||
@ -1,4 +1,4 @@
|
||||
package org.xtimms.etsudoku.core.cache
|
||||
package org.xtimms.shirizu.core.cache
|
||||
|
||||
import android.os.SystemClock
|
||||
import java.util.concurrent.TimeUnit
|
||||
@ -1,4 +1,4 @@
|
||||
package org.xtimms.etsudoku.core.cache
|
||||
package org.xtimms.shirizu.core.cache
|
||||
|
||||
import android.app.Application
|
||||
import android.content.ComponentCallbacks2
|
||||
@ -1,4 +1,4 @@
|
||||
package org.xtimms.etsudoku.core.cache
|
||||
package org.xtimms.shirizu.core.cache
|
||||
|
||||
import kotlinx.coroutines.Deferred
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package org.xtimms.etsudoku.core.cache
|
||||
package org.xtimms.shirizu.core.cache
|
||||
|
||||
import org.koitharu.kotatsu.parsers.model.Manga
|
||||
import org.koitharu.kotatsu.parsers.model.MangaPage
|
||||
@ -1,4 +1,4 @@
|
||||
package org.xtimms.etsudoku.core.components
|
||||
package org.xtimms.shirizu.core.components
|
||||
|
||||
import androidx.compose.animation.AnimatedContent
|
||||
import androidx.compose.animation.SizeTransform
|
||||
@ -1,4 +1,4 @@
|
||||
package org.xtimms.etsudoku.core.components
|
||||
package org.xtimms.shirizu.core.components
|
||||
|
||||
import androidx.compose.foundation.layout.Row
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
@ -1,4 +1,4 @@
|
||||
package org.xtimms.etsudoku.core.components
|
||||
package org.xtimms.shirizu.core.components
|
||||
|
||||
import androidx.compose.animation.core.animateDpAsState
|
||||
import androidx.compose.foundation.background
|
||||
@ -1,4 +1,4 @@
|
||||
package org.xtimms.etsudoku.core.components
|
||||
package org.xtimms.shirizu.core.components
|
||||
|
||||
import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
@ -1,4 +1,4 @@
|
||||
package org.xtimms.etsudoku.core.components
|
||||
package org.xtimms.shirizu.core.components
|
||||
|
||||
import androidx.compose.foundation.layout.Row
|
||||
import androidx.compose.foundation.layout.height
|
||||
@ -1,4 +1,4 @@
|
||||
package org.xtimms.etsudoku.core.components
|
||||
package org.xtimms.shirizu.core.components
|
||||
|
||||
import androidx.compose.animation.AnimatedVisibility
|
||||
import androidx.compose.animation.core.CubicBezierEasing
|
||||
@ -1,4 +1,4 @@
|
||||
package org.xtimms.etsudoku.core.components
|
||||
package org.xtimms.shirizu.core.components
|
||||
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
@ -1,4 +1,4 @@
|
||||
package org.xtimms.etsudoku.core.components
|
||||
package org.xtimms.shirizu.core.components
|
||||
|
||||
import androidx.compose.foundation.layout.Box
|
||||
import androidx.compose.foundation.layout.padding
|
||||
@ -1,4 +1,4 @@
|
||||
package org.xtimms.etsudoku.core.components
|
||||
package org.xtimms.shirizu.core.components
|
||||
|
||||
import androidx.compose.animation.core.animate
|
||||
import androidx.compose.foundation.layout.Box
|
||||
@ -1,4 +1,4 @@
|
||||
package org.xtimms.etsudoku.core.components
|
||||
package org.xtimms.shirizu.core.components
|
||||
|
||||
import androidx.compose.foundation.layout.PaddingValues
|
||||
import androidx.compose.foundation.layout.RowScope
|
||||
@ -1,4 +1,4 @@
|
||||
package org.xtimms.etsudoku.core.components
|
||||
package org.xtimms.shirizu.core.components
|
||||
|
||||
import androidx.compose.foundation.isSystemInDarkTheme
|
||||
import androidx.compose.foundation.layout.Row
|
||||
@ -1,4 +1,4 @@
|
||||
package org.xtimms.etsudoku.core.components.effects
|
||||
package org.xtimms.shirizu.core.components.effects
|
||||
|
||||
import androidx.compose.animation.core.LinearEasing
|
||||
import androidx.compose.animation.core.RepeatMode
|
||||
@ -1,4 +1,4 @@
|
||||
package org.xtimms.etsudoku.core.components.icons
|
||||
package org.xtimms.shirizu.core.components.icons
|
||||
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.materialIcon
|
||||
@ -1,4 +1,4 @@
|
||||
package org.xtimms.etsudoku.core.components.icons
|
||||
package org.xtimms.shirizu.core.components.icons
|
||||
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.materialIcon
|
||||
@ -1,4 +1,4 @@
|
||||
package org.xtimms.etsudoku.core.components.icons
|
||||
package org.xtimms.shirizu.core.components.icons
|
||||
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.ui.graphics.Color
|
||||
@ -1,4 +1,4 @@
|
||||
package org.xtimms.etsudoku.core.components.shape
|
||||
package org.xtimms.shirizu.core.components.shape
|
||||
|
||||
import androidx.compose.ui.geometry.Offset
|
||||
import androidx.compose.ui.geometry.Rect
|
||||
@ -1,10 +1,10 @@
|
||||
package org.xtimms.etsudoku.core.database
|
||||
package org.xtimms.shirizu.core.database
|
||||
|
||||
import android.content.res.Resources
|
||||
import androidx.room.RoomDatabase
|
||||
import androidx.sqlite.db.SupportSQLiteDatabase
|
||||
import org.koitharu.kotatsu.parsers.model.SortOrder
|
||||
import org.xtimms.etsudoku.R
|
||||
import org.xtimms.shirizu.R
|
||||
|
||||
class DatabasePrePopulateCallback(private val resources: Resources) : RoomDatabase.Callback() {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package org.xtimms.etsudoku.core.database
|
||||
package org.xtimms.shirizu.core.database
|
||||
|
||||
const val TABLE_MANGA = "manga"
|
||||
const val TABLE_TAGS = "tags"
|
||||
@ -1,9 +1,9 @@
|
||||
package org.xtimms.etsudoku.core.database.dao
|
||||
package org.xtimms.shirizu.core.database.dao
|
||||
|
||||
import androidx.room.Dao
|
||||
import androidx.room.Query
|
||||
import androidx.room.Upsert
|
||||
import org.xtimms.etsudoku.core.database.entity.TagEntity
|
||||
import org.xtimms.shirizu.core.database.entity.TagEntity
|
||||
|
||||
@Dao
|
||||
abstract class TagsDao {
|
||||
@ -1,4 +1,4 @@
|
||||
package org.xtimms.etsudoku.core.database.entity
|
||||
package org.xtimms.shirizu.core.database.entity
|
||||
|
||||
import androidx.room.ColumnInfo
|
||||
import androidx.room.Entity
|
||||
@ -1,9 +1,9 @@
|
||||
package org.xtimms.etsudoku.core.database.entity
|
||||
package org.xtimms.shirizu.core.database.entity
|
||||
|
||||
import androidx.room.ColumnInfo
|
||||
import androidx.room.Entity
|
||||
import androidx.room.PrimaryKey
|
||||
import org.xtimms.etsudoku.core.database.TABLE_FAVOURITE_CATEGORIES
|
||||
import org.xtimms.shirizu.core.database.TABLE_FAVOURITE_CATEGORIES
|
||||
|
||||
@Entity(tableName = TABLE_FAVOURITE_CATEGORIES)
|
||||
data class FavouriteCategoryEntity(
|
||||
@ -1,9 +1,9 @@
|
||||
package org.xtimms.etsudoku.core.database.entity
|
||||
package org.xtimms.shirizu.core.database.entity
|
||||
|
||||
import androidx.room.ColumnInfo
|
||||
import androidx.room.Entity
|
||||
import androidx.room.ForeignKey
|
||||
import org.xtimms.etsudoku.core.database.TABLE_FAVOURITES
|
||||
import org.xtimms.shirizu.core.database.TABLE_FAVOURITES
|
||||
|
||||
@Entity(
|
||||
tableName = TABLE_FAVOURITES,
|
||||
@ -1,10 +1,10 @@
|
||||
package org.xtimms.etsudoku.core.database.entity
|
||||
package org.xtimms.shirizu.core.database.entity
|
||||
|
||||
import androidx.room.ColumnInfo
|
||||
import androidx.room.Entity
|
||||
import androidx.room.ForeignKey
|
||||
import androidx.room.PrimaryKey
|
||||
import org.xtimms.etsudoku.core.database.TABLE_HISTORY
|
||||
import org.xtimms.shirizu.core.database.TABLE_HISTORY
|
||||
|
||||
@Entity(
|
||||
tableName = TABLE_HISTORY,
|
||||
@ -1,4 +1,4 @@
|
||||
package org.xtimms.etsudoku.core.database.entity
|
||||
package org.xtimms.shirizu.core.database.entity
|
||||
|
||||
import androidx.room.Embedded
|
||||
import androidx.room.Junction
|
||||
@ -1,9 +1,9 @@
|
||||
package org.xtimms.etsudoku.core.database.entity
|
||||
package org.xtimms.shirizu.core.database.entity
|
||||
|
||||
import androidx.room.ColumnInfo
|
||||
import androidx.room.Entity
|
||||
import androidx.room.PrimaryKey
|
||||
import org.xtimms.etsudoku.core.database.TABLE_MANGA
|
||||
import org.xtimms.shirizu.core.database.TABLE_MANGA
|
||||
|
||||
@Entity(tableName = TABLE_MANGA)
|
||||
data class MangaEntity(
|
||||
@ -1,9 +1,9 @@
|
||||
package org.xtimms.etsudoku.core.database.entity
|
||||
package org.xtimms.shirizu.core.database.entity
|
||||
|
||||
import androidx.room.ColumnInfo
|
||||
import androidx.room.Entity
|
||||
import androidx.room.PrimaryKey
|
||||
import org.xtimms.etsudoku.core.database.TABLE_SOURCES
|
||||
import org.xtimms.shirizu.core.database.TABLE_SOURCES
|
||||
|
||||
@Entity(tableName = TABLE_SOURCES)
|
||||
data class MangaSourceEntity(
|
||||
@ -1,9 +1,9 @@
|
||||
package org.xtimms.etsudoku.core.database.entity
|
||||
package org.xtimms.shirizu.core.database.entity
|
||||
|
||||
import androidx.room.ColumnInfo
|
||||
import androidx.room.Entity
|
||||
import androidx.room.ForeignKey
|
||||
import org.xtimms.etsudoku.core.database.TABLE_MANGA_TAGS
|
||||
import org.xtimms.shirizu.core.database.TABLE_MANGA_TAGS
|
||||
|
||||
@Entity(
|
||||
tableName = TABLE_MANGA_TAGS,
|
||||
@ -1,4 +1,4 @@
|
||||
package org.xtimms.etsudoku.core.database.entity
|
||||
package org.xtimms.shirizu.core.database.entity
|
||||
|
||||
import androidx.room.Embedded
|
||||
import androidx.room.Junction
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue