sentry-android-gradle-plugin icon indicating copy to clipboard operation
sentry-android-gradle-plugin copied to clipboard

It is not possible to disable auto installation (sentry.autoInstallation.enabled = false, does not work)

Open michal-luszczuk opened this issue 3 years ago • 1 comments

Gradle Version

7.5.1

AGP Version

7.2.2

Code Minifier/Optimizer

No response

Version

3.1.4

Sentry SDK Version

6.0.0, 6.3.1, any...

Steps to Reproduce

  1. Install io.sentry:sentry-android-gradle-plugin:3.1.4 to the project where timber, okhttp and fragments are used
  2. In the app/build.gradle try to turn off auto installation by adding code block:
 autoInstallation {
        enabled = false
        sentryVersion = '6.0.0' //this line should not matter)
}
  1. Sync the project

Expected Result

io.sentry:sentry-android-fragment or io.sentry:sentry-android-timber or io.sentry:sentry-android-okhttp should not be added to the dependencies

Actual Result

Dependencies for io.sentry:sentry-android-okhttp:6.0.0, io.sentry:sentry-android-timber:6.0.0, io.sentry:sentry-android-fragment:6.0.0 are added to the dependencies

michal-luszczuk avatar Aug 11 '22 13:08 michal-luszczuk

Could you share a reproducible example? Because it works on our samples, see here - https://github.com/getsentry/sentry-android-gradle-plugin/blob/40ee9bfc5022ade61640130de38a9c89ad503e57/examples/android-guardsquare-proguard/build.gradle#L52-L54

Have you put this snippet inside the sentry { } block?

romtsn avatar Aug 11 '22 20:08 romtsn

Closing this with no response for over a month, please feel free to reopen with more details. Thanks!

romtsn avatar Sep 12 '22 08:09 romtsn