mirror of
https://github.com/MBuchalik/cordova-build-architecture.git
synced 2026-08-06 00:02:12 +08:00
Make it possible to select the architecture using a config.xml preference
This commit is contained in:
@@ -1 +1,13 @@
|
||||
def getArchitecturePreference() {
|
||||
def architecture = 'arm';
|
||||
def file = file("res/xml/config.xml").getText()
|
||||
def xml = new XmlParser(false, false).parseText(xml)
|
||||
|
||||
xml.preference.each { it ->
|
||||
if(it.attribute("name").toLowerCase == 'buildarchitecture')
|
||||
architecture = it.attribute("value")
|
||||
}
|
||||
|
||||
return architecture;
|
||||
}
|
||||
ext.cdvBuildArch = 'arm';
|
||||
|
||||
Reference in New Issue
Block a user