Skip to content

Commit b9489ca

Browse files
Feat: Support for Debug ID (#374)
* add support for debug ID * add changelog
1 parent 944eb4f commit b9489ca

File tree

2 files changed

+22
-11
lines changed

2 files changed

+22
-11
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## Unreleased
4+
5+
### Features
6+
7+
- Support for Debug ID ([#374](https://github.com/getsentry/sentry-cordova/pull/374))
8+
39
## 1.4.1
410

511
### Dependencies

scripts/before_compile.js

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -131,17 +131,22 @@ module.exports = function (ctx) {
131131
fs.writeFileSync(projectRootIndexHtml, contents.replace(regex, replaceWith));
132132
}
133133

134-
console.log(`Uploading assets release: '${release}' path: ${buildPath}`);
135-
return sentryCli.releases
136-
.new(release)
137-
.then(() =>
138-
sentryCli.releases.uploadSourceMaps(release, {
139-
include: includes,
140-
ignore: ignore,
141-
rewrite: true,
142-
})
143-
)
144-
.then(() => sentryCli.releases.finalize(release));
134+
console.log(`Injecting Debug ID on release: '${release}' path: ${buildPath}`);
135+
return sentryCli.execute(['sourcemaps', 'inject', buildPath])
136+
.then(() => {
137+
console.log(`Uploading assets release: '${release}' path: ${buildPath}`);
138+
139+
return sentryCli.releases
140+
.new(release)
141+
.then(() =>
142+
sentryCli.releases.uploadSourceMaps(release, {
143+
include: includes,
144+
ignore: ignore,
145+
rewrite: true,
146+
})
147+
)
148+
.then(() => sentryCli.releases.finalize(release));
149+
});
145150
});
146151
});
147152

0 commit comments

Comments
 (0)