Skip to content

Commit 54274c9

Browse files
authored
Update Readme (#130)
1 parent 5f603f8 commit 54274c9

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,21 @@ dependencies:
3636
flutter packages get
3737
```
3838

39-
### Using Instabug
39+
### Initializing Instabug
4040

41-
1. To start using Instabug, import it into your Flutter app.
41+
To start using Instabug, import it into your Flutter app.
4242

4343
```dart
4444
import 'package:instabug_flutter/Instabug.dart';
4545
```
46-
47-
2. Initialize the SDK in `initState()`. This line enables the SDK with the default behavior and sets it to be shown when the device is shaken. Ignore this if you're building for Android only.
46+
* #### iOS
47+
Initialize the SDK in `initState()`. This line enables the SDK with the default behavior and sets it to be shown when the device is shaken.
4848

4949
```dart
5050
Instabug.start('APP_TOKEN', [InvocationEvent.shake]);
5151
```
52-
53-
3. Add the following Maven repository to your project level `build.gradle`
52+
* #### Android
53+
1. Add the following Maven repository to your project level `build.gradle`
5454

5555
```dart
5656
allprojects {
@@ -62,9 +62,8 @@ allprojects {
6262
}
6363
```
6464

65-
Make sure to replace `app_token` with your application token.
6665

67-
4. If your app supports Android, create a new Java class that extends `FlutterApplication` and add it to your `AndroidManifest.xml`.
66+
2. Create a new Java class that extends `FlutterApplication` and add it to your `AndroidManifest.xml`.
6867

6968
```xml
7069
<application
@@ -73,7 +72,8 @@ Make sure to replace `app_token` with your application token.
7372
</application>
7473
````
7574

76-
5. In your newly created `CustomFlutterApplication` class, override `onCreate()` and add the following code.
75+
3. In your newly created `CustomFlutterApplication` class, override `onCreate()` and add the following code.
76+
7777

7878
```java
7979
ArrayList<String> invocationEvents = new ArrayList<>();
@@ -111,4 +111,4 @@ client.getUrl(Uri.parse(URL)).then((request) async {
111111
});
112112
```
113113

114-
We also support the packages `http` and `dio`. For details on how to enable network logging for these external packages, refer to the [Instabug Dart Http Adapter](https://github.com/Instabug/Instabug-Dart-http-Adapter) and the [Instabug Dio Interceptor](https://github.com/Instabug/Instabug-Dio-Interceptor) repositories.
114+
We also support the packages `http` and `dio`. For details on how to enable network logging for these external packages, refer to the [Instabug Dart Http Adapter](https://github.com/Instabug/Instabug-Dart-http-Adapter) and the [Instabug Dio Interceptor](https://github.com/Instabug/Instabug-Dio-Interceptor) repositories.

0 commit comments

Comments
 (0)