admin
2022-04-16 04f09e52ffd4681bdfd85e51acd3da0d1280c3d3
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
package com.yeshi.buwan.util;
 
public class VersionUtil {
 
    /**
     * 版本是否大于3.7.7
     *
     * @param packageName
     * @param version
     * @return
     */
    public static boolean isGrater377(String packageName, String version) {
        if (Integer.parseInt(version) >= 95)
            return true;
        else
            return false;
    }
 
    public static boolean isGraterThan387(String platform, int version) {
        if ("android".equalsIgnoreCase(platform) && version >= 106)
            return true;
        return false;
    }
 
    public static boolean isGraterThan390(String platform, int version) {
        if ("android".equalsIgnoreCase(platform) && version >= 109)
            return true;
        return false;
    }
 
    public static boolean isGraterThan391(String platform, int version) {
        if ("android".equalsIgnoreCase(platform) && version >= 110)
            return true;
        return false;
    }
 
    public static boolean isGraterThan392(String platform, int version) {
        if ("android".equalsIgnoreCase(platform) && version >= 111)
            return true;
        return false;
    }
}