ripple-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brentlint...@apache.org
Subject [1/4] incubator-ripple git commit: FIX added missing cordova 3.0 action File.requestAllPaths
Date Sun, 16 Nov 2014 19:26:50 GMT
Repository: incubator-ripple
Updated Branches:
  refs/heads/master cd50e4932 -> fbde6415b


FIX added missing cordova 3.0 action File.requestAllPaths


Project: http://git-wip-us.apache.org/repos/asf/incubator-ripple/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ripple/commit/dc87bdf1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ripple/tree/dc87bdf1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ripple/diff/dc87bdf1

Branch: refs/heads/master
Commit: dc87bdf1a76e1081df46891e68fd87014ea8a94c
Parents: 2e208dc
Author: simon <simon.thiel@gmx.de>
Authored: Mon Jun 23 14:31:39 2014 +0200
Committer: simon <simon.thiel@gmx.de>
Committed: Mon Jun 23 14:31:39 2014 +0200

----------------------------------------------------------------------
 lib/client/platform/cordova/2.0.0/bridge/file.js | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/dc87bdf1/lib/client/platform/cordova/2.0.0/bridge/file.js
----------------------------------------------------------------------
diff --git a/lib/client/platform/cordova/2.0.0/bridge/file.js b/lib/client/platform/cordova/2.0.0/bridge/file.js
index 0571419..41a6e12 100644
--- a/lib/client/platform/cordova/2.0.0/bridge/file.js
+++ b/lib/client/platform/cordova/2.0.0/bridge/file.js
@@ -49,6 +49,25 @@ module.exports = {
             }, fail);
         }
     },
+
+    requestAllPaths: function(win, fail, args) {
+
+        var ret = {};
+        ret["applicationDirectory"] = "file:///android_asset/";
+        ret["applicationStorageDirectory"] = "file://tmp/ripple/appstore";
+        ret["dataDirectory"] = "file://tmp/ripple/data";
+        ret["cacheDirectory"] = "file://tmp/";
+//        if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {
+//
+//            ret["externalApplicationStorageDirectory"] = toDirUrl(context.getExternalFilesDir(null).getParentFile());
+//            ret["externalDataDirectory"] = toDirUrl(context.getExternalFilesDir(null));
+//            ret["externalCacheDirectory"] = toDirUrl(context.getExternalCacheDir());
+//            ret["externalRootDirectory"] = toDirUrl(Environment.getExternalStorageDirectory());
+//
+//        }
+        win(ret);
+    },
+
     resolveLocalFileSystemURI: function (win, fail, args) {
         var uri = args[0],
             fulluri = fs.root.toURL();


Mime
View raw message