diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2012-05-12 20:47:05 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:38:26 +0300 |
commit | d5759f50f559535d5d0485b993cfc858739acedb (patch) | |
tree | f9bdf109214155e9b48cd6947ffa80d28165c65e /storage | |
parent | e8c348f12a3b6ef835f9331f3e3a3bc128c5fbc1 (diff) |
made APK much smaller by downloading required files at program startup.
Diffstat (limited to 'storage')
-rw-r--r-- | storage/storage.cpp | 5 | ||||
-rw-r--r-- | storage/storage.hpp | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/storage/storage.cpp b/storage/storage.cpp index b418b6dd61..b5b0187341 100644 --- a/storage/storage.cpp +++ b/storage/storage.cpp @@ -461,4 +461,9 @@ namespace storage bind(&Storage::OnMapDownloadFinished, this, _1), bind(&Storage::OnMapDownloadProgress, this, _1))); } + + int64_t Storage::GetCurrentVersion() const + { + return m_currentVersion; + } } diff --git a/storage/storage.hpp b/storage/storage.hpp index 606596a23f..05bd2c604d 100644 --- a/storage/storage.hpp +++ b/storage/storage.hpp @@ -146,6 +146,8 @@ namespace storage void CheckForUpdate(); void NotifyStatusChanhed(TIndex const & index) const; + + int64_t GetCurrentVersion() const; }; |