Skip to content

Commit

Permalink
Minor Commit - 0.9.7
Browse files Browse the repository at this point in the history
 - Added support for 540p
 - Updated gradle
  • Loading branch information
Sher1234 committed Jan 7, 2021
1 parent 8d74da5 commit ecb109b
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 13 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ an!me implements number of open source projects listed bellow:

#### Release Updates
```
Added support for 540p Minor Commit - Jan 07, 2021
Streamlined to WebsiteAPI changes for batches, Updated Dependencies Major Commit - Jan 05, 2021
Migrated to SubsPlease [Full Support], Updated Dependencies & UI Major Commit - Nov 30, 2020
Minor UI Tweaks, Fixed Release View (Horrible), Updated Dependencies Major Commit - June 28, 2020
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ android {
defaultConfig {
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
applicationId = "info.horriblesubs.sher"
versionName = "1.0.0-alpha1"
versionName = "1.0.0-alpha2"
targetSdkVersion(30)
minSdkVersion(21)
versionCode = 96
versionCode = 97

buildConfigField("String", "BUILD_TIME", "\"$buildTime\"")
}
Expand Down
Binary file modified app/release/app-release.aab
Binary file not shown.
Binary file modified app/release/app-release.apk
Binary file not shown.
7 changes: 3 additions & 4 deletions app/release/output-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@
{
"type": "SINGLE",
"filters": [],
"versionCode": 96,
"versionName": "1.0.0-alpha1",
"versionCode": 97,
"versionName": "1.0.0-alpha2",
"outputFile": "app-release.apk"
}
],
"elementType": "File"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ val BookmarkedShow.imageUrl get() = if (image.contains("subsplease.org")) image
val ItemRelease.SD: ItemRelease.Links? get() {
var link: ItemRelease.Links? = null
downloads.forEach {
if (it.res.contains("360") || it.res.contains("480"))
if (it.res.contains("360") || it.res.contains("480") || it.res.contains("540"))
link = it
}
return link
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package info.horriblesubs.sher.libs.preference.prefs
import info.horriblesubs.sher.App
import info.horriblesubs.sher.libs.preference.model.BasePreference
import java.io.File
import kotlin.math.roundToInt

object AppCachePreference: BasePreference<String>() {

Expand All @@ -14,7 +15,7 @@ object AppCachePreference: BasePreference<String>() {
var size = 0F
size += getDirSize(App.get().externalCacheDir)
size += getDirSize(App.get().cacheDir)
val float = ((size /1024)/1024)
val float = (((size*100)/1024)/1024).roundToInt().toFloat()/100F
return "$float"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class LatestAdapter(
release?.text = t.episode.parseAsHtml()
title?.text = t.show.parseAsHtml()
t.downloads.forEachIndexed { i, it ->
if (i == 0) sd?.visibility = if (it.res.contains("360") || it.res.contains("480")) View.VISIBLE else View.GONE
if (i == 0) sd?.visibility = if (it.res.contains("360") || it.res.contains("480") || it.res.contains("540")) View.VISIBLE else View.GONE
if (i != 2) hd?.visibility = if (it.res.contains("720", true)) View.VISIBLE else View.GONE
fhd?.visibility = if (it.res.contains("1080", true)) View.VISIBLE else View.GONE
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class ReleaseViewFragment: BottomSheetDialogFragment(), OnItemClickListener<Stri
val link = release?.SD
val xdcc = if (link?.xdcc.isNullOrBlank()) null else "https://subsplease.org/xdcc/?search=${Uri.encode(link?.xdcc)}"
adapter.reset(titles, arrayListOf(link?.magnet, link?.torrent, xdcc))
"HQ [360p] or SD [480p]"
"HQ [360p] or SD [480p/540p]"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ buildscript {
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.21")
classpath("com.android.tools.build:gradle:7.0.0-alpha03")
classpath("com.android.tools.build:gradle:7.0.0-alpha04")
classpath("com.google.gms:google-services:4.3.4")
}
}
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Mon Jan 04 10:55:43 IST 2021
#Thu Jan 07 17:01:04 IST 2021
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-rc-4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-rc-5-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME

0 comments on commit ecb109b

Please sign in to comment.