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
diff --git a/tools/aapt2/AppInfo.h b/tools/aapt2/AppInfo.h
index 30047f7..51d8ca6 100644
--- a/tools/aapt2/AppInfo.h
+++ b/tools/aapt2/AppInfo.h
@@ -17,6 +17,8 @@
 #ifndef AAPT_APP_INFO_H
 #define AAPT_APP_INFO_H
 
+#include "util/Maybe.h"
+
 #include <string>
 
 namespace aapt {
@@ -30,6 +32,11 @@
      * App's package name.
      */
     std::u16string package;
+
+    /**
+     * The App's minimum SDK version.
+     */
+    Maybe<std::u16string> minSdkVersion;
 };
 
 } // namespace aapt