package com.lcjian.library.util.common;
|
|
import android.content.Context;
|
|
import com.lcjian.library.util.ManifestDataUtil;
|
|
public class AndroidManifestUtil {
|
|
public static String getChannel(Context context){
|
return ManifestDataUtil.getAppMetaData(context, "UMENG_CHANNEL");
|
}
|
|
public static boolean isHuaWeiChannel(Context context){
|
return "huawei".equalsIgnoreCase(getChannel(context));
|
}
|
|
public static boolean isOppoChannel(Context context){
|
return "oppo".equalsIgnoreCase(getChannel(context));
|
}
|
|
public static boolean isVIVOChannel(Context context){
|
return "vivo".equalsIgnoreCase(getChannel(context));
|
}
|
|
}
|