| | |
| | | public class AdUtil { |
| | | |
| | | public enum AD_TYPE { |
| | | gdt("广点通"), csj("穿山甲"), gdt2("广点通2.0"), hw("华为"); |
| | | gdt("广点通"), csj("穿山甲"), gdt2("广点通2.0"), hw("华为"), vivo("vivo"); |
| | | |
| | | private String name; |
| | | |
| | |
| | | JSONObject object = new JSONObject(config); |
| | | object = object.optJSONObject(position.getPositionName()); |
| | | if (object != null) |
| | | if (AndroidManifestUtil.isHuaWeiChannel(context)){ |
| | | if (AndroidManifestUtil.isHuaWeiChannel(context)&&false){ |
| | | return AD_TYPE.hw; |
| | | }else { |
| | | return AD_TYPE.valueOf(object.optString("type")); |
| | |
| | | return null; |
| | | } |
| | | } else { |
| | | if (AndroidManifestUtil.isHuaWeiChannel(context)) { |
| | | if (AndroidManifestUtil.isHuaWeiChannel(context)&&false) { |
| | | return AD_TYPE.hw; |
| | | } else { |
| | | return AD_TYPE.gdt; |