package edu.berkeley.eecs.emission.cordova.settings;

import org.apache.cordova.*;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import android.content.Context;
import edu.berkeley.eecs.emission.cordova.connectionsettings.ConnectionSettings;

public class ConnectionSettingsPlugin extends CordovaPlugin {
    @Override
    public boolean execute(String action, JSONArray data, CallbackContext callbackContext) throws JSONException {
        if (action.equals("getSettings")) {
            Context ctxt = cordova.getActivity();
            JSONObject retObject = new JSONObject();
            retObject.put("connectURL", ConnectionSettings.getConnectURL(ctxt));
            retObject.put("isSkipAuth", ConnectionSettings.isSkipAuth(ctxt));
            retObject.put("googleWebAppClientID", ConnectionSettings.getGoogleWebAppClientID(ctxt));
            callbackContext.success(retObject);
            return true;
        } else {
            return false;
        }
    }
}


package edu.berkeley.eecs.emission.cordova.connectionsettings;

import org.apache.cordova.*;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import android.content.Context;
import edu.berkeley.eecs.emission.cordova.connectionsettings.ConnectionSettings;

public class ConnectionSettingsPlugin extends CordovaPlugin {
    @Override
    public boolean execute(String action, JSONArray data, CallbackContext callbackContext) throws JSONException {
        if (action.equals("getSettings")) {
            Context ctxt = cordova.getActivity();
            JSONObject retObject = new JSONObject();
            retObject.put("connectURL", ConnectionSettings.getConnectURL(ctxt));
            retObject.put("isSkipAuth", ConnectionSettings.isSkipAuth(ctxt));
            retObject.put("googleWebAppClientID", ConnectionSettings.getGoogleWebAppClientID(ctxt));
            callbackContext.success(retObject);
            return true;
        } else {
            return false;
        }
    }
}


Fix package name