Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
only set cdvMinSdkVersion if not set or smaller then 15. Fixes #275
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Geese committed Aug 30, 2016
1 parent 97a2991 commit 5513f5c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/android/barcodescanner.gradle
Original file line number Diff line number Diff line change
@@ -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()
Expand Down

0 comments on commit 5513f5c

Please sign in to comment.