summaryrefslogtreecommitdiffstats
path: root/tools/aapt/XMLNode.cpp
Commit message (Collapse)AuthorAgeFilesLines
* am d22a1e89: am 244152bf: Merge "Change aapt\'s warning message to suggest ↵Eric Fischer2010-08-161-1/+1
|\ | | | | | | | | | | | | | | | | formatted="false", not "true"." into gingerbread Merge commit 'd22a1e896cbc7e86d57be9923d749b017b3cde79' * commit 'd22a1e896cbc7e86d57be9923d749b017b3cde79': Change aapt's warning message to suggest formatted="false", not "true".
| * Change aapt's warning message to suggest formatted="false", not "true".Eric Fischer2010-08-131-1/+1
| | | | | | | | | | | | True is the default and specifying it won't suppress the warning. Change-Id: I8ecc919b4059bf3321e781649cb46dd2d3807592
* | Fixes a few minor problems with AAPTSteve Block2010-06-251-0/+4
|/ | | | | | | | | | - Fixes casting problems with stricter compilers - Adds a couple of missing ifdef guards This is a first step toward being able to generate APKs on the fly on the device. Bug: 2766918 Change-Id: Icaaee5a4032afa313256add321b447443861dd85
* Add error checking for translatable stringsKenny Root2010-06-031-1/+111
| | | | | | | | | Translatable strings that have multiple substitutions should use positional String.format() substitutions. This change makes it an error not to use that format on translatable strings that have more than one substitution in its text. Change-Id: I3a19707f3804aa24e8568dc1653a11576cac5916
* Add the --rename-manifest-package option to aapt.Jeff Hamilton2010-02-011-0/+13
| | | | | | | It allows you to force override the manifest package listed in the AndroidManifest.xml when creating an APK file. Change-Id: I7eac7943c4e56610b65728ae54773a273634fd9d
* Optional use of UTF-8 strings in resource bundlesKenny Root2009-12-071-1/+2
| | | | | | | | | | | | | | | Allows the use of UTF-8 for packing resources instead of the default of UTF-16 for Java. When strings are extracted from the ResStringPool, they are converted to UTF-16 and the result is cached for subsequent calls. When using aapt to package, add in the "-8" switch to pack the resources using UTF-8. This will result in the value, key, and type strings as well as the compiled XML string values taking significantly less space in the final application package in most scenarios. Change-Id: I129483f8b3d3b1c5869dced05cb525e494a6c83a
* Make it an error to use a bare apostrophe in aapt, and adjust warnings/errors.Eric Fischer2009-09-011-1/+6
| | | | | | | | | | | | | | | | | | In practice, no one ever writes an apostrophe in an aapt string with the intent of using it to quote whitespace -- they always mean to include a literal apostrophe in the string and then are surprised when they find the apostrophe missing. Make this an error so that it is discovered right away instead of waiting until late in QA or after the strings have already been sent for translation. (And fix a recently-introduced string that has exactly this problem.) Silence the warning about an empty span in a string, since this seems to annoy people instead of finding any real problems. Make the error about having a translated string with no base string into a warning, since this is a big pain when making changes to an application that has already had some translations done, and the dead translations should be removed by a later translation import anyway.
* Format aapt warnings the same way as other compiler warningsMarco Nelissen2009-07-131-1/+1
| | | | ('warning: ' instead of 'WARNING: ' or 'WARNING ')
* Implement compatibility support for WRITE_SDCARD permission.Dianne Hackborn2009-05-151-0/+61
| | | | | | | | | | | Now old applications will automatically be granted it. Also renamed it from SDCARD_WRITE to WRITE_SDCARD to be consistent with our other permissions, and re-arranged how we do targetSdkVersion to actually be usuable for this kind of stuff. Note that right now this results in basically all apps being given the WRITE_SDCARD permission, because their targetSdkVersion is not set. I will be dealing with that in a future change.
* AI 147028: Fix up aapt so it runs cleanly under the valgrind leak checker.Marco Nelissen2009-04-201-0/+1
| | | | Automated import of CL 147028
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+1295
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-1295/+0
|
* auto import from //branches/cupcake/...@130745The Android Open Source Project2009-02-101-2/+2
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-7/+23
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+1279