X-Git-Url: https://git.saurik.com/android/aapt.git/blobdiff_plain/5af23dd2f3d4d4c80fb17315eda77864e20b3024..034f2c9aac98c8c5d40667f1bf047211ed8f09f0:/AaptAssets.cpp diff --git a/AaptAssets.cpp b/AaptAssets.cpp index d6cfb12..e4f447e 100644 --- a/AaptAssets.cpp +++ b/AaptAssets.cpp @@ -1830,6 +1830,16 @@ ssize_t AaptAssets::slurpResourceTree(Bundle* bundle, const String8& srcDir) continue; } + if (bundle->getMaxResVersion() != NULL && group.version.length() != 0) { + int maxResInt = atoi(bundle->getMaxResVersion()); + const char *verString = group.version.string(); + int dirVersionInt = atoi(verString + 1); // skip 'v' in version name + if (dirVersionInt > maxResInt) { + fprintf(stderr, "max res %d, skipping %s\n", maxResInt, entry->d_name); + continue; + } + } + FileType type = getFileType(subdirName.string()); if (type == kFileTypeDirectory) {