Skip to content

Commit

Permalink
Closes mozilla-mobile#312 - Disable telemetry on dev builds
Browse files Browse the repository at this point in the history
  • Loading branch information
liuche authored and mcomella committed Jan 12, 2018
1 parent 01bbd30 commit 173addb
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import org.mozilla.focus.BuildConfig
import org.mozilla.focus.R
import org.mozilla.focus.search.SearchEngineManager
import org.mozilla.focus.session.SessionManager
import org.mozilla.focus.utils.AppConstants
import org.mozilla.focus.widget.InlineAutocompleteEditText.AutocompleteResult
import org.mozilla.telemetry.Telemetry
import org.mozilla.telemetry.TelemetryHolder
Expand All @@ -39,8 +40,8 @@ object TelemetryWrapper {
private const val MAXIMUM_CUSTOM_TAB_EXTRAS = 10

private val isEnabledByDefault: Boolean
// Telemetry is enabled by default for Focus video
get() = true
// Telemetry is enabled by default for Focus video except for dev builds
get() = !AppConstants.isDevBuild()

private object Category {
val ACTION = "action"
Expand Down

0 comments on commit 173addb

Please sign in to comment.