update agp and kotlin
apg 4.1.3 -> 4.2.0 kotlin 1.4.32 -> 1.5.0
This commit is contained in:
parent
8160641b8f
commit
be591a961a
|
@ -177,7 +177,7 @@ object AoDParser {
|
||||||
itemMediaList.clear()
|
itemMediaList.clear()
|
||||||
mediaList.clear()
|
mediaList.clear()
|
||||||
resAnimes.select("div.animebox").forEach {
|
resAnimes.select("div.animebox").forEach {
|
||||||
val type = if (it.select("p.animebox-link").select("a").text().toLowerCase(Locale.ROOT) == "zur serie") {
|
val type = if (it.select("p.animebox-link").select("a").text().lowercase(Locale.ROOT) == "zur serie") {
|
||||||
MediaType.TVSHOW
|
MediaType.TVSHOW
|
||||||
} else {
|
} else {
|
||||||
MediaType.MOVIE
|
MediaType.MOVIE
|
||||||
|
@ -347,7 +347,7 @@ object AoDParser {
|
||||||
|
|
||||||
// additional info from the media page
|
// additional info from the media page
|
||||||
res.select("table.vertical-table").select("tr").forEach { row ->
|
res.select("table.vertical-table").select("tr").forEach { row ->
|
||||||
when (row.select("th").text().toLowerCase(Locale.ROOT)) {
|
when (row.select("th").text().lowercase(Locale.ROOT)) {
|
||||||
"produktionsjahr" -> media.info.year = row.select("td").text().toInt()
|
"produktionsjahr" -> media.info.year = row.select("td").text().toInt()
|
||||||
"fsk" -> media.info.age = row.select("td").text().toInt()
|
"fsk" -> media.info.age = row.select("td").text().toInt()
|
||||||
"episodenanzahl" -> {
|
"episodenanzahl" -> {
|
||||||
|
|
|
@ -49,14 +49,14 @@ class MediaItemAdapter(private val initMedia: List<ItemMedia>) : RecyclerView.Ad
|
||||||
|
|
||||||
inner class MediaFilter : Filter() {
|
inner class MediaFilter : Filter() {
|
||||||
override fun performFiltering(constraint: CharSequence?): FilterResults {
|
override fun performFiltering(constraint: CharSequence?): FilterResults {
|
||||||
val filterTerm = constraint.toString().toLowerCase(Locale.ROOT)
|
val filterTerm = constraint.toString().lowercase(Locale.ROOT)
|
||||||
val results = FilterResults()
|
val results = FilterResults()
|
||||||
|
|
||||||
val filteredList = if (filterTerm.isEmpty()) {
|
val filteredList = if (filterTerm.isEmpty()) {
|
||||||
initMedia
|
initMedia
|
||||||
} else {
|
} else {
|
||||||
initMedia.filter {
|
initMedia.filter {
|
||||||
it.title.toLowerCase(Locale.ROOT).contains(filterTerm)
|
it.title.lowercase(Locale.ROOT).contains(filterTerm)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||||
buildscript {
|
buildscript {
|
||||||
ext.kotlin_version = "1.4.32"
|
ext.kotlin_version = "1.5.0"
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
jcenter()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:4.1.3'
|
classpath 'com.android.tools.build:gradle:4.2.0'
|
||||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||||
|
|
||||||
// NOTE: Do not place your application dependencies here; they belong
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
|
|
Loading…
Reference in New Issue