Skip to content

Commit af60891

Browse files
authored
Update README.md
1 parent 5a03c80 commit af60891

File tree

1 file changed

+35
-4
lines changed

1 file changed

+35
-4
lines changed

README.md

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Detailed bug reporting and in-app chat for mobile games made on Android, iOS, an
77

88
Collect in-game bug reports and feedback and speed up your game development cycle with Instabug. Forward your bugs automatically to Trello, Jira, Slack, Github, Gitlab & more.
99

10-
For more info, visit Instabug for Unity on [instabug.com](https://www.instabug.com/platforms/unity).
10+
For more info, visit Instabug for Unity on [Instabug.com](https://www.instabug.com/platforms/unity).
1111

1212
## Installation (iOS)
1313

@@ -27,15 +27,46 @@ For more info, visit Instabug for Unity on [instabug.com](https://www.instabug.c
2727

2828
3. Open the exported project from Android Studio, and add the following changes to the build.gradle file.
2929
```
30-
... allprojects { repositories { jcenter() google() maven { // TODO add this only if interested in getting SNAPSHOT releases url ‘https://oss.sonatype.org/content/repositories/snapshots’ } ... } } ... dependencies { ... compile ‘com.instabug.library:instabug:5.0.0.3.19-SNAPSHOT’ } ...
30+
...
31+
allprojects {
32+
repositories {
33+
jcenter()
34+
google()
35+
maven {
36+
// TODO add this only if interested in getting SNAPSHOT releases
37+
url 'https://oss.sonatype.org/content/repositories/snapshots' }
38+
... }
39+
}
40+
...
41+
dependencies {
42+
...
43+
compile 'com.instabug.library:instabug:5.0.0.3.19-SNAPSHOT'
44+
}
45+
...
3146
```
3247
4. Create a new Application.java class that should look like this. Add your app token, and change the invocation event from this class.
3348
```
34-
... import android.app.Application; import com.instabug.library.Instabug; import com.instabug.library.invocation.InstabugInvocationEvent; ... public class MyApp extends Application { @Override public void onCreate() { super.onCreate(); // You can change the invocation event to NONE, FLOATING_BUTTON, // SCREENSHOT_GESTURE, or TWO_FINGER_SWIPE_LEFT. new Instabug.Builder(this, “YOUR_APP_TOKEN”) .setInvocationEvent(InstabugInvocationEvent.SHAKE) .build(); Instabug.setUnityEnabled(true); } }
49+
...
50+
import android.app.Application;
51+
import com.instabug.library.Instabug;
52+
import com.instabug.library.invocation.InstabugInvocationEvent;
53+
...
54+
public class MyApp extends Application {
55+
@Override
56+
public void onCreate() { super.onCreate();
57+
// You can change the invocation event to NONE, FLOATING_BUTTON, // SCREENSHOT_GESTURE, or TWO_FINGER_SWIPE_LEFT.
58+
new Instabug.Builder(this, "YOUR_APP_TOKEN")
59+
.setInvocationEvent(InstabugInvocationEvent.SHAKE)
60+
.build(); Instabug.setUnityEnabled(true);
61+
} }
3562
```
3663
5. Add the Application class name to the AndroidManifest.xml file.
3764
```
38-
<manifest xmlns:android=“http://schemas.android.com/apk/res/android” ...> ... <application android:name=“.MyApp” ...> ... </application> ... </manifest>
65+
<manifest xmlns:android="http://schemas.android.com/apk/res/android" ...> ...
66+
<application android:name=".MyApp" ...> ...
67+
</application>
68+
...
69+
</manifest>
3970
```
4071

4172

0 commit comments

Comments
 (0)