summaryrefslogtreecommitdiff
path: root/tools/aapt/Resource.cpp
AgeCommit message (Collapse)Author
2010-01-27am 6efe03b1: am 6f9e2c64: Merge "Find layout classes in all "layout-*" ↵Ying Wang
dirs." into eclair Merge commit '6efe03b19e0734361b262f9a0be4d225088d7f9e' * commit '6efe03b19e0734361b262f9a0be4d225088d7f9e': Find layout classes in all "layout-*" dirs.
2010-01-22am 3c05f1fb: am b5fb50a1: Merge "Add instrumentation as a source tag for ↵Ying Wang
proguard keep options." into eclair Merge commit '3c05f1fbac2ce35483f61dbd5d5bfb6341da6d9c' * commit '3c05f1fbac2ce35483f61dbd5d5bfb6341da6d9c': Add instrumentation as a source tag for proguard keep options.
2010-01-20Find layout classes in all "layout-*" dirs.Ying Wang
Before this CL, the generated keep flags for layout classes are incomplete, such as layout classes in res/layout-port/ and res/layout-land and so on.
2010-01-13Add instrumentation as a source tag for proguard keep options.Ying Wang
2010-01-12am b4f41119: am a1d08886: Merge "Only output proguard keep for nonempty ↵Ying Wang
attribute name in the AndroidManifest.xml." into eclair Merge commit 'b4f41119044e5ec7f7b76ed4ac02b5cfbaeb474d' * commit 'b4f41119044e5ec7f7b76ed4ac02b5cfbaeb474d': Only output proguard keep for nonempty attribute name in the AndroidManifest.xml.
2010-01-12Only output proguard keep for nonempty attribute name in the ↵Ying Wang
AndroidManifest.xml. Before this change, aapt generates proguard keep flags like "-keep class com.android.somepackage.", which proguard doesn't recognize.
2009-12-10Default to UTF8 resources when packaging with aaptKenny Root
This change makes it so with API level 7 and above all resources will be packaged in UTF-8 format. Any minSdkVersion level that is named will also have resources packaged in UTF-8, because it is assumed that previous releases will only be rebuilt with their proper integer number and only future releases will temporarily have names. Change-Id: If5d1ee5e48fbaf31798816b068ac44b14a93121b
2009-12-07Optional use of UTF-8 strings in resource bundlesKenny Root
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
2009-11-03doc change: fix broken R.styleable formatting (caused by missing periods). ↵Dirk Dougherty
Adjust table markup. Bug: 2230588 Change-Id: I54545dfd9d26acef567e586cfc916f6b883a4de7
2009-08-31Fix replacement-after-add of resource files in overlay.Robert Greenwalt
Aapt was adding/removing elements from a list an continuing to use a stale copy for future indexes. This could cause incorrect subsequent processing. Add an en resource and modify an es, for example. Adding the en would cause the base fileset's es version to be moved in the list. Using the old index we'd then attempt to remove the old es version with the wrong index and then add the new es version generating a "duplicate file" error. bug: 2090015
2009-08-30applications are at level 2Joe Onorato
2009-08-30Add a flag (-G) to aapt to have it output the classes that shouldn't be ↵Joe Onorato
obfuscated by ProGuard.
2009-08-24I am getting tired of the java doc warnings, so fix them.Dianne Hackborn
Change-Id: I2205eebae419eaf4a0992c9f5b7cd807eb843fe1
2009-08-17aapt now attempts to process all assets even if some are malformed.Daniel Sandler
Previously aapt would bail out on the first broken image, making it difficult to compile a comprehensive list of broken images. Now it will pre- and post-process all of them and report any and all errors (before exiting with an error code if any errors were encountered). Bug: 2055485
2009-08-15Fix aapt to be able to add configs from overlays.Dianne Hackborn
Fixes a bug where any new configurations introduced in an overlay would be half-way ignored (enough to result in a broken .apk).
2009-08-13Allow overlays to add resources.Dianne Hackborn
2009-07-13Format aapt warnings the same way as other compiler warningsMarco Nelissen
('warning: ' instead of 'WARNING: ' or 'WARNING ')
2009-06-08am fa5c7e1d: Catch when a file resource (non values) added in an overlay.Robert Greenwalt
Merge commit 'fa5c7e1dfede7e26260789dd2de5175497e9659b' * commit 'fa5c7e1dfede7e26260789dd2de5175497e9659b': Catch when a file resource (non values) added in an overlay.
2009-06-08Catch when a file resource (non values) added in an overlay.Robert Greenwalt
File resources are assigned resource id's and if an overlay adds one it renumbers things and breaks compatability. Used to segfault if you tried before, but now catches it and lets you know what file caused the problem.
2009-05-15Implement compatibility support for WRITE_SDCARD permission.Dianne Hackborn
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.
2009-05-15Implement compatibility support for WRITE_SDCARD permission.Dianne Hackborn
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.
2009-04-20AI 147028: Fix up aapt so it runs cleanly under the valgrind leak checker.Marco Nelissen
Automated import of CL 147028
2009-03-03auto import from //depot/cupcake/@135843The Android Open Source Project
2009-03-03auto import from //depot/cupcake/@135843The Android Open Source Project
2009-01-15auto import from //branches/cupcake/...@126645The Android Open Source Project
2008-12-17Code drop from //branches/cupcake/...@124589The Android Open Source Project
2008-10-21Initial ContributionThe Android Open Source Project