@@ -13,18 +13,21 @@ export default {
13
13
<Page>
14
14
<ActionBar title="Sentry Demo">
15
15
</ActionBar>
16
- <StackLayout>
17
- <Button text="leaveBreadcrumb" @tap="leaveBreadcrumb"/>
18
- <Button text="message" @tap="message"/>
19
- <Button text="attachment" @tap="attachment"/>
20
- <Button text="attachmentFile" @tap="attachmentFile"/>
21
- <Button text="throwError" @tap="throwError"/>
22
- <Button text="crashTest" @tap="crashTest"/>
23
- <Button text="nativeCrashTest" @tap="nativeCrashTest"/>
24
- <Button text="androidNativeCrashTest" @tap="androidNativeCrashTest"/>
25
- <Button text="androidNativeCrashCatchedTest" @tap="androidNativeCrashCatchedTest"/>
26
- <Button text="flush" @tap="flush"/>
27
- </StackLayout>
16
+ <ScrollView>
17
+ <StackLayout>
18
+ <Button text="leaveBreadcrumb" @tap="leaveBreadcrumb"/>
19
+ <Button text="message" @tap="message"/>
20
+ <Button text="attachment" @tap="attachment"/>
21
+ <Button text="attachmentFile" @tap="attachmentFile"/>
22
+ <Button text="throwError" @tap="throwError"/>
23
+ <Button text="crashTest" @tap="crashTest"/>
24
+ <Button text="nativeCrashTest" @tap="nativeCrashTest"/>
25
+ <Button text="androidNativeCrashTest" @tap="androidNativeCrashTest"/>
26
+ <Button text="androidNativeCrashCatchedTest" @tap="androidNativeCrashCatchedTest"/>
27
+ <Button text="flush" @tap="flush"/>
28
+ <Button text="close" @tap="close"/>
29
+ </StackLayout>
30
+ </ScrollView>
28
31
</Page>
29
32
` ,
30
33
// data() {
@@ -126,6 +129,14 @@ export default {
126
129
} ,
127
130
flush ( ) {
128
131
Sentry . flush ( ) ;
132
+ } ,
133
+ async close ( ) {
134
+ try {
135
+ await Sentry . close ( ) ;
136
+
137
+ } catch ( error ) {
138
+ console . error ( error , error . stack )
139
+ }
129
140
}
130
141
}
131
142
} ;
0 commit comments