Repository: cordova-lib
Updated Branches:
  refs/heads/master c1598fb48 -> 404cd77e7


CB-10432 Fix plugin installation for newly added platform


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

Branch: refs/heads/master
Commit: 404cd77e7bad501f7f299e53cda52e571e8f5675
Parents: c1598fb
Author: Vladimir Kotikov <[email protected]>
Authored: Tue Jan 26 00:20:49 2016 +0300
Committer: Vladimir Kotikov <[email protected]>
Committed: Tue Jan 26 00:21:54 2016 +0300

----------------------------------------------------------------------
 cordova-lib/src/cordova/platform.js | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/404cd77e/cordova-lib/src/cordova/platform.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/cordova/platform.js 
b/cordova-lib/src/cordova/platform.js
index b6ac05d..7c24824 100644
--- a/cordova-lib/src/cordova/platform.js
+++ b/cordova-lib/src/cordova/platform.js
@@ -634,7 +634,16 @@ function installPluginsForNewPlatform(platform, 
projectRoot, opts) {
             plugin = path.basename(plugin);
 
             var options = {
-                searchpath: opts.searchpath
+                searchpath: opts.searchpath,
+                // Set up platform to install asset files/js modules to 
<platform>/platform_www dir
+                // instead of <platform>/www. This is required since on each 
prepare platform's www dir is changed
+                // and files from 'platform_www' merged into 'www'. Thus we 
need to persist these
+                // files platform_www directory, so they'll be applied to www 
on each prepare.
+
+                // NOTE: there is another code path for plugin installation 
(see CB-10274 and the
+                // related PR: https://github.com/apache/cordova-lib/pull/360) 
so we need to
+                // specify the option below in both places
+                usePlatformWww: true
             };
 
             // Get plugin variables from fetch.json if have any and pass them 
as cli_variables to plugman


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to