cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [25/40] git commit: [CB-4430] Add lib-file support to Android
Date Thu, 12 Sep 2013 18:14:53 GMT
[CB-4430] Add lib-file support to Android


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugman/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugman/commit/c5bdcf0e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugman/tree/c5bdcf0e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugman/diff/c5bdcf0e

Branch: refs/heads/ffos
Commit: c5bdcf0eb3b1484973a79fc071fecbf873ae9865
Parents: c2461bc
Author: ignisvulpis <axel@nennker.de>
Authored: Tue Aug 20 16:09:48 2013 +0200
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Wed Sep 4 13:58:51 2013 -0400

----------------------------------------------------------------------
 src/platforms/android.js | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/c5bdcf0e/src/platforms/android.js
----------------------------------------------------------------------
diff --git a/src/platforms/android.js b/src/platforms/android.js
index 7e64d9f..83b2d02 100644
--- a/src/platforms/android.js
+++ b/src/platforms/android.js
@@ -43,5 +43,17 @@ module.exports = {
             var dest = path.join(source_el.attrib['target-dir'], path.basename(source_el.attrib['src']));
             common.deleteJava(project_dir, dest);
         }
+    },
+    "lib-file":{
+        install:function(lib_el, plugin_dir, project_dir) {
+            var src = lib_el.attrib.src;
+            var dest = path.join("libs", path.basename(src));
+            common.copyFile(plugin_dir, src, project_dir, dest);
+        },
+        uninstall:function(lib_el, project_dir) {
+            var src = lib_el.attrib.src;
+            var dest = path.join("libs", path.basename(src));
+            common.removeFile(project_dir, dest);
+        }
     }
 };


Mime
View raw message