[skip] add support for versions with no minor tag

This commit is contained in:
Connor Tumbleson 2015-04-19 11:02:02 -05:00
parent d76d7d8f11
commit 7f3e18e291

View File

@ -39,8 +39,12 @@ if (!('release' in gradle.startParameter.taskNames)) {
} }
} else { } else {
project.ext.set("hash", "") project.ext.set("hash", "")
project.ext.set("apktool_version", apktoolversion_major + "-" + apktoolversion_minor); if (apktoolversion_minor.length() > 0) {
println "Building RELEASE (" + getCheckedOutBranch() + "): " + apktoolversion_major + "-" + apktoolversion_minor; project.ext.set("apktool_version", apktoolversion_major + "-" + apktoolversion_minor);
} else {
project.ext.set("apktool_version", apktoolversion_major);
}
println "Building RELEASE (" + getCheckedOutBranch() + "): " + project.ext.apktool_version;
} }
build.doFirst { build.doFirst {