Commit 9fa0a49
fix(android): Report missing properties file or keys when flavorAware is enabled (#6031)
* fix(android): Report missing properties file or keys when flavorAware is enabled
When `flavorAware` is set and the per-variant properties file is missing,
or required keys (`auth.token`/`SENTRY_AUTH_TOKEN`, `defaults.org`,
`defaults.project`) are absent, sentry.gradle previously swallowed the
error and passed `null` values to sentry-cli, failing with an opaque
`Illegal null value provided in this collection`.
Validate the file and required keys up front and throw a `GradleException`
naming the expected path and any missing keys. Also only append `--url`
when `defaults.url` is set, so sentry-cli can fall back to its default.
Fixes #2839
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* docs: Link changelog entry to PR instead of issue
Matches convention used by other entries under Unreleased.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent bafca82 commit 9fa0a49
2 files changed
Lines changed: 35 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
211 | 216 | | |
212 | 217 | | |
213 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
214 | 236 | | |
215 | 237 | | |
216 | 238 | | |
| |||
228 | 250 | | |
229 | 251 | | |
230 | 252 | | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
235 | 259 | | |
236 | 260 | | |
237 | 261 | | |
238 | 262 | | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
243 | 269 | | |
244 | 270 | | |
245 | 271 | | |
| |||
0 commit comments