| | |
| | | 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 greaterThan_1_5_50(String platform, String versionCode) {
|
| | | if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 42))
|
| | | || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 52)))
|
| | | return true;
|
| | | else
|
| | | return false;
|
| | | }
|
| | |
|
| | | public static boolean greaterThan_1_5_60(String platform, String versionCode) {
|
| | | if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 43))
|
| | | || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 54)))
|
| | | return true;
|
| | | else
|
| | | return false;
|
| | | }
|
| | |
|
| | | public static boolean greaterThan_1_5_70(String platform, String versionCode) {
|
| | | if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 45))
|
| | | || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 56)))
|
| | | return true;
|
| | | else
|
| | | return false;
|
| | | }
|
| | |
|
| | | public static boolean greaterThan_1_6_0(String platform, String versionCode) {
|
| | | if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 46))
|
| | | || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 58)))
|
| | | return true;
|
| | | else
|
| | | return false;
|
| | | }
|
| | |
|
| | | public static boolean greaterThan_1_6_5(String platform, String versionCode) {
|
| | | if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 47))
|
| | | || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 65)))
|
| | | return true;
|
| | | else
|
| | | return false;
|
| | | }
|
| | |
|
| | | public static boolean greaterThan_2_0(String platform, String versionCode) {
|
| | | if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 48))
|
| | | || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 66)))
|
| | | return true;
|
| | | else
|
| | | return false;
|
| | | }
|
| | |
|
| | | public static boolean greaterThan_2_0_1(String platform, String versionCode) {
|
| | | if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 50))
|
| | | || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 67)))
|
| | | return true;
|
| | | else
|
| | | return false;
|
| | | }
|
| | |
|
| | | public static boolean greaterThan_2_0_2(String platform, String versionCode) {
|
| | | if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 51))
|
| | | || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 70)))
|
| | | return true;
|
| | | else
|
| | | return false;
|
| | | }
|
| | |
|
| | | public static boolean greaterThan_2_0_5(String platform, String versionCode) {
|
| | | if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 52))
|
| | | || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 73)))
|
| | | return true;
|
| | | else
|
| | | return false;
|
| | | }
|
| | | |
| | | public static boolean greaterThan_2_0_6(String platform, String versionCode) {
|
| | | if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 54))
|
| | | || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 74)))
|
| | | return true;
|
| | | else
|
| | | return false;
|
| | | }
|
| | | |
| | | public static boolean greaterThan_2_0_7(String platform, String versionCode) {
|
| | | if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 55))
|
| | | || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 77)))
|
| | | return true;
|
| | | else
|
| | | return false;
|
| | | }
|
| | |
|
| | | public static boolean greaterThan_2_1(String platform, String versionCode) {
|
| | | if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 56))
|
| | | || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 78)))
|
| | | 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;
|
| | | }
|
| | |
|
| | | }
|
| | | 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 greaterThan_1_5_50(String platform, String versionCode) { |
| | | if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 42)) |
| | | || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 52))) |
| | | return true; |
| | | else |
| | | return false; |
| | | } |
| | | |
| | | public static boolean greaterThan_1_5_60(String platform, String versionCode) { |
| | | if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 43)) |
| | | || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 54))) |
| | | return true; |
| | | else |
| | | return false; |
| | | } |
| | | |
| | | public static boolean greaterThan_1_5_70(String platform, String versionCode) { |
| | | if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 45)) |
| | | || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 56))) |
| | | return true; |
| | | else |
| | | return false; |
| | | } |
| | | |
| | | public static boolean greaterThan_1_6_0(String platform, String versionCode) { |
| | | if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 46)) |
| | | || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 58))) |
| | | return true; |
| | | else |
| | | return false; |
| | | } |
| | | |
| | | public static boolean greaterThan_1_6_5(String platform, String versionCode) { |
| | | if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 47)) |
| | | || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 65))) |
| | | return true; |
| | | else |
| | | return false; |
| | | } |
| | | |
| | | public static boolean greaterThan_2_0(String platform, String versionCode) { |
| | | if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 48)) |
| | | || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 66))) |
| | | return true; |
| | | else |
| | | return false; |
| | | } |
| | | |
| | | public static boolean greaterThan_2_0_1(String platform, String versionCode) { |
| | | if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 50)) |
| | | || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 67))) |
| | | return true; |
| | | else |
| | | return false; |
| | | } |
| | | |
| | | public static boolean greaterThan_2_0_2(String platform, String versionCode) { |
| | | if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 51)) |
| | | || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 70))) |
| | | return true; |
| | | else |
| | | return false; |
| | | } |
| | | |
| | | public static boolean greaterThan_2_0_5(String platform, String versionCode) { |
| | | if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 52)) |
| | | || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 73))) |
| | | return true; |
| | | else |
| | | return false; |
| | | } |
| | | |
| | | public static boolean greaterThan_2_0_6(String platform, String versionCode) { |
| | | if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 54)) |
| | | || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 74))) |
| | | return true; |
| | | else |
| | | return false; |
| | | } |
| | | |
| | | public static boolean greaterThan_2_0_7(String platform, String versionCode) { |
| | | if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 55)) |
| | | || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 77))) |
| | | return true; |
| | | else |
| | | return false; |
| | | } |
| | | |
| | | public static boolean greaterThan_2_1(String platform, String versionCode) { |
| | | if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 56)) |
| | | || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 78))) |
| | | return true; |
| | | else |
| | | return false; |
| | | } |
| | | |
| | | public static boolean greaterThan_2_1_1(String platform, String versionCode) { |
| | | if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 57)) |
| | | || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 81))) |
| | | return true; |
| | | else |
| | | return false; |
| | | } |
| | | |
| | | public static boolean greaterThan_2_1_2(String platform, String versionCode) { |
| | | if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 58)) |
| | | || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 82))) |
| | | return true; |
| | | else |
| | | return false; |
| | | } |
| | | |
| | | public static boolean greaterThan_2_1_3(String platform, String versionCode) { |
| | | if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 59)) |
| | | || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 83))) |
| | | return true; |
| | | else |
| | | return false; |
| | | } |
| | | |
| | | public static boolean greaterThan_2_1_5(String platform, String versionCode) { |
| | | if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 62)) |
| | | || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 84))) |
| | | 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; |
| | | } |
| | | |
| | | } |