Skip to content

Commit 7d67082

Browse files
authored
Merge pull request #102 from Instabug/updated-readme
Update README.md
2 parents 772f64c + c72c599 commit 7d67082

File tree

1 file changed

+36
-42
lines changed

1 file changed

+36
-42
lines changed

README.md

Lines changed: 36 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,54 @@
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+
## Usage
3622

37-
For technical documentation check the [API reference][api_reference]
23+
1. In your `Application` class add this line to your `onCreate` method.
3824

39-
License
40-
=======
25+
```java
26+
new Instabug.Builder(this, "APP_TOKEN").build();
27+
```
4128

42-
Copyright 2012 Instabug, Inc.
29+
## Notes
4330

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
31+
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.
4732

48-
http://www.apache.org/licenses/LICENSE-2.0
33+
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.
4934

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.
35+
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.
5536

37+
```xml
38+
<uses-permission android:name=“android.permission.ACCESS_NETWORK_STATE” />
39+
<uses-permission android:name=“android.permission.WRITE_EXTERNAL_STORAGE” />
40+
<uses-permission android:name=“android.permission.READ_EXTERNAL_STORAGE” />
41+
<uses-permission android:name=“android.permission.ACCESS_WIFI_STATE” />
42+
<uses-permission android:name=“android.permission.RECORD_AUDIO” />
43+
<uses-permission android:name=“android.permission.MODIFY_AUDIO_SETTINGS” />
44+
```
5645

57-
[1]: https://docs.instabug.com/docs/android-integration
58-
[2]: https://instabug.com/
59-
[api_reference]: https://github.com/Instabug/android-sample/wiki
46+
You can remove any of the permissions if you are not willing to use the feature associated with it as in the following example.
6047

48+
```xml
49+
<uses-permission android:name=“android.permission.WRITE_EXTERNAL_STORAGE” tools:node=“remove”/>
50+
```
51+
52+
## More
53+
54+
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)