You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "cocoapods" elements in the plugin.xml for the ios platform now allows you to modify the generation of the Podfile to include additional pods and sources.
This feature would be another config element "<plugin>" within the "<podspec>" element. It would need to support a "name" attribute and an "options" attribute similar to the "options" attribute of the "<pod>" element. Since every plugin could have their own custom options, there is no use in supporting specific options. Just a generic options attribute should be fine.
I think this would be incredibly tedious to author.. especially if there are several options involves or several values that needs to be set. Instead I think we should probably favour a more declarative approach and have a parser/reader build out the podfile string.
I don't really know enough about pods to suggest something that could be powerful enough to handle wide range of options, but given the :<optionName> => [ values...] syntax, it could look something like this:
<podspec>
<plugins>
<pluginname="myPluginName">
<optionname="sources">
<!-- If pods supports different data types, then we could use more explicit tags like <string> or <number>, etc.-->
<value>my_source</value>
<value>my_other_source</value>
</option>
</plugin>
<pluginname="myOtherPlugin" />
</plugins>
</podspec>
I've made an assumption that option values are comma delimited strings, and I assume if there were more than one option, then they will be comma delimited as well, but the above would be a more declarative approach to handling the options so that you don't need to escape or make use of HTML entities for quotations or other potentially conflicting symbols, what do you think?
Feature Request
The "cocoapods" elements in the plugin.xml for the ios platform now allows you to modify the generation of the Podfile to include additional pods and sources.
However there is an element of the Podfile specification that is not supported by the current configuration: plugins
https://guides.cocoapods.org/syntax/podfile.html#plugin
This is necessary if your Pod is hosted by Artifactory as you need to use the cocoapods-art plugin to make the pod available to the build.
https://github.com/jfrog/cocoapods-art
This feature would be another config element "<plugin>" within the "<podspec>" element. It would need to support a "name" attribute and an "options" attribute similar to the "options" attribute of the "<pod>" element. Since every plugin could have their own custom options, there is no use in supporting specific options. Just a generic options attribute should be fine.
So for example
Would generate:
The text was updated successfully, but these errors were encountered: