From 27b574d5488fddb314ded4904362298923b2047d Mon Sep 17 00:00:00 2001 From: Christian Sadilek Date: Thu, 8 Aug 2019 14:53:05 -0400 Subject: [PATCH] [fenix] 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 7b64b7a729..a3d6528b82 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 ?: "" } }