Ryszard Wiśniewski
9fd97ca9a5
ResStringValue: added support for strings which require formatted="false".
2011-05-10 17:13:54 +02:00
Ryszard Wiśniewski
99882396b9
ResScalarValue +serializeExtraXmlAttrs() .
2011-05-10 17:12:27 +02:00
Ryszard Wiśniewski
0f251a0fd9
ResXmlEncoders::encodeAsXmlValue() : properly encode strings with styles and new lines.
2011-05-10 16:58:32 +02:00
Ryszard Wiśniewski
28831eda06
Moved ResValuesXmlSerializable to brut.androlib.res.xml package.
2011-05-09 11:25:45 +02:00
Ryszard Wiśniewski
e23bf8e70d
Added ResXmlEncoders class and use it instead of encoding methods in AndrolibResources.
2011-05-09 11:23:16 +02:00
Ryszard Wiśniewski
30add278d5
ResScalarValue::encodeAsResXml*() : use raw value if there is one.
2011-05-09 11:19:00 +02:00
Ryszard Wiśniewski
31274e73dc
ResXmlEncodable: splitted toResXmlFormat() into 2 methods: encodeAsResXmlAttr() and encodeAsResXmlValue().
2011-05-09 11:17:50 +02:00
Ryszard Wiśniewski
b3866d034d
ResAttr::convertToResXmlFormat() : now it returns null if it can't convert a value.
...
Since now this method was calling toResXmlFormat() on an unconvertable value and was always returning a string. But because of that calling object couldn't know, whether returned value is converted one or not.
2011-05-09 11:07:00 +02:00
Ryszard Wiśniewski
fc814c50d8
Removed some unused or obsolete imports and "implements" declarations.
2011-05-09 10:56:45 +02:00
Ryszard Wiśniewski
70834e2342
ResStringValue: use mRawValue instead of mValue.
2011-05-09 10:49:22 +02:00
Ryszard Wiśniewski
b0ad7517b7
ResValueFactory::factory() : decode TYPE_STRING values.
2011-05-09 10:46:52 +02:00
Ryszard Wiśniewski
5740064cee
Extract and store raw value of ResScalarValue.
...
Many attr values in axml files store their raw string value. Now it's extracted, so any ResScalarValue could make some use of it.
2011-05-09 10:41:29 +02:00
Ryszard Wiśniewski
7d4edce7ee
brut.androlib.res.data.value.ResXmlPrintable -> brut.androlib.res.xml.ResXmlEncodable .
2011-05-09 10:16:20 +02:00
Ryszard Wiśniewski
e3b53d4f04
ResXmlSerializable -> ResValuesXmlSerializable, serializeToXml() -> serializeToResValuesXml().
2011-05-07 20:08:41 +02:00
Ryszard Wiśniewski
945430d5aa
Added support for -xlarge and -xhdpi qualifiers.
2011-05-03 20:21:23 +02:00
Ryszard Wiśniewski
102597ef4c
Escape unicode chars in XML files.
2011-05-03 16:59:40 +02:00
Ryszard Wiśniewski
501a92d733
AndrolibResources +isPrintableChar()
2011-05-03 16:59:40 +02:00
Ryszard Wiśniewski
2ac33fd5e7
Sort framework ids before storing them in apktool.yml .
...
aapt command requires your to include frameworks in order.
2011-05-03 13:12:28 +02:00
Ryszard Wiśniewski
6c051148b5
AXmlResourceParser::getAttributeValue(): do not use raw value for color values.
2011-05-03 05:08:08 +02:00
Ryszard Wiśniewski
fb5115e56d
Escape '"' as '\"' in XML files.
2011-05-03 04:50:54 +02:00
Ryszard Wiśniewski
76d8aa0abc
AXmlResourceParser::getAttributeValue(): do not use raw value for references and styles.
2011-05-03 03:51:51 +02:00
Ryszard Wiśniewski
855f664d40
Disabled escaping of XML attr values.
...
They're already escaped in AXML files.
2011-05-03 03:32:41 +02:00
Ryszard Wiśniewski
90f789ff01
ExtXmlSerializer: added possibility to disable escaping of attr values.
2011-05-03 03:31:52 +02:00
Ryszard Wiśniewski
018c40b72a
Changed encoding of generated XML files from UTF-8 to utf-8.
...
It's more consistent with Android SDK, because android command creates projects with "utf-8".
2011-05-03 01:11:49 +02:00
Ryszard Wiśniewski
e4acfb34a2
Do not decode res-references as <item />.
...
So now they're decoded as e.g. <string name="test">@android:string/ok</string> instead of <item type="string" name="test">@android:string/ok</item>.
2011-05-02 03:35:03 +02:00
Ryszard Wiśniewski
e1f3ab852a
Add new line at the end of decoded XML file.
2011-05-02 01:50:26 +02:00
Ryszard Wiśniewski
26cdc8299a
Added ExtXmlSerializer interface.
2011-05-02 01:44:34 +02:00
Ryszard Wiśniewski
b11d41aefb
XmlPullStreamDecoder: do not close streams after decode.
...
They're passed to XmlPullStreamDecoder, so should be managed by calling object.
2011-05-02 00:36:35 +02:00
Ryszard Wiśniewski
f05f264182
ResConfigFlags: added zero-padding of MCC qualifiers.
...
MCC must be 3-digits long. Official documentation does not specify that, but aapt throws errors if you create e.g. values-mcc1 dir.
2011-05-01 19:08:01 +02:00
adrian
253a95c98d
minor: input file might not exist.
2011-04-26 02:09:36 +02:00
adrian
74ecd31a4d
I get a null pointer exception if this isn't a resource.
2011-04-26 02:09:36 +02:00
Ryszard Wiśniewski
a3ff517cc0
Prefixed lib and cli dir names with apktool- .
2011-01-18 01:55:38 +01:00