Skip to content

Commit

Permalink
BraveNewPipe: handle okhttp-urlconnection for non legacy flavors corr…
Browse files Browse the repository at this point in the history
…ectly
  • Loading branch information
evermind-zz committed Apr 25, 2024
1 parent 0b449a0 commit f210cbc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -398,17 +398,20 @@ project.afterEvaluate {

// keep the changed dependencies for BraveNewPipe more
// separate in hope of not getting to many merge conflicts
def okHttpVersion = "4.11.0"
// for JavaNetCookieJar see https://github.com/bravenewpipe/NewPipeExtractor/issues/123
project.getDependencies().implementation("com.squareup.okhttp3:okhttp-urlconnection:${okHttpVersion}")
configurations.all {
exclude group: 'com.github.TeamNewPipe', module: 'NewPipeExtractor'

project.getDependencies().implementation("com.github.bravenewpipe:NewPipeExtractor:v0.23.1-2.1.8")
// for JavaNetCookieJar see https://github.com/bravenewpipe/NewPipeExtractor/issues/123
project.getDependencies().implementation("com.squareup.okhttp3:okhttp-urlconnection:3.12.13")

if (it.getName().contains("braveLegacy") || it.getName().contains("BraveLegacy")) {
resolutionStrategy.dependencySubstitution {
substitute module("com.github.TeamNewPipe:NoNonsense-FilePicker") using module("com.github.bravenewpipe:NoNonsense-FilePicker:21d5c57") because "we need Sdk 19 support"
substitute module("com.squareup.okhttp3:okhttp") using module("com.squareup.okhttp3:okhttp:3.12.13") because "we need Sdk 19 support"
okHttpVersion= "3.12.13"
substitute module("com.squareup.okhttp3:okhttp") using module("com.squareup.okhttp3:okhttp:${okHttpVersion}") because "we need Sdk 19 support"
substitute module("com.squareup.okhttp3:okhttp-urlconnection") using module("com.squareup.okhttp3:okhttp-urlconnection:${okHttpVersion}") because "we need Sdk 19 support"
}
}
}
Expand Down

0 comments on commit f210cbc

Please sign in to comment.