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; } }