This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class App : Application() { | |
var mainProcess = false | |
var metricaProcess = false | |
override fun onCreate() { | |
val processName = ProcessUtil.getProcessName(this) | |
mainProcess = processName==packageName | |
metricaProcess = processName.contains(":AppMetrica") || processName.contains(":Metrica") | |
if (!metricaProcess) { // you do not need to initialise anything manually inside the Metrica process |