Skip to content

Commit 7427ae2

Browse files
authored
Update README.md
1 parent 772f64c commit 7427ae2

File tree

1 file changed

+46
-42
lines changed

1 file changed

+46
-42
lines changed

README.md

Lines changed: 46 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,64 @@
1-
Instabug Android SDK
2-
========
1+
# Instabug Android SDK
32

4-
An in-depth journey depicting all the ways to use [Instabug Android SDK][1].
3+
![Twitter](https://img.shields.io/badge/[email protected])
54

6-
Instabug is a bug reporting and in-app feedback tool that provides a seamless two-way communication with your users and testers. They can [easily report bugs](https://instabug.com/bug-reporting) and Instabug will automatically capture all the information you would need to debug and iterate faster.
5+
Instabug is an in-app feedback and bug reporting tool for mobile apps. With just a simple shake, your users or beta testers can [report bugs](https://instabug.com/bug-reporting) or send in-app feedback and the SDK will capture an environment snapshot of your user's device including all console logs, [server-side network requests](https://instabug.com/network-logging) and bug reproduction steps compiling all these details in one organised dashboard to help you debug and fix bugs faster.
76

8-
For more information check [Instabug.com][2].
7+
Instabug also provides you with a [reliable crash reporter](https://instabug.com/crash-reporting) that automatically captures a detailed report of the running environment, the different threads’ states, [the steps to reproduce the crash](https://instabug.com/user-steps), and the network request logs. All the data is captured automatically with no need for breadcrumbs, and you can always [reply back to your users](https://instabug.com/in-app-chat) and they will receive your messages within the app.
98

10-
Usage
11-
--------
12-
Using Instabug is as easy as "Get ready, Get set, Go".
9+
For more info, visit [Instabug.com](https://www.instabug.com).
1310

14-
1. <b>Adding Instabug to your dependencies</b> (Getting set)
11+
## Installation
1512

16-
```groovy
17-
implementation 'com.instabug.library:instabug:4.11.1'
18-
```
13+
### Gradle
1914

20-
1. <b>Using Instabug</b> (Good to go!)
15+
Add this line to your build.gradle file.
2116

22-
* Initializing Instabug:
17+
```groovy
18+
implementation 'com.instabug.library:instabug:5+'
19+
```
2320

24-
In your `Application` class add the following:
25-
```java
26-
@Override
27-
public void onCreate() {
28-
super.onCreate();
29-
// ...
30-
new Instabug.Builder(this, "<YOUR_APP_TOKEN>")
31-
.setInvocationEvent(InstabugInvocationEvent.FLOATING_BUTTON)
32-
.build();
33-
// ...
34-
}
35-
```
21+
### Maven
3622

37-
For technical documentation check the [API reference][api_reference]
23+
```xml
24+
<dependency>
25+
<groupId>com.instabug.library</groupId>
26+
<artifactId>instabug</artifactId>
27+
<version>4+</version>
28+
</dependency>
29+
```
3830

39-
License
40-
=======
31+
## Usage
4132

42-
Copyright 2012 Instabug, Inc.
33+
1. In your `Application` class add this line to your `onCreate` method.
4334

44-
Licensed under the Apache License, Version 2.0 (the "License");
45-
you may not use this file except in compliance with the License.
46-
You may obtain a copy of the License at
35+
```java
36+
new Instabug.Builder(this, "APP_TOKEN").build();
37+
```
4738

48-
http://www.apache.org/licenses/LICENSE-2.0
39+
## Notes
4940

50-
Unless required by applicable law or agreed to in writing, software
51-
distributed under the License is distributed on an "AS IS" BASIS,
52-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
53-
See the License for the specific language governing permissions and
54-
limitations under the License.
41+
Some permissions are automatically added to your AndroidManifest.xml file. Some of them are required to be able to fetch some information like the network and wifi connection. Others are used to allow the user to attach images, videos, and audio recordings.
5542

43+
Generally, the permission request doesn't appear unless the user attempts to use any of the features requiring the permission. The only exception, if you set the invocation event to be Screenshot. Then, the storage permission will be requested when the application launches.
5644

57-
[1]: https://docs.instabug.com/docs/android-integration
58-
[2]: https://instabug.com/
59-
[api_reference]: https://github.com/Instabug/android-sample/wiki
45+
This behavior is happening with the screenshot invocation because there isn't any native event that tells the SDK that a screenshot has been captured. The only way to do it is to monitor the screenshots directory. The SDK is invoked once a screenshot is added to the directory while the application is active.
6046

47+
```xml
48+
<uses-permission android:name=“android.permission.ACCESS_NETWORK_STATE” />
49+
<uses-permission android:name=“android.permission.WRITE_EXTERNAL_STORAGE” />
50+
<uses-permission android:name=“android.permission.READ_EXTERNAL_STORAGE” />
51+
<uses-permission android:name=“android.permission.ACCESS_WIFI_STATE” />
52+
<uses-permission android:name=“android.permission.RECORD_AUDIO” />
53+
<uses-permission android:name=“android.permission.MODIFY_AUDIO_SETTINGS” />
54+
```
55+
56+
You can remove any of the permissions if you are not willing to use the feature associated with it as in the following example.
57+
58+
```xml
59+
<uses-permission android:name=“android.permission.WRITE_EXTERNAL_STORAGE” tools:node=“remove”/>
60+
```
61+
62+
## More
63+
64+
You can also check out our [API Reference](https://instabug.com/public/android-api-reference/com/instabug/library/Instabug.html) for more detailed information about our SDK.

0 commit comments

Comments
 (0)