admin
2024-09-13 23cb5200b7a8fb57af5e8006612181bae9c0c95d
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
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));
    }
 
}