1
0
Fork 0

Suppress warning in LeanplumMetricsService to fix release builds

master
Christian Sadilek 2019-08-08 14:53:05 -04:00
parent e1f0c9f48b
commit e26570054a
1 changed files with 4 additions and 0 deletions

View File

@ -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 ?: ""
}
}