From 7e7db2fa55a9a3af46d4fd8ede0dee147f101d64 Mon Sep 17 00:00:00 2001 From: yujian <yujian@163.com> Date: 星期六, 09 五月 2020 21:41:27 +0800 Subject: [PATCH] 2.1需求 --- fanli/src/main/java/com/yeshi/fanli/util/VersionUtil.java | 28 ++++++++++++++++++++++++++-- 1 files changed, 26 insertions(+), 2 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/util/VersionUtil.java b/fanli/src/main/java/com/yeshi/fanli/util/VersionUtil.java index 606fc03..8a3de78 100644 --- a/fanli/src/main/java/com/yeshi/fanli/util/VersionUtil.java +++ b/fanli/src/main/java/com/yeshi/fanli/util/VersionUtil.java @@ -74,7 +74,7 @@ return false; } - public static boolean greaterThan_2_1(String platform, String versionCode) { + 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; @@ -83,13 +83,37 @@ } public static boolean greaterThan_2_0_6(String platform, String versionCode) { - if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 53)) + 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) >= 80))) + 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))) -- Gitblit v1.8.0