Upgrade plugins
This commit is contained in:
2
.idea/kotlinc.xml
generated
2
.idea/kotlinc.xml
generated
@@ -4,6 +4,6 @@
|
|||||||
<option name="jvmTarget" value="1.8" />
|
<option name="jvmTarget" value="1.8" />
|
||||||
</component>
|
</component>
|
||||||
<component name="KotlinJpsPluginSettings">
|
<component name="KotlinJpsPluginSettings">
|
||||||
<option name="version" value="1.6.21" />
|
<option name="version" value="1.7.10" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
||||||
@@ -70,13 +70,14 @@ class LocalMangaRepository @Inject constructor(private val storageManager: Local
|
|||||||
if (!tags.isNullOrEmpty()) {
|
if (!tags.isNullOrEmpty()) {
|
||||||
list.retainAll { x -> x.containsTags(tags) }
|
list.retainAll { x -> x.containsTags(tags) }
|
||||||
}
|
}
|
||||||
@Suppress("NON_EXHAUSTIVE_WHEN_STATEMENT")
|
|
||||||
when (sortOrder) {
|
when (sortOrder) {
|
||||||
SortOrder.ALPHABETICAL -> list.sortWith(compareBy(AlphanumComparator()) { x -> x.manga.title })
|
SortOrder.ALPHABETICAL -> list.sortWith(compareBy(AlphanumComparator()) { x -> x.manga.title })
|
||||||
SortOrder.RATING -> list.sortByDescending { it.manga.rating }
|
SortOrder.RATING -> list.sortByDescending { it.manga.rating }
|
||||||
SortOrder.NEWEST,
|
SortOrder.NEWEST,
|
||||||
SortOrder.UPDATED,
|
SortOrder.UPDATED,
|
||||||
-> list.sortByDescending { it.createdAt }
|
-> list.sortByDescending { it.createdAt }
|
||||||
|
|
||||||
|
else -> Unit
|
||||||
}
|
}
|
||||||
return list.unwrap()
|
return list.unwrap()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ buildscript {
|
|||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:7.2.2'
|
classpath 'com.android.tools.build:gradle:7.3.0'
|
||||||
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21'
|
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10'
|
||||||
classpath 'com.google.dagger:hilt-android-gradle-plugin:2.42'
|
classpath 'com.google.dagger:hilt-android-gradle-plugin:2.43.2'
|
||||||
|
|
||||||
// NOTE: Do not place your application dependencies here; they belong
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
// in the individual module build.gradle files
|
// in the individual module build.gradle files
|
||||||
|
|||||||
Reference in New Issue
Block a user