Merge pull request #894 from TomHennen/fix883

Fix gradle build from app dir
This commit is contained in:
Tom Hennen 2015-06-18 17:16:19 -04:00
commit a44ad2564b
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()
}