1
1
package com .example .instabug ;
2
2
3
+ import static com .instabug .library .settings .SettingsManager .VERBOSE ;
4
+
3
5
import android .app .Application ;
4
6
import android .content .Context ;
5
7
import androidx .multidex .MultiDex ;
9
11
import com .instabug .library .Instabug ;
10
12
import com .instabug .library .InstabugColorTheme ;
11
13
import com .instabug .library .InstabugCustomTextPlaceHolder ;
14
+ import com .instabug .library .LogLevel ;
12
15
import com .instabug .library .internal .module .InstabugLocale ;
13
16
import com .instabug .library .invocation .InstabugInvocationEvent ;
14
17
import com .instabug .library .ui .onboarding .WelcomeMessage ;
@@ -31,6 +34,7 @@ public void onCreate() {
31
34
new Instabug .Builder (this , "token" )
32
35
.setInvocationEvents (InstabugInvocationEvent .SHAKE , InstabugInvocationEvent .SCREENSHOT ,
33
36
InstabugInvocationEvent .FLOATING_BUTTON , InstabugInvocationEvent .TWO_FINGER_SWIPE_LEFT )
37
+ .setSdkDebugLogsLevel (LogLevel .VERBOSE ) // <--- don't use this in production
34
38
.build ();
35
39
36
40
//Choosing instabug theme
@@ -46,9 +50,6 @@ public void onCreate() {
46
50
Instabug .setLocale (new Locale (InstabugLocale .FRENCH .getCode ()));
47
51
Instabug .setLocale (Locale .ENGLISH );
48
52
49
- //To show instabug debug logs if necessary
50
- Instabug .setDebugEnabled (true );
51
-
52
53
//Settings custom strings to replace instabug's strings
53
54
InstabugCustomTextPlaceHolder placeHolder = new InstabugCustomTextPlaceHolder ();
54
55
placeHolder .set (InstabugCustomTextPlaceHolder .Key .REPORT_FEEDBACK , "Send Feedback" );
0 commit comments