Update analytics-controller and adapter interfaces to include changes required when implementing the mobile integration
Technical Details
- Remove
add(middleware: TPlugin): void from AnalyticsPlatformAdapter interface
- Add
onSetupCompleted(analyticsId: string): void to AnalyticsPlatformAdapter interface
- Update
AnalyticsController to call onSetupCompleted after initialization (only if analyticsId is set)
- Add error handling (try-catch) - adapter failures shouldn't break controller
- Update tests: verify hook called when
analyticsId set, NOT called when not set
Acceptance Criteria