From 3844f3552ca142b56985f2b5a330eb488752f47f Mon Sep 17 00:00:00 2001 From: LucasZF Date: Mon, 23 Sep 2024 13:34:06 -0300 Subject: [PATCH 1/2] Update README.md Update readme with V1 information --- README.md | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2c233711..84f83896 100644 --- a/README.md +++ b/README.md @@ -13,13 +13,22 @@ _Bad software is everywhere, and we're tired of it. Sentry is on a mission to he ## Installation ```bash -# Angular 12 and newer: -yarn add @sentry/capacitor @sentry/angular-ivy --exact - -# Angular 10 and 11: +# Angular 14 and newer: yarn add @sentry/capacitor @sentry/angular --exact + +# Vue +yarn add @sentry/capacitor @sentry/vue --exact + +# React +yarn add @sentry/capacitor @sentry/react --exact + +# Other +yarn add @sentry/capacitor @sentry/browser --exact ``` +Older versions of Angular requires @sentry/capacitor V0, for more information check the page: https://docs.sentry.io/platforms/javascript/guides/capacitor/#angular-version-compatibility + + ## Usage To use this SDK, call `Sentry.init` as early as possible after loading the page. This will initialize the SDK and hook into the environment. _Note that you can turn off almost all side effects using the respective options._ @@ -52,7 +61,7 @@ To set context information or send manual events, use the exported functions of import * as Sentry from '@sentry/capacitor'; // Set user information, as well as tags and further extras -Sentry.configureScope(scope => { + const scope = Sentry.getCurrentScope(); scope.setExtra('battery', 0.7); scope.setTag('user_mode', 'admin'); scope.setUser({ id: '4711' }); From 5f861f706cf9e4464a7b375c2eb0ce0ae7b0f02b Mon Sep 17 00:00:00 2001 From: LucasZF Date: Mon, 23 Sep 2024 13:38:23 -0300 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 84f83896..8eabea3e 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ yarn add @sentry/capacitor @sentry/react --exact yarn add @sentry/capacitor @sentry/browser --exact ``` -Older versions of Angular requires @sentry/capacitor V0, for more information check the page: https://docs.sentry.io/platforms/javascript/guides/capacitor/#angular-version-compatibility +Older versions of Angular require @sentry/capacitor V0, for more information check the page: https://docs.sentry.io/platforms/javascript/guides/capacitor/#angular-version-compatibility ## Usage