Skip to content

Commit 7c75d33

Browse files
committed
Use v3.1.0
1 parent f215aea commit 7c75d33

File tree

4 files changed

+26
-4
lines changed

4 files changed

+26
-4
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
Change Log
22
==========
33

4+
Version 3.1.0 *(2016-11-24)*
5+
----------------------------
6+
7+
* Message Actions: allows you to add actionable buttons to messages you send to your users. Each button take users to a URL you specify through the Instabug dashboard. You can use Message Actions for things like asking your users to review your app on the Play Store, or to complete a short survey.
8+
* Reporting Categories: allows you to show a predefined set of categories for users to choose from when reporting a bug or sending feedback. Selected category shows up on your Instabug dashboard as a tag to make filtering through issues easier.
9+
* We have a new experience for adding attachments to bug reports and feedback.
10+
* Bug fixes
11+
12+
413
Version 3.0.6 *(2016-11-10)*
514
----------------------------
615

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Using Instabug is as easy as "Get ready, Get set, Go".
2222

2323
Grab via Gradle:
2424
```groovy
25-
compile 'com.instabug.library:instabug:3.0.6'
25+
compile 'com.instabug.library:instabug:3.1.0'
2626
```
2727
2828
or via Maven: (if you're that kind of person :bowtie:)
@@ -31,7 +31,7 @@ Using Instabug is as easy as "Get ready, Get set, Go".
3131
<dependency>
3232
<groupId>com.instabug.library</groupId>
3333
<artifactId>instabug</artifactId>
34-
<version>3.0.6</version>
34+
<version>3.1.0</version>
3535
</dependency>
3636
```
3737

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ dependencies {
6060
// TODO add the following 2 lines if you exclude io.reactivex from Instabug
6161
// compile 'io.reactivex:rxjava:1.0.13'
6262
// compile 'io.reactivex:rxandroid:1.0.1'
63-
compile('com.instabug.library:instabug:3.0.6') {
63+
compile('com.instabug.library:instabug:3.1.0') {
6464
// TODO uncomment this line to exclude RxJava from Instabug and use your own version
6565
// exclude group: 'io.reactivex'
6666

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

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111
import com.instabug.library.InstabugCustomTextPlaceHolder;
1212
import com.instabug.library.internal.module.InstabugLocale;
1313
import com.instabug.library.invocation.InstabugInvocationEvent;
14+
import com.instabug.library.model.BugCategory;
1415

1516
import java.security.KeyFactory;
17+
import java.util.ArrayList;
1618
import java.util.Locale;
1719

1820
/**
@@ -30,7 +32,7 @@ public void onCreate() {
3032
.setIntroMessageEnabled(false)
3133
.setInvocationEvent(InstabugInvocationEvent.SHAKE)
3234
.setAttachmentTypesEnabled(true, true, true, true, true)
33-
// TODO the following are 3 acceptable ways to force Locale in Instabug (last one is the only 1 applied)
35+
// TODO the following are 3 acceptable ways to force Locale in Instabug (last one is the only 1 applied)
3436
.setLocale(new Locale(InstabugLocale.SIMPLIFIED_CHINESE.getCode(), InstabugLocale.SIMPLIFIED_CHINESE.getCountry()))
3537
.setLocale(new Locale(InstabugLocale.FRENCH.getCode()))
3638
.setLocale(Locale.GERMAN)
@@ -44,5 +46,16 @@ public void onCreate() {
4446
placeHolder.set(InstabugCustomTextPlaceHolder.Key.REPORT_BUG, "Send Bug Report");
4547

4648
Instabug.setCustomTextPlaceHolders(placeHolder);
49+
50+
ArrayList<BugCategory> bugCategories = new ArrayList<>();
51+
bugCategories.add(
52+
BugCategory.getInstance().withLabel("Map").withIcon(android.R.drawable.ic_dialog_map));
53+
bugCategories.add(BugCategory.getInstance()
54+
.withLabel("Alert")
55+
.withIcon(android.R.drawable.ic_dialog_alert));
56+
bugCategories.add(
57+
BugCategory.getInstance().withLabel("Mail").withIcon(android.R.drawable.ic_dialog_email));
58+
59+
Instabug.setBugCategories(bugCategories);
4760
}
4861
}

0 commit comments

Comments
 (0)