Software Archive
Read-only legacy content
17061 Discussions

Importing com.phonegap.plugins.facebookconnect as local removes variables

David_B_22
Beginner
372 Views

I have a local copy of com.phonegap.plugins.facebookconnect that I downloaded from github.

It has a change in the code that I need to use.  I added the paramValues in to <PROJECT_NAME>.xdk file as follows in the array of cordovaPlugins:

      {
        "id": "com.phonegap.plugins.facebookconnect",
        "version": "",
        "selectedState": "Included",
        "data": {},
        "paramvals": {
          "APP_ID": "807531449296196",
          "APP_NAME": "Draw me Crazy"
        },
        "dependsOn": [],
        "dependedBy": [],
        "custom": "true",
        "name": "FBCustom",
        "origin": "phonegap-facebook-plugin-master",
        "originType": "local",
        "sourceLocation": ""
      }

However, building the project does not fill in the parameter values required for the plugin any more, even though the build is successful.  The build log shows:

Calling plugman.fetch on plugin ".../cachedPlugins.blCZ5B.tmp/cache.8hc_TT.pl/com.phonegap.plugins.facebookconnect"
Copying plugin ".../cachedPlugins.blCZ5B.tmp/cache.8hc_TT.pl/com.phonegap.plugins.facebookconnect" => ".../<<PROJECT_NAME>/plugins/com.phonegap.plugins.facebookconnect"
Variable(s) missing (use: --variable APP_ID=value --variable APP_NAME=value).

The resulting intel.config.android.xml also has "not.yet.specified" for the params, which have no names either:

<intelxdk:plugin intelxdk:name="FBCustom" intelxdk:value="phonegap-facebook-plugin-master" intelxdk:type="local">
<intelxdk:param intelxdk:value="not.yet.specified"/>
<intelxdk:param intelxdk:value="not.yet.specified"/></intelxdk:plugin>

I'm not sure how to fix this.  Anyone?

0 Kudos
1 Reply
David_B_22
Beginner
372 Views

I think I just fixed this.  Referring to document: https://software.intel.com/en-us/xdk/docs/adding-special-build-options-to-your-xdk-cordova-app-with-the-intelxdk-config-additions-xml-file one of the last sections "Add a third-party plugin, that requires parameters, to all builds:" refers to adding the required params to the intelxdk.config.additions.xml file instead.  I also removed the reference from the .xdk file.

 

 

0 Kudos
Reply