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:
authorAlex Zolotarev <deathbaba@gmail.com>2011-11-11 14:51:13 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:27:37 +0300
commitbc4c535f73d788ab57e1fd38761d8068c1e3beb2 (patch)
tree1d598258fd30f4735f8318285703b095e34959e0 /android/jni/com/mapswithme/platform/Platform.cpp
parent2e0192debafc3ae08c0846da0fe29fadd5583cc2 (diff)
[android] Removed unused code, fixed compile error
Diffstat (limited to 'android/jni/com/mapswithme/platform/Platform.cpp')
-rw-r--r--android/jni/com/mapswithme/platform/Platform.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/android/jni/com/mapswithme/platform/Platform.cpp b/android/jni/com/mapswithme/platform/Platform.cpp
new file mode 100644
index 0000000000..4b79a3e622
--- /dev/null
+++ b/android/jni/com/mapswithme/platform/Platform.cpp
@@ -0,0 +1,27 @@
+#include "Platform.hpp"
+
+#include "../core/jni_string.hpp"
+
+#include "../../../../../base/logging.hpp"
+
+namespace android
+{
+ void Platform::Initialize(JNIEnv * env, jstring apkPath, jstring storagePath)
+ {
+ m_resourcesDir = jni::ToString(env, apkPath);
+ m_writableDir = jni::ToString(env, storagePath);
+ LOG(LDEBUG, ("Apk path = ", m_resourcesDir));
+ LOG(LDEBUG, ("Writable path = ", m_writableDir));
+ }
+
+ Platform & Platform::Instance()
+ {
+ static Platform platform;
+ return platform;
+ }
+}
+
+Platform & GetPlatform()
+{
+ return android::Platform::Instance();
+}