Skip to content
Snippets Groups Projects
Commit 5edf41c7 authored by Matthew Finkel's avatar Matthew Finkel
Browse files

Bug 40019: Adjust is disabled on Release when data collection is disabled

parent ba988490
Branches
No related tags found
2 merge requests!39Bug 40050 01,!37Draft: Bug 40050 00
......@@ -22,7 +22,7 @@ class AdjustMetricsService(private val application: Application) : MetricsServic
if ((BuildConfig.ADJUST_TOKEN.isNullOrBlank())) {
Log.i(LOGTAG, "No adjust token defined")
if (Config.channel.isReleased) {
if (Config.channel.isReleased && !BuildConfig.DATA_COLLECTION_DISABLED) {
throw IllegalStateException("No adjust token defined for release build")
}
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment