Skip to content

Setting Environment and Release #10

@Cateye82

Description

@Cateye82

Which platform(s) does your issue occur on?

  • iOS
  • emulator

Please, provide the following version numbers that your issue occurs with:

  • CLI: (run tns --version to fetch it)
    ns -v
    8.2.3
    ✔ Up to date.

  • Cross-platform modules: (check the 'version' attribute in the
    node_modules/tns-core-modules/package.json file in your project)
    I dont't have such a folder, it is a fresh installation (ns create HelloWorld --template @nativescript/template-hello-world-ts)

  • Runtime(s): (look for the "tns-android" and "tns-ios" properties in the package.json file of your project)
    "@nativescript/android": "8.2.2",
    "@nativescript/ios": "~8.2.0",

  • Plugin(s): (look for the version numbers in the package.json file of your
    project and paste your dependencies and devDependencies here)
    {
    "name": "mtbappmobile",
    "main": "src/main.ts",
    "version": "1.0.0",
    "private": true,
    "dependencies": {
    "@angular/animations": "~13.1.1",
    "@angular/common": "~13.1.1",
    "@angular/compiler": "~13.1.1",
    "@angular/core": "~13.1.1",
    "@angular/forms": "~13.1.1",
    "@angular/platform-browser": "~13.1.1",
    "@angular/platform-browser-dynamic": "~13.1.1",
    "@angular/router": "~13.1.1",
    "@nativescript/angular": "^13.0.0",
    "@nativescript/core": "~8.2.1",
    "@nativescript/theme": "~3.0.1",
    "nativescript": "^8.2.3",
    "nativescript-sentry": "^2.0.1",
    "rxjs": "~7.4.0",
    "zone.js": "~0.11.4"
    },
    "devDependencies": {
    "@angular-devkit/build-angular": "~13.1.1",
    "@angular/compiler-cli": "~13.1.1",
    "@nativescript/android": "8.2.2",
    "@nativescript/ios": "~8.2.0",
    "@nativescript/types": "~8.2.0",
    "@nativescript/webpack": "~5.0.0",
    "@ngtools/webpack": "~13.1.1",
    "typescript": "~4.5.5"
    }
    }

Please, tell us how to recreate the issue in as much detail as possible.

It is not really an issue, I was just wondering, how to set the environment and release param for the dsn.
The SentryModule.forRoot config, doesn't support any other options than the dsn and discardUncaughtJsExceptions.
I tried by adding those params to the dsn url (? separated) but it's not working.
Are there any posibilities to do so?
Thank you for your support and your plugin.

Is there any code involved?

  • provide a code example to recreate the problem
  • (EVEN BETTER) provide a .zip with application or refer to a repository with application where the problem is reproducible.
    This is the only code I call for testing:
    try {
    throw new Error('Whoops!');
    } catch (error) {
    console.log(error);
    Sentry.captureException(error, {});
    }
    console.log('test');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions