Skip to content

Commit f1d5e7f

Browse files
committed
- Updating Instabug SDK Version to 10.0.0
- Updating Gradle wrapper/build tools - Adding Instabug Plugin and enabling APM
1 parent 9792b32 commit f1d5e7f

File tree

5 files changed

+30
-13
lines changed

5 files changed

+30
-13
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ For more info, visit [Instabug.com](https://www.instabug.com).
1515
Add this line to your build.gradle file.
1616

1717
```groovy
18-
implementation 'com.instabug.library:instabug:9.1.8'
18+
implementation 'com.instabug.library:instabug:10.0.0'
1919
```
2020

2121
## Usage

app/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
apply plugin: 'com.android.application'
2+
// apply instbaug APM plugin for capturing network requests
3+
apply plugin: 'instabug-apm'
24

35
android {
46
compileSdkVersion 29
@@ -68,7 +70,7 @@ dependencies {
6870

6971
task uploadMappingFiles(type: Exec) {
7072
android.applicationVariants.all {
71-
if (it.variantData.variantConfiguration.buildType.name == "release" && it.mappingFile != null && it.mappingFile.exists()) {
73+
if (it.buildType.name == "release" && it.mappingFile != null && it.mappingFile.exists()) {
7274
commandLine 'sh', '../upload_mapping.sh', "APP_TOKEN", it.versionCode, it.versionName, it.mappingFile
7375
}
7476
}

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import android.content.Context;
55
import androidx.multidex.MultiDex;
66

7+
import com.instabug.apm.APM;
78
import com.instabug.bug.BugReporting;
89
import com.instabug.library.Instabug;
910
import com.instabug.library.InstabugColorTheme;
@@ -27,7 +28,7 @@ public void onCreate() {
2728
super.onCreate();
2829

2930
//initialing instabug
30-
new Instabug.Builder(this, "48ad905e141bc665d064945f423aa414")
31+
new Instabug.Builder(this, "30ec799583080bebc59c5b25457ffeac")
3132
.setInvocationEvents(InstabugInvocationEvent.SHAKE, InstabugInvocationEvent.SCREENSHOT,
3233
InstabugInvocationEvent.FLOATING_BUTTON, InstabugInvocationEvent.TWO_FINGER_SWIPE_LEFT)
3334
.build();
@@ -59,5 +60,8 @@ public void onCreate() {
5960
Instabug.setUserAttribute("USER_TYPE", "instabug user");
6061

6162
BugReporting.setAutoScreenRecordingEnabled(true);
63+
64+
APM.setEnabled(true);
65+
6266
}
6367
}

build.gradle

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,29 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22

3+
4+
5+
36
buildscript {
7+
ext {
8+
multidex = "2.0.1"
9+
material = "1.0.0"
10+
androidXAppCompat = "1.1.0"
11+
instabugSDK = "10.0.0"
12+
colorPicker = "1.1.8"
13+
}
414
repositories {
15+
maven {
16+
// TODO add this only if interested in getting SNAPSHOT releases
17+
url "https://oss.sonatype.org/content/repositories/snapshots"
18+
}
519
jcenter()
620
google()
21+
722
}
823
dependencies {
9-
classpath 'com.android.tools.build:gradle:3.6.3'
24+
classpath 'com.android.tools.build:gradle:4.0.1'
25+
26+
classpath "com.instabug.library:instabug-plugin:$rootProject.ext.instabugSDK"
1027

1128
}
1229
}
@@ -15,6 +32,7 @@ allprojects {
1532
repositories {
1633
jcenter()
1734
google()
35+
1836
}
1937
}
2038

@@ -23,10 +41,3 @@ task clean(type: Delete) {
2341
}
2442

2543

26-
ext {
27-
multidex = "2.0.1"
28-
material = "1.0.0"
29-
androidXAppCompat = "1.1.0"
30-
instabugSDK = "9.1.8"
31-
colorPicker = "1.1.8"
32-
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Tue Apr 21 15:40:54 EET 2020
1+
#Mon Sep 28 23:38:17 EET 2020
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip

0 commit comments

Comments
 (0)