Skip to content

Commit 98128a1

Browse files
author
Mohamed Sobhy
committed
Use v2.1.1 + Enable MultiDex + Exclude RxJava & RxAndroid from Instabug + Add proguard-rules.pro for ButterKnife
1 parent 7fa9fb8 commit 98128a1

File tree

4 files changed

+16
-12
lines changed

4 files changed

+16
-12
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,38 +28,38 @@ Using Instabug is as easy as "Get ready, Get set, Go".
2828

2929
Grab your desired flavour via Gradle:
3030
```groovy
31-
compile 'com.instabug.library:instabug:2.1'
31+
compile 'com.instabug.library:instabug:2.1.1'
3232
```
3333
or
3434
```groovy
35-
compile 'com.instabug.library:instabugcompat:2.1'
35+
compile 'com.instabug.library:instabugcompat:2.1.1'
3636
```
3737
or
3838
```groovy
39-
compile 'com.instabug.library:instabugabs:2.1'
39+
compile 'com.instabug.library:instabugabs:2.1.1'
4040
```
4141
or via Maven: (if you're that kind of person :bowtie:)
4242
```xml
4343
<dependency>
4444
<groupId>com.instabug.library</groupId>
4545
<artifactId>instabug</artifactId>
46-
<version>2.1</version>
46+
<version>2.1.1</version>
4747
</dependency>
4848
```
4949
or
5050
```xml
5151
<dependency>
5252
<groupId>com.instabug.library</groupId>
5353
<artifactId>instabugcompat</artifactId>
54-
<version>2.1</version>
54+
<version>2.1.1</version>
5555
</dependency>
5656
```
5757
or
5858
```xml
5959
<dependency>
6060
<groupId>com.instabug.library</groupId>
6161
<artifactId>instabugabs</artifactId>
62-
<version>2.1</version>
62+
<version>2.1.1</version>
6363
</dependency>
6464
```
6565

app/build.gradle

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ android {
1010
targetSdkVersion 23
1111
versionCode 1
1212
versionName "1.0"
13+
multiDexEnabled true
1314
}
1415
buildTypes {
1516
release {
16-
minifyEnabled false
17+
minifyEnabled true
1718
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
1819
}
1920
}
@@ -29,18 +30,18 @@ repositories {
2930
dependencies {
3031
compile fileTree(dir: 'libs', include: ['*.jar'])
3132
testCompile 'junit:junit:4.12'
33+
compile 'com.android.support:multidex:1.0.1'
3234
compile 'com.jakewharton:butterknife:7.0.1'
3335
compile 'com.android.support:design:23.1.1'
3436
compile 'com.android.support:appcompat-v7:23.1.1'
3537
// TODO if you use a lower version than 8.4.0 you should uncomment the exclude line to avoid errors
3638
compile 'com.google.android.gms:play-services:8.4.0'
3739
// TODO add the following 2 lines if you exclude io.reactivex from Instabug
38-
// compile 'io.reactivex:rxjava:1.0.13'
39-
// compile 'io.reactivex:rxandroid:1.0.1'
40-
compile('com.instabug.library:instabug:2.1') {
40+
compile 'io.reactivex:rxjava:1.0.13'
41+
compile 'io.reactivex:rxandroid:1.0.1'
42+
compile('com.instabug.library:instabug:2.1.1') {
4143
// TODO uncomment these 2 lines to exclude RxJava from Instabug and use your own version
42-
// exclude group: 'io.reactivex', module: 'rxjava'
43-
// exclude group: 'com.netflix.rxjava', module: 'rxjava-android'
44+
exclude group: 'io.reactivex'
4445

4546
exclude module: 'appcompat-v7'
4647
// TODO uncomment next line if you're facing compilation issue in build.gradle about gms different versions

app/proguard-rules.pro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@
1515
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
1616
# public *;
1717
#}
18+
-dontwarn butterknife.internal.**

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

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

33
import android.app.Application;
4+
import android.support.multidex.MultiDex;
45

56
import com.instabug.library.IBGColorTheme;
67
import com.instabug.library.IBGInvocationEvent;
@@ -13,6 +14,7 @@ public class SampleApplication extends Application {
1314
@Override
1415
public void onCreate() {
1516
super.onCreate();
17+
MultiDex.install(this);
1618
new Instabug.Builder(this, "f501f761142981d54b1fdea93963a934")
1719
.setDebugEnabled(true)
1820
.setEmailFieldRequired(false)

0 commit comments

Comments
 (0)