private boolean mVerbose = false;
private boolean mUseCrunchCache = false;
private int mVersionCode = 0;
+ private String mVersionName;
private String mManifest;
private ArrayList<Path> mResources;
private String mAssets;
}
}
+ /**
+ * Sets the value of the "versionName" attribute
+ * @param versionName the value
+ */
+ public void setVersionname(String versionName) {
+ mVersionName = versionName;
+ }
+
public void setDebug(boolean value) {
mDebug = value;
}
task.createArg().setValue(Integer.toString(mVersionCode));
}
+ if ((mVersionName != null) && (mVersionName.length() > 0)) {
+ task.createArg().setValue("--version-name");
+ task.createArg().setValue(mVersionName);
+ }
+
// manifest location
if (mManifest != null) {
task.createArg().setValue("-M");
before, then this will create them with empty values, which are then ignored
by the custom tasks receiving them. -->
<property name="version.code" value="" />
+ <property name="version.name" value="" />
<property name="aapt.resource.filter" value="" />
<property name="filter.abi" value="" />
<aapt executable="${aapt}"
command="package"
versioncode="${version.code}"
+ versionname="${version.name}"
debug="${build.packaging.debug}"
manifest="AndroidManifest.xml"
assets="${asset.absolute.dir}"