Skip to content

Commit

Permalink
Do not set jar comment when comment is null. Closes #16.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fohlen committed Dec 2, 2019
1 parent 70510c3 commit 61eb9fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added scramble to the <rename> element, introducing randomized mapping
- Add documentation about <property> default values

## Fixed
- Do not use `setComment` when comment is actually `null`. Achieves Android compatibility.

## [2.9.1] - 2019-11-18
## Changed
- Use a Jekyll-based documentation instead of our own HTML
Expand Down
4 changes: 3 additions & 1 deletion retroguard/src/main/java/com/yworks/yguard/obf/GuardDB.java
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,9 @@ else if (STREAM_NAME_MANIFEST.equals(inName.toUpperCase()) ||
} else {
outJar = new JarOutputStream(new BufferedOutputStream(os),newManifest[i]);
}
outJar.setComment( Version.getJarComment());
if (Version.getJarComment() != null) {
outJar.setComment( Version.getJarComment());
}

// sort the entries in ascending order
Collections.sort(jarEntries, new Comparator(){
Expand Down

0 comments on commit 61eb9fb

Please sign in to comment.