X-Git-Url: https://git.saurik.com/android/aapt.git/blobdiff_plain/826ff9a61f638e4ec2d6891bc421ec7f92882cdf..1782ef54064d06ed12eea07fee7e1f802db84645:/Command.cpp diff --git a/Command.cpp b/Command.cpp index 790b474..f2cdf75 100644 --- a/Command.cpp +++ b/Command.cpp @@ -233,7 +233,7 @@ static ssize_t indexOfAttribute(const ResXMLTree& tree, uint32_t attrRes) return -1; } -static String8 getAttribute(const ResXMLTree& tree, const char* ns, +String8 getAttribute(const ResXMLTree& tree, const char* ns, const char* attr, String8* outError) { ssize_t idx = tree.indexOfAttribute(ns, attr); @@ -1158,6 +1158,12 @@ int doPackage(Bundle* bundle) } } + // Write out the ProGuard file + err = writeProguardFile(bundle, assets); + if (err < 0) { + goto bail; + } + // Write the apk if (outputAPKFile) { err = writeAPK(bundle, assets, String8(outputAPKFile));