cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject [11/19] git commit: CB-5407: Update android JS to use FS urls
Date Fri, 13 Dec 2013 16:18:53 GMT
CB-5407: Update android JS to use FS urls


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/commit/225c9059
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/225c9059
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/225c9059

Branch: refs/heads/dev
Commit: 225c9059b5c7bab65e5228ec78103293f3c25157
Parents: cd7d925
Author: Ian Clelland <iclelland@chromium.org>
Authored: Wed Dec 11 10:48:42 2013 -0500
Committer: Ian Clelland <iclelland@chromium.org>
Committed: Fri Dec 13 11:00:09 2013 -0500

----------------------------------------------------------------------
 www/android/FileSystem.js | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/225c9059/www/android/FileSystem.js
----------------------------------------------------------------------
diff --git a/www/android/FileSystem.js b/www/android/FileSystem.js
new file mode 100644
index 0000000..2017e29
--- /dev/null
+++ b/www/android/FileSystem.js
@@ -0,0 +1,27 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
+module.exports = {
+    __format__: function(fullPath) {
+        return 'filesystem://localhost/'+this.name+(fullPath[0]==='/'?'':'/')+encodeURI(fullPath);
+    }
+};
+


Mime
View raw message