Skip to content

Commit 787aae6

Browse files
committed
Merge branch 'master' of [email protected]:nativescript-community/sentry.git
2 parents 1956ff3 + 9bd21be commit 787aae6

File tree

24 files changed

+10463
-9299
lines changed

24 files changed

+10463
-9299
lines changed

CHANGELOG.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,53 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [4.6.6](https://github.com/nativescript-community/sentry/compare/v4.6.5...v4.6.6) (2022-12-09)
7+
8+
9+
### Bug Fixes
10+
11+
* **ios:** correctly translate JS stack from fatal error ([30304d3](https://github.com/nativescript-community/sentry/commit/30304d3c5c34d32c7370c48bd3392b49be12db50))
12+
13+
14+
15+
16+
17+
## [4.6.5](https://github.com/nativescript-community/sentry/compare/v4.6.4...v4.6.5) (2022-12-09)
18+
19+
20+
### Features
21+
22+
* captureScreenshot support ([e9e565f](https://github.com/nativescript-community/sentry/commit/e9e565f2301ef3964772297a639242b422483b7c))
23+
24+
25+
26+
27+
28+
## [4.6.4](https://github.com/nativescript-community/sentry/compare/v4.6.3...v4.6.4) (2022-12-09)
29+
30+
31+
### Bug Fixes
32+
33+
* **android:** native sdk update ([633dd3a](https://github.com/nativescript-community/sentry/commit/633dd3aebed875bb7fb2e6c08eeca53c208756ea))
34+
* if there is a crash we dont have time to get the event ([3d3b914](https://github.com/nativescript-community/sentry/commit/3d3b9142335d481f01e6c52560be569048d495ae))
35+
* **ios:** native sdk update with build fix ([b73b021](https://github.com/nativescript-community/sentry/commit/b73b021af47a59b40156503d1776928953d505ed))
36+
* re enable option and removed logs ([190da44](https://github.com/nativescript-community/sentry/commit/190da44752e8a11a4af5eebb5f1eb7856e58b96b))
37+
38+
39+
40+
41+
42+
## [4.6.3](https://github.com/nativescript-community/sentry/compare/v4.6.2...v4.6.3) (2022-12-08)
43+
44+
45+
### Bug Fixes
46+
47+
* fixed callstack parsing when there is java + javascript ([83094cd](https://github.com/nativescript-community/sentry/commit/83094cdf6ecf31fe0a757475efb7c38a1fc460f2))
48+
49+
50+
51+
52+
653
## [4.6.2](https://github.com/nativescript-community/sentry/compare/v4.6.1...v4.6.2) (2022-10-28)
754

855

demo-vue/.sentryclirc

Lines changed: 0 additions & 7 deletions
This file was deleted.

demo-vue/app/App_Resources/iOS/src/TestClass.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
@interface TestClass: NSObject
44

55
+(void)someMethod;
6+
+(void)helloWorld: (NSString* ) message;
67

78
@end

demo-vue/app/App_Resources/iOS/src/TestClass.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,10 @@ +(void)someMethod {
88
NSLog(@"%@", result);
99
}
1010

11+
12+
+(void)helloWorld: (NSString* ) message {
13+
@throw [NSException exceptionWithName:message
14+
reason:@"reason"
15+
userInfo:nil];
16+
}
1117
@end

demo-vue/app/main.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ async function startSentry() {
1313
debug: true,
1414
flushSendEvent: true,
1515
enableNativeCrashHandling: true,
16-
enableAutoPerformanceTracking: true
16+
enableAutoPerformanceTracking: false,
17+
enableAutoSessionTracking: false,
18+
attachScreenshot:true
1719
});
1820
setTimeout(()=>{
1921
// Sentry.withScope(scope => {

demo-vue/app/views/Home.ts

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { TextEncoder } from '@nativescript/core/text';
44
import { createArrayBuffer } from '@nativescript-community/arraybuffers';
55
declare class TestClass {
66
static someMethod();
7+
static helloWorld(str: string);
78
}
89

910
export default {
@@ -85,7 +86,7 @@ export default {
8586
});
8687
},
8788
throwError() {
88-
89+
8990
Sentry.captureException(new Error('test_notify_error' + Date.now()));
9091
},
9192
leaveBreadcrumb() {
@@ -99,8 +100,12 @@ export default {
99100
},
100101
androidNativeCrashCatchedTest() {
101102
try {
102-
console.log('androidNativeCrashTest', (com as any).nativescript.sentry.ClassExample.helloWorld('test3'));
103-
103+
if (__ANDROID__) {
104+
console.log('androidNativeCrashTest', (com as any).nativescript.sentry.ClassExample.helloWorld('test3'));
105+
}
106+
if(__IOS__) {
107+
console.log('iosNativeCrashTest', TestClass.helloWorld('test3'));
108+
}
104109
} catch (error) {
105110
// console.error('error', error);
106111
// console.error('keys', Object.keys(error));
@@ -113,7 +118,12 @@ export default {
113118
}
114119
},
115120
androidNativeCrashTest() {
116-
console.log('androidNativeCrashTest', (com as any).nativescript.sentry.ClassExample.helloWorld('test3'));
121+
if (__ANDROID__) {
122+
console.log('androidNativeCrashTest', (com as any).nativescript.sentry.ClassExample.helloWorld('test3'));
123+
}
124+
if(__IOS__) {
125+
console.log('iosNativeCrashTest', TestClass.helloWorld('test3'));
126+
}
117127
},
118128
flush() {
119129
Sentry.flush();

demo-vue/nativescript.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ module.exports = {
77
v8Flags: '--expose_gc',
88
markingMode: 'none',
99
},
10+
discardUncaughtJsExceptions:false
1011
};

demo-vue/package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"readme": "README.md",
55
"repository": "http://www.github.com/nativescript-community/sentry.git",
66
"dependencies": {
7-
"@nativescript-community/sentry": "4.6.2",
7+
"@nativescript-community/sentry": "link:../plugin",
88
"@nativescript/core": "8.4.1",
99
"nativescript-vue": "2.9.3"
1010
},
@@ -23,8 +23,5 @@
2323
"vue": "~2.6.14",
2424
"vue-loader": "~15.9.8"
2525
},
26-
"main": "app/main",
27-
"resolutions": {
28-
"@nativescript-community/sentry": "portal:../plugin"
29-
}
26+
"main": "app/main"
3027
}

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"packages": [
33
"plugin"
44
],
5-
"version": "4.6.2",
5+
"version": "4.6.6",
66
"command": {
77
"publish": {
88
"conventionalCommits": true

plugin/CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,42 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [4.6.6](https://github.com/nativescript-community/sentry/compare/v4.6.5...v4.6.6) (2022-12-09)
7+
8+
**Note:** Version bump only for package @nativescript-community/sentry
9+
10+
11+
12+
13+
14+
## [4.6.5](https://github.com/nativescript-community/sentry/compare/v4.6.4...v4.6.5) (2022-12-09)
15+
16+
**Note:** Version bump only for package @nativescript-community/sentry
17+
18+
19+
20+
21+
22+
## [4.6.4](https://github.com/nativescript-community/sentry/compare/v4.6.3...v4.6.4) (2022-12-09)
23+
24+
25+
### Bug Fixes
26+
27+
* **android:** native sdk update ([633dd3a](https://github.com/nativescript-community/sentry/commit/633dd3aebed875bb7fb2e6c08eeca53c208756ea))
28+
* **ios:** native sdk update with build fix ([b73b021](https://github.com/nativescript-community/sentry/commit/b73b021af47a59b40156503d1776928953d505ed))
29+
30+
31+
32+
33+
34+
## [4.6.3](https://github.com/nativescript-community/sentry/compare/v4.6.2...v4.6.3) (2022-12-08)
35+
36+
**Note:** Version bump only for package @nativescript-community/sentry
37+
38+
39+
40+
41+
642
## [4.6.2](https://github.com/nativescript-community/sentry/compare/v4.6.1...v4.6.2) (2022-10-28)
743

844

0 commit comments

Comments
 (0)