mirror of
https://github.com/TeamNewPipe/NewPipe.git
synced 2024-11-22 02:53:09 +01:00
Use hexToByteArray() extension
This commit is contained in:
parent
2e53a99361
commit
5bdb6f18d6
@ -15,10 +15,11 @@ object ReleaseVersionUtil {
|
|||||||
private const val RELEASE_CERT_PUBLIC_KEY_SHA256 =
|
private const val RELEASE_CERT_PUBLIC_KEY_SHA256 =
|
||||||
"cb84069bd68116bafae5ee4ee5b08a567aa6d898404e7cb12f9e756df5cf5cab"
|
"cb84069bd68116bafae5ee4ee5b08a567aa6d898404e7cb12f9e756df5cf5cab"
|
||||||
|
|
||||||
|
@OptIn(ExperimentalStdlibApi::class)
|
||||||
val isReleaseApk by lazy {
|
val isReleaseApk by lazy {
|
||||||
@Suppress("NewApi")
|
@Suppress("NewApi")
|
||||||
val certificates = mapOf(
|
val certificates = mapOf(
|
||||||
RELEASE_CERT_PUBLIC_KEY_SHA256.toByteArray() to PackageManager.CERT_INPUT_SHA256
|
RELEASE_CERT_PUBLIC_KEY_SHA256.hexToByteArray() to PackageManager.CERT_INPUT_SHA256
|
||||||
)
|
)
|
||||||
val app = App.getApp()
|
val app = App.getApp()
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user