diff options
| author | 2016-04-25 14:20:21 -0700 | |
|---|---|---|
| committer | 2016-04-30 01:36:12 +0000 | |
| commit | 458b877488c12ea4336d8fc00a95d9c0298bd6d0 (patch) | |
| tree | 6169f78510254f6bde737279763049f00eaef200 /tools/aapt2/Main.cpp | |
| parent | 832449800e2e5068ab0eb986bb359906ddf6efdc (diff) | |
AAPT2: Add diff command
Adds the diff command and various small fixes to issues
discovered when diffing old AAPT built APKs with new AAPT2
built APKS.
Bug:22775504
Change-Id: I682a7fe1cf4b3efa7cbd5d18b333cf2d1046fe1b
Diffstat (limited to 'tools/aapt2/Main.cpp')
| -rw-r--r-- | tools/aapt2/Main.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/aapt2/Main.cpp b/tools/aapt2/Main.cpp index a2fadd95db3f..00d8aaeeda55 100644 --- a/tools/aapt2/Main.cpp +++ b/tools/aapt2/Main.cpp @@ -24,6 +24,7 @@ namespace aapt { extern int compile(const std::vector<StringPiece>& args); extern int link(const std::vector<StringPiece>& args); extern int dump(const std::vector<StringPiece>& args); +extern int diff(const std::vector<StringPiece>& args); } // namespace aapt @@ -44,12 +45,14 @@ int main(int argc, char** argv) { return aapt::link(args); } else if (command == "dump" || command == "d") { return aapt::dump(args); + } else if (command == "diff") { + return aapt::diff(args); } std::cerr << "unknown command '" << command << "'\n"; } else { std::cerr << "no command specified\n"; } - std::cerr << "\nusage: aapt2 [compile|link|dump] ..." << std::endl; + std::cerr << "\nusage: aapt2 [compile|link|dump|diff] ..." << std::endl; return 1; } |