From fb6312fe93a8544e6a95d1c619c8cea3940cbe1a Mon Sep 17 00:00:00 2001 From: Adam Lesinski Date: Tue, 28 Jun 2016 14:40:32 -0700 Subject: AAPT2: Add version collapsing When an app specifies (or imports) resources with various configurations for different SDK versions, specifying a minSdk will make many of those resources unreachable. Version collapsing will prune out the resources specified for SDK versions less than the minSdk. If, however, there is no exact matching resource for the minSdk version, the next smallest SDK version is kept. Change-Id: Ic7bcab6c59d65c97c67c8767358abb57cdec60a4 --- tools/aapt2/diff/Diff.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tools/aapt2/diff/Diff.cpp') diff --git a/tools/aapt2/diff/Diff.cpp b/tools/aapt2/diff/Diff.cpp index 20b7b59642ca..67333a228cdf 100644 --- a/tools/aapt2/diff/Diff.cpp +++ b/tools/aapt2/diff/Diff.cpp @@ -51,6 +51,10 @@ public: return false; } + int getMinSdkVersion() override { + return 0; + } + private: std::u16string mEmpty; StdErrDiagnostics mDiagnostics; -- cgit v1.2.3