[fenix] Issue https://github.com/mozilla-mobile/fenix/issues/6898: Allow empty adjust token for fennecNightly builds.

pull/600/head
Sebastian Kaspari 5 years ago committed by Grisha Kruglov
parent 769492ada1
commit 9f5568a60a

@ -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")
}

Loading…
Cancel
Save