Version.java 760 Bytes
package com.hhmedic.android.sdk.config;

import android.text.TextUtils;

import java.io.Serializable;

public final class Version implements Serializable
{

    private static String APP_VERSION = HHConfig.getSdkVersion();


    public static String getVersion()
    {
        if (TextUtils.isEmpty(APP_VERSION))
        {
            APP_VERSION = HHConfig.getSdkVersion();
        }

        return APP_VERSION;
    }



    public static void setCommonV(String v)
    {

        if (TextUtils.isEmpty(v))
        {
            return;
        }

        if ((TextUtils.equals("3001", HHConfig.getPid()) || TextUtils.equals("3010", HHConfig.getPid()) || TextUtils.equals("3011", HHConfig.getPid())))
        {
            APP_VERSION = v;
        }
    }

}