You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ti...@apache.org on 2013/06/13 23:47:37 UTC

git commit: Fixed up plugin.xml and included references to some java classes

Updated Branches:
  refs/heads/master 47b607737 -> 1e6162e0e


Fixed up plugin.xml and included references to some java classes


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/1e6162e0
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/1e6162e0
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/1e6162e0

Branch: refs/heads/master
Commit: 1e6162e0e7bcc2f4b50a592ab1385465e0774e37
Parents: 47b6077
Author: Tim Kim <ti...@adobe.com>
Authored: Thu Jun 13 14:46:15 2013 -0700
Committer: Tim Kim <ti...@adobe.com>
Committed: Thu Jun 13 14:47:27 2013 -0700

----------------------------------------------------------------------
 plugin.xml                 | 6 +++---
 src/android/FileUtils.java | 2 ++
 2 files changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/1e6162e0/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index bfeea43..2798943 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -76,15 +76,15 @@ id="org.apache.cordova.core.FileUtils"
                                            
     <!-- android -->
     <platform name="android">
-        <config-file target="res/xml/config.xml" parent="/cordova/plugins">
+        <config-file target="config.xml" parent="/*">
             <plugin name="File" value="org.apache.cordova.core.FileUtils"/>
         </config-file>
 
         <config-file target="AndroidManifest.xml" parent="/*">
             <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
         </config-file>
-        
-        <source-file src="FileUtils.java" target-dir="org/apache/cordova/core" />
+
+        <source-file src="src/android/FileUtils.java" target-dir="src/org/apache/cordova/core" />
     </platform>
     
     <!-- ios -->

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/1e6162e0/src/android/FileUtils.java
----------------------------------------------------------------------
diff --git a/src/android/FileUtils.java b/src/android/FileUtils.java
index 5850881..3de1932 100755
--- a/src/android/FileUtils.java
+++ b/src/android/FileUtils.java
@@ -28,6 +28,8 @@ import android.util.Log;
 import org.apache.cordova.api.CallbackContext;
 import org.apache.cordova.api.CordovaPlugin;
 import org.apache.cordova.api.PluginResult;
+import org.apache.cordova.DirectoryManager;
+import org.apache.cordova.FileHelper;
 import org.apache.cordova.file.EncodingException;
 import org.apache.cordova.file.FileExistsException;
 import org.apache.cordova.file.InvalidModificationException;