Commit ef48fb31 by sikang

bug fix trackListener remove

parent 4304aa39
...@@ -21,7 +21,6 @@ import tech.starwin.mvp.presenter.UserPresenter; ...@@ -21,7 +21,6 @@ import tech.starwin.mvp.presenter.UserPresenter;
*/ */
public class TrackEventHelper { public class TrackEventHelper {
public static final String REST_URL = "rest_url"; public static final String REST_URL = "rest_url";
private static OnTrackEventListener onTrackEventListener = null;
private static UserPresenter userPresenter = new UserPresenter(); private static UserPresenter userPresenter = new UserPresenter();
/** /**
...@@ -60,9 +59,6 @@ public class TrackEventHelper { ...@@ -60,9 +59,6 @@ public class TrackEventHelper {
// bundle.putString(FirebaseAnalytics.Param.CONTENT_TYPE, eventName); // bundle.putString(FirebaseAnalytics.Param.CONTENT_TYPE, eventName);
//FireBase 埋点 //FireBase 埋点
// FirebaseAnalytics.getInstance(context).logEvent(FirebaseAnalytics.Event.SELECT_CONTENT, bundle); // FirebaseAnalytics.getInstance(context).logEvent(FirebaseAnalytics.Event.SELECT_CONTENT, bundle);
if (onTrackEventListener != null) {
onTrackEventListener.onActionClick(eventName);
}
} }
/** /**
...@@ -72,9 +68,6 @@ public class TrackEventHelper { ...@@ -72,9 +68,6 @@ public class TrackEventHelper {
//FireBase 埋点 //FireBase 埋点
// FirebaseAnalytics.getInstance(LibConfig.getActivity()).logEvent(eventName, null); // FirebaseAnalytics.getInstance(LibConfig.getActivity()).logEvent(eventName, null);
userPresenter.trackEvent(eventName); userPresenter.trackEvent(eventName);
if (onTrackEventListener != null) {
onTrackEventListener.onActionEvent(eventName);
}
} }
/** /**
...@@ -85,10 +78,6 @@ public class TrackEventHelper { ...@@ -85,10 +78,6 @@ public class TrackEventHelper {
userPresenter.trackEvent(event.type(), event.action(), event.value()); userPresenter.trackEvent(event.type(), event.action(), event.value());
} }
public static void setOnTrackEventListener(OnTrackEventListener onTrackEventListener) {
TrackEventHelper.onTrackEventListener = onTrackEventListener;
}
/** /**
* 获取FireBase RemoteConfig 并激活 * 获取FireBase RemoteConfig 并激活
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment