cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CB-11645) cordova-android@5.2.2 doesn't install plugins on <= cordova@6.3.0
Date Sat, 30 Jul 2016 00:52:20 GMT


ASF GitHub Bot commented on CB-11645:

Github user riknoll commented on the issue:
    The only other consideration I can think of off the top of my head is that the edit-config
stuff also made changes to the android.json (and other equivalent platform files) for edit-config
support. They aren't breaking changes as far as I know because I don't think the information
that is saved for the old config-file tag was altered (@ktop to confirm).
    I believe the `PluginInfo` object is the only thing used in the platform API that has
changed. It might be worth someone else taking a look at the APIs that changed and where they
get used, though.
    To avoid subtle breaks like this in the future, we should probably better delineate what
objects are part of the platform API and what are not. The `PluginInfo` object gets used all
over and it isn't immediately obvious that altering it could cause effects like this (especially
when using it in other files in the same repo).

> cordova-android@5.2.2 doesn't install plugins on <= cordova@6.3.0
> -----------------------------------------------------------------
>                 Key: CB-11645
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaCommon
>            Reporter: Steve Gill
> Trying to add cordova-android@5.2.2 or master using cordova@6.2.0 will give the following
error when installing the whitelist plugin
> `Failed to install 'cordova-plugin-whitelist':TypeError: pluginInfo.getEditConfigs is
not a function
>     at PlatformMunger.add_plugin_changes (/Users/steveng/repo/cordova/tests/myapp/platforms/android/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:134:42)
>     at /Users/steveng/repo/cordova/tests/myapp/platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:126:25
>     at _fulfilled (/Users/steveng/repo/cordova/tests/myapp/platforms/android/cordova/node_modules/q/q.js:834:54)
>     at self.promiseDispatch.done (/Users/steveng/repo/cordova/tests/myapp/platforms/android/cordova/node_modules/q/q.js:863:30)
>     at Promise.promise.promiseDispatch (/Users/steveng/repo/cordova/tests/myapp/platforms/android/cordova/node_modules/q/q.js:796:13)
>     at /Users/steveng/repo/cordova/tests/myapp/platforms/android/cordova/node_modules/q/q.js:857:14
>     at runSingle (/Users/steveng/repo/cordova/tests/myapp/platforms/android/cordova/node_modules/q/q.js:137:13)
>     at flush (/Users/steveng/repo/cordova/tests/myapp/platforms/android/cordova/node_modules/q/q.js:125:13)
>     at _combinedTickCallback (internal/process/next_tick.js:67:7)
>     at process._tickCallback (internal/process/next_tick.js:98:9)
> Failed to restore plugin "cordova-plugin-whitelist" from config.xml. You might need to
try adding it again. Error: TypeError: pluginInfo.getEditConfigs is not a function```

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message