-
Notifications
You must be signed in to change notification settings - Fork 113
FAQ
谷进杰 edited this page Dec 29, 2017
·
2 revisions
这个问题和打包脚本无关,walle打包后的渠道需要重新手动写入其他三方SDK才可正常统计,下面以友盟为例:
/**
* 获取瓦力渠道包
* @return
*/
public static String getWalleChannel(Context context){
String defaultValue = "walleUnknown";
ChannelInfo channelInfo= WalleChannelReader.getChannelInfo(context);
if (channelInfo != null) {
String channel = channelInfo.getChannel();
if (TextUtils.isEmpty(channel)){
channel = defaultValue;
}
return channel;
}
return defaultValue;
}
//config umeng in your application
UMConfigure.init(this, AnalyticsConfig.getAppkey(this), getWalleChannel(),
UMConfigure.DEVICE_TYPE_PHONE, null);
脚本需要python环境,目前兼容2.x和3.x,请确保电脑上正确安装python环境,并正确配置环境变量,可以通过命令python --version
检验
请确保符合以下条件Run Attentions