Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
1eca5b0309
@ -17,10 +17,6 @@ import android.util.Log;
|
|||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
|
|
||||||
import com.adjust.sdk.Adjust;
|
|
||||||
import com.adjust.sdk.AdjustConfig;
|
|
||||||
import com.adjust.sdk.AdjustEvent;
|
|
||||||
import com.adjust.sdk.LogLevel;
|
|
||||||
import com.alibaba.android.arouter.launcher.ARouter;
|
import com.alibaba.android.arouter.launcher.ARouter;
|
||||||
import com.blankj.utilcode.util.Utils;
|
import com.blankj.utilcode.util.Utils;
|
||||||
import com.facebook.appevents.AppEventsLogger;
|
import com.facebook.appevents.AppEventsLogger;
|
||||||
@ -38,8 +34,6 @@ import com.yunbao.common.CommonAppConfig;
|
|||||||
import com.yunbao.common.CommonAppContext;
|
import com.yunbao.common.CommonAppContext;
|
||||||
import com.yunbao.common.Constants;
|
import com.yunbao.common.Constants;
|
||||||
import com.yunbao.common.bean.CrashSaveBean;
|
import com.yunbao.common.bean.CrashSaveBean;
|
||||||
import com.yunbao.common.http.CommonHttpUtil;
|
|
||||||
import com.yunbao.common.http.HttpCallback;
|
|
||||||
import com.yunbao.common.manager.imrongcloud.InstructorSendReward;
|
import com.yunbao.common.manager.imrongcloud.InstructorSendReward;
|
||||||
import com.yunbao.common.manager.imrongcloud.InstructorSendRewardProvider;
|
import com.yunbao.common.manager.imrongcloud.InstructorSendRewardProvider;
|
||||||
import com.yunbao.common.manager.imrongcloud.MessageIMManager;
|
import com.yunbao.common.manager.imrongcloud.MessageIMManager;
|
||||||
@ -47,7 +41,6 @@ import com.yunbao.common.manager.imrongcloud.RecommendLiveRoom;
|
|||||||
import com.yunbao.common.manager.imrongcloud.RongcloudIMManager;
|
import com.yunbao.common.manager.imrongcloud.RongcloudIMManager;
|
||||||
import com.yunbao.common.utils.L;
|
import com.yunbao.common.utils.L;
|
||||||
import com.yunbao.common.utils.SpUtil;
|
import com.yunbao.common.utils.SpUtil;
|
||||||
import com.yunbao.faceunity.FaceManager;
|
|
||||||
import com.yunbao.live.socket.SocketRyClient;
|
import com.yunbao.live.socket.SocketRyClient;
|
||||||
import com.yunbao.live.utils.LiveImDeletUtil;
|
import com.yunbao.live.utils.LiveImDeletUtil;
|
||||||
import com.yunbao.live.views.PortraitLiveManager;
|
import com.yunbao.live.views.PortraitLiveManager;
|
||||||
@ -87,12 +80,10 @@ public class AppContext extends CommonAppContext {
|
|||||||
private static final class AdjustLifecycleCallbacks implements ActivityLifecycleCallbacks {
|
private static final class AdjustLifecycleCallbacks implements ActivityLifecycleCallbacks {
|
||||||
@Override
|
@Override
|
||||||
public void onActivityResumed(Activity activity) {
|
public void onActivityResumed(Activity activity) {
|
||||||
Adjust.onResume();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onActivityPaused(Activity activity) {
|
public void onActivityPaused(Activity activity) {
|
||||||
Adjust.onPause();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -163,38 +154,8 @@ public class AppContext extends CommonAppContext {
|
|||||||
OpenInstall.init(this);
|
OpenInstall.init(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
String environment = AdjustConfig.ENVIRONMENT_PRODUCTION;
|
|
||||||
AdjustConfig config = new AdjustConfig(this, "3om5fbglyqdc", environment);
|
|
||||||
if (CommonAppConfig.IS_GOOGLE_PLAY == false) {
|
|
||||||
config.setDefaultTracker("xa7k5ut");
|
|
||||||
}
|
|
||||||
Adjust.onCreate(config);
|
|
||||||
registerActivityLifecycleCallbacks(new AdjustLifecycleCallbacks());
|
registerActivityLifecycleCallbacks(new AdjustLifecycleCallbacks());
|
||||||
config.setLogLevel(LogLevel.WARN);
|
|
||||||
//激活操作记录
|
|
||||||
AdjustEvent adjustEvent = new AdjustEvent("m7wk0c");
|
|
||||||
Adjust.trackEvent(adjustEvent);
|
|
||||||
|
|
||||||
//谷歌激活
|
|
||||||
mFirebaseAnalytics.logEvent("FS_activation", null);
|
|
||||||
|
|
||||||
//FB激活
|
|
||||||
logger.logEvent("FB_activation");
|
|
||||||
|
|
||||||
AdjustEvent adjustEvent2 = new AdjustEvent("p7igfz");
|
|
||||||
Adjust.trackEvent(adjustEvent2);
|
|
||||||
CommonHttpUtil.setAdvertisingChannels("p7igfz", new HttpCallback() {
|
|
||||||
@Override
|
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
|
||||||
if (code == 0) {
|
|
||||||
//谷歌激活
|
|
||||||
mFirebaseAnalytics.logEvent("FS_complete_1st_loading", null);
|
|
||||||
//FB激活
|
|
||||||
logger.logEvent("FB_complete_1st_loading");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
//初始化 AndroidUtilCode
|
//初始化 AndroidUtilCode
|
||||||
Utils.init(this);
|
Utils.init(this);
|
||||||
liveImDeletUtil = new LiveImDeletUtil();
|
liveImDeletUtil = new LiveImDeletUtil();
|
||||||
|
@ -1,10 +1,6 @@
|
|||||||
package com.shayu.phonelive.activity;
|
package com.shayu.phonelive.activity;
|
||||||
|
|
||||||
import static com.yunbao.common.CommonAppContext.logger;
|
|
||||||
import static com.yunbao.common.CommonAppContext.mFirebaseAnalytics;
|
|
||||||
|
|
||||||
import android.Manifest;
|
|
||||||
import android.app.Dialog;
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.os.Build;
|
import android.os.Build;
|
||||||
@ -25,8 +21,6 @@ import androidx.annotation.Nullable;
|
|||||||
import androidx.appcompat.app.AppCompatActivity;
|
import androidx.appcompat.app.AppCompatActivity;
|
||||||
import androidx.core.app.NotificationManagerCompat;
|
import androidx.core.app.NotificationManagerCompat;
|
||||||
|
|
||||||
import com.adjust.sdk.Adjust;
|
|
||||||
import com.adjust.sdk.AdjustEvent;
|
|
||||||
import com.alibaba.android.arouter.facade.annotation.Route;
|
import com.alibaba.android.arouter.facade.annotation.Route;
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
@ -50,7 +44,6 @@ import com.yunbao.common.http.CommonHttpUtil;
|
|||||||
import com.yunbao.common.interfaces.CommonCallback;
|
import com.yunbao.common.interfaces.CommonCallback;
|
||||||
import com.yunbao.common.manager.IMLoginManager;
|
import com.yunbao.common.manager.IMLoginManager;
|
||||||
import com.yunbao.common.manager.imrongcloud.RongcloudIMManager;
|
import com.yunbao.common.manager.imrongcloud.RongcloudIMManager;
|
||||||
import com.yunbao.common.utils.DialogUitl;
|
|
||||||
import com.yunbao.common.utils.DownloadUtil;
|
import com.yunbao.common.utils.DownloadUtil;
|
||||||
import com.yunbao.common.utils.L;
|
import com.yunbao.common.utils.L;
|
||||||
import com.yunbao.common.utils.LogUtil;
|
import com.yunbao.common.utils.LogUtil;
|
||||||
@ -111,14 +104,6 @@ public class LauncherActivity extends AppCompatActivity implements View.OnClickL
|
|||||||
EventBus.getDefault().register(this);
|
EventBus.getDefault().register(this);
|
||||||
setStatusBar();
|
setStatusBar();
|
||||||
setContentView(R.layout.activity_launcher);
|
setContentView(R.layout.activity_launcher);
|
||||||
//开屏
|
|
||||||
AdjustEvent adjustEvent = new AdjustEvent("vjqk8g");
|
|
||||||
Adjust.trackEvent(adjustEvent);
|
|
||||||
|
|
||||||
//谷歌激活
|
|
||||||
mFirebaseAnalytics.logEvent("FS_screen", null);
|
|
||||||
//FB激活
|
|
||||||
logger.logEvent("FB_screen");
|
|
||||||
mContext = this;
|
mContext = this;
|
||||||
mRoot = findViewById(R.id.root);
|
mRoot = findViewById(R.id.root);
|
||||||
mCover = findViewById(R.id.cover);
|
mCover = findViewById(R.id.cover);
|
||||||
|
@ -168,7 +168,6 @@ dependencies {
|
|||||||
transitive = true
|
transitive = true
|
||||||
}
|
}
|
||||||
api 'com.linecorp:linesdk:5.0.1'
|
api 'com.linecorp:linesdk:5.0.1'
|
||||||
api 'com.adjust.sdk:adjust-android:4.30.1'
|
|
||||||
api 'com.android.installreferrer:installreferrer:2.2'
|
api 'com.android.installreferrer:installreferrer:2.2'
|
||||||
//Retrofit2库
|
//Retrofit2库
|
||||||
api 'com.squareup.retrofit2:retrofit:2.3.0'
|
api 'com.squareup.retrofit2:retrofit:2.3.0'
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
package com.yunbao.common;
|
package com.yunbao.common;
|
||||||
|
|
||||||
|
import static com.facebook.FacebookSdk.setAdvertiserIDCollectionEnabled;
|
||||||
|
import static com.facebook.FacebookSdk.setAutoLogAppEventsEnabled;
|
||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.os.Build;
|
import android.os.Build;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
import android.util.Log;
|
||||||
|
|
||||||
import androidx.multidex.MultiDex;
|
import androidx.multidex.MultiDex;
|
||||||
import androidx.multidex.MultiDexApplication;
|
import androidx.multidex.MultiDexApplication;
|
||||||
|
|
||||||
import android.text.TextUtils;
|
|
||||||
import android.util.Log;
|
|
||||||
|
|
||||||
import com.facebook.FacebookSdk;
|
import com.facebook.FacebookSdk;
|
||||||
import com.facebook.appevents.AppEventsLogger;
|
|
||||||
import com.google.android.gms.common.api.ApiException;
|
|
||||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
|
||||||
import com.yunbao.common.http.CommonHttpUtil;
|
import com.yunbao.common.http.CommonHttpUtil;
|
||||||
import com.yunbao.common.utils.L;
|
import com.yunbao.common.utils.L;
|
||||||
|
|
||||||
@ -24,9 +23,6 @@ import io.rong.push.RongPushClient;
|
|||||||
import io.rong.push.pushconfig.PushConfig;
|
import io.rong.push.pushconfig.PushConfig;
|
||||||
import me.leolin.shortcutbadger.ShortcutBadger;
|
import me.leolin.shortcutbadger.ShortcutBadger;
|
||||||
|
|
||||||
import static com.facebook.FacebookSdk.setAdvertiserIDCollectionEnabled;
|
|
||||||
import static com.facebook.FacebookSdk.setAutoLogAppEventsEnabled;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by cxf on 2017/8/3.
|
* Created by cxf on 2017/8/3.
|
||||||
@ -40,8 +36,6 @@ public class CommonAppContext extends MultiDexApplication {
|
|||||||
public static int jpushMsgNum;
|
public static int jpushMsgNum;
|
||||||
public static int Ingroup = 0;
|
public static int Ingroup = 0;
|
||||||
public static String lang = "chinese";
|
public static String lang = "chinese";
|
||||||
public static FirebaseAnalytics mFirebaseAnalytics;
|
|
||||||
public static AppEventsLogger logger;
|
|
||||||
public static boolean isReady = false;
|
public static boolean isReady = false;
|
||||||
public static String home_zdy_img_us = "";
|
public static String home_zdy_img_us = "";
|
||||||
public static String home_zdy_img_cn = "";
|
public static String home_zdy_img_cn = "";
|
||||||
@ -67,13 +61,6 @@ public class CommonAppContext extends MultiDexApplication {
|
|||||||
//初始化友盟统计
|
//初始化友盟统计
|
||||||
// UMConfigure.init(this, UMConfigure.DEVICE_TYPE_PHONE, null);
|
// UMConfigure.init(this, UMConfigure.DEVICE_TYPE_PHONE, null);
|
||||||
FacebookSdk.sdkInitialize(getApplicationContext());
|
FacebookSdk.sdkInitialize(getApplicationContext());
|
||||||
mFirebaseAnalytics = FirebaseAnalytics.getInstance(this);
|
|
||||||
mFirebaseAnalytics.setAnalyticsCollectionEnabled(true);
|
|
||||||
mFirebaseAnalytics.setUserProperty("ALLOW_AD_PERSONALIZATION_SIGNALS", "true" );
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
logger = AppEventsLogger.newLogger(this);
|
|
||||||
setAutoLogAppEventsEnabled(true);
|
setAutoLogAppEventsEnabled(true);
|
||||||
FacebookSdk.fullyInitialize();
|
FacebookSdk.fullyInitialize();
|
||||||
setAdvertiserIDCollectionEnabled(true);
|
setAdvertiserIDCollectionEnabled(true);
|
||||||
@ -85,12 +72,12 @@ public class CommonAppContext extends MultiDexApplication {
|
|||||||
} else {
|
} else {
|
||||||
locale = getResources().getConfiguration().locale;
|
locale = getResources().getConfiguration().locale;
|
||||||
}
|
}
|
||||||
if(locale.getLanguage().equals("en")){
|
if (locale.getLanguage().equals("en")) {
|
||||||
lang = "english";
|
lang = "english";
|
||||||
}else{
|
} else {
|
||||||
lang = "chinese";
|
lang = "chinese";
|
||||||
}
|
}
|
||||||
Log.i("lang",lang);
|
Log.i("lang", lang);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -114,8 +101,8 @@ public class CommonAppContext extends MultiDexApplication {
|
|||||||
if (!mFront) {
|
if (!mFront) {
|
||||||
mFront = true;
|
mFront = true;
|
||||||
L.e("AppContext------->处于前台");
|
L.e("AppContext------->处于前台");
|
||||||
ShortcutBadger.applyCount(activity,0);
|
ShortcutBadger.applyCount(activity, 0);
|
||||||
jpushMsgNum=0;
|
jpushMsgNum = 0;
|
||||||
CommonAppConfig.getInstance().setFrontGround(true);
|
CommonAppConfig.getInstance().setFrontGround(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
package com.yunbao.common.dialog;
|
package com.yunbao.common.dialog;
|
||||||
|
|
||||||
|
import static com.yunbao.common.CommonAppContext.home_zdy_img_cn;
|
||||||
|
import static com.yunbao.common.CommonAppContext.home_zdy_img_us;
|
||||||
|
import static com.yunbao.common.CommonAppContext.lang;
|
||||||
|
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.view.Gravity;
|
import android.view.Gravity;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
@ -12,30 +16,14 @@ import androidx.fragment.app.DialogFragment;
|
|||||||
import androidx.fragment.app.FragmentManager;
|
import androidx.fragment.app.FragmentManager;
|
||||||
import androidx.fragment.app.FragmentTransaction;
|
import androidx.fragment.app.FragmentTransaction;
|
||||||
|
|
||||||
import com.adjust.sdk.Adjust;
|
|
||||||
import com.adjust.sdk.AdjustEvent;
|
|
||||||
import com.alibaba.fastjson.JSON;
|
|
||||||
import com.alibaba.fastjson.JSONObject;
|
|
||||||
import com.facebook.appevents.AppEventsLogger;
|
|
||||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
|
||||||
import com.yunbao.common.CommonAppConfig;
|
|
||||||
import com.yunbao.common.R;
|
import com.yunbao.common.R;
|
||||||
import com.yunbao.common.event.InstructorOperationEvent;
|
import com.yunbao.common.event.InstructorOperationEvent;
|
||||||
import com.yunbao.common.glide.ImgLoader;
|
import com.yunbao.common.glide.ImgLoader;
|
||||||
import com.yunbao.common.http.CommonHttpUtil;
|
|
||||||
import com.yunbao.common.http.HttpCallback;
|
|
||||||
import com.yunbao.common.http.HttpClient;
|
|
||||||
import com.yunbao.common.manager.IMLoginManager;
|
|
||||||
import com.yunbao.common.manager.NoviceInstructorManager;
|
|
||||||
|
|
||||||
import org.greenrobot.eventbus.EventBus;
|
import org.greenrobot.eventbus.EventBus;
|
||||||
|
|
||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
|
|
||||||
import static com.yunbao.common.CommonAppContext.home_zdy_img_cn;
|
|
||||||
import static com.yunbao.common.CommonAppContext.home_zdy_img_us;
|
|
||||||
import static com.yunbao.common.CommonAppContext.lang;
|
|
||||||
|
|
||||||
public class InstructorOperationDialog extends AbsDialogFragment {
|
public class InstructorOperationDialog extends AbsDialogFragment {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -96,40 +84,16 @@ public class InstructorOperationDialog extends AbsDialogFragment {
|
|||||||
public void onActivityCreated(@Nullable Bundle savedInstanceState) {
|
public void onActivityCreated(@Nullable Bundle savedInstanceState) {
|
||||||
super.onActivityCreated(savedInstanceState);
|
super.onActivityCreated(savedInstanceState);
|
||||||
ImageView to_msg = mRootView.findViewById(R.id.to_msg);
|
ImageView to_msg = mRootView.findViewById(R.id.to_msg);
|
||||||
if(lang.equals("english")){
|
if (lang.equals("english")) {
|
||||||
ImgLoader.display(mContext,home_zdy_img_us, to_msg);
|
ImgLoader.display(mContext, home_zdy_img_us, to_msg);
|
||||||
}else{
|
} else {
|
||||||
ImgLoader.display(mContext,home_zdy_img_cn, to_msg);
|
ImgLoader.display(mContext, home_zdy_img_cn, to_msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
mRootView.findViewById(R.id.to_msg).setOnClickListener(new View.OnClickListener() {
|
mRootView.findViewById(R.id.to_msg).setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("82nzkz");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
CommonHttpUtil.setAdvertisingChannels("82nzkz", new HttpCallback() {
|
|
||||||
@Override
|
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
|
||||||
if (code == 0) {
|
|
||||||
FirebaseAnalytics.getInstance(mContext).logEvent("FS_director_enter", null);
|
|
||||||
AppEventsLogger.newLogger(mContext).logEvent("FB_director_enter");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
AdjustEvent adjustEvent2 = new AdjustEvent("ykpmj8");
|
|
||||||
Adjust.trackEvent(adjustEvent2);
|
|
||||||
CommonHttpUtil.setAdvertisingChannels("ykpmj8", new HttpCallback() {
|
|
||||||
@Override
|
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
|
||||||
if (code == 0) {
|
|
||||||
FirebaseAnalytics.getInstance(mContext).logEvent("FS_director_message_box", null);
|
|
||||||
AppEventsLogger.newLogger(mContext).logEvent("FB_director_message_box");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
EventBus.getDefault().post(new InstructorOperationEvent());
|
EventBus.getDefault().post(new InstructorOperationEvent());
|
||||||
dismiss();
|
dismiss();
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,6 @@ import android.content.Context;
|
|||||||
import android.os.Build;
|
import android.os.Build;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
import com.adjust.sdk.Adjust;
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONArray;
|
import com.alibaba.fastjson.JSONArray;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
@ -417,14 +416,14 @@ public class CommonHttpUtil {
|
|||||||
.params("touid", touid)
|
.params("touid", touid)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
|
//
|
||||||
//埋点唯一性
|
// //埋点唯一性
|
||||||
public static void setAdvertisingChannels(String operation, HttpCallback callback) {
|
// public static void setAdvertisingChannels(String operation, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("Tx.setAdvertisingChannels", CommonHttpConsts.GET_USER_BASEINFO)
|
// HttpClient.getInstance().get("Tx.setAdvertisingChannels", CommonHttpConsts.GET_USER_BASEINFO)
|
||||||
.params("operation", operation)
|
// .params("operation", operation)
|
||||||
.params("marking", Adjust.getAdid())
|
// .params("marking", Adjust.getAdid())
|
||||||
.execute(callback);
|
// .execute(callback);
|
||||||
}
|
// }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3,16 +3,8 @@ package com.yunbao.common.manager.imrongcloud;
|
|||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
import com.adjust.sdk.Adjust;
|
|
||||||
import com.adjust.sdk.AdjustEvent;
|
|
||||||
import com.facebook.appevents.AppEventsLogger;
|
|
||||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.yunbao.common.CommonAppContext;
|
|
||||||
import com.yunbao.common.bean.IMLoginModel;
|
import com.yunbao.common.bean.IMLoginModel;
|
||||||
import com.yunbao.common.http.CommonHttpUtil;
|
|
||||||
import com.yunbao.common.http.HttpCallback;
|
|
||||||
import com.yunbao.common.utils.ToastUtil;
|
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -71,7 +63,7 @@ public class PDMessageInterceptor implements MessageInterceptor {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(List<Message> messages) {
|
public void onSuccess(List<Message> messages) {
|
||||||
if (messages.size() == 0||(messages.size()==1&&((TextMessage) messages.get(0).getContent()).getContent().contains("LivePK"))) {
|
if (messages.size() == 0 || (messages.size() == 1 && ((TextMessage) messages.get(0).getContent()).getContent().contains("LivePK"))) {
|
||||||
IMCenter.getInstance().removeConversation(Conversation.ConversationType.PRIVATE, message.getTargetId(), null);
|
IMCenter.getInstance().removeConversation(Conversation.ConversationType.PRIVATE, message.getTargetId(), null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
package="com.yunbao.live">
|
package="com.yunbao.live">
|
||||||
<!--com.kugou.fanxing.allinone.watch.liveroominone.media.FALiveRoomInOneActivity"-->
|
<!--com.kugou.fanxing.allinone.watch.liveroominone.media.FALiveRoomInOneActivity"-->
|
||||||
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||||
<uses-permission android:name="android.permission.VIBRATE" />
|
<uses-permission android:name="android.permission.VIBRATE" />
|
||||||
<application
|
<application
|
||||||
android:allowBackup="true"
|
android:allowBackup="true"
|
||||||
|
@ -24,8 +24,6 @@ import androidx.core.view.WindowInsetsCompat;
|
|||||||
import androidx.core.view.WindowInsetsControllerCompat;
|
import androidx.core.view.WindowInsetsControllerCompat;
|
||||||
import androidx.viewpager.widget.ViewPager;
|
import androidx.viewpager.widget.ViewPager;
|
||||||
|
|
||||||
import com.adjust.sdk.Adjust;
|
|
||||||
import com.adjust.sdk.AdjustEvent;
|
|
||||||
import com.alibaba.android.arouter.facade.annotation.Route;
|
import com.alibaba.android.arouter.facade.annotation.Route;
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONArray;
|
import com.alibaba.fastjson.JSONArray;
|
||||||
@ -1132,8 +1130,6 @@ public class LiveAudienceActivity extends LiveActivity {
|
|||||||
case "3":
|
case "3":
|
||||||
FirebaseAnalytics.getInstance(mContext).logEvent("FS_customer_service", null);
|
FirebaseAnalytics.getInstance(mContext).logEvent("FS_customer_service", null);
|
||||||
AppEventsLogger.newLogger(mContext).logEvent("FB_customer_service");
|
AppEventsLogger.newLogger(mContext).logEvent("FB_customer_service");
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("ww5z2p");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
if (bean.getLink() != null && !"".equals(bean.getLink())) {
|
if (bean.getLink() != null && !"".equals(bean.getLink())) {
|
||||||
WebViewActivity.forward(mContext, bean.getLink());
|
WebViewActivity.forward(mContext, bean.getLink());
|
||||||
} else {
|
} else {
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package com.yunbao.live.activity;
|
package com.yunbao.live.activity;
|
||||||
|
|
||||||
|
|
||||||
import android.annotation.SuppressLint;
|
import android.annotation.SuppressLint;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.graphics.drawable.BitmapDrawable;
|
import android.graphics.drawable.BitmapDrawable;
|
||||||
@ -24,8 +25,6 @@ import androidx.fragment.app.Fragment;
|
|||||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||||
import androidx.recyclerview.widget.RecyclerView;
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
|
|
||||||
import com.adjust.sdk.Adjust;
|
|
||||||
import com.adjust.sdk.AdjustEvent;
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
@ -64,9 +63,6 @@ import io.rong.imlib.model.Message;
|
|||||||
import io.rong.message.RecallNotificationMessage;
|
import io.rong.message.RecallNotificationMessage;
|
||||||
import io.rong.message.TextMessage;
|
import io.rong.message.TextMessage;
|
||||||
|
|
||||||
import static com.yunbao.common.CommonAppContext.logger;
|
|
||||||
import static com.yunbao.common.CommonAppContext.mFirebaseAnalytics;
|
|
||||||
|
|
||||||
public class MyTUIConversationFragment extends Fragment {
|
public class MyTUIConversationFragment extends Fragment {
|
||||||
|
|
||||||
private LinearLayout lt_nodata_msg;
|
private LinearLayout lt_nodata_msg;
|
||||||
@ -168,18 +164,7 @@ public class MyTUIConversationFragment extends Fragment {
|
|||||||
mAdapter.setActionListener(new ImListAdapter.ActionListener() {
|
mAdapter.setActionListener(new ImListAdapter.ActionListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onItemClick(ImUserBean bean) {
|
public void onItemClick(ImUserBean bean) {
|
||||||
if (bean.getContent().equals("在線客服")) {
|
|
||||||
mFirebaseAnalytics.logEvent("FS_customer_service", null);
|
|
||||||
logger.logEvent("FB_customer_service");
|
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("ww5z2p");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
|
|
||||||
} else if (bean.getContent().equals("新手指導員")) {
|
|
||||||
mFirebaseAnalytics.logEvent("FS_guide", null);
|
|
||||||
logger.logEvent("FB_guide", null);
|
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("m0nfpn");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
}
|
|
||||||
if (bean.getLink() != null && !bean.getLink().equals("")) {
|
if (bean.getLink() != null && !bean.getLink().equals("")) {
|
||||||
// startActivity(new Intent(getContext(), ZhuangBanActivity.class).putExtra("url", bean.getLink()));
|
// startActivity(new Intent(getContext(), ZhuangBanActivity.class).putExtra("url", bean.getLink()));
|
||||||
startActivity(new Intent(getContext(), WebViewActivity.class).putExtra("url", bean.getLink()));
|
startActivity(new Intent(getContext(), WebViewActivity.class).putExtra("url", bean.getLink()));
|
||||||
|
@ -8,7 +8,6 @@ import android.text.TextUtils;
|
|||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.WindowManager;
|
import android.view.WindowManager;
|
||||||
import android.view.animation.AnimationUtils;
|
|
||||||
import android.view.inputmethod.InputMethodManager;
|
import android.view.inputmethod.InputMethodManager;
|
||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
@ -18,18 +17,12 @@ import androidx.core.content.ContextCompat;
|
|||||||
import androidx.fragment.app.FragmentManager;
|
import androidx.fragment.app.FragmentManager;
|
||||||
import androidx.fragment.app.FragmentTransaction;
|
import androidx.fragment.app.FragmentTransaction;
|
||||||
|
|
||||||
import com.adjust.sdk.Adjust;
|
|
||||||
import com.adjust.sdk.AdjustEvent;
|
|
||||||
import com.blankj.utilcode.util.GsonUtils;
|
import com.blankj.utilcode.util.GsonUtils;
|
||||||
import com.facebook.appevents.AppEventsLogger;
|
|
||||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
|
||||||
import com.yunbao.common.activity.AbsActivity;
|
import com.yunbao.common.activity.AbsActivity;
|
||||||
import com.yunbao.common.activity.SelectImageActivity;
|
import com.yunbao.common.activity.SelectImageActivity;
|
||||||
import com.yunbao.common.bean.IMLoginModel;
|
import com.yunbao.common.bean.IMLoginModel;
|
||||||
import com.yunbao.common.bean.ImageEntity;
|
import com.yunbao.common.bean.ImageEntity;
|
||||||
import com.yunbao.common.bean.NoviceInstructorModel;
|
import com.yunbao.common.bean.NoviceInstructorModel;
|
||||||
import com.yunbao.common.http.CommonHttpUtil;
|
|
||||||
import com.yunbao.common.http.HttpCallback;
|
|
||||||
import com.yunbao.common.manager.IMLoginManager;
|
import com.yunbao.common.manager.IMLoginManager;
|
||||||
import com.yunbao.common.manager.NoviceInstructorManager;
|
import com.yunbao.common.manager.NoviceInstructorManager;
|
||||||
import com.yunbao.common.manager.imrongcloud.MessageIMManager;
|
import com.yunbao.common.manager.imrongcloud.MessageIMManager;
|
||||||
@ -111,18 +104,6 @@ public class PDLiveConversationActivity extends AbsActivity implements View.OnCl
|
|||||||
}
|
}
|
||||||
isAdmin = true;
|
isAdmin = true;
|
||||||
imgMore.setVisibility(View.GONE);
|
imgMore.setVisibility(View.GONE);
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("exlgn3");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
CommonHttpUtil.setAdvertisingChannels("exlgn3", new HttpCallback() {
|
|
||||||
@Override
|
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
|
||||||
if (code == 0) {
|
|
||||||
FirebaseAnalytics.getInstance(mContext).logEvent("FS_director_read", null);
|
|
||||||
AppEventsLogger.newLogger(mContext).logEvent("FB_director_read");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
} else {//非指导员
|
} else {//非指导员
|
||||||
isAdmin = false;
|
isAdmin = false;
|
||||||
imgMore.setVisibility(View.VISIBLE);
|
imgMore.setVisibility(View.VISIBLE);
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
package com.yunbao.live.activity;
|
package com.yunbao.live.activity;
|
||||||
|
|
||||||
import static com.yunbao.common.CommonAppContext.logger;
|
|
||||||
import static com.yunbao.common.CommonAppContext.mFirebaseAnalytics;
|
|
||||||
|
|
||||||
import android.content.ClipData;
|
import android.content.ClipData;
|
||||||
import android.content.ClipboardManager;
|
import android.content.ClipboardManager;
|
||||||
@ -29,8 +27,6 @@ import android.widget.TextView;
|
|||||||
|
|
||||||
import androidx.annotation.RequiresApi;
|
import androidx.annotation.RequiresApi;
|
||||||
|
|
||||||
import com.adjust.sdk.Adjust;
|
|
||||||
import com.adjust.sdk.AdjustEvent;
|
|
||||||
import com.alibaba.android.arouter.facade.annotation.Route;
|
import com.alibaba.android.arouter.facade.annotation.Route;
|
||||||
import com.opensource.svgaplayer.SVGACallback;
|
import com.opensource.svgaplayer.SVGACallback;
|
||||||
import com.opensource.svgaplayer.SVGADrawable;
|
import com.opensource.svgaplayer.SVGADrawable;
|
||||||
@ -57,6 +53,8 @@ import org.greenrobot.eventbus.ThreadMode;
|
|||||||
import java.net.MalformedURLException;
|
import java.net.MalformedURLException;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
|
|
||||||
|
;
|
||||||
|
|
||||||
@Route(path = RouteUtil.PATH_LiveZHUANGBANACTIVITY)
|
@Route(path = RouteUtil.PATH_LiveZHUANGBANACTIVITY)
|
||||||
public class ZhuangBanActivity extends AbsActivity {
|
public class ZhuangBanActivity extends AbsActivity {
|
||||||
|
|
||||||
@ -371,11 +369,6 @@ public class ZhuangBanActivity extends AbsActivity {
|
|||||||
} catch (MalformedURLException e) {
|
} catch (MalformedURLException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
} else if (TextUtils.equals(event.getMethod(), "AndroidAdjustConsume")) {
|
|
||||||
mFirebaseAnalytics.logEvent("FS_event_interaction", null);
|
|
||||||
logger.logEvent("FB_event_interaction", null);
|
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("rq2c5n");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package com.yunbao.live.adapter;
|
package com.yunbao.live.adapter;
|
||||||
|
|
||||||
|
import android.annotation.SuppressLint;
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
@ -11,8 +12,6 @@ import android.view.ViewGroup;
|
|||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
import androidx.recyclerview.widget.RecyclerView;
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
|
|
||||||
import com.adjust.sdk.Adjust;
|
|
||||||
import com.adjust.sdk.AdjustEvent;
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.facebook.appevents.AppEventsLogger;
|
import com.facebook.appevents.AppEventsLogger;
|
||||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||||
@ -50,6 +49,7 @@ public class SystemChatMessageAdapter extends RecyclerView.Adapter {
|
|||||||
return new SystemChatMessageViewHolder(mInflater.inflate(R.layout.view_system_message_item, parent, false));
|
return new SystemChatMessageViewHolder(mInflater.inflate(R.layout.view_system_message_item, parent, false));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressLint("MissingPermission")
|
||||||
@Override
|
@Override
|
||||||
public void onBindViewHolder(@NonNull RecyclerView.ViewHolder holder, int position) {
|
public void onBindViewHolder(@NonNull RecyclerView.ViewHolder holder, int position) {
|
||||||
ImUserBean model = listUserBean.get(position);
|
ImUserBean model = listUserBean.get(position);
|
||||||
@ -90,8 +90,7 @@ public class SystemChatMessageAdapter extends RecyclerView.Adapter {
|
|||||||
if (model1.getContent().equals("在線客服")) {
|
if (model1.getContent().equals("在線客服")) {
|
||||||
FirebaseAnalytics.getInstance(mContext).logEvent("FS_customer_service", null);
|
FirebaseAnalytics.getInstance(mContext).logEvent("FS_customer_service", null);
|
||||||
AppEventsLogger.newLogger(mContext).logEvent("FB_customer_service");
|
AppEventsLogger.newLogger(mContext).logEvent("FB_customer_service");
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("ww5z2p");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
}
|
}
|
||||||
if (!TextUtils.isEmpty(model1.getLink())) {
|
if (!TextUtils.isEmpty(model1.getLink())) {
|
||||||
mContext.startActivity(new Intent(mContext, WebViewActivity.class).putExtra("url", model1.getLink()));
|
mContext.startActivity(new Intent(mContext, WebViewActivity.class).putExtra("url", model1.getLink()));
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
package com.yunbao.live.dialog;
|
package com.yunbao.live.dialog;
|
||||||
|
|
||||||
import static com.yunbao.common.CommonAppContext.logger;
|
|
||||||
import static com.yunbao.common.CommonAppContext.mFirebaseAnalytics;
|
|
||||||
|
|
||||||
import android.content.DialogInterface;
|
import android.content.DialogInterface;
|
||||||
import android.graphics.Color;
|
import android.graphics.Color;
|
||||||
@ -22,8 +20,6 @@ import android.widget.LinearLayout;
|
|||||||
|
|
||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
|
|
||||||
import com.adjust.sdk.Adjust;
|
|
||||||
import com.adjust.sdk.AdjustEvent;
|
|
||||||
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;
|
||||||
@ -368,11 +364,6 @@ public class LiveGameDialogFragment extends AbsDialogFragment {
|
|||||||
if (event.getData() != null && !event.getData().isEmpty()) {
|
if (event.getData() != null && !event.getData().isEmpty()) {
|
||||||
onTrickerySendGiftInto(new JsWishBean(event.getData()));
|
onTrickerySendGiftInto(new JsWishBean(event.getData()));
|
||||||
}
|
}
|
||||||
} else if (TextUtils.equals(event.getMethod(), "AndroidAdjustPrank")) {
|
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("v1nekv");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
mFirebaseAnalytics.logEvent("FS_prank_interaction", null);
|
|
||||||
logger.logEvent("FB_prank_interaction", null);
|
|
||||||
} else if (TextUtils.equals(event.getMethod(), "androidMethodClickUser")) {
|
} else if (TextUtils.equals(event.getMethod(), "androidMethodClickUser")) {
|
||||||
if (!(mContext instanceof LiveRyAnchorActivity)) {
|
if (!(mContext instanceof LiveRyAnchorActivity)) {
|
||||||
//点击用户头像
|
//点击用户头像
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
package com.yunbao.live.dialog;
|
package com.yunbao.live.dialog;
|
||||||
|
|
||||||
import static com.yunbao.common.CommonAppConfig.isGetNewWrap;
|
import static com.yunbao.common.CommonAppConfig.isGetNewWrap;
|
||||||
import static com.yunbao.common.CommonAppContext.logger;
|
|
||||||
import static com.yunbao.common.CommonAppContext.mFirebaseAnalytics;
|
|
||||||
import static com.yunbao.common.utils.RouteUtil.PATH_COIN;
|
import static com.yunbao.common.utils.RouteUtil.PATH_COIN;
|
||||||
import static com.yunbao.live.views.LiveRoomViewHolder.bean1;
|
import static com.yunbao.live.views.LiveRoomViewHolder.bean1;
|
||||||
|
|
||||||
@ -32,8 +30,7 @@ import androidx.recyclerview.widget.LinearLayoutManager;
|
|||||||
import androidx.recyclerview.widget.RecyclerView;
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
import androidx.viewpager.widget.ViewPager;
|
import androidx.viewpager.widget.ViewPager;
|
||||||
|
|
||||||
import com.adjust.sdk.Adjust;
|
|
||||||
import com.adjust.sdk.AdjustEvent;
|
|
||||||
import com.alibaba.android.arouter.launcher.ARouter;
|
import com.alibaba.android.arouter.launcher.ARouter;
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONArray;
|
import com.alibaba.fastjson.JSONArray;
|
||||||
@ -728,10 +725,6 @@ public class LiveGiftDialogFragment extends AbsDialogFragment implements View.On
|
|||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
if (code == 0) {
|
if (code == 0) {
|
||||||
mFirebaseAnalytics.logEvent("FS_present_interaction", null);
|
|
||||||
logger.logEvent("FB_present_interaction");
|
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("22x4u2");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
if (mLiveGiftBean.getSwf().contains("svga")) {
|
if (mLiveGiftBean.getSwf().contains("svga")) {
|
||||||
LiveGiftDialogFragment.this.dismiss();
|
LiveGiftDialogFragment.this.dismiss();
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
package com.yunbao.live.dialog;
|
package com.yunbao.live.dialog;
|
||||||
|
|
||||||
import static com.yunbao.common.CommonAppContext.logger;
|
|
||||||
import static com.yunbao.common.CommonAppContext.mFirebaseAnalytics;
|
|
||||||
|
|
||||||
import android.content.DialogInterface;
|
import android.content.DialogInterface;
|
||||||
import android.graphics.Color;
|
import android.graphics.Color;
|
||||||
@ -28,8 +26,6 @@ import androidx.annotation.NonNull;
|
|||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
import androidx.fragment.app.FragmentManager;
|
import androidx.fragment.app.FragmentManager;
|
||||||
|
|
||||||
import com.adjust.sdk.Adjust;
|
|
||||||
import com.adjust.sdk.AdjustEvent;
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.yunbao.common.Constants;
|
import com.yunbao.common.Constants;
|
||||||
@ -209,9 +205,9 @@ public class LiveHDDialogFragment extends AbsDialogFragment {
|
|||||||
// 这个方法在6.0才出现
|
// 这个方法在6.0才出现
|
||||||
int statusCode = errorResponse.getStatusCode();
|
int statusCode = errorResponse.getStatusCode();
|
||||||
if (404 == statusCode || 500 == statusCode) {
|
if (404 == statusCode || 500 == statusCode) {
|
||||||
if ( !request.getUrl().toString().contains("favicon")){
|
if (!request.getUrl().toString().contains("favicon")) {
|
||||||
htmlError.setVisibility(View.VISIBLE);
|
htmlError.setVisibility(View.VISIBLE);
|
||||||
htmlError.setText("errorCode:" + statusCode +"\n failingUrl:" + request.getUrl());
|
htmlError.setText("errorCode:" + statusCode + "\n failingUrl:" + request.getUrl());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -313,11 +309,6 @@ public class LiveHDDialogFragment extends AbsDialogFragment {
|
|||||||
if (event.getData() != null && !event.getData().isEmpty()) {
|
if (event.getData() != null && !event.getData().isEmpty()) {
|
||||||
onTrickerySendGiftInto(new JsWishBean(event.getData()));
|
onTrickerySendGiftInto(new JsWishBean(event.getData()));
|
||||||
}
|
}
|
||||||
} else if (TextUtils.equals(event.getMethod(), "AndroidAdjustPrank")) {
|
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("v1nekv");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
mFirebaseAnalytics.logEvent("FS_prank_interaction", null);
|
|
||||||
logger.logEvent("FB_prank_interaction", null);
|
|
||||||
} else if (TextUtils.equals(event.getMethod(), "androidMethodClickUser")) {
|
} else if (TextUtils.equals(event.getMethod(), "androidMethodClickUser")) {
|
||||||
//点击用户头像
|
//点击用户头像
|
||||||
if (!(mContext instanceof LiveRyAnchorActivity)) {
|
if (!(mContext instanceof LiveRyAnchorActivity)) {
|
||||||
|
@ -11,15 +11,9 @@ import androidx.annotation.Nullable;
|
|||||||
import androidx.fragment.app.DialogFragment;
|
import androidx.fragment.app.DialogFragment;
|
||||||
import androidx.fragment.app.FragmentManager;
|
import androidx.fragment.app.FragmentManager;
|
||||||
import androidx.fragment.app.FragmentTransaction;
|
import androidx.fragment.app.FragmentTransaction;
|
||||||
|
|
||||||
import com.adjust.sdk.Adjust;
|
|
||||||
import com.adjust.sdk.AdjustEvent;
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.facebook.appevents.AppEventsLogger;
|
|
||||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
|
||||||
import com.yunbao.common.dialog.AbsDialogFragment;
|
import com.yunbao.common.dialog.AbsDialogFragment;
|
||||||
import com.yunbao.common.http.CommonHttpUtil;
|
|
||||||
import com.yunbao.common.http.HttpCallback;
|
import com.yunbao.common.http.HttpCallback;
|
||||||
import com.yunbao.common.manager.IMLoginManager;
|
import com.yunbao.common.manager.IMLoginManager;
|
||||||
import com.yunbao.live.R;
|
import com.yunbao.live.R;
|
||||||
@ -110,17 +104,6 @@ public class NewUserDialog extends AbsDialogFragment {
|
|||||||
btn_confirm.setOnClickListener(new View.OnClickListener() {
|
btn_confirm.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View view) {
|
public void onClick(View view) {
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("a50ofs");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
CommonHttpUtil.setAdvertisingChannels("a50ofs", new HttpCallback() {
|
|
||||||
@Override
|
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
|
||||||
if (code == 0) {
|
|
||||||
FirebaseAnalytics.getInstance(mContext).logEvent("FS_newbie_reward", null);
|
|
||||||
AppEventsLogger.newLogger(mContext).logEvent("FB_newbie_reward");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
EventBus.getDefault().post("showBanner");
|
EventBus.getDefault().post("showBanner");
|
||||||
EventBus.getDefault().post("svga_new_user_gif");
|
EventBus.getDefault().post("svga_new_user_gif");
|
||||||
IMLoginManager.get(mContext).setNewUserGif(true);
|
IMLoginManager.get(mContext).setNewUserGif(true);
|
||||||
|
@ -18,18 +18,12 @@ import androidx.core.content.ContextCompat;
|
|||||||
import androidx.fragment.app.FragmentManager;
|
import androidx.fragment.app.FragmentManager;
|
||||||
import androidx.fragment.app.FragmentTransaction;
|
import androidx.fragment.app.FragmentTransaction;
|
||||||
|
|
||||||
import com.adjust.sdk.Adjust;
|
|
||||||
import com.adjust.sdk.AdjustEvent;
|
|
||||||
import com.blankj.utilcode.util.GsonUtils;
|
import com.blankj.utilcode.util.GsonUtils;
|
||||||
import com.facebook.appevents.AppEventsLogger;
|
|
||||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
|
||||||
import com.yunbao.common.activity.SelectImageActivity;
|
import com.yunbao.common.activity.SelectImageActivity;
|
||||||
import com.yunbao.common.bean.IMLoginModel;
|
import com.yunbao.common.bean.IMLoginModel;
|
||||||
import com.yunbao.common.bean.ImageEntity;
|
import com.yunbao.common.bean.ImageEntity;
|
||||||
import com.yunbao.common.bean.NoviceInstructorModel;
|
import com.yunbao.common.bean.NoviceInstructorModel;
|
||||||
import com.yunbao.common.dialog.AbsDialogFragment;
|
import com.yunbao.common.dialog.AbsDialogFragment;
|
||||||
import com.yunbao.common.http.CommonHttpUtil;
|
|
||||||
import com.yunbao.common.http.HttpCallback;
|
|
||||||
import com.yunbao.common.manager.IMLoginManager;
|
import com.yunbao.common.manager.IMLoginManager;
|
||||||
import com.yunbao.common.manager.NoviceInstructorManager;
|
import com.yunbao.common.manager.NoviceInstructorManager;
|
||||||
import com.yunbao.live.R;
|
import com.yunbao.live.R;
|
||||||
@ -58,6 +52,7 @@ public class PDLIiveChatConversationFragment extends AbsDialogFragment implement
|
|||||||
private final int SELECT_IMAGE_REQUEST = 0x0001;
|
private final int SELECT_IMAGE_REQUEST = 0x0001;
|
||||||
private ArrayList<ImageEntity> mSelectImages = new ArrayList<>();
|
private ArrayList<ImageEntity> mSelectImages = new ArrayList<>();
|
||||||
private boolean isAdmin = false;
|
private boolean isAdmin = false;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected int getLayoutId() {
|
protected int getLayoutId() {
|
||||||
return R.layout.fragment_chat_conversation;
|
return R.layout.fragment_chat_conversation;
|
||||||
@ -139,18 +134,6 @@ public class PDLIiveChatConversationFragment extends AbsDialogFragment implement
|
|||||||
if (!TextUtils.isEmpty(userBean.getIs_admin()) && TextUtils.equals(userBean.getIs_admin(), "1")) {
|
if (!TextUtils.isEmpty(userBean.getIs_admin()) && TextUtils.equals(userBean.getIs_admin(), "1")) {
|
||||||
isAdmin = true;
|
isAdmin = true;
|
||||||
imgMore.setVisibility(View.GONE);
|
imgMore.setVisibility(View.GONE);
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("exlgn3");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
CommonHttpUtil.setAdvertisingChannels("exlgn3", new HttpCallback() {
|
|
||||||
@Override
|
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
|
||||||
if (code == 0) {
|
|
||||||
FirebaseAnalytics.getInstance(mContext).logEvent("FS_director_read", null);
|
|
||||||
AppEventsLogger.newLogger(mContext).logEvent("FB_director_read");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
} else {//非指导员
|
} else {//非指导员
|
||||||
isAdmin = false;
|
isAdmin = false;
|
||||||
imgMore.setVisibility(View.VISIBLE);
|
imgMore.setVisibility(View.VISIBLE);
|
||||||
@ -202,6 +185,7 @@ public class PDLIiveChatConversationFragment extends AbsDialogFragment implement
|
|||||||
startActivityForResult(intent, SELECT_IMAGE_REQUEST);
|
startActivityForResult(intent, SELECT_IMAGE_REQUEST);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取草稿箱信息系
|
* 获取草稿箱信息系
|
||||||
*/
|
*/
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
package com.yunbao.live.presenter;
|
package com.yunbao.live.presenter;
|
||||||
|
|
||||||
import android.Manifest;
|
import android.Manifest;
|
||||||
import android.annotation.SuppressLint;
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.app.Dialog;
|
import android.app.Dialog;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
@ -20,19 +19,15 @@ import android.widget.PopupWindow;
|
|||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
||||||
|
|
||||||
import com.adjust.sdk.Adjust;
|
|
||||||
import com.adjust.sdk.AdjustEvent;
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.facebook.appevents.AppEventsLogger;
|
|
||||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
|
||||||
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.BannerBean;
|
import com.yunbao.common.bean.BannerBean;
|
||||||
import com.yunbao.common.bean.LevelBean;
|
import com.yunbao.common.bean.LevelBean;
|
||||||
import com.yunbao.common.bean.UserBean;
|
import com.yunbao.common.bean.UserBean;
|
||||||
import com.yunbao.common.glide.ImgLoader;
|
import com.yunbao.common.glide.ImgLoader;
|
||||||
import com.yunbao.common.http.CommonHttpUtil;
|
|
||||||
import com.yunbao.common.http.HttpCallback;
|
import com.yunbao.common.http.HttpCallback;
|
||||||
import com.yunbao.common.http.HttpClient;
|
import com.yunbao.common.http.HttpClient;
|
||||||
import com.yunbao.common.utils.ClickUtil;
|
import com.yunbao.common.utils.ClickUtil;
|
||||||
@ -117,82 +112,10 @@ public class LiveLinkMicPresenter implements View.OnClickListener {
|
|||||||
@Subscribe(threadMode = ThreadMode.MAIN)
|
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||||
public void onUpdata(String str) {
|
public void onUpdata(String str) {
|
||||||
if ("stop_svga_new_user_double1".equals(str)) {
|
if ("stop_svga_new_user_double1".equals(str)) {
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("80lzdi");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
CommonHttpUtil.setAdvertisingChannels("80lzdi", new HttpCallback() {
|
|
||||||
@SuppressLint("MissingPermission")
|
|
||||||
@Override
|
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
|
||||||
if (code == 0) {
|
|
||||||
FirebaseAnalytics.getInstance(mContext).logEvent("FS_mission_3", null);
|
|
||||||
AppEventsLogger.newLogger(mContext).logEvent("FB_mission_3");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
AdjustEvent adjustEvent2 = new AdjustEvent("6va52i");
|
|
||||||
Adjust.trackEvent(adjustEvent2);
|
|
||||||
CommonHttpUtil.setAdvertisingChannels("6va52i", new HttpCallback() {
|
|
||||||
@SuppressLint("MissingPermission")
|
|
||||||
@Override
|
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
|
||||||
if (code == 0) {
|
|
||||||
FirebaseAnalytics.getInstance(mContext).logEvent("FS_mission_either", null);
|
|
||||||
AppEventsLogger.newLogger(mContext).logEvent("FB_mission_either");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
publicToast(mContext);
|
publicToast(mContext);
|
||||||
} else if ("stop_svga_new_user_follow1".equals(str)) {
|
} else if ("stop_svga_new_user_follow1".equals(str)) {
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("f084wh");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
CommonHttpUtil.setAdvertisingChannels("f084wh", new HttpCallback() {
|
|
||||||
@SuppressLint("MissingPermission")
|
|
||||||
@Override
|
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
|
||||||
if (code == 0) {
|
|
||||||
FirebaseAnalytics.getInstance(mContext).logEvent("FS_mission_2", null);
|
|
||||||
AppEventsLogger.newLogger(mContext).logEvent("FB_mission_2");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
AdjustEvent adjustEvent2 = new AdjustEvent("6va52i");
|
|
||||||
Adjust.trackEvent(adjustEvent2);
|
|
||||||
CommonHttpUtil.setAdvertisingChannels("6va52i", new HttpCallback() {
|
|
||||||
@SuppressLint("MissingPermission")
|
|
||||||
@Override
|
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
|
||||||
if (code == 0) {
|
|
||||||
FirebaseAnalytics.getInstance(mContext).logEvent("FS_mission_either", null);
|
|
||||||
AppEventsLogger.newLogger(mContext).logEvent("FB_mission_either");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
publicToast(mContext);
|
publicToast(mContext);
|
||||||
} else if ("stop_new_user_gif1".equals(str)) {
|
} else if ("stop_new_user_gif1".equals(str)) {
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("aqqz70");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
CommonHttpUtil.setAdvertisingChannels("aqqz70", new HttpCallback() {
|
|
||||||
@SuppressLint("MissingPermission")
|
|
||||||
@Override
|
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
|
||||||
if (code == 0) {
|
|
||||||
FirebaseAnalytics.getInstance(mContext).logEvent("FS_mission_1", null);
|
|
||||||
AppEventsLogger.newLogger(mContext).logEvent("FB_mission_1");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
AdjustEvent adjustEvent2 = new AdjustEvent("6va52i");
|
|
||||||
Adjust.trackEvent(adjustEvent2);
|
|
||||||
CommonHttpUtil.setAdvertisingChannels("6va52i", new HttpCallback() {
|
|
||||||
@SuppressLint("MissingPermission")
|
|
||||||
@Override
|
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
|
||||||
if (code == 0) {
|
|
||||||
FirebaseAnalytics.getInstance(mContext).logEvent("FS_mission_either", null);
|
|
||||||
AppEventsLogger.newLogger(mContext).logEvent("FB_mission_either");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
publicToast(mContext);
|
publicToast(mContext);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -857,6 +780,6 @@ public class LiveLinkMicPresenter implements View.OnClickListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setLiveSdk(int mLiveSDK) {
|
public void setLiveSdk(int mLiveSDK) {
|
||||||
this.mLiveSdk=mLiveSDK;
|
this.mLiveSdk = mLiveSDK;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,18 +1,13 @@
|
|||||||
package com.yunbao.live.socket;
|
package com.yunbao.live.socket;
|
||||||
|
|
||||||
import static com.yunbao.common.CommonAppContext.logger;
|
|
||||||
import static com.yunbao.common.CommonAppContext.mFirebaseAnalytics;
|
|
||||||
|
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
import com.adjust.sdk.Adjust;
|
|
||||||
import com.adjust.sdk.AdjustEvent;
|
|
||||||
import com.yunbao.common.CommonAppConfig;
|
import com.yunbao.common.CommonAppConfig;
|
||||||
import com.yunbao.common.CommonAppContext;
|
import com.yunbao.common.CommonAppContext;
|
||||||
import com.yunbao.common.Constants;
|
import com.yunbao.common.Constants;
|
||||||
import com.yunbao.common.bean.IMLoginModel;
|
import com.yunbao.common.bean.IMLoginModel;
|
||||||
import com.yunbao.common.bean.UserBean;
|
import com.yunbao.common.bean.UserBean;
|
||||||
import com.yunbao.common.http.CommonHttpUtil;
|
|
||||||
import com.yunbao.common.http.HttpCallback;
|
import com.yunbao.common.http.HttpCallback;
|
||||||
import com.yunbao.common.manager.IMLoginManager;
|
import com.yunbao.common.manager.IMLoginManager;
|
||||||
import com.yunbao.common.utils.ToastUtil;
|
import com.yunbao.common.utils.ToastUtil;
|
||||||
@ -130,24 +125,6 @@ public class SocketRyChatUtil {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(Message message) {
|
public void onSuccess(Message message) {
|
||||||
Log.i("tx", "ssss" + "发送成功" + mLiveUid);
|
|
||||||
//首发言成功
|
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("j7isvr");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
CommonHttpUtil.setAdvertisingChannels("j7isvr", new HttpCallback() {
|
|
||||||
@Override
|
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
|
||||||
if (code == 0) {
|
|
||||||
mFirebaseAnalytics.logEvent("FS_liveinteraction", null);
|
|
||||||
logger.logEvent("FB_liveinteraction ");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
mFirebaseAnalytics.logEvent("FS_type_interaction", null);
|
|
||||||
logger.logEvent("FB_type_interaction");
|
|
||||||
AdjustEvent adjustEvent = new AdjustEvent("cs6j0s");
|
|
||||||
Adjust.trackEvent(adjustEvent);
|
|
||||||
if (SocketRyClient.mSocketHandler != null) {
|
if (SocketRyClient.mSocketHandler != null) {
|
||||||
SocketRyClient.mSocketHandler.processBroadcast(msg.mResult.toString() + "");
|
SocketRyClient.mSocketHandler.processBroadcast(msg.mResult.toString() + "");
|
||||||
}
|
}
|
||||||
|
@ -16,12 +16,8 @@ import android.widget.LinearLayout;
|
|||||||
|
|
||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
|
|
||||||
import com.adjust.sdk.Adjust;
|
|
||||||
import com.adjust.sdk.AdjustEvent;
|
|
||||||
import com.facebook.appevents.AppEventsLogger;
|
import com.facebook.appevents.AppEventsLogger;
|
||||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||||
import com.yunbao.common.http.CommonHttpUtil;
|
|
||||||
import com.yunbao.common.http.HttpCallback;
|
|
||||||
import com.yunbao.common.manager.NoviceInstructorManager;
|
import com.yunbao.common.manager.NoviceInstructorManager;
|
||||||
import com.yunbao.common.utils.FileUtil;
|
import com.yunbao.common.utils.FileUtil;
|
||||||
import com.yunbao.common.utils.TimeUtils;
|
import com.yunbao.common.utils.TimeUtils;
|
||||||
@ -175,20 +171,7 @@ public class InputPanelViewHolder extends LinearLayout implements View.OnClickLi
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(Message message) {
|
public void onSuccess(Message message) {
|
||||||
if(isAdmin){
|
if (isAdmin) {
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("2kjbwx");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
CommonHttpUtil.setAdvertisingChannels("2kjbwx", new HttpCallback() {
|
|
||||||
@Override
|
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
|
||||||
if (code == 0) {
|
|
||||||
FirebaseAnalytics.getInstance(getContext()).logEvent("FS_director_first_chat", null);
|
|
||||||
AppEventsLogger.newLogger(getContext()).logEvent("FB_director_first_chat");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
AdjustEvent adjustEvent2 = new AdjustEvent("g9lzss");
|
|
||||||
Adjust.trackEvent(adjustEvent2);
|
|
||||||
FirebaseAnalytics.getInstance(getContext()).logEvent("FS_director_chat", null);
|
FirebaseAnalytics.getInstance(getContext()).logEvent("FS_director_chat", null);
|
||||||
AppEventsLogger.newLogger(getContext()).logEvent("FB_director_chat");
|
AppEventsLogger.newLogger(getContext()).logEvent("FB_director_chat");
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
package com.yunbao.live.views;
|
package com.yunbao.live.views;
|
||||||
|
|
||||||
import static com.yunbao.common.CommonAppContext.logger;
|
|
||||||
import static com.yunbao.common.CommonAppContext.mFirebaseAnalytics;
|
|
||||||
import static com.yunbao.live.bean.LiveChatBean.RECOMMEND_CARD_NOTIFY;
|
import static com.yunbao.live.bean.LiveChatBean.RECOMMEND_CARD_NOTIFY;
|
||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
@ -38,8 +36,6 @@ import androidx.constraintlayout.widget.ConstraintLayout;
|
|||||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||||
import androidx.recyclerview.widget.RecyclerView;
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
|
|
||||||
import com.adjust.sdk.Adjust;
|
|
||||||
import com.adjust.sdk.AdjustEvent;
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONArray;
|
import com.alibaba.fastjson.JSONArray;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
@ -1947,7 +1943,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
public void run() {
|
public void run() {
|
||||||
goto_room_view.setVisibility(View.VISIBLE);
|
goto_room_view.setVisibility(View.VISIBLE);
|
||||||
touid = touids;
|
touid = touids;
|
||||||
pkUid=touids;
|
pkUid = touids;
|
||||||
ImgLoader.displayAvatar(mContext, url, avatarOther);
|
ImgLoader.displayAvatar(mContext, url, avatarOther);
|
||||||
tv_avatarOther_name.setText(name);
|
tv_avatarOther_name.setText(name);
|
||||||
goto_room_view.setOnClickListener(new View.OnClickListener() {
|
goto_room_view.setOnClickListener(new View.OnClickListener() {
|
||||||
@ -2309,11 +2305,6 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
@Override
|
@Override
|
||||||
public void callback(Integer isAttention) {
|
public void callback(Integer isAttention) {
|
||||||
if (isAttention == 1) {
|
if (isAttention == 1) {
|
||||||
mFirebaseAnalytics.logEvent("FS_Follow", null);
|
|
||||||
logger.logEvent("FB_Follow", null);
|
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("oess6a");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
// SocketChatUtil.sendSystemMessage(mLiveUid, CommonAppConfig.getInstance().getUserBean().getUserNiceName() + WordUtil.getString(R.string.live_follow_anchor));
|
|
||||||
LiveActivity.sendSystemMessage(
|
LiveActivity.sendSystemMessage(
|
||||||
CommonAppConfig.getInstance().getUserBean().getUserNiceName() + WordUtil.getString(R.string.live_follow_anchor));
|
CommonAppConfig.getInstance().getUserBean().getUserNiceName() + WordUtil.getString(R.string.live_follow_anchor));
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
package com.yunbao.live.views;
|
package com.yunbao.live.views;
|
||||||
|
|
||||||
import static com.yunbao.common.CommonAppContext.logger;
|
|
||||||
import static com.yunbao.common.CommonAppContext.mFirebaseAnalytics;
|
|
||||||
import static com.yunbao.live.views.LivePlayRyViewHolder.Micing;
|
import static com.yunbao.live.views.LivePlayRyViewHolder.Micing;
|
||||||
import static com.yunbao.live.views.LiveRoomViewHolder.isStayRoomfive;
|
import static com.yunbao.live.views.LiveRoomViewHolder.isStayRoomfive;
|
||||||
|
|
||||||
@ -23,13 +21,10 @@ import androidx.annotation.NonNull;
|
|||||||
import androidx.drawerlayout.widget.DrawerLayout;
|
import androidx.drawerlayout.widget.DrawerLayout;
|
||||||
import androidx.viewpager.widget.PagerAdapter;
|
import androidx.viewpager.widget.PagerAdapter;
|
||||||
|
|
||||||
import com.adjust.sdk.Adjust;
|
|
||||||
import com.adjust.sdk.AdjustEvent;
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONArray;
|
import com.alibaba.fastjson.JSONArray;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.blankj.utilcode.util.GsonUtils;
|
import com.blankj.utilcode.util.GsonUtils;
|
||||||
import com.facebook.appevents.AppEventsLogger;
|
|
||||||
import com.lzf.easyfloat.EasyFloat;
|
import com.lzf.easyfloat.EasyFloat;
|
||||||
import com.lzf.easyfloat.permission.PermissionUtils;
|
import com.lzf.easyfloat.permission.PermissionUtils;
|
||||||
import com.lzf.easyfloat.utils.LifecycleUtils;
|
import com.lzf.easyfloat.utils.LifecycleUtils;
|
||||||
@ -446,8 +441,6 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onResume() {
|
public void onResume() {
|
||||||
// if (mLivePlayViewHolder != null)
|
|
||||||
// mLivePlayViewHolder.onResume();
|
|
||||||
//判断是否有直播悬浮窗,有直接关闭
|
//判断是否有直播悬浮窗,有直接关闭
|
||||||
if (EasyFloat.isShow("LiveFloatView")) {
|
if (EasyFloat.isShow("LiveFloatView")) {
|
||||||
EasyFloat.dismiss("LiveFloatView", true);
|
EasyFloat.dismiss("LiveFloatView", true);
|
||||||
@ -1141,66 +1134,6 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
|||||||
.setmDanMuLevel(mDanMuLevel)
|
.setmDanMuLevel(mDanMuLevel)
|
||||||
.setLiveBg(liveBg)));
|
.setLiveBg(liveBg)));
|
||||||
|
|
||||||
|
|
||||||
//进入直播间
|
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("hiepcu");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
mFirebaseAnalytics.logEvent("FS_enterroom", null);
|
|
||||||
logger.logEvent("FB_enterroom");
|
|
||||||
|
|
||||||
AdjustEvent adjustEvent2 = new AdjustEvent("unutgg");
|
|
||||||
Adjust.trackEvent(adjustEvent2);
|
|
||||||
CommonHttpUtil.setAdvertisingChannels("unutgg", new HttpCallback() {
|
|
||||||
@Override
|
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
|
||||||
if (code == 0) {
|
|
||||||
mFirebaseAnalytics.logEvent("FS_first_Enterroom", null);
|
|
||||||
AppEventsLogger.newLogger(mContext).logEvent("FB_first_Enterroom");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
//观看1分钟
|
|
||||||
if (obj.getLongValue("see_time") >= 60) {
|
|
||||||
AdjustEvent good_user = new AdjustEvent("7zxuxz");
|
|
||||||
Adjust.trackEvent(good_user);
|
|
||||||
CommonHttpUtil.setAdvertisingChannels("7zxuxz", new HttpCallback() {
|
|
||||||
@Override
|
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
|
||||||
if (code == 0) {
|
|
||||||
mFirebaseAnalytics.logEvent("FS_enter_app_1min", null);
|
|
||||||
logger.logEvent("FB_enter_app_1min", null);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
if (obj.getLongValue("see_time") >= 600 && obj.getIntValue("un_charge") == 1) {
|
|
||||||
AdjustEvent good_user = new AdjustEvent("val8lv");
|
|
||||||
Adjust.trackEvent(good_user);
|
|
||||||
CommonHttpUtil.setAdvertisingChannels("val8lv", new HttpCallback() {
|
|
||||||
@Override
|
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
|
||||||
if (code == 0) {
|
|
||||||
mFirebaseAnalytics.logEvent("FS_good_user", null);
|
|
||||||
logger.logEvent("FB_good_user", null);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
//有效用户
|
|
||||||
} else if (obj.getLongValue("see_time") >= 600) {
|
|
||||||
AdjustEvent valid_user = new AdjustEvent("xuf8ep");
|
|
||||||
Adjust.trackEvent(valid_user);
|
|
||||||
CommonHttpUtil.setAdvertisingChannels("xuf8ep", new HttpCallback() {
|
|
||||||
@Override
|
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
|
||||||
if (code == 0) {
|
|
||||||
mFirebaseAnalytics.logEvent("FS_Valid_user", null);
|
|
||||||
logger.logEvent("FB_Valid_user", null);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
//连接socket
|
//连接socket
|
||||||
LiveHttpUtil.enterBackRoom(mLiveBean.getUid(), mLiveBean.getStream(), new HttpCallback() {
|
LiveHttpUtil.enterBackRoom(mLiveBean.getUid(), mLiveBean.getStream(), new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
|
@ -2,8 +2,6 @@ package com.yunbao.main.activity;
|
|||||||
|
|
||||||
import static com.yunbao.common.CommonAppContext.home_zdy_img_cn;
|
import static com.yunbao.common.CommonAppContext.home_zdy_img_cn;
|
||||||
import static com.yunbao.common.CommonAppContext.home_zdy_img_us;
|
import static com.yunbao.common.CommonAppContext.home_zdy_img_us;
|
||||||
import static com.yunbao.common.CommonAppContext.logger;
|
|
||||||
import static com.yunbao.common.CommonAppContext.mFirebaseAnalytics;
|
|
||||||
|
|
||||||
import android.annotation.SuppressLint;
|
import android.annotation.SuppressLint;
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
@ -33,8 +31,6 @@ import android.widget.VideoView;
|
|||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
import androidx.appcompat.app.AppCompatActivity;
|
import androidx.appcompat.app.AppCompatActivity;
|
||||||
|
|
||||||
import com.adjust.sdk.Adjust;
|
|
||||||
import com.adjust.sdk.AdjustEvent;
|
|
||||||
import com.alibaba.android.arouter.facade.annotation.Route;
|
import com.alibaba.android.arouter.facade.annotation.Route;
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
@ -77,9 +73,9 @@ import com.yunbao.common.HtmlConfig;
|
|||||||
import com.yunbao.common.activity.WebViewActivity;
|
import com.yunbao.common.activity.WebViewActivity;
|
||||||
import com.yunbao.common.bean.FaceBookUpModel;
|
import com.yunbao.common.bean.FaceBookUpModel;
|
||||||
import com.yunbao.common.bean.IMLoginModel;
|
import com.yunbao.common.bean.IMLoginModel;
|
||||||
|
import com.yunbao.common.bean.LiveBean;
|
||||||
import com.yunbao.common.bean.LoginData;
|
import com.yunbao.common.bean.LoginData;
|
||||||
import com.yunbao.common.bean.UserBean;
|
import com.yunbao.common.bean.UserBean;
|
||||||
import com.yunbao.common.http.CommonHttpUtil;
|
|
||||||
import com.yunbao.common.http.HttpCallback;
|
import com.yunbao.common.http.HttpCallback;
|
||||||
import com.yunbao.common.http.HttpClient;
|
import com.yunbao.common.http.HttpClient;
|
||||||
import com.yunbao.common.http.main.MainNetManager;
|
import com.yunbao.common.http.main.MainNetManager;
|
||||||
@ -92,7 +88,6 @@ import com.yunbao.common.utils.RouteUtil;
|
|||||||
import com.yunbao.common.utils.ToastUtil;
|
import com.yunbao.common.utils.ToastUtil;
|
||||||
import com.yunbao.common.utils.WordUtil;
|
import com.yunbao.common.utils.WordUtil;
|
||||||
import com.yunbao.live.activity.LiveAudienceActivity;
|
import com.yunbao.live.activity.LiveAudienceActivity;
|
||||||
import com.yunbao.common.bean.LiveBean;
|
|
||||||
import com.yunbao.live.http.LiveHttpUtil;
|
import com.yunbao.live.http.LiveHttpUtil;
|
||||||
import com.yunbao.live.presenter.LiveRoomCheckLivePresenter;
|
import com.yunbao.live.presenter.LiveRoomCheckLivePresenter;
|
||||||
import com.yunbao.main.R;
|
import com.yunbao.main.R;
|
||||||
@ -238,18 +233,6 @@ public class EntryActivity extends AppCompatActivity {
|
|||||||
|
|
||||||
getPromoCode();
|
getPromoCode();
|
||||||
getUuidDevice();
|
getUuidDevice();
|
||||||
AdjustEvent adjustEvent2 = new AdjustEvent("tyqsyf");
|
|
||||||
Adjust.trackEvent(adjustEvent2);
|
|
||||||
CommonHttpUtil.setAdvertisingChannels("tyqsyf", new HttpCallback() {
|
|
||||||
@Override
|
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
|
||||||
if (code == 0) {
|
|
||||||
mFirebaseAnalytics.logEvent("FS_registration", null);
|
|
||||||
logger.logEvent("FB_registration");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
video_view = findViewById(R.id.video_view);
|
video_view = findViewById(R.id.video_view);
|
||||||
video_view.setVideoPath(Uri.parse("android.resource://" + getPackageName() + "/" + R.raw.login_video) + "");
|
video_view.setVideoPath(Uri.parse("android.resource://" + getPackageName() + "/" + R.raw.login_video) + "");
|
||||||
video_view.start();
|
video_view.start();
|
||||||
@ -278,17 +261,6 @@ public class EntryActivity extends AppCompatActivity {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
timerOutBtn(view);
|
timerOutBtn(view);
|
||||||
AdjustEvent adjustEvent = new AdjustEvent("umk7ri");
|
|
||||||
Adjust.trackEvent(adjustEvent);
|
|
||||||
CommonHttpUtil.setAdvertisingChannels("umk7ri", new HttpCallback() {
|
|
||||||
@Override
|
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
|
||||||
if (code == 0) {
|
|
||||||
mFirebaseAnalytics.logEvent("FS_click_fb", null);
|
|
||||||
logger.logEvent("FB_click_fb");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
MainNetManager.get(EntryActivity.this)
|
MainNetManager.get(EntryActivity.this)
|
||||||
.FaceBookUp(new com.yunbao.common.http.base.HttpCallback<FaceBookUpModel>() {
|
.FaceBookUp(new com.yunbao.common.http.base.HttpCallback<FaceBookUpModel>() {
|
||||||
@Override
|
@Override
|
||||||
@ -307,25 +279,6 @@ public class EntryActivity extends AppCompatActivity {
|
|||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// LoginManager.getInstance().logInWithReadPermissions(EntryActivity.this, Arrays.asList("public_profile"));
|
|
||||||
// MainNetManager.get(EntryActivity.this)
|
|
||||||
// .FaceBookUp(new com.yunbao.common.http.base.HttpCallback<FaceBookUpModel>() {
|
|
||||||
// @Override
|
|
||||||
// public void onSuccess(FaceBookUpModel data) {
|
|
||||||
// if(data.getType().equals("1")){
|
|
||||||
// LoginManager.getInstance().logInWithReadPermissions(EntryActivity.this, Arrays.asList("public_profile"));
|
|
||||||
// }else{
|
|
||||||
// WebViewActivity.forward(EntryActivity.this, data.getLink()+"?");
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// @Override
|
|
||||||
// public void onError(String error) {
|
|
||||||
//
|
|
||||||
//
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -356,17 +309,6 @@ public class EntryActivity extends AppCompatActivity {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
timerOutBtn(v);
|
timerOutBtn(v);
|
||||||
AdjustEvent adjustEvent = new AdjustEvent("iqd6b7");
|
|
||||||
Adjust.trackEvent(adjustEvent);
|
|
||||||
CommonHttpUtil.setAdvertisingChannels("iqd6b7", new HttpCallback() {
|
|
||||||
@Override
|
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
|
||||||
if (code == 0) {
|
|
||||||
mFirebaseAnalytics.logEvent("FS_click_google", null);
|
|
||||||
logger.logEvent("FB_click_google");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
Intent signInIntent = mGoogleSignInClient.getSignInIntent();
|
Intent signInIntent = mGoogleSignInClient.getSignInIntent();
|
||||||
startActivityForResult(signInIntent, 1002);
|
startActivityForResult(signInIntent, 1002);
|
||||||
}
|
}
|
||||||
@ -379,17 +321,6 @@ public class EntryActivity extends AppCompatActivity {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
timerOutBtn(v);
|
timerOutBtn(v);
|
||||||
AdjustEvent adjustEvent = new AdjustEvent("le2qca");
|
|
||||||
Adjust.trackEvent(adjustEvent);
|
|
||||||
CommonHttpUtil.setAdvertisingChannels("le2qca", new HttpCallback() {
|
|
||||||
@Override
|
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
|
||||||
if (code == 0) {
|
|
||||||
mFirebaseAnalytics.logEvent("FS_click_twitter", null);
|
|
||||||
logger.logEvent("FB_click_twitter");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
tt_login_button.performClick();
|
tt_login_button.performClick();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -432,17 +363,6 @@ public class EntryActivity extends AppCompatActivity {
|
|||||||
}
|
}
|
||||||
timerOutBtn(view);
|
timerOutBtn(view);
|
||||||
try {
|
try {
|
||||||
AdjustEvent adjustEvent = new AdjustEvent("gev462");
|
|
||||||
Adjust.trackEvent(adjustEvent);
|
|
||||||
CommonHttpUtil.setAdvertisingChannels("gev462", new HttpCallback() {
|
|
||||||
@Override
|
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
|
||||||
if (code == 0) {
|
|
||||||
mFirebaseAnalytics.logEvent("FS_click_line", null);
|
|
||||||
logger.logEvent("FB_click_line");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
// App-to-app login
|
// App-to-app login
|
||||||
Intent loginIntent = LineLoginApi.getLoginIntent(
|
Intent loginIntent = LineLoginApi.getLoginIntent(
|
||||||
view.getContext(),
|
view.getContext(),
|
||||||
@ -600,15 +520,15 @@ public class EntryActivity extends AppCompatActivity {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCurrentProfileChanged(@Nullable Profile pf, @Nullable Profile profile1) {
|
protected void onCurrentProfileChanged(@Nullable Profile pf, @Nullable Profile profile1) {
|
||||||
if(!enableButtons){
|
if (!enableButtons) {
|
||||||
stopTracking();
|
stopTracking();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(pf!=null){
|
if (pf != null) {
|
||||||
loginFaceBookUpdateUI(pf);
|
loginFaceBookUpdateUI(pf);
|
||||||
}else if(profile1!=null){
|
} else if (profile1 != null) {
|
||||||
loginFaceBookUpdateUI(profile1);
|
loginFaceBookUpdateUI(profile1);
|
||||||
}else{
|
} else {
|
||||||
ToastUtil.show(getResources().getString(R.string.user_login_outtime));
|
ToastUtil.show(getResources().getString(R.string.user_login_outtime));
|
||||||
}
|
}
|
||||||
stopTracking();
|
stopTracking();
|
||||||
@ -672,49 +592,13 @@ public class EntryActivity extends AppCompatActivity {
|
|||||||
*/
|
*/
|
||||||
private void loginBuyThird(LoginData data) {
|
private void loginBuyThird(LoginData data) {
|
||||||
mLoginType = data.getType();
|
mLoginType = data.getType();
|
||||||
if(CommonAppConfig.IS_GOOGLE_PLAY==true) {
|
if (CommonAppConfig.IS_GOOGLE_PLAY == true) {
|
||||||
mPromoCode = "";
|
mPromoCode = "";
|
||||||
}
|
}
|
||||||
MainHttpUtil.loginByThird(data.getOpenID(), mPromoCode, mUuidDevice, data.getNickName(), data.getAvatar(), data.getType(), new HttpCallback() {
|
MainHttpUtil.loginByThird(data.getOpenID(), mPromoCode, mUuidDevice, data.getNickName(), data.getAvatar(), data.getType(), new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
onLoginSuccess(code, msg, info);
|
onLoginSuccess(code, msg, info);
|
||||||
if (code == 0) {
|
|
||||||
//完成第三方登录
|
|
||||||
if (mLoginType.equals("twitter")) {
|
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("winf6e");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
mFirebaseAnalytics.logEvent("FS_log_twitter", null);
|
|
||||||
logger.logEvent("FB_log_twitter");
|
|
||||||
} else if (mLoginType.equals("facebook")) {
|
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("oywoff");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
mFirebaseAnalytics.logEvent("FS_log_fb", null);
|
|
||||||
logger.logEvent("FB_log_fb");
|
|
||||||
} else if (mLoginType.equals("google")) {
|
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("1cm8gl");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
mFirebaseAnalytics.logEvent("FS_log_google", null);
|
|
||||||
logger.logEvent("FB_log_google");
|
|
||||||
} else if (mLoginType.equals("line")) {
|
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("71p74r");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
mFirebaseAnalytics.logEvent("FS_log_line", null);
|
|
||||||
logger.logEvent("FB_log_line");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
CommonHttpUtil.setAdvertisingChannels("1com4k", new HttpCallback() {
|
|
||||||
@Override
|
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
|
||||||
if (code == 0) {
|
|
||||||
mFirebaseAnalytics.logEvent("FS_createdRole", null);
|
|
||||||
logger.logEvent("FB_createdRole");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("1com4k");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -755,65 +639,6 @@ public class EntryActivity extends AppCompatActivity {
|
|||||||
public void callback(UserBean bean) {
|
public void callback(UserBean bean) {
|
||||||
|
|
||||||
if (mFirstLogin) {
|
if (mFirstLogin) {
|
||||||
//绑定广告渠道用户
|
|
||||||
AdjustEvent adjustEvent = new AdjustEvent("s1or0t");
|
|
||||||
adjustEvent.addCallbackParameter("userid", CommonAppConfig.getInstance().getUid());
|
|
||||||
Adjust.trackEvent(adjustEvent);
|
|
||||||
|
|
||||||
//完成第三方登录
|
|
||||||
if (mLoginType.equals("twitter")) {
|
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("ea6lld");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
CommonHttpUtil.setAdvertisingChannels("ea6lld", new HttpCallback() {
|
|
||||||
@Override
|
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
|
||||||
if (code == 0) {
|
|
||||||
mFirebaseAnalytics.logEvent("FS_reg_twitter", null);
|
|
||||||
logger.logEvent("FB_reg_twitter");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
} else if (mLoginType.equals("facebook")) {
|
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("5jbk95");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
CommonHttpUtil.setAdvertisingChannels("5jbk95", new HttpCallback() {
|
|
||||||
@Override
|
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
|
||||||
if (code == 0) {
|
|
||||||
mFirebaseAnalytics.logEvent("FS_reg_fb", null);
|
|
||||||
logger.logEvent("FB_reg_fb");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
} else if (mLoginType.equals("google")) {
|
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("krap47");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
CommonHttpUtil.setAdvertisingChannels("krap47", new HttpCallback() {
|
|
||||||
@Override
|
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
|
||||||
if (code == 0) {
|
|
||||||
mFirebaseAnalytics.logEvent("FS_reg_google", null);
|
|
||||||
logger.logEvent("FB_reg_google");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
} else if (mLoginType.equals("line")) {
|
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("uaacbn");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
|
|
||||||
CommonHttpUtil.setAdvertisingChannels("uaacbn", new HttpCallback() {
|
|
||||||
@Override
|
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
|
||||||
if (code == 0) {
|
|
||||||
mFirebaseAnalytics.logEvent("FS_reg_line", null);
|
|
||||||
logger.logEvent("FB_reg_line");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
if (CommonAppConfig.IS_GOOGLE_PLAY == true) {
|
if (CommonAppConfig.IS_GOOGLE_PLAY == true) {
|
||||||
EntryActivity.this.startActivity(new Intent(EntryActivity.this, OneLoginActivity.class));
|
EntryActivity.this.startActivity(new Intent(EntryActivity.this, OneLoginActivity.class));
|
||||||
} else {
|
} else {
|
||||||
@ -879,7 +704,7 @@ public class EntryActivity extends AppCompatActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void timerOutBtn(View btn) {
|
private void timerOutBtn(View btn) {
|
||||||
if(mBtnClick){
|
if (mBtnClick) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
loginLoadingDialog = DialogUitl.loadingDialog(EntryActivity.this, WordUtil.getString(R.string.login_wait));
|
loginLoadingDialog = DialogUitl.loadingDialog(EntryActivity.this, WordUtil.getString(R.string.login_wait));
|
||||||
@ -888,9 +713,9 @@ public class EntryActivity extends AppCompatActivity {
|
|||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
mBtnClick = false;
|
mBtnClick = false;
|
||||||
if(loginLoadingDialog!=null){
|
if (loginLoadingDialog != null) {
|
||||||
loginLoadingDialog.dismiss();
|
loginLoadingDialog.dismiss();
|
||||||
loginLoadingDialog=null;
|
loginLoadingDialog = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, 3000);
|
}, 3000);
|
||||||
@ -907,11 +732,11 @@ public class EntryActivity extends AppCompatActivity {
|
|||||||
@Override
|
@Override
|
||||||
protected void onDestroy() {
|
protected void onDestroy() {
|
||||||
super.onDestroy();
|
super.onDestroy();
|
||||||
if(loginLoadingDialog!=null){
|
if (loginLoadingDialog != null) {
|
||||||
if(loginLoadingDialog.isShowing()){
|
if (loginLoadingDialog.isShowing()) {
|
||||||
loginLoadingDialog.dismiss();
|
loginLoadingDialog.dismiss();
|
||||||
}
|
}
|
||||||
loginLoadingDialog=null;
|
loginLoadingDialog = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,12 +1,9 @@
|
|||||||
package com.yunbao.main.activity;
|
package com.yunbao.main.activity;
|
||||||
|
|
||||||
|
|
||||||
import static com.yunbao.common.CommonAppContext.logger;
|
|
||||||
import static com.yunbao.common.CommonAppContext.mFirebaseAnalytics;
|
|
||||||
import static com.yunbao.main.activity.MyWalletActivity.dis;
|
import static com.yunbao.main.activity.MyWalletActivity.dis;
|
||||||
|
|
||||||
import android.annotation.SuppressLint;
|
import android.annotation.SuppressLint;
|
||||||
import android.app.ProgressDialog;
|
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
@ -18,9 +15,6 @@ import android.webkit.WebSettings;
|
|||||||
import android.webkit.WebView;
|
import android.webkit.WebView;
|
||||||
|
|
||||||
import androidx.fragment.app.Fragment;
|
import androidx.fragment.app.Fragment;
|
||||||
|
|
||||||
import com.adjust.sdk.Adjust;
|
|
||||||
import com.adjust.sdk.AdjustEvent;
|
|
||||||
import com.android.billingclient.api.Purchase;
|
import com.android.billingclient.api.Purchase;
|
||||||
import com.facebook.appevents.AppEventsConstants;
|
import com.facebook.appevents.AppEventsConstants;
|
||||||
import com.google.android.gms.ads.identifier.AdvertisingIdClient;
|
import com.google.android.gms.ads.identifier.AdvertisingIdClient;
|
||||||
@ -111,8 +105,8 @@ public class GoogleFragment extends Fragment {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private Handler payHandler = new Handler();
|
private Handler payHandler = new Handler();
|
||||||
|
|
||||||
//js调用原生
|
//js调用原生
|
||||||
public class JsInteration {
|
public class JsInteration {
|
||||||
|
|
||||||
@ -140,18 +134,9 @@ public class GoogleFragment extends Fragment {
|
|||||||
Bundle params = new Bundle();
|
Bundle params = new Bundle();
|
||||||
params.putString("currency", "HKD");
|
params.putString("currency", "HKD");
|
||||||
params.putString("money", MoneyUsds);
|
params.putString("money", MoneyUsds);
|
||||||
logger.logEvent("FB_iap_Play", params);
|
|
||||||
|
|
||||||
|
|
||||||
Bundle fb_params = new Bundle();
|
Bundle fb_params = new Bundle();
|
||||||
fb_params.putString(AppEventsConstants.EVENT_PARAM_CURRENCY, "HKD");
|
fb_params.putString(AppEventsConstants.EVENT_PARAM_CURRENCY, "HKD");
|
||||||
fb_params.putString(AppEventsConstants.EVENT_PARAM_CONTENT_ID, mProductId);
|
fb_params.putString(AppEventsConstants.EVENT_PARAM_CONTENT_ID, mProductId);
|
||||||
|
|
||||||
//fb官方事件记录充值
|
|
||||||
logger.logEvent(AppEventsConstants.EVENT_NAME_PURCHASED,
|
|
||||||
Double.parseDouble(MoneyUsds),
|
|
||||||
fb_params);
|
|
||||||
|
|
||||||
//Google官方充值通知
|
//Google官方充值通知
|
||||||
Bundle google_params = new Bundle();
|
Bundle google_params = new Bundle();
|
||||||
google_params.putString("currency", "HKD");
|
google_params.putString("currency", "HKD");
|
||||||
@ -160,31 +145,6 @@ public class GoogleFragment extends Fragment {
|
|||||||
google_params.putString("value", MoneyUsds);
|
google_params.putString("value", MoneyUsds);
|
||||||
google_params.putString("price", MoneyUsds);
|
google_params.putString("price", MoneyUsds);
|
||||||
google_params.putString("quantity", "1");
|
google_params.putString("quantity", "1");
|
||||||
|
|
||||||
mFirebaseAnalytics.logEvent("FS_iap_Play", google_params);
|
|
||||||
|
|
||||||
|
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("cgssol");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
CommonHttpUtil.setAdvertisingChannels("cgssol", new HttpCallback() {
|
|
||||||
@Override
|
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
|
||||||
if (code == 0) {
|
|
||||||
logger.logEvent("FB_iap_users", null);
|
|
||||||
mFirebaseAnalytics.logEvent("FS_iap_users", null);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
AdjustEvent adjustEvent2 = new AdjustEvent("tr8lb9");
|
|
||||||
adjustEvent2.setRevenue(Double.parseDouble(MoneyUsds),"HKD");
|
|
||||||
adjustEvent2.addCallbackParameter("GOrderid",purchase.getOrderId());
|
|
||||||
adjustEvent2.addCallbackParameter("POrderid",mOrderid);
|
|
||||||
adjustEvent2.addCallbackParameter("Uid", CommonAppConfig.getInstance().getUid());
|
|
||||||
adjustEvent2.addCallbackParameter("GADid",adid);
|
|
||||||
adjustEvent2.setOrderId(mOrderid);
|
|
||||||
Adjust.trackEvent(adjustEvent2);
|
|
||||||
|
|
||||||
dis();
|
dis();
|
||||||
ToastUtil.show("支付成功");
|
ToastUtil.show("支付成功");
|
||||||
}
|
}
|
||||||
@ -201,15 +161,7 @@ public class GoogleFragment extends Fragment {
|
|||||||
public void onPayFailed(int code, String msg) {
|
public void onPayFailed(int code, String msg) {
|
||||||
|
|
||||||
}
|
}
|
||||||
}).checkSku(ProductId)
|
}).checkSku(ProductId);
|
||||||
;
|
|
||||||
//下单
|
|
||||||
Bundle params = new Bundle();
|
|
||||||
params.putString(AppEventsConstants.EVENT_PARAM_CONTENT_ID, mProductId);
|
|
||||||
params.putString(AppEventsConstants.EVENT_PARAM_CURRENCY, "HKD");
|
|
||||||
logger.logEvent(AppEventsConstants.EVENT_NAME_INITIATED_CHECKOUT, Double.parseDouble(MoneyUsds),
|
|
||||||
params);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@JavascriptInterface
|
@JavascriptInterface
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
package com.yunbao.main.activity;
|
package com.yunbao.main.activity;
|
||||||
|
|
||||||
|
import static com.yunbao.common.CommonAppContext.home_zdy_img_cn;
|
||||||
|
import static com.yunbao.common.CommonAppContext.home_zdy_img_us;
|
||||||
|
|
||||||
import android.animation.ObjectAnimator;
|
import android.animation.ObjectAnimator;
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
|
|
||||||
import androidx.recyclerview.widget.RecyclerView;
|
|
||||||
|
|
||||||
import android.text.Editable;
|
import android.text.Editable;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.text.TextWatcher;
|
import android.text.TextWatcher;
|
||||||
@ -16,8 +16,8 @@ import android.view.inputmethod.InputMethodManager;
|
|||||||
import android.widget.EditText;
|
import android.widget.EditText;
|
||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
||||||
|
|
||||||
import com.adjust.sdk.Adjust;
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
import com.adjust.sdk.AdjustEvent;
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.blankj.utilcode.util.DeviceUtils;
|
import com.blankj.utilcode.util.DeviceUtils;
|
||||||
@ -34,6 +34,7 @@ import com.yunbao.common.activity.AbsActivity;
|
|||||||
import com.yunbao.common.activity.WebViewActivity;
|
import com.yunbao.common.activity.WebViewActivity;
|
||||||
import com.yunbao.common.bean.ConfigBean;
|
import com.yunbao.common.bean.ConfigBean;
|
||||||
import com.yunbao.common.bean.IMLoginModel;
|
import com.yunbao.common.bean.IMLoginModel;
|
||||||
|
import com.yunbao.common.bean.LiveBean;
|
||||||
import com.yunbao.common.bean.LoginData;
|
import com.yunbao.common.bean.LoginData;
|
||||||
import com.yunbao.common.bean.UserBean;
|
import com.yunbao.common.bean.UserBean;
|
||||||
import com.yunbao.common.http.CommonHttpConsts;
|
import com.yunbao.common.http.CommonHttpConsts;
|
||||||
@ -48,7 +49,6 @@ import com.yunbao.common.manager.imrongcloud.RongcloudIMManager;
|
|||||||
import com.yunbao.common.utils.ToastUtil;
|
import com.yunbao.common.utils.ToastUtil;
|
||||||
import com.yunbao.common.utils.WordUtil;
|
import com.yunbao.common.utils.WordUtil;
|
||||||
import com.yunbao.live.activity.LiveAudienceActivity;
|
import com.yunbao.live.activity.LiveAudienceActivity;
|
||||||
import com.yunbao.common.bean.LiveBean;
|
|
||||||
import com.yunbao.live.http.LiveHttpUtil;
|
import com.yunbao.live.http.LiveHttpUtil;
|
||||||
import com.yunbao.live.presenter.LiveRoomCheckLivePresenter;
|
import com.yunbao.live.presenter.LiveRoomCheckLivePresenter;
|
||||||
import com.yunbao.main.R;
|
import com.yunbao.main.R;
|
||||||
@ -60,11 +60,6 @@ import org.greenrobot.eventbus.EventBus;
|
|||||||
import org.greenrobot.eventbus.Subscribe;
|
import org.greenrobot.eventbus.Subscribe;
|
||||||
import org.greenrobot.eventbus.ThreadMode;
|
import org.greenrobot.eventbus.ThreadMode;
|
||||||
|
|
||||||
import static com.yunbao.common.CommonAppContext.home_zdy_img_cn;
|
|
||||||
import static com.yunbao.common.CommonAppContext.home_zdy_img_us;
|
|
||||||
import static com.yunbao.common.CommonAppContext.logger;
|
|
||||||
import static com.yunbao.common.CommonAppContext.mFirebaseAnalytics;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by cxf on 2018/9/17.
|
* Created by cxf on 2018/9/17.
|
||||||
@ -108,12 +103,6 @@ public class LoginActivity extends AbsActivity {
|
|||||||
mRoot = findViewById(R.id.root);
|
mRoot = findViewById(R.id.root);
|
||||||
Contexts = this;
|
Contexts = this;
|
||||||
activity = this;
|
activity = this;
|
||||||
//进入登录页面
|
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("2gar15");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
mFirebaseAnalytics.logEvent("FS_loginpage", null);
|
|
||||||
logger.logEvent("FB_loginpage");
|
|
||||||
|
|
||||||
OpenInstall.getInstall(new AppInstallAdapter() {
|
OpenInstall.getInstall(new AppInstallAdapter() {
|
||||||
@Override
|
@Override
|
||||||
public void onInstall(AppData appData) {
|
public void onInstall(AppData appData) {
|
||||||
@ -180,16 +169,7 @@ public class LoginActivity extends AbsActivity {
|
|||||||
login();
|
login();
|
||||||
|
|
||||||
} else if (i == R.id.btn_register) {
|
} else if (i == R.id.btn_register) {
|
||||||
//去手机注册
|
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("orgi58");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
|
|
||||||
|
|
||||||
mFirebaseAnalytics.logEvent("FS_phone_click", null);
|
|
||||||
logger.logEvent("FB_phone_click");
|
|
||||||
|
|
||||||
register();
|
register();
|
||||||
|
|
||||||
} else if (i == R.id.btn_forget_pwd) {
|
} else if (i == R.id.btn_forget_pwd) {
|
||||||
forgetPwd();
|
forgetPwd();
|
||||||
|
|
||||||
@ -291,11 +271,7 @@ public class LoginActivity extends AbsActivity {
|
|||||||
//设置登录信息
|
//设置登录信息
|
||||||
IMLoginModel model = GsonUtils.fromJson(info[0], IMLoginModel.class);
|
IMLoginModel model = GsonUtils.fromJson(info[0], IMLoginModel.class);
|
||||||
IMLoginManager.get(activity).setupLoginUser(model);
|
IMLoginManager.get(activity).setupLoginUser(model);
|
||||||
|
|
||||||
getBaseUserInfo();
|
getBaseUserInfo();
|
||||||
mFirebaseAnalytics.logEvent("FS_createdRole", null);
|
|
||||||
logger.logEvent("FB_createdRole");
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
ToastUtil.show(msg);
|
ToastUtil.show(msg);
|
||||||
}
|
}
|
||||||
@ -310,11 +286,6 @@ public class LoginActivity extends AbsActivity {
|
|||||||
public void callback(UserBean bean) {
|
public void callback(UserBean bean) {
|
||||||
//融云连接服务器
|
//融云连接服务器
|
||||||
RongcloudIMManager.connectIM(activity);
|
RongcloudIMManager.connectIM(activity);
|
||||||
//完成手机号密码登录
|
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("4ncwlv");
|
|
||||||
mFirebaseAnalytics.logEvent("FS_login", null);
|
|
||||||
logger.logEvent("FB_login");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
HttpClient.getInstance().post("Home.getRandJoinAnchor", "Home.getRandJoinAnchor")
|
HttpClient.getInstance().post("Home.getRandJoinAnchor", "Home.getRandJoinAnchor")
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
@ -343,7 +314,7 @@ public class LoginActivity extends AbsActivity {
|
|||||||
public void onError(Response<JsonBean> response) {
|
public void onError(Response<JsonBean> response) {
|
||||||
super.onError(response);
|
super.onError(response);
|
||||||
String message = response.message();
|
String message = response.message();
|
||||||
System.out.println(">>>>>"+message);
|
System.out.println(">>>>>" + message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
package com.yunbao.main.activity;
|
package com.yunbao.main.activity;
|
||||||
|
|
||||||
import static com.yunbao.common.CommonAppContext.logger;
|
|
||||||
import static com.yunbao.common.CommonAppContext.mFirebaseAnalytics;
|
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.graphics.Color;
|
import android.graphics.Color;
|
||||||
@ -16,9 +14,6 @@ import androidx.annotation.NonNull;
|
|||||||
import androidx.fragment.app.Fragment;
|
import androidx.fragment.app.Fragment;
|
||||||
import androidx.fragment.app.FragmentPagerAdapter;
|
import androidx.fragment.app.FragmentPagerAdapter;
|
||||||
import androidx.viewpager.widget.ViewPager;
|
import androidx.viewpager.widget.ViewPager;
|
||||||
|
|
||||||
import com.adjust.sdk.Adjust;
|
|
||||||
import com.adjust.sdk.AdjustEvent;
|
|
||||||
import com.alibaba.android.arouter.facade.annotation.Route;
|
import com.alibaba.android.arouter.facade.annotation.Route;
|
||||||
import com.android.billingclient.api.BillingResult;
|
import com.android.billingclient.api.BillingResult;
|
||||||
import com.android.billingclient.api.Purchase;
|
import com.android.billingclient.api.Purchase;
|
||||||
@ -65,10 +60,6 @@ public class MyWalletActivity extends AbsActivity {
|
|||||||
super.main();
|
super.main();
|
||||||
mw = MyWalletActivity.this;
|
mw = MyWalletActivity.this;
|
||||||
setTitle(WordUtil.getString(R.string.wallet));
|
setTitle(WordUtil.getString(R.string.wallet));
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("eap1ec");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
mFirebaseAnalytics.logEvent("FS_initiated_checkout", null);
|
|
||||||
logger.logEvent("FB_initiated_checkout");
|
|
||||||
GoogleBillingUtilNew.getInstance().initGooglePay(mContext);
|
GoogleBillingUtilNew.getInstance().initGooglePay(mContext);
|
||||||
vp_content = (ViewPager) findViewById(R.id.vp_content);
|
vp_content = (ViewPager) findViewById(R.id.vp_content);
|
||||||
TextView rView = (TextView) findViewById(R.id.rView);
|
TextView rView = (TextView) findViewById(R.id.rView);
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
package com.yunbao.main.activity;
|
package com.yunbao.main.activity;
|
||||||
|
|
||||||
import static com.yunbao.common.CommonAppContext.logger;
|
|
||||||
import static com.yunbao.common.CommonAppContext.mFirebaseAnalytics;
|
|
||||||
|
|
||||||
import android.content.ClipData;
|
import android.content.ClipData;
|
||||||
import android.content.ClipboardManager;
|
import android.content.ClipboardManager;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
@ -26,9 +23,6 @@ import android.widget.LinearLayout;
|
|||||||
import android.widget.ProgressBar;
|
import android.widget.ProgressBar;
|
||||||
|
|
||||||
import androidx.annotation.RequiresApi;
|
import androidx.annotation.RequiresApi;
|
||||||
|
|
||||||
import com.adjust.sdk.Adjust;
|
|
||||||
import com.adjust.sdk.AdjustEvent;
|
|
||||||
import com.alibaba.android.arouter.facade.annotation.Route;
|
import com.alibaba.android.arouter.facade.annotation.Route;
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
@ -555,12 +549,6 @@ public class MyWebViewActivity extends AbsActivity {
|
|||||||
} else if (TextUtils.equals(event.getMethod(), "androidMethodLookToLive")) {
|
} else if (TextUtils.equals(event.getMethod(), "androidMethodLookToLive")) {
|
||||||
//看直播
|
//看直播
|
||||||
gotoLive(event.getLiveId());
|
gotoLive(event.getLiveId());
|
||||||
} else if (TextUtils.equals(event.getMethod(), "AndroidFellow")) {
|
|
||||||
mFirebaseAnalytics.logEvent("FS_Follow", null);
|
|
||||||
logger.logEvent("FB_Follow", null);
|
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("oess6a");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
|
|
||||||
} else if (TextUtils.equals(event.getMethod(), "androidClickSayHiBack")) {
|
} else if (TextUtils.equals(event.getMethod(), "androidClickSayHiBack")) {
|
||||||
Constants.firstInto = 0;
|
Constants.firstInto = 0;
|
||||||
EventBus.getDefault().post(new MainHomeCommunityToChatEvent().setTargetId(event.getUserId()));
|
EventBus.getDefault().post(new MainHomeCommunityToChatEvent().setTargetId(event.getUserId()));
|
||||||
|
@ -1,13 +1,9 @@
|
|||||||
package com.yunbao.main.activity;
|
package com.yunbao.main.activity;
|
||||||
|
|
||||||
import androidx.appcompat.app.AppCompatActivity;
|
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.widget.Button;
|
import android.widget.Button;
|
||||||
import android.widget.EditText;
|
import android.widget.EditText;
|
||||||
|
|
||||||
import com.adjust.sdk.Adjust;
|
|
||||||
import com.adjust.sdk.AdjustEvent;
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.makeramen.roundedimageview.RoundedImageView;
|
import com.makeramen.roundedimageview.RoundedImageView;
|
||||||
@ -18,7 +14,6 @@ import com.yunbao.common.CommonAppConfig;
|
|||||||
import com.yunbao.common.activity.AbsActivity;
|
import com.yunbao.common.activity.AbsActivity;
|
||||||
import com.yunbao.common.bean.UserBean;
|
import com.yunbao.common.bean.UserBean;
|
||||||
import com.yunbao.common.glide.ImgLoader;
|
import com.yunbao.common.glide.ImgLoader;
|
||||||
import com.yunbao.common.http.CommonHttpUtil;
|
|
||||||
import com.yunbao.common.http.HttpCallback;
|
import com.yunbao.common.http.HttpCallback;
|
||||||
import com.yunbao.common.interfaces.ImageResultCallback;
|
import com.yunbao.common.interfaces.ImageResultCallback;
|
||||||
import com.yunbao.common.utils.DialogUitl;
|
import com.yunbao.common.utils.DialogUitl;
|
||||||
@ -30,13 +25,10 @@ import com.yunbao.main.http.MainHttpUtil;
|
|||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
|
||||||
import static com.yunbao.common.CommonAppContext.logger;
|
|
||||||
import static com.yunbao.common.CommonAppContext.mFirebaseAnalytics;
|
|
||||||
|
|
||||||
public class OneLoginActivity extends AbsActivity {
|
public class OneLoginActivity extends AbsActivity {
|
||||||
|
|
||||||
RoundedImageView avatar;
|
RoundedImageView avatar;
|
||||||
EditText edit_user,edit_code;
|
EditText edit_user, edit_code;
|
||||||
Button btn_enter;
|
Button btn_enter;
|
||||||
|
|
||||||
public static OneLoginActivity act;
|
public static OneLoginActivity act;
|
||||||
@ -45,6 +37,7 @@ public class OneLoginActivity extends AbsActivity {
|
|||||||
protected int getLayoutId() {
|
protected int getLayoutId() {
|
||||||
return R.layout.activity_one_login;
|
return R.layout.activity_one_login;
|
||||||
}
|
}
|
||||||
|
|
||||||
private ProcessImageUtil mImageUtil;
|
private ProcessImageUtil mImageUtil;
|
||||||
|
|
||||||
private void updataImg() {
|
private void updataImg() {
|
||||||
@ -66,10 +59,10 @@ public class OneLoginActivity extends AbsActivity {
|
|||||||
protected void main() {
|
protected void main() {
|
||||||
super.main();
|
super.main();
|
||||||
act = this;
|
act = this;
|
||||||
avatar = (RoundedImageView)findViewById(R.id.avatar);
|
avatar = (RoundedImageView) findViewById(R.id.avatar);
|
||||||
edit_user = (EditText)findViewById(R.id.edit_user);
|
edit_user = (EditText) findViewById(R.id.edit_user);
|
||||||
edit_code = (EditText)findViewById(R.id.edit_code);
|
edit_code = (EditText) findViewById(R.id.edit_code);
|
||||||
btn_enter = (Button)findViewById(R.id.btn_enter);
|
btn_enter = (Button) findViewById(R.id.btn_enter);
|
||||||
mImageUtil = new ProcessImageUtil(this);
|
mImageUtil = new ProcessImageUtil(this);
|
||||||
mImageUtil.setImageResultCallback(new ImageResultCallback() {
|
mImageUtil.setImageResultCallback(new ImageResultCallback() {
|
||||||
@Override
|
@Override
|
||||||
@ -90,7 +83,7 @@ public class OneLoginActivity extends AbsActivity {
|
|||||||
JSONObject obj = JSON.parseObject(info[0]);
|
JSONObject obj = JSON.parseObject(info[0]);
|
||||||
bean.setAvatar(obj.getString("avatar"));
|
bean.setAvatar(obj.getString("avatar"));
|
||||||
bean.setAvatarThumb(obj.getString("avatarThumb"));
|
bean.setAvatarThumb(obj.getString("avatarThumb"));
|
||||||
ImgLoader.displayAvatar(mContext,CommonAppConfig.getInstance().getUserBean().getAvatar(), avatar);
|
ImgLoader.displayAvatar(mContext, CommonAppConfig.getInstance().getUserBean().getAvatar(), avatar);
|
||||||
V2TIMUserFullInfo v2TIMUserFullInfo = new V2TIMUserFullInfo();
|
V2TIMUserFullInfo v2TIMUserFullInfo = new V2TIMUserFullInfo();
|
||||||
v2TIMUserFullInfo.setFaceUrl(obj.getString("avatarThumb"));
|
v2TIMUserFullInfo.setFaceUrl(obj.getString("avatarThumb"));
|
||||||
V2TIMManager.getInstance().setSelfInfo(v2TIMUserFullInfo, new V2TIMCallback() {
|
V2TIMManager.getInstance().setSelfInfo(v2TIMUserFullInfo, new V2TIMCallback() {
|
||||||
@ -113,7 +106,7 @@ public class OneLoginActivity extends AbsActivity {
|
|||||||
public void onFailure() {
|
public void onFailure() {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
ImgLoader.displayAvatar(mContext,CommonAppConfig.getInstance().getUserBean().getAvatar(), avatar);
|
ImgLoader.displayAvatar(mContext, CommonAppConfig.getInstance().getUserBean().getAvatar(), avatar);
|
||||||
|
|
||||||
edit_user.setText(CommonAppConfig.getInstance().getUserBean().getUserNiceName());
|
edit_user.setText(CommonAppConfig.getInstance().getUserBean().getUserNiceName());
|
||||||
|
|
||||||
@ -128,21 +121,10 @@ public class OneLoginActivity extends AbsActivity {
|
|||||||
btn_enter.setOnClickListener(new View.OnClickListener() {
|
btn_enter.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
AdjustEvent adjustEvent = new AdjustEvent("xgt0h2");
|
|
||||||
Adjust.trackEvent(adjustEvent);
|
|
||||||
CommonHttpUtil.setAdvertisingChannels("xgt0h2", new HttpCallback() {
|
|
||||||
@Override
|
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
|
||||||
if(code == 0) {
|
|
||||||
mFirebaseAnalytics.logEvent("FS_binding_click", null);
|
|
||||||
logger.logEvent("FB_binding_click");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
OneLoginDialog fragment = new OneLoginDialog();
|
OneLoginDialog fragment = new OneLoginDialog();
|
||||||
Bundle bundle = new Bundle();
|
Bundle bundle = new Bundle();
|
||||||
bundle.putString("name", edit_user.getText().toString()+"");
|
bundle.putString("name", edit_user.getText().toString() + "");
|
||||||
bundle.putString("code", edit_code.getText().toString()+"");
|
bundle.putString("code", edit_code.getText().toString() + "");
|
||||||
fragment.setArguments(bundle);
|
fragment.setArguments(bundle);
|
||||||
fragment.show(getSupportFragmentManager(), "OneLoginDialog");
|
fragment.show(getSupportFragmentManager(), "OneLoginDialog");
|
||||||
}
|
}
|
||||||
|
@ -21,8 +21,6 @@ import androidx.fragment.app.FragmentTransaction;
|
|||||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||||
import androidx.recyclerview.widget.RecyclerView;
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
|
|
||||||
import com.adjust.sdk.Adjust;
|
|
||||||
import com.adjust.sdk.AdjustEvent;
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.binioter.guideview.Guide;
|
import com.binioter.guideview.Guide;
|
||||||
import com.binioter.guideview.GuideBuilder;
|
import com.binioter.guideview.GuideBuilder;
|
||||||
@ -325,8 +323,6 @@ public class PDLiveConversationListActivity extends AbsActivity implements View.
|
|||||||
netHandler.post(systemNumberRunnable);
|
netHandler.post(systemNumberRunnable);
|
||||||
FirebaseAnalytics.getInstance(mContext).logEvent("FS_customer_service", null);
|
FirebaseAnalytics.getInstance(mContext).logEvent("FS_customer_service", null);
|
||||||
AppEventsLogger.newLogger(mContext).logEvent("FB_customer_service");
|
AppEventsLogger.newLogger(mContext).logEvent("FB_customer_service");
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("ww5z2p");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
if (userBean.getLink() != null && !"".equals(userBean.getLink())) {
|
if (userBean.getLink() != null && !"".equals(userBean.getLink())) {
|
||||||
WebViewActivity.forward(mContext, userBean.getLink());
|
WebViewActivity.forward(mContext, userBean.getLink());
|
||||||
} else {
|
} else {
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
package com.yunbao.main.activity;
|
package com.yunbao.main.activity;
|
||||||
|
|
||||||
|
import static com.yunbao.common.CommonAppContext.home_zdy_img_cn;
|
||||||
|
import static com.yunbao.common.CommonAppContext.home_zdy_img_us;
|
||||||
|
|
||||||
import android.app.Dialog;
|
import android.app.Dialog;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.os.Bundle;
|
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
import android.os.Message;
|
import android.os.Message;
|
||||||
import android.text.Editable;
|
import android.text.Editable;
|
||||||
@ -18,14 +20,10 @@ import android.widget.EditText;
|
|||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
import android.widget.LinearLayout;
|
import android.widget.LinearLayout;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
import com.adjust.sdk.Adjust;
|
|
||||||
import com.adjust.sdk.AdjustEvent;
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.blankj.utilcode.util.DeviceUtils;
|
import com.blankj.utilcode.util.DeviceUtils;
|
||||||
import com.blankj.utilcode.util.GsonUtils;
|
import com.blankj.utilcode.util.GsonUtils;
|
||||||
import com.facebook.appevents.AppEventsConstants;
|
|
||||||
import com.fm.openinstall.OpenInstall;
|
import com.fm.openinstall.OpenInstall;
|
||||||
import com.fm.openinstall.listener.AppInstallAdapter;
|
import com.fm.openinstall.listener.AppInstallAdapter;
|
||||||
import com.fm.openinstall.model.AppData;
|
import com.fm.openinstall.model.AppData;
|
||||||
@ -38,8 +36,8 @@ import com.yunbao.common.HtmlConfig;
|
|||||||
import com.yunbao.common.activity.AbsActivity;
|
import com.yunbao.common.activity.AbsActivity;
|
||||||
import com.yunbao.common.activity.WebViewActivity;
|
import com.yunbao.common.activity.WebViewActivity;
|
||||||
import com.yunbao.common.bean.IMLoginModel;
|
import com.yunbao.common.bean.IMLoginModel;
|
||||||
|
import com.yunbao.common.bean.LiveBean;
|
||||||
import com.yunbao.common.bean.UserBean;
|
import com.yunbao.common.bean.UserBean;
|
||||||
import com.yunbao.common.http.CommonHttpUtil;
|
|
||||||
import com.yunbao.common.http.HttpCallback;
|
import com.yunbao.common.http.HttpCallback;
|
||||||
import com.yunbao.common.http.HttpClient;
|
import com.yunbao.common.http.HttpClient;
|
||||||
import com.yunbao.common.interfaces.CommonCallback;
|
import com.yunbao.common.interfaces.CommonCallback;
|
||||||
@ -50,7 +48,6 @@ import com.yunbao.common.utils.DialogUitl;
|
|||||||
import com.yunbao.common.utils.ToastUtil;
|
import com.yunbao.common.utils.ToastUtil;
|
||||||
import com.yunbao.common.utils.WordUtil;
|
import com.yunbao.common.utils.WordUtil;
|
||||||
import com.yunbao.live.activity.LiveAudienceActivity;
|
import com.yunbao.live.activity.LiveAudienceActivity;
|
||||||
import com.yunbao.common.bean.LiveBean;
|
|
||||||
import com.yunbao.live.http.LiveHttpUtil;
|
import com.yunbao.live.http.LiveHttpUtil;
|
||||||
import com.yunbao.live.presenter.LiveRoomCheckLivePresenter;
|
import com.yunbao.live.presenter.LiveRoomCheckLivePresenter;
|
||||||
import com.yunbao.main.R;
|
import com.yunbao.main.R;
|
||||||
@ -65,11 +62,6 @@ import org.greenrobot.eventbus.ThreadMode;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
|
|
||||||
import static com.yunbao.common.CommonAppContext.home_zdy_img_cn;
|
|
||||||
import static com.yunbao.common.CommonAppContext.home_zdy_img_us;
|
|
||||||
import static com.yunbao.common.CommonAppContext.logger;
|
|
||||||
import static com.yunbao.common.CommonAppContext.mFirebaseAnalytics;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by cxf on 2018/9/25.
|
* Created by cxf on 2018/9/25.
|
||||||
*/
|
*/
|
||||||
@ -114,23 +106,6 @@ public class RegisterActivity extends AbsActivity {
|
|||||||
@Override
|
@Override
|
||||||
protected void main() {
|
protected void main() {
|
||||||
activity = this;
|
activity = this;
|
||||||
//谷歌
|
|
||||||
mFirebaseAnalytics.logEvent("FS_complete_2nd_loading", null);
|
|
||||||
logger.logEvent("FB_complete_2nd_loading");
|
|
||||||
|
|
||||||
|
|
||||||
AdjustEvent adjustEvent = new AdjustEvent("pooqmz");
|
|
||||||
Adjust.trackEvent(adjustEvent);
|
|
||||||
CommonHttpUtil.setAdvertisingChannels("pooqmz", new HttpCallback() {
|
|
||||||
@Override
|
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
|
||||||
if (code == 0) {
|
|
||||||
//谷歌
|
|
||||||
mFirebaseAnalytics.logEvent("FS_complete_2nd_loading", null);
|
|
||||||
logger.logEvent("FB_complete_2nd_loading");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
mEditPhone = (EditText) findViewById(R.id.edit_phone);
|
mEditPhone = (EditText) findViewById(R.id.edit_phone);
|
||||||
webview = (WebView) findViewById(R.id.webview);
|
webview = (WebView) findViewById(R.id.webview);
|
||||||
initView();
|
initView();
|
||||||
@ -158,11 +133,6 @@ public class RegisterActivity extends AbsActivity {
|
|||||||
public void onTextChanged(CharSequence s, int start, int before, int count) {
|
public void onTextChanged(CharSequence s, int start, int before, int count) {
|
||||||
if (!TextUtils.isEmpty(s) && s.length() >= mPhoneMinLength) {
|
if (!TextUtils.isEmpty(s) && s.length() >= mPhoneMinLength) {
|
||||||
mBtnCode.setEnabled(true);
|
mBtnCode.setEnabled(true);
|
||||||
//输入手机号
|
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("4mg5a9");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
mFirebaseAnalytics.logEvent("FS_phone_num", null);
|
|
||||||
logger.logEvent("FB_phone_num");
|
|
||||||
} else {
|
} else {
|
||||||
mBtnCode.setEnabled(false);
|
mBtnCode.setEnabled(false);
|
||||||
}
|
}
|
||||||
@ -301,17 +271,8 @@ public class RegisterActivity extends AbsActivity {
|
|||||||
webview.setVisibility(View.VISIBLE);
|
webview.setVisibility(View.VISIBLE);
|
||||||
//获取设备唯一标识符
|
//获取设备唯一标识符
|
||||||
getUuidDevice();
|
getUuidDevice();
|
||||||
//获取验证码
|
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("rrcbdh");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
mFirebaseAnalytics.logEvent("FS_phone_getcode", null);
|
|
||||||
logger.logEvent("FB_phone_getcode");
|
|
||||||
} else if (i == R.id.btn_register) {
|
} else if (i == R.id.btn_register) {
|
||||||
register();
|
register();
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("wrajax");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
mFirebaseAnalytics.logEvent("FS_phone_clickregister", null);
|
|
||||||
logger.logEvent("FB_phone_clickregister");
|
|
||||||
} else if (i == R.id.btn_tip2) {
|
} else if (i == R.id.btn_tip2) {
|
||||||
WebViewActivity.forward(mContext, HtmlConfig.REG_PRIVCAY1);
|
WebViewActivity.forward(mContext, HtmlConfig.REG_PRIVCAY1);
|
||||||
} else if (i == R.id.btn_tip3) {
|
} else if (i == R.id.btn_tip3) {
|
||||||
@ -400,23 +361,6 @@ public class RegisterActivity extends AbsActivity {
|
|||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
if (code == 0) {
|
if (code == 0) {
|
||||||
//注册成功
|
//注册成功
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("fhqx62");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
Bundle params = new Bundle();
|
|
||||||
|
|
||||||
CommonHttpUtil.setAdvertisingChannels("fhqx62", new HttpCallback() {
|
|
||||||
@Override
|
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
|
||||||
if (code == 0) {
|
|
||||||
mFirebaseAnalytics.logEvent("FS_reg_phone", null);
|
|
||||||
logger.logEvent("FB_reg_phone");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
Bundle params1 = new Bundle();
|
|
||||||
params1.putString(AppEventsConstants.EVENT_PARAM_REGISTRATION_METHOD, "Phone number");
|
|
||||||
logger.logEvent(AppEventsConstants.EVENT_NAME_COMPLETED_REGISTRATION, params1);
|
|
||||||
login(phoneNum, pwd, mUuidDevice);
|
login(phoneNum, pwd, mUuidDevice);
|
||||||
OpenInstall.reportRegister();
|
OpenInstall.reportRegister();
|
||||||
} else {
|
} else {
|
||||||
@ -475,12 +419,6 @@ public class RegisterActivity extends AbsActivity {
|
|||||||
//融云连接服务器
|
//融云连接服务器
|
||||||
RongcloudIMManager.connectIM(activity);
|
RongcloudIMManager.connectIM(activity);
|
||||||
getBaseUserInfo();
|
getBaseUserInfo();
|
||||||
//绑定广告渠道用户
|
|
||||||
AdjustEvent adjustEvent = new AdjustEvent("s1or0t");
|
|
||||||
adjustEvent.addCallbackParameter("userid", CommonAppConfig.getInstance().getUid());
|
|
||||||
Adjust.trackEvent(adjustEvent);
|
|
||||||
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
ToastUtil.show(msg);
|
ToastUtil.show(msg);
|
||||||
}
|
}
|
||||||
@ -512,6 +450,7 @@ public class RegisterActivity extends AbsActivity {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户自动签到
|
* 用户自动签到
|
||||||
*/
|
*/
|
||||||
@ -529,7 +468,7 @@ public class RegisterActivity extends AbsActivity {
|
|||||||
JSONObject obj = JSON.parseObject(info[0]);
|
JSONObject obj = JSON.parseObject(info[0]);
|
||||||
IMLoginManager.get(activity).setisNewUserOne(true);
|
IMLoginManager.get(activity).setisNewUserOne(true);
|
||||||
IMLoginManager.get(activity).setNewUserGif(true);
|
IMLoginManager.get(activity).setNewUserGif(true);
|
||||||
if(obj.containsKey("home_zdy_img_us")) {
|
if (obj.containsKey("home_zdy_img_us")) {
|
||||||
home_zdy_img_us = obj.getString("home_zdy_img_us");
|
home_zdy_img_us = obj.getString("home_zdy_img_us");
|
||||||
home_zdy_img_cn = obj.getString("home_zdy_img_cn");
|
home_zdy_img_cn = obj.getString("home_zdy_img_cn");
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
package com.yunbao.main.activity;
|
package com.yunbao.main.activity;
|
||||||
|
|
||||||
import static com.yunbao.common.CommonAppContext.logger;
|
|
||||||
import static com.yunbao.common.CommonAppContext.mFirebaseAnalytics;
|
|
||||||
|
|
||||||
import android.content.ClipData;
|
import android.content.ClipData;
|
||||||
import android.content.ClipboardManager;
|
import android.content.ClipboardManager;
|
||||||
@ -23,12 +21,8 @@ import android.webkit.WebView;
|
|||||||
import android.webkit.WebViewClient;
|
import android.webkit.WebViewClient;
|
||||||
import android.widget.LinearLayout;
|
import android.widget.LinearLayout;
|
||||||
import android.widget.ProgressBar;
|
import android.widget.ProgressBar;
|
||||||
import android.widget.RelativeLayout;
|
|
||||||
|
|
||||||
import androidx.annotation.RequiresApi;
|
import androidx.annotation.RequiresApi;
|
||||||
|
|
||||||
import com.adjust.sdk.Adjust;
|
|
||||||
import com.adjust.sdk.AdjustEvent;
|
|
||||||
import com.alibaba.android.arouter.facade.annotation.Route;
|
import com.alibaba.android.arouter.facade.annotation.Route;
|
||||||
import com.opensource.svgaplayer.SVGACallback;
|
import com.opensource.svgaplayer.SVGACallback;
|
||||||
import com.opensource.svgaplayer.SVGADrawable;
|
import com.opensource.svgaplayer.SVGADrawable;
|
||||||
@ -363,11 +357,6 @@ public class ZhuangBanActivity extends AbsActivity {
|
|||||||
} catch (MalformedURLException e) {
|
} catch (MalformedURLException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
} else if (TextUtils.equals(event.getMethod(), "AndroidAdjustConsume")) {
|
|
||||||
mFirebaseAnalytics.logEvent("FS_event_interaction", null);
|
|
||||||
logger.logEvent("FB_event_interaction", null);
|
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("rq2c5n");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,9 +11,6 @@ import android.view.ViewGroup;
|
|||||||
|
|
||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
import androidx.recyclerview.widget.RecyclerView;
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
|
|
||||||
import com.adjust.sdk.Adjust;
|
|
||||||
import com.adjust.sdk.AdjustEvent;
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.facebook.appevents.AppEventsLogger;
|
import com.facebook.appevents.AppEventsLogger;
|
||||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||||
@ -91,8 +88,6 @@ public class SystemMessageAdapter extends RecyclerView.Adapter {
|
|||||||
if (model1.getTitle().equals("在線客服")) {
|
if (model1.getTitle().equals("在線客服")) {
|
||||||
FirebaseAnalytics.getInstance(mContext).logEvent("FS_customer_service", null);
|
FirebaseAnalytics.getInstance(mContext).logEvent("FS_customer_service", null);
|
||||||
AppEventsLogger.newLogger(mContext).logEvent("FB_customer_service");
|
AppEventsLogger.newLogger(mContext).logEvent("FB_customer_service");
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("ww5z2p");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
}
|
}
|
||||||
if (!TextUtils.isEmpty(model1.getLink())) {
|
if (!TextUtils.isEmpty(model1.getLink())) {
|
||||||
mContext.startActivity(new Intent(mContext, WebViewActivity.class).putExtra("url", model1.getLink()));
|
mContext.startActivity(new Intent(mContext, WebViewActivity.class).putExtra("url", model1.getLink()));
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
package com.yunbao.main.dialog;
|
package com.yunbao.main.dialog;
|
||||||
|
|
||||||
|
import static com.yunbao.common.CommonAppContext.home_zdy_img_cn;
|
||||||
|
import static com.yunbao.common.CommonAppContext.home_zdy_img_us;
|
||||||
|
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.view.Gravity;
|
import android.view.Gravity;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
@ -9,16 +12,13 @@ import android.widget.Button;
|
|||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
|
|
||||||
import com.adjust.sdk.Adjust;
|
|
||||||
import com.adjust.sdk.AdjustEvent;
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.makeramen.roundedimageview.RoundedImageView;
|
import com.makeramen.roundedimageview.RoundedImageView;
|
||||||
import com.yunbao.common.CommonAppConfig;
|
import com.yunbao.common.CommonAppConfig;
|
||||||
|
import com.yunbao.common.bean.LiveBean;
|
||||||
import com.yunbao.common.dialog.AbsDialogFragment;
|
import com.yunbao.common.dialog.AbsDialogFragment;
|
||||||
import com.yunbao.common.glide.ImgLoader;
|
import com.yunbao.common.glide.ImgLoader;
|
||||||
import com.yunbao.common.http.CommonHttpUtil;
|
|
||||||
import com.yunbao.common.http.HttpCallback;
|
import com.yunbao.common.http.HttpCallback;
|
||||||
import com.yunbao.common.http.HttpClient;
|
import com.yunbao.common.http.HttpClient;
|
||||||
import com.yunbao.common.manager.IMLoginManager;
|
import com.yunbao.common.manager.IMLoginManager;
|
||||||
@ -27,17 +27,11 @@ import com.yunbao.common.utils.StringUtil;
|
|||||||
import com.yunbao.common.utils.ToastUtil;
|
import com.yunbao.common.utils.ToastUtil;
|
||||||
import com.yunbao.common.utils.WordUtil;
|
import com.yunbao.common.utils.WordUtil;
|
||||||
import com.yunbao.live.activity.LiveAudienceActivity;
|
import com.yunbao.live.activity.LiveAudienceActivity;
|
||||||
import com.yunbao.common.bean.LiveBean;
|
|
||||||
import com.yunbao.live.http.LiveHttpUtil;
|
import com.yunbao.live.http.LiveHttpUtil;
|
||||||
import com.yunbao.live.presenter.LiveRoomCheckLivePresenter;
|
import com.yunbao.live.presenter.LiveRoomCheckLivePresenter;
|
||||||
import com.yunbao.main.R;
|
import com.yunbao.main.R;
|
||||||
import com.yunbao.main.activity.MainActivity;
|
import com.yunbao.main.activity.MainActivity;
|
||||||
|
|
||||||
import static com.yunbao.common.CommonAppContext.home_zdy_img_cn;
|
|
||||||
import static com.yunbao.common.CommonAppContext.home_zdy_img_us;
|
|
||||||
import static com.yunbao.common.CommonAppContext.logger;
|
|
||||||
import static com.yunbao.common.CommonAppContext.mFirebaseAnalytics;
|
|
||||||
|
|
||||||
public class OneLoginDialog extends AbsDialogFragment {
|
public class OneLoginDialog extends AbsDialogFragment {
|
||||||
|
|
||||||
|
|
||||||
@ -102,17 +96,6 @@ public class OneLoginDialog extends AbsDialogFragment {
|
|||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
if (code == 0) {
|
if (code == 0) {
|
||||||
AdjustEvent adjustEvent = new AdjustEvent("neb317");
|
|
||||||
Adjust.trackEvent(adjustEvent);
|
|
||||||
CommonHttpUtil.setAdvertisingChannels("neb317", new HttpCallback() {
|
|
||||||
@Override
|
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
|
||||||
if (code == 0) {
|
|
||||||
mFirebaseAnalytics.logEvent("FS_binding_success", null);
|
|
||||||
logger.logEvent("FB_binding_success");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
HttpClient.getInstance().post("Home.getRandJoinAnchor", "Home.getRandJoinAnchor")
|
HttpClient.getInstance().post("Home.getRandJoinAnchor", "Home.getRandJoinAnchor")
|
||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
|
@ -15,9 +15,6 @@ import android.widget.TextView;
|
|||||||
import androidx.fragment.app.FragmentActivity;
|
import androidx.fragment.app.FragmentActivity;
|
||||||
import androidx.fragment.app.FragmentManager;
|
import androidx.fragment.app.FragmentManager;
|
||||||
import androidx.fragment.app.FragmentTransaction;
|
import androidx.fragment.app.FragmentTransaction;
|
||||||
|
|
||||||
import com.adjust.sdk.Adjust;
|
|
||||||
import com.adjust.sdk.AdjustEvent;
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.binioter.guideview.Guide;
|
import com.binioter.guideview.Guide;
|
||||||
import com.binioter.guideview.GuideBuilder;
|
import com.binioter.guideview.GuideBuilder;
|
||||||
@ -277,8 +274,6 @@ public class MainMessageViewHolder extends AbsMainViewHolder {
|
|||||||
netHandler.post(systemNumberRunnable);
|
netHandler.post(systemNumberRunnable);
|
||||||
FirebaseAnalytics.getInstance(mContext).logEvent("FS_customer_service", null);
|
FirebaseAnalytics.getInstance(mContext).logEvent("FS_customer_service", null);
|
||||||
AppEventsLogger.newLogger(mContext).logEvent("FB_customer_service");
|
AppEventsLogger.newLogger(mContext).logEvent("FB_customer_service");
|
||||||
AdjustEvent adjustEvent1 = new AdjustEvent("ww5z2p");
|
|
||||||
Adjust.trackEvent(adjustEvent1);
|
|
||||||
if (userBean.getLink() != null && !"".equals(userBean.getLink())) {
|
if (userBean.getLink() != null && !"".equals(userBean.getLink())) {
|
||||||
WebViewActivity.forward(mContext, userBean.getLink());
|
WebViewActivity.forward(mContext, userBean.getLink());
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user