-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add RN Gradle Integration Advance options #11163
Add RN Gradle Integration Advance options #11163
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
Bundle ReportChanges will decrease total bundle size by 15 bytes ⬇️
|
|
||
### Enable Logging for `sentry-cli` | ||
|
||
You can also enable logging for `sentry-cli` by adding this config before the above `apply from:` line: | ||
|
||
```groovy {filename:android/app/build.gradle} | ||
project.ext.sentryCli = [ | ||
logLevel: "debug" | ||
] | ||
|
||
apply from: "../../node_modules/@sentry/react-native/sentry.gradle" | ||
``` | ||
|
||
### Fetch `sentry.properties` | ||
|
||
We also support fetching different `sentry.properties` files for different flavors. For that, you need to add: | ||
|
||
```groovy {filename:android/app/build.gradle} | ||
project.ext.sentryCli = [ | ||
logLevel: "debug", | ||
flavorAware: true | ||
] | ||
|
||
apply from: "../../node_modules/@sentry/react-native/sentry.gradle" | ||
``` | ||
|
||
The corresponding flavor files should also be placed within the specific build type folder where you intend to use them. For example, the "Android demo release" flavor would be `react-native/android/sentry-demo-release.properties`. | ||
|
||
We recommend leaving `logLevel: "debug"` since we look for specific `sentry.properties` files depending on your flavor's name. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did you remove this on purpose?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, its included in https://github.com/getsentry/sentry-docs/pull/11163/files#diff-d112867dfaecab66d0fcf0d26378af89f8610d07275f290819e64f96775292f7R153 and https://github.com/getsentry/sentry-docs/pull/11163/files#diff-d112867dfaecab66d0fcf0d26378af89f8610d07275f290819e64f96775292f7R155
Hopefully it will be easier to find as based on the incoming issues, the section at the end of the page was easily overlooked.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for adding!
Add missing advanced options https://github.com/getsentry/sentry-react-native/blob/07acc1eb4aa71c04d045d2d045cd4a397f6e71cb/samples/react-native/android/app/build.gradle#L13