summaryrefslogtreecommitdiffstats
path: root/tools/aapt/ResourceTable.h
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Dedupe resource config pointers"Kenny Root2010-03-101-19/+0
| | | | This reverts commit 7b467d8b44c00d14590c021928b6a9ad5a36348e.
* Dedupe resource config pointersKenny Root2010-03-091-0/+19
| | | | | | | | | When there are two configs in a StringPool that would match a string ID only keep the more generic entry to save some space. This means that if you have both "es" and "es_US" translations that have the same translation, the string entry would be removed from the "es_US" config. Change-Id: I4d619942d35ddb477e2eabe4437b7f02697c24de
* Add ability for some manifest attributes to reference resources.Dianne Hackborn2010-03-091-0/+6
| | | | | | | | | | | This loosens our restriction on many manifest attributes requiring literal string values, to allow various ones to use values from resources. This is only allowed if the resource value does not change from configuration changes, and the restriction is still in place for attributes that are core to security (requesting permissions) or market operation (used libraries and features etc). Change-Id: I4da02f6a5196cb6a7dbcff9ac25403904c42c2c8
* Add --auto-add-overlay option to aapt.Xavier Ducrohet2010-02-041-1/+2
| | | | | | | This option allows resources only present in overlays to be added automatically instead of being declared through <add-resource> Change-Id: Iff782311056f6a045193e57d204f7d3413e11b26
* Optional use of UTF-8 strings in resource bundlesKenny Root2009-12-071-0/+1
| | | | | | | | | | | | | | | 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
* Allow overlays to add resources.Dianne Hackborn2009-08-131-1/+9
|
* Make aapt Error out when an overlay adds a string.Robert Greenwalt2009-06-091-1/+3
| | | | | | | | Final added check (I think) for 1585775 - not letting overlays add resources. modified: ResourceTable.cpp modified: ResourceTable.h
* Add per-named-item overlay ability in res xml.Robert Greenwalt2009-06-051-0/+1
| | | | | | | | | | | | | | Fixes 1899451. Also errors out if you add a bag via an overlay (which would renumber resources). Note that you can still add elements within the bag as they are not issued resource IDs. So for example you can now modify the framework themes.xml file without copying the entire file. All bag types are now modifable except non-named bag types (how would you address which element to replace?): array string_array integer_array
* Implement compatibility support for WRITE_SDCARD permission.Dianne Hackborn2009-05-151-0/+7
| | | | | | | | | | | 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 144342: Fix bag (string-array,etc) behavior with overlays.Robert Greenwalt2009-04-021-1/+3
| | | | | | | | | | | | We used to replace elements in the default with elements from the overlay. This change causes us to empty the array first so if the overlay array is smaller we don't end up with elements from the default array showing through at the end of the array. Ex: [A,B,C] and overlay [D] should give [D] but used to give [D,B,C]. BUG=1754390 Automated import of CL 144342
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+534
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-534/+0
|
* auto import from //branches/cupcake/...@126645The Android Open Source Project2009-01-151-2/+5
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-3/+14
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+520