From e5cf1be91ac6f9f812efa02923038b9e90377a82 Mon Sep 17 00:00:00 2001 From: Koitharu Date: Mon, 5 Feb 2024 12:54:07 +0200 Subject: [PATCH] Fix build signature validation --- .../org/koitharu/kotatsu/core/os/AppValidator.kt | 2 +- app/src/main/res/values-es/plurals.xml | 12 +----------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/app/src/main/kotlin/org/koitharu/kotatsu/core/os/AppValidator.kt b/app/src/main/kotlin/org/koitharu/kotatsu/core/os/AppValidator.kt index 035d46313..e95207ca3 100644 --- a/app/src/main/kotlin/org/koitharu/kotatsu/core/os/AppValidator.kt +++ b/app/src/main/kotlin/org/koitharu/kotatsu/core/os/AppValidator.kt @@ -13,7 +13,7 @@ class AppValidator @Inject constructor( ) { @Suppress("NewApi") val isOriginalApp by lazy { - val certificates = mapOf(CERT_SHA256.toByteArray() to PackageManager.CERT_INPUT_SHA256) + val certificates = mapOf(CERT_SHA256.hexToByteArray() to PackageManager.CERT_INPUT_SHA256) PackageInfoCompat.hasSignatures(context.packageManager, context.packageName, certificates, false) } diff --git a/app/src/main/res/values-es/plurals.xml b/app/src/main/res/values-es/plurals.xml index 7a958bc17..ef71e2da0 100644 --- a/app/src/main/res/values-es/plurals.xml +++ b/app/src/main/res/values-es/plurals.xml @@ -35,16 +35,6 @@ Hace %1$d meses Hace %1$d meses - - %1$d minuto - %1$d minutos - %1$d minutos - - - %1$d hora - %1$d horas - %1$d horas - %1$d hora %1$d horas @@ -55,4 +45,4 @@ %1$d minutos %1$d minutos - \ No newline at end of file +