yujian
2019-05-29 0588d6be74335f41c79a8d8e32dbd1c3d3e47fa3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 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;
    }
 
}