File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,16 @@ import org.apache.tools.ant.taskdefs.condition.Os
3
3
import java.util.regex.Matcher
4
4
import java.util.regex.Pattern
5
5
6
+ project. ext. shouldSentryAutoUploadNative = { ->
7
+ return System . getenv(' SENTRY_DISABLE_NATIVE_DEBUG_UPLOAD' ) != ' true'
8
+ }
9
+
10
+ project. ext. shouldSentryAutoUploadGeneral = { ->
11
+ return System . getenv(' SENTRY_DISABLE_AUTO_UPLOAD' ) != ' true'
12
+ }
13
+
6
14
project. ext. shouldSentryAutoUpload = { ->
7
- return System . getenv(' SENTRY_DISABLE_AUTO_UPLOAD' ) != ' true' ||
8
- System . getenv(' SENTRY_DISABLE_NATIVE_DEBUG_UPLOAD' ) != ' true'
15
+ return shouldSentryAutoUploadGeneral() && shouldSentryAutoUploadNative()
9
16
}
10
17
11
18
def config = project. hasProperty(" sentryCli" ) ? project. sentryCli : [];
@@ -99,7 +106,7 @@ gradle.projectsEvaluated {
99
106
100
107
/* * Upload source map file to the sentry server via CLI call. */
101
108
def cliTask = tasks. create(nameCliTask) {
102
- onlyIf { shouldSentryAutoUpload () }
109
+ onlyIf { shouldSentryAutoUploadGeneral () }
103
110
description = " upload debug symbols to sentry"
104
111
group = ' sentry.io'
105
112
You can’t perform that action at this time.
0 commit comments