Skip to content

Commit

Permalink
Merge pull request #108 from Kirlif/version_logging
Browse files Browse the repository at this point in the history
Version logging
  • Loading branch information
REAndroid committed May 12, 2024
2 parents 339996b + e0ccc6d commit 1157ca4
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 1157ca4

Please sign in to comment.