From 1fb9bb817689099e3ad2fd2112f7befa9c505a6e Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期五, 21 一月 2022 14:10:53 +0800 Subject: [PATCH] 3.10.12 --- BuWanVideo/src/com/weikou/beibeivideo/BeibeiVideoApplication.java | 24 ++++++++++++++++++++++-- 1 files changed, 22 insertions(+), 2 deletions(-) diff --git a/BuWanVideo/src/com/weikou/beibeivideo/BeibeiVideoApplication.java b/BuWanVideo/src/com/weikou/beibeivideo/BeibeiVideoApplication.java index ba2dde3..cc8c941 100644 --- a/BuWanVideo/src/com/weikou/beibeivideo/BeibeiVideoApplication.java +++ b/BuWanVideo/src/com/weikou/beibeivideo/BeibeiVideoApplication.java @@ -21,6 +21,9 @@ import com.alibaba.baichuan.android.trade.AlibcTradeSDK; import com.alibaba.baichuan.android.trade.callback.AlibcTradeInitCallback; import com.baidu.mobads.AppActivity; +import com.bytedance.applog.AppLog; +import com.bytedance.applog.InitConfig; +import com.bytedance.applog.util.UriConstants; import com.bytedance.novel.pangolin.NovelConfig; import com.bytedance.novel.pangolin.NovelSDK; import com.bytedance.novel.pangolin.PangolinDocker; @@ -320,6 +323,9 @@ //蹇墜鍒濆鍖� public static void initKSSDK(Context appContext) { + if (!AdUtil.isCanInitCSJ()) { + return; + } KsAdSDK.init(appContext, new SdkConfig.Builder() .appId("801000001") // 娴嬭瘯aapId锛岃鑱旂郴蹇伎骞冲彴鐢宠姝e紡AppId锛屽繀濉� .appName(appContext.getString(R.string.app_name)) // 娴嬭瘯appName锛岃濉啓鎮ㄥ簲饨ょ殑鍚嶇О锛屸井蹇呭~ @@ -353,10 +359,19 @@ if (!AdUtil.isCanInitCSJ()) { return; } + + /* 鍒濆鍖栧紑濮� */ + final InitConfig config = new InitConfig("5095354", ManifestDataUtil.getAppMetaData(application, "UMENG_CHANNEL")); // appid鍜屾笭閬擄紝appid濡備笉娓呮璇疯仈绯诲鎴锋垚鍔熺粡鐞嗭紝娉ㄦ剰绗簩涓弬鏁� channel 涓嶈兘涓虹┖ + config.setUriConfig(UriConstants.DEFAULT);//涓婃姤鍦板潃 +// 鍔犲瘑寮�鍏筹紝SDK 5.5.1 鍙婁互涓婄増鏈敮鎸侊紝false 涓哄叧闂姞瀵嗭紝涓婄嚎鍓嶅缓璁缃负 true + AppLog.setEncryptAndCompress(true); + config.setAutoStart(true); + AppLog.init(application, config); + /* 鍒濆鍖栫粨鏉� */ + if (!dpSDKIninted) { DPSdkConfig.Builder configBuilder = new DPSdkConfig.Builder() .debug(false) - .preloadDraw(true) .needInitAppLog(false) .setIsAndroidx(true) .initListener(new DPSdkConfig.InitListener() { @@ -369,7 +384,12 @@ // .liveConfig(new DPSdkConfig.LiveConfig()) ;//鑻ユ偍闇�瑕佹帴鍏ョ洿鎾紝鍙傝�冦�岀洿鎾帴鍏ユ枃妗c�嶏紱鍚﹀垯鍙拷鐣ユ鍙傛暟銆� - DPSdk.init(application, "SDK_Setting_5095354.json", configBuilder.build()); + try { + DPSdk.init(application, "SDK_Setting_5095354.json", configBuilder.build()); + } catch (Exception e) { + + } + } } -- Gitblit v1.8.0