diff --git a/src/android/barcodescanner.gradle b/src/android/barcodescanner.gradle index ff2b44d0..b5a8e398 100644 --- a/src/android/barcodescanner.gradle +++ b/src/android/barcodescanner.gradle @@ -1,4 +1,10 @@ -ext.cdvMinSdkVersion = 15 +def minSdkVersion = 15 + +if(cdvMinSdkVersion == null) { + ext.cdvMinSdkVersion = minSdkVersion; +} else if (cdvMinSdkVersion.toInteger() < minSdkVersion) { + ext.cdvMinSdkVersion = minSdkVersion; +} repositories{ jcenter()