From e26570054ab7f262535f33f40873b9ace719e16d Mon Sep 17 00:00:00 2001 From: Christian Sadilek Date: Thu, 8 Aug 2019 14:53:05 -0400 Subject: [PATCH] Suppress warning in LeanplumMetricsService to fix release builds --- .../fenix/components/metrics/LeanplumMetricsService.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/org/mozilla/fenix/components/metrics/LeanplumMetricsService.kt b/app/src/main/java/org/mozilla/fenix/components/metrics/LeanplumMetricsService.kt index 7b64b7a72..a3d6528b8 100644 --- a/app/src/main/java/org/mozilla/fenix/components/metrics/LeanplumMetricsService.kt +++ b/app/src/main/java/org/mozilla/fenix/components/metrics/LeanplumMetricsService.kt @@ -106,8 +106,12 @@ class LeanplumMetricsService(private val application: Application) : MetricsServ private const val LOGTAG = "LeanplumMetricsService" private val LeanplumId: String + @Suppress("USELESS_ELVIS") + // Debug builds have a null (nullable) LEANPLUM_ID get() = BuildConfig.LEANPLUM_ID ?: "" private val LeanplumToken: String + @Suppress("USELESS_ELVIS") + // Debug builds have a null (nullable) LEANPLUM_TOKEN get() = BuildConfig.LEANPLUM_TOKEN ?: "" } }