Commit 40ed2d76 by sikang

渠道包忽略审核

parent 3b148e0d
package com.common.toolbox;
/**
* Created by SiKang on 2019-07-28.
*/
public class PluginConfig {
//是否是渠道包
public static boolean IS_WEBSITE = false;
}
......@@ -3,7 +3,8 @@ package com.common.toolbox.app_utils;
import android.os.Build;
import android.os.Environment;
import android.text.TextUtils;
import android.util.Base64;
import com.common.toolbox.PluginConfig;
import java.io.*;
import java.util.Locale;
......@@ -150,6 +151,11 @@ public class DeviceInfo {
* 是否是Google审核机器
*/
public static boolean isReviewMachine() {
//如果是渠道包,忽略
if(PluginConfig.IS_WEBSITE){
return false;
}
if (defaultLocale != null) {
return defaultLocale.getCountry().equals("US") && defaultLocale.getLanguage().equals("en");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment