GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

Commit bbd791a1 authored by Matthew Finkel's avatar Matthew Finkel Committed by Alex Catarineu
Browse files

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

parent 64d7a5f4
...@@ -22,7 +22,7 @@ class AdjustMetricsService(private val application: Application) : MetricsServic ...@@ -22,7 +22,7 @@ class AdjustMetricsService(private val application: Application) : MetricsServic
if ((BuildConfig.ADJUST_TOKEN.isNullOrBlank())) { if ((BuildConfig.ADJUST_TOKEN.isNullOrBlank())) {
Log.i(LOGTAG, "No adjust token defined") 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") throw IllegalStateException("No adjust token defined for release build")
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment