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

Commit

Permalink
🐧 Issue #512: Generated .gradle file invalid, parseInt takes wrong ar…
Browse files Browse the repository at this point in the history
…gument
  • Loading branch information
macdonst committed Aug 14, 2017
1 parent f0a8664 commit a0d8ac4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/android/barcodescanner.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
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 ) {
if (cdvMinSdkVersion == null || Integer.parseInt('' + cdvMinSdkVersion) < minSdk ) {
ext.cdvMinSdkVersion = minSdk;
}

Expand All @@ -21,4 +21,4 @@ android {
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
}
}
}

1 comment on commit a0d8ac4

@innogolf
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i still having the error when building on android.

Please sign in to comment.