Commit 947f3ad3 by sikang

update

parent abb39f91
......@@ -131,6 +131,9 @@ dependencies {
//AppsFlyer
// api 'com.appsflyer:af-android-sdk:4+@aar'
//mixpanel
// api 'com.mixpanel.android:mixpanel-android:5.+'
//zendesk
api group: 'com.zendesk', name: 'support', version: '2.1.1'
......
......@@ -6,21 +6,25 @@ import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import org.greenrobot.eventbus.EventBus;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import tech.starwin.utils.LogUtils;
import tech.starwin.utils.PreferencesManager;
import tech.starwin.utils.event_bus.EventSender;
/**
* 监听并保存安装referrer
* 测试发送广播:
* adb shell am broadcast -a com.android.vending.INSTALL_REFERRER -n evskp.rojtuy.ocelng.dczo/com.common.broadcast.InstallReferrerReceiver --es "referrer" "utm_source=testSource&utm_medium=testMedium&utm_term=testTerm&utm_content=11&PARTNER_ID=111&PARTNER_CLICK_ID=222"
* adb shell am broadcast -a com.android.vending.INSTALL_REFERRER -n mnsg.dwvc.fiaob.axgywz/com.common.broadcast.InstallReferrerReceiver --es "referrer" "utm_source=testSource&utm_medium=testMedium&utm_term=testTerm&utm_content=11&PARTNER_ID=111&PARTNER_CLICK_ID=222"
*/
public class InstallReferrerReceiver extends BroadcastReceiver {
public void onReceive(Context context, Intent data) {
// new com.mixpanel.android.mpmetrics.InstallReferrerReceiver().onReceive(context, data);
// new com.kochava.base.ReferralReceiver().onReceive(context, data);
PreferencesManager.get().saveInstallReferrer(getReferrerValue(data.getExtras()));
}
......
......@@ -7,6 +7,7 @@ import android.text.TextUtils;
import android.view.View;
import com.meituan.android.walle.WalleChannelReader;
import com.mixpanel.android.mpmetrics.MixpanelAPI;
import com.scwang.smartrefresh.header.MaterialHeader;
import com.scwang.smartrefresh.layout.SmartRefreshLayout;
import com.scwang.smartrefresh.layout.api.DefaultRefreshFooterCreator;
......@@ -93,7 +94,6 @@ public class LibConfig {
return CONTEXT;
}
/**
* 初始化 BaseLibrary
*/
......@@ -105,11 +105,17 @@ public class LibConfig {
XH_CHANNEL_NAME = channel;
}
//APP名字
LibConfig.APP_NAME = AppInfoUtils.getAppName(CONTEXT);
if (TextUtils.isEmpty(LibConfig.ROOT_DIR)) {
LibConfig.ROOT_DIR = LibConfig.APP_NAME;
}
// public static final String MIXPANEL_TOKEN = "8d7cc843b3c027ccab6288e55d99edbc";
// MixpanelAPI.getInstance(application, MIXPANEL_TOKEN);
//屏幕适配(360dp宽度限定)
ScreenAutoSize.resizeDensity(CONTEXT, 360f);
......
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