Skip to content

Commit 1115068

Browse files
author
Mohamed Sobhy
committed
Use v2.2.1 + Force locale + Deny RECORD_AUDIO permission
1 parent 199f8b4 commit 1115068

File tree

4 files changed

+22
-9
lines changed

4 files changed

+22
-9
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.2'
31+
compile 'com.instabug.library:instabug:2.2.1'
3232
```
3333
or
3434
```groovy
35-
compile 'com.instabug.library:instabugcompat:2.2'
35+
compile 'com.instabug.library:instabugcompat:2.2.1'
3636
```
3737
or
3838
```groovy
39-
compile 'com.instabug.library:instabugabs:2.2'
39+
compile 'com.instabug.library:instabugabs:2.2.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.2</version>
46+
<version>2.2.1</version>
4747
</dependency>
4848
```
4949
or
5050
```xml
5151
<dependency>
5252
<groupId>com.instabug.library</groupId>
5353
<artifactId>instabugcompat</artifactId>
54-
<version>2.2</version>
54+
<version>2.2.1</version>
5555
</dependency>
5656
```
5757
or
5858
```xml
5959
<dependency>
6060
<groupId>com.instabug.library</groupId>
6161
<artifactId>instabugabs</artifactId>
62-
<version>2.2</version>
62+
<version>2.2.1</version>
6363
</dependency>
6464
```
6565

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ dependencies {
3939
// TODO add the following 2 lines if you exclude io.reactivex from Instabug
4040
// compile 'io.reactivex:rxjava:1.0.13'
4141
// compile 'io.reactivex:rxandroid:1.0.1'
42-
compile('com.instabug.library:instabug:2.2') {
42+
compile('com.instabug.library:instabug:2.2.1') {
4343
// TODO uncomment this line to exclude RxJava from Instabug and use your own version
4444
// exclude group: 'io.reactivex'
4545

app/src/main/AndroidManifest.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest
33
package="com.example.instabug"
4-
xmlns:android="http://schemas.android.com/apk/res/android">
4+
xmlns:android="http://schemas.android.com/apk/res/android"
5+
xmlns:tools="http://schemas.android.com/tools">
6+
7+
<!-- TODO Deny RECORD_AUDIO permission from Instabug -->
8+
<uses-permission
9+
android:name="android.permission.RECORD_AUDIO"
10+
tools:node="remove"/>
511

612
<uses-feature
713
android:glEsVersion="0x00020000"

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
import com.instabug.library.IBGColorTheme;
77
import com.instabug.library.IBGInvocationEvent;
88
import com.instabug.library.Instabug;
9+
import com.instabug.library.internal.module.InstabugLocale;
10+
11+
import java.util.Locale;
912

1013
/**
1114
* @author mSobhy
@@ -18,9 +21,13 @@ public void onCreate() {
1821
new Instabug.Builder(this, "f501f761142981d54b1fdea93963a934")
1922
.setDebugEnabled(true)
2023
.setEmailFieldRequired(false)
24+
.setFloatingButtonOffsetFromTop(400)
2125
.setColorTheme(IBGColorTheme.IBGColorThemeLight)
2226
.setInvocationEvent(IBGInvocationEvent.IBGInvocationEventFloatingButton)
23-
.setFloatingButtonOffsetFromTop(400)
27+
// TODO the following are 3 acceptable ways to force Locale in Instabug (last one is the only 1 applied)
28+
.setLocale(new Locale(InstabugLocale.SIMPLIFIED_CHINESE.getCode(), InstabugLocale.SIMPLIFIED_CHINESE.getCountry()))
29+
.setLocale(new Locale(InstabugLocale.FRENCH.getCode()))
30+
.setLocale(Locale.GERMAN)
2431
.build();
2532
}
2633
}

0 commit comments

Comments
 (0)