Skip to content

Commit

Permalink
Add RN SAGP app dependency and disable auto install option examples
Browse files Browse the repository at this point in the history
  • Loading branch information
krystofwoldrich authored Jul 14, 2023
1 parent a85a39e commit 5a059c5
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/platforms/react-native/manual-setup/manual-setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,15 @@ apply from: "../../node_modules/@sentry/react-native/sentry.gradle"

You can enable native symbol upload and other features by adding [Sentry Android Gradle Plugin (SAGP)](/platforms/android/configuration/gradle) to `android/app/build.gradle`.

```groovy {filename:android/build.gradle}
buildscript {
dependencies {
// Other dependencies ...
classpath("io.sentry:sentry-android-gradle-plugin:{{@inject packages.version('sentry.java.android.gradle-plugin', '3.0.0') }}")
}
}
```

```groovy {filename:android/app/build.gradle}
apply plugin: "io.sentry.android.gradle"
Expand All @@ -117,6 +126,15 @@ sentry {
// This option has an effect only when [uploadNativeSymbols] is enabled.
// Default is disabled.
includeNativeSources = true
// `@sentry/react-native` ships with compatible `sentry-android`
// This option would install the latest version that ships with the SDK or SAGP (Sentry Android Gradle Plugin)
// which might be incompatible with the React Native SDK
// Enable auto-installation of Sentry components (sentry-android SDK and okhttp, timber and fragment integrations).
// Default is enabled.
autoInstallation {
enabled = false
}
}
```

Expand Down

0 comments on commit 5a059c5

Please sign in to comment.