Skip to content

Commit

Permalink
Add support for web and visual novels
Browse files Browse the repository at this point in the history
  • Loading branch information
rubengees committed Oct 27, 2019
1 parent 765890d commit a70cf1b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gradle/versions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@ ext {
gravitySnapHelperVersion = "2.2.0"

// Utils
proxerLibVersion = "891bb378a4"
proxerLibVersion = "7eb207867e"
threetenVersion = "1.2.1"
hawkVersion = "7a1a625455"
glideVersion = "4.10.0"
retrofitVersion = "2.6.2"
okHttpVersion = "4.2.2"
okioVersion = "2.4.1"
moshiVersion = "870fee4332"
moshiVersion = "5912dfaaf6"
easyHeaderFooterAdapterVersion = "3.0.0"
kOptionalVersion = "1.6.0"
kotterknifeVersion = "2.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ fun Medium.toAppString(context: Context): String = context.getString(
Medium.OVA -> R.string.medium_ova
Medium.MANGASERIES -> R.string.medium_manga_series
Medium.LIGHTNOVEL -> R.string.medium_lightnovel
Medium.WEBNOVEL -> R.string.medium_webnovel
Medium.VISUALNOVEL -> R.string.medium_visualnovel
Medium.DOUJIN -> R.string.medium_doujin
Medium.HMANGA -> R.string.medium_h_manga
Medium.ONESHOT -> R.string.medium_oneshot
Expand Down Expand Up @@ -162,7 +164,7 @@ fun Country.toAppDrawable(context: Context) = AppCompatResources.getDrawable(
fun Medium.toCategory() = when (this) {
Medium.ANIMESERIES, Medium.MOVIE, Medium.OVA, Medium.HENTAI -> Category.ANIME
Medium.MANGASERIES, Medium.ONESHOT, Medium.DOUJIN, Medium.HMANGA -> Category.MANGA
Medium.LIGHTNOVEL -> Category.NOVEL
Medium.LIGHTNOVEL, Medium.WEBNOVEL, Medium.VISUALNOVEL -> Category.NOVEL
Medium.OTHER -> error("Invalid medium: OTHER")
}

Expand Down
2 changes: 2 additions & 0 deletions src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@
<string name="medium_ova">Special</string>
<string name="medium_manga_series">Mangaserie</string>
<string name="medium_lightnovel">Light Novel</string>
<string name="medium_webnovel">Web Novel</string>
<string name="medium_visualnovel">Visual Novel</string>
<string name="medium_doujin">Doujinshi</string>
<string name="medium_h_manga">H-Manga</string>
<string name="medium_oneshot">One-Shot</string>
Expand Down

0 comments on commit a70cf1b

Please sign in to comment.