1、使用新的渠道打包方案,将渠道值写入到已经签名的apk上面,具体参考README.md

2、将各种第三方工具使用的appid、key和渠道值改成用gradle.properties的配置方式
This commit is contained in:
CsHeng
2017-05-12 15:46:46 +08:00
parent b280e1bf89
commit 5eb5f6807e
25 changed files with 462 additions and 297 deletions

View File

@ -1,6 +1,7 @@
package com.gh.common.util;
import android.content.Context;
import com.gh.base.AppController;
import com.gh.download.DownloadEntity;
import com.gh.gamecenter.retrofit.Response;
import com.gh.gamecenter.retrofit.RetrofitManager;
@ -22,7 +23,7 @@ public class DataLogUtils {
public static void uploadLog(Context context, String topic, Map<String, Object> map) {
String version = PackageUtils.getVersionName(context);
String user = Installation.getUUID(context);
String channel = (String) PackageUtils.getMetaData(context, context.getPackageName(), "TD_CHANNEL_ID");
String channel = AppController.getInstance().getChannel();
map.put("version", version);
map.put("user", user);
map.put("device_id", TokenUtils.getDeviceId(context));