diff --git a/platforms/android/xwalk.gradle b/platforms/android/xwalk.gradle
index 008cb55..1b36b67 100644
--- a/platforms/android/xwalk.gradle
+++ b/platforms/android/xwalk.gradle
@@ -29,13 +29,6 @@ repositories {
}
}
-if (cdvBuildMultipleApks == null) {
- ext.cdvBuildMultipleApks = true
-}
-if (cdvMinSdkVersion == null) {
- ext.cdvMinSdkVersion = 14
-}
-
def getConfigPreference(name) {
name = name.toLowerCase()
def xml = file("res/xml/config.xml").getText()
@@ -56,6 +49,14 @@ def getConfigPreference(name) {
return ret ? ret : defaultValue
}
+if (cdvBuildMultipleApks == null) {
+ ext.cdvBuildMultipleApks = getConfigPreference("xwalkMultipleApk").toBoolean();
+}
+if (cdvMinSdkVersion == null) {
+ def minSdk = getConfigPreference("android-minSdkVersion");
+ ext.cdvMinSdkVersion = minSdk && minSdk.toInteger() > 14 ? minSdk : 14;
+}
+
if (!project.hasProperty('xwalkMode')) {
def mode = getConfigPreference("xwalkMode")
println mode
diff --git a/plugin.xml b/plugin.xml
index a822fe7..1038c3e 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -23,6 +23,7 @@
+