|
|
|
@ -93,7 +93,7 @@ sentry {
|
|
|
|
|
// If disabled the plugin will run a dry-run and just generate a UUID.
|
|
|
|
|
// The mapping file has to be uploaded manually via sentry-cli in this case.
|
|
|
|
|
// Default is enabled.
|
|
|
|
|
autoUploadProguardMapping = true
|
|
|
|
|
autoUploadProguardMapping = hasSentryConfig
|
|
|
|
|
|
|
|
|
|
// Experimental flag to turn on support for GuardSquare's tools integration (Dexguard and External Proguard).
|
|
|
|
|
// If enabled, the plugin will try to consume and upload the mapping file produced by Dexguard and External Proguard.
|
|
|
|
@ -104,7 +104,7 @@ sentry {
|
|
|
|
|
// for Sentry. This executes sentry-cli automatically so
|
|
|
|
|
// you don't need to do it manually.
|
|
|
|
|
// Default is disabled.
|
|
|
|
|
uploadNativeSymbols = true
|
|
|
|
|
uploadNativeSymbols = hasSentryConfig
|
|
|
|
|
|
|
|
|
|
// Does or doesn't include the source code of native code for Sentry.
|
|
|
|
|
// This executes sentry-cli with the --include-sources param. automatically so
|
|
|
|
@ -116,7 +116,7 @@ sentry {
|
|
|
|
|
// Does auto instrumentation for specified features through bytecode manipulation.
|
|
|
|
|
// Default is enabled.
|
|
|
|
|
tracingInstrumentation {
|
|
|
|
|
enabled = true
|
|
|
|
|
enabled = false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Enable auto-installation of Sentry components (sentry-android SDK and okhttp, timber and fragment integrations).
|
|
|
|
@ -188,3 +188,16 @@ dependencies {
|
|
|
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
|
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (hasSentryConfig) {
|
|
|
|
|
Properties properties = new Properties();
|
|
|
|
|
try (FileInputStream fis = new FileInputStream(sentryConfigFile)) {
|
|
|
|
|
properties.load(fis)
|
|
|
|
|
}
|
|
|
|
|
tasks.withType(Exec) {
|
|
|
|
|
environment "SENTRY_PROJECT", properties.getProperty("defaults.project")
|
|
|
|
|
environment "SENTRY_ORG", properties.getProperty("defaults.org")
|
|
|
|
|
environment "SENTRY_URL", properties.getProperty("defaults.url")
|
|
|
|
|
environment "SENTRY_AUTH_TOKEN", properties.getProperty("auth.token")
|
|
|
|
|
}
|
|
|
|
|
}
|