Commit 614b2c5
refactor: Remove unnecessary sentry-android-core dependency and use direct instantiation
- Remove sentry-android-core dependency from distribution module (only needs sentry module)
- Add distribution as compileOnly dependency in sentry-android-core
- Use direct DistributionIntegration instantiation instead of reflection
- Eliminates circular dependency and follows same pattern as other integrations
The distribution module only needs Integration/IScopes/SentryOptions from core sentry,
not anything from sentry-android-core, making the architecture cleaner.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 9b0cd9f commit 614b2c5
File tree
3 files changed
+3
-16
lines changed- sentry-android-core
- src/main/java/io/sentry/android/core
- sentry-android-distribution
3 files changed
+3
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| |||
Lines changed: 2 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
393 | 394 | | |
394 | 395 | | |
395 | 396 | | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
| 397 | + | |
411 | 398 | | |
412 | 399 | | |
413 | 400 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | 28 | | |
30 | 29 | | |
0 commit comments