Commit 8c78f6d9 by 霍志良

feat:

parent f06b463f
...@@ -10,7 +10,7 @@ ext { ...@@ -10,7 +10,7 @@ ext {
"m-fm" : "0.0.30.00", "m-fm" : "0.0.30.00",
"m-user" : "0.0.60.25", "m-user" : "0.0.60.25",
"m-home" : "0.0.22.31", "m-home" : "0.0.22.31",
"m-im" : "0.0.18.15", "m-im" : "0.0.18.16",
"m-dynamic" : "0.0.7.13", "m-dynamic" : "0.0.7.13",
"m-article" : "0.0.0.6", "m-article" : "0.0.0.6",
...@@ -33,10 +33,11 @@ ext { ...@@ -33,10 +33,11 @@ ext {
//-------------- 功能组件 -------------- //-------------- 功能组件 --------------
//第一步 //第一步
"ydl-platform" : "0.0.39.49", "ydl-platform" : "0.0.39.52",
//第二步 若干 //第二步 若干
"ydl-webview" : "0.0.38.32", "ydl-webview" : "0.0.38.32",
"ydl-webview" : "0.0.38.32",
"ydl-media" : "0.0.21.6", "ydl-media" : "0.0.21.6",
"ydl-pay" : "0.0.18.9", "ydl-pay" : "0.0.18.9",
"m-audioim" : "0.0.49.29.7", "m-audioim" : "0.0.49.29.7",
...@@ -93,7 +94,7 @@ ext { ...@@ -93,7 +94,7 @@ ext {
"m-fm" : "0.0.23.5", "m-fm" : "0.0.23.5",
"m-user" : "0.0.41.4", "m-user" : "0.0.41.4",
"m-home" : "0.0.6.26", "m-home" : "0.0.6.26",
"m-im" : "0.0.3.9", "m-im" : "0.0.3.10",
"m-dynamic" : "0.0.1.7", "m-dynamic" : "0.0.1.7",
"m-muse" : "0.0.20.7", "m-muse" : "0.0.20.7",
...@@ -114,7 +115,7 @@ ext { ...@@ -114,7 +115,7 @@ ext {
//-------------- 功能组件 -------------- //-------------- 功能组件 --------------
//第一步 //第一步
"ydl-platform" : "0.0.39.49", "ydl-platform" : "0.0.39.52",
//第二步 若干 //第二步 若干
"ydl-webview" : "0.0.38.31", "ydl-webview" : "0.0.38.31",
...@@ -263,7 +264,7 @@ ext { ...@@ -263,7 +264,7 @@ ext {
"protector" : "com.ydl:protector:1.0.1-SNAPSHOT@aar", "protector" : "com.ydl:protector:1.0.1-SNAPSHOT@aar",
"ydl-hnet" : "com.ydl:h-net:0.0.8", "ydl-hnet" : "com.ydl:h-net:0.0.8",
"ydl-user-router" : "com.ydl:router:1.0.0-SNAPSHOT@aar", "ydl-user-router" : "com.ydl:router:1.0.0-SNAPSHOT@aar",
"ydl-device" : "com.ydl:device-id:0.0.25@aar", "ydl-device" : "com.ydl:device-id:0.0.10@aar",//0.0.27
"ydl-net" : "com.ydl:ydl-net:${ydlCompileVersion["ydl-net"]}", "ydl-net" : "com.ydl:ydl-net:${ydlCompileVersion["ydl-net"]}",
"ydl-utils" : "com.ydl:ydl-utils:${ydlCompileVersion["ydl-utils"]}", "ydl-utils" : "com.ydl:ydl-utils:${ydlCompileVersion["ydl-utils"]}",
......
...@@ -4,6 +4,7 @@ import android.annotation.SuppressLint ...@@ -4,6 +4,7 @@ import android.annotation.SuppressLint
import android.app.Application import android.app.Application
import android.os.Build import android.os.Build
import com.alibaba.android.arouter.launcher.ARouter import com.alibaba.android.arouter.launcher.ARouter
import com.bun.miitmdid.core.JLibrary
import com.ydl.devicesidlib.DeviceIDHelper import com.ydl.devicesidlib.DeviceIDHelper
import com.ydl.ydlcommon.base.BaseApp import com.ydl.ydlcommon.base.BaseApp
import com.ydl.ydlcommon.data.http.UpLoadLogUtils import com.ydl.ydlcommon.data.http.UpLoadLogUtils
...@@ -28,7 +29,7 @@ object YdlRepository { ...@@ -28,7 +29,7 @@ object YdlRepository {
// 需要在主 module 的 application 的 onCreate 方法中调用此方法 // 需要在主 module 的 application 的 onCreate 方法中调用此方法
fun initApp(app: Application,isDebug:Boolean) { fun initApp(app: Application,isDebug:Boolean) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
// JLibrary.InitEntry(app) JLibrary.InitEntry(app)
} }
if (AppProgressUtils.isMainProcess(app)){ if (AppProgressUtils.isMainProcess(app)){
// DeviceIDHelper.getInstance().init(app.applicationContext) // DeviceIDHelper.getInstance().init(app.applicationContext)
......
...@@ -5,7 +5,7 @@ import android.util.Log; ...@@ -5,7 +5,7 @@ import android.util.Log;
import com.umeng.analytics.MobclickAgent; import com.umeng.analytics.MobclickAgent;
import com.ydl.burypointlib.BuryPointHelper; import com.ydl.burypointlib.BuryPointHelper;
import com.ydl.devicesidlib.DemoHelper; //import com.ydl.devicesidlib.DemoHelper;
import com.ydl.devicesidlib.DeviceIDHelper; import com.ydl.devicesidlib.DeviceIDHelper;
import com.ydl.pushserver.pushagent.YdlPushAgent; import com.ydl.pushserver.pushagent.YdlPushAgent;
import com.ydl.pushserver.pushagent.common.listener.IYDLPushListener; import com.ydl.pushserver.pushagent.common.listener.IYDLPushListener;
...@@ -18,7 +18,7 @@ import com.yidianling.common.tools.RxAppTool; ...@@ -18,7 +18,7 @@ import com.yidianling.common.tools.RxAppTool;
import com.yidianling.common.tools.RxDeviceTool; import com.yidianling.common.tools.RxDeviceTool;
import com.yidianling.common.tools.RxNetTool; import com.yidianling.common.tools.RxNetTool;
import static com.bun.miitmdid.content.ContextKeeper.getApplicationContext; //import static com.bun.miitmdid.content.ContextKeeper.getApplicationContext;
//import com.ydl.burypointlib.BuryPointHelper; //import com.ydl.burypointlib.BuryPointHelper;
//埋点工具类 //埋点工具类
...@@ -40,48 +40,43 @@ public class YdlBuryPointUtil { ...@@ -40,48 +40,43 @@ public class YdlBuryPointUtil {
if (isTest){ if (isTest){
YdlPushAgent.setDebugAdree("121.41.92.140",8091); YdlPushAgent.setDebugAdree("121.41.92.140",8091);
} }
DemoHelper helper=new DemoHelper(new DemoHelper.AppIdsUpdater() { RegisterEventBean registerEventBean = new RegisterEventBean();
@Override public void OnIdsAvalid(String ids) { registerEventBean.setAppId(context.getPackageName());
Log.e("AAAAA","getDeviceId:"+ids); registerEventBean.setAppVersion(RxAppTool.getAppVersionName(context));
RegisterEventBean registerEventBean = new RegisterEventBean(); String deviceId = DeviceIDHelper.getInstance().getDeviceId();
registerEventBean.setAppId(context.getPackageName()); registerEventBean.setDeviceId(deviceId);
registerEventBean.setAppVersion(RxAppTool.getAppVersionName(context)); registerEventBean.setManufacturer(RxDeviceTool.getBuildMANUFACTURER());
// String deviceId = DeviceIDHelper.getInstance().getDeviceId(); registerEventBean.setChannel(YdlCommonOut.Companion.getChannelName());
registerEventBean.setDeviceId(ids); registerEventBean.setOs("Android");
registerEventBean.setManufacturer(RxDeviceTool.getBuildMANUFACTURER()); registerEventBean.setModel(RxDeviceTool.getBuildBrandModel());
registerEventBean.setChannel(YdlCommonOut.Companion.getChannelName()); registerEventBean.setOsVersion(RxDeviceTool.getOsBuileVersion());
registerEventBean.setOs("Android"); registerEventBean.setUid(ModularServiceManager.INSTANCE.getPlatformUserService().getUser().getUserId()+"");
registerEventBean.setModel(RxDeviceTool.getBuildBrandModel()); registerEventBean.setScreenHeight(RxDeviceTool.getScreenHeight(context));
registerEventBean.setOsVersion(RxDeviceTool.getOsBuileVersion()); registerEventBean.setScreenWidth(RxDeviceTool.getScreenWidth(context));
registerEventBean.setUid(ModularServiceManager.INSTANCE.getPlatformUserService().getUser().getUserId()+""); registerEventBean.setWifi(RxNetTool.getNetWorkTypeName(context));
registerEventBean.setScreenHeight(RxDeviceTool.getScreenHeight(context)); LogUtil.d(registerEventBean.toString());
registerEventBean.setScreenWidth(RxDeviceTool.getScreenWidth(context)); YdlPushAgent.init(registerEventBean,appDebug, context1, new IYDLPushListener() {
registerEventBean.setWifi(RxNetTool.getNetWorkTypeName(context)); @Override
LogUtil.d(registerEventBean.toString()); public void onPushEvent() {
YdlPushAgent.init(registerEventBean,appDebug, context1, new IYDLPushListener() { MobclickAgent.onEvent(context1, "socket_push_event");
@Override }
public void onPushEvent() {
MobclickAgent.onEvent(context1, "socket_push_event"); @Override
} public void onPushRescueEvent() {
MobclickAgent.onEvent(context1, "socket_push_rescue_event");
@Override
public void onPushRescueEvent() {
MobclickAgent.onEvent(context1, "socket_push_rescue_event");
}
@Override
public void onSocketReconnect() {
MobclickAgent.onEvent(context1, "socket_reconnect");
}
@Override
public void onSocketDisconnect() {
MobclickAgent.onEvent(context1, "socket_disconnect");
}
});
} }
},getApplicationContext());
helper.getDeviceIds(getApplicationContext()); @Override
public void onSocketReconnect() {
MobclickAgent.onEvent(context1, "socket_reconnect");
}
@Override
public void onSocketDisconnect() {
MobclickAgent.onEvent(context1, "socket_disconnect");
}
});
BuryPointHelper.setDebug(isTest,isEditAlis,true,appDebug); BuryPointHelper.setDebug(isTest,isEditAlis,true,appDebug);
BuryPointHelper.init(); BuryPointHelper.init();
......
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