update bugsnag

This commit is contained in:
feruz 2021-01-25 20:16:17 +02:00
parent 280104fe78
commit 2a21360e0e
7 changed files with 134 additions and 32 deletions

View File

@ -1,7 +1,7 @@
apply plugin: "com.android.application"
apply plugin: 'com.google.gms.google-services'
apply from: project(':react-native-config').projectDir.getPath() + "/dotenv.gradle"
apply plugin: 'com.bugsnag.android.gradle'
//apply plugin: 'com.bugsnag.android.gradle'
import com.android.build.OutputFile
@ -233,3 +233,4 @@ task copyDownloadableDepsToLibs(type: Copy) {
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
apply from: "../../node_modules/@bugsnag/react-native/bugsnag-react-native.gradle"

View File

@ -11,8 +11,8 @@
#import <AppCenterReactNative.h>
#import <AppCenterReactNativeAnalytics.h>
#import <AppCenterReactNativeCrashes.h>
#import <BugsnagReactNative/BugsnagReactNative.h>
#import <Firebase.h>
#import <Bugsnag/Bugsnag.h>
#import <React/RCTBridge.h>
#import <React/RCTBundleURLProvider.h>
@ -36,7 +36,7 @@
[AppCenterReactNative register];
[AppCenterReactNativeAnalytics registerWithInitiallyEnabled:true];
[AppCenterReactNativeCrashes registerWithAutomaticProcessing];
[BugsnagReactNative start];
[Bugsnag start];
RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
moduleName:@"Ecency"

View File

@ -2,8 +2,11 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BugsnagAPIKey</key>
<key>bugsnag</key>
<dict>
<key>apiKey</key>
<string>88a8a25738939a80ba49f1d5289dbc80</string>
</dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>

View File

@ -18,10 +18,7 @@ PODS:
- AppCenterReactNativeShared (3.1.0):
- AppCenter/Core (= 3.3.1)
- boost-for-react-native (1.63.0)
- BugsnagReactNative (2.23.10):
- BugsnagReactNative/Core (= 2.23.10)
- React
- BugsnagReactNative/Core (2.23.10):
- BugsnagReactNative (7.6.0):
- React
- BVLinearGradient (2.5.6):
- React
@ -431,7 +428,7 @@ DEPENDENCIES:
- appcenter-analytics (from `../node_modules/appcenter-analytics/ios`)
- appcenter-core (from `../node_modules/appcenter/ios`)
- appcenter-crashes (from `../node_modules/appcenter-crashes/ios`)
- BugsnagReactNative (from `../node_modules/bugsnag-react-native`)
- "BugsnagReactNative (from `../node_modules/@bugsnag/react-native`)"
- BVLinearGradient (from `../node_modules/react-native-linear-gradient`)
- DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)
- FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`)
@ -524,7 +521,7 @@ EXTERNAL SOURCES:
appcenter-crashes:
:path: "../node_modules/appcenter-crashes/ios"
BugsnagReactNative:
:path: "../node_modules/bugsnag-react-native"
:path: "../node_modules/@bugsnag/react-native"
BVLinearGradient:
:path: "../node_modules/react-native-linear-gradient"
DoubleConversion:
@ -643,7 +640,7 @@ SPEC CHECKSUMS:
appcenter-crashes: 10790bf670f79150f1654d79f76c10a8b4936688
AppCenterReactNativeShared: 2ec88a4ac2c52cdbc828a1f9c16244b534c84026
boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c
BugsnagReactNative: 98fb350df4bb0c94cce903023531a1a5cc11fa51
BugsnagReactNative: 0750207f412264f772997ceac9bbad36e100b828
BVLinearGradient: e3aad03778a456d77928f594a649e96995f1c872
DoubleConversion: 5805e889d232975c086db112ece9ed034df7a0b2
FBLazyVector: aaeaf388755e4f29cd74acbc9e3b8da6d807c37f

View File

@ -27,6 +27,7 @@
},
"dependencies": {
"@babel/runtime": "^7.5.5",
"@bugsnag/react-native": "^7.6.0",
"@ecency/render-helper": "^2.0.15",
"@esteemapp/dhive": "0.15.0",
"@esteemapp/react-native-autocomplete-input": "^4.2.1",
@ -51,7 +52,6 @@
"appcenter-crashes": "^3.1.0",
"axios": "^0.18.0",
"buffer": "^5.4.3",
"bugsnag-react-native": "^2.23.10",
"core-js": "3.6.4",
"crypto-js": "^3.1.9-1",
"currency-symbol-map": "^4.0.4",

View File

@ -1,10 +1,12 @@
import { Client, Configuration } from 'bugsnag-react-native';
import Bugsnag from '@bugsnag/react-native';
import Config from 'react-native-config';
const configuration = new Configuration();
configuration.apiKey = Config.BUGSNAG_API_KEY;
configuration.consoleBreadcrumbsEnabled = true;
configuration.notifyReleaseStages = ['beta', 'production'];
const configuration = {
apiKey: Config.BUGSNAG_API_KEY,
consoleBreadcrumbsEnabled: true,
notifyReleaseStages: ['beta', 'production'],
};
const client = new Client(configuration);
export default client;
Bugsnag.start(configuration);
export default Bugsnag;

121
yarn.lock
View File

@ -690,6 +690,95 @@
sharp "^0.23.0"
universal-analytics "^0.4.20"
"@bugsnag/core@^7.6.0":
version "7.6.0"
resolved "https://registry.yarnpkg.com/@bugsnag/core/-/core-7.6.0.tgz#f18deb534ea5f95c1e02bdb3656e1e6605b16334"
integrity sha512-hBYAZJw4ScqoyM1jA1x/m2e4iS2EqYEs0I2hdzBCZFv2ls17ILmU58eRSyVdUfyzbv0J7Hi6DwwBGC4Yb6ROZA==
dependencies:
"@bugsnag/cuid" "^3.0.0"
"@bugsnag/safe-json-stringify" "^6.0.0"
error-stack-parser "^2.0.3"
iserror "0.0.2"
stack-generator "^2.0.3"
"@bugsnag/cuid@^3.0.0":
version "3.0.0"
resolved "https://registry.yarnpkg.com/@bugsnag/cuid/-/cuid-3.0.0.tgz#2ee7642a30aee6dc86f5e7f824653741e42e5c35"
integrity sha512-LOt8aaBI+KvOQGneBtpuCz3YqzyEAehd1f3nC5yr9TIYW1+IzYKa2xWS4EiMz5pPOnRPHkyyS5t/wmSmN51Gjg==
"@bugsnag/delivery-react-native@^7.6.0":
version "7.6.0"
resolved "https://registry.yarnpkg.com/@bugsnag/delivery-react-native/-/delivery-react-native-7.6.0.tgz#4f4214d32f1b3bc848cab1c08b2b6646bd15aa77"
integrity sha512-9o0Kc0kB85lqz9KpyRUTNbZH+l//qgGr/8j8otGOJn8rMbHp0ya///m9gIIM/Q9sls7gxNdKAqrH3s/kRuvC9w==
"@bugsnag/plugin-console-breadcrumbs@^7.6.0":
version "7.6.0"
resolved "https://registry.yarnpkg.com/@bugsnag/plugin-console-breadcrumbs/-/plugin-console-breadcrumbs-7.6.0.tgz#c497ab92faafb1e1e06b7937250f93d0c44bb5de"
integrity sha512-5GtRRrfgUTARQl2lwDmtWemhKpm6ybCrCrlSuYPenBsBkWLAZ5eI0CPFfcGysbbrjzVvstVluVzQoUGWOA8YPg==
"@bugsnag/plugin-network-breadcrumbs@^7.6.0":
version "7.6.0"
resolved "https://registry.yarnpkg.com/@bugsnag/plugin-network-breadcrumbs/-/plugin-network-breadcrumbs-7.6.0.tgz#85c7ea203a7ab2e94041ecd7631cb1df68936781"
integrity sha512-arbia/1PYlzR9y8sjhxSCmMtd8MOw7Q3EPIhDJUcQ7FYcTQgMZgv7b+1zOkX1uPEPuwuQGFLj8PVfAXQ3K5qeA==
"@bugsnag/plugin-react-native-client-sync@^7.6.0":
version "7.6.0"
resolved "https://registry.yarnpkg.com/@bugsnag/plugin-react-native-client-sync/-/plugin-react-native-client-sync-7.6.0.tgz#b5278105c48f311904cfa45c99757ea70ffaa2ce"
integrity sha512-AyCxDG9uax4O6InhC0pt6ytG7FAeywGXlKATMqTJvK0ahIPg9um57EPsvOIhY8cxSKQtVABCvwDB4qA2evCc+w==
"@bugsnag/plugin-react-native-event-sync@^7.6.0":
version "7.6.0"
resolved "https://registry.yarnpkg.com/@bugsnag/plugin-react-native-event-sync/-/plugin-react-native-event-sync-7.6.0.tgz#1a71ca61e37f49b6e839357036d4b079b7758490"
integrity sha512-8aqCHeNIGjwIJ69zGRS1FiqfM0OpMAPo3SF61gPvhODnPzQqjEhDFojaMSGMi2/YWMCb5augg9MXvI2sPjC2og==
"@bugsnag/plugin-react-native-global-error-handler@^7.6.0":
version "7.6.0"
resolved "https://registry.yarnpkg.com/@bugsnag/plugin-react-native-global-error-handler/-/plugin-react-native-global-error-handler-7.6.0.tgz#9eb0617cc99c40a86f81759a0b02a4ece6b64414"
integrity sha512-Al5AJv/h/ZSpnMAZI2SJyPB4xH8wkkOVWKOTAOHpjzXw0aFuSA1ZDdLZDnysr2dKqm/b5NYLP9paB/Zhitk1Sg==
"@bugsnag/plugin-react-native-hermes@^7.6.0":
version "7.6.0"
resolved "https://registry.yarnpkg.com/@bugsnag/plugin-react-native-hermes/-/plugin-react-native-hermes-7.6.0.tgz#1d7c0982e636600ab29c32c9fbdb95f1e31bb347"
integrity sha512-vXUuC7LzjP6NsxHs0pjjjTTXiqMSqQc/e1XwJGBZFEGd4aJx+2BIg0iY7wcpeE1FghJz36NgonL3lb2v9283dA==
"@bugsnag/plugin-react-native-session@^7.6.0":
version "7.6.0"
resolved "https://registry.yarnpkg.com/@bugsnag/plugin-react-native-session/-/plugin-react-native-session-7.6.0.tgz#71dcc2c58298cba202abcaf0bffd8ef473033d00"
integrity sha512-jzJan0acUUmjW608tMxM28aj/Dv9J6+MNbEBso8pCFqT17w7rzRD0gRX7hkd5i1V3V5ZQxIjqHeZkBUSre+x6Q==
"@bugsnag/plugin-react-native-unhandled-rejection@^7.6.0":
version "7.6.0"
resolved "https://registry.yarnpkg.com/@bugsnag/plugin-react-native-unhandled-rejection/-/plugin-react-native-unhandled-rejection-7.6.0.tgz#948518dade8c0ce68bf738c1d2073c09c6b7ba91"
integrity sha512-KpDy+YNXbvkqTJ1mWk8rY2QFkR7+WkW/uK5moPTdCdwegxImsjaD0mMhfOmW3s5lqn7k4D6bvUdIjml8B9+Msg==
"@bugsnag/plugin-react@^7.6.0":
version "7.6.0"
resolved "https://registry.yarnpkg.com/@bugsnag/plugin-react/-/plugin-react-7.6.0.tgz#27448c03170f99a68c35ec923e75ad323c36d632"
integrity sha512-gBZy34i2MJ7RSMgoW1FPxCP2y5Ke7eMCCZZPrPW7DScA9fjMtJZAzIizziYP+Q2swwjKCWyuL3cnalpf+iz4jQ==
"@bugsnag/react-native@^7.6.0":
version "7.6.0"
resolved "https://registry.yarnpkg.com/@bugsnag/react-native/-/react-native-7.6.0.tgz#13f00bb238abf44fcd5af26f32a33cf59bd6d9e3"
integrity sha512-NhXNH3cBeSVjKVBKOaWGwbYkIPZi+DrRTpF3M3oxgBnXmadfz942DqK8hj5pOfEtyoPFK7+AY7UVzQ3/47Z07g==
dependencies:
"@bugsnag/core" "^7.6.0"
"@bugsnag/delivery-react-native" "^7.6.0"
"@bugsnag/plugin-console-breadcrumbs" "^7.6.0"
"@bugsnag/plugin-network-breadcrumbs" "^7.6.0"
"@bugsnag/plugin-react" "^7.6.0"
"@bugsnag/plugin-react-native-client-sync" "^7.6.0"
"@bugsnag/plugin-react-native-event-sync" "^7.6.0"
"@bugsnag/plugin-react-native-global-error-handler" "^7.6.0"
"@bugsnag/plugin-react-native-hermes" "^7.6.0"
"@bugsnag/plugin-react-native-session" "^7.6.0"
"@bugsnag/plugin-react-native-unhandled-rejection" "^7.6.0"
iserror "^0.0.2"
"@bugsnag/safe-json-stringify@^6.0.0":
version "6.0.0"
resolved "https://registry.yarnpkg.com/@bugsnag/safe-json-stringify/-/safe-json-stringify-6.0.0.tgz#22abdcd83e008c369902976730c34c150148a758"
integrity sha512-htzFO1Zc57S8kgdRK9mLcPVTW1BY2ijfH7Dk2CeZmspTWKdKqSo1iwmqrq2WtRjFlo8aRZYgLX0wFrDXF/9DLA==
"@cnakazawa/watch@^1.0.3":
version "1.0.4"
resolved "https://registry.yarnpkg.com/@cnakazawa/watch/-/watch-1.0.4.tgz#f864ae85004d0fcab6f50be9141c4da368d1656a"
@ -2209,15 +2298,6 @@ buffer@^5.4.3, buffer@^5.5.0:
base64-js "^1.0.2"
ieee754 "^1.1.4"
bugsnag-react-native@^2.23.10:
version "2.23.10"
resolved "https://registry.yarnpkg.com/bugsnag-react-native/-/bugsnag-react-native-2.23.10.tgz#f2156f15182d1e81d076386e9bff5b02a2db5153"
integrity sha512-Z47+dSitce8CpJa7rpDMP06tm3045LtIwaJ/nYtKFk+SnbL4qdPad8j4JCC65XL2P/wSOxHfMGYw1lPA4j+lWA==
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"
@ -3280,6 +3360,13 @@ error-ex@^1.2.0, error-ex@^1.3.1:
dependencies:
is-arrayish "^0.2.1"
error-stack-parser@^2.0.3:
version "2.0.6"
resolved "https://registry.yarnpkg.com/error-stack-parser/-/error-stack-parser-2.0.6.tgz#5a99a707bd7a4c58a797902d48d82803ede6aad8"
integrity sha512-d51brTeqC+BHlwF0BhPtcYgF5nlzf9ZZ0ZIUQNZpc9ZB9qw5IJ2diTrBY9jlCJkTLITYPjmiX6OWCwH+fuyNgQ==
dependencies:
stackframe "^1.1.1"
errorhandler@^1.5.0:
version "1.5.1"
resolved "https://registry.yarnpkg.com/errorhandler/-/errorhandler-1.5.1.tgz#b9ba5d17cf90744cd1e851357a6e75bf806a9a91"
@ -4960,7 +5047,7 @@ isarray@^2.0.1:
resolved "https://registry.yarnpkg.com/isarray/-/isarray-2.0.5.tgz#8af1e4c1221244cc62459faf38940d4e644a5723"
integrity sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==
iserror@^0.0.2:
iserror@0.0.2, 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=
@ -7350,7 +7437,7 @@ progress@^2.0.0:
resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8"
integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==
promise@^7, promise@^7.1.1:
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==
@ -8780,11 +8867,23 @@ sshpk@^1.7.0:
safer-buffer "^2.0.2"
tweetnacl "~0.14.0"
stack-generator@^2.0.3:
version "2.0.5"
resolved "https://registry.yarnpkg.com/stack-generator/-/stack-generator-2.0.5.tgz#fb00e5b4ee97de603e0773ea78ce944d81596c36"
integrity sha512-/t1ebrbHkrLrDuNMdeAcsvynWgoH/i4o8EGGfX7dEYDoTXOYVAkEpFdtshlvabzc6JlJ8Kf9YdFEoz7JkzGN9Q==
dependencies:
stackframe "^1.1.1"
stack-utils@^1.0.1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-1.0.2.tgz#33eba3897788558bebfc2db059dc158ec36cebb8"
integrity sha512-MTX+MeG5U994cazkjd/9KNAapsHnibjMLnfXodlkXw76JEea0UiNzrqidzo1emMwk7w5Qhc9jd4Bn9TBb1MFwA==
stackframe@^1.1.1:
version "1.2.0"
resolved "https://registry.yarnpkg.com/stackframe/-/stackframe-1.2.0.tgz#52429492d63c62eb989804c11552e3d22e779303"
integrity sha512-GrdeshiRmS1YLMYgzF16olf2jJ/IzxXY9lhKOskuVziubpTYcYqyOwYeJKzQkwy7uN0fYSsbsC4RQaXf9LCrYA==
stacktrace-parser@0.1.4:
version "0.1.4"
resolved "https://registry.yarnpkg.com/stacktrace-parser/-/stacktrace-parser-0.1.4.tgz#01397922e5f62ecf30845522c95c4fe1d25e7d4e"