admin
2021-03-25 9438097857e16f4929924d0d349c346d36b5f947
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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;
    }
}