Skip to content

Commit

Permalink
Version logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirlif committed May 12, 2024
1 parent 339996b commit e0ccc6d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/com/reandroid/apkeditor/BaseCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import com.reandroid.apk.APKLogger;
import com.reandroid.archive.ZipEntryMap;
import com.reandroid.apk.ApkModule;
import com.reandroid.arsc.ARSCLib;
import com.reandroid.arsc.coder.xml.XmlCoderLogger;
import com.reandroid.commons.utils.log.Logger;

Expand All @@ -32,6 +33,7 @@ public BaseCommand(T options, String logTag){
this.options = options;
this.mLogTag = logTag;
this.mEnableLog = true;
logVersion();
}
public void run() throws IOException{

Expand Down Expand Up @@ -89,6 +91,10 @@ public void logWarn(String msg) {
Logger.e(mLogTag + msg);
}

private void logVersion() {
Logger.i("Using: " + APKEditor.getName() + " version " + APKEditor.getVersion() + ", " + ARSCLib.getName() + " version " + ARSCLib.getVersion());
}

protected static void clearMeta(ApkModule module){
removeSignature(module);
module.setApkSignatureBlock(null);
Expand Down

0 comments on commit e0ccc6d

Please sign in to comment.