mirror of
https://github.com/ReVanced/revanced-library.git
synced 2026-01-18 00:43:56 +00:00
fix: Only load the keystore once per instantiation
This commit is contained in:
@@ -116,8 +116,9 @@ object ApkSigner {
|
|||||||
logger.fine("Creating keystore")
|
logger.fine("Creating keystore")
|
||||||
|
|
||||||
return KeyStore.getInstance("BKS", BouncyCastleProvider.PROVIDER_NAME).apply {
|
return KeyStore.getInstance("BKS", BouncyCastleProvider.PROVIDER_NAME).apply {
|
||||||
|
load(null)
|
||||||
|
|
||||||
entries.forEach { entry ->
|
entries.forEach { entry ->
|
||||||
load(null)
|
|
||||||
// Add all entries to the keystore.
|
// Add all entries to the keystore.
|
||||||
setKeyEntry(
|
setKeyEntry(
|
||||||
entry.alias,
|
entry.alias,
|
||||||
|
|||||||
Reference in New Issue
Block a user