(pluginVersions)
| 773 | } |
| 774 | |
| 775 | ensurePinnedPluginVersions(pluginVersions) { |
| 776 | assert(pluginVersions); |
| 777 | |
| 778 | _.each(pluginVersions, (version, id) => { |
| 779 | // Skip plugin specs that are not actual versions |
| 780 | if (utils.isUrlWithSha(version) || utils.isUrlWithFileScheme(version)) { |
| 781 | return; |
| 782 | } |
| 783 | |
| 784 | const pinnedVersion = pinnedPluginVersions[id]; |
| 785 | |
| 786 | if (pinnedVersion && semver.lt(version, pinnedVersion)) { |
| 787 | Console.labelWarn(`Attempting to install plugin ${id}@${version}, but \ |
| 788 | it should have a minimum version of ${pinnedVersion} to ensure compatibility \ |
| 789 | with the current platform versions. Installing the minimum version for \ |
| 790 | convenience, but you should adjust your dependencies.`); |
| 791 | pluginVersions[id] = pinnedVersion; |
| 792 | } |
| 793 | }); |
| 794 | } |
| 795 | |
| 796 | // Cordova commands support |
| 797 |
no test coverage detected