From 02d65bf44ae94ee5c8f126181fbb08faf7e65f7e Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期日, 29 九月 2019 18:12:38 +0800
Subject: [PATCH] 配置文件修改
---
fanli/src/main/java/com/yeshi/fanli/util/VersionUtil.java | 34 ++++++++++++++++++++++++++++++++++
1 files changed, 34 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 84918bc..d7ddcfb 100644
--- a/fanli/src/main/java/com/yeshi/fanli/util/VersionUtil.java
+++ b/fanli/src/main/java/com/yeshi/fanli/util/VersionUtil.java
@@ -35,7 +35,41 @@
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 smallerThan_1_5_1(String platform, String versionCode) {
if ((("android".equalsIgnoreCase(platform) && Integer.parseInt(versionCode) < 36))
--
Gitblit v1.8.0