From ecda8fb509716ba61e4e86744b02f378a1b902d5 Mon Sep 17 00:00:00 2001 From: Leith Bade Date: Wed, 5 Nov 2014 20:18:01 +1100 Subject: [PATCH] Add temporary cache dir. Need to change to Java call. --- platform/android/cache_database_data.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 platform/android/cache_database_data.cpp diff --git a/platform/android/cache_database_data.cpp b/platform/android/cache_database_data.cpp new file mode 100644 index 000000000..e1765efcd --- /dev/null +++ b/platform/android/cache_database_data.cpp @@ -0,0 +1,13 @@ +#include + +namespace mbgl { +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"; +} + +} +}