Commit 649e16f4 authored by jyx's avatar jyx

代码优化

parent 7ce9642e
...@@ -10,4 +10,7 @@ ...@@ -10,4 +10,7 @@
app/build app/build
picture_library/build picture_library/build
ucrop/build ucrop/build
videocache/build videocache/build
\ No newline at end of file alipay/build
rxpay/build
wxpay/build
\ No newline at end of file
...@@ -12,8 +12,8 @@ android { ...@@ -12,8 +12,8 @@ android {
applicationId "com.duben.xixifree" applicationId "com.duben.xixifree"
minSdkVersion rootProject.ext.androidMinSdkVersion minSdkVersion rootProject.ext.androidMinSdkVersion
targetSdkVersion rootProject.ext.androidTargetSdkVersion targetSdkVersion rootProject.ext.androidTargetSdkVersion
versionCode 13 versionCode 14
versionName "1.1.2" versionName "1.1.3"
flavorDimensions "default" flavorDimensions "default"
// dex突破65535的限制 // dex突破65535的限制
...@@ -67,6 +67,7 @@ android { ...@@ -67,6 +67,7 @@ android {
buildConfigField "String", "GROMORE_EXPRESS_CODE", GROMORE_EXPRESS_CODE buildConfigField "String", "GROMORE_EXPRESS_CODE", GROMORE_EXPRESS_CODE
buildConfigField "String", "GROMORE_BANNER_CODE", GROMORE_BANNER_CODE buildConfigField "String", "GROMORE_BANNER_CODE", GROMORE_BANNER_CODE
buildConfigField "String", "WEIXIN_APP_PAY_ID", WEIXIN_APP_PAY_ID buildConfigField "String", "WEIXIN_APP_PAY_ID", WEIXIN_APP_PAY_ID
buildConfigField "String", "RELEASE_TALKING_DATA_KEY", RELEASE_TALKING_DATA_KEY
//混淆 //混淆
minifyEnabled false minifyEnabled false
...@@ -89,6 +90,7 @@ android { ...@@ -89,6 +90,7 @@ android {
buildConfigField "String", "GROMORE_EXPRESS_CODE", GROMORE_EXPRESS_CODE buildConfigField "String", "GROMORE_EXPRESS_CODE", GROMORE_EXPRESS_CODE
buildConfigField "String", "GROMORE_BANNER_CODE", GROMORE_BANNER_CODE buildConfigField "String", "GROMORE_BANNER_CODE", GROMORE_BANNER_CODE
buildConfigField "String", "WEIXIN_APP_PAY_ID", WEIXIN_APP_PAY_ID buildConfigField "String", "WEIXIN_APP_PAY_ID", WEIXIN_APP_PAY_ID
buildConfigField "String", "RELEASE_TALKING_DATA_KEY", RELEASE_TALKING_DATA_KEY
//混淆 //混淆
minifyEnabled true minifyEnabled true
......
...@@ -12,6 +12,7 @@ import com.downloader.PRDownloaderConfig; ...@@ -12,6 +12,7 @@ import com.downloader.PRDownloaderConfig;
import com.duben.xixifree.ad.TTAdManagerHolder; import com.duben.xixifree.ad.TTAdManagerHolder;
import com.duben.xixifree.common.Constant; import com.duben.xixifree.common.Constant;
import com.duben.xixifree.manager.TXCSDKService; import com.duben.xixifree.manager.TXCSDKService;
import com.duben.xixifree.manager.TalkingDataManager;
import com.duben.xixifree.net.LoanService; import com.duben.xixifree.net.LoanService;
import com.duben.xixifree.net.V6Service; import com.duben.xixifree.net.V6Service;
import com.duben.xixifree.utils.AppPreferencesManager; import com.duben.xixifree.utils.AppPreferencesManager;
...@@ -70,12 +71,12 @@ public class MintsApplication extends MultiDexApplication { ...@@ -70,12 +71,12 @@ public class MintsApplication extends MultiDexApplication {
if (AppPreferencesManager.INSTANCE.get() if (AppPreferencesManager.INSTANCE.get()
.getBoolean(Constant.LOAN_PERMISSION_FLAG, true)) return; .getBoolean(Constant.LOAN_PERMISSION_FLAG, true)) return;
initMiitHelper(); initMiitHelper();
TTAdManagerHolder.init(this); TTAdManagerHolder.init(this);
TalkingDataManager.INSTANCE.init(this);
TXCSDKService.init(this); TXCSDKService.init(this);
// 判断应用是否在前台 // 判断应用是否在前台
......
...@@ -2,8 +2,8 @@ package com.duben.xixifree.manager ...@@ -2,8 +2,8 @@ package com.duben.xixifree.manager
import android.app.Application import android.app.Application
import android.content.Context import android.content.Context
import com.mints.helivideo.BuildConfig import com.duben.xixifree.BuildConfig
import com.mints.helivideo.utils.MateUtils import com.duben.xixifree.utils.MateUtils
import com.tendcloud.tenddata.TCAgent import com.tendcloud.tenddata.TCAgent
/** /**
...@@ -11,10 +11,10 @@ import com.tendcloud.tenddata.TCAgent ...@@ -11,10 +11,10 @@ import com.tendcloud.tenddata.TCAgent
*/ */
object TalkingDataManager { object TalkingDataManager {
private const val APP_KEY =BuildConfig.RELEASE_TALKING_DATA_KEY private const val APP_KEY = BuildConfig.RELEASE_TALKING_DATA_KEY
fun init(application:Application) { fun init(application: Application) {
try { try {
//打开日志 //打开日志
TCAgent.LOG_ON = BuildConfig.LOG_DEBUG TCAgent.LOG_ON = BuildConfig.LOG_DEBUG
...@@ -22,8 +22,9 @@ object TalkingDataManager { ...@@ -22,8 +22,9 @@ object TalkingDataManager {
* 动态获取渠道ID(类似友盟) * 动态获取渠道ID(类似友盟)
* AppID说是xml文件里的密钥? * AppID说是xml文件里的密钥?
*/ */
TCAgent.init(application, APP_KEY TCAgent.init(
, MateUtils.getAppMetaData(application, "CHANNEL_NAME")) application, APP_KEY, MateUtils.getAppMetaData(application, "CHANNEL_NAME")
)
/** /**
* true-开启自动捕获错误 * true-开启自动捕获错误
*/ */
...@@ -33,11 +34,11 @@ object TalkingDataManager { ...@@ -33,11 +34,11 @@ object TalkingDataManager {
} }
} }
fun onResume(cxt:Context,name:String){ fun onResume(cxt: Context, name: String) {
TCAgent.onPageStart(cxt, name) TCAgent.onPageStart(cxt, name)
} }
fun onPause(cxt:Context,name:String){ fun onPause(cxt: Context, name: String) {
TCAgent.onPageEnd(cxt, name) TCAgent.onPageEnd(cxt, name)
} }
} }
\ No newline at end of file
...@@ -46,3 +46,6 @@ GROMORE_VIDEO_CODE="102428643" ...@@ -46,3 +46,6 @@ GROMORE_VIDEO_CODE="102428643"
GROMORE_EXPRESS_CODE="102429208" GROMORE_EXPRESS_CODE="102429208"
GROMORE_DRAW_CODE="102428352" GROMORE_DRAW_CODE="102428352"
GROMORE_BANNER_CODE="102427871" GROMORE_BANNER_CODE="102427871"
#TalkingData
RELEASE_TALKING_DATA_KEY="15DEBB2C366A4911A0BA5326A071B579"
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