Thanks @jcesarmobile . This proposal introduces new tag `podspec` and its children in `plugin.xml` as https://github.com/cordova-develop/cordova-discuss/blob/ios-cocoapod-improvement/proposals/ios-cocoapods-improvement.md .
(I don't plan to introduce `pod_install` scripts there now) In order to develop this feature, I will improve `PluginInfo.js` in `cordova-common`, and `API.js`, `pluginHandlers.js`, `Podfile.js` and `PodsJson.js` in `cordova-ios`. For example, I plan to introduce new methods 1. `getPodSpecs` in `PluginInfo.js` to parse new tags. (similar to method `getSourceFiles`, but rather complicated due to the structure of `podspec` tag) 2. `addDeclaration` and `addSource` in `Podfile.js`. (similar to method `addSpec`) => `source` means URL of CocoaPods podspec repogitry. => `declaration` means CocoaPods statement `use_frameworks!` or `inhibit_all_warnings!` in `Podfile`. 3. `removeDeclaration` and `removeSource` in `Podfile.js`. (similar to method `removeSpec`) 4. `__updateFormatIfNecessary` in `PodsJson.js`, this is private method, which upgrade `pods.json` file in order to record `sources` and `declarations` I will improve `addPlugin` and `removePlugin` methods in `Api.js` to apply new tags setting to `pods.json` and `Podfile`. [ Full content available at: https://github.com/apache/cordova-discuss/pull/108 ] This message was relayed via gitbox.apache.org for [email protected]
