Add assetRoot for Android

This commit is contained in:
Leith Bade
2015-02-06 21:37:07 +11:00
parent 276a88c6a9
commit 8f416ee2d5
2 changed files with 17 additions and 0 deletions

View File

@@ -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;
}
}
}