Skip to content

Commit 6ffccfd

Browse files
author
Ali Abdelfattah
authored
[MOB-7917] Update Integration Steps for Android (#664)
* Update README.md * Update formatting * Fix broken dashboard link
1 parent e79da08 commit 6ffccfd

File tree

1 file changed

+6
-23
lines changed

1 file changed

+6
-23
lines changed

README.md

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,7 @@ Updating to a new version? Check the [Update Guide](#update-guide) before bumpin
3636
cd ios && pod install && cd ..
3737
```
3838

39-
3. **For React Native >= 0.60**, simply run the command:
40-
41-
```bash
42-
react-native add-instabug
43-
```
44-
45-
**For React Native < 0.60**, link the bridging files in the `instabug-reactnative` package:
39+
3. **For React Native < 0.60**, link the bridging files in the `instabug-reactnative` package:
4640

4741
```bash
4842
react-native link instabug-reactnative
@@ -55,14 +49,14 @@ Updating to a new version? Check the [Update Guide](#update-guide) before bumpin
5549
```javascript
5650
import Instabug from 'instabug-reactnative';
5751
```
58-
* ### iOS
59-
Initialize it in the `constructor` or `componentWillMount`. This line will let the Instabug SDK work with the default behavior. The SDK will be invoked when the device is shaken. You can customize this behavior through the APIs.
52+
### iOS
53+
- Initialize it in the `constructor` or `componentWillMount`. This line will let the Instabug SDK work with the default behavior. The SDK will be invoked when the device is shaken. You can customize this behavior through the APIs.
6054

6155
```javascript
6256
Instabug.start('IOS_APP_TOKEN', [Instabug.invocationEvent.shake]);
6357
```
64-
* ### Android
65-
1. Open `android/app/src/main/java/[...]/MainApplication.java`
58+
### Android
59+
- Open `android/app/src/main/java/[...]/MainApplication.java`
6660
* Make sure to import the package class:
6761
`import com.instabug.reactlibrary.RNInstabugReactnativePackage;`
6862
* **For React Native >= 0.60**
@@ -101,18 +95,7 @@ import Instabug from 'instabug-reactnative';
10195
* You can change the invocation event from here, simply by replacing the `"shake"` with any of the following `"button"`, `"none"`, `"screenshot"`, or `"swipe"`. You can change the primary color by replacing the `"#1D82DC"` with any color of your choice.
10296
In the case that you are using the floating button as an invocation event, you can change the floating button edge and the floating button offset using the last two methods, by replacing `"left"` to `"right"`, and by changing the offset number.
10397
104-
You can find your app token by selecting the SDK tab from your [**Instabug dashboard**](https://dashboard.instabug.com/app/sdk/).
105-
106-
2. Make sure the following snippet is added to your project level `build.gradle`. This should be added automatically upon linking. If not, you can add it manually.
107-
```dart
108-
allprojects {
109-
repositories {
110-
maven {
111-
url "https://sdks.instabug.com/nexus/repository/instabug-cp"
112-
}
113-
}
114-
}
115-
```
98+
_You can find your app token by selecting the SDK tab from your [**Instabug dashboard**](https://dashboard.instabug.com)._
11699
117100
## Microphone and Photo Library Usage Description (iOS Only)
118101

0 commit comments

Comments
 (0)