hooks/lib/utilities.js
function(platform) {

        var platformConfigPath = path.join("..", "..", "..", platform + ".json");

        var platformConfig = require(platformConfigPath);

        var pluginId = this.getPluginId();

        var apiKey = platformConfig.installed_plugins[pluginId].FABRIC_API_KEY;
        var apiSecret = platformConfig.installed_plugins[pluginId].FABRIC_API_SECRET;

        var config = {
            apiKey: apiKey,
            apiSecret: apiSecret
        };

        return config;
    }
function(platform) {

        var platformConfigPath = path.join("..", "..", "..", platform + ".json");

        var platformConfig = require(platformConfigPath);

        var pluginId = this.getPluginId();

        var apiKey = platformConfig.installed_plugins[pluginId].FABRIC_API_KEY;
        var apiSecret = platformConfig.installed_plugins[pluginId].FABRIC_API_SECRET;

        var config = {
            apiKey: apiKey,
            apiSecret: apiSecret
        };

        return config;
    }
function ( platform ) { var platformConfigPath = path . join ( ".." , ".." , ".." , platform + ".json" ) ; var platformConfig = require ( platformConfigPath ) ; var pluginId = this . getPluginId ( ) ; var apiKey = platformConfig . installed_plugins [ pluginId ] . FABRIC_API_KEY ; var apiSecret = platformConfig . installed_plugins [ pluginId ] . FABRIC_API_SECRET ; var config = { apiKey : apiKey , apiSecret : apiSecret } ; return config ; }
Used to get the plugin configuration for the given platform.

The plugin configuration object will have the API and secret keys
for the Fabric.io service that were specified when the plugin
was installed.

This configuration is obtained from, where "ios" is the platform name:
platforms/ios/ios.json

@param {string} platform - The platform to get plugin configuration for, either "ios" or "android".
@returns {string} The path to the platform's plugin JSON configuration file.
Used to get the plugin configuration for the given platform .