private boolean needsUpdate(Long bundleVersion,String beanVersion){
  if (beanVersion.contains("OAD")) {
    Log.i(TAG,"Bundle version: " + bundleVersion);
    Log.i(TAG,"Bean version: " + beanVersion);
    return true;
  }
 else {
    try {
      long parsedVersion=Long.parseLong(beanVersion.split(" ")[0]);
      Log.i(TAG,"Bundle version: " + bundleVersion);
      Log.i(TAG,"Bean version: " + parsedVersion);
      if (bundleVersion > parsedVersion) {
        return true;
      }
 else {
        Log.i(TAG,"No update required!");
      }
    }
 catch (    NumberFormatException e) {
      Log.e(TAG,"Couldn't parse Bean Version: " + beanVersion);
      fail(BeanError.UNPARSABLE_FW_VERSION);
    }
  }
  return false;
}

private boolean needsUpdate ( Long bundleVersion , String beanVersion ) { if ( beanVersion . contains ( "OAD" ) ) { Log . i ( TAG , "Bundle version: " + bundleVersion ) ; Log . i ( TAG , "Bean version: " + beanVersion ) ; return true ; } else { try { long parsedVersion = Long . parseLong ( beanVersion . split ( " " ) [ 0 ] ) ; Log . i ( TAG , "Bundle version: " + bundleVersion ) ; Log . i ( TAG , "Bean version: " + parsedVersion ) ; if ( bundleVersion > parsedVersion ) { return true ; } else { Log . i ( TAG , "No update required!" ) ; } } catch ( NumberFormatException e ) { Log . e ( TAG , "Couldn't parse Bean Version: " + beanVersion ) ; fail ( BeanError . UNPARSABLE_FW_VERSION ) ; } } return false ; }
helper function to determine whether a bean needs a fw update given a specific bundle version
