mirror of
https://github.com/libretro/RetroArch
synced 2025-03-18 13:20:57 +00:00
Merge pull request #11823 from farmerbb/patch-1
Android: use project directory path when parsing manifest
This commit is contained in:
commit
55e730915c
@ -149,7 +149,7 @@ if(dynamicFeatures.exists()) {
|
||||
apply from: "dynamic_features.gradle"
|
||||
}
|
||||
|
||||
static int getPlayStoreVersionCode() {
|
||||
int getPlayStoreVersionCode() {
|
||||
def baseVersion = getManifestAttribute("versionCode").toInteger()
|
||||
def baseTime = 1609632000
|
||||
def halfWeek = 302400
|
||||
@ -158,13 +158,13 @@ static int getPlayStoreVersionCode() {
|
||||
return baseVersion + increment
|
||||
}
|
||||
|
||||
static String getPlayStoreVersionName() {
|
||||
String getPlayStoreVersionName() {
|
||||
def versionName = getManifestAttribute("versionName")
|
||||
return "$versionName (${new Date().format("yyyy-MM-dd")})"
|
||||
}
|
||||
|
||||
static String getManifestAttribute(String attribute) {
|
||||
def manifest = new XmlParser().parse("AndroidManifest.xml")
|
||||
String getManifestAttribute(String attribute) {
|
||||
def manifest = new XmlParser().parse("${project.projectDir}/AndroidManifest.xml")
|
||||
return manifest.attributes().find {
|
||||
((String) it.key).contains(attribute)
|
||||
}.value
|
||||
|
Loading…
x
Reference in New Issue
Block a user