close
Skip to content

Integrate mixpanel-android-common library for event bridging#924

Open
rahul-mixpanel wants to merge 11 commits intomasterfrom
feature/use-mixpanel-android-common
Open

Integrate mixpanel-android-common library for event bridging#924
rahul-mixpanel wants to merge 11 commits intomasterfrom
feature/use-mixpanel-android-common

Conversation

@rahul-mixpanel
Copy link
Copy Markdown
Contributor

@rahul-mixpanel rahul-mixpanel commented Apr 7, 2026

Summary

  • Add mixpanel-android-common:1.0.0 dependency for cross-SDK event communication
  • Add mavenLocal() repository for SNAPSHOT resolution
  • Emit events to MixpanelEventBridge on track() calls (fire and forget)

This enables other SDKs (e.g., mixpanel-android-session-replay) to subscribe to tracked events via the shared MixpanelEventBridge.events() flow.

Test plan

  • Verify build compiles successfully
  • Test event tracking still works as expected
  • Verify events are emitted to MixpanelEventBridge when track() is called

- Add mixpanel-android-common:0.0.1-SNAPSHOT dependency
- Add mavenLocal() repository for SNAPSHOT resolution
- Emit events to MixpanelEventBridge on track() for cross-SDK communication
Add Maven Central snapshots repository and bump dependency version.
Use eventDescription.getProperties() instead of raw properties to
include super properties, referrer properties, and other computed
fields in bridge notifications.
Move the bridge notification from MixpanelAPI.track() to the worker
thread in AnalyticsMessages. This ensures listeners receive the
complete event properties including default device properties like
$os, $model, $app_version, $screen_dpi, etc.
@rahul-mixpanel rahul-mixpanel force-pushed the feature/use-mixpanel-android-common branch from a37ed08 to 637034d Compare April 10, 2026 07:55
@rahul-mixpanel rahul-mixpanel marked this pull request as ready for review April 10, 2026 11:29
@rahul-mixpanel rahul-mixpanel requested a review from a team April 10, 2026 11:29
Copy link
Copy Markdown

@ketanmixpanel ketanmixpanel left a comment

Choose a reason for hiding this comment

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

LG

Comment thread src/main/java/com/mixpanel/android/mpmetrics/AnalyticsMessages.java Outdated
Comment thread build.gradle Outdated
@tylerjroach tylerjroach marked this pull request as draft April 10, 2026 13:03
@rahul-mixpanel rahul-mixpanel marked this pull request as ready for review April 10, 2026 15:24
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.

3 participants