Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrachytski <siarhei.rachytski@gmail.com>2012-05-12 20:47:05 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:38:26 +0300
commitd5759f50f559535d5d0485b993cfc858739acedb (patch)
treef9bdf109214155e9b48cd6947ffa80d28165c65e /storage
parente8c348f12a3b6ef835f9331f3e3a3bc128c5fbc1 (diff)
made APK much smaller by downloading required files at program startup.
Diffstat (limited to 'storage')
-rw-r--r--storage/storage.cpp5
-rw-r--r--storage/storage.hpp2
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;
};