Skip to content
This repository has been archived by the owner on Sep 14, 2020. It is now read-only.

Commit

Permalink
Merge pull request #74 from bugsnag/kattrali/codepush-bundle-id
Browse files Browse the repository at this point in the history
Allow setting codeBundleId as a config option
  • Loading branch information
duncanhewett authored Feb 28, 2017
2 parents 1c1a201 + 5af85d0 commit 112e8cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Bugsnag.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export class Client {
}

const report = new Report(this.config.apiKey, error);
report.addMetadata('app', 'codeBundleId', this.config.codeBundleId);

for (callback of this.config.beforeSendCallbacks) {
if (callback(report, error) === false) {
Expand Down Expand Up @@ -156,6 +157,7 @@ export class Configuration {
this.notifyReleaseStages = undefined;
this.releaseStage = undefined;
this.appVersion = undefined;
this.codeBundleId = undefined;
this.autoNotify = true;
this.handlePromiseRejections = !__DEV__; // prefer banner in dev mode
}
Expand Down Expand Up @@ -199,6 +201,7 @@ export class Configuration {
toJSON = () => {
return {
apiKey: this.apiKey,
codeBundleId: this.codeBundleId,
releaseStage: this.releaseStage,
notifyReleaseStages: this.notifyReleaseStages,
endpoint: this.delivery.endpoint,
Expand Down

0 comments on commit 112e8cc

Please sign in to comment.