From fc9c95ac2e4ef0aecfbf4a92e774a6e54bbc91f7 Mon Sep 17 00:00:00 2001 From: MBuchalik Date: Thu, 5 May 2016 13:21:27 +0200 Subject: [PATCH] Make it possible to select the architecture using a config.xml preference --- platforms/android/architecture.gradle | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/platforms/android/architecture.gradle b/platforms/android/architecture.gradle index 50e7f1b..35c8592 100644 --- a/platforms/android/architecture.gradle +++ b/platforms/android/architecture.gradle @@ -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';