mirror of
https://github.com/revanced/revanced-cli.git
synced 2025-01-10 11:15:50 +01:00
fix: remove logger from Signer.kt
This commit is contained in:
parent
e5a37e0a5f
commit
51e091ce40
@ -1,6 +1,5 @@
|
|||||||
package app.revanced.utils.signing
|
package app.revanced.utils.signing
|
||||||
|
|
||||||
import app.revanced.cli.command.MainCommand.logger
|
|
||||||
import app.revanced.cli.signing.SigningOptions
|
import app.revanced.cli.signing.SigningOptions
|
||||||
import com.android.apksig.ApkSigner
|
import com.android.apksig.ApkSigner
|
||||||
import org.bouncycastle.asn1.x500.X500Name
|
import org.bouncycastle.asn1.x500.X500Name
|
||||||
@ -55,7 +54,9 @@ internal class Signer(
|
|||||||
|
|
||||||
// TODO: keystore should be saved securely
|
// TODO: keystore should be saved securely
|
||||||
val ks = File(signingOptions.keyStoreFilePath)
|
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")
|
val keyStore = KeyStore.getInstance("BKS", "BC")
|
||||||
FileInputStream(ks).use { fis -> keyStore.load(fis, null) }
|
FileInputStream(ks).use { fis -> keyStore.load(fis, null) }
|
||||||
|
Loading…
Reference in New Issue
Block a user