You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/02/29 11:47:18 UTC
[jira] [Commented] (CB-10708) `cordova prepare` breaks plugins
added by plugman
[ https://issues.apache.org/jira/browse/CB-10708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15171732#comment-15171732 ]
ASF GitHub Bot commented on CB-10708:
-------------------------------------
GitHub user vladimir-kotikov opened a pull request:
https://github.com/apache/cordova-lib/pull/403
CB-10708 Install/uninstall plugins correctly into CLI project using plugman
JIRA: https://issues.apache.org/jira/browse/CB-10708
This forces plugman to install plugin's www files to `platform_www` directory instead of `www` (see also https://github.com/apache/cordova-lib/pull/360 for background) when cordova CLI project detected. This allows to install plugins for each platform separately.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/MSOpenTech/cordova-lib CB-10708
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cordova-lib/pull/403.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #403
----
commit 8f15136e8892ee7f6d93b0249d2d0e9b26f9eb94
Author: Vladimir Kotikov <v-...@microsoft.com>
Date: 2016-02-27T12:29:08Z
CB-10708 Install/uninstall plugins correctly into CLI project using plugman
----
> `cordova prepare` breaks plugins added by plugman
> -------------------------------------------------
>
> Key: CB-10708
> URL: https://issues.apache.org/jira/browse/CB-10708
> Project: Apache Cordova
> Issue Type: Bug
> Components: CordovaLib, Plugman
> Affects Versions: 6.0.0
> Environment: osx
> plugman --version
> 1.1.0
> cordova --version
> 6.0.0
> Reporter: Istvan Tabanyi
> Assignee: Vladimir Kotikov
> Labels: cordova-6.0.0, plugman
>
> Steps to reproduce:
> cordova platform add android
> plugman install --project platforms/android --platform android --plugin cordova-plugin-device
> stat platforms/android/assets/www/cordova_plugins.js
> [at this point everything is fine]
> cordova prepare android
> stat platforms/android/assets/www/cordova_plugins.js
> stat: platforms/android/assets/www/cordova_plugins.js: stat: No such file or directory
> plugman install --project platforms/android --platform android --plugin cordova-plugin-device
> Plugin "cordova-plugin-device" already installed on android.
> [At this point you can build your application, but won't have any plugins in it]
> How can someone overcome this situation? I want some plugins installed for specific platforms only and I don't want to fork existing plugins only to remove <android> section from plugin.xml
> plugman --version
> 1.1.0
> cordova --version
> 6.0.0
> cordova platform ls
> Installed platforms: android 5.1.0
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org