mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-24 13:53:23 +03:00
Bugsnag implementation
This commit is contained in:
parent
ab633d4b8b
commit
fb46bddf57
@ -7,3 +7,4 @@ SEARCH_API_TOKEN=
|
||||
SEARCH_API_URL=
|
||||
SERVER_LIST_API=
|
||||
USER_AGENT=
|
||||
BUGSNAG_API_KEY=
|
6
App.js
6
App.js
@ -1,3 +1,9 @@
|
||||
import { Client } from 'bugsnag-react-native';
|
||||
import Config from 'react-native-config';
|
||||
import App from './src/index';
|
||||
|
||||
const bugsnag = new Client(Config.BUGSNAG_API_KEY);
|
||||
|
||||
bugsnag.notify(new Error('test'));
|
||||
|
||||
export default App;
|
||||
|
@ -1,4 +1,5 @@
|
||||
apply plugin: "com.android.application"
|
||||
apply plugin: 'com.bugsnag.android.gradle'
|
||||
apply from: project(':react-native-config').projectDir.getPath() + "/dotenv.gradle"
|
||||
|
||||
import com.android.build.OutputFile
|
||||
@ -148,6 +149,7 @@ configurations.all {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation project(':bugsnag-react-native')
|
||||
implementation project(':react-native-version-number')
|
||||
implementation project(':react-native-code-push')
|
||||
implementation project(':realm')
|
||||
|
@ -55,6 +55,9 @@
|
||||
<meta-data
|
||||
android:name="com.google.firebase.messaging.default_notification_color"
|
||||
android:resource="@color/notification_icon" />
|
||||
<meta-data
|
||||
android:name="com.bugsnag.android.API_KEY"
|
||||
android:value="@string/BUGSNAG_API_KEY" />
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
|
@ -3,6 +3,7 @@ package app.esteem.mobile;
|
||||
import android.app.Application;
|
||||
|
||||
import com.facebook.react.ReactApplication;
|
||||
import com.bugsnag.BugsnagReactNative;
|
||||
import com.apsl.versionnumber.RNVersionNumberPackage;
|
||||
import com.microsoft.codepush.react.CodePush;
|
||||
import io.realm.react.RealmReactPackage;
|
||||
@ -43,6 +44,7 @@ public class MainApplication extends Application implements ReactApplication {
|
||||
protected List<ReactPackage> getPackages() {
|
||||
return Arrays.<ReactPackage>asList(
|
||||
new MainReactPackage(),
|
||||
BugsnagReactNative.getPackage(),
|
||||
new RNVersionNumberPackage(),
|
||||
new CodePush(getResources().getString(R.string.reactNativeCodePush_androidDeploymentKey), getApplicationContext(), BuildConfig.DEBUG),
|
||||
new RealmReactPackage(),
|
||||
|
@ -30,6 +30,7 @@ buildscript {
|
||||
classpath 'com.google.gms:google-services:4.0.2'
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
// in the individual module build.gradle files
|
||||
classpath 'com.bugsnag:bugsnag-android-gradle-plugin:4.+'
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,6 @@
|
||||
rootProject.name = 'eSteem'
|
||||
include ':bugsnag-react-native'
|
||||
project(':bugsnag-react-native').projectDir = new File(rootProject.projectDir, '../node_modules/bugsnag-react-native/android')
|
||||
include ':react-native-version-number'
|
||||
project(':react-native-version-number').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-version-number/android')
|
||||
include ':react-native-code-push'
|
||||
|
@ -38,6 +38,8 @@ target 'eSteem' do
|
||||
|
||||
pod 'react-native-version-number', :path => '../node_modules/react-native-version-number'
|
||||
|
||||
pod 'BugsnagReactNative', :path => '../node_modules/bugsnag-react-native'
|
||||
|
||||
target 'eSteemTests' do
|
||||
inherit! :search_paths
|
||||
# Pods for testing
|
||||
|
@ -28,6 +28,7 @@
|
||||
"appcenter-push": "^1.10.0",
|
||||
"axios": "^0.18.0",
|
||||
"buffer": "^5.2.1",
|
||||
"bugsnag-react-native": "^2.20.0",
|
||||
"core-js": "^2.6.0",
|
||||
"crypto-js": "^3.1.9-1",
|
||||
"currency-symbol-map": "^4.0.4",
|
||||
|
16
yarn.lock
16
yarn.lock
@ -2173,6 +2173,15 @@ buffer@^5.2.1:
|
||||
base64-js "^1.0.2"
|
||||
ieee754 "^1.1.4"
|
||||
|
||||
bugsnag-react-native@^2.20.0:
|
||||
version "2.20.0"
|
||||
resolved "https://registry.yarnpkg.com/bugsnag-react-native/-/bugsnag-react-native-2.20.0.tgz#b46cd4f6de4b4838d4a27a712e4eedf73e5864c4"
|
||||
integrity sha512-DqJRKx0lPUkepN3lgBM7H+CrlerwYo4fWgQ7SZfDbMDNXXiSOcKBTfc+M/FsMO6AEJht4to4pC0a27aGE3+r5w==
|
||||
dependencies:
|
||||
iserror "^0.0.2"
|
||||
promise "^7"
|
||||
prop-types "^15.6.0"
|
||||
|
||||
bytebuffer@^5.0.1:
|
||||
version "5.0.1"
|
||||
resolved "https://registry.yarnpkg.com/bytebuffer/-/bytebuffer-5.0.1.tgz#582eea4b1a873b6d020a48d58df85f0bba6cfddd"
|
||||
@ -4859,6 +4868,11 @@ isarray@1.0.0, isarray@^1.0.0, isarray@~1.0.0:
|
||||
resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11"
|
||||
integrity sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=
|
||||
|
||||
iserror@^0.0.2:
|
||||
version "0.0.2"
|
||||
resolved "https://registry.yarnpkg.com/iserror/-/iserror-0.0.2.tgz#bd53451fe2f668b9f2402c1966787aaa2c7c0bf5"
|
||||
integrity sha1-vVNFH+L2aLnyQCwZZnh6qix8C/U=
|
||||
|
||||
isexe@^2.0.0:
|
||||
version "2.0.0"
|
||||
resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10"
|
||||
@ -7166,7 +7180,7 @@ progress@^2.0.0, progress@^2.0.3:
|
||||
resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8"
|
||||
integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==
|
||||
|
||||
promise@^7.1.1:
|
||||
promise@^7, promise@^7.1.1:
|
||||
version "7.3.1"
|
||||
resolved "https://registry.yarnpkg.com/promise/-/promise-7.3.1.tgz#064b72602b18f90f29192b8b1bc418ffd1ebd3bf"
|
||||
integrity sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==
|
||||
|
Loading…
Reference in New Issue
Block a user