fix: remove logger from Signer.kt

This commit is contained in:
Lucaskyy 2022-06-22 15:01:48 +02:00
parent e5a37e0a5f
commit 51e091ce40
No known key found for this signature in database
GPG Key ID: 1530BFF96D1EEB89

View File

@ -1,6 +1,5 @@
package app.revanced.utils.signing
import app.revanced.cli.command.MainCommand.logger
import app.revanced.cli.signing.SigningOptions
import com.android.apksig.ApkSigner
import org.bouncycastle.asn1.x500.X500Name
@ -55,7 +54,9 @@ internal class Signer(
// TODO: keystore should be saved securely
val ks = File(signingOptions.keyStoreFilePath)
if (!ks.exists()) newKeystore(ks) else logger.info("Found existing keystore ${ks.nameWithoutExtension}")
if (!ks.exists()) newKeystore(ks) else {
println("found existing keystore: ${ks.nameWithoutExtension}")
}
val keyStore = KeyStore.getInstance("BKS", "BC")
FileInputStream(ks).use { fis -> keyStore.load(fis, null) }