File tree Expand file tree Collapse file tree 4 files changed +29
-2
lines changed Expand file tree Collapse file tree 4 files changed +29
-2
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ android {
10
10
minSdk 21
11
11
targetSdk 31
12
12
multiDexEnabled true
13
- versionCode 8
14
- versionName " 2.0 .0"
13
+ versionCode 9
14
+ versionName " 2.1 .0"
15
15
16
16
17
17
}
@@ -31,6 +31,9 @@ android {
31
31
viewBinding true
32
32
}*/
33
33
}
34
+ apply plugin : " com.android.application"
35
+ // Apply the Bugsnag plugin
36
+ apply plugin : " com.bugsnag.android.gradle"
34
37
35
38
dependencies {
36
39
@@ -49,5 +52,7 @@ dependencies {
49
52
50
53
implementation ' com.github.ybq:Android-SpinKit:1.4.0'
51
54
55
+ implementation " com.bugsnag:bugsnag-android:5.+"
56
+
52
57
}
53
58
Original file line number Diff line number Diff line change 3
3
xmlns : tools =" http://schemas.android.com/tools"
4
4
package =" github.umer0586" >
5
5
6
+
7
+
6
8
<uses-permission android : name =" android.permission.FOREGROUND_SERVICE" />
7
9
<uses-permission android : name =" android.permission.INTERNET" />
8
10
<uses-permission android : name =" android.permission.ACCESS_NETWORK_STATE" />
9
11
<uses-permission android : name =" android.permission.ACCESS_WIFI_STATE" />
10
12
<uses-permission android : name =" android.permission.ACTIVITY_RECOGNITION" />
11
13
12
14
<application
15
+ android : name =" .MyApp"
13
16
android : allowBackup =" true"
14
17
android : icon =" @mipmap/ic_launcher"
15
18
android : label =" @string/app_name"
16
19
android : roundIcon =" @mipmap/ic_launcher_round"
17
20
android : supportsRtl =" true"
18
21
android : theme =" @style/Theme.SensorServer" >
22
+
23
+ <meta-data
24
+ android : name =" com.bugsnag.android.API_KEY"
25
+ android : value =" 323ee02b9ee5e1cde3b59f4a168c8a53" />
26
+
19
27
<service
20
28
android : name =" .service.SensorService"
21
29
android : enabled =" true"
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ buildscript {
6
6
}
7
7
dependencies {
8
8
classpath " com.android.tools.build:gradle:7.0.2"
9
+ classpath " com.bugsnag:bugsnag-android-gradle-plugin:7.+"
9
10
10
11
// NOTE: Do not place your application dependencies here; they belong
11
12
// in the individual module build.gradle files
You can’t perform that action at this time.
0 commit comments