summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorLeith Bade <leith@mapbox.com>2015-02-06 21:37:07 +1100
committerLeith Bade <leith@mapbox.com>2015-02-10 19:33:22 -0800
commit8f416ee2d50b218a7c41d89d42de32a3e81129f7 (patch)
treeeb9711e10c766a85c2fe3825d44ca02c91f3fb97 /platform
parent276a88c6a9598991a1aae246be2b27b69e84d3e0 (diff)
downloadqtlocation-mapboxgl-8f416ee2d50b218a7c41d89d42de32a3e81129f7.tar.gz
Add assetRoot for Android
Diffstat (limited to 'platform')
-rw-r--r--platform/android/asset_root.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/platform/android/asset_root.cpp b/platform/android/asset_root.cpp
new file mode 100644
index 0000000000..4069211f61
--- /dev/null
+++ b/platform/android/asset_root.cpp
@@ -0,0 +1,16 @@
+#include <mbgl/platform/platform.hpp>
+#include <mbgl/android/jni.hpp>
+
+#include <uv.h>
+#include <libgen.h>
+
+namespace mbgl {
+namespace platform {
+
+// Returns the path to the root folder of the application.
+const std::string &assetRoot() {
+ return mbgl::android::apkPath;
+}
+
+}
+}