Skip to content

Commit ba4ac0f

Browse files
committed
Bugsnag Integrated
1 parent 3dc544b commit ba4ac0f

File tree

4 files changed

+29
-2
lines changed

4 files changed

+29
-2
lines changed

app/build.gradle

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ android {
1010
minSdk 21
1111
targetSdk 31
1212
multiDexEnabled true
13-
versionCode 8
14-
versionName "2.0.0"
13+
versionCode 9
14+
versionName "2.1.0"
1515

1616

1717
}
@@ -31,6 +31,9 @@ android {
3131
viewBinding true
3232
}*/
3333
}
34+
apply plugin: "com.android.application"
35+
// Apply the Bugsnag plugin
36+
apply plugin: "com.bugsnag.android.gradle"
3437

3538
dependencies {
3639

@@ -49,5 +52,7 @@ dependencies {
4952

5053
implementation 'com.github.ybq:Android-SpinKit:1.4.0'
5154

55+
implementation "com.bugsnag:bugsnag-android:5.+"
56+
5257
}
5358

app/src/main/AndroidManifest.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,27 @@
33
xmlns:tools="http://schemas.android.com/tools"
44
package="github.umer0586">
55

6+
7+
68
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
79
<uses-permission android:name="android.permission.INTERNET" />
810
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
911
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
1012
<uses-permission android:name="android.permission.ACTIVITY_RECOGNITION" />
1113

1214
<application
15+
android:name=".MyApp"
1316
android:allowBackup="true"
1417
android:icon="@mipmap/ic_launcher"
1518
android:label="@string/app_name"
1619
android:roundIcon="@mipmap/ic_launcher_round"
1720
android:supportsRtl="true"
1821
android:theme="@style/Theme.SensorServer">
22+
23+
<meta-data
24+
android:name="com.bugsnag.android.API_KEY"
25+
android:value="323ee02b9ee5e1cde3b59f4a168c8a53"/>
26+
1927
<service
2028
android:name=".service.SensorService"
2129
android:enabled="true"
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package github.umer0586;
2+
3+
import android.app.Application;
4+
5+
import com.bugsnag.android.Bugsnag;
6+
7+
public class MyApp extends Application {
8+
@Override
9+
public void onCreate() {
10+
super.onCreate();
11+
Bugsnag.start(getApplicationContext());
12+
}
13+
}

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ buildscript {
66
}
77
dependencies {
88
classpath "com.android.tools.build:gradle:7.0.2"
9+
classpath "com.bugsnag:bugsnag-android-gradle-plugin:7.+"
910

1011
// NOTE: Do not place your application dependencies here; they belong
1112
// in the individual module build.gradle files

0 commit comments

Comments
 (0)