Version.java
760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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;
}
}
}