Skip to content

Commit

Permalink
Update Readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sc85 committed Apr 15, 2020
1 parent a166ace commit a612f20
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ tns plugin add nativescript-sentry

# Config

### Android
Starting with the version 1.10.0 it is no longer sufficient to call `Sentry.init(dsn)` on Android. This is caused by the changed init method introduced in `sentry-android:2.0.0` which expects a lambda function which cannot be implemented in NativeScript (or I did not find the right way yet).

Instead add the following line to your `AndroidManifest.xml` within the `<application>-tag`:
```
<meta-data android:name="io.sentry.dsn" android:value="__YOUR_DSN_HERE__" />
```

### Without Angular

```typescript
Expand Down Expand Up @@ -171,6 +179,11 @@ export interface ExceptionOptions {
## Changelog:
**15/4/2020 - (1.10.0):**
- Bumps to latest native SDK releases
- Stringifies data before writing it to Extras (Android)
**2/2/2019 - (1.8.0):**
- bumps to latest native SDK releases
Expand Down
2 changes: 1 addition & 1 deletion src/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nativescript-sentry",
"version": "1.9.0",
"version": "1.10.0",
"description": "Sentry.io NativeScript plugin.",
"main": "sentry.js",
"typings": "index.d.ts",
Expand Down

0 comments on commit a612f20

Please sign in to comment.