From 431b2f90611d58ad9986c4c3191a2161e07cd424 Mon Sep 17 00:00:00 2001 From: Zane Schepke Date: Sat, 27 Jul 2024 07:59:55 -0400 Subject: [PATCH] fix: nightly grep --- app/build.gradle.kts | 4 +--- buildSrc/src/main/kotlin/Constants.kt | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 01bc679e..4ed7c8db 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -1,5 +1,3 @@ -import java.util.Properties - plugins { alias(libs.plugins.android.application) alias(libs.plugins.kotlin.android) @@ -186,7 +184,7 @@ dependencies { } fun versionCode() : Int { - return if(!isNightlyBuild()) Constants.VERSION_CODE else Constants.VERSION_CODE + Constants.NIGHTLY_VERSION_CODE + return if(!isNightlyBuild()) Constants.VERSION_CODE else Constants.VERSION_CODE + Constants.NIGHTLY_CODE } fun versionName() : String { diff --git a/buildSrc/src/main/kotlin/Constants.kt b/buildSrc/src/main/kotlin/Constants.kt index bf4cb106..9555fea5 100644 --- a/buildSrc/src/main/kotlin/Constants.kt +++ b/buildSrc/src/main/kotlin/Constants.kt @@ -16,5 +16,5 @@ object Constants { const val DEBUG = "debug" const val TYPE = "type" - const val NIGHTLY_VERSION_CODE = 42 + const val NIGHTLY_CODE = 42 }