mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-29 03:13:17 -05:00
Bump dependencies
This commit is contained in:
parent
f30ab56fd0
commit
8644d90bd4
2 changed files with 7 additions and 7 deletions
|
@ -1,15 +1,15 @@
|
||||||
package eu.kanade.tachiyomi.util
|
package eu.kanade.tachiyomi.util
|
||||||
|
|
||||||
import android.util.Base64
|
|
||||||
import java.security.SecureRandom
|
import java.security.SecureRandom
|
||||||
|
import java.util.Base64
|
||||||
|
|
||||||
object PkceUtil {
|
object PkceUtil {
|
||||||
|
|
||||||
private const val PKCE_BASE64_ENCODE_SETTINGS = Base64.NO_WRAP or Base64.NO_PADDING or Base64.URL_SAFE
|
|
||||||
|
|
||||||
fun generateCodeVerifier(): String {
|
fun generateCodeVerifier(): String {
|
||||||
val codeVerifier = ByteArray(50)
|
val codeVerifier = ByteArray(50)
|
||||||
SecureRandom().nextBytes(codeVerifier)
|
SecureRandom().nextBytes(codeVerifier)
|
||||||
return Base64.encodeToString(codeVerifier, PKCE_BASE64_ENCODE_SETTINGS)
|
return Base64.getUrlEncoder()
|
||||||
|
.withoutPadding()
|
||||||
|
.encodeToString(codeVerifier)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[versions]
|
[versions]
|
||||||
aboutlib_version = "10.9.1"
|
aboutlib_version = "10.9.2"
|
||||||
okhttp_version = "5.0.0-alpha.11"
|
okhttp_version = "5.0.0-alpha.11"
|
||||||
shizuku_version = "12.2.0"
|
shizuku_version = "12.2.0"
|
||||||
sqlite = "2.4.0"
|
sqlite = "2.4.0"
|
||||||
|
@ -9,7 +9,7 @@ voyager = "1.0.0-rc08"
|
||||||
richtext = "0.17.0"
|
richtext = "0.17.0"
|
||||||
|
|
||||||
[libraries]
|
[libraries]
|
||||||
desugar = "com.android.tools:desugar_jdk_libs:2.0.3"
|
desugar = "com.android.tools:desugar_jdk_libs:2.0.4"
|
||||||
android-shortcut-gradle = "com.github.zellius:android-shortcut-gradle-plugin:0.1.2"
|
android-shortcut-gradle = "com.github.zellius:android-shortcut-gradle-plugin:0.1.2"
|
||||||
google-services-gradle = "com.google.gms:google-services:4.4.0"
|
google-services-gradle = "com.google.gms:google-services:4.4.0"
|
||||||
|
|
||||||
|
@ -83,7 +83,7 @@ sqldelight-dialects-sql = { module = "app.cash.sqldelight:sqlite-3-38-dialect",
|
||||||
sqldelight-gradle = { module = "app.cash.sqldelight:gradle-plugin", version.ref = "sqldelight" }
|
sqldelight-gradle = { module = "app.cash.sqldelight:gradle-plugin", version.ref = "sqldelight" }
|
||||||
|
|
||||||
junit = "org.junit.jupiter:junit-jupiter:5.10.0"
|
junit = "org.junit.jupiter:junit-jupiter:5.10.0"
|
||||||
kotest-assertions = "io.kotest:kotest-assertions-core:5.7.2"
|
kotest-assertions = "io.kotest:kotest-assertions-core:5.8.0"
|
||||||
mockk = "io.mockk:mockk:1.13.8"
|
mockk = "io.mockk:mockk:1.13.8"
|
||||||
|
|
||||||
voyager-navigator = { module = "cafe.adriel.voyager:voyager-navigator", version.ref = "voyager" }
|
voyager-navigator = { module = "cafe.adriel.voyager:voyager-navigator", version.ref = "voyager" }
|
||||||
|
|
Loading…
Reference in a new issue