package com.yeshi.fanli.util;
|
|
public class VersionUtil {
|
|
public static boolean greaterThan_1_5_40(String platform, String versionCode) {
|
if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 40))
|
|| (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 49)))
|
return true;
|
else
|
return false;
|
}
|
|
|
public static boolean smallerThan_1_5_1(String platform, String versionCode) {
|
if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) < 36))
|
|| (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) < 44)))
|
return true;
|
else
|
return false;
|
}
|
|
}
|