Define a common interface
Implement the interface in androidMain through gradle from Mixpanel's SDK
Inside Swift implement the interface in your iosApp folder through SPM or Cocoapods
Provide the implementation object's interface through DI
Resolve the interface in your common code
Voila
I'm doing the same for Admob, Firebase remote config, analytics, In-app review, updates etc..m