Skip to content

Commit

Permalink
feat: adapt play 3.20.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sakarie9 committed Dec 30, 2024
1 parent 33a8b11 commit 86e8db4
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 11 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ org.gradle.parallel=true
org.gradle.caching=true
kotlin.code.style=official
android.useAndroidX=true
version=1.23.3.5
version=1.23.3.6
ksp.useKSP2=true
org.gradle.jvmargs=-Xmx2g
10 changes: 5 additions & 5 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
[versions]
# integrations
agp = "8.7.2"
agp = "8.7.3"
hiddenapibypass = "4.3"
truetypeparser = "2.1.4"
androidx-documentfile = "1.0.1"
androidx-annotation = "1.9.1"
androidx-appcompat = "1.7.0"
androidx-preference = "1.2.1"
androidx-recyclerview = "1.3.2"
protobuf = "4.28.3"
protobuf = "4.29.2"
kotlinx-serialization = "1.7.3"
fastjson = "2.0.53"
# patches
revanced-patcher = "19.3.1"
smali = "3.0.3"
smali = "3.0.5"
gson = "2.11.0"
kotlin = "2.0.21"
ksp = "2.0.21-1.0.26"
kotlin = "2.1.0"
ksp = "2.1.0-1.0.29"
kotlinpoet-ksp = "2.0.0"

[libraries]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@ package app.revanced.patches.bilibili.misc.okhttp.fingerprints

import app.revanced.patcher.fingerprint.MethodFingerprint

object HttpUrlFingerprint : MethodFingerprint(strings = listOf("javaWhitespace"))
object HttpUrlFingerprint : MethodFingerprint(
strings = listOf("javaWhitespace"),
customFingerprint = { _, classDef ->
classDef.startsWith("Lokhttp3")
}
)
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@ package app.revanced.patches.bilibili.misc.okhttp.fingerprints

import app.revanced.patcher.fingerprint.MethodFingerprint

object MediaTypeGetFingerprint : MethodFingerprint(strings = listOf("No subtype found for:"))
object MediaTypeGetFingerprint : MethodFingerprint(
strings = listOf("No subtype found for:"),
customFingerprint = { _, classDef ->
classDef.startsWith("Lokhttp3")
}
)
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ package app.revanced.patches.bilibili.misc.okhttp.fingerprints
import app.revanced.patcher.fingerprint.MethodFingerprint

object ResponseBodyFingerprint : MethodFingerprint(
strings = listOf("Cannot buffer entire body for content length: ")
strings = listOf("Cannot buffer entire body for content length: "),
customFingerprint = { _, classDef ->
classDef.startsWith("Lokhttp3")
}
)
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ object ResponseFingerprint : MethodFingerprint(
strings = listOf("Response{protocol="),
customFingerprint = { _, classDef ->
classDef.interfaces == listOf("Ljava/io/Closeable;") && classDef.methods.none { it.accessFlags.isNative() }
&& classDef.toString() != "Lcom/tencent/cloud/ai/network/okhttp3/Response;"
}
)
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package app.revanced.patches.bilibili.video.player.fingerprints
import app.revanced.patcher.fingerprint.MethodFingerprint

object IjkMediaPlayerOptionsFingerprint : MethodFingerprint(
strings = listOf("enable-decoder-switch", "enable-use-https-when-forbidden"),
strings = listOf("enable-decoder-switch", "enable-accurate-seek"),
parameters = listOf(),
returnType = "V"
)
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ dependencyResolutionManagement {
}

plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
id("org.gradle.toolchains.foojay-resolver-convention") version "0.9.0"
}

include(
Expand Down

0 comments on commit 86e8db4

Please sign in to comment.