mirror of
https://github.com/MBuchalik/cordova-build-architecture.git
synced 2026-04-15 00:00:02 +08:00
Update architecture.gradle
This commit is contained in:
@@ -5,9 +5,12 @@ def getArchitecturePreference() {
|
||||
|
||||
xml.preference.each { it ->
|
||||
if(it.attribute("name").toLowerCase == 'buildarchitecture')
|
||||
architecture = it.attribute("value")
|
||||
if(it.attribute("value") != null)
|
||||
architecture = it.attribute("value")
|
||||
else
|
||||
architecture = it.attribute("default")
|
||||
}
|
||||
|
||||
return architecture;
|
||||
}
|
||||
ext.cdvBuildArch = 'arm';
|
||||
ext.cdvBuildArch = getArchitecturePreference();
|
||||
|
||||
Reference in New Issue
Block a user