Skip to content

Commit

Permalink
Revert "BraveNewPipe: handle alternative urls array into data.json to…
Browse files Browse the repository at this point in the history
… promote conscrypt build on Kitkat"

This reverts commit e251e33.
-> we no longer support KitKat
  • Loading branch information
evermind-zz committed Jun 6, 2023
1 parent 27194d6 commit 92b7d69
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 110 deletions.
1 change: 0 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,6 @@ dependencies {
testImplementation 'junit:junit:4.13.2'
testImplementation "org.mockito:mockito-core:${mockitoVersion}"
testImplementation "org.mockito:mockito-inline:${mockitoVersion}"
testImplementation 'com.github.TeamNewPipe:nanojson:1d9e1aea9049fc9f85e68b43ba39fe7be1c1f751'

androidTestImplementation "androidx.test.ext:junit:1.1.3"
androidTestImplementation "androidx.test:runner:1.4.0"
Expand Down
6 changes: 1 addition & 5 deletions app/src/main/java/org/schabi/newpipe/NewVersionWorker.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import androidx.work.WorkerParameters
import androidx.work.workDataOf
import com.grack.nanojson.JsonParser
import com.grack.nanojson.JsonParserException
import org.schabi.newpipe.brave.NewVersionHelper
import org.schabi.newpipe.extractor.downloader.Response
import org.schabi.newpipe.extractor.exceptions.ReCaptchaException
import org.schabi.newpipe.util.PendingIntentCompat
Expand Down Expand Up @@ -127,10 +126,7 @@ class NewVersionWorker(

val versionName = githubStableObject.getString("version")
val versionCode = githubStableObject.getInt("version_code")
var apkLocationUrl = githubStableObject.getString("apk")
apkLocationUrl = NewVersionHelper.getAlternativeUrlOnKitkat(
githubStableObject, apkLocationUrl
)
val apkLocationUrl = githubStableObject.getString("apk")
compareAppVersionAndShowNotification(versionName, apkLocationUrl, versionCode)
} catch (e: JsonParserException) {
// Most likely something is wrong in data received from NEWPIPE_API_URL.
Expand Down
48 changes: 0 additions & 48 deletions app/src/main/java/org/schabi/newpipe/brave/NewVersionHelper.java

This file was deleted.

This file was deleted.

0 comments on commit 92b7d69

Please sign in to comment.