Skip to content

Commit

Permalink
Use 0 when CIRCLE_BUILD_NUM environment variable isn't present
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimmo Koskinen committed Jun 7, 2016
1 parent 60a5543 commit b61598d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RoihuApp/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ android {
applicationId "com.roihuapp"
minSdkVersion 16
targetSdkVersion 22
versionCode env["CIRCLE_BUILD_NUM"].toInteger()
versionName "1.0." + env["CIRCLE_BUILD_NUM"]
versionCode env["CIRCLE_BUILD_NUM"]?.toInteger() ?: 0
versionName "1.0." + (env["CIRCLE_BUILD_NUM"] ?: "0")
ndk {
abiFilters "armeabi-v7a", "x86"
}
Expand Down

0 comments on commit b61598d

Please sign in to comment.