Commit 33ca2cd5 authored by mengcuiguang2's avatar mengcuiguang2

代码优化

parent 9b0e4e95
......@@ -35,6 +35,7 @@ android {
JPUSH_APPKEY : RELEASE_JPUSH_KEY,
JPUSH_CHANNEL : "goodmoney",
UMENG_KEY : RELEASE_UMENG_KEY,
BUGLY_ID : RELEASE_BUGLY_KEY,
SHARE_KEY : RELEASE_SHARESDK_KEY,
SHARE_SECRET : RELEASE_SHARESDK_SECRET,
APPLICATION_ID : applicationId]
......@@ -207,6 +208,9 @@ dependencies {
// BASE64Decoder(已集成)
// 三方接入
// bugly
implementation 'com.tencent.bugly:crashreport:3.3.92'
implementation 'com.tencent.bugly:nativecrashreport:3.0'
// leakcanary
// debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.4'
// 极光推送
......
......@@ -195,6 +195,11 @@
<activity
android:name=".ui.activitys.SplashKsADActivity"
android:screenOrientation="portrait" />
<meta-data
android:name="BUGLY_ID"
android:value="${BUGLY_ID}" />
<activity
android:name=".ui.activitys.SplashCsjADActivity"
android:screenOrientation="portrait"
......
......@@ -31,6 +31,7 @@ import com.orhanobut.logger.AndroidLogAdapter;
import com.orhanobut.logger.FormatStrategy;
import com.orhanobut.logger.Logger;
import com.orhanobut.logger.PrettyFormatStrategy;
import com.tencent.bugly.crashreport.CrashReport;
import com.tendcloud.tenddata.TCAgent;
import com.umeng.analytics.MobclickAgent;
import com.umeng.commonsdk.UMConfigure;
......@@ -113,6 +114,9 @@ public class MintsApplication extends MultiDexApplication {
// preInit预初始化函数耗时极少,不会影响App首次冷启动用户体验
UMConfigure.preInit(this, CommonUtils.getAppMetaData(MintsApplication.getContext(), "UMENG_KEY"), CommonUtils.getAppMetaData(MintsApplication.getContext(), "CHANNEL_NAME"));
CrashReport.initCrashReport(getApplicationContext(), CommonUtils.getAppMetaData(this, "BUGLY_ID"), BuildConfig.DEBUG);
// 初始化toast
initToast();
......
......@@ -41,7 +41,8 @@ RELEASE_UMENG_KEY=5f83c3eb80455950e4a759d3
#JPush
RELEASE_JPUSH_KEY=d1fc227e2d3ec3c7a8cafa69
#Bugly
RELEASE_BUGLY_KEY=eb959eec8c
......
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