Add plugin with variables

How to add a plugin without using sections <vs:feature />. I need to add some plugins that, by adding them, request variables. If I use the cordova add plugin, how can I then refer to the plugin in the application?

It drives me crazy, seems appropriate for the site and makes everything unusable.

I keep getting the error:

Error   17  Variable(s) missing: APP_ID, APP_NAME   F:\Development\sdfsdfsd\sdfdsfi\EXEC    1   1   sdfsdfsd
Error   18  The command ""C:\Users\Tom.AD\AppData\Roaming\npm\node_modules\vs-mda\vs-cli" prepare --platform Android --configuration Release --projectDir . --projectName "sdffds" --language "en-US"" exited with code 8.  C:\Users\Tom.AD\AppData\Roaming\npm\node_modules\vs-mda-targets\Microsoft.MDA.targets   182 5   sdfdsff

I tried adding the following to config.xml

 <preference name="APP_ID" value="ssssss" />
  <preference name="APP_NAME" value="ssssss" />

and

<vs:feature>
      https://github.com/Wizcorp/phonegap-facebook-plugin.git
      <preference name="APP_ID" value="sssss" />
      <preference name="APP_NAME" value="ssss" />
    </vs:feature>

and

<vs:feature>
      https://github.com/Wizcorp/phonegap-facebook-plugin.git
      <params name="APP_ID" value="ssssss" />
      <params name="APP_NAME" value="sssss" />
    </vs:feature
+3
source share
3 answers

The documentation for this plugin covers this here: https://github.com/Wizcorp/phonegap-facebook-plugin/blob/master/platforms/android/README.md

Here is an example of them:

cordova -d plugin add /Users/your/path/here/phonegap-facebook-plugin --variable APP_ID="123456789" --variable APP_NAME="myApplication"
+4
source

MSDN

  • zip github
  • /plugiuns (, )
  • edit plugin.xml:

    <preference name="APP_ID"> and <preference name="APP_NAME">

    <params name="APP_ID" value="ssssss" />
       <params name="APP_NAME" value="sssss" />

0

For VS2015RC try this

 <vs:plugin name="cc.fovea.cordova.purchase" source="npm" version="3.11.0">
   <param name="BILLING_KEY" value="CONSTRUCT_YOUR"/>
</vs:plugin>

OR

<vs:plugin name="cc.fovea.cordova.purchase" version="3.11.0" />

change \ fetch.json plugins like this

{
"cc.fovea.cordova.purchase": {
      "source": {
        "type": "git",
        "url": "https://github.com/j3k0/cordova-plugin-purchase.git",
        "subdir": "."
      },
       "variables": {
            "BILLING_KEY": "CONSTRUCT_YOUR"
        } 
    }
0
source

Source: https://habr.com/ru/post/1569776/


All Articles