diff --git a/platform/platform.cpp b/platform/platform.cpp index 2f180fbd9f..74a8330235 100644 --- a/platform/platform.cpp +++ b/platform/platform.cpp @@ -198,11 +198,6 @@ bool Platform::IsDirectory(string const & path) return fileType == FILE_TYPE_DIRECTORY; } -string Platform::DeviceName() const -{ - return OMIM_OS_NAME; -} - // static void Platform::GetFilesRecursively(string const & directory, FilesList & filesList) { diff --git a/platform/platform_android.cpp b/platform/platform_android.cpp index dc19c31d78..368018c49a 100644 --- a/platform/platform_android.cpp +++ b/platform/platform_android.cpp @@ -191,6 +191,11 @@ unique_ptr Platform::GetReader(string const & file, string const & return nullptr; } +string Platform::DeviceName() const +{ + return OMIM_OS_NAME; +} + void Platform::GetFilesByRegExp(string const & directory, string const & regexp, FilesList & res) { if (ZipFileReader::IsZip(directory)) diff --git a/platform/platform_ios.mm b/platform/platform_ios.mm index 9d3f151916..eb5eb3e275 100644 --- a/platform/platform_ios.mm +++ b/platform/platform_ios.mm @@ -143,6 +143,11 @@ string Platform::GetMemoryInfo() const return ss.str(); } +string Platform::DeviceName() const +{ + return OMIM_OS_NAME; +} + void Platform::RunOnGuiThread(base::TaskLoop::Task && task) { ASSERT(m_guiThread, ()); diff --git a/platform/platform_linux.cpp b/platform/platform_linux.cpp index 99f40969e9..c5e0f88b20 100644 --- a/platform/platform_linux.cpp +++ b/platform/platform_linux.cpp @@ -212,6 +212,11 @@ string Platform::UniqueClientId() const return "n0dbus0n0lsb00000000000000000000"; } +string Platform::DeviceName() const +{ + return OMIM_OS_NAME; +} + Platform::EConnectionType Platform::ConnectionStatus() { int socketFd = socket(AF_INET, SOCK_STREAM, 0); diff --git a/platform/platform_mac.mm b/platform/platform_mac.mm index dd82a46a02..2bfcaa1793 100644 --- a/platform/platform_mac.mm +++ b/platform/platform_mac.mm @@ -113,6 +113,11 @@ Platform::Platform() string Platform::UniqueClientId() const { return [Alohalytics installationId].UTF8String; } +string Platform::DeviceName() const +{ + return OMIM_OS_NAME; +} + void Platform::RunOnGuiThread(base::TaskLoop::Task && task) { ASSERT(m_guiThread, ()); diff --git a/platform/platform_qt.cpp b/platform/platform_qt.cpp index b84e5b97d6..a04ff02d69 100644 --- a/platform/platform_qt.cpp +++ b/platform/platform_qt.cpp @@ -23,6 +23,11 @@ unique_ptr Platform::GetReader(string const & file, string const & READER_CHUNK_LOG_SIZE, READER_CHUNK_LOG_COUNT); } +string Platform::DeviceName() const +{ + return OMIM_OS_NAME; +} + bool Platform::GetFileSizeByName(string const & fileName, uint64_t & size) const { try diff --git a/platform/platform_tizen.cpp b/platform/platform_tizen.cpp index f05ea6dbe6..96efd9e269 100644 --- a/platform/platform_tizen.cpp +++ b/platform/platform_tizen.cpp @@ -55,6 +55,11 @@ string Platform::UniqueClientId() const return FromTizenString(pApp->GetAppId()); } +string Platform::DeviceName() const +{ + return OMIM_OS_NAME; +} + void Platform::RunOnGuiThread(TFunctor const & fn) { /// @todo diff --git a/platform/platform_win.cpp b/platform/platform_win.cpp index 1f14201014..d0e8dac596 100644 --- a/platform/platform_win.cpp +++ b/platform/platform_win.cpp @@ -136,6 +136,11 @@ string Platform::UniqueClientId() const return "@TODO"; } +string Platform::DeviceName() const +{ + return OMIM_OS_NAME; +} + void Platform::RunOnGuiThread(TFunctor const & fn) { /// @todo