Index: build/android/ant/chromium-apk.xml |
diff --git a/build/android/ant/chromium-apk.xml b/build/android/ant/chromium-apk.xml |
index d295dc94840abf26e4ba9a623543e2fce649f17c..2dece8fea05725fde8bbe749983cf498d1eea67a 100644 |
--- a/build/android/ant/chromium-apk.xml |
+++ b/build/android/ant/chromium-apk.xml |
@@ -40,8 +40,15 @@ |
<property-value name="version.code" value="${APP_MANIFEST_VERSION_CODE}"/> |
<property-value name="version.name" value="${APP_MANIFEST_VERSION_NAME}"/> |
- <property name="proguard.config" value="${PROGUARD_FLAGS}"/> |
- <property name="proguard.enabled" value="${PROGUARD_ENABLED}"/> |
+ <!-- |
+ We use the PROGUARD_ENABLED flag for enabling proguard. By default proguard is enabled for |
+ Release builds if proguard.config is set. Setting proguard.config even to an empty string will |
+ enable proguard. Set this property only when we have explicitly enabled proguard. |
+ --> |
+ <condition property="proguard.config" |
+ value="${PROGUARD_FLAGS}"> |
Yaron
2012/10/12 00:49:11
I think this fits on the line above.
|
+ <istrue value="${PROGUARD_ENABLED}"/> |
+ </condition> |
<!-- TODO(shashishekhar): Enable emma and code-coverage filters. --> |
<condition property="asset.absolute.dir" |