2017-12-05 20:58:48 +00:00
|
|
|
#include "brightray/common/application_info.h"
|
|
|
|
|
|
|
|
namespace brightray {
|
|
|
|
|
|
|
|
namespace {
|
|
|
|
|
2018-02-20 16:16:51 +00:00
|
|
|
std::string g_overridden_application_name;
|
|
|
|
std::string g_overridden_application_version;
|
2017-12-05 20:58:48 +00:00
|
|
|
|
2018-03-12 00:33:06 +00:00
|
|
|
} // namespace
|
2017-12-05 20:58:48 +00:00
|
|
|
|
2018-03-12 00:33:06 +00:00
|
|
|
// name
|
2017-12-05 20:58:48 +00:00
|
|
|
void OverrideApplicationName(const std::string& name) {
|
2018-02-20 16:16:51 +00:00
|
|
|
g_overridden_application_name = name;
|
2017-12-05 20:58:48 +00:00
|
|
|
}
|
2018-02-20 16:16:51 +00:00
|
|
|
std::string GetOverriddenApplicationName() {
|
|
|
|
return g_overridden_application_name;
|
|
|
|
}
|
|
|
|
|
2018-03-12 00:33:06 +00:00
|
|
|
// version
|
2018-02-20 16:16:51 +00:00
|
|
|
void OverrideApplicationVersion(const std::string& version) {
|
|
|
|
g_overridden_application_version = version;
|
|
|
|
}
|
|
|
|
std::string GetOverriddenApplicationVersion() {
|
|
|
|
return g_overridden_application_version;
|
2017-12-05 20:58:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace brightray
|