@@ -0,0 +1,1057 @@
+package com.zht.baseproject.utils;%0A%0Aimport android.content.pm.PackageInfo;%0Aimport android.content.pm.PackageManager;%0A%0Aimport com.zht.baseproject.App;%0A%0A/**%0A * Created by ZHT on 2017/6/1.%0A */%0A%0Apublic class VersionUtils %7B%0A%0A    private VersionUtils() %7B%0A        throw new IllegalArgumentException(%22cannot create VersionUtils constructor!%22);%0A    %7D%0A%0A    private static PackageInfo getPackageInfo() %7B%0A        PackageInfo info = null;%0A        try %7B%0A            PackageManager manager = App.getApplication().getPackageManager();%0A            info = manager.getPackageInfo(App.getApplication().getPackageName(), PackageManager.GET_CONFIGURATIONS);%0A        %7D catch (PackageManager.NameNotFoundException e) %7B%0A            e.printStackTrace();%0A        %7D%0A%0A        return info;%0A    %7D%0A%0A    /**%0A     * %E8%8E%B7%E5%8F%96%E5%BA%94%E7%94%A8%E7%89%88%E6%9C%AC%E5%90%8D%0A     * @return %E7%89%88%E6%9C%AC%E5%90%8D%0A     */%0A    public static String getVersionName() %7B%0A        return getPackageInfo().versionName;%0A    %7D%0A%0A    /**%0A     * %E8%8E%B7%E5%8F%96%E5%BA%94%E7%94%A8%E7%89%88%E6%9C%AC%E5%8F%B7%0A     * @return %E7%89%88%E6%9C%AC%E5%8F%B7%0A     */%0A    public static int getVersionCode() %7B%0A        return getPackageInfo().versionCode;%0A    %7D%0A%7D%0A

add versionUtils