埋点配置
This commit is contained in:
parent
bebf0820ca
commit
1a58311e26
@ -168,8 +168,7 @@ public class AppContext extends CommonAppContext {
|
|||||||
//设置LOG开关,默认为false
|
//设置LOG开关,默认为false
|
||||||
UMConfigure.setLogEnabled(true);
|
UMConfigure.setLogEnabled(true);
|
||||||
|
|
||||||
//友盟预初始化
|
|
||||||
UMConfigure.preInit(getApplicationContext(),"64e40ee55488fe7b3afa2c96","PDLive");
|
|
||||||
//友盟正式初始化
|
//友盟正式初始化
|
||||||
UMConfigure.init(getApplicationContext(), "64e40ee55488fe7b3afa2c96", "PDLive", UMConfigure.DEVICE_TYPE_PHONE,
|
UMConfigure.init(getApplicationContext(), "64e40ee55488fe7b3afa2c96", "PDLive", UMConfigure.DEVICE_TYPE_PHONE,
|
||||||
"64e40ee55488fe7b3afa2c96");
|
"64e40ee55488fe7b3afa2c96");
|
||||||
|
@ -3,6 +3,7 @@ package com.yunbao.common.utils;
|
|||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
import android.os.Looper;
|
import android.os.Looper;
|
||||||
|
import android.text.TextUtils;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
import com.yunbao.common.CommonAppConfig;
|
import com.yunbao.common.CommonAppConfig;
|
||||||
@ -151,6 +152,7 @@ public class GiftCacheUtil {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
clickId.add(bean.getId()+"");
|
clickId.add(bean.getId()+"");
|
||||||
|
if (!TextUtils.isEmpty( bean.getSwf())){
|
||||||
getFile(context,getDownloadSaveName(bean.getId()), bean.getSwf(), "0", new CommonCallback<File>() {
|
getFile(context,getDownloadSaveName(bean.getId()), bean.getSwf(), "0", new CommonCallback<File>() {
|
||||||
@Override
|
@Override
|
||||||
public void callback(File bean) {
|
public void callback(File bean) {
|
||||||
@ -163,6 +165,8 @@ public class GiftCacheUtil {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 暂停下载
|
* 暂停下载
|
||||||
*/
|
*/
|
||||||
@ -241,7 +245,7 @@ public class GiftCacheUtil {
|
|||||||
if (clickId.contains(id+"")) {
|
if (clickId.contains(id+"")) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (bean.getSwf().isEmpty()) {
|
if (TextUtils.isEmpty(bean.getSwf())) {
|
||||||
handler.post(() -> commonCallback.callback(null));
|
handler.post(() -> commonCallback.callback(null));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -1054,7 +1054,7 @@ Limited ride And limited avatar frame</string>
|
|||||||
<string name="terms_and_policies">Terms and policies</string>
|
<string name="terms_and_policies">Terms and policies</string>
|
||||||
<string name="install_the_application">For details, please read the following message to install the application:</string>
|
<string name="install_the_application">For details, please read the following message to install the application:</string>
|
||||||
<string name="treat_and_protect">Welcome to PD LIVE. For your personal information and privacy, we will adopt the highest standards of treatment and protection.</string>
|
<string name="treat_and_protect">Welcome to PD LIVE. For your personal information and privacy, we will adopt the highest standards of treatment and protection.</string>
|
||||||
<string name="anti_cheating_services">In order to provide you with one-click sharing service, our product integrates Mob+U-Share SDK, The Mob+SDK needs to collect your device Mac address, unique device identifier (1MEIandroid IDIDFAOPENUDIDGUID, SIM card IMSI information), and public social account information that you need to share in order to complete the one-click sharing service. And through the geographical location calibration report data accuracy, provide basic anti-cheating services. For the sake of your information security, we have made data security and confidentiality agreements with third-party SDK service providers, and these companies will strictly abide by our data privacy and security requirements. We will not share your personally identifiable information with them unless we have your consent. To facilitate you better understand/Mob + data types and USES, and how to protect your personal information, you can log on to https:www.mob.com aboutpolicy understand [Mob +] privacy policy).</string>
|
<string name="anti_cheating_services">In order to provide users with better services, our products integrate [Alliance SDK], SDK needs to collect your device information (IMEI/MAC/Android ID/IDFA/OpenUDID/GUID/IP address /SIM card IMSI information, etc.), In order for you to better understand the types and purposes of the data collected by [Alliance SDK] and how to protect your personal information, you can log on to: https://www.umeng.com/page/policy Learn about [Alliance SDK] Privacy Policy [Alliance +] Privacy Policy [Alliance +], a third-party global big data service provider, providing customers with PC/APP/ offline statistics, advertising effect monitoring, message push/micro community/sharing /IM and other operating tools,DIP, global index and industry reports. https://www.umeng.com/page/policy</string>
|
||||||
<string name="read_and_agre">Clicking Agree means you have read and agree to all of the above.。</string>
|
<string name="read_and_agre">Clicking Agree means you have read and agree to all of the above.。</string>
|
||||||
<string name="agreement">agreement</string>
|
<string name="agreement">agreement</string>
|
||||||
<string name="come_to">Welcome to PD LIVE.</string>
|
<string name="come_to">Welcome to PD LIVE.</string>
|
||||||
|
@ -1080,7 +1080,7 @@
|
|||||||
<string name="terms_and_policies">條款和政策</string>
|
<string name="terms_and_policies">條款和政策</string>
|
||||||
<string name="treat_and_protect">歡迎來到PD LIVE,對於您的個人信息及隱私,我們將採用最高標準對待和保護。</string>
|
<string name="treat_and_protect">歡迎來到PD LIVE,對於您的個人信息及隱私,我們將採用最高標準對待和保護。</string>
|
||||||
<string name="install_the_application">詳情請您閱讀以下安裝應用程序的消息:</string>
|
<string name="install_the_application">詳情請您閱讀以下安裝應用程序的消息:</string>
|
||||||
<string name="anti_cheating_services">為了向您提供一鍵分享服務,我們的產品集成Mob+U-Share SDK,Mob+SDK需要收集您的設備Mac地址、唯一設備識別碼(1MEI/android ID/IDFA/OPENUDID/GUID、 SIM卡IMSI信息)以及您需要分享的社交賬號公開信息,以便完成一鍵分享服務。並通過地理位置校準報表數據準確性,提供基礎反作弊服務。為了您的信息安全,我們已與第三方SDK服務商進行數據安全保密約定,這些公司會嚴格遵守我們的數據隱私和安全要求。 除非得到您的同意,我們不會與其共享您的個人身份信息。為便於您更好地了解[Mob+]采集的數據類型及用途,以及何保護您的個人信息,您可以登陸https://www.mob.com/about/policy了解[Mob+]隱私權政)。</string>
|
<string name="anti_cheating_services">為了給用戶提供更好的服務,我們的產品集成[友盟SDK],SDK需要收集您的设备信息(IMEI/MAC/Android ID/IDFA/OpenUDID/GUID/IP地址/SIM 卡 IMSI 信息等),為便於您更好地了解[友盟SDK]采集的數據類型及用途,以及何保護您的個人信息,您可以登陸:https://www.umeng.com/page/policy 了解[友盟SDK]隱私權政策【友盟+】隐私政策【友盟+】,第三方全域大数据服务提供商,为客户提供PC/APP/线下统计,广告效果监测,消息推送/微社区/分享/IM等运营工具,DIP,全域指数与行业报告等。https://www.umeng.com/page/policy</string>
|
||||||
<string name="agreement">同意</string>
|
<string name="agreement">同意</string>
|
||||||
<string name="read_and_agre">點擊同意後即代表您已閱讀並同意以上所有內容。</string>
|
<string name="read_and_agre">點擊同意後即代表您已閱讀並同意以上所有內容。</string>
|
||||||
<string name="support_login">本應用會收集位置數據以支持登錄和註冊的功能使用。</string>
|
<string name="support_login">本應用會收集位置數據以支持登錄和註冊的功能使用。</string>
|
||||||
|
@ -1080,7 +1080,7 @@
|
|||||||
<string name="terms_and_policies">條款和政策</string>
|
<string name="terms_and_policies">條款和政策</string>
|
||||||
<string name="treat_and_protect">歡迎來到PD LIVE,對於您的個人信息及隱私,我們將採用最高標準對待和保護。</string>
|
<string name="treat_and_protect">歡迎來到PD LIVE,對於您的個人信息及隱私,我們將採用最高標準對待和保護。</string>
|
||||||
<string name="install_the_application">詳情請您閱讀以下安裝應用程序的消息:</string>
|
<string name="install_the_application">詳情請您閱讀以下安裝應用程序的消息:</string>
|
||||||
<string name="anti_cheating_services">為了向您提供一鍵分享服務,我們的產品集成Mob+U-Share SDK,Mob+SDK需要收集您的設備Mac地址、唯一設備識別碼(1MEI/android ID/IDFA/OPENUDID/GUID、 SIM卡IMSI信息)以及您需要分享的社交賬號公開信息,以便完成一鍵分享服務。並通過地理位置校準報表數據準確性,提供基礎反作弊服務。為了您的信息安全,我們已與第三方SDK服務商進行數據安全保密約定,這些公司會嚴格遵守我們的數據隱私和安全要求。 除非得到您的同意,我們不會與其共享您的個人身份信息。為便於您更好地了解[Mob+]采集的數據類型及用途,以及何保護您的個人信息,您可以登陸https://www.mob.com/about/policy了解[Mob+]隱私權政)。</string>
|
<string name="anti_cheating_services">為了給用戶提供更好的服務,我們的產品集成[友盟SDK],SDK需要收集您的设备信息(IMEI/MAC/Android ID/IDFA/OpenUDID/GUID/IP地址/SIM 卡 IMSI 信息等),為便於您更好地了解[友盟SDK]采集的數據類型及用途,以及何保護您的個人信息,您可以登陸:https://www.umeng.com/page/policy 了解[友盟SDK]隱私權政策【友盟+】隐私政策【友盟+】,第三方全域大数据服务提供商,为客户提供PC/APP/线下统计,广告效果监测,消息推送/微社区/分享/IM等运营工具,DIP,全域指数与行业报告等。https://www.umeng.com/page/policy</string>
|
||||||
<string name="agreement">同意</string>
|
<string name="agreement">同意</string>
|
||||||
<string name="read_and_agre">點擊同意後即代表您已閱讀並同意以上所有內容。</string>
|
<string name="read_and_agre">點擊同意後即代表您已閱讀並同意以上所有內容。</string>
|
||||||
<string name="support_login">本應用會收集位置數據以支持登錄和註冊的功能使用。</string>
|
<string name="support_login">本應用會收集位置數據以支持登錄和註冊的功能使用。</string>
|
||||||
|
@ -1080,7 +1080,7 @@
|
|||||||
<string name="terms_and_policies">條款和政策</string>
|
<string name="terms_and_policies">條款和政策</string>
|
||||||
<string name="treat_and_protect">歡迎來到PD LIVE,對於您的個人信息及隱私,我們將採用最高標準對待和保護。</string>
|
<string name="treat_and_protect">歡迎來到PD LIVE,對於您的個人信息及隱私,我們將採用最高標準對待和保護。</string>
|
||||||
<string name="install_the_application">詳情請您閱讀以下安裝應用程序的消息:</string>
|
<string name="install_the_application">詳情請您閱讀以下安裝應用程序的消息:</string>
|
||||||
<string name="anti_cheating_services">為了向您提供一鍵分享服務,我們的產品集成Mob+U-Share SDK,Mob+SDK需要收集您的設備Mac地址、唯一設備識別碼(1MEI/android ID/IDFA/OPENUDID/GUID、 SIM卡IMSI信息)以及您需要分享的社交賬號公開信息,以便完成一鍵分享服務。並通過地理位置校準報表數據準確性,提供基礎反作弊服務。為了您的信息安全,我們已與第三方SDK服務商進行數據安全保密約定,這些公司會嚴格遵守我們的數據隱私和安全要求。 除非得到您的同意,我們不會與其共享您的個人身份信息。為便於您更好地了解[Mob+]採集的數據類型及用途,以及何保護您的個人信息,您可以登陸https://www.mob.com/about/policy了解[Mob+]隱私權政)。</string>
|
<string name="anti_cheating_services">為了給用戶提供更好的服務,我們的產品集成[友盟SDK],SDK需要收集您的设备信息(IMEI/MAC/Android ID/IDFA/OpenUDID/GUID/IP地址/SIM 卡 IMSI 信息等),為便於您更好地了解[友盟SDK]采集的數據類型及用途,以及何保護您的個人信息,您可以登陸:https://www.umeng.com/page/policy 了解[友盟SDK]隱私權政策【友盟+】隐私政策【友盟+】,第三方全域大数据服务提供商,为客户提供PC/APP/线下统计,广告效果监测,消息推送/微社区/分享/IM等运营工具,DIP,全域指数与行业报告等。https://www.umeng.com/page/policy</string>
|
||||||
<string name="agreement">同意</string>
|
<string name="agreement">同意</string>
|
||||||
<string name="read_and_agre">點擊同意後即代表您已閱讀並同意以上所有內容。</string>
|
<string name="read_and_agre">點擊同意後即代表您已閱讀並同意以上所有內容。</string>
|
||||||
<string name="support_login">本應用會收集位置數據以支持登錄和註冊的功能使用。</string>
|
<string name="support_login">本應用會收集位置數據以支持登錄和註冊的功能使用。</string>
|
||||||
|
@ -1054,7 +1054,7 @@ Limited ride And limited avatar frame</string>
|
|||||||
<string name="terms_and_policies">Terms and policies</string>
|
<string name="terms_and_policies">Terms and policies</string>
|
||||||
<string name="install_the_application">For details, please read the following message to install the application:</string>
|
<string name="install_the_application">For details, please read the following message to install the application:</string>
|
||||||
<string name="treat_and_protect">Welcome to PD LIVE. For your personal information and privacy, we will adopt the highest standards of treatment and protection.</string>
|
<string name="treat_and_protect">Welcome to PD LIVE. For your personal information and privacy, we will adopt the highest standards of treatment and protection.</string>
|
||||||
<string name="anti_cheating_services">In order to provide you with one-click sharing service, our product integrates Mob+U-Share SDK, The Mob+SDK needs to collect your device Mac address, unique device identifier (1MEIandroid IDIDFAOPENUDIDGUID, SIM card IMSI information), and public social account information that you need to share in order to complete the one-click sharing service. And through the geographical location calibration report data accuracy, provide basic anti-cheating services. For the sake of your information security, we have made data security and confidentiality agreements with third-party SDK service providers, and these companies will strictly abide by our data privacy and security requirements. We will not share your personally identifiable information with them unless we have your consent. To facilitate you better understand/Mob + data types and USES, and how to protect your personal information, you can log on to https:www.mob.com aboutpolicy understand [Mob +] privacy policy).</string>
|
<string name="anti_cheating_services">In order to provide users with better services, our products integrate [Alliance SDK], SDK needs to collect your device information (IMEI/MAC/Android ID/IDFA/OpenUDID/GUID/IP address /SIM card IMSI information, etc.), In order for you to better understand the types and purposes of the data collected by [Alliance SDK] and how to protect your personal information, you can log on to: https://www.umeng.com/page/policy Learn about [Alliance SDK] Privacy Policy [Alliance +] Privacy Policy [Alliance +], a third-party global big data service provider, providing customers with PC/APP/ offline statistics, advertising effect monitoring, message push/micro community/sharing /IM and other operating tools,DIP, global index and industry reports. https://www.umeng.com/page/policy</string>
|
||||||
<string name="read_and_agre">Clicking Agree means you have read and agree to all of the above.。</string>
|
<string name="read_and_agre">Clicking Agree means you have read and agree to all of the above.。</string>
|
||||||
<string name="agreement">agreement</string>
|
<string name="agreement">agreement</string>
|
||||||
<string name="come_to">Welcome to PD LIVE.</string>
|
<string name="come_to">Welcome to PD LIVE.</string>
|
||||||
|
@ -9,9 +9,9 @@ ext {
|
|||||||
]
|
]
|
||||||
manifestPlaceholders = [
|
manifestPlaceholders = [
|
||||||
//正式、
|
//正式、
|
||||||
serverHost : "https://napi.yaoulive.com",
|
// serverHost : "https://napi.yaoulive.com",
|
||||||
// 测试
|
// 测试
|
||||||
// serverHost : " https://ceshi.yaoulive.com",
|
serverHost : " https://ceshi.yaoulive.com",
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -23,6 +23,7 @@ import androidx.annotation.Nullable;
|
|||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.google.android.material.tabs.TabLayout;
|
import com.google.android.material.tabs.TabLayout;
|
||||||
|
import com.umeng.analytics.MobclickAgent;
|
||||||
import com.yunbao.common.CommonAppConfig;
|
import com.yunbao.common.CommonAppConfig;
|
||||||
import com.yunbao.common.Constants;
|
import com.yunbao.common.Constants;
|
||||||
import com.yunbao.common.bean.ActiveModel;
|
import com.yunbao.common.bean.ActiveModel;
|
||||||
@ -31,11 +32,13 @@ import com.yunbao.common.bean.LiveBean;
|
|||||||
import com.yunbao.common.dialog.AbsDialogFragment;
|
import com.yunbao.common.dialog.AbsDialogFragment;
|
||||||
import com.yunbao.common.event.JavascriptInterfaceEvent;
|
import com.yunbao.common.event.JavascriptInterfaceEvent;
|
||||||
import com.yunbao.common.http.HttpCallback;
|
import com.yunbao.common.http.HttpCallback;
|
||||||
|
import com.yunbao.common.http.LiveHttpUtil;
|
||||||
import com.yunbao.common.http.live.LiveNetManager;
|
import com.yunbao.common.http.live.LiveNetManager;
|
||||||
import com.yunbao.common.utils.Bus;
|
import com.yunbao.common.utils.Bus;
|
||||||
import com.yunbao.common.utils.DpUtil;
|
import com.yunbao.common.utils.DpUtil;
|
||||||
import com.yunbao.common.utils.JavascriptInterfaceUtils;
|
import com.yunbao.common.utils.JavascriptInterfaceUtils;
|
||||||
import com.yunbao.common.utils.L;
|
import com.yunbao.common.utils.L;
|
||||||
|
import com.yunbao.common.utils.LiveRoomCheckLivePresenter;
|
||||||
import com.yunbao.common.utils.RouteUtil;
|
import com.yunbao.common.utils.RouteUtil;
|
||||||
import com.yunbao.common.utils.StringUtil;
|
import com.yunbao.common.utils.StringUtil;
|
||||||
import com.yunbao.common.utils.ToastUtil;
|
import com.yunbao.common.utils.ToastUtil;
|
||||||
@ -43,8 +46,6 @@ import com.yunbao.live.R;
|
|||||||
import com.yunbao.live.activity.LiveActivity;
|
import com.yunbao.live.activity.LiveActivity;
|
||||||
import com.yunbao.live.activity.LiveAudienceActivity;
|
import com.yunbao.live.activity.LiveAudienceActivity;
|
||||||
import com.yunbao.live.activity.LiveRyAnchorActivity;
|
import com.yunbao.live.activity.LiveRyAnchorActivity;
|
||||||
import com.yunbao.common.http.LiveHttpUtil;
|
|
||||||
import com.yunbao.common.utils.LiveRoomCheckLivePresenter;
|
|
||||||
|
|
||||||
import org.greenrobot.eventbus.Subscribe;
|
import org.greenrobot.eventbus.Subscribe;
|
||||||
import org.greenrobot.eventbus.ThreadMode;
|
import org.greenrobot.eventbus.ThreadMode;
|
||||||
@ -202,7 +203,7 @@ public class LiveGameDialogFragment extends AbsDialogFragment {
|
|||||||
@Override
|
@Override
|
||||||
public void onError(String error) {
|
public void onError(String error) {
|
||||||
Log.i("debug", "onError: " + error);
|
Log.i("debug", "onError: " + error);
|
||||||
ToastUtil.show( R.string.net_error);
|
ToastUtil.show(R.string.net_error);
|
||||||
dismiss();
|
dismiss();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -252,6 +253,23 @@ public class LiveGameDialogFragment extends AbsDialogFragment {
|
|||||||
if (tab != null) {
|
if (tab != null) {
|
||||||
tab.select();
|
tab.select();
|
||||||
ActiveModel model = (ActiveModel) tab.getTag();
|
ActiveModel model = (ActiveModel) tab.getTag();
|
||||||
|
switch (model.getActiveName()) {
|
||||||
|
case "闖關熱戀":
|
||||||
|
MobclickAgent.onEvent(mContext, "through_index", "进入闯关页面");
|
||||||
|
break;
|
||||||
|
case "怪物大作戰":
|
||||||
|
MobclickAgent.onEvent(mContext, "plant_index", "进入怪物页面");
|
||||||
|
break;
|
||||||
|
case "甜蜜約會":
|
||||||
|
MobclickAgent.onEvent(mContext, "sweet_index", "进入甜蜜页面");
|
||||||
|
break;
|
||||||
|
case "娛樂整蠱":
|
||||||
|
MobclickAgent.onEvent(mContext, "tricky_index", "进入娱乐整蛊页面");
|
||||||
|
break;
|
||||||
|
case "幸运天使":
|
||||||
|
MobclickAgent.onEvent(mContext, "angel_index", "进入幸运天使页面");
|
||||||
|
break;
|
||||||
|
}
|
||||||
if (model != null) {
|
if (model != null) {
|
||||||
if (!StringUtil.isEmpty(model.getBgColor()) && !"#".equals(model.getBgColor())) {
|
if (!StringUtil.isEmpty(model.getBgColor()) && !"#".equals(model.getBgColor())) {
|
||||||
tabLayout.setBackgroundColor(Color.parseColor(model.getBgColor()));
|
tabLayout.setBackgroundColor(Color.parseColor(model.getBgColor()));
|
||||||
|
@ -10,6 +10,7 @@ import android.view.Window;
|
|||||||
import android.view.WindowManager;
|
import android.view.WindowManager;
|
||||||
import android.widget.Button;
|
import android.widget.Button;
|
||||||
|
|
||||||
|
import com.umeng.commonsdk.UMConfigure;
|
||||||
import com.yunbao.common.dialog.AbsDialogFragment;
|
import com.yunbao.common.dialog.AbsDialogFragment;
|
||||||
import com.yunbao.common.utils.DpUtil;
|
import com.yunbao.common.utils.DpUtil;
|
||||||
import com.yunbao.main.R;
|
import com.yunbao.main.R;
|
||||||
@ -53,6 +54,8 @@ public class LoginTipsDialog extends AbsDialogFragment{
|
|||||||
btn_agree.setOnClickListener(new View.OnClickListener() {
|
btn_agree.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View view) {
|
public void onClick(View view) {
|
||||||
|
//友盟预初始化
|
||||||
|
UMConfigure.preInit(mContext,"64e40ee55488fe7b3afa2c96","PDLive");
|
||||||
EntryActivity.ToLogin();
|
EntryActivity.ToLogin();
|
||||||
dismiss();
|
dismiss();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user