Skip to content

Commit

Permalink
增加bugly监控异常
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaopan committed Nov 2, 2015
1 parent ad833b7 commit d4597d0
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ loadProperties projectPath+'/local.properties'

android {
compileSdkVersion 22
buildToolsVersion "21.1.2"
buildToolsVersion "23.0.1"

defaultConfig {
minSdkVersion 8
Expand Down Expand Up @@ -60,7 +60,7 @@ dependencies {
compile 'com.android.support:appcompat-v7:22.2.0'
compile 'com.android.support:recyclerview-v7:22.2.0'
compile 'me.xiaopan:gohttp:1.2.0'
compile 'me.xiaopan:androidinjector:1.4.0'
compile 'me.xiaopan:androidinjector:1.5.0'
compile 'me.xiaopan:pagerslidingtabstrip:1.6.0'
compile 'me.xiaopan:pullrefreshlayout:1.4.0'
}
Expand Down
Binary file added sample/libs/bugly_1.2.3.8__release.jar
Binary file not shown.
2 changes: 2 additions & 0 deletions sample/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,6 @@
-keep public class * implements java.io.Serializable {*;}
##---------------End: proguard configuration for Gson ----------

-keep public class com.tencent.bugly.**{*;}


3 changes: 3 additions & 0 deletions sample/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.SET_WALLPAPER"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.READ_LOGS" />

<application
android:allowBackup="true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
import android.text.format.Formatter;
import android.util.Log;

import com.tencent.bugly.crashreport.CrashReport;

import me.xiaopan.gohttp.GoHttp;
import me.xiaopan.sketch.Sketch;

Expand All @@ -28,8 +30,9 @@ public class MyApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
CrashReport.initCrashReport(getBaseContext(), "900007777", BuildConfig.DEBUG);

GoHttp.with(getBaseContext()).setDebugMode(true);
GoHttp.with(getBaseContext()).setDebugMode(BuildConfig.DEBUG);

SketchManager sketchManager = new SketchManager(getBaseContext());
sketchManager.initConfig();
Expand Down
2 changes: 1 addition & 1 deletion sketch/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.library'

android {
compileSdkVersion 22
buildToolsVersion "21.1.2"
buildToolsVersion "23.0.1"

defaultConfig {
minSdkVersion 8
Expand Down

0 comments on commit d4597d0

Please sign in to comment.