Sentry-react-native: Can't disable posting a new release to Sentry server on gradlew assembleRelease

Created on 10 Jan 2019  ·  3Comments  ·  Source: getsentry/sentry-react-native

OS:

  • [x] Windows
  • [x] MacOS
  • [x] Linux

_Platform:_

  • [?] iOS
  • [x] Android

Output of node -v && npm -v && npm ls --prod --depth=0

v8.9.3
5.5.1
[email protected] /mnt/devaus/Valo/navigator-app-ewa
├── @mapbox/[email protected]
├── @merryjs/[email protected]
├── @turf/[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── UNMET PEER DEPENDENCY [email protected]
├── UNMET PEER DEPENDENCY [email protected]
├── [email protected]
├── [email protected]
├── UNMET PEER DEPENDENCY [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── UNMET PEER DEPENDENCY [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

npm ERR! peer dep missing: [email protected], required by [email protected]
npm ERR! peer dep missing: react-native@~0.41.2, required by @merryjs/[email protected]
npm ERR! peer dep missing: react-native@^0.51.0, required by [email protected]
npm ERR! peer dep missing: [email protected], required by [email protected]
npm ERR! peer dep missing: react-native-vector-icons@^4.2.0, required by [email protected]

Config:

Sentry.config('https://[email protected]/...', {
....
}).install()

I have following issue:

Theres no option to disable posting new releases to Sentry server when I build apk. I tried to remove the right from the API key but the build crashes. I also tried to remove sentry-release.properties but the build crashes.

Steps to reproduce:

  • Install Sentry client succesfully and try to build release apk (Android).

Actual result:

  • It tries to post a new release.

Expected result:

  • It should be configurable option.
🦔react-native-sentry

Most helpful comment

This is an issue for us too. We want to be able to do a ./gradlew installRelease so we can test the actual RC without invoking the upload.

All 3 comments

This is an issue for us too. We want to be able to do a ./gradlew installRelease so we can test the actual RC without invoking the upload.

I am closing all old issues, please if this is still a problem feel free to revive it.
Also, consider moving to our new SDK @sentry/react-native if it still happens there please open a new issue.

Was this page helpful?
0 / 5 - 0 ratings