@bugsnag/plugin-expo-app
Advanced tools
Comparing version 7.0.0-pre-alpha-ben.0 to 7.0.0-pre-alpha-ben.1
20
app.js
@@ -18,11 +18,11 @@ const { Constants } = require('expo') | ||
// let bundleVersion, versionCode | ||
// if (Constants.appOwnership === 'standalone') { | ||
// if (Constants.platform.ios && Constants.platform.ios.buildNumber) { | ||
// bundleVersion = Constants.platform.ios.buildNumber | ||
// } | ||
// if (Constants.platform.android && Constants.platform.android.versionCode) { | ||
// versionCode = Constants.platform.android.versionCode | ||
// } | ||
// } | ||
let nativeBundleVersion, nativeVersionCode | ||
if (Constants.appOwnership === 'standalone') { | ||
if (Constants.platform.ios && Constants.platform.ios.buildNumber) { | ||
nativeBundleVersion = Constants.platform.ios.buildNumber | ||
} | ||
if (Constants.platform.android && Constants.platform.android.versionCode) { | ||
nativeVersionCode = Constants.platform.android.versionCode | ||
} | ||
} | ||
@@ -37,3 +37,3 @@ client.config.beforeSend.unshift(report => { | ||
} | ||
// report.updateMetaData('app', { bundleVersion, versionCode }) | ||
report.updateMetaData('app', { nativeBundleVersion, nativeVersionCode }) | ||
}) | ||
@@ -40,0 +40,0 @@ |
{ | ||
"name": "@bugsnag/plugin-expo-app", | ||
"version": "7.0.0-pre-alpha-ben.0", | ||
"version": "7.0.0-pre-alpha-ben.1", | ||
"main": "app.js", | ||
@@ -23,3 +23,3 @@ "description": "@bugsnag/js plugin to provide information about an Expo app", | ||
"devDependencies": { | ||
"@bugsnag/core": "^7.0.0-pre-alpha-ben.0", | ||
"@bugsnag/core": "^7.0.0-pre-alpha-ben.1", | ||
"jasmine": "3.1.0", | ||
@@ -29,3 +29,3 @@ "nyc": "^12.0.2", | ||
}, | ||
"gitHead": "8cf2fe9c2b25d27883ea559122ccd972ce662a02" | ||
"gitHead": "3ec9561119c41090cf9fe29507f704d053668805" | ||
} |
3481