parent
d21dd1b9af
commit
499fd1c6f2
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue