fix: Only load the keystore once per instantiation

This commit is contained in:
oSumAtrIX
2023-09-25 19:02:07 +02:00
parent fda383ade5
commit 5993f7e568

View File

@@ -116,8 +116,9 @@ object ApkSigner {
logger.fine("Creating keystore")
return KeyStore.getInstance("BKS", BouncyCastleProvider.PROVIDER_NAME).apply {
load(null)
entries.forEach { entry ->
load(null)
// Add all entries to the keystore.
setKeyEntry(
entry.alias,