Skip to content

Commit ee07e36

Browse files
authored
Bumping SDK version and remove deprecated calls (#425)
1 parent 2c9df25 commit ee07e36

File tree

3 files changed

+5
-14
lines changed

3 files changed

+5
-14
lines changed
Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,11 @@
11
package com.example.instabug;
22

33
import androidx.appcompat.app.AppCompatActivity;
4-
import android.view.MotionEvent;
5-
6-
import com.instabug.library.InstabugTrackingDelegate;
74

85
/**
96
* Created by vezikon on 10/15/16.
107
*/
118

129
public class BaseActivity extends AppCompatActivity {
1310

14-
@Override
15-
public boolean dispatchTouchEvent(MotionEvent ev) {
16-
//To allow instabug to track user steps
17-
// and also add touches to screen recording
18-
InstabugTrackingDelegate.notifyActivityGotTouchEvent(ev, this);
19-
return super.dispatchTouchEvent(ev);
20-
}
2111
}

app/src/main/java/com/example/instabug/SampleApplication.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package com.example.instabug;
22

3+
import static com.instabug.library.settings.SettingsManager.VERBOSE;
4+
35
import android.app.Application;
46
import android.content.Context;
57
import androidx.multidex.MultiDex;
@@ -9,6 +11,7 @@
911
import com.instabug.library.Instabug;
1012
import com.instabug.library.InstabugColorTheme;
1113
import com.instabug.library.InstabugCustomTextPlaceHolder;
14+
import com.instabug.library.LogLevel;
1215
import com.instabug.library.internal.module.InstabugLocale;
1316
import com.instabug.library.invocation.InstabugInvocationEvent;
1417
import com.instabug.library.ui.onboarding.WelcomeMessage;
@@ -31,6 +34,7 @@ public void onCreate() {
3134
new Instabug.Builder(this, "token")
3235
.setInvocationEvents(InstabugInvocationEvent.SHAKE, InstabugInvocationEvent.SCREENSHOT,
3336
InstabugInvocationEvent.FLOATING_BUTTON, InstabugInvocationEvent.TWO_FINGER_SWIPE_LEFT)
37+
.setSdkDebugLogsLevel(LogLevel.VERBOSE) // <--- don't use this in production
3438
.build();
3539

3640
//Choosing instabug theme
@@ -46,9 +50,6 @@ public void onCreate() {
4650
Instabug.setLocale(new Locale(InstabugLocale.FRENCH.getCode()));
4751
Instabug.setLocale(Locale.ENGLISH);
4852

49-
//To show instabug debug logs if necessary
50-
Instabug.setDebugEnabled(true);
51-
5253
//Settings custom strings to replace instabug's strings
5354
InstabugCustomTextPlaceHolder placeHolder = new InstabugCustomTextPlaceHolder();
5455
placeHolder.set(InstabugCustomTextPlaceHolder.Key.REPORT_FEEDBACK, "Send Feedback");

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ buildscript {
88
multidex = "2.0.1"
99
material = "1.0.0"
1010
androidXAppCompat = "1.3.0"
11-
instabugSDK = "10+"
11+
instabugSDK = "11+"
1212
colorPicker = "2.2.3"
1313
fragmentKtx = "1.3.4"
1414
}

0 commit comments

Comments
 (0)