1
0
Fork 0

Issue #6898: Allow empty adjust token for fennecNightly builds.

master
Sebastian Kaspari 2020-01-10 13:52:27 +01:00 committed by Grisha Kruglov
parent 47c13136f7
commit 1f5bfff025
1 changed files with 3 additions and 2 deletions

View File

@ -13,14 +13,15 @@ import com.adjust.sdk.AdjustConfig
import com.adjust.sdk.LogLevel
import org.mozilla.fenix.BuildConfig
import org.mozilla.fenix.Config
import org.mozilla.fenix.ReleaseChannel
import org.mozilla.fenix.ext.settings
class AdjustMetricsService(private val application: Application) : MetricsService {
override fun start() {
if ((BuildConfig.ADJUST_TOKEN.isNullOrEmpty())) {
if ((BuildConfig.ADJUST_TOKEN.isNullOrBlank())) {
Log.i(LOGTAG, "No adjust token defined")
if (Config.channel.isReleased) {
if (Config.channel.isReleased && Config.channel != ReleaseChannel.FennecNightly) {
throw IllegalStateException("No adjust token defined for release build")
}