admin
2019-07-22 b4b421ba6b85b586f9b8171c876f716bab9840d0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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 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;
    }
 
}