1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Projucer: Add analytics

This commit is contained in:
ed 2018-03-15 11:11:42 +00:00
parent 47af78fe0b
commit 711e75bdc8
28 changed files with 772 additions and 25 deletions

View file

@ -666,7 +666,14 @@ static void newExporterMenuCallback (int result, ProjectContentComponent* comp)
auto exporterName= ProjectExporter::getExporterNames() [result - 1];
if (exporterName.isNotEmpty())
{
p->addNewExporter (exporterName);
StringPairArray data;
data.set ("label", exporterName);
Analytics::getInstance()->logEvent ("Exporter Added", data, ProjucerAnalyticsEvent::projectEvent);
}
}
}
}
@ -1164,6 +1171,11 @@ void ProjectContentComponent::setBuildEnabled (bool isEnabled, bool displayError
LiveBuildProjectSettings::setBuildDisabled (*project, ! isEnabled);
killChildProcess();
refreshTabsIfBuildStatusChanged();
StringPairArray data;
data.set ("label", isEnabled ? "Enabled" : "Disabled");
Analytics::getInstance()->logEvent ("Live-Build", data, ProjucerAnalyticsEvent::projectEvent);
}
}
@ -1187,6 +1199,11 @@ void ProjectContentComponent::handleCrash (const String& message)
setBuildEnabled (false, true);
showBuildTab();
}
StringPairArray data;
data.set ("label", "Crash");
Analytics::getInstance()->logEvent ("Live-Build", data, ProjucerAnalyticsEvent::projectEvent);
}
bool ProjectContentComponent::isBuildEnabled() const