[
https://issues.apache.org/jira/browse/CB-10284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15085513#comment-15085513
]
Vladimir Kotikov commented on CB-10284:
---------------------------------------
Unfortunately, still no repro. Here is my steps:
1. create a new blank application
2. modify www/index.html, add the following script element: {{<script
type="text/javascript" src="http://code.jquery.com/jquery-1.11.3.js"
id="jquery"></script>}}
ensure that config.xml has an {{<access origin="*" />}} tag
3. add platform, plugin and run the app: {{cordova platform add [email protected]
&& cordova plugin add [email protected] && cordova run android
--device}}
4. attach Chrome inspector to running app to see if the external script was
loaded
I tried this on three cordova versions: 5.3.3, 5.4.0 and current master
version. In all three cases, jquery was loaded successfully and there was no
error messages in console apart from some spam, posted by whitelist plugin.
Regarding ??I think every plugin making use of the `munge` feature now break.
Or maybe I'm missing something??? - To understand if the munge has been applied
properly you can check your application's config.xml after build - in case of
whitelist plugin the following snippet should be added to your
{{platofms/android/res/xml/config.xml}} file:
{code:title=plugin.xml}
<feature name="Whitelist">
<param name="android-package"
value="org.apache.cordova.whitelist.WhitelistPlugin" />
<param name="onload" value="true" />
</feature>
{code}
> Adding plugins seems to be totally broken on Cordova 5.4.0 and 5.4.1
> --------------------------------------------------------------------
>
> Key: CB-10284
> URL: https://issues.apache.org/jira/browse/CB-10284
> Project: Apache Cordova
> Issue Type: Bug
> Components: CordovaLib
> Affects Versions: 5.4.0, 5.4.1
> Environment: Mac OS X 10.10.5
> Reporter: Sebastien
> Assignee: Vladimir Kotikov
> Priority: Minor
> Labels: triaged
>
> Using Cordova CLI 5.3.3, try creating a new project and then adding the
> Android platform and the whitelist plugin (using `$ cordova plugin add
> [email protected]`). Then open the _plugins/android.json_ file,
> its content is:
> {code:javascript|title=plugins/android.json}
> {
> "prepare_queue": {
> "installed": [],
> "uninstalled": []
> },
> "config_munge": {
> "files": {
> "res/xml/config.xml": {
> "parents": {
> "/*": [
> {
> "xml": "<feature name=\"Whitelist\"><param
> name=\"android-package\"
> value=\"org.apache.cordova.whitelist.WhitelistPlugin\" /><param
> name=\"onload\" value=\"true\" /></feature>",
> "count": 1
> }
> ]
> }
> }
> }
> },
> "installed_plugins": {
> "cordova-plugin-whitelist": {
> "PACKAGE_NAME": "com.my-app.dev"
> }
> },
> "dependent_plugins": {}
> }
> {code}
> Now start another project using Cordova CLI 5.4.0 or 5.4.1 and do the same
> exact thing. The file content is:
> {code:javascript|title=plugins/android.json}
> {
> "prepare_queue": {
> "installed": [],
> "uninstalled": []
> },
> "config_munge": {
> "files": {}
> },
> "installed_plugins": {
> "cordova-plugin-whitelist": {
> "PACKAGE_NAME": "com.my-app.dev"
> }
> },
> "dependent_plugins": {}
> }
> {code}
> Notice that `config_munge.files` is empty. This is a major regression as
> plugins using this feature don't work at all sometimes even preventing the
> `deviceready` event to be triggered.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]