1
1
package me .ghui .v2er .general ;
2
2
3
3
import android .app .Application ;
4
- import android . preference . PreferenceManager ;
4
+
5
5
import androidx .annotation .Nullable ;
6
6
7
- import com .flurry .android .FlurryAgent ;
8
7
import com .oasisfeng .condom .CondomContext ;
9
8
import com .orhanobut .logger .AndroidLogAdapter ;
10
9
import com .orhanobut .logger .FormatStrategy ;
15
14
16
15
import io .reactivex .plugins .RxJavaPlugins ;
17
16
import me .ghui .v2er .BuildConfig ;
18
- import me .ghui .v2er .R ;
19
17
import me .ghui .v2er .injector .component .AppComponent ;
20
18
import me .ghui .v2er .injector .component .DaggerAppComponent ;
21
19
import me .ghui .v2er .injector .module .AppModule ;
22
20
import me .ghui .v2er .network .APIService ;
23
- import me .ghui .v2er .util .Flurry ;
24
21
import me .ghui .v2er .util .L ;
25
22
import me .ghui .v2er .util .UserUtils ;
26
23
@@ -57,7 +54,6 @@ private void rxjava() {
57
54
RxJavaPlugins .setErrorHandler (e -> {
58
55
L .e ("globalHandler: " + e .getMessage ());
59
56
// V2er.capture("globalHandler: " + e.getMessage());
60
- Flurry .capture ("globalHandler: " + e .getMessage ());
61
57
});
62
58
}
63
59
@@ -77,18 +73,9 @@ public boolean isLoggable(int priority, @Nullable String tag) {
77
73
}
78
74
79
75
private void initThirdPartySDK () {
80
- initFlurry ();
81
76
initWechat ();
82
77
}
83
78
84
- private void initFlurry () {
85
- new FlurryAgent .Builder ()
86
- .withLogEnabled (BuildConfig .DEBUG )
87
- .withCaptureUncaughtExceptions (true )
88
- .build (this , "4PZMS4HSZP3YNMBP8W4R" );
89
- FlurryAgent .setUserId (UserUtils .getUserName ());
90
- }
91
-
92
79
private void initWechat () {
93
80
mWechat = WXAPIFactory .createWXAPI (CondomContext .wrap (this , "wechat" ), null );
94
81
mWechat .registerApp ("wxdb7f82c706f4516c" );
0 commit comments