From b61598d3f86a735fcbc6f77f3c0507ff5f1e40d3 Mon Sep 17 00:00:00 2001 From: Kimmo Koskinen Date: Tue, 7 Jun 2016 22:50:39 +0300 Subject: [PATCH] Use 0 when CIRCLE_BUILD_NUM environment variable isn't present --- RoihuApp/android/app/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RoihuApp/android/app/build.gradle b/RoihuApp/android/app/build.gradle index 095f021..d1b6953 100644 --- a/RoihuApp/android/app/build.gradle +++ b/RoihuApp/android/app/build.gradle @@ -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" }