Simplify BouncyCastle workaround and upgrade Fragment (#1926)

* Simplify bouncycastle workaround

* Upgrade fragment-ktx to 1.5.x
This commit is contained in:
Harsh Shandilya 2022-05-27 13:00:10 +05:30 committed by GitHub
parent 53fb1eba9f
commit 88151f4bdd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 20 deletions

View file

@ -1,13 +0,0 @@
/**
* Bouncy Castle 1.71 changed their packaging to stop shipping jdk15on artifacts, and instead use
* multi-release JARs with the jdk15to18 suffix. This plugin replaces older dependencies to use the
* new version and artifact.
*/
configurations.all {
resolutionStrategy.eachDependency {
if (requested.group == "org.bouncycastle" && requested.name.contains("jdk15on")) {
val replacement = "${requested.group}:${requested.name.replace("jdk15on", "jdk15to18")}:1.71"
useTarget(replacement)
}
}
}