Fix gradle build from app dir

Fixes AntennaPod/AntennaPod#883
This commit is contained in:
Tom Hennen 2015-06-18 17:14:13 -04:00
parent d21dd1b9af
commit 499fd1c6f2
1 changed files with 2 additions and 2 deletions

View File

@ -29,14 +29,14 @@ dependencies {
def getMyVersionName() {
def parsedManifestXml = (new XmlSlurper())
.parse('app/src/main/AndroidManifest.xml')
.parse("${projectDir}/src/main/AndroidManifest.xml")
.declareNamespace(android:"http://schemas.android.com/apk/res/android")
return parsedManifestXml.'@android:versionName'
}
def getMyVersionCode() {
def parsedManifestXml = (new XmlSlurper())
.parse('app/src/main/AndroidManifest.xml')
.parse("${projectDir}/src/main/AndroidManifest.xml")
.declareNamespace(android:"http://schemas.android.com/apk/res/android")
return parsedManifestXml.'@android:versionCode'.toInteger()
}