diff options
author | Leith Bade <leith@leithalweapon.geek.nz> | 2014-11-08 12:49:46 +1100 |
---|---|---|
committer | Leith Bade <leith@leithalweapon.geek.nz> | 2014-11-08 12:49:46 +1100 |
commit | c0bcd1e2601d8edd6dd8d346e3874a83e2ddae0c (patch) | |
tree | 52515b69f6d1c4d5c3753d49d4af8d4aa429cfc4 /platform/android | |
parent | 9e81ab5228f793bb1fca11565e907cbaa2441db4 (diff) | |
download | qtlocation-mapboxgl-c0bcd1e2601d8edd6dd8d346e3874a83e2ddae0c.tar.gz |
Add cache path variable from Java
Use cache path for db location
Add Assetbridge to extract asset files to cache path
Fix SSL by using extracted ca bundle
Use file:// style URL using extracted styles
Diffstat (limited to 'platform/android')
-rw-r--r-- | platform/android/cache_database_data.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/android/cache_database_data.cpp b/platform/android/cache_database_data.cpp index e1765efcdc..61c4efc15b 100644 --- a/platform/android/cache_database_data.cpp +++ b/platform/android/cache_database_data.cpp @@ -1,4 +1,5 @@ #include <mbgl/platform/platform.hpp> +#include "../../android/cpp/NativeMapView.hpp" namespace mbgl { namespace platform { @@ -6,7 +7,7 @@ namespace platform { // Returns the path to the default cache database on this system. std::string defaultCacheDatabase() { // TODO need to use get cache dir from java - return "/data/data/com.mapbox.mapboxgl.app/mbgl-cache.db"; + return mbgl::android::cache_path + "/mbgl-cache.db"; } } |