This is the first production release that can be used in production environment.
This version is now used in ongoing Taobao Trip v5 version of Alibaba Trip BU . The project consists of ~25 Xcode sub-projects. And now xUnique works like a charm in the whole project.
Cheers to all the developers in Alibaba Trip iOS Developer team to gave suggestions and send bugged project file to help improving xUnique.
New features
- Two new argument options:
- add `-c` option: When project file was modified, xUnique quit with non-zero status. Without this option, the status code would be zero if so. This option is usually used in Git hook to submit xUnique result combined with your original new commit.
- add `-p` option: Sort `PBXFileReference` and `PBXBuildFile` sections in project file ordered by file names. before v4.0.0,it was default in `-s` option and cannot be turned off. Now, without this option, xUnique will sort these two types by MD5 digests, the same as Xcode does.
- New features:
- now xUnique will also remove duplicate items in `PBXBuildFile`, `PBXFileReference`, `children` and `files`
- colorful xUnique output:
- RED: fatal error
- YELLOW: warning
- GREEN: pass
- add more output when xUnique modified project file
- rewrote `how to use` section in README: now added a recommended method to use xUnique, with a gif animation demo.
- Bug fix:
- Fix bug 2
- Fix bug 3
- Fix bug 4
- Fix bug 5
- Fix bug 6
- Fix bug 7
- Fix bug 8
- Fix bug 9
- Fix bug 10
- Fix bug 11
- As Mac OS X is only case preserving, now use PBXProject name found in project file as the root node path. Do not use `xcodeproj` name from file path any more.