Skip to content

Remove AnalyticsManager compatibility shim - #25

Merged
NullPointerDepressiveDisorder merged 4 commits into
mainfrom
remove-analytics-manager-shim-2519353167747654180
Dec 17, 2025
Merged

Remove AnalyticsManager compatibility shim#25
NullPointerDepressiveDisorder merged 4 commits into
mainfrom
remove-analytics-manager-shim-2519353167747654180

Conversation

@google-labs-jules

Copy link
Copy Markdown
Contributor

Removed the deprecated AnalyticsManager class and updated the sole usage in AppDelegate.swift to use CrashReporter directly, completing the refactoring task. Verified changes persist after main update.


PR created automatically by Jules for task 2519353167747654180 started by @NullPointerDepressiveDisorder

- Removed `AnalyticsManager` class from `MiddleDrag/Utilities/AnalyticsManager.swift`.
- Updated `AppDelegate.swift` to use `CrashReporter` directly.
- Verified removal and ensured no other usages exist.
@google-labs-jules

Copy link
Copy Markdown
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!


For security, I will only act on instructions from the user who triggered this task.

New to Jules? Learn more at jules.google/docs.

@NullPointerDepressiveDisorder
NullPointerDepressiveDisorder marked this pull request as ready for review December 17, 2025 03:07
Copilot AI review requested due to automatic review settings December 17, 2025 03:07
Comment on lines 238 to 240
SentrySDK.addBreadcrumb(breadcrumb)
}
}

This comment was marked as outdated.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR completes a refactoring task by removing the deprecated AnalyticsManager compatibility shim and updating the sole remaining usage to use CrashReporter directly.

Key changes:

  • Removed the AnalyticsManager class that was delegating to CrashReporter
  • Updated AppDelegate.swift to call CrashReporter.shared.initializeIfEnabled() directly

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
MiddleDrag/Utilities/AnalyticsManager.swift Removed the deprecated AnalyticsManager compatibility shim class (23 lines including TODO comment)
MiddleDrag/AppDelegate.swift Updated initialization call from AnalyticsManager.shared.initialize() to CrashReporter.shared.initializeIfEnabled()

The changes look good! The refactoring is clean and complete:

  1. ✅ The CrashReporter class has the initializeIfEnabled() method that's being called
  2. ✅ No other references to AnalyticsManager exist in the codebase
  3. ✅ The replacement correctly uses the same initialization method
  4. ✅ The comment in AppDelegate.swift accurately describes what the initialization does

No issues found in this pull request.

@NullPointerDepressiveDisorder
NullPointerDepressiveDisorder merged commit 67d6501 into main Dec 17, 2025
8 checks passed
@NullPointerDepressiveDisorder
NullPointerDepressiveDisorder deleted the remove-analytics-manager-shim-2519353167747654180 branch December 17, 2025 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants