package com.jianzhi_inc.dandelion.android;

import android.util.Log;
import org.apache.cordova.CallbackContext;
import org.apache.cordova.CordovaPlugin;
import org.json.JSONException;

/**
 *
 * Created by Sam on 9/7/15.
 */
public class CuManager extends CordovaPlugin {

    static String TAG = "JzCU";


    @Override
    public boolean execute(String action, String rawArgs, CallbackContext callbackContext) throws JSONException {

        Log.e(TAG, "action called " + action);
        if("checkUpdate".equals(action)) {
            return true;
        } else return false;
        //return super.execute(action, rawArgs, callbackContext);
    }
}

@@ -146,16 +146,43 @@
 Plugin;%0A
+import org.json.JSONArray;%0A
 import o
@@ -383,22 +383,25 @@
 action, 
-String
+JSONArray
  rawArgs
@@ -518,83 +518,8 @@
     
-if(%22checkUpdate%22.equals(action)) %7B%0A            return true;%0A        %7D else 
 retu

change JzCU.js