埋点配置
This commit is contained in:
parent
a3dacf1f59
commit
d643df72bc
@ -4,7 +4,7 @@ ext {
|
|||||||
buildToolsVersion: "29.0.2",
|
buildToolsVersion: "29.0.2",
|
||||||
minSdkVersion : 21,
|
minSdkVersion : 21,
|
||||||
targetSdkVersion : 33,
|
targetSdkVersion : 33,
|
||||||
versionCode : 447,
|
versionCode : 449,
|
||||||
versionName : "6.5.5"
|
versionName : "6.5.5"
|
||||||
]
|
]
|
||||||
manifestPlaceholders = [
|
manifestPlaceholders = [
|
||||||
@ -22,10 +22,9 @@ ext {
|
|||||||
|
|
||||||
baiduAppSecretKey: "nEVSgmuGpU0pjPr6VleEGGAl0hzGW52S",
|
baiduAppSecretKey: "nEVSgmuGpU0pjPr6VleEGGAl0hzGW52S",
|
||||||
// true表示谷歌支付 false
|
// true表示谷歌支付 false
|
||||||
isGooglePlay : false,
|
isGooglePlay : true,
|
||||||
//是否上报异常日志
|
//是否上报异常日志
|
||||||
isUploadLog : true,
|
isUploadLog : true,
|
||||||
//是否打包成插件包模式
|
//是否打包成插件包模式
|
||||||
isPluginModel : true,
|
isPluginModel : false, ]
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
@ -121,6 +121,10 @@ import java.util.ArrayList;
|
|||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import io.rong.imlib.IRongCoreCallback;
|
||||||
|
import io.rong.imlib.IRongCoreEnum;
|
||||||
|
import io.rong.imlib.chatroom.base.RongChatRoomClient;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by cxf on 2018/10/10.
|
* Created by cxf on 2018/10/10.
|
||||||
* 看直播
|
* 看直播
|
||||||
@ -395,7 +399,7 @@ public class LiveAudienceActivity extends LiveActivity {
|
|||||||
mLiveTypeVal = 0;
|
mLiveTypeVal = 0;
|
||||||
}
|
}
|
||||||
mLiveType = liveType;
|
mLiveType = liveType;
|
||||||
String giftId=mLiveBean.getGiftId();
|
String giftId = mLiveBean.getGiftId();
|
||||||
String json = GsonUtils.toJson(data);
|
String json = GsonUtils.toJson(data);
|
||||||
mLiveBean = GsonUtils.fromJson(json, LiveBean.class);
|
mLiveBean = GsonUtils.fromJson(json, LiveBean.class);
|
||||||
mLiveBean.setUserNiceName(data.getUserNicename());
|
mLiveBean.setUserNiceName(data.getUserNicename());
|
||||||
@ -729,29 +733,33 @@ public class LiveAudienceActivity extends LiveActivity {
|
|||||||
|
|
||||||
@Subscribe(threadMode = ThreadMode.MAIN)
|
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||||
public void onLiveRoomChangeEvent(LiveRoomChangeEvent e) {
|
public void onLiveRoomChangeEvent(LiveRoomChangeEvent e) {
|
||||||
|
|
||||||
LiveBean liveBean = e.getLiveBean();
|
LiveBean liveBean = e.getLiveBean();
|
||||||
if (e.isLiveEnd()) {
|
if (TextUtils.equals(mLiveUid, liveBean.getUid())) {
|
||||||
manager.removeLiveEnd();
|
ToastUtil.show(R.string.current_live_room);
|
||||||
}
|
} else {
|
||||||
if (LiveRoomViewHolder.mHandler != null) {
|
if (e.isLiveEnd()) {
|
||||||
LiveRoomViewHolder.mHandler.removeCallbacksAndMessages(null);
|
manager.removeLiveEnd();
|
||||||
}
|
}
|
||||||
if (liveBean != null) {
|
if (LiveRoomViewHolder.mHandler != null) {
|
||||||
LiveHttpUtil.cancel(LiveHttpConsts.CHECK_LIVE);
|
LiveRoomViewHolder.mHandler.removeCallbacksAndMessages(null);
|
||||||
LiveHttpUtil.cancel(LiveHttpConsts.ENTER_ROOM);
|
}
|
||||||
LiveHttpUtil.cancel(LiveHttpConsts.ROOM_CHARGE);
|
if (liveBean != null) {
|
||||||
manager.onRemove(false);
|
LiveHttpUtil.cancel(LiveHttpConsts.CHECK_LIVE);
|
||||||
mLiveType = e.getLiveType();
|
LiveHttpUtil.cancel(LiveHttpConsts.ENTER_ROOM);
|
||||||
mLiveTypeVal = e.getLiveTypeVal();
|
LiveHttpUtil.cancel(LiveHttpConsts.ROOM_CHARGE);
|
||||||
mLiveBean = liveBean;
|
manager.onRemove(false);
|
||||||
mLiveUid = liveBean.getUid();
|
mLiveType = e.getLiveType();
|
||||||
mStream = liveBean.getStream();
|
mLiveTypeVal = e.getLiveTypeVal();
|
||||||
mAncherName = liveBean.getUserNiceName();
|
mLiveBean = liveBean;
|
||||||
mAncherIcon = liveBean.getAvatar();
|
mLiveUid = liveBean.getUid();
|
||||||
manager.onAdd(liveBean, mLiveType, mLiveTypeVal, mLiveSDK);
|
mStream = liveBean.getStream();
|
||||||
|
mAncherName = liveBean.getUserNiceName();
|
||||||
|
mAncherIcon = liveBean.getAvatar();
|
||||||
|
manager.onAdd(liveBean, mLiveType, mLiveTypeVal, mLiveSDK);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -897,7 +905,7 @@ public class LiveAudienceActivity extends LiveActivity {
|
|||||||
RouteUtil.forwardEditProfileActivity();
|
RouteUtil.forwardEditProfileActivity();
|
||||||
} else {
|
} else {
|
||||||
if (!screen) {
|
if (!screen) {
|
||||||
ZhuangBanActivity.forward(mContext, htmlUrl, false,1);
|
ZhuangBanActivity.forward(mContext, htmlUrl, false, 1);
|
||||||
} else {
|
} else {
|
||||||
Bundle bundle = new Bundle();
|
Bundle bundle = new Bundle();
|
||||||
bundle.putString("url", htmlUrl);
|
bundle.putString("url", htmlUrl);
|
||||||
@ -1104,7 +1112,7 @@ public class LiveAudienceActivity extends LiveActivity {
|
|||||||
String weeklyStarUrl = CommonAppConfig.HOST + "/h5/activity/weekStar/index.html?&uid="
|
String weeklyStarUrl = CommonAppConfig.HOST + "/h5/activity/weekStar/index.html?&uid="
|
||||||
+ userInfo.getId() +
|
+ userInfo.getId() +
|
||||||
"&token=" + userInfo.getToken() + "&anchorUid=" + mLiveUid;
|
"&token=" + userInfo.getToken() + "&anchorUid=" + mLiveUid;
|
||||||
ZhuangBanActivity.forward(mContext, weeklyStarUrl, false,1);
|
ZhuangBanActivity.forward(mContext, weeklyStarUrl, false, 1);
|
||||||
break;
|
break;
|
||||||
case NOBLE:
|
case NOBLE:
|
||||||
Constants.isTitle = true;
|
Constants.isTitle = true;
|
||||||
@ -1114,7 +1122,7 @@ public class LiveAudienceActivity extends LiveActivity {
|
|||||||
+ "&anchorUid=" + mLiveBean.getUid()
|
+ "&anchorUid=" + mLiveBean.getUid()
|
||||||
+ "&ancherName=" + mLiveBean.getUserNiceName()
|
+ "&ancherName=" + mLiveBean.getUserNiceName()
|
||||||
+ "&uid=" + userInfo.getId();
|
+ "&uid=" + userInfo.getId();
|
||||||
ZhuangBanActivity.forward(mContext, nobleUrl, false,1);
|
ZhuangBanActivity.forward(mContext, nobleUrl, false, 1);
|
||||||
break;
|
break;
|
||||||
case LIAN_MAI:
|
case LIAN_MAI:
|
||||||
if (event.getMicIng() == 1) {
|
if (event.getMicIng() == 1) {
|
||||||
|
@ -31,12 +31,16 @@ import com.yunbao.common.bean.LevelBean;
|
|||||||
import com.yunbao.common.bean.LiveBean;
|
import com.yunbao.common.bean.LiveBean;
|
||||||
import com.yunbao.common.bean.UserBean;
|
import com.yunbao.common.bean.UserBean;
|
||||||
import com.yunbao.common.dialog.AbsDialogFragment;
|
import com.yunbao.common.dialog.AbsDialogFragment;
|
||||||
|
import com.yunbao.common.event.LiveRoomChangeEvent;
|
||||||
import com.yunbao.common.glide.ImgLoader;
|
import com.yunbao.common.glide.ImgLoader;
|
||||||
import com.yunbao.common.http.CommonHttpUtil;
|
import com.yunbao.common.http.CommonHttpUtil;
|
||||||
import com.yunbao.common.http.HttpCallback;
|
import com.yunbao.common.http.HttpCallback;
|
||||||
|
import com.yunbao.common.http.LiveHttpConsts;
|
||||||
|
import com.yunbao.common.http.LiveHttpUtil;
|
||||||
import com.yunbao.common.interfaces.CommonCallback;
|
import com.yunbao.common.interfaces.CommonCallback;
|
||||||
import com.yunbao.common.utils.CommonIconUtil;
|
import com.yunbao.common.utils.CommonIconUtil;
|
||||||
import com.yunbao.common.utils.DialogUitl;
|
import com.yunbao.common.utils.DialogUitl;
|
||||||
|
import com.yunbao.common.utils.LiveRoomCheckLivePresenter;
|
||||||
import com.yunbao.common.utils.RouteUtil;
|
import com.yunbao.common.utils.RouteUtil;
|
||||||
import com.yunbao.common.utils.SVGAViewUtils;
|
import com.yunbao.common.utils.SVGAViewUtils;
|
||||||
import com.yunbao.common.utils.ToastUtil;
|
import com.yunbao.common.utils.ToastUtil;
|
||||||
@ -45,11 +49,10 @@ import com.yunbao.live.activity.LiveActivity;
|
|||||||
import com.yunbao.live.activity.LiveReportActivity;
|
import com.yunbao.live.activity.LiveReportActivity;
|
||||||
import com.yunbao.live.bean.ImpressBean;
|
import com.yunbao.live.bean.ImpressBean;
|
||||||
import com.yunbao.live.custom.MyTextView;
|
import com.yunbao.live.custom.MyTextView;
|
||||||
import com.yunbao.common.http.LiveHttpConsts;
|
|
||||||
import com.yunbao.common.http.LiveHttpUtil;
|
|
||||||
import com.yunbao.common.utils.LiveRoomCheckLivePresenter;
|
|
||||||
import com.yunbao.live.utils.LiveTextRender;
|
import com.yunbao.live.utils.LiveTextRender;
|
||||||
|
|
||||||
|
import org.greenrobot.eventbus.EventBus;
|
||||||
|
|
||||||
import java.net.MalformedURLException;
|
import java.net.MalformedURLException;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
@ -137,43 +140,7 @@ public class LiveOldUserDialogFragment extends AbsDialogFragment implements View
|
|||||||
DialogUitl.showSimpleDialog(mContext, "是否確認前往對方直播間?", new DialogUitl.SimpleCallback() {
|
DialogUitl.showSimpleDialog(mContext, "是否確認前往對方直播間?", new DialogUitl.SimpleCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onConfirmClick(Dialog dialog, String content) {
|
public void onConfirmClick(Dialog dialog, String content) {
|
||||||
RongChatRoomClient.getInstance().quitChatRoom("g" + mLiveUid, new IRongCoreCallback.OperationCallback() {
|
|
||||||
@Override
|
|
||||||
public void onSuccess() {
|
|
||||||
Log.i("tx", "退出成功");
|
|
||||||
//连接socket
|
|
||||||
LiveHttpUtil.qBackRoom(mLiveUid, mStream, new HttpCallback() {
|
|
||||||
@Override
|
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
|
||||||
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onError(IRongCoreEnum.CoreErrorCode coreErrorCode) {
|
|
||||||
|
|
||||||
}
|
|
||||||
});
|
|
||||||
V2TIMManager.getInstance().quitGroup("g" + mLiveUid, new V2TIMCallback() {
|
|
||||||
@Override
|
|
||||||
public void onSuccess() {
|
|
||||||
|
|
||||||
Log.i("tx", "退出成功" + mLiveUid);
|
|
||||||
//连接socket
|
|
||||||
LiveHttpUtil.qBackRoom(mLiveUid, mStream, new HttpCallback() {
|
|
||||||
@Override
|
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
|
||||||
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onError(int code, String desc) {
|
|
||||||
Log.i("tx", "退出失败");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
LiveHttpUtil.getLiveInfo(live_id, new HttpCallback() {
|
LiveHttpUtil.getLiveInfo(live_id, new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
@ -182,7 +149,11 @@ public class LiveOldUserDialogFragment extends AbsDialogFragment implements View
|
|||||||
new LiveRoomCheckLivePresenter(mContext, liveBean.getUid(), liveBean.getStream(), new LiveRoomCheckLivePresenter.NewActionListener() {
|
new LiveRoomCheckLivePresenter(mContext, liveBean.getUid(), liveBean.getStream(), new LiveRoomCheckLivePresenter.NewActionListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onLiveRoomChanged(String liveUid, String stream, int liveType, String liveTypeVal, String liveSdk) {
|
public void onLiveRoomChanged(String liveUid, String stream, int liveType, String liveTypeVal, String liveSdk) {
|
||||||
RouteUtil.forwardLiveAudienceActivity(liveBean, liveType, Integer.parseInt(liveSdk), Integer.parseInt(liveTypeVal));
|
if (liveBean == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
EventBus.getDefault().post(new LiveRoomChangeEvent(liveBean, liveType, Integer.parseInt(liveTypeVal)).setLiveEnd(true));
|
||||||
|
dismiss();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -457,7 +428,7 @@ public class LiveOldUserDialogFragment extends AbsDialogFragment implements View
|
|||||||
}
|
}
|
||||||
mFollowing = obj.getIntValue("isattention") == 1;
|
mFollowing = obj.getIntValue("isattention") == 1;
|
||||||
if (mFollowText != null) {
|
if (mFollowText != null) {
|
||||||
mFollowText.setText(mFollowing ?mContext.getString(R.string.following) :mContext.getString(R.string.follow));
|
mFollowText.setText(mFollowing ? mContext.getString(R.string.following) : mContext.getString(R.string.follow));
|
||||||
}
|
}
|
||||||
if (mFollowImage != null) {
|
if (mFollowImage != null) {
|
||||||
mFollowImage.setImageDrawable(mFollowing ? mFollowDrawable : mUnFollowDrawable);
|
mFollowImage.setImageDrawable(mFollowing ? mFollowDrawable : mUnFollowDrawable);
|
||||||
@ -570,7 +541,7 @@ public class LiveOldUserDialogFragment extends AbsDialogFragment implements View
|
|||||||
}
|
}
|
||||||
if (isAttention == 1 && mLiveUid.equals(mToUid)) {//关注了主播
|
if (isAttention == 1 && mLiveUid.equals(mToUid)) {//关注了主播
|
||||||
((LiveActivity) mContext).sendSystemMessage(
|
((LiveActivity) mContext).sendSystemMessage(
|
||||||
CommonAppConfig.getInstance().getUserBean().getUserNiceName() +mContext.getString(R.string.live_follow_anchor));
|
CommonAppConfig.getInstance().getUserBean().getUserNiceName() + mContext.getString(R.string.live_follow_anchor));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -640,44 +640,8 @@ public class LiveUserDialogFragment extends AbsDialogFragment implements View.On
|
|||||||
DialogUitl.showSimpleDialog(mContext, mContext.getString(R.string.party_studio), new DialogUitl.SimpleCallback() {
|
DialogUitl.showSimpleDialog(mContext, mContext.getString(R.string.party_studio), new DialogUitl.SimpleCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onConfirmClick(Dialog dialog, String content) {
|
public void onConfirmClick(Dialog dialog, String content) {
|
||||||
LiveUserDialogFragment.this.dismiss();
|
|
||||||
RongChatRoomClient.getInstance().quitChatRoom("g" + mLiveUid, new IRongCoreCallback.OperationCallback() {
|
|
||||||
@Override
|
|
||||||
public void onSuccess() {
|
|
||||||
Log.i("tx", "退出成功");
|
|
||||||
//连接socket
|
|
||||||
LiveHttpUtil.qBackRoom(mLiveUid, mStream, new HttpCallback() {
|
|
||||||
@Override
|
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
|
||||||
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onError(IRongCoreEnum.CoreErrorCode coreErrorCode) {
|
|
||||||
|
|
||||||
}
|
|
||||||
});
|
|
||||||
V2TIMManager.getInstance().quitGroup("g" + mLiveUid, new V2TIMCallback() {
|
|
||||||
@Override
|
|
||||||
public void onSuccess() {
|
|
||||||
|
|
||||||
Log.i("tx", "退出成功" + mLiveUid);
|
|
||||||
//连接socket
|
|
||||||
LiveHttpUtil.qBackRoom(mLiveUid, mStream, new HttpCallback() {
|
|
||||||
@Override
|
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
|
||||||
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onError(int code, String desc) {
|
|
||||||
Log.i("tx", "退出失败");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
LiveHttpUtil.getLiveInfo(live_id, new HttpCallback() {
|
LiveHttpUtil.getLiveInfo(live_id, new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
@ -694,6 +658,7 @@ public class LiveUserDialogFragment extends AbsDialogFragment implements View.On
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
EventBus.getDefault().post(new LiveRoomChangeEvent(liveBean, liveType, Integer.parseInt(liveTypeVal)).setLiveEnd(true));
|
EventBus.getDefault().post(new LiveRoomChangeEvent(liveBean, liveType, Integer.parseInt(liveTypeVal)).setLiveEnd(true));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user