Skip to content

Commit

Permalink
Merge pull request phonegap#420 from jcesarmobile/min-sdk-fix
Browse files Browse the repository at this point in the history
Don't set minSdkVersion if another plugin set a greater value
  • Loading branch information
macdonst authored Feb 28, 2017
2 parents 49db409 + fd12c80 commit 3219941
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/android/barcodescanner.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
cdvMinSdkVersion = Math.max(15, cdvHelpers.getConfigPreference('android-minSdkVersion', 0) as Integer)
def DEFAULT_MIN_SDK_VERSION = 15
def minSdk = Math.max(DEFAULT_MIN_SDK_VERSION, cdvHelpers.getConfigPreference('android-minSdkVersion',0) as Integer);
if (cdvMinSdkVersion == null || Integer.parseInt(cdvMinSdkVersion) < minSdk ) {
ext.cdvMinSdkVersion = minSdk;
}

repositories{
jcenter()
Expand Down

0 comments on commit 3219941

Please sign in to comment.