Skip to content

Commit 5bdb6f1

Browse files
Isira-SeneviratneTobiGr
authored andcommitted
Use hexToByteArray() extension
1 parent 2e53a99 commit 5bdb6f1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/src/main/java/org/schabi/newpipe/util/ReleaseVersionUtil.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ object ReleaseVersionUtil {
1515
private const val RELEASE_CERT_PUBLIC_KEY_SHA256 =
1616
"cb84069bd68116bafae5ee4ee5b08a567aa6d898404e7cb12f9e756df5cf5cab"
1717

18+
@OptIn(ExperimentalStdlibApi::class)
1819
val isReleaseApk by lazy {
1920
@Suppress("NewApi")
2021
val certificates = mapOf(
21-
RELEASE_CERT_PUBLIC_KEY_SHA256.toByteArray() to PackageManager.CERT_INPUT_SHA256
22+
RELEASE_CERT_PUBLIC_KEY_SHA256.hexToByteArray() to PackageManager.CERT_INPUT_SHA256
2223
)
2324
val app = App.getApp()
2425
try {

0 commit comments

Comments
 (0)