-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathPluginConfig.java
More file actions
179 lines (142 loc) · 5.8 KB
/
PluginConfig.java
File metadata and controls
179 lines (142 loc) · 5.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
package io.sentry.config;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
public class PluginConfig {
public static final boolean DEFAULT_SKIP = false;
public static final @NotNull String DEFAULT_SKIP_STRING = "false";
public static final boolean DEFAULT_SKIP_REPORT_DEPENDENCIES = false;
public static final @NotNull String DEFAULT_SKIP_REPORT_DEPENDENCIES_STRING = "false";
public static final boolean DEFAULT_SKIP_AUTO_INSTALL = false;
public static final @NotNull String DEFAULT_SKIP_AUTO_INSTALL_STRING = "false";
public static final boolean DEFAULT_SKIP_SOURCE_BUNDLE = false;
public static final @NotNull String DEFAULT_SKIP_SOURCE_BUNDLE_STRING = "false";
public static final boolean DEFAULT_IGNORE_SOURCE_BUNDLE_UPLOAD_FAILURE = false;
public static final @NotNull String DEFAULT_IGNORE_SOURCE_BUNDLE_UPLOAD_FAILURE_STRING = "false";
public static final boolean DEFAULT_SKIP_TELEMETRY = false;
public static final @NotNull String DEFAULT_SKIP_TELEMETRY_STRING = "false";
public static final boolean DEFAULT_DEBUG_SENTRY_CLI = false;
public static final @NotNull String DEFAULT_DEBUG_SENTRY_CLI_STRING = "false";
public static final boolean DEFAULT_DEBUG = false;
public static final @NotNull String DEFAULT_DEBUG_STRING = "false";
public static final boolean DEFAULT_SKIP_VALIDATE_SDK_DEPENDENCY_VERSIONS = false;
public static final @NotNull String DEFAULT_SKIP_VALIDATE_SDK_DEPENDENCY_VERSIONS_STRING =
"false";
public static final @NotNull String DEFAULT_ADDITIONAL_SOURCE_DIRS_FOR_SOURCE_CONTEXT = "";
private boolean skip = DEFAULT_SKIP;
private boolean skipAutoInstall = DEFAULT_SKIP_AUTO_INSTALL;
private boolean skipTelemetry = DEFAULT_SKIP_TELEMETRY;
private boolean skipReportDependencies = DEFAULT_SKIP_REPORT_DEPENDENCIES;
private boolean skipSourceBundle = DEFAULT_SKIP_SOURCE_BUNDLE;
private boolean ignoreSourceBundleUploadFailure = DEFAULT_IGNORE_SOURCE_BUNDLE_UPLOAD_FAILURE;
private boolean debugSentryCli = DEFAULT_DEBUG_SENTRY_CLI;
private boolean debug = DEFAULT_DEBUG;
private boolean skipValidateSdkDependencyVersions = DEFAULT_SKIP_VALIDATE_SDK_DEPENDENCY_VERSIONS;
private @NotNull String additionalSourceDirsForSourceContext =
DEFAULT_ADDITIONAL_SOURCE_DIRS_FOR_SOURCE_CONTEXT;
private boolean installProfiler = DEFAULT_INSTALL_PROFILER;
public static final boolean DEFAULT_INSTALL_PROFILER = false;
public static final @NotNull String DEFAULT_INSTALL_PROFILER_STRING = "false";
private @Nullable String org;
private @Nullable String project;
private @Nullable String url;
private @Nullable String authToken;
private @Nullable String sentryCliExecutablePath;
public void setDebugSentryCli(final boolean debugSentryCli) {
this.debugSentryCli = debugSentryCli;
}
public boolean isDebugSentryCli() {
return debugSentryCli || debug;
}
public void setDebug(final boolean debug) {
this.debug = debug;
}
public boolean isDebug() {
return debug;
}
public void setSentryCliExecutablePath(final @Nullable String sentryCliExecutablePath) {
this.sentryCliExecutablePath = sentryCliExecutablePath;
}
public @Nullable String getSentryCliExecutablePath() {
return sentryCliExecutablePath;
}
public void setSkip(final boolean skip) {
this.skip = skip;
}
public boolean isSkip() {
return skip;
}
public void setSkipAutoInstall(final boolean skipAutoInstall) {
this.skipAutoInstall = skipAutoInstall;
}
public void setSkipTelemetry(final boolean skipTelemetry) {
this.skipTelemetry = skipTelemetry;
}
public void setSkipReportDependencies(final boolean skipReportDependencies) {
this.skipReportDependencies = skipReportDependencies;
}
public void setSkipSourceBundle(final boolean skipSourceBundle) {
this.skipSourceBundle = skipSourceBundle;
}
public void setIgnoreSourceBundleUploadFailure(final boolean ignoreSourceBundleUploadFailure) {
this.ignoreSourceBundleUploadFailure = ignoreSourceBundleUploadFailure;
}
public void setSkipValidateSdkDependencyVersions(
final boolean skipValidateSdkDependencyVersions) {
this.skipValidateSdkDependencyVersions = skipValidateSdkDependencyVersions;
}
public void setInstallProfiler(final boolean installProfiler) {
this.installProfiler = installProfiler;
}
public boolean isSkipAutoInstall() {
return skipAutoInstall || skip;
}
public boolean isSkipTelemetry() {
return skipTelemetry || skip;
}
public boolean isSkipReportDependencies() {
return skipReportDependencies || skip;
}
public boolean isSkipSourceBundle() {
return skipSourceBundle || skip;
}
public boolean isIgnoreSourceBundleUploadFailure() {
return ignoreSourceBundleUploadFailure;
}
public boolean isSkipValidateSdkDependencyVersions() {
return skipValidateSdkDependencyVersions;
}
public boolean isInstallProfiler() {
return installProfiler;
}
public @Nullable String getOrg() {
return org;
}
public void setOrg(final @Nullable String org) {
this.org = org;
}
public @Nullable String getProject() {
return project;
}
public void setProject(final @Nullable String project) {
this.project = project;
}
public @Nullable String getUrl() {
return url;
}
public void setUrl(final @Nullable String url) {
this.url = url;
}
public @Nullable String getAuthToken() {
return authToken;
}
public void setAuthToken(final @Nullable String authToken) {
this.authToken = authToken;
}
public @NotNull String getAdditionalSourceDirsForSourceContext() {
return additionalSourceDirsForSourceContext;
}
public void setAdditionalSourceDirsForSourceContext(
final @NotNull String additionalSourceDirsForSourceContext) {
this.additionalSourceDirsForSourceContext = additionalSourceDirsForSourceContext;
}
}