[android] Simplify structure for native files
This commit is contained in:
15
platform/android/src/asset_root.cpp
Normal file
15
platform/android/src/asset_root.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#include <mbgl/platform/platform.hpp>
|
||||
#include "jni.hpp"
|
||||
|
||||
#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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user