mirror of
https://github.com/MBuchalik/cordova-build-architecture.git
synced 2026-04-15 00:00:02 +08:00
Update architecture.gradle for PGB 7.0.1
This commit is contained in:
@@ -1,17 +1,16 @@
|
||||
def getArchitecturePreference() {
|
||||
def architecture = 'arm';
|
||||
def file = file("res/xml/config.xml").getText()
|
||||
def file = file('res/xml/config.xml').getText()
|
||||
def xml = new XmlParser(false, false).parseText(file)
|
||||
|
||||
|
||||
xml.preference.each { it ->
|
||||
def name = it.attribute("name")
|
||||
def name = it.attribute('name')
|
||||
if(name && name.toLowerCase() == 'buildarchitecture')
|
||||
if(it.attribute("value") != null)
|
||||
architecture = it.attribute("value")
|
||||
else
|
||||
architecture = it.attribute("default")
|
||||
if(it.attribute('value') != null)
|
||||
architecture = it.attribute('value')
|
||||
}
|
||||
|
||||
|
||||
return architecture;
|
||||
}
|
||||
ext.cdvBuildArch = getArchitecturePreference();
|
||||
ext.cdvBuildMultipleApks = true;
|
||||
|
||||
Reference in New Issue
Block a user