@@ -13,18 +13,21 @@ export default {
1313 <Page>
1414 <ActionBar title="Sentry Demo">
1515 </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>
2831 </Page>
2932 ` ,
3033 // data() {
@@ -126,6 +129,14 @@ export default {
126129 } ,
127130 flush ( ) {
128131 Sentry . flush ( ) ;
132+ } ,
133+ async close ( ) {
134+ try {
135+ await Sentry . close ( ) ;
136+
137+ } catch ( error ) {
138+ console . error ( error , error . stack )
139+ }
129140 }
130141 }
131142} ;
0 commit comments