|
|
@ -11,7 +11,6 @@ import kotlinx.coroutines.CoroutineScope
|
|
|
|
import kotlinx.coroutines.Dispatchers
|
|
|
|
import kotlinx.coroutines.Dispatchers
|
|
|
|
import kotlinx.coroutines.launch
|
|
|
|
import kotlinx.coroutines.launch
|
|
|
|
import mozilla.components.support.base.log.logger.Logger
|
|
|
|
import mozilla.components.support.base.log.logger.Logger
|
|
|
|
import org.mozilla.fenix.GleanMetrics.Activation
|
|
|
|
|
|
|
|
import org.mozilla.fenix.GleanMetrics.Installation
|
|
|
|
import org.mozilla.fenix.GleanMetrics.Installation
|
|
|
|
import org.mozilla.fenix.GleanMetrics.Pings
|
|
|
|
import org.mozilla.fenix.GleanMetrics.Pings
|
|
|
|
import org.mozilla.fenix.ext.settings
|
|
|
|
import org.mozilla.fenix.ext.settings
|
|
|
@ -66,7 +65,7 @@ class InstallationPing(private val context: Context) {
|
|
|
|
|
|
|
|
|
|
|
|
CoroutineScope(Dispatchers.IO).launch {
|
|
|
|
CoroutineScope(Dispatchers.IO).launch {
|
|
|
|
MetricsUtils.getHashedIdentifier(context)?.let {
|
|
|
|
MetricsUtils.getHashedIdentifier(context)?.let {
|
|
|
|
Activation.identifier.set(it)
|
|
|
|
Installation.identifier.set(it)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Pings.installation.submit()
|
|
|
|
Pings.installation.submit()
|
|
|
|