I'm creating a Cordova plugin for an SDK that requires loading a pod with a custom podspec url with an api key in the url.


<podspec>

   <config>

        <source url="https://github.com/CocoaPods/Specs.git"/>

   </config>

   <pods use-frameworks="true">

        <pod name="Pod" options=":podspec => 'https://sdksite/<API_KEY>/podspec/latest.podspec'" />

   </pods>

</podspec>


Is there a way to replace <API_KEY> with a preference variable?


Thanks in advance.


Solution

Toto wrote:

Hi,

Maybe you can use this ?

https://success.outsystems.com/Documentation/11/Managing_the_Applications_Lifecycle/Deploy_Applications/Override_the_Default_Mobile_Extensibility_Configurations


I solved this with a hook that modifies the Podfile that is generated, before installing the plugin.

Solution