From 69a828c1658429614b6a5a8657ee9eac13c0a777 Mon Sep 17 00:00:00 2001 From: yujian <yujian@123.com> Date: 星期二, 11 六月 2019 09:13:44 +0800 Subject: [PATCH] 测试标签 --- fanli/src/main/java/com/yeshi/fanli/util/VersionUtil.java | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 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 e234b2f..efe9679 100644 --- a/fanli/src/main/java/com/yeshi/fanli/util/VersionUtil.java +++ b/fanli/src/main/java/com/yeshi/fanli/util/VersionUtil.java @@ -10,4 +10,20 @@ 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) >= 51))) + 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; + } + } -- Gitblit v1.8.0