Skip to content

Commit

Permalink
Bugsnag Integrated
Browse files Browse the repository at this point in the history
  • Loading branch information
umer0586 committed Nov 19, 2022
1 parent 3dc544b commit ba4ac0f
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
minSdk 21
targetSdk 31
multiDexEnabled true
versionCode 8
versionName "2.0.0"
versionCode 9
versionName "2.1.0"


}
Expand All @@ -31,6 +31,9 @@ android {
viewBinding true
}*/
}
apply plugin: "com.android.application"
// Apply the Bugsnag plugin
apply plugin: "com.bugsnag.android.gradle"

dependencies {

Expand All @@ -49,5 +52,7 @@ dependencies {

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

implementation "com.bugsnag:bugsnag-android:5.+"

}

8 changes: 8 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,27 @@
xmlns:tools="http://schemas.android.com/tools"
package="github.umer0586">



<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.ACTIVITY_RECOGNITION" />

<application
android:name=".MyApp"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.SensorServer">

<meta-data
android:name="com.bugsnag.android.API_KEY"
android:value="323ee02b9ee5e1cde3b59f4a168c8a53"/>

<service
android:name=".service.SensorService"
android:enabled="true"
Expand Down
13 changes: 13 additions & 0 deletions app/src/main/java/github/umer0586/MyApp.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package github.umer0586;

import android.app.Application;

import com.bugsnag.android.Bugsnag;

public class MyApp extends Application {
@Override
public void onCreate() {
super.onCreate();
Bugsnag.start(getApplicationContext());
}
}
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ buildscript {
}
dependencies {
classpath "com.android.tools.build:gradle:7.0.2"
classpath "com.bugsnag:bugsnag-android-gradle-plugin:7.+"

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

0 comments on commit ba4ac0f

Please sign in to comment.