From e4c86567f24fcc791888321f9d2a0ef6faf5718e Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期六, 14 十二月 2019 18:44:04 +0800 Subject: [PATCH] 横幅与banner的版本控制初步集成 --- fanli/src/main/java/com/yeshi/fanli/util/VersionUtil.java | 18 ++++++------------ 1 files changed, 6 insertions(+), 12 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 863ddaf..55a0489 100644 --- a/fanli/src/main/java/com/yeshi/fanli/util/VersionUtil.java +++ b/fanli/src/main/java/com/yeshi/fanli/util/VersionUtil.java @@ -17,7 +17,7 @@ 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))) @@ -25,8 +25,7 @@ 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))) @@ -42,7 +41,7 @@ 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))) @@ -51,8 +50,6 @@ 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))) @@ -61,7 +58,6 @@ 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))) @@ -69,7 +65,7 @@ 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))) @@ -77,16 +73,14 @@ else return false; } - - + public static boolean greaterThan_2_1(String platform, String versionCode) { if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 52)) - || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 75))) + || (("ios".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) >= 73))) return true; else return false; } - public static boolean smallerThan_1_5_1(String platform, String versionCode) { if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) < 36)) -- Gitblit v1.8.0