Skip to content

Commit

Permalink
fix: remove logger from Signer.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
Sculas committed Jun 22, 2022
1 parent e5a37e0 commit 51e091c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/kotlin/app/revanced/utils/signing/Signer.kt
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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) }
Expand Down

0 comments on commit 51e091c

Please sign in to comment.