diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2012-07-09 07:48:02 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:40:42 +0300 |
commit | dd6baaa78e212776881e75630a933a04ceab4931 (patch) | |
tree | 7dc00b9b0eec996c942ddf6c62efa67522e573c9 | |
parent | 07c17e4eea564c314cc48f58aebd6c463745a8b7 (diff) |
using separate MetaServer for mandatory resources for better user experience.
-rw-r--r-- | android/jni/com/mapswithme/maps/DownloadResourcesActivity.cpp | 2 | ||||
-rw-r--r-- | platform/platform.cpp | 5 | ||||
-rw-r--r-- | platform/platform.hpp | 1 |
3 files changed, 7 insertions, 1 deletions
diff --git a/android/jni/com/mapswithme/maps/DownloadResourcesActivity.cpp b/android/jni/com/mapswithme/maps/DownloadResourcesActivity.cpp index 712f588010..f0880389db 100644 --- a/android/jni/com/mapswithme/maps/DownloadResourcesActivity.cpp +++ b/android/jni/com/mapswithme/maps/DownloadResourcesActivity.cpp @@ -226,7 +226,7 @@ extern "C" CallbackT onProgress(bind(&DownloadFileProgress, jni::make_global_ref(observer), _1)); g_currentRequest.reset(downloader::HttpRequest::PostJson( - GetPlatform().MetaServerUrl(), curFile.m_fileName, + GetPlatform().ResourcesMetaServerUrl(), curFile.m_fileName, bind(&DownloadURLListFinished, _1, onFinish, onProgress))); return ERR_FILE_IN_PROGRESS; diff --git a/platform/platform.cpp b/platform/platform.cpp index ab5bf9fd8c..2ba8d9386e 100644 --- a/platform/platform.cpp +++ b/platform/platform.cpp @@ -31,6 +31,11 @@ string Platform::HashUniqueID(string const & s) return base64::encode(xoredHash); } +string Platform::ResourcesMetaServerUrl() const +{ + return "http://active.resources.servers.url"; +} + string Platform::MetaServerUrl() const { return "http://active.servers.url"; diff --git a/platform/platform.hpp b/platform/platform.hpp index c3b20abfbe..d14acc2595 100644 --- a/platform/platform.hpp +++ b/platform/platform.hpp @@ -123,6 +123,7 @@ public: /// @return url for clients to download maps string MetaServerUrl() const; + string ResourcesMetaServerUrl() const; /// @return JSON-encoded list of urls if metaserver is unreachable string DefaultUrlsJSON() const; |