Send repo revision.

This commit is contained in:
Roman Telezhynskyi 2023-06-29 17:54:54 +03:00
parent 003a17a06d
commit 791aa22050
4 changed files with 4 additions and 1 deletions

View File

@ -455,6 +455,7 @@ void VPApplication::InitOptions()
statistic->SetGUILanguage(settings->GetLocale());
statistic->SetMeasurementId(GA_MEASUREMENT_ID);
statistic->SetApiSecret(GA_API_SECRET);
statistic->SetRepoRevision(QLatin1String(BUILD_REVISION));
statistic->Enable(settings->IsCollectStatistic());
}

View File

@ -499,6 +499,7 @@ void MApplication::InitOptions()
statistic->SetGUILanguage(settings->GetLocale());
statistic->SetMeasurementId(GA_MEASUREMENT_ID);
statistic->SetApiSecret(GA_API_SECRET);
statistic->SetRepoRevision(QLatin1String(BUILD_REVISION));
statistic->Enable(settings->IsCollectStatistic());
}

View File

@ -720,6 +720,7 @@ void VApplication::InitOptions()
statistic->SetGUILanguage(settings->GetLocale());
statistic->SetMeasurementId(GA_MEASUREMENT_ID);
statistic->SetApiSecret(GA_API_SECRET);
statistic->SetRepoRevision(QLatin1String(BUILD_REVISION));
statistic->Enable(settings->IsCollectStatistic());
}

View File

@ -84,7 +84,7 @@ auto VGAnalytics::LogLevel() const -> enum VGAnalytics::LogLevel { return d->m_l
//---------------------------------------------------------------------------------------------------------------------
void VGAnalytics::SetRepoRevision(const QString &rev)
{
d->m_repoRevision = rev;
d->m_repoRevision = !rev.isEmpty() ? rev : QStringLiteral("Unknown");
}
//---------------------------------------------------------------------------------------------------------------------