summaryrefslogtreecommitdiff
path: root/tools/aapt/ResourceTable.h
diff options
context:
space:
mode:
authorAdam Lesinski <adamlesinski@google.com>2015-08-14 13:16:18 -0700
committerAdam Lesinski <adamlesinski@google.com>2015-08-14 13:41:46 -0700
commitbeb9e33bfb79847c25aac98e39f3ea620a953ef7 (patch)
tree4f795b9e4b2cdf95f1dd6b43fdf02eb9fc438b0e /tools/aapt/ResourceTable.h
parent81eeef589386483722c21572d9ab6d3f95dd26be (diff)
AAPT: Fix regression in resource versioning
With a set of resources with the following configurations: () (land) the regression caused any resources that needed to be versioned in configuration () to be lost. Bug:23038206 Change-Id: I2f1b0313fb780ac241e7aaa487cb37dfb79c36aa
Diffstat (limited to 'tools/aapt/ResourceTable.h')
-rw-r--r--tools/aapt/ResourceTable.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/aapt/ResourceTable.h b/tools/aapt/ResourceTable.h
index 2c1bec1fb128..c4bdf09d8b19 100644
--- a/tools/aapt/ResourceTable.h
+++ b/tools/aapt/ResourceTable.h
@@ -99,6 +99,15 @@ public:
class Package;
class Type;
class Entry;
+ class ConfigList;
+
+ /**
+ * Exposed for testing. Determines whether a versioned resource should be generated
+ * based on the other available configurations for that resource.
+ */
+ static bool shouldGenerateVersionedResource(const sp<ConfigList>& configList,
+ const ConfigDescription& sourceConfig,
+ const int sdkVersionToGenerate);
ResourceTable(Bundle* bundle, const String16& assetsPackage, PackageType type);