Skip to content
This repository was archived by the owner on Nov 14, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
12 changes: 6 additions & 6 deletions demo-ng/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@
"zone.js": "~0.8.29"
},
"devDependencies": {
"@nativescript/schematics": "~0.5.1",
"nativescript-dev-typescript": "~0.9.0",
"nativescript-dev-webpack": "~0.20.2",
"@angular/compiler-cli": "~7.2.8",
"@ngtools/webpack": "~7.3.5",
"tslint": "~5.14.0"
"@nativescript/schematics": "1.0.0",
"nativescript-dev-typescript": "~0.10.0",
"nativescript-dev-webpack": "1.5.1",
"@angular/compiler-cli": "9.1.0",
"@ngtools/webpack": "9.1.0",
"tslint": "6.1.1"
},
"readme": "NativeScript PickerField Demo NG"
}
2 changes: 2 additions & 0 deletions demo/app/App_Resources/Android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
android:label="@string/app_name"
android:theme="@style/AppTheme">

<meta-data android:name="io.sentry.dsn" android:value="__YOUR_DSN_HERE__" />

<activity
android:name="com.tns.NativeScriptActivity"
android:label="@string/title_activity_kimera"
Expand Down
2 changes: 1 addition & 1 deletion demo/app/app.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@import '~nativescript-theme-core/css/core.light.css';
@import '~@nativescript/theme/css/core.css';
5 changes: 4 additions & 1 deletion demo/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@
"homepage": "https://github.com/NativeScript/template-hello-world-ts",
"android": {
"v8Flags": "--expose_gc",
"requireModules": ["nativescript-sentry"]
"requireModules": [
"nativescript-sentry"
],
"markingMode": "none"
},
"devDependencies": {
"nativescript-dev-typescript": "^0.3.0"
Expand Down
Loading